java.lang.NoClassDefFoundError: dfe/ejb/MyTestHome

Oracle Community | 807581 | 1 decade ago
  1. 0

    RMI/IIOP access to EJBs

    Oracle Community | 1 decade ago | 807581
    java.lang.NoClassDefFoundError: dfe/ejb/MyTestHome
  2. 0

    java.lang.NoClassDefFoundError: javax/xml/registry/JAXRException

    Oracle Community | 1 decade ago | 843802
    java.lang.NoClassDefFoundError: javax/xml/registry/JAXRException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 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 6 days 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

    dfe/ejb/MyTestHome

    at java.lang.Class.getDeclaredMethods0()
  2. Java RT
    Class.getMethod
    1. java.lang.Class.getDeclaredMethods0(Native Method)
    2. java.lang.Class.privateGetDeclaredMethods(Class.java:1613)
    3. java.lang.Class.privateGetPublicMethods(Class.java:1641)
    4. java.lang.Class.getMethod0(Class.java:1730)
    5. java.lang.Class.getMethod(Class.java:951)
    5 frames
  3. Common Utilities
    Utility.invokeApplicationMain
    1. com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:227)
    1 frame
  4. com.iplanet.ias
    Main.main
    1. com.iplanet.ias.appclient.Main.<init>(Main.java:353)
    2. com.iplanet.ias.appclient.Main.main(Main.java:93)
    2 frames