tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <>
Subject RE: where to place the /META-INF/context.xml file?
Date Fri, 09 Sep 2005 07:59:24 GMT

The META-INF/context.xml is one way in which a *web application context* can be configured,
not Tomcat itself per se, although it is an instruction on behalf of the web application *to*
Tomcat about what *it* needs Tomcat to setup for itself, e.g database pools, environment vars
or whatever. 

Yes /MyWebApp/META-INF would be correct, as per the servlet spec for web application structure.


> -----Original Message-----
> From: Ben Wong []
> Sent: 09 September 2005 05:26
> To:
> Subject: where to place the /META-INF/context.xml file?
> Hi,
> Apologies, but this is a newbie question. In the tomcat docs, 
> it states that
> "A /META-INF/context.xml file can be used to define Tomcat 
> specific configuration..."
> Could you please tell me where /META-INF/context.xml should 
> be placed relative to the web application root? In other 
> words, if I have a web application in a directory /MyWebApp, 
> should the /META-INF  be at   /MyWebApp/META-INF or should it 
> be under /WEB-INF?
> Thanks.

QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message