JasperException: Unable to compile class for JSP
2016-09-30 09:54
387 查看
场景:SSH框架搭建
报错信息:
JasperException: Unable to compile class for JSP
---------------------------------------------------------------------------
type Exception report
message Unable to compile class for JSP:
description The server encountered an internal error that prevented it from fulfilling this request.
exception
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.72 logs.
处理方式:
删除...\Tomcat 7.0\webapps\SSH\WEB-INF\lib\下javax.servlet.jar、javax.servlet.jsp.jar这两个jar包即可
删除后如果还不生效,可能是缓存问题,需要清除tomcat缓存文件...\Tomcat 7.0\work\Catalina
报错信息:
JasperException: Unable to compile class for JSP
---------------------------------------------------------------------------
HTTP Status 500 - Unable to compile class for JSP:
type Exception reportmessage Unable to compile class for JSP:
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: [34] in the generated java file: [C:\Program Files\Apache Software Foundation\Tomcat 7.0\work\Catalina\localhost\SSH\org\apache\jsp\Fail_jsp.java] The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:490) org.apache.jasper.compiler.Compiler.compile(Compiler.java:379) org.apache.jasper.compiler.Compiler.compile(Compiler.java:354) org.apache.jasper.compiler.Compiler.compile(Compiler.java:341) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:662) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:364) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) javax.servlet.http.HttpServlet.service(HttpServlet.java:731) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:88)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.72 logs.
处理方式:
删除...\Tomcat 7.0\webapps\SSH\WEB-INF\lib\下javax.servlet.jar、javax.servlet.jsp.jar这两个jar包即可
删除后如果还不生效,可能是缓存问题,需要清除tomcat缓存文件...\Tomcat 7.0\work\Catalina
相关文章推荐
- Linux Generating SSH Keys
- JSP/PHP基于Ajax的分页功能实现
- 开发阶段Jetty运行Jsp报错且响应空白
- ssh以及ssh的key认证
- 插件管理框架 for Delphi(一)
- jsp简单实现页面之间共享信息的方法
- Apache Web让JSP“动”起来
- 使用CSS框架布局的缺点和优点小结
- 一起动手编写Android图片加载框架
- 基于.NET平台常用的框架和开源程序整理
- 列举PHP的Yii 2框架的开发优势
- perl脚本实现限制ssh最大登录次数(支持白名单)
- Windows窗体的.Net框架绘图技术实现方法
- 浅谈JavaScript 框架分类
- 微信小程序 框架详解及实例应用
- 轻量级javascript 框架Backbone使用指南
- javascript实现框架高度随内容改变的方法