Hi
I wrote a servlet(filter) which should intercept logout url and audit the messag in database. but spring is ignoring logout but intercepting all other urls.
this is my config.(i have removed other tags just to avoid consudtion)
<security:http auto-config="true" >
<security:custom-filter position="LOGOUT_FILTER" ref="ifmLogoutFilter"/>
</security:http>
i am agetting following error because of (http auto-config="true" ), but i want to user auto config to tue;
basically my queation is , how would i intercept logout url and audit the message in db.
Exception
Context initialization failed org.springframework.beans.factory.parsing.BeanDefi nitionParsingException: Configuration problem: Failed to import bean definitions from relative location [./wap-security.xml]
Offending resource: ServletContext resource [/WEB-INF/classes/wap-rs.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefi nitionParsingException: Configuration problem: Filter beans '<ifmLogoutFilter>' and 'Root bean: class [org.springframework.security.web.authentication.lo gout.LogoutFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null' 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'>.


Reply With Quote
