Bug 46260 - RollingFileAppender and Tomcat has a strange behaviour
Summary: RollingFileAppender and Tomcat has a strange behaviour
Status: NEEDINFO
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Appender (show other bugs)
Version: 1.2
Hardware: PC Windows Server 2003
: P2 normal
Target Milestone: ---
Assignee: log4j-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-21 07:47 UTC by Jean-Pascal Laux
Modified: 2009-01-13 12:29 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Pascal Laux 2008-11-21 07:47:00 UTC
I created a webapp and it runs with Tomcat 5.5.

I use log4j for logging with multiple appenders (console, rolling files and syslog) and the RollingFileAppender doesn't roll the file ; it always rewrite the same file.

But today, I noticed something : it only happens when I reload or stop/start the webapp with Tomcat manager.
Comment 1 Curt Arnold 2009-01-13 12:29:13 UTC
Tomcat has a known issue with leaving classes in a corrupt state on reload (http://issues.apache.org/bugzilla/show_bug.cgi?id=41059). Could you either apply the patch on that thread or set the org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES system property to false.