root context

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

root context

Banana Man
Is it posible to set the root context to be a directory that doesn't yet exist, ie, a war file, that is yet to be exploded. Tomcat complained it could not find the context.

               
---------------------------------
Yahoo! Photos – NEW, now offering a quality print service from just 8p a photo.
Reply | Threaded
Open this post in threaded view
|

RE: root context

Caldarale, Charles R
> From: ALEX HYDE [mailto:[hidden email]]
> Subject: root context
>
> Is it posible to set the root context to be a directory that
> doesn't yet exist, ie, a war file, that is yet to be
> exploded. Tomcat complained it could not find the context.

Just name your .war file ROOT.war (caps required) under the webapps
directory, and remove the existing webapps/ROOT directory.  If you don't
want to keep your .war file there, create a file named
conf/Catalina/localhost/ROOT.xml, put a <Context> tag in there with a
docBase attribute giving the path of the .war file.  (The preceding
assumes you're using a 5.5.x version of Tomcat.)

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