tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Sills" <DSi...@datasourceinc.com>
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 [mailto:chris@christopherschultz.net] 
Sent: Tuesday, April 03, 2012 1:23 PM
To: Tomcat Users List
Subject: Re: Enabling logging in Tomcat 5.5

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David,

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

You
> 
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk97MgYACgkQ9CaO5/Lv0PCqKwCfQ1NfnI4WeKa9H7gus3eY2ftI
x2YAn3iMEtBa2XMEtcLfNkp9ejg5SQLS
=yRwx
-----END PGP SIGNATURE-----

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

Mime
View raw message