У томета написано https://tomcat.apache.org/tomcat-7.0-doc/jndi-datasource-examples-howto.html
Context configuration
Configure the JNDI DataSource in Tomcat by adding a declaration for your resource to your Context. https://tomcat.apache.org/tomcat-7.0-doc/config/context.html
…
Individual Context elements may be explicitly defined:
- In an individual file at /META-INF/context.xml inside the application files. Optionally (based on the Host's copyXML attribute) this may be copied to $CATALINA_BASE/conf/[enginename]/[hostname]/ and renamed to application's base file name plus a ".xml" extension.
- In individual files (with a ".xml" extension) in the $CATALINA_BASE/conf/[enginename]/[hostname]/ directory. The context path and version will be derived from the base name of the file (the file name less the .xml extension). This file will always take precedence over any context.xml file packaged in the web application's META-INF directory.
- Inside a [url=https://tomcat.apache.org/tomcat-7.0-doc/config/host.html]Host[/url] element in the main conf/server.xml.
Default Context elements may be defined that apply to
multiple web applications. Configuration for an individual web application
will override anything configured in one of these defaults. Any nested
elements, e.g. elements, that are defined in a default
Context will be created once for each
Context to which the default applies. They will not be
shared between Context elements.
- In the $CATALINA_BASE/conf/context.xml file: the Context element information will be loaded by all web applications.
Что плохого будет если переложить context.xml в $CATALINA_BASE/conf/context.xml и не держать его в
webapps/META-INF/?