tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <>
Subject RE: deployment / war unpacking and Context definition?
Date Thu, 26 Apr 2007 14:56:45 GMT
> From: Kristian Rink [] 
> Subject: Re: deployment / war unpacking and Context definition?
> It lives inside the Host definition in server.xml, according to the
> example pointed out in

Unfortunately, several of the examples in the doc have not kept up with
recommended practice for current versions of Tomcat.  Placing the
<Context> element in server.xml requires restarting Tomcat if any
changes are required, which is why it's strongly discouraged these days.
The <Context> element should be defined in META-INF/context.xml within
the webapp structure; alternatively, it can be placed in
conf/Catalina/[host]/[appName].xml if desired; the latter location will
override the one in META-INF if both are present.  The URI path is
automatically determined by the name of the app's .war file.  Look here
for details:

I wouldn't expect the presence of the <Context> element in server.xml to
prevent redeployment, but you never can tell...

 - Chuck

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:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message