java.lang.ClassNotFoundException

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

You might've forgot to add a dependency or it's written wrong. Also, you might be using incompatible versions of Java and Hibernate. More on this here: https://goo.gl/SjSlRA

tip

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.

tip

This error means there's a class missing in your classpath during runtime. You need to create a jar with all your dependencies and have it in your classpath. Check Maven Assembly Plugin and how to add your dependencies to a jar: https://goo.gl/U2zr8k

tip

jsp-api and servlet-api jars must NOT be deployed by your web app. They should be marked as provided but not deployed by your app.

tip

The server rejects all jars that already belong to the server runtime (such as tomcat-**.jar, servlet**.jar). Consider substituting the CORS filter you're using for this one: https://goo.gl/ctQ7Fs

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

  • Struts with EJB
    via by 807581,
  • Process creation failed.
    via by 807581,
  • Cannot call methods remotely
    via Stack Overflow by NoName
    ,
  • EJB client stub name mismatch
    via by ar...@kleinbeck.de,
  • NoClassDefFoundError
    via by prashanth,
  • Urgent please - Java Forum
    via by Unknown author,
    • java.lang.ClassNotFoundException: com.iflex.kmt.ejb._EvaluateAnswersHome_Stub at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:262) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:207) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:427) at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:161) at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:629) at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:207) at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:135) at com.sun.corba.se.internal.util.JDKBridge.loadClassM(JDKBridge.java:184) at com.sun.corba.se.internal.util.JDKBridge.loadClass(JDKBridge.java:80) at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.loadClass(Util.java:321) at javax.rmi.CORBA.Util.loadClass(Util.java:233) at com.sun.corba.se.internal.util.Utility.loadClassOfType(Utility.java:316) at com.sun.corba.se.internal.util.Utility.loadStubClass(Utility.java:940) at com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.loadStub(CDRInputStream_1_0.java:798) at com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.createDelegate(CDRInputStream_1_0.java:764) at com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.internalIORToObject(CDRInputStream_1_0.java:750) at com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.read_Object(CDRInputStream_1_0.java:669) at com.sun.corba.ee.internal.iiop.CDRInputStream_1_0.read_Object(CDRInputStream_1_0.java:654) at com.sun.corba.ee.internal.iiop.CDRInputStream.read_Object(CDRInputStream.java:251) at org.omg.CORBA.ObjectHelper.read(ObjectHelper.java:59) at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:396) at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:440) at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:492) at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:470) at javax.naming.InitialContext.lookup(InitialContext.java:347) at com.sun.enterprise.naming.factory.IIOPObjectFactory.getObjectInstance(IIOPObjectFactory.java:57) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301) at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:148) at javax.naming.InitialContext.lookup(InitialContext.java:347) at com.iflex.kmt.Action.ActionEvaluateOnlineTest.perform(Unknown Source) at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720) at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118) at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)

    Users with the same issue

    CasperCasper
    4 times, last one,
    HandemelindoHandemelindo
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    rprp
    3 times, last one,
    1188 more bugmates