java.lang.ClassNotFoundException

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

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

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

  • GF3-TP2: Admin console won't install?
    via by quintesse,
  • Not able to start the ATG server
    via Stack Overflow by Srihari Surisetty
    ,
  • Not able to start the Spring-Boot sample
    via Stack Overflow by Kunal Jha
    ,
  • Spring Security on a non Spring Web app
    via Stack Overflow by Asme Just
    ,
  • java connection problem with mysql
    via Stack Overflow by Abhisek
    ,
  • Hadoop 0.23.1 Release Notes
    via by Unknown author,
    • java.lang.ClassNotFoundException: com.sun.faces.config.GlassFishConfigureListener at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:962) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1500) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1292) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4181) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4760) at com.sun.enterprise.web.WebModule.start(WebModule.java:292) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1095) at org.apache.catalina.core.StandardHost.start(StandardHost.java:924) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1095) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:520) at org.apache.catalina.startup.Embedded.start(Embedded.java:920) at com.sun.enterprise.web.WebContainer.start(WebContainer.java:794) at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:722) at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:72) at com.sun.enterprise.server.ondemand.ServiceGroup.startLifecycleServices(ServiceGroup.java:266) at com.sun.enterprise.server.ondemand.WebServiceGroup.startLifecycleServices(WebServiceGroup.java:210) at com.sun.enterprise.server.ondemand.WebServiceGroup.start(WebServiceGroup.java:60) at com.sun.enterprise.server.ondemand.ServiceGroup$1.run(ServiceGroup.java:180) at java.security.AccessController.doPrivileged(Native Method) at com.sun.enterprise.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:177) at com.sun.enterprise.server.ondemand.MainServiceGroup.start(MainServiceGroup.java:45) at com.sun.enterprise.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:72) at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.sendEvent(ServerEntryHelper.java:62) at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.generatePortEntryContext(ServerEntryHelper.java:43) at com.sun.enterprise.server.ss.ASSocketService.generateEntryContext(ASSocketService.java:279) at com.sun.enterprise.server.ss.ASSocketService$EntryPointThread.run(ASSocketService.java:525)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    eti22eti22
    1 times, last one,
    1248 more bugmates