org.slf4j.LoggerFactory could not be successfully

  • SLF4J配置错误

错误信息如下:

SLF4J: slf4j-api 1.6.x (or later) is incompatible with this binding.

SLF4J: Your binding is version 1.5.5 or earlier.

SLF4J: Upgrade your binding to version 1.6.x.

 

Caused by: java.lang.IllegalStateException: org.slf4j.LoggerFactory could not be successfully initialized. See also http://www.slf4j.org/codes.html#unsuccessfulInit

         at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:310)

         at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:276)

         at net.sf.ehcache.store.MemoryStoreEvictionPolicy.<clinit>(MemoryStoreEvictionPolicy.java:63)

         ... 44 more

错误原因:

    究其原因为版本冲突,但是在Maven中找不到冲突的版本。最后修改了slf4j-log4j12版本为1.7.5后冲突解决。如果log4j使用1.2.17版本请使用 slf4j-log4j12:1.7.5与之匹配。

你可能感兴趣的:(could,loggerfactory,be,not,successfully,initialized)