log4j:ERROR org.jboss.logging.appender.FileAppender object is not assignable错误

阅读更多

jboss启动时出现错误

2012-01-11 16:06:40,421 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.appender.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable. 2012-01-11 16:06:40,421 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.Appender" was loaded by 2012-01-11 16:06:40,421 ERROR [STDERR] log4j:ERROR [org.jboss.mx.loading.UnifiedClassLoader3@1a4d2c0{ url=file:/F:/jboss-4.2.2/server/default/deploy/chsi-plxlcx-ear-2.0.ear/ ,addedOrder=23}] whereas object of type 2012-01-11 16:06:40,421 ERROR [STDERR] log4j:ERROR "org.jboss.logging.appender.FileAppender" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@1968e23]. 2012-01-11 16:06:40,421 ERROR [STDERR] log4j:ERROR Could not instantiate appender named "FILE".


原因是因为jboss已经有log4j.jar包了,自己再引入的话会造成冲突,删除自己WEB-INF/lib下log4j.jar包即可

你可能感兴趣的:(log4j:ERROR org.jboss.logging.appender.FileAppender object is not assignable错误)