tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46243] Filter init() fails, still put into service
Date Wed, 26 Aug 2009 18:58:23 GMT

Mark Thomas <> changed:

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

--- Comment #3 from Mark Thomas <> 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

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

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message