Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. ClassLoader.loadClassInternal() has thrown a NoClassDefFoundError
    Java Runtime
    5
    1
    39
  2. Incompatible dependency version or class not found in classpath
    Java Runtime
    546
    231
    261

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
8 frames hidden

Solution

rafael1 year ago

Look if your classpath is correct, and check if the versions of your libraries match the version you described in your pom.xml

Check the source of this solution for more info

External results for this pattern (10)

  1. Unknown authorvia Google Groups5 days ago
    com/google/gerrit/extensions/restapi/AcceptsCreate
    Show stack trace
  2. Unknown authorvia Google Groups6 days ago
    java/lang/AutoCloseable
    Show stack trace
  3. ngosti2000via Google Groups1 week ago
    com/codename1/system/NativeInterface*
    Show stack trace
  4. sangram desaivia Google Groups4 weeks ago
    com/google/common/base/Predicate
    Show stack trace
  5. prsalazarvia GitHub1 month ago
    org/mapdb/elsa/ElsaSerializerBase$Ser
    Show stack trace
  6. AM-DNEGELvia GitHub1 month ago
    org/apache/spark/Logging
    Show stack trace
  7. lbndevvia GitHub1 month ago
    com/sun/xml/bind/api/ErrorListener
    Show stack trace
  8. 10by10pixelvia GitHub1 month ago
    NEATFlappyBird (wrong name: fr/neatmonster/labs/NEATFlappyBird)
    Show stack trace
  9. Nicolas Parisvia Google Groups1 month ago
    shared/SharedObjectFactory
    Show stack trace
  10. Diana Magdivia Google Groups1 month ago
    >> shared/SharedObjectFactory >>
    Show stack trace