org.apache.jasper.JasperException: Unable to compile class for JSP错误解决

出现org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 28 in the generated java file
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory

按如下步骤解决即可:

1.删除tomcat的work目录里全部内容

2.删除tomcat里的项目lib目录的jsp-api-xx.jar,servlet-api-xx.jar这2个jar包

重启tomcat,jsp页面即可显示正常了

猜你喜欢

转载自myclqr.iteye.com/blog/1878808