cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the context path of static WAR?

Ervin_
Champ in-the-making
Champ in-the-making

Hello,

I could deploy correctly the nuxeo distribution using the static war inside an existing tomcat instance managing correctly the min and max memory size inside catalina (tomcat instance). However I have problems when I change the context path of my distribution from /nuxeo to /myapp following the steps in http://doc.nuxeo.com/display/ADMINDOC/Changing+context+path .

The error is: "Pack failed. FileNotFoundException: C:\nuxeo-cap-5.5.tomcat\conf\Catalina\localhost\nuxel.xml", even if I've changed the xml file in myapp.xml. I've gone a step further editing the TOMCAT_CONFIG parameter inside TomcatConfigurator.java and testing the TomcatConfigurator.getTomcatConfig() method which behaves correctly printing the correct path "conf\Catalina\localhost\myapp.xml" (TomcatConfigurator.class resides inside $NUXEO_HOME\bin\nuxeo-launcher.jar) .

Is there any other step I haven't considered?

Thank you in advance,

Ervin

2 REPLIES 2

Florent_Guillau
World-Class Innovator
World-Class Innovator

This should work provided you have at least Nuxeo 5.5 hotfix 4, as using a non-nuxeo context for the pack should have been fixed by NXP-8947.

Julien_Carsique
Elite Collaborator
Elite Collaborator

Bump!<br/>Did you get the solution from one of the following answers or by yourselves? If so, please mark it as accepted or share your own.<br/>Thanks