Handler processing failed; nested exception is java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config解决

出现这个问题往往伴随  HTTP-500错误

报错信息:

HTTP Status 500 - Handler processing failed; nested exception is java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config  
  
  
type Exception report  
  
message Handler processing failed; nested exception is java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config  
  
description The server encountered an internal error that prevented it from fulfilling this request.  
  
exception  
org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config  
    org.springframework.web.servlet.DispatcherServlet.triggerAfterCompletionWithError(DispatcherServlet.java:1305)  
    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:979)  
    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:895)  
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:967)  
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:858)  
    javax.servlet.http.HttpServlet.service(HttpServlet.java:622)  
    org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843)  
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)  
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)  
  
  
root cause  
java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config  
    org.springframework.web.servlet.support.JstlUtils.exposeLocalizationContext(JstlUtils.java:101)  
    org.springframework.web.servlet.view.JstlView.exposeHelpers(JstlView.java:135)  
    org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:142)  
    org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303)  
    org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1246)  
    org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1029)  
    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:973)  
    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:895)  
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:967)  
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:858)  
    javax.servlet.http.HttpServlet.service(HttpServlet.java:622)  
    org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843)  
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)  
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)  
  

通过错误信息,是没有找到对应的java class

jstl(jsp标准标签库)

后通过添加jstl的相关jar包至WEB-INF/lib下得以解决。

 

posted @ 2017-10-23 13:54  昕无旁骛  阅读(16572)  评论(0编辑  收藏  举报