PDA

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


shekhark
09-03-2010, 11:44 AM
Hi,
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.

thanks.

emil
09-07-2010, 07:33 PM
Hi,

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:

http://caucho.com/resin-4.0/admin/reference.xtp#class-loader

Emil