java.lang.ClassNotFoundException

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

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

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

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

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

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

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

  • GF3-TP2: Admin console won't install?
    via by quintesse,
  • ProtocolSupport PE not work
    via GitHub by Delimer
    ,
  • Not able to start the ATG server
    via Stack Overflow by Srihari Surisetty
    ,
  • Not able to start the Spring-Boot sample
    via Stack Overflow by Kunal Jha
    ,
  • Spring Security on a non Spring Web app
    via Stack Overflow by Asme Just
    ,
  • java connection problem with mysql
    via Stack Overflow by Abhisek
    ,
  • Hadoop 0.23.1 Release Notes
    via by Unknown author,
    • java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:998) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1494) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4474) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5192) at com.sun.enterprise.web.WebModule.start(WebModule.java:341) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:989)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    eti22
    1 times, last one,
    1248 more bugmates