> From: Kristian Rink [mailto:[EMAIL PROTECTED] 
> Subject: Re: deployment / war unpacking and Context definition?
> 
> It lives inside the Host definition in server.xml, according to the
> example pointed out in
>
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.h
tml

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:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

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

 - 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