tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <>
Subject Re: [WORKAROUND] Re: VERY weird problem with commons-logging and Tomcat5
Date Fri, 12 Dec 2003 03:16:04 GMT

You can also use a repository selector.  BTW, do you have log4j.jar *and* 
commons-logging.jar (not commons-logging-api.jar) in WEB-INF/lib?  If not, 
put them there and try this scenario again.  A repository selector should 
not be necessary in this situation.  However, I always use one as it 
guarantees separate logger repositories for each application (based on JNDI 
namespace) with no chance of stepping on each other whether or not I have 
log4j.jar in WEB-INF/lib or a parent classloader.


At 12:40 AM 12/12/2003 +0100, you wrote:
>I still do not know what is causing this behavior, but I found a 
>workaround in case anyone else stumbles upon this problem:
>In my I left the log4j.rootCategory property alone and 
>only set properties for each 
>package in my webapp to DEBUG.
>This way I only get the DEBUG output of my own classes and not ALL debug 
>messages generated by the container.
>I still wonder why my in /WEB-INF/classes should 
>reconfigure the container's whole logging mechanism. Either this is a 
>major bug or tomcat4's doing it right was one.
>'Till later
>         Phil
>Philipp Taprogge wrote:
>>I have a very disgusting problem here... I am developing a webapp which 
>>uses commons-logging and log4j.
>>All I do is use the commons' Log and LogFactory in my application and 
>>place a file in my WEB-INF/classes.
>>This property file looks like this (w/out the CR in the middle line of 
>>log4j.rootCategory=DEBUG, warthoglog
>>     [%-15C{1}] %-5p - %m%n
>>This works fine, except that I get not only my application's log messages 
>>but _ALL_ tomcat debug logging in this file, which firstly slows down my 
>>machine (no wonder) and secondly grows the logfile to a few MBs just from 
>>What the heck am I doing wrong here? This setup worked perfectly in the 
>>last tomcat4.
>>Can anyone advice?
>>     Philipp Taprogge
>"I love deadlines, I love the whooshing noise they make as they go by"
>- Douglas Adams
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message