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的版本低,但是在运行时会优先加载项目中另外添加的包,然后就报错了。
删除后上面的问题就解决了。