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, prevented it from fulfilling this request.exceptionorg.apache.jasper.Jasper Exception:unable to compile class for Jsp:an error occurred on line: [+] In the generated Java file: [D:\tomcat8.0\apac He-tomcat-8.0.14\work\catalina\localhost\test_project\org\apache\jsp\index_jsp.java]the Method GetDispatcherType () is undefined for the type httpservletrequeststacktrace: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) Note the full stack trace of the root cause is Available in the Apache tomcat/8.0.14 logs. Apache tomcat/8.0.14 access to the home page index.jsp because the Servlet-api.jar package has a conflict, delete the Lib Servlet-api.jar, if the error is added Apache Tomcat under the Servlet-api.jar can be.
Access to the home page index.jsp because the Servlet-api.jar package has a conflict, delete the Lib Servlet-api.jar, if the error is added Apache Tomcat under the Servlet-api.jar can be.