Steve Chambers Steve Chambers - 1 year ago 73
Java Question

What is the correct META-INF directory location for context.xml in Tomcat?

Should a "context.xml" file for deploying application-specific configuration to Tomcat be placed in:



src/main/webapp/META-INF/context.xml ?

Justification for asking: Have seen conflicting advice on StackOverflow and could not find the specific location mentioned in the Tomcat documentation.

Answer Source

I want this to be a duplicate question, but so far my search hasn't come up with an actual explicit answer to this. And the documentation is indeed not specific either.

It is src/main/webapp/META-INF since the file needs to end up deployed in the web root/META-INF folder, not in WEB-INF/classes/META-INF.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download