You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pat McGroin <ba...@go.com> on 2003/03/26 21:23:22 UTC
Tomcat 4.1 resouces & classpaths
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org