Re: problem tapestry-spring-security plugin: UserDetailsService implementation not found
As the name says, the sample application does declare the UserDetailsService. Look at nu.localhost.tapestry5.springsecuritytest.services.TestsecurityModule there you'll find the build method public static UserDetailsService buildUserDetailsService( @Inject PasswordEncoder encoder, @Inject SaltSource salt ) { return new MyUserDetailsService( encoder, salt ); } This module is in fact using the SpringSecurityModule like you'll probably do. manuel aldana schrieb: Thiago H. de Paula Figueiredo schrieb: Em Sun, 08 Mar 2009 18:09:29 -0300, manuel aldana escreveu: Exception constructing service 'RememberMeServices': Error invoking service builder method nu.localhost.tapestry5.springsecurity.services.SecurityModule.build(UserDetailsService, String) (at SecurityModule.java:303) (for service 'RememberMeServices'): No service implements the interface org.springframework.security.userdetails.UserDetailsService. It does not find the UserDetailsService implementation though I placed one inside .services.internal. Does somebody know how tapestry spring-security plugin looks for the implementation? It looks it up via Tapestry-IoC. Actually, this error messages is given by T-IoC, not Tapestry-Spring Security yourself. Just make sure you declare your UserDetailsService implementation as a service in your AppModule class (or any other Tapestry-IoC module). Yes, you're right adding this interface->implementation mapping to AppModule made it work. But I wonder why it works in the sample application from the tapestry-spring-security module, which has no AppModule defined. I guess then some tapestry magic comes in place (maybe scanning for implementors of interfaces...). - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: problem tapestry-spring-security plugin: UserDetailsService implementation not found
Em Sun, 08 Mar 2009 23:31:49 -0300, manuel aldana escreveu: But I wonder why it works in the sample application from the tapestry-spring-security module, which has no AppModule defined. I guess then some tapestry magic comes in place (maybe scanning for implementors of interfaces...). I couldn't find it in the Tapestry IoC documentation, but some time ago Howard added the featuring that when you binder.bind(SomeInterface.class), it looks for a SomeInterfaceImpl class in the same package. If found, the binding is done automatically. I guess that's what happens in the Tapestry Spring Security example. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: problem tapestry-spring-security plugin: UserDetailsService implementation not found
Thiago H. de Paula Figueiredo schrieb: Em Sun, 08 Mar 2009 18:09:29 -0300, manuel aldana escreveu: Exception constructing service 'RememberMeServices': Error invoking service builder method nu.localhost.tapestry5.springsecurity.services.SecurityModule.build(UserDetailsService, String) (at SecurityModule.java:303) (for service 'RememberMeServices'): No service implements the interface org.springframework.security.userdetails.UserDetailsService. It does not find the UserDetailsService implementation though I placed one inside .services.internal. Does somebody know how tapestry spring-security plugin looks for the implementation? It looks it up via Tapestry-IoC. Actually, this error messages is given by T-IoC, not Tapestry-Spring Security yourself. Just make sure you declare your UserDetailsService implementation as a service in your AppModule class (or any other Tapestry-IoC module). Yes, you're right adding this interface->implementation mapping to AppModule made it work. But I wonder why it works in the sample application from the tapestry-spring-security module, which has no AppModule defined. I guess then some tapestry magic comes in place (maybe scanning for implementors of interfaces...). -- manuel aldana ald...@gmx.de software-engineering blog: http://www.aldana-online.de - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: problem tapestry-spring-security plugin: UserDetailsService implementation not found
Em Sun, 08 Mar 2009 18:09:29 -0300, manuel aldana escreveu: Exception constructing service 'RememberMeServices': Error invoking service builder method nu.localhost.tapestry5.springsecurity.services.SecurityModule.build(UserDetailsService, String) (at SecurityModule.java:303) (for service 'RememberMeServices'): No service implements the interface org.springframework.security.userdetails.UserDetailsService. It does not find the UserDetailsService implementation though I placed one inside .services.internal. Does somebody know how tapestry spring-security plugin looks for the implementation? It looks it up via Tapestry-IoC. Actually, this error messages is given by T-IoC, not Tapestry-Spring Security yourself. Just make sure you declare your UserDetailsService implementation as a service in your AppModule class (or any other Tapestry-IoC module). -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
problem tapestry-spring-security plugin: UserDetailsService implementation not found
Hi, I am using tapestry-spring-security plugin (http://www.localhost.nu/java/tapestry-spring-security/index.html). I tried out the included sample application which works fine. I tried to map this to my own application, but I get following exception: Exception constructing service 'RememberMeServices': Error invoking service builder method nu.localhost.tapestry5.springsecurity.services.SecurityModule.build(UserDetailsService, String) (at SecurityModule.java:303) (for service 'RememberMeServices'): No service implements the interface org.springframework.security.userdetails.UserDetailsService. It does not find the UserDetailsService implementation though I placed one inside .services.internal. Does somebody know how tapestry spring-security plugin looks for the implementation? Most likely I forgot to set a property. thanks. -- manuel aldana ald...@gmx.de software-engineering blog: http://www.aldana-online.de - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org