[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: WAR file produces commons-logging LogConfigurationExcept

pdesj do-not-reply at jboss.com
Wed Apr 9 10:11:23 EDT 2008

In case it's interesting, here's what happens when I add the log4j.jar file from JBoss 4.0.1sp1 to the WEB-INF/lib/ directory of the WAR file.  That version of log4j.jar is 1.2.8.  and I took it from \jboss-4.0.1sp1\server\default\lib\.  I am assuming that it is the version of log4j being used when my application runs successfully under JBoss 4.0.1. 

When I start the 4.2.1. server, these errors are written in the log:

2008-04-09 10:04:31,921 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3 at 5f634c, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader at 6e10d8{ url=null ,addedOrder=0}
2008-04-09 10:04:31,921 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.appender.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
2008-04-09 10:04:31,921 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.Appender" was loaded by 
2008-04-09 10:04:31,921 ERROR [STDERR] log4j:ERROR [org.jboss.mx.loading.UnifiedClassLoader3 at 19c18ae{ url=file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp47679nexus-5-0-admin-exp.war/ ,addedOrder=42}] whereas object of type 
2008-04-09 10:04:31,921 ERROR [STDERR] log4j:ERROR "org.jboss.logging.appender.FileAppender" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader at 1de3f2d].
2008-04-09 10:04:31,921 ERROR [STDERR] log4j:ERROR Could not instantiate appender named "FILE".

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142752#4142752

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142752

More information about the jboss-user mailing list