Everthing I've read about Tomcat seems to indicate that when I deploy my web application, Tomcat will take my context.xml file, copy it to <tomcat-dir><engine-name><host>
and rename it to <mywebbappname>.xml
.
...only it doesn't.
I have Liferay 6 bundled with Tomcat 6 deployed on my machine. The context.xml file for my webapp is very basic:
<Context privileged="true" crossContext="true"></Context>
My context.xml file is located under the META-INF directory which is at the same level as my WEB-INF directory.
I think the structure is set up correctly, but when Tomcat deploys the WAR, the context.xml doesn't get copied or renamed. If I manually create <tomcat-dir>\<engine-name>\<host>\<mywebbappname>.xml
everything works fine.
This is okay for development, but I have to restart Tomcat for it to see my context which won't work in a production environment.
Am I missing some small detail here?
Thanks,
David