Tomcat部署不同的Web应用时会相互影响
在Tomcat部署了一个Web应用,Web应用的后台程序运行正常,但是打开Web应用的JSP页面时就报错了:
HTTP Status 500 - --------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception 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:268)javax.servlet.http.HttpServlet.service(HttpServlet.java:717)root cause java.lang.AbstractMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;org.apache.jsp.index_jsp._jspInit(index_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:313)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)javax.servlet.http.HttpServlet.service(HttpServlet.java:717)note The full stack trace of the root cause is available in the Apache Tomcat/6.0.29 logs.