You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Juan Alba <ju...@condortech.com.ar> on 2012/01/06 16:19:53 UTC

Problems migrating to spring-security 3.

Hi,

I am using spring 2.5.6 and I am trying to integrate my apps with facebook.
As far as I saw, there is a library developed for tapestry but
unfortunately it uses shirio and my apps already use spring-security. So I
decided to use spring-social, this need spring 3 so I started to migrate
from spring 2.5.6 to spring 3 and I am having a problem at runtime.

*The error is the following:*
2012-01-06 11:58:58.342:WARN::FAILED app:
java.lang.IllegalArgumentException: Contribution
ar.com.condortech.pruebaLogin.services.AppModule.contributeFilterSecurityInterceptor(Configuration)
(at AppModule.java:142) is for service 'FilterSecurityInterceptor', which
does not exist.
2012-01-06 11:58:58.343:WARN::Failed startup of context
JettyWebAppContext@556ca3d5
@556ca3d5/,file:/home/juan/workspaces/login/pruebaLogin/src/main/webapp/,file:/home/juan/workspaces/login/pruebaLogin/src/main/webapp/
java.lang.IllegalArgumentException: Contribution
ar.com.condortech.pruebaLogin.services.AppModule.contributeFilterSecurityInterceptor(Configuration)
(at AppModule.java:142) is for service 'FilterSecurityInterceptor', which
does not exist.
at
org.apache.tapestry5.ioc.internal.RegistryImpl.validateContributeDefs(RegistryImpl.java:225)
at
org.apache.tapestry5.ioc.internal.RegistryImpl.<init>(RegistryImpl.java:201)
at org.apache.tapestry5.ioc.RegistryBuilder.build(RegistryBuilder.java:170)
at
org.apache.tapestry5.internal.TapestryAppInitializer.createRegistry(TapestryAppInitializer.java:214)
at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:95)
at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:74)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at
org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:671)
at
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:193)
at
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:913)
at
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:584)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:341)
at
org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:102)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at
org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:164)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at
org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:164)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at
org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92)
at org.eclipse.jetty.server.Server.doStart(Server.java:232)
at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:69)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:433)
at
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:377)
at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:546)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
2012-01-06 11:58:58.360:INFO::Started SelectChannelConnector@0.0.0.0:8080
[INFO] Started Jetty Server



*my mvn dependency (the relevant info):*
[INFO] [dependency:tree {execution: default-cli}]
[INFO] ar.com.condortech.pruebaLogin:pruebaLogin:war:1.0.0.0-SNAPSHOT
[INFO] +- ar.com.condortech.lib:securityLib:jar:0.0.20-SNAPSHOT:compile
[INFO] |  +- ar.com.condortech:securityModel:jar:1.1.27-SNAPSHOT:compile
[INFO] |  |  \-
ar.com.condortech.lib:databaseModelLib:jar:1.3.27-SNAPSHOT:compile
[INFO] |  |     +- org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
[INFO] |  |     +- org.springmodules:spring-modules-cache:jar:0.7:compile
[INFO] |  |     +- oro:oro:jar:2.0.8:compile
[INFO] |  |     \- org.springframework:spring-orm:jar:3.0.5.RELEASE:compile
[INFO] |  |        \-
org.springframework:spring-jdbc:jar:3.0.5.RELEASE:compile
[INFO] |  +-
org.springframework.security:spring-security-ldap:jar:3.0.5.RELEASE:compile
[INFO] |  |  \-
org.springframework.ldap:spring-ldap-core:jar:1.3.0.RELEASE:compile
[INFO] |  +- com.restfb:restfb:jar:1.6.9:compile
[INFO] |  \- org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
[INFO] |     \- org.springframework:spring-core:jar:3.0.5.RELEASE:compile
[INFO] |        \- org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
[INFO] +- org.apache.tapestry:tapestry-spring:jar:5.2.0:compile
[INFO] +-
nu.localhost.tapestry:tapestry-spring-security:jar:3.0.0-SNAPSHOT:compile
[INFO] |  +-
org.springframework.security:spring-security-web:jar:3.0.5.RELEASE:compile
[INFO] |  \- org.springframework:spring-web:jar:3.0.5.RELEASE:compile
[INFO] |     +- aopalliance:aopalliance:jar:1.0:compile
[INFO] |     \- org.springframework:spring-context:jar:3.0.5.RELEASE:compile
[INFO] +-
org.springframework.security:spring-security-core:jar:3.0.5.RELEASE:compile
[INFO] |  +- org.springframework:spring-expression:jar:3.0.3.RELEASE:compile
[INFO] |  +- org.springframework:spring-tx:jar:3.0.3.RELEASE:compile
[INFO] +- org.springframework:spring-test:jar:2.5.6:test
[INFO] \- org.codehaus.castor:spring-xml:jar:1.2.1:compile

It seems I have all in 3.0.5.RELEASE

I just don't understand what's wrong.

any idea?

Thanks.