java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.impl.JDK14LoggerFactory loaded from file:/home/jenkins/.m2/repository/org/slf4j/slf4j-jdk14/1.7.21/slf4j-jdk14-1.7.21.jar). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml Object of class [org.slf4j.impl.JDK14LoggerFactory] must be an instance of class ch.qos.logback.classic.LoggerContext

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

There's some conflicting dependencies in your pom.xml. Try adding an entry to exclude org.eclipse.jetty.aggregate from dependencies, as this seems to solve the problem.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • GitHub comment 39#218109431
    via GitHub by anhdenday
    ,
  • GitHub comment 41#222278462
    via GitHub by hongqizhang
    ,
  • GitHub comment 6709#251545147
    via GitHub by xenoterracide
    ,
  • GitHub comment 1#272342679
    via GitHub by hidetarou2013
    ,
    • java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.impl.JDK14LoggerFactory loaded from file:/home/jenkins/.m2/repository/org/slf4j/slf4j-jdk14/1.7.21/slf4j-jdk14-1.7.21.jar). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml Object of class [org.slf4j.impl.JDK14LoggerFactory] must be an instance of class ch.qos.logback.classic.LoggerContext at org.springframework.util.Assert.isInstanceOf(Assert.java:346) at org.springframework.boot.logging.logback.LogbackLoggingSystem.getLoggerContext(LogbackLoggingSystem.java:231) at org.springframework.boot.logging.logback.LogbackLoggingSystem.getLogger(LogbackLoggingSystem.java:223) at org.springframework.boot.logging.logback.LogbackLoggingSystem.setLogLevel(LogbackLoggingSystem.java:214) at org.springframework.cloud.launcher.deployer.DeployerThread.quiet(DeployerThread.java:90) at org.springframework.cloud.launcher.deployer.DeployerThread.run(DeployerThread.java:81)

    Users with the same issue

    Unknown visitor1 times, last one,
    gehel
    gehel1 times, last one,
    tvrmsmith
    tvrmsmith1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    6 more bugmates