Java.lang.NoSuchMethodError:javax.servlet.jsp.JspFactory.getJspApplicationConte Error

Source: Internet
Author: User
Tags stack trace tomcat server apache tomcat
Java.lang.NoSuchMethodError:javax.servlet.jsp.JspFactory.getJspApplicationConte(2010-11-09 09:19:06) reprint
Tags: topics Category: Java
HTTP Status-

type Exception

Message

Description The server encountered an internal error () is prevented it from fulfilling this request.

Exception

Javax.servlet.ServletException:java.lang.NoSuchMethodError: Javax.servlet.jsp.JspFactory.getJspApplicationContext (ljavax/servlet/servletcontext;) ljavax/servlet/jsp/ Jspapplicationcontext; Org.apache.jasper.servlet.JspServlet.service (jspservlet.java:275) Javax.servlet.http.HttpServlet.service ( httpservlet.java:717)

root Cause

Java.lang.NoSuchMethodError:javax.servlet.jsp.JspFactory.getJspApplicationContext (ljavax/servlet/ ServletContext;) Ljavax/servlet/jsp/jspapplicationcontext; Org.apache.jsp.login_jsp._jspinit (login_jsp.java:22) Org.apache.jasper.runtime.HttpJspBase.init ( httpjspbase.java:52) Org.apache.jasper.servlet.JspServletWrapper.getServlet (jspservletwrapper.java:159) Org.apache.jasper.servlet.JspServletWrapper.service (jspservletwrapper.java:329) Org.apache.jasper.servlet.JspServlet.serviceJspFile (jspservlet.java:342) Org.apache.jasper.servlet.JspServlet.service (jspservlet.java:267) Javax.servlet.http.HttpServlet.service ( httpservlet.java:717)

Note The full stack trace's the root cause is available in the Apache tomcat/6.0.20 logs.

  Run when the project suddenly appears, looking at the error is very long, in fact, Tomcat under the WebApps folder you run the Project Web-inf Lib more than two with the Tomcat server itself conflict with the jar pack, put Javax.servlet.jsp.jar and Javax.servlet.jar packages are removed to run correctly. Check it out, Web-inf's lib is indeed more of these two packages, delete and recompile but also generated. After that, delete the project directly, and then import, compile, no longer found this problem.

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.