I had a similar problem while configuring the Log4J with struts under tomcat.
I placed the properties file under WB-INF/classes
it started working fine.
You can try this.
Regards
Puneet
----- Original Message -----
From: "Matt Sales" <[EMAIL PROTECTED]>
Date: Thu, 12 Dec 2002 15:39:07 -0500
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Subject: loading a properties file from a jar file in /WEB-INF/lib/
> Hello,
> I'm trying to access a properties file that's located in a package within a
> jar file in /WEB-INF/lib.
>
> net/props/myProps.properties
>
>
>
> Properties p = new Properties();
> InputStream is = ...
>
> I've tried a lot of methods to set the InputStream, i.e.,
>
> p.getClass().getResourceAsStream("/net/props/myProps.properties");
> p.getClass().getResourceAsStream("net/props/myProps.properties");
> p.getClass().getResourceAsStream("myProps.properties");
> getServletContext().getClass().getClassLoader().getResourceAsStream("/net/pr
> ops/myProps.properties");
>
> but I always get null...
>
> Can someone offer a suggestion?
>
> Thanks alot,
> Matt
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
--
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
One click access to the Top Search Engines
http://www.exactsearchbar.com/mailcom
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>