Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1342

java.lang.NoClassDefFoundError: ch/qos/logback/core/util/StatusListenerConfigHelper

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.3
    • Fix Version/s: None
    • Labels:
      None

      Description

      I updated logback to 1.2.3 and slf4j to 1.7.25 but i get this error when I run unit tests that have

      private static Logger logger = LoggerFactory.getLogger(MyClass.class);

      my tests fail with

      Reported exception:
      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:150)
      at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
      at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:412)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)
      

        Attachments

          Activity

            People

            • Assignee:
              logback-dev Logback dev list
              Reporter:
              yankitwizzy Ifeanyi Agu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: