> From: Chad Russell [mailto:[EMAIL PROTECTED] 
> Subject: Re: Tomcat webapp directory on virtual host
> 
>   <Context path="" reloadable="true" 
> docBase="/home/domaindir/public_html" debug="1"/>

The docBase should specify the actual .war file, not just the directory
it's in.  Since you're using the appBase directory, all you should need
is the .war file name.  Note that the default app is normally named
ROOT.war; if it's named something else, you may get two deployments for
the app - one as the default app, and one as the name of the .war file.

>   <Context path="/manager" debug="0" privileged="true"
>            docBase="/usr/local/jakarta/tomcat/server/webapps/manager">

This works with the manager app since it's an expanded app, not a .war
file.

> Where should this go?  I am on a server that uses cPanel and 
> I think it put this in there, as I didn't.

Sorry, I don't have any experience with cPanel.  Normally, the <Context>
tag goes inside META-INF/context.xml in the app's .war file or
directory.  This method is used when the app is deployed in the appBase
directory for the appropriate <Host>.  In this scenario neither the
docBase nor the path attribute should be used, since the app location is
known and its name is derived from the name of the .war file or
directory the app is stored under.  The default app must use ROOT.war or
the ROOT directory under the appBase directory.

For apps stored outside of appBase, the <Context> tag is normally placed
in conf/Catalina/[host_name]/[app_name].xml.  The docBase attribute is
required, but the path attribute should not be used; the context file
for the default app must be named ROOT.xml.

 - 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to