https://issues.apache.org/bugzilla/show_bug.cgi?id=46243


Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME


--- Comment #3 from Mark Thomas <ma...@apache.org> 2009-08-26 19:58:19 BST ---
I've done some testing and I can't reproduce this. If the init() method throws
a CNFE then the context won't start. In fact, if the init() method throws any
kind of exception the context won't start.

As far as I can tell, the Tomcat code is failing safely by not starting a
context if the filters cannot be initialised.

The parts of SRV.6.2.1 that refer to re-trying the filter init() at some later
time are all "may" requirements. Tomcat does not currently implement these. If
you'd like to see that functionality, please raise a separate enhancement
request.

As far as this bug goes, I am closing it as works for me. If you have a filter
that throws an exception but still allows the context to start then please
attach a test case and I'll take another look.

I wrote a test case for this and will commit it shortly. It is
org.apache.catalina.core.StandardContext.testBug46243()

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to