2014/1/13 Bob DeRemer <[email protected]>:

Tomcat version =?

> We're trying to determine if it's possible to build a WAR with an embedded 
> META-INF/Context.xml that defines the webapp path to be different then the 
> WAR file name.

Not possible.

BTW, the file name is "context.xml" (case sensitively).

>  Let's say we have AppServer-<version>.war, but we want to access it as: 
> http://<host>/Server.

Rename your war file to  ROOT.war or  ROOT##AppServer-<version>.war.

The latter naming works on Tomcat 7 and 8 only.

>  In addition, we want to support uploading/installing the WAR both from the 
> Manager app as well as using ftp/command-line to copy the WAR and restart 
> Tomcat.  This way, it's pretty much automatic without editing/creating 
> additional XML files.
>
> If this works, then we can have identifiable WAR files, but with a 
> common/standard webapp path.
>
> We have reviewed the docs and the only approach that has worked for us is 
> adding a separate Context element to the <Tomcat>/conf/Server.xml file.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to