0 Replies Latest reply on Jul 18, 2007 10:16 AM by Michael Johnson

    Log4jRespositorySelector

    Michael Johnson Newbie

      Greetings,

      I implemented the code from the Log4JRespositorySelector example in the JBoss Wiki.

      The implementation works with JBoss 3.2, However get the following message when I tested under JBoss 4.0.2

      log4j:ERROR Could not create an Appender. Reported error follows.
      java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender cannot be cast to org.apache.log4j.Appender
      at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:175)
      at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:150)
      at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:163)
      at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:425)
      at org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:345)
      at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:827)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)
      at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:470)
      at org.apache.log4j.LogManager.(LogManager.java:122)
      at gfmpl.log.GFMPLRepositorySelector.(Unknown Source)



      I am using the Log4J version 1.12.14.

      Any suggestions would be greatly appreciated.

      Michael