SLF4J: Class path contains multiple SLF4J bindings.解决方案

简介: SLF4J: Class path contains multiple SLF4J bindings.解决方案

   

SLF4J: Class path contains multiple SLF4J bindings.解决方案

错误日志信息:

SLF4J: Found binding in [jar:file:/usr/local/src/hadoop/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: Found binding in  [jar:file:/usr/local/hbase/lib/client-facing-thirdparty/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]

image.png

含义为:

发生jar包冲突了:

分别为:

:file:/usr/local/src/hadoop/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar

:file:/usr/local/hbase/lib/client-facing-thirdparty/slf4j-log4j12-1.7.25.jar

移除其中一个jar包即可

解决方案:

使用下面命令:

/usr/local/hbase/lib rm slf4j-log4j12-1.7.25.jar

关闭命令窗口重新运行


目录
相关文章
|
2月前
|
Java
flyway报错SLF4J: No SLF4J providers were found.或者SLF4J: Defaulting to no-operation (NOP) logger implem
flyway报错SLF4J: No SLF4J providers were found.或者SLF4J: Defaulting to no-operation (NOP) logger implem
86 1
|
3月前
|
Java 开发者
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Class path contains multiple SLF4J bindings.
14 0
|
6月前
|
Java API Maven
解决SLF4J和logback报错SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
解决SLF4J和logback报错SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
|
Java Maven
SpringBoot中使用SLE4J日志框架启动报错:SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinde
SpringBoot中使用SLE4J日志框架启动报错:SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinde
488 1
|
分布式计算 Hadoop
SLF4J:Failed to load class org.slf4j.impl.StaticLoggerBinder.
SLF4J:Failed to load class org.slf4j.impl.StaticLoggerBinder.
241 0
|
Java Maven
Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log 解决方法
org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:400) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.jav
240 0
|
Java Maven
严重: Error configuring application listener of class org.springframework.web.util.Log4jConfigListener
严重: Error configuring application listener of class org.springframework.web.util.Log4jConfigListener
146 0
严重: Error configuring application listener of class org.springframework.web.util.Log4jConfigListener
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
131 0
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
|
SQL 关系型数据库 MySQL
警告:SLF4J: Class path contains multiple SLF4J bindings.
警告:SLF4J: Class path contains multiple SLF4J bindings.
307 0
警告:SLF4J: Class path contains multiple SLF4J bindings.