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

Needs to add netty-transport-native-epoll with a OS classifier to the classpath, it's not included in netty-all

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

  • Please Help. | Java.net
    via by Unknown author,
  • RE: Combat Reporter - report monitoring tool
    via by Unknown author,
  • Hive-trunk-hadoop2 - Build # 55 - Failure
    via by Apache Jenkins Server,
  • Embed Apache Felix in a Web Application
    via by dboltri,
    • java.lang.NoClassDefFoundError: com.ibm.ws.logging.WsLoggerFactoryImpl at com.ibm.ejs.ras.Tr.<clinit>(Tr.java:192) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:200) at com.ibm.websphere.ssl.protocol.SSLSocketFactory.<clinit>(SSLSocketFactory.java:62) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:200) at java.lang.J9VMInternals.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:1345) at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:11) at javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:41) at javax.net.ssl.HttpsURLConnection.<init>(HttpsURLConnection.java:46) at com.ibm.net.ssl.www2.protocol.https.b.<init>(b.java:38) at com.ibm.net.ssl.www2.protocol.https.Handler.openConnection(Handler.java:1) at com.ibm.net.ssl.www2.protocol.https.Handler.openConnection(Handler.java:10) at java.net.URL.openConnection(URL.java:946) at com.ibm.isf.admin.ssl.tools.UpdateSignerCerts.getSignersStoreInfo(UpdateSignerCerts.java:206) at com.ibm.isf.admin.ssl.tools.UpdateSignerCerts.handleRequest(UpdateSignerCerts.java:147) at com.ibm.isf.admin.ssl.tools.UpdateSignerCerts.main(UpdateSignerCerts.java:697) Caused by: java.lang.ClassNotFoundException: com.ibm.ws.logging.WsLoggerFactoryImpl at java.net.URLClassLoader.findClass(URLClassLoader.java:423) at java.lang.ClassLoader.loadClass(ClassLoader.java:660) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346) at java.lang.ClassLoader.loadClass(ClassLoader.java:626) ... 18 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown UserUnknown User
    14 times, last one,
    batwalrus76batwalrus76
    1 times, last one,
    musketyrmusketyr
    3 times, last one,
    2331 more bugmates