[slf4j-user] slf4j with logback?
Ole Ersoy
ole.ersoy at gmail.com
Fri Oct 7 04:11:44 CEST 2011
Hi,
I'm attempting to use slf4j with logback. I see the following when I start tomcat:
SLF4J: slf4j-api 1.6.x (or later) is incompatible with this binding.
SLF4J: Your binding is version 1.5.5 or earlier.
SLF4J: Upgrade your binding to version 1.6.x. or 2.0.x
I'm using the following version of slf4j and logback:
[INFO] +- org.slf4j:slf4j-api:jar:1.6.2:compile
[INFO] +- ch.qos.logback:logback-classic:jar:0.9.9:compile
[INFO] | \- ch.qos.logback:logback-core:jar:0.9.9:compile
I also get the exception pasted at the bottom of this email. I read up on it and hibernate, ran mvn dependency:tree, and looked for other slf4j versions. I did not find any. I do have a dependency on JCL though. Any ideas on what the problem could be?
TIA,
- Ole
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.slf4j.impl.StaticLoggerBinder.getSingleton()Lorg/slf4j/impl/StaticLoggerBinder;
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
More information about the slf4j-user
mailing list