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

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

你可能感兴趣的:(Java)