tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Cannot configure apache-log4j-extras-1.0 with apache-log4j-1?
Date Fri, 25 Jun 2010 15:49:08 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Saurabh,

On 6/25/2010 1:23 AM, Saurabh Agrawal wrote:
> Please refer first line in following API doc, you will find that two
> problems are reported in it and option suggested us
> TimeBasedRollingPolicy.
> 
> http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/DailyRollingFileAppender.html
>
>  "DailyRollingFileAppender has been observed to exhibit
> synchronization issues and data loss............."

Oh, I had never seen that. Good to know. You're still using an exotic
appender, though. The one I see in log4j-extras is
org.apache.logging.rolling.RollingFileAppender

You ought to be able to just put apache-log4j-x.y.z.jar and
apache-log4j-extras-x.y.z.jar into WEB-INF/lib and it should work. Are
you trying to configure app-based logging, or do you also want
server-based logging to use log4j? If the latter, you need both of those
JAR files in Tomcat's lib directory, too.

Can you post more of the stack trace that you see? That one looked
incomplete.

>>> 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 variable.

The PATH environment variable is not relevant, here.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwkz/MACgkQ9CaO5/Lv0PDbaQCglslKES/aPLlpsUhorqAvLyXD
75EAn3kJTPqfDvXs4yhvmKl3pcdeRmCz
=zpYi
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message