You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Randy Layman <ra...@aswethink.com> on 2001/02/07 22:11:44 UTC

RE: *.properties files

	Try /www/WEB-INF/classes/db.properties if you are trying to use the
ClassLoader.getResource("db.properties").

	Randy

-----Original Message-----
From: John Golubenko [mailto:golubenkoj@columbiafunds.com]
Sent: Wednesday, February 07, 2001 4:42 PM
To: tomcat-user@jakarta.apache.org
Subject: *.properties files


Hi, I've been having problem to use *.properties files.
I'm running Slackware 7.1 (Linux), Tomcat 3.x, JDK 1.2.2, Apache 1.3.12
/www/index.jsp
/www/db.properties

/www/servlets/test.class
/www/servlets/db.properties

Also tried:
/www/WEB-INF/lib/db.properties
/www/META-INF/db.properties 

Neither of these combinations doesnt work. Tells that it  can't find this 
file.
Where I should keep them? 
Thank you in advise.


>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 2/7/01, 1:34:14 PM, "Craig R. McClanahan" <Cr...@eng.sun.com> 
wrote regarding Re: Doug McNamara:


> George McKInney wrote:

> >
> > Because WEB-INF/classes is searched before WEB-INF/lib (AFAIK), 
properties
> > files in /classes will override those in /lib jar files.
> >

> This is required in servlet 2.3 (which Tomcat 4.0 implements).  It was
> unspecified in servlet 2.2, so your mileage may vary on different servlet
> containers.

> >
> > George McKinney, Developer
> >

> Craig McClanahan



> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org

NOTICE:  This communication may contain confidential or other privileged
information.  If you are not the intended recipient, or believe that you
have received this communication in error, please do not print, copy,
retransmit, disseminate, or otherwise use the information.  Also, please
indicate to the sender that you have received this email in error, and
delete the copy you received.  Any communication that does not relate to
official Columbia business is that of the sender and is neither given nor
endorsed by Columbia.  Thank you.



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, email: tomcat-user-help@jakarta.apache.org