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

WEB-INF\jspwiki.policy does not exist, or the SecurityManager prohibited access to it.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 2.10
    • 2.10
    • Templates and UI
    • Windows 8.1
      Apache Tomcat/7.0.53
      Java SE Development Kit 8 Update 5 (64 bit)
      JSPWiki.war 2.10.0

    Description

      When trying to deploy the JSPWiki.war file the following exceptions occur

      2014-05-13 14:49:41,351 [localhost-startStop-1] INFO org.apache.wiki.auth.AuthorizationManager - We found security policy URL: file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/WDSWiki/WEB-INF/jspwiki.policy and transformed it to file C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%207.0\webapps\WDSWiki\WEB-INF\jspwiki.policy
      2014-05-13 14:49:41,351 [localhost-startStop-1] FATAL org.apache.wiki.WikiEngine - Failed to start managers.
      java.lang.IllegalArgumentException: File C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%207.0\webapps\WDSWiki\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 org.apache.wiki.auth.AuthorizationManager.initialize(AuthorizationManager.java:502)
      at org.apache.wiki.WikiEngine.initialize(WikiEngine.java:586)
      at org.apache.wiki.WikiEngine.<init>(WikiEngine.java:430)
      at org.apache.wiki.WikiEngine.getInstance(WikiEngine.java:370)
      at org.apache.wiki.ui.WikiServletFilter.init(WikiServletFilter.java:82)
      at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
      at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
      at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
      at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
      at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      2014-05-13 14:49:41,366 [localhost-startStop-1] ERROR org.apache.wiki.WikiEngine - ERROR: Failed to create a Wiki engine, stacktrace follows
      org.apache.wiki.api.exceptions.WikiException: JSPWiki: Unable to load and setup properties from jspwiki.properties. Failed to start managers: File C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%207.0\webapps\WDSWiki\WEB-INF\jspwiki.policy does not exist, or the SecurityManager prohibited access to it.
      at org.apache.wiki.WikiEngine.<init>(WikiEngine.java:440)
      at org.apache.wiki.WikiEngine.getInstance(WikiEngine.java:370)
      at org.apache.wiki.ui.WikiServletFilter.init(WikiServletFilter.java:82)
      at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
      at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
      at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
      at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
      at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: org.apache.wiki.api.exceptions.WikiException: Failed to start managers: File C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%207.0\webapps\WDSWiki\WEB-INF\jspwiki.policy does not exist, or the SecurityManager prohibited access to it.
      at org.apache.wiki.WikiEngine.initialize(WikiEngine.java:636)
      at org.apache.wiki.WikiEngine.<init>(WikiEngine.java:430)
      ... 18 more
      Caused by: java.lang.IllegalArgumentException: File C:\Program%20Files\Apache%20Software%20Foundation\Tomcat%207.0\webapps\WDSWiki\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 org.apache.wiki.auth.AuthorizationManager.initialize(AuthorizationManager.java:502)
      at org.apache.wiki.WikiEngine.initialize(WikiEngine.java:586)
      ... 19 more

      Attachments

        Activity

          People

            Unassigned Unassigned
            tjohnson45 Tony Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: