新手求解:JSP报500错误

张某人 2012-01-08 09:19:11
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

Generated servlet error:
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory


org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:353)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:319)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.fx.EasyBuy.Servlet.initServlet.doPost(initServlet.java:13)
com.fx.EasyBuy.Servlet.initServlet.doGet(initServlet.java:10)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.fx.filter.CharEncoding.doFilter(CharEncoding.java:16)


root cause

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory


org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:307)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:565)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:313)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:319)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.fx.EasyBuy.Servlet.initServlet.doPost(initServlet.java:13)
com.fx.EasyBuy.Servlet.initServlet.doGet(initServlet.java:10)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.fx.filter.CharEncoding.doFilter(CharEncoding.java:16)


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

我以前还是可以运行的,写着写着就不可以运行了,以为是TOMCAT不稳定,过一晚还是不行,不得不来请教各位了,谢谢啦!


急急急!!!
...全文
69 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
张某人 2012-01-08
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 wnf2009 的回复:]

catalina.jar、jsp-api.jar、servlet-api.jar、javax.servlet.jar、javax.servlet.jsp.jar
tomcat这些包版本低了或者和项目中的包重复了
[/Quote]

问题是我前一次还是可以运行的,不可能一下就出个版本问题吧,代码写着写着就不行了
wnf2009 2012-01-08
  • 打赏
  • 举报
回复
catalina.jar、jsp-api.jar、servlet-api.jar、javax.servlet.jar、javax.servlet.jsp.jar
tomcat这些包版本低了或者和项目中的包重复了

81,092

社区成员

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

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