开发者

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

Reading through the documentation on Apache Tomcat, when I deploy a webapp it copies the webapp/META-INF/context.xml to $catalina_base/conf/{engine}/{host}/{webapp}.xml.

Howe开发者_StackOverflowver, in server.xml I have set Hosts to have deployXML=false and would like to read context.xml file from straight from webapp/META-INF/context.xml.

Is that possible or is it required that it be at $catalina_base/{engine}/{host}/{webapp}.xml? If possible, what property\setting\attribute am I missing since it seems to not read in from webapp/META-INF/context.xml?


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

Change deployXML to true and you should be all set.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜