kunal dabir (Migrated from SEC-1812) said:
<security:user name="admin" password="admin" authorities="ROLE_USER, ROLE_ADMIN" />
<security:user name="user" password="user" authorities="ROLE_USER" />
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [application-security.xml]; nested
exception is java.lang.IllegalStateException: AuthenticationManager has already been registered!
As one would expect with Plain Old Spring Beans (POSB ;-0), namespaced elements can not be overridden. I don't know if that's intentional, but poor user (like me) is taken by surprise to see it not working.
Luke Taylor said:
I've replace the assertion with a warning when the global AuthenticationManager is overwritten. Note that the changes in SEC-1847 may also be of interest.