`

Failed to load class "org.slf4j.impl.StaticLoggerBinder".问题解决

阅读更多

在进行hibernate配置好后运行测试类的时候出现:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
	at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:223)
	at org.slf4j.LoggerFactory.bind(LoggerFactory.java:120)
	at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)
	at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:269)
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:255)
	at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:165)
	at com.lwf.hibernate.UserTest.main(UserTest.java:13)

 

 

解决方法:

This error is reported when the org.slf4j.impl.StaticLoggerBinder class could not be loaded into memory. This happens when no appropriate SLF4J binding could 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. 

You can download SLF4J bindings from the project download page. 

大意是org.slf4j.impl.StaticLoggerBinder 无法载入到内存,原因是没有找到合适的绑定SLF4J,需要添加所列举的包中的某一个。 

 

下载地址:

http://www.slf4j.org/dist/slf4j-1.5.2.zip

解压后把

slf4j-nop-1.5.2.jar加入的到项目类库中.

附件里已上传文件

分享到:
评论

相关推荐

    slf4j jar包

    org.slf4j.impl.StaticLoggerBinder.class org.slf4j.impl.StaticMDCBinder.class org.slf4j.impl.StaticMarkerBinder.class org.slf4j.spi.LocationAwareLogger.class org.slf4j.spi.LoggerFactoryBinder.class org...

    解决SLF4J: Failed to load class "org.slf

    本资源可以解决SLF4J: Failed to load class "org.slf问题

    hibernate的slf4j-nop包

    hibernate的错误SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".的解决方法是:下载slf4j-nop.jar、slf4f-simple.jar、slf4j-log4j12.jar、slf4j-jdk14.jar或logback-classic.jar中某一个而且...

    slf4j-api-1.6.2.jar

    org.slf4j.ILoggerFactory.class org.slf4j.IMarkerFactory.class org.slf4j.Logger.class org.slf4j.LoggerFactory.class org.slf4j.MDC.class org.slf4j.Marker.class org.slf4j.MarkerFactory.class org.slf4j....

    java高级处理日志工具org.slf4j.log4j.jar,可以和org.slf4j.jar结合起来使用

    java高级处理日志工具org.slf4j.log4j.jar,可以和org.slf4j.jar结合起来使用

    org.slf4j.LoggerFactory

    包含 slf4j-simple-1.7.25-sources ,slf4j-simple-1.7.25 ,slf4j-nop-1.7.25-sources,slf4j-nop-1.7.25,slf4j-api-1.7.25,slf4j-log4j12-1.7.25等

    maven插件jar包:org.slf4j.api_1.6.4.jar

    maven安装时必不可少的jar包、可代替1.6.2版本

    java高级处理日志工具org.slf4j.jar

    java高级处理日志工具org.slf4j.jar,可以和org.slf4j.log4j结合起来使用

    slf4j-1.7.rar

    1.如果运行程序出现错误:“Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory”,这是因为项目缺少slf4j-api.jar和slf4j-log4j12.jar这两个jar包导致的错误。 2.如果运行程序...

    slf4j-log4j

    用于Failed to load class "org.slf4j.impl.StaticLoggerBinder"问题的jar包

    HIbernatre 3.3: org.slf4j.impl.StaticLoggerBinder

    NULL 博文链接:https://javajoy.iteye.com/blog/285894

    Slf4j日志相关jar包

    Slf4j日志相关jar包 包含log4j Slf4j jboss-logging commons-logging

    slf4j-log4j12-1.7.5.jar

    解决Failed to load class "org.slf4j.impl.StaticLoggerBinder" 所需要的jar包:slf4j-log4j12-1.7.5.jar

    slf4j-nop-1.6.6.jar

    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...

    slf4j-nop-1.6.1.jar文件.rar

    slf4j-nop-1.6.1.jar,SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder ”解决办法,

    NoClassDefFoundError: org/slf4j/LoggerFactory解决方案

    NoClassDefFoundError: org/slf4j/LoggerFactory解决方案,需要添加的三个jar包都在,slf4j-api-1.5.2,slf4j-log4j12-1.5.2,log4j-1.2.12

    slf4j-1.5.2.jar

    类org.slf4j.impl.StaticLoggerBinder并不在slf4j-api-1.5.2.jar包中,仔细查看每个与具体日志系统对应的jar包,就会发现,相应的jar包都有一个org.slf4j.impl.StaticLoggerBinder的实现,不同的实现返回与该日志...

    最新slf4j-1.7.21.zip源码和jar包

    3、jul-to-slf4j-1.7.21.jar 4、jul-to-slf4j-1.7.21-sources.jar 5、log4j-over-slf4j-1.7.21.jar 6、log4j-over-slf4j-1.7.21-sources.jar 7、osgi-over-slf4j-1.7.21.jar 8、osgi-over-slf4j-1.7.21-sources...

    slf4j最新jar包下载和jar包

    lombok.extern.slf4j.Slf4j注解错误,和最新slfe4j下载,时刻更新。可以在idea和eclipse应用

    log4j-slf4j-impl-2.17.1-API文档-中英对照版.zip

    Maven坐标:org.apache.logging.log4j:log4j-slf4j-impl:2.17.1; 标签:apache、logging、log4j、slf4j、impl、中英对照文档、jar包、java; 使用方法:解压翻译后的API文档,用浏览器打开“index.html”文件,即可...

Global site tag (gtag.js) - Google Analytics