You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by je...@bull.net on 2007/04/17 17:25:53 UTC

Specific context.xml

Tomcat : 5.5.20

Hello,

is there any way to to declare a context.xml for one application
($CATALINA_HOME/webapps/MyAppli/META-INF) and not for each
($CATALINA_HOME/conf/context.xml).
If I declare it under .../conf --> it's OK but under MyAppli/META-INF -->
it's KO !!!

Any idea ?
many thanks


Best Regards



Jean-Louis Matéo



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Specific context.xml

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: jean-louis.mateo@bull.net [mailto:jean-louis.mateo@bull.net] 
> Subject: Specific context.xml
> 
> is there any way to to declare a context.xml for one application
> ($CATALINA_HOME/webapps/MyAppli/META-INF) and not for each
> ($CATALINA_HOME/conf/context.xml).

Placing the context.xml file under META-INF is the preferred mechanism -
it works fine.  Note that if a conf/Catalina/[host]/[appname].xml file
exists, that overrides the context.xml in the application's META-INF
directory.

The conf/context.xml file is used only for specifying attributes that
are common to all web apps.

Check the doc for more details:
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org