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
答案
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的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
最新试题
- 美丽的草原阅读答案
- (9999×19+3333-97-6666×71)/6-2010怎么简算
- she”s (trying to get on the bus )划线提问
- 一筐苹果甲拿出它的3/1后再拿3/1乙拿出剩下的3/1后再拿3/1丙丁按上述方法进行这是框中还有15个苹果问原有苹果多少个
- yes,piease 中文 no,thanks 中文
- 一个数增加它的25%是40,这个数是_.
- jack usually walks to the zoo.(同义句)
- 9999五分之一+999五分之一+99五分之一+9五分之一+4五分之四=?
- 1.( ),class.2.Good morning,Miss Li!3.( ),Jim?4.Fine,thank you.( )、
- 如图(1),线段cd在线段ab上运动,且ab+dc=13,已知图中所有线段的长度之和为27,
热门考点