2
我得到以下錯誤:例外,當我試圖運行支柱在Eclipse IDE伽利略應用2
javax.servlet.ServletException: java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:342)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
root cause
java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;
org.apache.jsp.Login_jsp._jspInit(Login_jsp.java:34)
org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:49)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:171)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:356)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
我在WEB-INF-lib中的以下jar文件:
- commons-測井1.0.4.jar
- 的freemarker-2.3.8.jar
- OGNL-2.6.11.jar
- struts2的核 - 2.0.12.jar
- xwork-2.0.6.jar
我使用Apache Tomcat v6.0。
請幫助我。
請出示你的web.xml。你的罐子對於2.0.12是正確的...如果這是一個新項目,那麼最好使用最新的struts2(版本2.3.1.2)。 – Quaternion 2012-04-03 16:00:46