[ https://issues.apache.org/jira/browse/JSPWIKI-800?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Juan Pablo Santos RodrÃguez resolved JSPWIKI-800. ------------------------------------------------- Resolution: Fixed Fix Version/s: 2.10.2 setting this as resolved as it seems a duplicate of JSPWIKI-870, which was fixed on 2.10.2-svn-8. > jspwiki.policy does not exist, or the SecurityManager prohibited access to it > ----------------------------------------------------------------------------- > > Key: JSPWIKI-800 > URL: https://issues.apache.org/jira/browse/JSPWIKI-800 > Project: JSPWiki > Issue Type: Bug > Affects Versions: 2.9.1 > Environment: MS Windows Server 2003 R2 > Apache Tomcat 6.0.20 Server > JSPWiki 2.9.1 > Reporter: Curtis Pendleton > Fix For: 2.10.2 > > Attachments: jspwiki.properties > > > 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} -- This message was sent by Atlassian JIRA (v6.3.4#6332)