用localhost打开网页时,出现如下错误。
index.jsp中的27行是一个<html>标签。
————————————————————————————
严重: Servlet.service() for servlet debugjsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 27 in the generated java file
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
index.jsp中的27行是一个<html>标签。
————————————————————————————
严重: Servlet.service() for servlet debugjsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 27 in the generated java file
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
jsp-api.jar
servlet-api.jar
——————————————————————————————————————
description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: org.apache.jasper.JasperException: Unable to load class for JSP
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:156)
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)