NoClassDefFoundError: org/slf4j/Logger

百般思念 提交于 2019-12-01 15:30:34

The answer is hidden in the manual page:

Use of the Log4j 2 SLF4J Binding (log4j-slf4j-impl-2.0.jar) together with the SLF4J adapter (log4j-to-slf4j-2.0.jar) should never be attempted, as it will cause events to endlessly be routed between SLF4J and Log4j 2.

You want to keep the log4j-slf4j-impl-2.xx.jar and remove the log4j-to-slf4j-2.xx.jar.

Yes. you need the SLF4J jar file. You can download it at: http://www.slf4j.org/download.html

A NoClassDefFoundError with ClassNotFoundException specifies that the particular class is missing during runtime.

You have to provide one of the various SLF4J implementation .jar files in the classpath

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!