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

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

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.

  • DisplayTag+ Struts2 + Tiles2
    via ajaxtags by rsrawat
    ,
  • Liferay Unable to compile class for JSP
    via Stack Overflow by Hanzel
    ,
  • Problem getting "empire-db-example-struts2" running
    via by Benjamin Venditti,
  • Problem getting "empire-db-example-struts2" running
    via by Benjamin Venditti,
  • Unable to load class for JSP.
    via by Remala,
  • JasperException: Unable to load JSP
    via by Griff George,
    • java.lang.ClassNotFoundException: org.apache.jsp.WEB\_002dINF.jsp.ReceivedMessages\_jsp at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66) at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:597) at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:141) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:594) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:965) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:605) at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:93) at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88) at org.apache.tiles.context.TilesRequestContextWrapper.include(TilesRequestContextWrapper.java:78) at org.apache.struts2.tiles.StrutsTilesRequestContext.include(StrutsTilesRequestContext.java:120) at org.apache.struts2.tiles.StrutsTilesRequestContext.dispatch(StrutsTilesRequestContext.java:83) at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:460) at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:141) at org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:118) at org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:172) at org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:76) at org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:82)

    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,
    Unknown visitor
    Unknown visitor1 times, last one,
    1248 more bugmates