Hi,

I'm using Struts plugin, however, I think the issue mostly related to Tomcat

ClassLoading.

I have a class (in a jar) under WEB-INF/lib, which loads properties from 
a file located under WEB-INF/classes. 

     ClassLoader cl = getClass().getClassLoader();
     InputStream stream = cl.getResourceAsStream("plugin.properties");

I have tried different versions of path, with the results I couldn't totally
explain:
1. "plugin.properties": not work
2. "WEB-INF/classes/plugin.properties": work
3. "/WEB-INF/classes/plugin.properties": not work
4. "/plugin.properties": not work

Also, I'm using Tomcat 4.0.6 (NB3.5.1). Does anyone have an answer
for this? Is "/" bad? It may apply to Tomcat 5 as well, isn't it?

Regards,
John




The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it. 


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

Reply via email to