tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saurabh Agrawal" <>
Subject RE: Cannot configure apache-log4j-extras-1.0 with apache-log4j-1?
Date Fri, 25 Jun 2010 05:23:17 GMT
Hi Pid and Chris,

Thanks for your response.

I've tried registering myself to log4j mailing list, but remote MTA is giving some error and
subscription is failing to validate.


Please refer first line in following API doc, you will find that two problems are reported
in it and option suggested us TimeBasedRollingPolicy.

"DailyRollingFileAppender has been observed to exhibit synchronization issues and data loss............."


>> Copied apache-log4j-extras-1.0.jar in ~/WEB-INF/lib directory, where my old log4j
is present.

I've put both Jars in <TOMCAT_HOME>/webapps/cp/WEB-INF/lib/ directory. Restarting tomcat
(catalina.out) shows that it has picked up both the JAR files, still it is saying that "Failing
to load class.......".

This confirms that above path "<TOMCAT_HOME>/webapps/cp/WEB-INF/lib/" is set in PATH

Saurabh Agrawal

-----Original Message-----
From: Christopher Schultz [] 
Sent: Thursday, June 24, 2010 9:04 PM
To: Tomcat Users List
Subject: Re: Cannot configure apache-log4j-extras-1.0 with apache-log4j-1?

Hash: SHA1


On 6/24/2010 7:37 AM, Saurabh Agrawal wrote:
> Problem:
> I've tried many times to configure apache-log4j-extras-1.0 with 
> apache-log4j-1.2.16, but it is still failing to load classes from 
> configure
> apache-log4j-extras-1.0 JAR file.

Pid's right: this is a log4j question, not a Tomcat one, unless you've got those JAR files
in fully places. Where have you put those JAR files?

> What I want to do:
> Actually I want to do time based log rotation the my application 
> specific log files. I could able to configure using 
> '' class, but few 
> problems are reported on Apache site for this class.

What's wrong with org.apache.log4j.DailyRollingFileAppender?

- -chris
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


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

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

View raw message