I keep getting into the same type of error condition any time when I try to use custom filters.
Here is the error message with a custom AuthenticationProcessingFilter:
Here is my application-security.xml file.Caused by: org.springframework.security.config.SecurityConfig urationException: Filters 'MyCustomAuthenticationProcessingFilter[ order=700; ]' and 'org.springframework.security.ui.webapp.Authentica tionProcessingFilter[ order=700; ]' have the same 'order' value. When using custom filters, please make sure the positions do not conflict with default filters. Alternatively you can disable the default filters by removing the corresponding child elements from <http> and avoiding the use of <http auto-config='true'>.
I am confused, why it keeps saying that I should avoid using auto-config="true". I am not using that, and my understanding is that auto-config="false" is the default value.Code:<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-2.0.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.1.xsd"> <http entry-point-ref="authenticationProcessingFilterEntryPoint"> <intercept-url pattern="/login.jsp" filters="none"/> <intercept-url pattern="/expire.html*" filters="none"/> <intercept-url pattern="/*.html" access="ROLE_USER" /> <form-login login-page='/login.jsp' login-processing-url="/j_spring_security_check" default-target-url='/dashboard.htm l' always-use-default-target='true' authentication-failure-url="/login.jsp?login_error=1"/> <concurrent-session-control max-sessions="1" exception-if-maximum-exceeded="true" expired-url="/login.jsp?login_error= 2"/> </http> <authentication-provider user-service-ref="myCustomUserDetailsService"> <password-encoder hash="plaintext"/> </authentication-provider> <beans:bean id="myCustomUserDetailsService" class="MyCustomUserDetailsService"> <beans:property name="dataSource" ref="dataSource"/> </beans:bean> <beans:bean id="authenticationProcessingFilter" class="MyCustomAuthenticationProcessingFilter"> <custom-filter position="AUTHENTICATION_PROCESSING_FILTER" /> <beans:property name="defaultTargetUrl" value="/dashboard.html" /> <beans:property name="authenticationManager" ref="authenticationManager" /> </beans:bean> <beans:bean id="authenticationProcessingFilterEntryPoint" class="org.springframework.security.ui.webapp.AuthenticationProcessingFilterEntryPoint"> <beans:property name="loginFormUrl" value="/login.jsp" /> <beans:property name="forceHttps" value="false" /> </beans:bean> <authentication-manager alias="authenticationManager" /> </beans:beans>
Any help is a`ppreciated.


