I have a Tomcat application which needs to reference some properties files that are external to the app. Generally these are stored on a local machine at a specific place like C:\PROJECT_NAME\conf\
.
In Tomcat 7 this was achievable by placing a context.xml
file inside of /META-INF/
which used a VirtualWebappLoader
to essentially add this location to the application classpath as follows:
<Context>
<Loader className="org.apache.catalina.loader.VirtualWebappLoader"
virtualClasspath="/PROJECT_NAME/conf"
searchVirtualFirst="true" />
</Context>
How do I achieve this same thing in Tomcat 8?