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

来源:互联网 发布:淘宝优惠卷怎么设置 编辑:程序博客网 时间:2024/05/16 23:42

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

type Exception report

message

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

exception

org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 22 in the generated java file The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory 
根本原因在编译的时候没有加入server runtime变量而是直接把servlet-api.jar jsp-api.jar 放到
WEB-INF/lib下
解决方法:删除WEB-INF/lib下面的servlet-api.jar jsp-api.jar ,java build path添加变量
server runtime