ServiceMix
  1. ServiceMix
  2. SM-816

useless include log framwork into jboss deployer

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: incubation
    • Fix Version/s: 3.1
    • Component/s: None
    • Labels:
      None
    • Environment:

      linux, jdk5, jboss 4-0-5 GA

    • Patch Info:
      Patch Available
    • Regression:
      Regression

      Description

      Exception raise when commons-logging and log4j jar are included into sar jboss deployer

      00:51:07,136 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 1m:58s:2ms
      00:51:22,446 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" variable.
      00:51:22,447 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by
      00:51:22,447 ERROR [STDERR] log4j:ERROR [org.jboss.mx.loading.UnifiedClassLoader3@108f060

      { url=file:/home/keo/EclipseWorkspace/workspace_3.2.SMX.TEST/jboss-4.0.5.GA/server/default/tmp/deploy/tmp61318servicemix-jboss-deployer-3.1-SNAPSHOT.sar ,addedOrder=40}

      ] whereas object of type
      00:51:22,447 ERROR [STDERR] log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@19616c7].
      00:51:22,489 ERROR [STDERR] log4j:ERROR Could not create an Appender. Reported error follows.
      00:51:22,489 ERROR [STDERR] java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender
      00:51:22,490 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:175)
      00:51:22,490 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:150)
      00:51:22,490 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:163)
      00:51:22,490 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:425)
      00:51:22,491 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:394)
      00:51:22,491 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:829)
      00:51:22,491 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)
      00:51:22,491 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)
      00:51:22,491 ERROR [STDERR] at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
      00:51:22,491 ERROR [STDERR] at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
      00:51:22,491 ERROR [STDERR] at org.apache.log4j.Logger.getLogger(Logger.java:104)
      00:51:22,491 ERROR [STDERR] at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:283)
      00:51:22,491 ERROR [STDERR] at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:108)
      00:51:22,491 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      00:51:22,491 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      00:51:22,491 ERROR [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      00:51:22,492 ERROR [STDERR] at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      00:51:22,492 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1040)
      00:51:22,492 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:838)
      00:51:22,492 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:601)
      00:51:22,492 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:333)
      00:51:22,492 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:307)
      00:51:22,492 ERROR [STDERR] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:645)
      00:51:22,492 ERROR [STDERR] at org.apache.servicemix.jbi.container.JBIContainer.<clinit>(JBIContainer.java:95)
      00:51:22,492 ERROR [STDERR] at org.servicemix.jboss.deployment.JBIService.<init>(JBIService.java:45)

      1. ASF.LICENSE.NOT.GRANTED--pom.diff.2
        0.4 kB
        Grégoire A.
      2. pom.diff
        0.6 kB
        Grégoire A.

        Activity

          People

          • Assignee:
            Guillaume Nodet
            Reporter:
            Grégoire A.
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 0.25h
              0.25h
              Remaining:
              Remaining Estimate - 0.25h
              0.25h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development