Hi
When trying to autowire JdbcUserDetailsManager from Spring Security, I use following statement in appcontext.xml (located separated from webapp):
<bean class="org.springframework.security.provisioning.JdbcUserDetailsManager">
<property name="dataSource" ref="dataSource"/>
</bean>
When running unit test all is fine. When starting my web app, which has it's own appcontext.xml including the original appcontext.xml, I get an duplicate error:
No unique bean of type [org.springframework.security.provisioning.JdbcUserDetailsManager] is defined: expected single matching bean but found 2: [org.springframework.security.provisioning.JdbcUserDetailsManager#0, org.springframework.security.provisioning.JdbcUserDetailsManager#1]
How can I refine my two appcontext.xml in order to get both, the service layer tests and the webapp running respectively?
Thanks Er