I Just got this error and I could not figure it out yet. java.lang.RuntimeException: Service id 'SaltSource' has already been defined by nu.localhost.tapestry5.springsecurity.services.SecurityModule.buildSaltSource(String) (at SecurityModule.java:121) and may not be redefined by nu.localhost.tapestry.acegi.services.SecurityModule.buildSaltSource(String) (at SecurityModule.java:115). You should rename one of the service builder methods. at org.apache.tapestry5.ioc.internal.RegistryImpl.<init>(RegistryImpl.java:170) at org.apache.tapestry5.ioc.RegistryBuilder.build(RegistryBuilder.java:168)
here is my code in AppModule.java public static void bind(ServiceBinder binder) { binder.bind(SaltSourceService.class, PlaintextSaltSourceImpl.class).withId("PlaintextSaltSource"); } public static void contributeProviderManager(OrderedConfiguration<AuthenticationProvider> configuration, @InjectService("DaoAuthenticationProvider") AuthenticationProvider daoAuthenticationProvider) { configuration.add("daoAuthenticationProvider", daoAuthenticationProvider); } and my PlaintextSaltSourceImpl.java import org.springframework.security.userdetails.UserDetails; import nu.localhost.tapestry5.springsecurity.services.SaltSourceService; public class PlaintextSaltSourceImpl implements SaltSourceService { public Object getSalt(UserDetails user) { return null; } } ----- B Amigo:super: -- View this message in context: http://www.nabble.com/SaltSource-Error-with-tapestry-spring-security-tp21882494p21882494.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org