kado wrote > > Hi, > > I am trying to add a facebook provider to my app. > > I added the config to the xml and I had created the Class > FacebookDaoProvider just for testing if everything goes fine but when I > start the server this message is shown: > > Construction of service ProviderManager failed: Error invoking service > builder method > nu.localhost.tapestry5.springsecurity.services.SecurityModule.buildProviderManager(List) > (at SecurityModule.java:333) (for service 'ProviderManager'): Error > invoking service contribution method > ar.com.condor.services.CondorSecurityModule.contributeProviderManager(OrderedConfiguration, > AuthenticationProvider): Spring context contains 2 beans assignable to > type > org.springframework.security.providers.AuthenticationProvider: > daoAuthenticationProvider, facebookDaoProvider. > > Does anybody know what I am missing or what I am doing wrong? >
The problem is that you have 2 Spring beans binding the same type (AuthenticationProvider) - Tapestry's injection is based on types, so it cannot determine which service to inject. For a solution you can either eliminate one of the two Spring beans or inject ApplicationContext and get the bean manually. -- Chris -- View this message in context: http://tapestry.1045711.n5.nabble.com/Spring-security-can-t-add-AuthenticationProvider-tp5005539p5009797.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