java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet

Coderanch | Stan Lederer | 2 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug 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
  2. 0

    stuck between "wrong name" and NoClassDefFoundError

    Coderanch | 2 years ago | Stan Lederer
    java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
  3. 0

    Running GWT in SuperDevMode

    Stack Overflow | 4 years ago | xkm
    java.lang.NoClassDefFoundError: com/google/gwt/core/ext/TreeLogger
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to use css2gss converter

    GitHub | 9 months ago | kmthinkingrock
    java.lang.NoClassDefFoundError: com/google/gwt/core/ext/TreeLogger
  6. 0

    Unable to add user using shield

    GitHub | 2 years ago | rishi-freshbooks
    java.lang.NoClassDefFoundError: org/elasticsearch/common/cli/CliTool

  1. rsprangemeijer 1 times, last 7 days ago
  2. Nikolay Rybak 2 times, last 1 month ago
  3. mauritius 1 times, last 5 months ago
  4. r1chjames 2 times, last 5 months ago
  5. Kialandei 3 times, last 6 months ago
1 more registered users
85 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    javax.servlet.http.HttpServlet

    at java.net.URLClassLoader$1.run()
  2. Java RT
    LauncherHelper.checkAndLoadMain
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    6. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    7. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    8. java.lang.ClassLoader.defineClass1(Native Method)
    9. java.lang.ClassLoader.defineClass(ClassLoader.java:800)
    10. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    11. java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    12. java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    13. java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    14. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    15. java.security.AccessController.doPrivileged(Native Method)
    16. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    17. java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    18. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    19. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    20. sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
    20 frames