New User Trouble Getting Started.

Problems with installing OpenKM? No problemo, the solution is closer than you think.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
RussellS
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Thu Apr 14, 2016 6:02 am

New User Trouble Getting Started.

Post by RussellS » Thu Apr 14, 2016 6:28 am

Hi, I am a new user of OpenKM and have been testing it on my Linux system successfully. However, I want to run it permanently on my Windows 7 x64 media server platform as it is running 24/7.

I have installed OpenKM Community Version using the wizard installer (Openkm-6.3.1-community-windows-installer.exe) but was initially unable to get OpenKM to start and nothing appeared in the terminal window. Following some advice in these forums I resolved this issue by modifying the file '...tomcat\bin\setenv.bat' and changing the setting '-Xmx2048m' to '-Xmx512m'. Now when I start OpenKM I get a lot of scrolling text in the Tomcat terminal window but I cannot connect to it from the web browser at 'http://localhost:8080/OpenKM/'. When I try this I get the response

Code: Select all

HTTP ERROR: 404
Problem accessing /OpenKM/. Reason
   Not Found
Here is the catalina log file which does appear to show some errors in the first three lines but I don't know what to do about them.

Code: Select all

2016-04-14 06:45:59,614 [main] INFO  org.apache.catalina.core.AprLifecycleListener- The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\openkm-6.3.1-community\java\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\openkm-6.3.1-community\tomcat\lib\sigar;.
2016-04-14 06:45:59,726 [main] INFO  org.apache.coyote.http11.Http11Protocol- Initializing ProtocolHandler ["http-bio-0.0.0.0-8080"]
2016-04-14 06:45:59,750 [main] ERROR org.apache.coyote.http11.Http11Protocol- Failed to initialize end point associated with ProtocolHandler ["http-bio-0.0.0.0-8080"]
java.net.BindException: Address already in use: JVM_Bind /0.0.0.0:8080
	at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413)
	at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:649)
	at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
	at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
	at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
	at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
	at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:821)
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:663)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
Caused by: java.net.BindException: Address already in use: JVM_Bind
	at java.net.DualStackPlainSocketImpl.bind0(Native Method)
	at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106)
	at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
	at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190)
	at java.net.ServerSocket.bind(ServerSocket.java:376)
	at java.net.ServerSocket.<init>(ServerSocket.java:237)
	at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:55)
	at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:403)
	... 17 more
2016-04-14 06:45:59,758 [main] ERROR org.apache.catalina.core.StandardService- Failed to initialize connector [Connector[HTTP/1.1-8080]]
org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8080]]
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
	at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
	at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:821)
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:663)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed
	at org.apache.catalina.connector.Connector.initInternal(Connector.java:980)
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
	... 12 more
Caused by: java.net.BindException: Address already in use: JVM_Bind /0.0.0.0:8080
	at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413)
	at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:649)
	at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
	at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
	at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)
	... 13 more
Caused by: java.net.BindException: Address already in use: JVM_Bind
	at java.net.DualStackPlainSocketImpl.bind0(Native Method)
	at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106)
	at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
	at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190)
	at java.net.ServerSocket.bind(ServerSocket.java:376)
	at java.net.ServerSocket.<init>(ServerSocket.java:237)
	at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:55)
	at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:403)
	... 17 more
2016-04-14 06:45:59,766 [main] INFO  org.apache.coyote.ajp.AjpProtocol- Initializing ProtocolHandler ["ajp-bio-127.0.0.1-8009"]
2016-04-14 06:45:59,784 [main] INFO  org.apache.catalina.startup.Catalina- Initialization processed in 395 ms
2016-04-14 06:45:59,824 [main] INFO  org.apache.catalina.core.StandardService- Starting service Catalina
2016-04-14 06:45:59,825 [main] INFO  org.apache.catalina.core.StandardEngine- Starting Servlet Engine: Apache Tomcat/7.0.61
2016-04-14 06:45:59,851 [localhost-startStop-1] INFO  org.apache.catalina.startup.HostConfig- Deploying web application archive C:\openkm-6.3.1-community\tomcat\webapps\OpenKM.war
2016-04-14 06:46:00,312 [localhost-startStop-1] ERROR org.apache.catalina.startup.ContextConfig- Unable to process file [C:\openkm-6.3.1-community\tomcat\webapps\OpenKM\WEB-INF\classes\com\openkm\dao\UserConfigDAO.class] for annotations
java.io.EOFException
	at java.io.DataInputStream.readInt(DataInputStream.java:392)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.readID(ClassParser.java:202)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:80)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2089)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2064)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2057)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2057)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2057)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1304)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5416)
	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:652)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1090)
	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1900)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
2016-04-14 06:46:10,207 [localhost-startStop-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:901)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1090)
	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1900)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: com/openkm/core/AccessDeniedException
	at java.lang.Class.getDeclaredFields0(Native Method)
	at java.lang.Class.privateGetDeclaredFields(Class.java:2397)
	at java.lang.Class.getDeclaredFields(Class.java:1806)
	at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
	at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:270)
	at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:139)
	at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:65)
	at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:415)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:892)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5416)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 10 more
Caused by: java.lang.ClassNotFoundException: com.openkm.core.AccessDeniedException
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
	... 24 more
2016-04-14 06:46:10,218 [localhost-startStop-1] ERROR org.apache.catalina.startup.HostConfig- Error deploying web application archive C:\openkm-6.3.1-community\tomcat\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:904)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1090)
	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1900)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
2016-04-14 06:46:10,224 [localhost-startStop-1] INFO  org.apache.catalina.startup.HostConfig- Deployment of web application archive C:\openkm-6.3.1-community\tomcat\webapps\OpenKM.war has finished in 10,372 ms
2016-04-14 06:46:10,225 [localhost-startStop-1] INFO  org.apache.catalina.startup.HostConfig- Deploying web application directory C:\openkm-6.3.1-community\tomcat\webapps\ROOT
2016-04-14 06:46:11,499 [localhost-startStop-1] INFO  org.apache.catalina.startup.HostConfig- Deployment of web application directory C:\openkm-6.3.1-community\tomcat\webapps\ROOT has finished in 1,273 ms
2016-04-14 06:46:11,500 [main] INFO  org.apache.coyote.ajp.AjpProtocol- Starting ProtocolHandler ["ajp-bio-127.0.0.1-8009"]
2016-04-14 06:46:11,507 [main] INFO  org.apache.catalina.startup.Catalina- Server startup in 11722 ms
If someone could offer some advice I would be very grateful.

Many thanks

jllort
Moderator
Moderator
Posts: 9644
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: New User Trouble Getting Started.

Post by jllort » Thu Apr 14, 2016 9:22 pm

The problem is caused because you have another tomcat running ( or another application what is binding the same ports is trying to use OpenKM ). You have two options, close the other application or change tomcat default ports by another ones. Take a look here for the last option http://wiki.openkm.com/index.php/Severa ... ame_server

RussellS
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Thu Apr 14, 2016 6:02 am

Re: New User Trouble Getting Started.

Post by RussellS » Sat Apr 16, 2016 9:09 am

Thanks very much for your help, I am now a step closer.

I followed your advice and changed the default port that tomcat is using (now 8181 instead of 8080). However, I have now encountered another issue which appears to be Java related. When I start OpenKM and connect to 'http://localhost:8181/OpenKM' I now get the following response:
HTTP Satatus 404 - /OpenKM/

type Status report
message /OpenKM/
description The requested resource is not available

Apache Tomcat/7.0.61
Once again here is the catalina log file:

Code: Select all

2016-04-16 09:58:34,751 [main] INFO  org.apache.catalina.core.AprLifecycleListener- The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\openkm-6.3.1-community\java\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\openkm-6.3.1-community\tomcat\lib\sigar;.
2016-04-16 09:58:34,866 [main] INFO  org.apache.coyote.http11.Http11Protocol- Initializing ProtocolHandler ["http-bio-0.0.0.0-8181"]
2016-04-16 09:58:34,891 [main] INFO  org.apache.coyote.ajp.AjpProtocol- Initializing ProtocolHandler ["ajp-bio-127.0.0.1-8009"]
2016-04-16 09:58:34,891 [main] INFO  org.apache.catalina.startup.Catalina- Initialization processed in 361 ms
2016-04-16 09:58:34,931 [main] INFO  org.apache.catalina.core.StandardService- Starting service Catalina
2016-04-16 09:58:34,931 [main] INFO  org.apache.catalina.core.StandardEngine- Starting Servlet Engine: Apache Tomcat/7.0.61
2016-04-16 09:58:34,956 [localhost-startStop-1] INFO  org.apache.catalina.startup.HostConfig- Deploying web application archive C:\openkm-6.3.1-community\tomcat\webapps\OpenKM.war
2016-04-16 09:58:35,436 [localhost-startStop-1] ERROR org.apache.catalina.startup.ContextConfig- Unable to process file [C:\openkm-6.3.1-community\tomcat\webapps\OpenKM\WEB-INF\classes\com\openkm\dao\UserConfigDAO.class] for annotations
java.io.EOFException
	at java.io.DataInputStream.readInt(DataInputStream.java:392)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.readID(ClassParser.java:202)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:80)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2089)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2064)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2057)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2057)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2057)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1304)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5416)
	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:652)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1090)
	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1900)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
2016-04-16 09:58:45,151 [localhost-startStop-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:901)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1090)
	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1900)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: com/openkm/core/AccessDeniedException
	at java.lang.Class.getDeclaredFields0(Native Method)
	at java.lang.Class.privateGetDeclaredFields(Class.java:2397)
	at java.lang.Class.getDeclaredFields(Class.java:1806)
	at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
	at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:270)
	at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:139)
	at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:65)
	at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:415)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:892)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5416)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 10 more
Caused by: java.lang.ClassNotFoundException: com.openkm.core.AccessDeniedException
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
	... 24 more
2016-04-16 09:58:45,161 [localhost-startStop-1] ERROR org.apache.catalina.startup.HostConfig- Error deploying web application archive C:\openkm-6.3.1-community\tomcat\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:904)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1090)
	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1900)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
2016-04-16 09:58:45,161 [localhost-startStop-1] INFO  org.apache.catalina.startup.HostConfig- Deployment of web application archive C:\openkm-6.3.1-community\tomcat\webapps\OpenKM.war has finished in 10,205 ms
2016-04-16 09:58:45,166 [localhost-startStop-1] INFO  org.apache.catalina.startup.HostConfig- Deploying web application directory C:\openkm-6.3.1-community\tomcat\webapps\ROOT
2016-04-16 09:58:46,521 [localhost-startStop-1] INFO  org.apache.catalina.startup.HostConfig- Deployment of web application directory C:\openkm-6.3.1-community\tomcat\webapps\ROOT has finished in 1,355 ms
2016-04-16 09:58:46,521 [main] INFO  org.apache.coyote.http11.Http11Protocol- Starting ProtocolHandler ["http-bio-0.0.0.0-8181"]
2016-04-16 09:58:46,526 [main] INFO  org.apache.coyote.ajp.AjpProtocol- Starting ProtocolHandler ["ajp-bio-127.0.0.1-8009"]
2016-04-16 09:58:46,531 [main] INFO  org.apache.catalina.startup.Catalina- Server startup in 11635 ms
The first line appears to be pointing to a java problem. I have checked '\tomcat\bin\setenv.bat' file and I have the line 'set JAVA_HOME=C:\openkm-6.3.1-community\java' which is pointing to the correct path.

I have installed Oracle Java Version 8 Update 77

I feel that I have made a mistake somewhere along the line but I'm not sure where.


Many thanks for any further help offered.

jllort
Moderator
Moderator
Posts: 9644
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: New User Trouble Getting Started.

Post by jllort » Sat Jul 30, 2016 10:36 pm

Sorry for late answering, but seems the post was pending approval and we has not seen it. That tomcat was not going right with JDK 1.8, must execute under jdk 1.7

Bummibaer
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: Thu Mar 31, 2016 12:13 pm

Re: New User Trouble Getting Started.

Post by Bummibaer » Wed Sep 21, 2016 5:41 pm

Hi,
I had the same problem.:
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path
I simply added the line:
set JAVA_OPTS=%JAVA_OPTS% -Djava.library.path=CATALINA_HOME%\bin\win-x86
to setenv.bat and it works.
Should the recognize the Installer!?
Also in the Line:
set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx2048m
is unnecessary, it is to little ( my tomcat fails with to few memory).
I deleted the memory flags, and it works now.

regards
Steffen
Win7

java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) Client VM (build 25.102-b14, mixed mode)

Openkm6.3

jllort
Moderator
Moderator
Posts: 9644
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: New User Trouble Getting Started.

Post by jllort » Fri Sep 23, 2016 9:49 am

Another thing can try is :
With jdk 64 bits, copy the win-x64 into bin folder and be sure in setenv.bat is not set any JAVA_HOME ( remove it, is it's there ) to be sure you are using the external one.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests