SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

调试Mina程序出现如下错误:

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.

下载相应的slf4j的jar包,在slf4j官网下载,

以1.7.21版本为例。

一般只是在程序中引入了slf4j-api-1.7.21.jar文件。

解决方式如下:

  解压下载的zip包中,拷贝 slf4j-nop-1.7.21.jar 文件到项目中,再build path, 就解决了。

时间: 2024-08-02 11:02:01

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".的相关文章

【SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".】解决办法

[问题描述] Maven工程中,使用了slf4j,运行时出现错误: 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. [

Mina 中遇到SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder"

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. 解决方案: 下载匹配的slf4j<http://www.slf4j

SLF4J: Failed to load class &quot;org.slf4j.impl.StaticLoggerBinder&quot;.错误的解决方法

1.今天新git下来的项目报错如下: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation (NOP) logger implementationSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 2.解决办法 我的解决方法是,看报错

Failed to load class &quot;org.slf4j.impl.StaticLoggerBinder&quot;

调试程序出现如下错误: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation (NOP) logger implementationSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 下载相应的slf4j的jar包,在slf4j官网下

kafka 报Failed to load class &quot;org.slf4j.impl.StaticLoggerBinder&quot;.[z]

转:http://blog.chinaunix.net/uid-25135004-id-4172954.html 测试kafka    producer发送消息 和  consumer 接受消息报错 ,kafka版本kafka_2.9.2-0.8.1 [[email protected] ~]#  /export/kafka/bin/kafka-console-producer.sh  --broker-list 10.14.2.201:9092,10.14.2.202:9092,10.14.2

SLF4J: Failed to load class的问题及解决

今天在用Maven搞一个工程,安装要求我添加了所有需要的依赖,可是一运行测试程序,就跳出这样一个大大的错误: 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.

解决Failed to load class &quot;org.slf4j.impl.StaticLoggerBinder&quot;

解决Failed to load class "org.slf4j.impl.StaticLoggerBinder" 解决办法,两步: 一.在编译路径中添加Log4J的包,比如我一直在用的log4j-1.2.8.jar: 二.再添加一个叫做slf4j-log4j12-1.5.11.jar的包进行转换,注意到这里的log4j12,可能对应的是log4j 1.2版本.解决! 补充: SLF4J官方下载:http://www.slf4j.org/download.html 下载对应版本后加压

【Hibernate】Hibernate3.x独立运行时的Failed to load class &quot;org.slf4j.impl.StaticLoggerBinder&quot;错误

按理说,如果Hibernate不依附于SSH运行,像<[Struts2+Hibernate3+Spring3]利用SSH整合,完成打印用户表,用户登录.注册.修改密码系统>(点击打开链接)一样,把hibernate-distribution-3.6.10.Final解压之后,把根目录的hibernate3.jar,hibernate-distribution-3.6.0.Final\lib\required下的所有jar,hibernate-distribution-3.6.0.Final\l

spring quartz 定时任务“Failed to load class &quot;org.slf4j.impl.StaticLoggerBinder”“Checking for available updated version of Quartz”

Failed to load class "org.slf4j.impl.StaticLoggerBinder 需要slf4j-api.jar.slf4j-log4j12.jar Checking for available updated version of Quartz 添加系统属性 System.setProperty("org.terracotta.quartz.skipUpdateCheck", "true"); spring quartz 定