can't read a file at Resin server?
843835Dec 17 2001 — edited Dec 21 2001hi 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