Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-534

JSPWiki initalization fails the if the StripesFilter is not the first one to initialize

    XMLWordPrintableJSON

Details

    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

      Attachments

        Activity

          People

            Unassigned Unassigned
            metskem Harry Metske
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: