Or the war-file doesn't get unpacked, but the app is started from
within the war, and the ressource is inside the war.

And please note the difference:

It's not Class.getRessourceAsStream(), but
ServletContext.getRessourceAsStream();

So in your example:

ServletContext sctx = event.getServletContext();

InpuStream is = sctx.getRessourceAsStream("/WEB-INF/yourFileHere.props").

Please also do note, that according to the servlet-specs the
parameter-String in ServletContext.getRessourceAsStream() alsways has
to start with a slash ("/").

Rgds

Gregor
-- 
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to