I am using JBoss 6 and am getting a multiple versions error when trying to run my application:
ERROR [STDERR] SLF4J: Class path contains multiple SLF4J bindings.
ERROR [STDERR] SLF4J: Found binding in [vfs:/C:/jboss-6.0.0.Final/common/lib/slf4j-jboss-logmanager.jar/org/slf4j/impl/StaticLoggerBinder.class]
ERROR [STDERR] SLF4J: Found binding in [vfs:/C:/jboss-6.0.0.Final/server/default/deploy/newsroom-integration-persistence-service.war/WEB-INF/lib/slf4j-log4j12-1.6.1.jar/org/slf4j/impl/StaticLoggerBinder.class]
My application declares slf4j-log4j12 in the pom but not slf4j-jboss-logmanager so have no idea why its trying to use this. This is the pom:
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${org.slf4j-version}</version>
<scope>runtime</scope>
</dependency>
Any ideas on how to resolve this? It seems to be causing 'DEBUG' level errors to be written to the console even when the level-name set in jboss-logging.xml is set to INFO!!