java.lang.NoClassDefFoundError

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

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.

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

Check if you didn't forget to instantiate your topic in the kafka broker.

tip

NoClassDefFoundError means java has failed to find a class you're trying to instantiate, look if you've added the class you're trying to instantiate to the dependencies.

tip

You need to add httpcore to your dependencies. Try adding version 4.3 or further.

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

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.

  • If you try to run the step you get the following error: 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - ERROR (version TRUNK-SNAPSHOT, build 1 from 2013-04-09 20.51.16 by matt) : Unexpected error 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - ERROR (version TRUNK-SNAPSHOT, build 1 from 2013-04-09 20.51.16 by matt) : java.lang.NoClassDefFoundError: org/pentaho/reporting/libraries/serializer/LibSerializerInfo 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at org.pentaho.reporting.engine.classic.core.ClassicEngineBoot.<init>(ClassicEngineBoot.java:221) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at org.pentaho.reporting.engine.classic.core.ClassicEngineBoot.getInstance(ClassicEngineBoot.java:233) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at org.pentaho.di.trans.steps.pentahoreporting.PentahoReportingOutput.performPentahoReportingBoot(PentahoReportingOutput.java:129) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at org.pentaho.di.trans.steps.pentahoreporting.PentahoReportingOutput.processRow(PentahoReportingOutput.java:109) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:60) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at java.lang.Thread.run(Thread.java:662) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - Caused by: java.lang.ClassNotFoundException: org.pentaho.reporting.libraries.serializer.LibSerializerInfo 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at java.net.URLClassLoader$1.run(URLClassLoader.java:202) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at java.security.AccessController.doPrivileged(Native Method) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at java.net.URLClassLoader.findClass(URLClassLoader.java:190) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at java.lang.ClassLoader.loadClass(ClassLoader.java:306) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at java.lang.ClassLoader.loadClass(ClassLoader.java:247) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - ... 6 more
    via by Matt Casters,
  • If you try to run the step you get the following error: 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - ERROR (version TRUNK-SNAPSHOT, build 1 from 2013-04-09 20.51.16 by matt) : Unexpected error 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - ERROR (version TRUNK-SNAPSHOT, build 1 from 2013-04-09 20.51.16 by matt) : java.lang.NoClassDefFoundError: org/pentaho/reporting/libraries/serializer/LibSerializerInfo 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at org.pentaho.reporting.engine.classic.core.ClassicEngineBoot.<init>(ClassicEngineBoot.java:221) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at org.pentaho.reporting.engine.classic.core.ClassicEngineBoot.getInstance(ClassicEngineBoot.java:233) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at org.pentaho.di.trans.steps.pentahoreporting.PentahoReportingOutput.performPentahoReportingBoot(PentahoReportingOutput.java:129) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at org.pentaho.di.trans.steps.pentahoreporting.PentahoReportingOutput.processRow(PentahoReportingOutput.java:109) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:60) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at java.lang.Thread.run(Thread.java:662) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - Caused by: java.lang.ClassNotFoundException: org.pentaho.reporting.libraries.serializer.LibSerializerInfo 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at java.net.URLClassLoader$1.run(URLClassLoader.java:202) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at java.security.AccessController.doPrivileged(Native Method) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at java.net.URLClassLoader.findClass(URLClassLoader.java:190) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at java.lang.ClassLoader.loadClass(ClassLoader.java:306) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - at java.lang.ClassLoader.loadClass(ClassLoader.java:247) 2013/04/16 15:42:36 - Pentaho Reporting Output.0 - ... 6 more
    via by Matt Casters,
  • GWT server app cannot connect to database
    via Stack Overflow by jgp
    ,
  • Hibernate Tools Suite HQL
    via by Tenazau2,
  • Proguard rules - NoClassDefFoundError
    via Stack Overflow by fe_araujo_
    ,
    • java.lang.NoClassDefFoundError: org/pentaho/reporting/libraries/serializer/LibSerializerInfo at org.pentaho.reporting.engine.classic.core.ClassicEngineBoot.<init>(ClassicEngineBoot.java:221) at org.pentaho.reporting.engine.classic.core.ClassicEngineBoot.getInstance(ClassicEngineBoot.java:233) at org.pentaho.di.trans.steps.pentahoreporting.PentahoReportingOutput.performPentahoReportingBoot(PentahoReportingOutput.java:129) at org.pentaho.di.trans.steps.pentahoreporting.PentahoReportingOutput.processRow(PentahoReportingOutput.java:109) at org.pentaho.di.trans.step.RunThread.run(RunThread.java:60) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.ClassNotFoundException: org.pentaho.reporting.libraries.serializer.LibSerializerInfo at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 6 more

    Users with the same issue

    michallos
    2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    2285 more bugmates