title: Unable to load property file in spring context
body: <p>I am unable to load a file path into my application. Can any one please help me out. </p>
  
  <p>Here is the spring xml config :</p>
  
  <pre><code>&lt;context:property-placeholder location="file:${globalproplocation}"
          ignore-unresolvable="true" ignore-resource-not-found="true" order="-1" /&gt;
  </code></pre>
  
  <p>I have added this to JAVA_OPTS under catalina.sh as shown below:</p>
  
  <pre><code>JAVA_OPTS="-XX:MaxPermSize=4096m  -XX:PermSize=1024m -Dglobalproplocation=/Users/admin/properties/temp.properties"
  </code></pre>
  
  <p>But some how it is not being picked up, here is my tomcat log.</p>
  
  <pre><code>    &lt;Loading properties file from ServletContext resource [/${globalproplocation}]&gt;
      2016-05-07 02:52:24,089 WARN [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] -
  &lt;Could not load properties from ServletContext resource [/${globalproplocation}]: 
  Could not open ServletContext resource [/${globalproplocation}]&gt;
  </code></pre>
  
  <p>What am I doing wrong here?</p>