• Fresh installation after 404 Error

  • Problems with installing OpenKM? No problemo, the solution is closer than you think.
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.
 #29909  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 ).
 #29931  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.
 #29936  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?
 #29950  by jllort
 
Stop tomcat. Remove files into log folder. Start and put the log here again.
 #29959  by Catscratch
 
You have a misconfiguration.
Code: Select all
Document 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.
 #29961  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 all
set 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
 #29989  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
 #29998  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 297 times
Win 8 64 Logs
(34.82 KiB) Downloaded 278 times
Regards...
 #30033  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.
 #30039  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.
 #30044  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..

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.