Page 1 of 1

Windows 7 - Tomcat starts, OpenKM won't

PostPosted:Wed Jan 09, 2013 7:02 pm
by crossfire87
I'm evaluating a number of document management products for a client, and was hoping to give OpenKM a try. But I've had nothing but problems with the installation over the last 2 days, tried different versions and different windows 7 machines to no avail. Any help would be greatly appreciated.

Right now I'm using the openkm-6.2.2-community-tomcat-bundle. I've got JDK 1.6 installed and the java environment variables set (I had also tried 1.7 earlier, but was no better off). Whenever I run the startup command, tomcat will boot however it will show errors relating to the openkm startup. Post-startup I'm able to see Tomcat installed using port 8080, but the OpenKM url gives me a 403.

This is the output I'm getting for this particular setup, when I run 'catalina.bat start' :
Code: Select all
2013-01-09 12:51:05,037 [    main] INFO  org.apache.catalina.core.AprLifecycleListener - The APR based Apache Tomcat Native library which allows optimal performance in production environments was notfound on the java.library.path: C:\Program Files (x86)\Java\jdk1.6.0\jre\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\TortoiseSVN\bin;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Java\jre7\bin;C:\openkm-6.2.2-community-tomcat-bundle\tomcat-7.0.27\lib\sigar;C:\openkm-6.2.2-community-tomcat-bundle\tomcat-7.0.27\lib\sigar
2013-01-09 12:51:05,259 [    main] INFO  org.apache.coyote.http11.Http11Protocol - Initializing ProtocolHandler ["http-bio-0.0.0.0-8080"]
2013-01-09 12:51:05,272 [    main] INFO  org.apache.coyote.ajp.AjpProtocol - Initializing ProtocolHandler ["ajp-bio-127.0.0.1-8009"]
2013-01-09 12:51:05,274 [    main] INFO  org.apache.catalina.startup.Catalina - Initialization processed in 427 ms
9-Jan-2013 12:51:05 PM com.openkm.util.LoggerWatchdog doOnChangeINFO: *** Log4j configuration file changed ***
2013-01-09 12:51:05,322 [    main] INFO  org.apache.catalina.core.StandardService - Starting service Catalina
2013-01-09 12:51:05,322 [    main] INFO  org.apache.catalina.core.StandardEngine - Starting ServletEngine: Apache Tomcat/7.0.27
2013-01-09 12:51:05,335 [pool-2-thread-1] INFO  org.apache.catalina.startup.HostConfig - Deploying web application archive C:\openkm-6.2.2-community-tomcat-bundle\tomcat-7.0.27\webapps\OpenKM.war
2013-01-09 12:51:06,384 [pool-2-thread-1] ERROR org.apache.catalina.core.ContainerBase - ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/OpenKM]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:962)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1603)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NoClassDefFoundError: com/openkm/core/PathNotFoundException
        at java.lang.Class.getDeclaredFields0(Native Method)
        at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
        at java.lang.Class.getDeclaredFields(Class.java:1743)
        at org.apache.catalina.startup.WebAnnotationSet.getDeclaredFields(WebAnnotationSet.java:452)

        at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:257)
        at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:136)
        at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:66)
        at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:381)
        at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:858)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:345)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5161)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        ... 11 more
2013-01-09 12:51:06,388 [pool-2-thread-1] ERROR org.apache.catalina.startup.HostConfig - Error deploying web application archive C:\openkm-6.2.2-community-tomcat-bundle\tomcat-7.0.27\webapps\OpenKM.war
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/OpenKM]]
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:898)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:962)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1603)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
2013-01-09 12:51:06,398 [pool-2-thread-1] INFO  org.apache.catalina.startup.HostConfig - Deploying web application directory C:\openkm-6.2.2-community-tomcat-bundle\tomcat-7.0.27\webapps\docs
2013-01-09 12:51:06,528 [pool-2-thread-1] INFO  org.apache.catalina.startup.HostConfig - Deploying web application directory C:\openkm-6.2.2-community-tomcat-bundle\tomcat-7.0.27\webapps\examples
2013-01-09 12:51:06,664 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
2013-01-09 12:51:06,667 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jstl/core is already defined
2013-01-09 12:51:06,669 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
2013-01-09 12:51:06,672 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
2013-01-09 12:51:06,676 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
2013-01-09 12:51:06,677 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
2013-01-09 12:51:06,679 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
2013-01-09 12:51:06,680 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
2013-01-09 12:51:06,681 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
2013-01-09 12:51:06,683 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
2013-01-09 12:51:06,686 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
2013-01-09 12:51:06,687 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
2013-01-09 12:51:06,690 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
2013-01-09 12:51:06,693 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
2013-01-09 12:51:06,694 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
2013-01-09 12:51:06,708 [pool-2-thread-1] INFO  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples] - ContextListener: contextInitialized()
2013-01-09 12:51:06,709 [pool-2-thread-1] INFO  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples] - SessionListener: contextInitialized()
2013-01-09 12:51:06,724 [pool-2-thread-1] INFO  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples] - ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@df2940')
2013-01-09 12:51:06,726 [pool-2-thread-1] INFO  org.apache.catalina.startup.HostConfig - Deploying web application directory C:\openkm-6.2.2-community-tomcat-bundle\tomcat-7.0.27\webapps\host-manager
2013-01-09 12:51:06,796 [pool-2-thread-1] INFO  org.apache.catalina.startup.HostConfig - Deploying web application directory C:\openkm-6.2.2-community-tomcat-bundle\tomcat-7.0.27\webapps\manager
2013-01-09 12:51:06,872 [pool-2-thread-1] INFO  org.apache.catalina.startup.HostConfig - Deploying web application directory C:\openkm-6.2.2-community-tomcat-bundle\tomcat-7.0.27\webapps\ROOT
2013-01-09 12:51:06,931 [    main] INFO  org.apache.coyote.http11.Http11Protocol - Starting ProtocolHandler ["http-bio-0.0.0.0-8080"]
2013-01-09 12:51:06,939 [    main] INFO  org.apache.coyote.ajp.AjpProtocol - Starting ProtocolHandler ["ajp-bio-127.0.0.1-8009"]
2013-01-09 12:51:06,940 [    main] INFO  org.apache.catalina.startup.Catalina - Server startup in 1665 ms
Any tips would be greatly appreciated. I've looked through the installation guides and videos, but none of them seem to address the errors I'm hitting.

Re: Windows 7 - Tomcat starts, OpenKM won't

PostPosted:Wed Jan 09, 2013 7:24 pm
by jllort
The problem is that you have installed openkm with a path which contains spaces. Simply uninstall and install under a path without spaces as is indicated in downloading webpage installation instructions.

Re: Windows 7 - Tomcat starts, OpenKM won't

PostPosted:Wed Jan 09, 2013 7:46 pm
by crossfire87
Sorry, which path are you referring to in particular? I'm not seeing any spaces offhand.

My current setup was extracted to 'C:\openkm-6.2.2-community-tomcat-bundle\'.

Re: Windows 7 - Tomcat starts, OpenKM won't

PostPosted:Wed Jan 09, 2013 8:04 pm
by crossfire87
Sorry to have bothered you, I think I've got a test environment working now. I just tried installing it on another windows 7 machine, using the same process I had done with this previous one, and it seems to be working there. I'll just work off of that machine. I'll post back if I hit any more problems. Thanks!