> From: Michael Courcy [mailto:[EMAIL PROTECTED] 
> Subject: Re: placing context.xml in META-INF works?
> 
> > Take out the path attribute - it's not allowed unless the <Context>
> > element is in server.xml, which is strongly discouraged.
> >   
> why ?

Because you have to restart Tomcat if you make any changes to server.xml
- it's only read during initialization.  Consequently, updating the app
on the fly when its <Context> tag is in server.xml is not possible.  To
quote from the doc:

"See Automatic Application Deployment for more information. This method
allows dynamic reconfiguration of the web application, since the main
conf/server.xml file cannot be reloaded without restarting Tomcat.
Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended
to place <Context> elements directly in the server.xml file.  Instead,
put them in the META-INF/context.xml directory of your WAR file or the
conf directory as described above."

http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

 - 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