Unable to read TLD "META-INF/c.tld" from JAR file 解决方法

langqiao 2012-10-09

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

org.apache.jasper.JasperException:UnabletoreadTLD"META-INF/c.tld"fromJARfile"file:/E:/Tomcat5.5/webapps/bookstore/WEB-INF/lib/standard.jar":org.apache.jasper.JasperException:FailedtoloadorinstantiateTagLibraryValidatorclass: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)

原因:

项目的WEB-INF中加入了servlet-api.jarjsp-api.jar,和tomcat自带的冲突:WEB-INF/lib下的servlet-api.jarjsp-api.jar和tomcat自己的servlet-api.jarjsp-api.jar冲突了.

解决方法:

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

相关推荐