> From: Matthew Inger [mailto:[EMAIL PROTECTED] 
> Subject: Deploying Default Webapp in Tomcat 6.0
> 
> I've been trying to figure out how to deploy a .war file as 
> the root webapp in Tomcat 6.0.10.
>
> Say I have a "foo.war" file, and create a 
> conf/Catalina/localhost/foo.xml file with the
> following contents:
> 
> <Context path="" docBase="foo" />

(I'm going to get a rubber stamp for this one.)  The path attribute is
not allowed when <Context> is in conf/Catalina/[host]/[appname].xml, and
the docBase attribute must not be used if the app is deployed under the
<Host>'s appBase directory.

Read the description of the path attribute for the <Context> element:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

You would normally name the default app ROOT.war, as the doc states, and
place it in the appBase directory (webapps, by default).  If you insist
on naming the .war something else, then keep it outside of Tomcat's
directory structure, and put your <Context> element in
conf/Catalina/[host]/ROOT.xml with a docBase attribute pointing to the
location of the .war file (do not include a path attribute).

> Can anyone figure out what I'm doing wrong?

Not reading the doc or recent messages on this mailing list.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to