java.lang.NoClassDefFoundError

org/apache/kafka/common/errors/SerializationException

Samebug tips8

You might've forgot to add a dependency or it's written wrong. Also, you might be using incompatible versions of Java and Hibernate. More on this here: https://goo.gl/SjSlRA


rafaelrafael

jsp-api and servlet-api jars must NOT be deployed by your web app. They should be marked as provided but not deployed by your app.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web13981

  • via Unknown by iman teimoornegad,
  • Stack trace

    • java.lang.NoClassDefFoundError: org/apache/kafka/common/errors/SerializationException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:195) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:116) Caused by: java.lang.ClassNotFoundException: org.apache.kafka.common.errors.SerializationException at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 3 more

    Write tip

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

    Users with the same issue

    Unknown visitor
    Unknown visitor2 times, last one
    johnxflyjohnxfly
    3 times, last one
    jf-astjf-ast
    Once,
    Nikolay RybakNikolay Rybak
    14 times, last one
    serious2monkeysserious2monkeys
    Once,
    1232 more bugmates