Page 1 of 2
Fresh installation after 404 Error
PostPosted:Fri Sep 12, 2014 10:26 am
by gencelg
Hello,
I am new to tomcat and I install the OpenKM but can not see any page. Always getting 404 error.
I search forum and do most of them but result is the same.
http://localhost:8180/OpenKM 404 error
Catalina.log file attached. Can you help me?
Re: Fresh installation after 404 Error
PostPosted:Sat Sep 13, 2014 5:22 pm
by jllort
My first impression could be you got a problem with jdk I saw in your path C:\Program Files\Java\jre1.8.0_20\bin, I suggest you use sun jdk 1.7 and to be sure you're starting up with it set JAVA_HOME environment var to jdk 1.7 ( when starting app must see at the begging what version is using ).
Re: Fresh installation after 404 Error
PostPosted:Mon Sep 15, 2014 8:10 am
by gencelg
Thanks for reply,
I change the setenv.bat java_home value to orginal value C:\openkm630\java. Still same 404 error.
Re: Fresh installation after 404 Error
PostPosted:Tue Sep 16, 2014 7:22 am
by Catscratch
Your log tells that the bean creation fails. Seems like a wrong configuration. Can you attach the config files (server.xml, config.xml, web.xml). I also got this error in the past, but I don't remember how I solved it. Think is has something to do with the configuration, but I'm not completely sure.
Re: Fresh installation after 404 Error
PostPosted:Tue Sep 16, 2014 8:05 am
by gencelg
Hello,
The Conf folder is attached.
Re: Fresh installation after 404 Error
PostPosted:Tue Sep 16, 2014 9:34 am
by Catscratch
Hm ok. You config files look good.
I only got some additional stuff in the config.xml:
Code: Select all<WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
But I think, this is not your problem. Also I modified the server.xml like the following.
Code: Select all <Context path="" docBase="/opt/openkm63/webapps/OpenKM" />
</Host>
</Engine>
</Service>
</Server>
But this is only for convienence. Did you tried to remove the webapps/OpenKM folder and restart tomcat?
Re: Fresh installation after 404 Error
PostPosted:Wed Sep 17, 2014 6:26 am
by jllort
Stop tomcat. Remove files into log folder. Start and put the log here again.
Re: Fresh installation after 404 Error
PostPosted:Wed Sep 17, 2014 10:33 am
by gencelg
I am sending logs but now tomcat doesn't start.
Re: Fresh installation after 404 Error
PostPosted:Wed Sep 17, 2014 10:51 am
by Catscratch
You have a misconfiguration.
Code: Select allDocument base C:\openkm630\tomcat\webapps\opt\openkm63\webapps\OpenKM does not exist or is not a readable directory
Seems you used the wrong path. I think it should be: C:\openkm630\tomcat\webapps\OpenKM
Change it and your tomcat will start.
Re: Fresh installation after 404 Error
PostPosted:Wed Sep 17, 2014 12:34 pm
by Synertic
Hi All,
I'm new and I'm facing with the same problem as well here.
Tried;
1) Installed the OpenKM to C:\OpenKM
2) Copied the file tcnative-1.dll from C:\openkm\tomcat\bin\win-x86 to C:\openkm\java\bin
3) Set Environment as
Code: Select allset JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=356m
set JAVA_OPTS=%JAVA_OPTS% -Djava.awt.headless=true -Dlog4j.configuration=file:///%CATALINA_HOME%/conf/log4j.properties
set JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=utf-8 -Dmail.mime.ignoreunknownencoding=true
set PATH=%PATH%;%CATALINA_HOME%\lib\sigar
set JAVA_HOME=C:\openkm\java
set CATALINA_HOME=C:\openkm\tomcat
4) Then started the configtest.bat and got no any error
5) Then start the server.
So it says ;
HTTP Status 404 - /OpenKM
type Status report
message /OpenKM
description The requested resource is not available.
Apache Tomcat/7.0.53
When I try to reach the OpenKM as
http://127.0.0.1:8080/OpenKM and also if I even try to get the Tomcat Server page as using
http://127.0.0.1:8080, the same error message comes up. Doesn't it strange to get the same "HTTP Status 404 - /OpenKM" error if I'm even trying to access the Tomcat Server Page ?
The "Conf" and "Log" folders are added to the message.
Would you please help me to solve the problem ?
Thanks in advance to all your helps.
(32.21 KiB) Downloaded 267 times
Re: Fresh installation after 404 Error
PostPosted:Fri Sep 19, 2014 5:20 pm
by jllort
I can not openkm tomcat.rar file, can you post again logs as you've done with logs.zip.
This is fresh installation, sure ? because the folder /opt/tomcat63 seems something more near linux path than windows
Re: Fresh installation after 404 Error
PostPosted:Fri Sep 19, 2014 11:28 pm
by Synertic
jllort wrote:I can not openkm tomcat.rar file, can you post again logs as you've done with logs.zip.
This is fresh installation, sure ? because the folder /opt/tomcat63 seems something more near linux path than windows
Hi, Jllort
Firstly, thank you for your kind reply yes it was a fresh install of v.6.3 communitiy edition (MD5 : BC9493739C20C390EE508E61560E881E openkm-6.3.0-community-windows-installer.exe) on a Windows XP 32 Bit machine and also there is no second OS installed on it (eg:any linux distribution)
The log shot belongs to fresh install and shot were taken just after first start in order to avoid inflation of the logs. I have tried to uninstall - re-install - conf modifications, etc. several times but got no success.
After your post I've re-downloaded the installer and tried to install the openkms on my personal computer, in which is connected to different network from first one, in order to get more information about the matter but suprisingly got the exact same error again. The second machine is a Windows 8 64 Bit and after getting no error from configtest.bat and started the tomcat server, the adress
http://127.0.0.1:8080/OpenKM and
http://127.0.0.1:8080 gives the same 404 error. I've took a glance to logs that belongs to this 2nd machine and the errors given seems the same.
You can find both of the "logs" and "conf" folders belong two different configurations as attached as a zip file.
Win XP 32 Logs (35.44 KiB) Downloaded 296 times
Win 8 64 Logs (34.82 KiB) Downloaded 278 times
Regards...
Re: Fresh installation after 404 Error
PostPosted:Sun Sep 21, 2014 4:17 pm
by jllort
I suspect problem is with something in your %PATH% and java, because the problem is when you're deploying ws.
Download latest sun jdk 1.7
set JAVA_HOME path
change setenv.bat with this path
I suggest try with 64 windows OS than windows XP 32. Other suggestion is do it on a clean server or computer to prevent other software installed what could be the cause of the problem. I can confirm to you that openkm has not problem on windows 32 or 64, the problems normally comes when installing on server with a lot of testing software etc...
If you got some firewall I suggest disable it.
Re: Fresh installation after 404 Error
PostPosted:Mon Sep 22, 2014 6:14 am
by Synertic
Hi Again,
I've Installed the JDK 1.7 and tried to change JAVA_HOME as C:\Program Files\Java\JDK17 but got no success. The same error has been thrown. Then tried to create a virtual machine on my personal computer and installed only the JDK 1.7 and tried to install and set environment but got the same error.
It doesn't work on even a fresh OS installed machine that I can't figure it out.
Re: Fresh installation after 404 Error
PostPosted:Mon Sep 22, 2014 7:44 pm
by Synertic
Hi Again,
Eventually I could figure it out !
The same things were only the languages (Turkish) for the 3 machines that I used and focused on Local Settings. Then I've found that The CXF 2.0.1 (which you used in war) has a bug in it and doesn't work properly with Turkish Locale. So that, I've replaced the file xmlschema-core-2.0.1.jar with xmlschema-core-2.0.2.jar (download from :
http://mvnrepository.com/artifact/org.a ... core/2.0.2) in \\openkm\tomcat\webapps\OpenKM\WEB-INF\lib and could make it to start the server.
Thank you for all your kind helps.
Regards..