Ben, Thanks. It works fine.
Shishir -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Alex Sent: Tuesday, August 31, 2004 10:39 PM To: [EMAIL PROTECTED] Subject: Re: [Acegisecurity-developer] Problems when trying to deploy contacts.war on JRun Shishir K. Singh wrote: >Ben, > >Even if I use ContextLoaderServlet, won't the filters get created >before ContextLoaderListener. In that case, the "init" of the filters >will be called even before the Spring context is available and thus, >the WebApplicationContextUtils.getRequiredWebApplicationContext will >fail in the filters. > >I changed the ContextLoaderListener to ContextLoaderServlet in >contacts's web.xml and got the same error when deploying in tomcat now. > > > > Yes, you're right. I've just committed to CVS HEAD an enhancement to FilterToBeanProxy which enables it to lazily initialize the proxied Filter (ie on the first HTTP request, not at filter initialization time). Just set initialization property "init" to "lazy". Please let me know if this works OK. Ben ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ Acegisecurity-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idP47&alloc_id808&op=click _______________________________________________ Acegisecurity-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer