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

Execption when running the .war file without unpacking it

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.8.3, 3.0
    • None
    • Pax-Web 0.7.2, Felix 2.0.2, Pax-Runner

    Description

      When JSPWiki is run directly from the .war (not unpacking it into a directory) startup fails with the following exception:

      java.lang.IllegalArgumentException: File /WEB-INF/jspwiki.policy does not exist, or the SecurityManager prohibited access to it.
      at org.freshcookies.security.policy.PolicyReader.<init>(PolicyReader.java:188)
      at org.freshcookies.security.policy.LocalPolicy.refresh(LocalPolicy.java:324)
      at com.ecyrd.jspwiki.auth.AuthorizationManager.initialize(AuthorizationManager.java:416)
      at com.ecyrd.jspwiki.WikiEngine.initialize(WikiEngine.java:556)
      at com.ecyrd.jspwiki.WikiEngine.<init>(WikiEngine.java:403)
      at com.ecyrd.jspwiki.WikiEngine.getInstance(WikiEngine.java:344)
      at com.ecyrd.jspwiki.ui.WikiServletFilter.init(WikiServletFilter.java:79)
      at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)

      Other files from WEB-INF are read without problems, e.g. web.xml:

      [FelixStartLevel] DEBUG org.ops4j.pax.web.service.jetty.internal.HttpServiceContext - getting resource: [/WEB-INF/web.xml]
      [FelixStartLevel] DEBUG org.ops4j.pax.web.extender.war.internal.WebAppWebContainerContext - Searching bundle [JSPWiki [1]] for resource [/WEB-INF/web.xml], normalized to [WEB-INF/web.xml]
      [FelixStartLevel] DEBUG org.ops4j.pax.web.extender.war.internal.WebAppWebContainerContext - Resource found as url [bundle://1.0:36/WEB-INF/web.xml]
      [FelixStartLevel] DEBUG org.ops4j.pax.web.service.jetty.internal.HttpServiceContext - found resource: bundle://1.0:36/WEB-INF/web.xml

      Attachments

        1. jspwiki.bnd
          3 kB
          Matthias Küspert
        2. JSPWIKI-646.patch
          4 kB
          Harry Metske
        3. jspwiki-conf-1.0.0-SNAPSHOT.jar
          17 kB
          Matthias Küspert
        4. paxrunner.log
          34 kB
          Harry Metske

        Activity

          People

            metskem Harry Metske
            mkuespert Matthias Küspert
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: