tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46243] Filter init() fails, still put into service
Date Wed, 26 Aug 2009 18:58:23 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46243


Mark Thomas <markt@apache.org> changed:

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


--- Comment #3 from Mark Thomas <markt@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message