3gipnet 发表于 2017-1-13 08:53:40

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页面即可显示正常了
页: [1]
查看完整版本: org.apache.jasper.JasperException: Unable to compile class for JSP错误解决