java.lang.ClassCastException: org.slf4j.impl.SimpleLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext

Stack Overflow | Pedro Matos | 4 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Importing Jar in Play Framework gives me java.lang.ClassCastException

    Stack Overflow | 4 months ago | Pedro Matos
    java.lang.ClassCastException: org.slf4j.impl.SimpleLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext
  2. 0

    [Play-2.5.10-Java] Using tika library the application doesn't start

    Google Groups | 3 months ago | Enrico Morelli
    java.lang.ClassCastException: org.slf4j.impl.Log4jLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext
  3. 0

    GitHub comment 6679#278918928

    GitHub | 2 weeks ago | igmar
    java.lang.ClassCastException: org.apache.logging.slf4j.Log4jLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.slf4j.impl.SimpleLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext

      at play.api.libs.logback.LogbackLoggerConfigurator.configure()
    2. play.api.libs
      LogbackLoggerConfigurator.init
      1. play.api.libs.logback.LogbackLoggerConfigurator.configure(LogbackLoggerConfigurator.scala:80)
      2. play.api.libs.logback.LogbackLoggerConfigurator.init(LogbackLoggerConfigurator.scala:26)
      2 frames
    3. Play Server
      DevServerStart$$anonfun$mainDev$1.apply
      1. play.core.server.DevServerStart$$anonfun$mainDev$1.apply(DevServerStart.scala:94)
      2. play.core.server.DevServerStart$$anonfun$mainDev$1.apply(DevServerStart.scala:65)
      2 frames
    4. Play
      Threads$.withContextClassLoader
      1. play.utils.Threads$.withContextClassLoader(Threads.scala:21)
      1 frame
    5. Play Server
      DevServerStart.mainDevHttpMode
      1. play.core.server.DevServerStart$.mainDev(DevServerStart.scala:64)
      2. play.core.server.DevServerStart$.mainDevHttpMode(DevServerStart.scala:54)
      3. play.core.server.DevServerStart.mainDevHttpMode(DevServerStart.scala)
      3 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    7. RunSupport
      Reloader$.startDevMode
      1. play.runsupport.Reloader$.startDevMode(Reloader.scala:234)
      1 frame
    8. play.sbt.run
      PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.apply
      1. play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.devModeServer$lzycompute$1(PlayRun.scala:74)
      2. play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.play$sbt$run$PlayRun$$anonfun$$anonfun$$anonfun$$devModeServer$1(PlayRun.scala:74)
      3. play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.apply(PlayRun.scala:100)
      4. play.sbt.run.PlayRun$$anonfun$playRunTask$1$$anonfun$apply$2$$anonfun$apply$3.apply(PlayRun.scala:53)
      4 frames
    9. Scala
      Function1$$anonfun$compose$1.apply
      1. scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
      1 frame