Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0
-
None
-
Jetty servlet container
Description
JSPWiki currently uses two servlet filters (WikiServletFilter and StripesFilter).
For JSPWiki to init correctly the StripesFilter has to init first, if it's not the following error will occur:
ERROR org.apache.wiki.WikiEngine - Failed to start managers. java.lang.IllegalStateException: WikiRuntimeConfiguration not found!
The order of initialization of these filters is different per container (tomcat works, jetty doesn't).
The JEE spec also does not guarantee the order of filter init'ing.
It appears that in Jetty the order of init'ing is determined by the order the filters appear in the web.xml. So a very wrong workaround is to place WikiServletFilter after StripesFilter.
Possible solution approach:
Lazy init'ing of all filters except the StripesFilter