码迷,mamicode.com
首页 > 其他好文 > 详细

org.slf4j.impl.SimpleLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext

时间:2016-08-06 08:17:51      阅读:1289      评论:0      收藏:0      [点我收藏+]

标签:

查看日志信息:

SLF4J: Class path contains multiple SLF4J bindings.  
SLF4J: Found binding in [jar:file:/app/apache-tomcat-docbase/mmsi/WEB-INF/lib/slf4j-simple-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]  
SLF4J: Found binding in [jar:file:/app/apache-tomcat-docbase/mmsi/WEB-INF/lib/logback-classic-1.0.13.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.SimpleLoggerFactory]  

解释:

SLF4J: 类路径包含多个SLF4J绑定

SLF4J: ——

SLF4J: ——

SLF4J: ——

SLF4J: 实际绑定的是类型[org.slf4j.impl.SimpleLoggerFactory]

 

解决办法,移除slf4j-simple-1.6.4.jar

 

如何发现该问题:

 

org.slf4j.impl.SimpleLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext

标签:

原文地址:http://www.cnblogs.com/zno2/p/4496521.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!