java.lang.NoClassDefFoundError

tip

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

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

  • test cases for a servlet
    via by Mona Gadkari,
  • java.lang.NoClassDefFoundError
    via by yawnmoth,
    • java.lang.NoClassDefFoundError: com/sun/enterprise/deployment/archivist/MemoryMappedArchive 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) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at com.sun.enterprise.tools.deployment.ui.DeployToolWindow.registerActions(DeployToolWindow.java:1272) at com.sun.enterprise.tools.deployment.ui.DeployToolWindow.initialize(DeployToolWindow.java:280) at com.sun.enterprise.tools.deployment.ui.DeployToolWindow.<init>(DeployToolWindow.java:235) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at com.sun.enterprise.tools.deployment.ui.DT.startUI(DT.java:489) at com.sun.enterprise.tools.deployment.ui.Main.startUI(Main.java:142) at com.sun.enterprise.tools.deployment.ui.Main.main(Main.java:109)

    Users with the same issue

    Unknown visitor1 times, last one,
    junior_cEngineer
    1 times, last one,
    Ghosts
    12 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    139 more bugmates