>>> >>> So log4j.properties is located in WEB-INF/classes? Where is >>> log4j.jar? >> >> My log4j.properties is in WEB-INF/classes, and log4j.jar is in >> WEB-INF/lib. > > Okay. > >>> Do you have any other code in this example webapp -- for >>> instance, something that actually loads the log4j.properties >>> file? >> >> I don't have any other code in my example webapp. The only code is >> that ExceptionServlet. In the ExceptionServlet I don't have any >> code that loads log4j.properties or configures log4j in any way. > > I wouldn't expect Tomcat to configure log4j for you in that case. I'm > surprised that it somehow worked in Tomcat 5.5. >
It makes sense. Tomcat 5.5 comes with full commons-logging library and it can autodetect if log4j is available. In Tomcat 6.0 the default logging library has that detection code removed. You have to download alternative copy of the library from "extras" to re-enable autodetection (as was already mentioned in this thread below). >>> In order to use log4j with Tomcat 6.0 and 7.0, you need to >>> download some Tomcat "extras" as described here: >>> http://tomcat.apache.org/tomcat-7.0-doc/logging.html#Using_Log4j >> (...) Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org