fritzdimmel schrieb:

I'd like to define somewhere (context.xml or server.xml??), to
take a WAR called mywebapp.war and deploy it to the folder
webapps/xyz.

Browse to the Tomcat docs on the context [1], read at least the
introduction and the section on "Common Attributes". Note that
Context/@path allows you to do just what you want, but also note
that:

| The value of this field must not be set except when statically
| defining a Context in server.xml, as it will be inferred from the
| filenames used for either the .xml context file or the docBase.

Also note that for Tomcat 6, this is *not* a recommended practice:

| For Tomcat 6, unlike Tomcat 4.x, it is NOT recommended to place
| <Context> elements directly in the server.xml file. This is because
| it makes modifing the Context configuration more invasive since the
| main conf/server.xml file cannot be reloaded without restarting
| Tomcat.

So you even might want to reconsider this option and follow one of
the other approaches listed in the introduction.

[1] http://localhost:8080/docs/config/context.html

--
Michael Ludwig

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to