> From: Ari King [mailto:ari.brandeis.k...@gmail.com] 
> Subject: Options for setting context path

> What options do I have for setting the context path, aside 
> from naming the war file, i.e. "context-path-name.war", and
> modifying the server.xml file?

Keep the .war file *outside* of Tomcat's directory structure, and place its 
<Context> element in conf/Catalina/[host]/[app#url#path].xml.  Inside the 
<Context> element, include a docBase attribute pointing to the location of the 
.war file.
 
> What options do I have for setting the DEFAULT context, aside
> from setting the directory name to ROOT?

If you don't want to name the directory (or .war file) ROOT, then follow the 
procedure outlined above, where [app#url#path] is ROOT (case sensitive).

> How can I configure tomcat so that I can drop a war file 
> into the webapps (or some virtual host) directory and
> without changing its name have this (exploded or otherwise)
> file be set as the default context?

You can't.  The easiest procedure in all cases is just to name the .war file 
properly.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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

Reply via email to