Uploaded image for project: 'RiftSaw'
  1. RiftSaw
  2. RIFTSAW-211

Log4j error at JBoss startup time: class path contains multiple SLF4J bindings.

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • 2.1.0.CR2
    • 2.0-CR2
    • Console
    • None
    • Hide

      On my machine, just restarting JBoss reproduces the problem; I am not quite sure how much it depends on the configuration of my individual computer.

      Show
      On my machine, just restarting JBoss reproduces the problem; I am not quite sure how much it depends on the configuration of my individual computer.

      I installed JBoss AS 5.1.0.GA and deploying ESB and Riftsaw (including updating the web service stack). When JBoss is started, a set of error messages appear in the log about not being able to instantiate an object due to multiple bindings of the same (or sufficiently similar) class present in the classpath.

      The relevant section of the log is pasted below for consultation.

      16:17:22,506 INFO [TomcatDeployment] deploy, ctxPath=/bpel-console
      16:17:23,064 ERROR [STDERR] SLF4J: Class path contains multiple SLF4J bindings.
      16:17:23,064 ERROR [STDERR] SLF4J: Found binding in [vfszip:/home/max/redhat/jboss-5.1.0.GA/common/lib/slf4j-jboss-logging.jar/org/slf4j/impl/StaticLoggerBinder.class]
      16:17:23,064 ERROR [STDERR] SLF4J: Found binding in [vfszip:/home/max/redhat/jboss-5.1.0.GA/server/default/deploy/bpel-console/gwt-console.war/WEB-INF/lib/slf4j-log4j12-1.5.10.jar/org/slf4j/impl/StaticLoggerBinder.class]
      16:17:23,064 ERROR [STDERR] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
      16:17:23,115 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.appender.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
      16:17:23,115 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
      16:17:23,115 ERROR [STDERR] log4j:ERROR [BaseClassLoader@f56489

      {vfszip:/home/max/redhat/jboss-5.1.0.GA/server/default/deploy/bpel-console/gwt-console.war/}

      ] whereas object of type
      16:17:23,119 ERROR [STDERR] log4j:ERROR "org.jboss.logging.appender.FileAppender" was loaded by [org.jboss.bootstrap.NoAnnotationURLClassLoader@1d8957f].
      16:17:23,119 ERROR [STDERR] log4j:ERROR Could not instantiate appender named "FILE".

              gary@brownuk.com Gary Brown
              mstrano_jira Massimo Strano (Inactive)
              Archiver:
              rhn-support-adandapa Aitik Dandapat (Inactive)

                Created:
                Updated:
                Resolved:
                Archived: