java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/ConditionalTagSupport

使用传统的servlet的时候出现下述的问题:

HTTP Status 500 - javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/ConditionalTagSupport

type Exception report

message javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/ConditionalTagSupport

description The server encountered an internal error that prevented it from fulfilling this request.

exception

java.lang.RuntimeException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/ConditionalTagSupport
    com.xieyan.news.servlet.BaseServlet.service(BaseServlet.java:57)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    com.xieyan.news.utils.EncodeFilter.doFilter(EncodeFilter.java:17)
root cause

javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/ConditionalTagSupport
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:348)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    com.xieyan.news.servlet.BaseServlet.service(BaseServlet.java:45)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    com.xieyan.news.utils.EncodeFilter.doFilter(EncodeFilter.java:17)
root cause

java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/ConditionalTagSupport_第1张图片

出现问题百思不得其解,网上查找资料的时候,主要是重新编译项目,clean 重新部署什么的 ,无法解决。

使用环境

环境:Tomcat 7.0
使用的jar:jstl-1.2.jar和standard.jar

最终解决过程

去官网下载正确的jar,官网地址:http://archive.apache.org/dist/jakarta/taglibs/standard/binaries/

java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/ConditionalTagSupport_第2张图片

下载jakarta-taglibs-standard-1.1.2.zip 解压 将lib目录的下的jar拷到lib下即可。

或者去csdn下载我已经下载好的jar:http://download.csdn.net/detail/u010870518/9519028

最后,看了一下两个jar的不同之处还是很大的。

你可能感兴趣的:(servlet,jstl,Conditiona)