未能加载类“org.slf4j.impl.StaticLoggerBinder” [英] Failed to load class "org.slf4j.impl.StaticLoggerBinder"

查看:1555
本文介绍了未能加载类“org.slf4j.impl.StaticLoggerBinder”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试运行Hibernate时,我在控制台中收到以下消息。

I am getting the following messages in console when I try to run the Hibernate .

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

但hibernate工作正常。我的项目有什么问题吗?我使用Eclipse(Helios),Hibernate 3.6.8。
i使用这些jar文件:antlr-2.7.6,commons-collections-3.1,dom4j-1.6.1,hibernate3,hibernate-jpa-2.0-api-1.0.1.Final,javassist-3.12.0.GA ,jta-1.1,slf4j-api-1.6.1

but the hibernate works fine . is there any problem in my project ? i use Eclipse(Helios),Hibernate 3.6.8 . i use these jar files : antlr-2.7.6 , commons-collections-3.1 , dom4j-1.6.1 , hibernate3 , hibernate-jpa-2.0-api-1.0.1.Final , javassist-3.12.0.GA , jta-1.1 , slf4j-api-1.6.1

推荐答案

这个错误表明无法找到合适的SLF4J绑定班级路径。在类路径中放置slf4j-nop.jar,slf4j-simple.jar,slf4j-log4j12.jar,slf4j-jdk14.jar或logback-classic.jar中的一个(并且只有一个)应该可以解决问题。

This error indicates that appropriate SLF4J binding could not be found on the class path. Placing one (and only one) of slf4j-nop.jar, slf4j-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar or logback-classic.jar on the class path should solve the problem.

请参阅 http://www.slf4j.org/index.html

这篇关于未能加载类“org.slf4j.impl.StaticLoggerBinder”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆