java.lang.NoClassDefFoundError

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
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.

  • Very strange classpath issue
    via by rocky1988,
  • db:: 4.53::javax.servlet.jsp.tagext.JspTag cp
    via by Unknown author,
  • db:: 4.05::Error 1579 8z
    via by Unknown author,
  • Life cycle module prevents server starting
    via by 807581,
  • LifecycleListener NoClassDefFoundException
    via by shaneb-3081681,
  • Tomcat5 and precompiling JSPs with Ant
    via by 843836,
  • Struts2 Hello World jsp example error
    via Stack Overflow by lulu88
    ,
    • java.lang.NoClassDefFoundError: javax/ejb/SessionBean > 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 java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.java:144) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at com.sun.appserv.server.util.ClassLoaderChain.loadClass(ClassLoaderChain.java:157) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at com.sun.appserv.server.util.ClassLoaderChain.loadClass(ClassLoaderChain.java:157) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:238) at com.sun.enterprise.deployment.EjbDescriptor.visit(EjbDescriptor.java:2058) at com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:734) at com.sun.enterprise.deployment.Application.visit(Application.java:1754) at com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate(ApplicationArchivist.java:470) at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:366)

    Users with the same issue

    junior_cEngineer
    1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    andyglick
    2 times, last one,
    Unknown visitor1 times, last one,
    164 more bugmates