Hi,
do you have rights to read the property file?
Is the codebase for the MyServiceImpl class equal to $WEBAPP/WEB-INF/classes/?

greetz
Hans

At 03:15 PM 7/21/2004, Lorenz, Christoph wrote:
Hi,

what is the reason, that tomcat5 (5.0.25) does not read my
properties file, which I placed in

$WEBAPP/WEB-INF/classes/my.properties

when I try to access it the following way:

Properties p = new Properties();
p.load(MyServiceImpl.class.getResourceAsStream("/my.properties"));

If I try to determing the position of the resource the following way:

URL u = MyServiceImpl.class.getResource("/my.properties");

u is null here.

Thank you very much in advance
  Christoph



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to