Adding a property file in the shared folder in tomcat 8 and using it in a Spring MVC web application
<p>I have a Java Spring MVC web application. I was using an application.properties file to set a few properties value. Now I am trying to get the properties independent of the war file. I have created a new folder shared/classes under tomcat as shown here.</p>

<p><a href="https://i.stack.imgur.com/DXXuA.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DXXuA.png" alt="folder"></a></p>

<p>In the <code>catalina.properties</code> file I have added <code>shared.loader=${catalina.base}/shared/classes</code>.</p>

<p>In my <code>root-context.xml</code> file, I added </p>

<pre><code>&lt;context:property-placeholder location="file:${catalina.base}/shared/classes/application.properties"/&gt;
</code></pre>

<p>But I am getting the following error:</p>

<pre><code>ERROR o.s.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: E:\projects\smartwcm\workspace-20163101-eclipse-wp\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\shared\classes\application.properties (The system cannot find the path specified)
</code></pre>

<p>How can I fix this issue?</p>