Hi Marten,
Thanks for quick reply. I will use in future. since this was my first post, I didn't know the convention.
I prefixed "beans" as follows:
Code:
<beans:bean id="dummyAuthenticationProvider" class="com.cricwebportal.server.DummyAuthenticationProvider" >
<custom-authentication-provider/>
</beans:bean>
and I got another error saying "The matching wildcard is strict, but no declaration can be found for element 'custom-authentication-provider'.".
and after doing some googleing I found out the custom-authentication-provider should be the child of authentication-manager.
Here is my latest configuration:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/security"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd">
<global-method-security secured-annotations="enabled" jsr250-annotations="disabled" />
<beans:bean id="springSecurityFilterChain" class="org.springframework.web.filter.DelegatingFilterProxy" />
<beans:bean id="dummyAuthenticationProvider" class="com.xxx.server.DummyAuthenticationProvider" />
<authentication-manager>
<authentication-provider ref='dummyAuthenticationProvider'>
</authentication-provider>
</authentication-manager>
</beans:beans>
This configuration compiles fines but haven't tested the functionality yet.
Thanks,
Ravi