部署Tomcat8遇到的 “The method getDispatcherType() is undefined for the type HttpServletRequest” 问题
2016-10-19 09:52
537 查看
错误报告
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: [52] in the generated java file: [D:\apache-tomcat-8.0.15\work\Catalina\localhost\allRunServer\org\apache\jsp\register_jsp.java]
The method getDispatcherType() is undefined for the type HttpServletRequest
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:199)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:450)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:361)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
解决方案
选中项目-》右键build path-》Configure build path->add library->server runtime
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: [52] in the generated java file: [D:\apache-tomcat-8.0.15\work\Catalina\localhost\allRunServer\org\apache\jsp\register_jsp.java]
The method getDispatcherType() is undefined for the type HttpServletRequest
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:199)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:450)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:361)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
解决方案
选中项目-》右键build path-》Configure build path->add library->server runtime
相关文章推荐
- 升级到tomcat8遇到The method getDispatcherType() is undefined for the type HttpServletRequest
- 升级到tomcat8遇到The method getDispatcherType() is undefined for the type HttpServletRequest
- 问题“The method getDispatcherType() is undefined for the type HttpServletRequest”
- The method getDispatcherType() is undefined for the type HttpServletRequest 升级到tomcat8
- 日常问题记录--访问JSP文件时The method getDispatcherType() is undefined for the type HttpServletRequest
- Tomcat服务端工程部署遇到的 “The method getDispatcherType() is undefined for the type HttpServletReques
- The method getDispatcherType() is undefined for the type HttpServletRequest 升级到tomcat8(转)
- The method getDispatcherType() is undefined for the type HttpServletRequest
- 解决The method getDispatcherType() is undefined for the type HttpServletRequest
- jsp The method getDispatcherType() is undefined for the type HttpServletRequest
- Spring找不到方法:The method getDispatcherType() is undefined for the type HttpServletRequest
- Java 被访问时报 the method getDispatcherType() is undefined for the type HttpServletRequest
- Web crash:The method getDispatcherType() is undefined for the type HttpServletRequest
- The method getDispatcherType() is undefined for the type HttpServletRequest的解决方法
- The method getDispatcherType() is undefined for the type HttpServletRequest
- The method getDispatcherType() is undefined for the type HttpServletRequest
- The method getDispatcherType() is undefined for the type HttpServletRequest解决办法
- The method getDispatcherType() is undefined for the type HttpServletRequest
- the method getDispatcherType() is undefined for the type HttpServletRequest
- The method getDispatcherType() is undefined for the type HttpServletRequest