Compile sources to war and change it in the folder does not work

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
OpenDev
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Wed Mar 15, 2017 7:47 am

Compile sources to war and change it in the folder does not work

Post by OpenDev » Wed Mar 15, 2017 8:07 am

Hi guys !

I've recently installed the OpenKM bundle (openkm-6.3.2-community-tomcat-bundle.zip) on both linux and windows and everything worked perfectly.

I'm now playing a bit with the code which I downloaded by checking out the svn branch (6.3). I can compile it and my war file is generated so I guess everything went well.

The issue is when I'm trying to replace the old OpenKM.war file (located in tomcat/webapps) by the new generated one, I'm getting a 404 error. (HTTP 404 - /OpenKM/frontend/index.jsp)

I don't know if it's because I've compiled the project in a bad way (I just compiled it by running mvn compile war:war after building and downloading all the dependencies and everything) or if the 6.3 branch is not really the same source code than my original bundle.

Do you have any hint for me ?

Thank you in advance :)

Note : I stopped and started back the catalina.bat script when I changed the war file.
Also, I don't have the "portable openkm development environment", I just built my project with Eclipse. But I don't think it matters.

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

Re: Compile sources to war and change it in the folder does not work

Post by jllort » Thu Mar 16, 2017 11:53 am

Try compiling from command line:
mvn clean package -Dmaven.test.skip=true

Might be the problem is not in war file. Does the war file correctly deployed or you are getting some error while deploying ? in your target/OpenKM the frontend folder is present ? check the contents into your OpenKM.war to verify it has the frontend folder

OpenDev
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Wed Mar 15, 2017 7:47 am

Re: Compile sources to war and change it in the folder does not work

Post by OpenDev » Thu Mar 16, 2017 2:58 pm

Hi jllort,

Hoped you would answer to my post ahah.
You were right, my OpenKM folder did not contain the frontend folder. I'm not sure why as the catalina script deployed everything perfectly.

I just had to extract my OpenKM.war to the right folder by hand.

All sorted now, thank you very much :)

Post Reply

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests