Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

FileReader- file not found

Annamalai Ramasamy

2004-05-04


Hi.,
I'm using FileReader class to access by file as follows,

 protected static Properties getPTProperties() throws Exception
 ...
 fr = new FileReader("CustomProp.ini");

In Tomcat I'm getting error like,

java.lang.Exception::(The system cannot find the file specified)

actually in Jrun this same code is working well.

I dont know where should i keep my properties file in tomcat.
I have tried in Tomcat bin,common/lib ,web-inf/lib and classes folders.

any suggestion?

Thanks.,
MALAI

©2008 junlu.com - Jax Systems, LLC, U.S.A.