Web project access to the error, a new JSP file without any content also error: The method Getdispatchertype () is undefined for the type HttpServletRequest
Critical: Servlet.service () for Servlets [JSP] in context with path [/studentmanage] threw exception [unable to compile class for Jsp:
An error occurred @ line: [[+] in the generated Java file: [D:\Tomcat8.0\apache-tomcat-8.0.12\work\Catalina\localhost\st Udentmanage\org\apache\jsp\login_jsp.java]
The method Getdispatchertype () is undefined for the type HttpServletRequest
Stacktrace:] with root cause
Org.apache.jasper.JasperException:Unable to compile class for JSP:
An error occurred @ line: [[+] in the generated Java file: [D:\Tomcat8.0\apache-tomcat-8.0.12\work\Catalina\localhost\st Udentmanage\org\apache\jsp\login_jsp.java]
The method Getdispatchertype () is undefined for the type HttpServletRequest
Stacktrace:
At Org.apache.jasper.compiler.DefaultErrorHandler.javacError (defaulterrorhandler.java:103)
At Org.apache.jasper.compiler.ErrorDispatcher.javacError (errordispatcher.java:199)
At Org.apache.jasper.compiler.JDTCompiler.generateClass (jdtcompiler.java:446)
At Org.apache.jasper.compiler.Compiler.compile (compiler.java:361)
At Org.apache.jasper.compiler.Compiler.compile (compiler.java:336)
At Org.apache.jasper.compiler.Compiler.compile (compiler.java:323)
At Org.apache.jasper.JspCompilationContext.compile (jspcompilationcontext.java:564)
At Org.apache.jasper.servlet.JspServletWrapper.service (jspservletwrapper.java:357)
At Org.apache.jasper.servlet.JspServlet.serviceJspFile (jspservlet.java:391)
At Org.apache.jasper.servlet.JspServlet.service (jspservlet.java:335)
At Javax.servlet.http.HttpServlet.service (httpservlet.java:725)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:291)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:206)
At Org.apache.tomcat.websocket.server.WsFilter.doFilter (wsfilter.java:52)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:239)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:206)
At Com.dw.filter.EncodingFilter.doFilter (encodingfilter.java:33)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:239)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:206)
At Org.apache.catalina.core.StandardWrapperValve.invoke (standardwrappervalve.java:219)
At Org.apache.catalina.core.StandardContextValve.invoke (standardcontextvalve.java:106)
At Org.apache.catalina.authenticator.AuthenticatorBase.invoke (authenticatorbase.java:505)
At Org.apache.catalina.core.StandardHostValve.invoke (standardhostvalve.java:142)
At Org.apache.catalina.valves.ErrorReportValve.invoke (errorreportvalve.java:79)
At Org.apache.catalina.valves.AbstractAccessLogValve.invoke (abstractaccesslogvalve.java:610)
At Org.apache.catalina.core.StandardEngineValve.invoke (standardenginevalve.java:88)
At Org.apache.catalina.connector.CoyoteAdapter.service (coyoteadapter.java:534)
At Org.apache.coyote.http11.AbstractHttp11Processor.process (abstracthttp11processor.java:1081)
At Org.apache.coyote.abstractprotocol$abstractconnectionhandler.process (abstractprotocol.java:658)
At Org.apache.coyote.http11.http11aprprotocol$http11connectionhandler.process (http11aprprotocol.java:277)
At Org.apache.tomcat.util.net.aprendpoint$socketprocessor.dorun (aprendpoint.java:2381)
At Org.apache.tomcat.util.net.aprendpoint$socketprocessor.run (aprendpoint.java:2370)
At Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1142)
At Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:617)
At Org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run (taskthread.java:61)
At Java.lang.Thread.run (thread.java:745)
From the surface error point of view is httpservletrequest without you this method, I checked the next, this method in this class Javax.servlet.ServletRequestWrapper.
But on this page nothing, tried long time still do not know where the error, finally changed the Tomcat run, you can.
The original Tomcat is version 8.0, changed 7, although the solution, but still do not know why, the previous Tomcat used for more than half of the years have not had any problems.
Look to the great God to explain.
The method Getdispatchertype () is undefined for the type HttpServletRequest