JSP网页异常问题!!!! 急问!!!

bits_110 2009-05-18 11:20:56
HTTP Status 500 -

type Exception report

message

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: 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:317)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
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:853)

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

这个异常是什么意思阿
昨天还没问题的
...全文
376 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
jinchun1234 2009-05-19
  • 打赏
  • 举报
回复
包冲突
dongjh411526 2009-05-19
  • 打赏
  • 举报
回复
可能是版本不兼容吧!
vaon_1126 2009-05-19
  • 打赏
  • 举报
回复
版本冲突
bits_110 2009-05-19
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 Johnson_Hong 的回复:]
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
说明了jar包的版本有冲突
[/Quote]
确实是冲突了 谢谢了
bits_110 2009-05-19
  • 打赏
  • 举报
回复
没有这两个包
Johnson_Hong 2009-05-18
  • 打赏
  • 举报
回复
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
说明了jar包的版本有冲突
x114944880 2009-05-18
  • 打赏
  • 举报
回复
没有遇到过!
syh202 2009-05-18
  • 打赏
  • 举报
回复
debug 下, 看看到底走到哪一步 出错了,再结合这个错误仔细研究一下 应该会有答案的
luffyke 2009-05-18
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 marcblue 的回复:]
An error occurred at line: 22 in the generated java file
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
将工程路径下的WebRoot下的WEB-INF下的lib里的jsp-api-2.0.jar,servlet-api-2.4.jar删除就OK 了,应该是工程里自带的这两个文件和TOMCAT里的文件冲突导致的
[/Quote]
应该就是这个问题!
zhong19860904 2009-05-18
  • 打赏
  • 举报
回复
这种异常应该有好多人都遇到过的,好多时候都是页面的问题,比如非法运用一些表达式,或者没有导入什么类等。
tohmin 2009-05-18
  • 打赏
  • 举报
回复
也许是JSP页面那个方法调用有问题。
marcblue 2009-05-18
  • 打赏
  • 举报
回复
An error occurred at line: 22 in the generated java file
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
将工程路径下的WebRoot下的WEB-INF下的lib里的jsp-api-2.0.jar,servlet-api-2.4.jar删除就OK 了,应该是工程里自带的这两个文件和TOMCAT里的文件冲突导致的

81,078

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧