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.

Source: Internet
Author: User
Tags stack trace apache tomcat

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.