博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Failed to load class "org.slf4j.impl.StaticLoggerB
阅读量:4079 次
发布时间:2019-05-25

本文共 796 字,大约阅读时间需要 2 分钟。

osgi> start 45

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: See for further details.
【Session管理器】(2009-02-24 15:50:35):初始化Hibernate SessionFactory时出现错误
java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder

 

分析问题,由于是找不包slf4j相应的jar包,因此是由于少jar包的原因。

 

slf4j 官方有常见错误解答: http://www.slf4j.org/codes.html#log4j_version

得知此错误原因是:

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.

 

故在官方下载

解压出slftj-nop-1.5.jar导入项目,后无报错,问题解决。

posted on 2010-06-07 09:59 阅读(...) 评论(...)

转载地址:http://jepni.baihongyu.com/

你可能感兴趣的文章
Nginx篇-springCloud配置Gateway+Nginx进行反向代理和负载均衡
查看>>
Nginx篇-Nginx配置动静分离
查看>>
缓存篇-Redis缓存失效以及解决方案
查看>>
缓存篇-使用Redis进行分布式锁应用
查看>>
缓存篇-Redisson的使用
查看>>
phpquery抓取网站内容简单介绍
查看>>
找工作准备的方向(4月22日写的)
查看>>
关于fwrite写入文件后打开查看是乱码的问题
查看>>
用结构体指针前必须要用malloc,不然会出现段错误
查看>>
Linux系统中的美
查看>>
一些实战项目(linux应用层编程,多线程编程,网络编程)
查看>>
我觉得专注于去学东西就好了,与世无争。
查看>>
原来k8s docker是用go语言写的,和现在所讲的go是一个东西!
查看>>
STM32CubeMX 真的不要太好用
查看>>
STM32CubeMX介绍、下载与安装
查看>>
电机和桨叶要搭配选择
查看>>
现在发现如果无人机的电机不同,浆可能是不能混用的。
查看>>
不要买铝合金机架的无人机,不耐摔,易变形弯曲。
查看>>
ACfly也是基于FreeRTOS的
查看>>
F330装GPS的位置
查看>>