Bundle Tomcat context.xml with webapp WAR file 

Joined:
04/09/2007
Posts:
773

January 20, 2012 15:05:14    Last update: January 20, 2012 15:06:15
Tomcat documentation states:

If the web application is packaged as a WAR then /META-INF/context.xml will be copied to $CATALINA_BASE/conf/[enginename]/[hostname]/ and renamed to match the application's context path.

For a Maven project, put context.xml in src/main/webapp/META-INF/.
Share |
| Comment  | Tags