[jboss-user] [Installation, Configuration & Deployment] - Classloading problem while migrating from jboss 4.0.3 to jbo

meissa do-not-reply at jboss.com
Thu Mar 22 12:26:41 EDT 2007


Hi all,

I'v troubles while  trying to deploy my application in jboss 4.0.5.

I've got the errors belows.

log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" variable.
log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by 
log4j:ERROR [org.jboss.mx.loading.UnifiedClassLoader3 at 8c048e{ url=file:/D:/Documents/developpements/workspace/nis_portail_ear/deploy/portail_ear.ear/ ,addedOrder=48}] whereas object of type 
log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader at 1a33d48].
log4j:ERROR Could not create an Appender. Reported error follows.
java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender

The same application is well deployed in jboss 4.0.3
It seems there is a change in jboss classloading beween the two versions.
I don't want to remove log4j.jar from my application librairies.
Can someone tells how to get rid off this kind of problem.

thank in advance.
Meissa

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

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



More information about the jboss-user mailing list