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

If the "context.xml" file for deploying the application configuration for Tomcat must be placed in:

src/main/resources/META-INF/context.xml 

... or...

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

Reason for the request: they saw conflicting advice on StackOverflow and could not find the specific location indicated in the Tomcat documentation .

+7
java java-ee tomcat meta-inf
source share
1 answer

I want this to be a duplicate question, but so far my search has not found a real explicit answer to this question. And the documentation is really not specific.

This is src / main / webapp / META-INF, since the file must be deployed to the web root / META-INF folder, and not to WEB-INF / classes / META-INF.

+5
source share

All Articles