异常:The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory

来源:互联网 发布:centos 7修改密码 编辑:程序博客网 时间:2024/06/07 00:36

An error occurred at line: 22 in the generated java file

The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory


删除项目后添加的类似于jsp-api.jar 和servlet-api.jar的包。

从网上看到后添加的包版本比tomcat6的版本低,但是在运行时会优先加载项目中另外添加的包,然后就报错了。

删除后上面的问题就解决了。

原创粉丝点击