The filter will find ApplicatinContext before initialization of spring's servlet. So it'll cause an exception.Code:<filter> <filter-name>Acegi Filter Chain Proxy</filter-name> <filter-class>net.sf.acegisecurity.util.FilterToBeanProxy</filter-class> <init-param> <param-name>targetClass</param-name> <param-value>net.sf.acegisecurity.util.FilterChainProxy</param-value> </init-param> </filter>
I guess we have to use listener to load spring's context when use Acegi .
Would it be correct ?


It can ensure the applicationcontext loaded in time. I'll use it if I get into trouble when deploy in other appserver.