On Mon, 10 Mar 2003, Rick Reumann wrote:

> Date: Mon, 10 Mar 2003 12:21:41 -0500
> From: Rick Reumann <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: [OT]Re: quick log4j question
>
> On Mon, 10 Mar 2003 08:44:07 -0800 (PST)
> "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote:
>
> > The right place to put your properties files, then, is wherever the
> > software that is loading them will look for them :-).
>
> Sorry for my ignorance here but by software do you mean the servlet
> container? If so how do I know how it's configured to look for resources
> by default (probably a RTFM thing I'm guessing).
>

No, by "software" I mean whatever software is going to read that
particular properties file.  In the particular case of "log4j.properties",
the container does not care whether or not you are going to load this
resource or not -- you have to check the Log4J docs to see where it wants
the "log4j.properties" to be loaded from.

If it says "put the log4j.properties file in a directory that is on your
classpath", you can translate that to mean "/WEB-INF/classes", because (in
effect) that is the directory that the container puts on your "class path"
for you.  It's Log4J, not the container, that actually tries to load this
file.

> --
> Rick Reumann

Craig

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

Reply via email to