java.lang.NoClassDefFoundError

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.

  • writing ISOServer for Q2 in JPOS1.4.8
    via by vamshi,
  • More Tuscany and Spring
    via by Sykes, Phil,
  • Error While running junit testcase in eclipse
    via Stack Overflow by LPatil
    ,
  • ..JavaBendeR...: October 2014
    via by Unknown author,
    • java.lang.NoClassDefFoundError: com/sap/conn/jco/ConversionException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at com.boomi.connector.base.BaseConnector.loadObject(BaseConnector.java:185) at com.boomi.connector.custom.CustomConnector.createGetAction(CustomConnector.java:238) at com.boomi.connector.custom.CustomGetConnectorAction.invoke(CustomGetConnectorAction.java:43) at com.boomi.connector.base.BaseConnectorAction.invokeBase(BaseConnectorAction.java:275) at com.boomi.connector.base.BaseConnectorAction.invoke(BaseConnectorAction.java:214) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.boomi.util.ClassUtil$InvokerWithClassLoader.invoke(ClassUtil.java:360) at com.sun.proxy.$Proxy34.invoke(Unknown Source) at com.boomi.process.shape.ConnectorShapeHandler.execute(ConnectorShapeHandler.java:152) at com.boomi.process.shape.StartShape.execute(StartShape.java:132) at com.boomi.process.graph.ProcessShape.executeShape(ProcessShape.java:541) at com.boomi.process.graph.ProcessGraph.execute(ProcessGraph.java:295) at com.boomi.process.ProcessExecution.call(ProcessExecution.java:782) at com.boomi.execution.ExecutionTask.call(ExecutionTask.java:905) at com.boomi.execution.ExecutionTask.call(ExecutionTask.java:63) at com.boomi.util.concurrent.CancellableFutureTask.run(CancellableFutureTask.java:172) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: com.sap.conn.jco.ConversionException at java.net.URLClassLoader$1.run(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 java.lang.ClassLoader.loadClass(Unknown Source)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor2 times, last one,
    Unknown UserUnknown User
    14 times, last one,
    2285 more bugmates