Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 0.7.3
-
Component/s: War Extender
-
Labels:None
Description
I have a webapp I've been developing in Jetty outside of OSGi. Now trying to convert it to an OSGi bundle using PAX tooling, I found that the declared filters were not running in the expected order.
In the debugger, I noticed that the order of filters in Jetty's filter chain corresponds to the order of the <filter> elements in web.xml, rather than the order of the <filter-mapping> elements, as expected.
By reorganising web.xml, I was able to continue on to debugging the next lot of NCDF errors ![]()

Indeed this is a bug. The section SRV.6.2.4 of Servlet specs 2.5 (I suppose is the same in earlier versions) specify that the filers should be invoked and placed in the chain according to the order in <filter-mapping> document, where first are <url-pattern> and then <servlet-name> mappings.