java.lang.NoSuchMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext错误解决

现象:

加载应用时tomcat控制台出现异常

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/JspApplicationCont
原因:
应用中添加的servlet-jsp.jar包(一般为myclipse添加)与tomcat的servlet-jsp.jar包冲突。这个包中主要为jsp引擎相关class。
解决:
将应用中servlet-jsp.jar删除
 
posted on 2010-08-28 10:19  rickyxing  阅读(1317)  评论(0编辑  收藏  举报