java.lang.NoClassDefFoundError: javax/servlet/ServletRequest

oracle.com | 4 months ago
  1. 0

    Oracle® Audit Vault

    oracle.com | 4 months ago
    java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
  2. 0

    NoClassDefFoundError on the managed server which comes up second

    Oracle Community | 8 years ago | 666705
    java.lang.NoClassDefFoundError: com/cc/aa/ejb/obj/HHLocalHome
  3. 0

    NoClassDefFoundError on the managed server which comes up second ..... ??

    Coderanch | 8 years ago | Gaurav Ra
    java.lang.NoClassDefFoundError: com/cc/aa/ejb/obj/HHLocalHome
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to run the test on an project created using the transport archetype. Getting this failure: java.lang.NoClassDefFoundError: org/junit/rules/TestRule at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) at java.lang.Class.getMethod0(Class.java:2670) at java.lang.Class.getMethod(Class.java:1603) at org.junit.internal.builders.SuiteMethodBuilder.hasSuiteMethod(SuiteMethodBuilder.java:20) at org.junit.internal.builders.SuiteMethodBuilder.runnerForClass(SuiteMethodBuilder.java:13) at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57) at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29) at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57) at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24) at org.apache.maven.surefire.junit4.JUnit4TestSet.<init>(JUnit4TestSet.java:45) at org.apache.maven.surefire.junit4.JUnit4DirectoryTestSuite.createTestSet(JUnit4DirectoryTestSuite.java:56) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:96) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209) at org.apache.maven.surefire.Surefire.run(Surefire.java:156) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) Caused by: java.lang.ClassNotFoundException: org.junit.rules.TestRule at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 21 more Steps to reproduce: _Create a project using the transport archetype. _ Run mvn test _ Check the surefire log to see the exception stack trace

    MuleSoft JIRA | 5 years ago | Pablo Kraan
    java.lang.NoClassDefFoundError: org/junit/rules/TestRule

  1. serious2monkeys 5 times, last 1 week ago
  2. Luka 4 times, last 2 months ago
  3. davidvanlaatum 14 times, last 6 months ago
29 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.NoClassDefFoundError

    javax/servlet/ServletRequest

    at java.lang.Class.getDeclaredMethods0()
  2. Java RT
    Class.getMethod
    1. java.lang.Class.getDeclaredMethods0(Native Method)
    2. java.lang.Class.privateGetDeclaredMethods(Class.java:1655)
    3. java.lang.Class.getMethod0(Class.java:1901)
    4. java.lang.Class.getMethod(Class.java:984)
    4 frames
  3. oracle.av.util
    BeanValidator.validate
    1. oracle.av.util.BeanValidator.invoke(BeanValidator.java:49)
    2. oracle.av.util.BeanValidator.validate(BeanValidator.java:97)
    2 frames