Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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/resources/META-INF/context.xml

...or...

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.

like image 264
Steve Chambers Avatar asked Oct 27 '14 10:10

Steve Chambers


1 Answers

The documentation is indeed not specific about this.

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.

like image 130
Gimby Avatar answered Nov 14 '22 01:11

Gimby