这个错误背后的原因是什么?我们什么时候会收到这个错误?slf4j jar已经在包中
java.lang.NoClassDefFoundError: ch/qos/logback/core/util/StatusListenerConfigHelper
at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:147)
at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
at net.sourceforge.cobertura.instrument.InstrumentMain$LoggerWrapper.<init>(InstrumentMain.java:165)
at net.sourceforge.cobertura.instrument.InstrumentMain$LoggerWrapper.<init>(InstrumentMain.java:164)
at net.sourceforge.cobertura.instrument.InstrumentMain.<clinit>(InstrumentMain.java:66)
Caused by: java.lang.ClassNotFoundException: ch.qos.logback.core.util.StatusListenerConfigHelper
1条答案
按热度按时间hgqdbh6s1#
看起来您在两个回登录版本之间的类路径中有问题。如果您使用像maven这样的工具来管理依赖关系,则必须找到哪个依赖关系导入最旧的回登录版本,并从中排除回登录。