tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Sills" <>
Subject RE: Enabling logging in Tomcat 5.5
Date Tue, 03 Apr 2012 18:00:53 GMT
Actually, yes, it really doesn't work unless I explicitly set the opening classpath. I sort
of got the hint when the famous error message about log4j not being configured correctly started
popping up.

-----Original Message-----
From: Christopher Schultz [] 
Sent: Tuesday, April 03, 2012 1:23 PM
To: Tomcat Users List
Subject: Re: Enabling logging in Tomcat 5.5

Hash: SHA1


On 4/3/12 1:02 PM, David Sills wrote:
> It seems to be better if I create a "setenv.bat" file with this
> content:
> set
> CLASSPATH=..\common\classes;..\common\lib\org.apache.log4j-1.2.16.jar

shouldn't have to do that: Tomcat should auto-configure its CLASSPATH including the common
locations you have specified above.
Does it really not work unless you explicitly set the CLASSPATH environment variable?

> When this is placed in the "bin" directory, it is automatically run by 
> the catalina.bat file (which I discovered on walking through the 
> process).

Correct. It's kind of silly to ship a completely empty file, though one could argue that a
no-op file with comments in it might be a nice thing to do.

> So I am getting something. What, exactly, especially when it comes to 
> application logging, I'm still working through.

Let us know how things go for you.

- -chris
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools -
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message