Caldarale, Charles R wrote:
From: Chad Russell [mailto:[EMAIL PROTECTED] Subject: Tomcat webapp directory on virtual host

I want to deploy a struts .war file to one of the virtual hosts, but Tomcat wont recognize it. In my server.xml under the <hosts> section I have both the appBase and the docBase pointing to the directory in which I am deploying the .war file and it still is
not working.

You need to be a bit more precise in the description of your
configuration.  There is no <hosts> tag defined for Tomcat, although you
may have multiple <Host> tags.  The appBase attribute for <Host> defines
the default directory for applications associated with that host.  The
docbase attribute for a <Context> defines the specific location of the
app, if outside of appBase; it should not be used if the app resides
within the surrounding <Host>'s appBase.

My apologies. Guess I should have been a little more awake when I sent that. Here is my "Host" tag for the domain I am trying to use:

<Host name="www.domain.com" appBase="/home/domaindir/public_html"
     unpackWARs="true" autoDeploy="true"
     xmlValidation="false" xmlNamespaceAware="false">

<Context path="" reloadable="true" docBase="/home/domaindir/public_html" debug="1"/>

 <Context path="/manager" debug="0" privileged="true"
          docBase="/usr/local/jakarta/tomcat/server/webapps/manager">
 </Context>
</Host>
Note that placing <Context> elements in server.xml is strongly
discouraged with Tomcat 5.5.

Where should this go? I am on a server that uses cPanel and I think it put this in there, as I didn't.
 - 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