Page 1 of 1

Estado HTTP 404 – Not Found (required resource is not available

PostPosted:Wed Apr 03, 2019 7:45 pm
by tzhor57
I have just installed OpenKM on a Debian 9 system. I used the installer downloaded from https://www.openkm.com/en/download.html, however once I start the service and point my browser to localhost:8080 I receive an HTTP - Not found indicating that the required resource is not available.

The log file shows the followiing, but I have not been able fix the problem. I be very grateful if someone could help me. Thanks!
Code: Select all
03-Apr-2019 12:23:36.582 GRAVE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal 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:167)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:986)
	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: Unable to complete the scan for annotations for web application [/OpenKM] due to a StackOverflowError. Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies. The class hierarchy being processed was [org.bouncycastle.asn1.ASN1EncodableVector->org.bouncycastle.asn1.DEREncodableVector->org.bouncycastle.asn1.ASN1EncodableVector]
	at org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:2110)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2054)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:2000)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1970)
	at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1923)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1163)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:775)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5105)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 10 more

03-Apr-2019 12:23:36.586 GRAVE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Error durante el despliegue del archivo [/home/openkm/tomcat-8.5.24/webapps/OpenKM.war] de la aplicación web
 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:756)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:986)
	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

Re: Estado HTTP 404 – Not Found (required resource is not available

PostPosted:Fri Apr 05, 2019 8:05 am
by jllort
Seems a problem with memory:
Code: Select all
stackOverflowError. Possible root causes include a too low setting for -Xss 
Edit the setenv.sh or setenv.bat ( you will find them into tomcatXXX/bin ) and edit the JAVA parameters increasing or adding the -Xss value

Re: Estado HTTP 404 – Not Found (required resource is not available

PostPosted:Sat Apr 06, 2019 1:05 am
by tzhor57
Thank you so much. That solved the problem.
By the way, I had an idea of the possible root cause, but couldn't find instructions on how to fix it. Thanks again.

Re: Estado HTTP 404 – Not Found (required resource is not available

PostPosted:Mon Apr 22, 2019 2:32 pm
by mushfiqur.rahman
Can you please be more specific as to which section/ portion of the file mentioned (setenv.sh and setenv.bat) needs to be edited?

This is what I get when I open the setenv.bat file:
Code: Select all
set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx2048m -XX4096:+UseG1GC -Djava.awt.headless=true
set JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -Dmail.mime.ignoreunknownencoding=true
rem set JAVA_OPTS=%JAVA_OPTS% -Dhttp.proxyHost=proxyhostURL -Dhttp.proxyPort=proxyPortNumber
set PATH=%PATH%;%CATALINA_HOME%\lib\sigar
And this is what I get when I open the setenv.sh file:
Code: Select all
JAVA_OPTS="$JAVA_OPTS -Xms256m -Xmx2048m -XX4096:+UseG1GC -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true"
JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -Dmail.mime.ignoreunknownencoding=true"
# JAVA_OPTS="$JAVA_OPTS -Dhttp.proxyHost=proxyhostURL -Dhttp.proxyPort=proxyPortNumber"
CATALINA_PID=$CATALINA_HOME/catalina.pid
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib/sigar
I don't understand what to edit here. You mentioned to edit or add -Xss value. I don't seem to find -Xss here. Can you please pinpoint which one to edit or add, perhaps, with an example?