Hello.

I am trying to reference a few JAR files and a property file from an out-of-process 
Tomcat application.
The Tomcat 4.1 documentation says that unpacked classes and resources will be loaded 
out of the WEB-INF/classes directory and packed resources are loaded out of 
WEB-INF/lib of your web applcation.
See the documentation here:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

I put my property file in WEB-INF/classes of my application but it is never loaded.  
This is the code I'm using to try to find it:

InputStream is = getClass().getResourceAsStream("/" + fileName);
theProperties.load(is);

Am I misunderstanding how resources are found in Tomcat 4.1?

Thanks in advance for any help!


___________________________________________________
GO.com Mail                                    
Get Your Free, Private E-mail at http://mail.go.com



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

Reply via email to