org.springframework.web.util.NestedServletException

Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspSourceImports

Samebug tips8

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.

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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web742

  • Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspSourceImports
  • via codegur.com by Unknown author, 10 months ago
    Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspSourceImports
  • via heapoverflow.me by Unknown author, 10 months ago
    Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspSourceImports
  • Stack trace

    • org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspSourceImports at org.springframework.web.servlet.DispatcherServlet.triggerAfterCompletionWithError(DispatcherServlet.java:1305)[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:979)[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:895)[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:967)[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:858)[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)[javax.servlet-api-3.1.0.jar:3.1.0] at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843)[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)[javax.servlet-api-3.1.0.jar:3.1.0] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:224)[websocket-server-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration$ApplicationContextHeaderFilter.doFilterInternal(EndpointWebMvcAutoConfiguration.java:281)[spring-boot-actuator-1.3.6.RELEASE.jar:1.3.6.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:115)[spring-boot-actuator-1.3.6.RELEASE.jar:1.3.6.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:87)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:103)[spring-boot-actuator-1.3.6.RELEASE.jar:1.3.6.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[jetty-server-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[jetty-security-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[jetty-server-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[jetty-server-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[jetty-server-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[jetty-server-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[jetty-server-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[jetty-server-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.server.Server.handle(Server.java:499)[jetty-server-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[jetty-server-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[jetty-server-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[jetty-io-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[jetty-util-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[jetty-util-9.2.17.v20160517.jar:9.2.17.v20160517] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_91] Caused by: java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspSourceImports at java.lang.ClassLoader.defineClass1(Native Method)[na:1.8.0_91] at java.lang.ClassLoader.defineClass(ClassLoader.java:763)[na:1.8.0_91] at java.lang.ClassLoader.defineClass(ClassLoader.java:642)[na:1.8.0_91] at org.apache.jasper.servlet.JasperLoader.findClass(JasperLoader.java:232)[javax.servlet.jsp-2.3.2.jar:2.3.2] at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:193)[javax.servlet.jsp-2.3.2.jar:2.3.2] at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:125)[javax.servlet.jsp-2.3.2.jar:2.3.2] at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:656)[javax.servlet.jsp-2.3.2.jar:2.3.2] at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:202)[javax.servlet.jsp-2.3.2.jar:2.3.2] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)[javax.servlet.jsp-2.3.2.jar:2.3.2] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)[javax.servlet.jsp-2.3.2.jar:2.3.2] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)[javax.servlet.jsp-2.3.2.jar:2.3.2] at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)[javax.servlet-api-3.1.0.jar:3.1.0] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[jetty-server-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:595)[jetty-security-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[jetty-server-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[jetty-server-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[jetty-servlet-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[jetty-server-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[jetty-server-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[jetty-server-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:191)[jetty-server-9.2.17.v20160517.jar:9.2.17.v20160517] at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:72)[jetty-server-9.2.17.v20160517.jar:9.2.17.v20160517] at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:168)[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303)[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1246)[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1029)[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:973)[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE] ... 48 more Caused by: java.lang.ClassNotFoundException: org.apache.jasper.runtime.JspSourceImports at java.net.URLClassLoader.findClass(URLClassLoader.java:381)[na:1.8.0_91] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)[na:1.8.0_91] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)[na:1.8.0_91] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[na:1.8.0_91] at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:187)[javax.servlet.jsp-2.3.2.jar:2.3.2] at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:125)[javax.servlet.jsp-2.3.2.jar:2.3.2] ... 92 more

    Write tip

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

    Users with the same issue

    Unknown user
    2 times, 1 week ago
    Unknown user
    8 times, 10 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    2420 more bugmates