tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat 5.5.x - Logging Issues
Date Mon, 06 Oct 2008 19:20:37 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Piercey,

piercey wrote:
> This setup worked ok in Tomcat 4.1.x, but I decided to upgrade to a
> newer version (with support for JDK 1.4.2).

Note that Tomcat 4.1.x should happily work under JDK 1.4.x.

> Anyway, the problem comes when I try to log in to the webapp, I get an
> Exception with the root cause being:
> java.lang.NoClassDefFoundError: org/apache/log4j/Priority

[snip]

> However now Tomcat is using log4j as its form of logging which isn't
> something I wanted. Is there an easier solution to getting it to behave like
> it did on Tomcat 4.1.x? Admittedly I am a complete noobie when it comes to
> Tomcat (and Java logging) so please excuse my ignorance if I'm making a
> glaring mistake.

If you want to move to Tomcat 5.5 and keep your logging working similar
to your 4.1.x setup, you'll have to read
http://tomcat.apache.org/tomcat-5.5-doc/logging.html (perhaps a second
time).

You are not required to use log4j at the Tomcat level (though it's weird
that you had to put log4j.jar into common/endorsed) to get things to
work. Tomcat really should allow you to load your log4j.jar file from
the webapp's WEB-INF/lib directory (we do this right now on 5.5.26 with
no problems).

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjqZQUACgkQ9CaO5/Lv0PC9GgCcCIkoXGpp7OvhtO75BZX/ja6M
gXAAnjBysLl1C2ibcW0M0TWqClzUdxNY
=ljD0
-----END PGP SIGNATURE-----

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


Mime
View raw message