View Full Version : unable to read property file in resin server apart from classpath location

09-03-2010, 11:44 AM
I am working on one web application in which i want to retrieve values from property files which are present outside of the application i.e on system drive.
but while doing this i am facing the problem.Interestingly if i put property files at class path location then application works properly.
I am using resin server 3.0.23 and spring mvc architecture with spring 2.5.4 jars.i am also tried it on resin upgraded version of resin 4.0.9. there also i am getting the same problem.

Is there any compatibility issue of resin server for above query or If there is any other way to solve this issue?

please suggest.


09-07-2010, 07:33 PM

How are you trying to access the property files? If it's as a classpath resource, the files must be in the classpath. One option would be to create another classloader that points to your property files' directory, probably a simple loader: