Saturday, February 7, 2009

ERROR [STDERR] java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender cannot be cast to org.apache.log4j.Appender

An error occurs in JBoss during deployment on new JSPWiki.war file. The cause behind this error was that JBoss expects only one logger.


Credit to:

NABH forum

1 comment:

White Stripe said...

Hi, thanks for the advice. I was upgrading an old project from Maven 1 to M2 and log4j dependency got packed in the war. I put provided to this dependency and worked like a charm.
Thanks again.