1 Reply Latest reply on Aug 6, 2010 6:09 AM by ppitonak

    Multiple SLF4J bindings

    ppitonak

      Hello,

       

      our RichFaces Showcase application uses SLF4J  for logging and since we don't want to ship a war for each application server, we package it into war which causes the following error in JBoss AS 6 M4:

       

      12:48:26,059 ERROR [STDERR] SLF4J: Class path contains multiple SLF4J bindings.
      12:48:26,059 ERROR [STDERR] SLF4J: Found binding in [vfs:/data/soft/jboss-6.0.0.20100721-M4/common/lib/slf4j-jboss-logmanager.jar/org/slf4j/impl/StaticLoggerBinder.class]
      12:48:26,059 ERROR [STDERR] SLF4J: Found binding in [vfs:/data/soft/jboss-6.0.0.20100721-M4/server/default/deploy/richfaces-showcase.war/WEB-INF/lib/slf4j-log4j12-1.5.8.jar/org/slf4j/impl/StaticLoggerBinder.class]
      12:48:26,059 ERROR [STDERR] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
      

       

      Is there any way how to run it without errors and without removing slf4j-log4j12.jar from war?

       

      Palo