当前位置: > The server encountered an internal error () that prevented it from fulfilling this request.求点解...
题目
The server encountered an internal error () that prevented it from fulfilling this request.求点解
typeException report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exceptionorg.apache.jasper.JasperException:Unable to compile class for JSP:An error occurred at line:22 in the generated java file The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory Stacktrace: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:423) org.apache.jasper.compiler.Compiler.compile(Compiler.java:308) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) org.apache.jasp

提问时间:2021-01-29

答案
The method getJspApplicationContext(ServletContext) is undefined for the type
JspFactory的异常的原因及解决办法原因:
是由于工程的WEB-INF/lib下存在jsp-api.jar、servlet-api.jar,与Tomcat自带的jar包冲突造成的.
解决办法:
删除WEB工程Lib目录中的jsp-api.jar、servlet-api.jar,重新启动Tomcat服务问题解决.
在创建工程时,jsp-api.jar、servlet-api.jar这两个jar包都无需手工加入到web工程中,Tomcat中都已包含.
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.