java.lang.IllegalArgumentException: File d:\Program%20Files\Apache%20Software%20Foundation\Tomcat%206.0\webapps\jc_wiki\WEB-INF\jspwiki.policy does not exist, or the SecurityManager prohibited access to it.

Apache's JIRA Issue Tracker | Curtis Pendleton | 3 years ago
  1. 0

    I am in the process of trying to install JSPWiki 2.9.1 on existing Apache Tomcat 6.0.20 Server that we have. I am currently running JSPWiki v2.8.4 on this server and it is working great under my context 'wiki'. I have unzipped the JSPWiki.war and placed it on my tomcat server as 'jc_wiki' under the web. I have only changed a few properties in properties file in order to start this app up. I will attach the properties file as well. I received the error below first and I removed 'commons-logging-api-1.0.4.jar' from the lib directory. I had to do this on v2.8.4 to get this to work also. {panel:title=First Error that I have fixed | borderStyle=dashed| borderColor=#ccc| titleBGColor=#F7D6C1| bgColor=#FFFFCE} Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.) (Caused by org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.)) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at com.opensymphony.oscache.base.Cache.<clinit>(Cache.java:42) ... 35 more {panel} This is the next error that I receive and I am unable to resolve it. I changed security of the whole Tomcat directory and children directories to have full access for the user that is running the Tomcat server and it did not fix the issue. The jspwiki.policy is located in "D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\jc_wiki\WEB-INF\jspwiki.policy". *Could this be an issue with the Tomcat server being installed on Windows with spaces in the install path?* {panel:title=jspwiki.policy not found Error| borderStyle=dashed| borderColor=#ccc| titleBGColor=#F7D6C1| bgColor=#FFFFCE} Starting up background thread: JSPWiki Lucene Indexer. Starting up background thread: WatchDog for 'JC Wiki'. log4j:WARN No appenders could be found for logger (com.opensymphony.oscache.base.algorithm.AbstractConcurrentReadCache). log4j:WARN Please initialize the log4j system properly. Starting up background thread: JSPWiki Lucene Indexer. Starting up background thread: WatchDog for 'JC Wiki'. java.lang.IllegalArgumentException: File d:\Program%20Files\Apache%20Software%20Foundation\Tomcat%206.0\webapps\jc_wiki\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:491) at org.apache.wiki.WikiEngine.initialize(WikiEngine.java:562) at org.apache.wiki.WikiEngine.<init>(WikiEngine.java:406) at org.apache.wiki.WikiEngine.getInstance(WikiEngine.java:346) at org.apache.wiki.ui.WikiServletFilter.init(WikiServletFilter.java:83) at org.apache.wiki.ui.WikiJSPFilter.init(WikiJSPFilter.java:74) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3800) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4450) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:583) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) {panel}

    Apache's JIRA Issue Tracker | 3 years ago | Curtis Pendleton
    java.lang.IllegalArgumentException: File d:\Program%20Files\Apache%20Software%20Foundation\Tomcat%206.0\webapps\jc_wiki\WEB-INF\jspwiki.policy does not exist, or the SecurityManager prohibited access to it.
  2. 0
    I was missing a partitioning column because I did not specify the "basePath" option on read
  3. 0
    Properties of subclasses may have to be referenced in a different way. More on this here: https://goo.gl/FvnBXb
    via goo.gl
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Some bots are sending malformed HTTP requests to your site. Try to find their IP addresses in the access logs and ask them to fix the bots or blacklist them.
  6. 0
    This error is caused by malformed HTTP request. You are trying to access unsecured page through https.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      File d:\Program%20Files\Apache%20Software%20Foundation\Tomcat%206.0\webapps\jc_wiki\WEB-INF\jspwiki.policy does not exist, or the SecurityManager prohibited access to it.

      at org.freshcookies.security.policy.PolicyReader.<init>()
    2. org.freshcookies.security
      LocalPolicy.refresh
      1. org.freshcookies.security.policy.PolicyReader.<init>(PolicyReader.java:188)
      2. org.freshcookies.security.policy.LocalPolicy.refresh(LocalPolicy.java:324)
      2 frames
    3. org.apache.wiki
      WikiJSPFilter.init
      1. org.apache.wiki.auth.AuthorizationManager.initialize(AuthorizationManager.java:491)
      2. org.apache.wiki.WikiEngine.initialize(WikiEngine.java:562)
      3. org.apache.wiki.WikiEngine.<init>(WikiEngine.java:406)
      4. org.apache.wiki.WikiEngine.getInstance(WikiEngine.java:346)
      5. org.apache.wiki.ui.WikiServletFilter.init(WikiServletFilter.java:83)
      6. org.apache.wiki.ui.WikiJSPFilter.init(WikiJSPFilter.java:74)
      6 frames
    4. Glassfish Core
      Catalina.start
      1. org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
      2. org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
      3. org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
      4. org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3800)
      5. org.apache.catalina.core.StandardContext.start(StandardContext.java:4450)
      6. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
      7. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
      8. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
      9. org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)
      10. org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)
      11. org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)
      12. org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
      13. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
      14. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      15. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
      16. org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
      17. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
      18. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
      19. org.apache.catalina.core.StandardService.start(StandardService.java:516)
      20. org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
      21. org.apache.catalina.startup.Catalina.start(Catalina.java:583)
      21 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    6. Glassfish Core
      Bootstrap.main
      1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
      2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      2 frames