Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

can't read a file at Resin server?

843835Dec 17 2001 — edited Dec 21 2001
hi all,
I have a file "database.ini" file at the Resin servers root directory resin-2.0.3 and
I am using a database bean which reads the "database.ini" file to get the
connection string, username, password.

I am using the following statements.

inputstream = ClassLoader.getSystemResourceAsStream("database.ini");
properties = new Properties();
properties.load(inputstream);

but my inputstream is null.

when I am using the statement :
System.out.println(new java.io.File("database.ini").exists());

It is printing true, then what might be the reason, is there
ne thing to be done with the configuration file.

thanx in adv,
kiran

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 18 2002
Added on Dec 17 2001
5 comments
239 views