For Tomcat 6, context.xml for my webapp is required to be in $ catalina_base / conf /?

Reading Apache Tomcat documentation when deploying webapp copies webapp/META-INF/context.xml to $catalina_base/conf/{engine}/{host}/{webapp}.xml.

However, in server.xml, I set Hosts to deploy XML = false and would like to read the context.xml file directly from webapp / META-INF / context.xml.

Is this possible, or is it required to be in $catalina_base/{engine}/{host}/{webapp}.xml? . If possible, what property \ setting \ attribute have I lost since it does not seem to be readable from webapp/META-INF/context.xml ?

+4
source share
1 answer

See this : if you set deployXML to false, you disable parsing webapp / META-INF / context.xml and require context. xml files in conf.

Change deployXML to true and everything should be installed.

+3
source

All Articles