"fredk2" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi, > > To use log4j the documentation > http://tomcat.apache.org/tomcat-6.0-doc/logging.html > suggest that we need to: > > 1. Replace $CATALINA_HOME/bin/tomcat-juli.jar with the > output/extras/tomcat-juli.jar. > > 2. Place output/extras/tomcat-juli-adapters.jar in $CATALINA_HOME/lib. > > What do these file do? why are they extras and why not have them in the > default build? > > In my quick basic tests I did not observe any difference in the logging > behaviors when compared to the original tomcat-juli.jar. Can anyone > explain > how or when this would become a problem? >
When you have the log4j jar in WEB-INF/lib, the it ends up being used by Tomcat for some of it's logging. As a result, it can cause memory leaks and other weird errors when a context is stopped and started. This isn't a problem with j.u.l since the classes are loaded by the system classloader. That is why Tomcat decided to use j.u.l for it's internal logging by default. > Many Thanks - Fred > -- > View this message in context: > http://www.nabble.com/Can-we-use-output-extras-tomcat-juli.jar-by-default--tf4288716.html#a12209126 > Sent from the Tomcat - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]