tomcat-users mailing list archives

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


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


> 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 (perhaps a second

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
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla -


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message