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.