• Post Reply Bookmark Topic Watch Topic
  • New Topic

log4j messages in JBoss log  RSS feed

 
Drake Almonto
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am receiving these error messages in the log file during deployment of my application in JBoss. The messages started to appear after I add a log4j jar file to the lib directory in WEB-INF. Can anyone help?


2008-05-14 12:42:17,240 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.appender.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
2008-05-14 12:42:17,240 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
2008-05-14 12:42:17,240 ERROR [STDERR] log4j:ERROR [WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
java.net.FactoryURLClassLoader@8d63cf
] whereas object of type
2008-05-14 12:42:17,240 ERROR [STDERR] log4j:ERROR "org.jboss.logging.appender.FileAppender" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@1e4457d].
2008-05-14 12:42:17,240 ERROR [STDERR] log4j:ERROR Could not instantiate appender named "FILE".
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remove the log4j.jar file from WEB-INF/lib. JBossAS already has that file, so you don't need it. And as you found it causes classloader issues if you have your own copy.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!