java.lang.NoClassDefFoundError

tip

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

tip

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.

tip

This error means there's a class missing in your classpath during runtime. You need to create a jar with all your dependencies and have it in your classpath. Check Maven Assembly Plugin and how to add your dependencies to a jar: https://goo.gl/U2zr8k

tip

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.

tip

The server rejects all jars that already belong to the server runtime (such as tomcat-**.jar, servlet**.jar). Consider substituting the CORS filter you're using for this one: https://goo.gl/ctQ7Fs

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

  • MATLAB startup error ubuntu 14.04
    via Ask Ubuntu by dzy
    ,
  • User:Melancholie/Java/Batik - OpenStreetMap Wiki
    via by Unknown author,
  • jax-ws standalone client null pointer exception
    via by user3653687,
  • run problem
    via GitHub by crazyfox3
    ,
  • Error when run scala jar
    via Stack Overflow by zjffdu
    ,
  • Apache POI - how to create workbook for xlsx
    via Stack Overflow by JBurk94
    ,
  • java , eclipse jar problem
    via Stack Overflow by Raxvan
    ,
    • java.lang.NoClassDefFoundError: org/apache/axis2/databinding/ADBBean at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at com.mathworks.mlwebservices.ControllingProductProvider.getControllingProducts(ControllingProductProvider.java:11) at com.mathworks.mlwebservices.DefaultActivationService.<init>(DefaultActivationService.java:34) at com.mathworks.activationclient.ActivationApplication.createActivationService(ActivationApplication.java:205) at com.mathworks.activationclient.ActivationApplication.<init>(ActivationApplication.java:194) at com.mathworks.activationclient.ActivationApplication.main(ActivationApplication.java:144) Caused by: java.lang.ClassNotFoundException: org.apache.axis2.databinding.ADBBean at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) ... 17 more

    Users with the same issue

    CasperCasper
    4 times, last one,
    HandemelindoHandemelindo
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    rprp
    3 times, last one,
    1188 more bugmates