HTTP Status 500 - Unable to compile class for JSP

来源:互联网 发布:淘宝 潘多拉哪家是真的 编辑:程序博客网 时间:2024/06/06 11:03

HTTP Status 500 - Unable to compile class for JSP:


type Exception report

message Unable to compile class for JSP:

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 23 in the generated java fileThe method getJspApplicationContext(ServletContext) is undefined for the type JspFactoryStacktrace:org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:460)org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:321)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)javax.servlet.http.HttpServlet.service(HttpServlet.java:723)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.47 logs



tomcat用的:apache-tomcat-6.0.47


解决此问题很简单:

        刘宝宝告诉你:

                                               







0 0
原创粉丝点击