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