您的slf4j绑定所请求的版本1.6不兼容

时间:2014-04-25 10:50:49

标签: hibernate logging slf4j

当我部署我的项目时,我收到此错误代码

SLF4J: The requested version 1.6 by your slf4j binding is not compatible with [1.5.5, 1.5.6, 1.5.7, 1.5.8]

SLF4J:有关详细信息,请参阅http://www.slf4j.org/codes.html#version_mismatch。 AVR。 30,2014 10:16:37 AM org.apache.catalina.core.ApplicationContext log 信息:初始化Spring root WebApplicationContext AVR。 30,2014 10:16:37 AM org.apache.catalina.core.StandardContext listenerStart Grave:Exception lors de l'envoi de l'évènementinclxteinitialisé(context initialized)àl'instancede classe d'écoute(listener)org.springframework.web.context.ContextLoaderListener java.lang.AbstractMethodError:ch.qos.logback.classic.Logger.log(Lorg / slf4j / Marker; Ljava / lang / String; ILjava / lang / String; Ljava / lang / Throwable;)V     在org.apache.commons.logging.impl.SLF4JLocationAwareLog.info(SLF4JLocationAwareLog.java:159)     在org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:285)     在org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)     在org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)     在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)     在org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)     在org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)     在org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)     在org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:663)     在org.apache.catalina.startup.HostConfig $ DeployDescriptor.run(HostConfig.java:1642)     at java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:471)     在java.util.concurrent.FutureTask.run(FutureTask.java:262)     在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)     at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)     在java.lang.Thread.run(Thread.java:744)

1 个答案:

答案 0 :(得分:1)

我有类似的错误消息。我通过排除依赖org.apache.directory.server:apacheds-all来解决它。不知怎的,那个jar会覆盖org.slf4j.spi.LocationAwareLogger