Unable to read TLD "META-INF/c.tld"错误

JSP页面显示不了,报错如下:

org.apache.jasper.JasperException: Unable to read TLD "META-INF/c.tld" from JAR file "file:/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/JSPBook/WEB-INF/lib/standard.jar": org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

出错原因:

    JSP2.0的作者林上杰的源代码有问题,作者在自己项目的WEB-INF中加入了servlet-api.jar jsp-api.jar,和tomcat自带的冲突 : WEB-INF/lib下的servlet-api.jar jsp-api.jar 和tomcat自己的servlet-api.jar jsp-api.jar 冲突了.

解决方法:

    去掉WEB-INF/lib下的 servlet-api.jar  jsp-api.jar  即可.

你可能感兴趣的:(META-INF)