8 Replies Latest reply on Apr 3, 2008 12:02 PM by toto titi

    jboss 4.2 and log4j nightmare

    meissa sakho Newbie

      Hi jboss guys,
      We are been more and more to suffer about the Impossibility to override
      log4j.jar in jboss 4.2 version.
      The classloading isolation configuration that is explained in the wiki is not working at all.
      Jboss still complain when we put log4j.jar in our appllications librairies.

      Can you please,please,please give to us a real solution to get rif of this problem.
      Removing log4j.jar from our librairies is not a solution.
      here is the well known exption trace:

      log4j:ERROR A "org.jboss.logging.appender.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
      log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
      log4j:ERROR [WebappClassLoader
       delegate: false
       repositories:
       /WEB-INF/classes/
      ----------> Parent Classloader:
      java.net.FactoryURLClassLoader@18c10af
      ] whereas object of type
      log4j:ERROR "org.jboss.logging.appender.FileAppender" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@1a33d48].
      log4j:ERROR Could not instantiate appender named "FILE".
      


      Any help is greetly appreciated.

      Meisssa