帮忙了!没事进来看看,谢谢!

jj2002 2006-04-18 11:00:07
小弟“精通struts”那本的第一个例子helloapp,以前用着都好使!不过重装系统后,现在装了eclipse3.1+tomcat5.5.12后,现在画面出不来了,总报错!(eclipse的tomcat插件是3.1的)
http://localhost:8080/ 画面可以出来! 说明tomcat配置没问题吧!
错误如下(页面上的):
HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

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

exception

javax.servlet.ServletException: org/apache/tools/ant/BuildException
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:195)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException
org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:156)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:424)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


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


--------------------------------------------------------------------------------

Apache Tomcat/5.5.12





ps:我现在直接导入以前的工程,不过工程文件的jar包什么的都是以前的低版本,会不会是因为这个问题,可是我试了,把以前的jar包都删掉,导入新版本tomcat和struts的jar包,还是同样的错!自己琢磨2天了,搞不定了,帮帮忙,谢谢了!^^如果哪位兄弟要eclipse的console里的错误信息,我可以贴出来。

如:
严重: Servlet.service() for servlet jsp threw exception
java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException
at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:156)



...全文
271 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
jj2002 2006-04-24
  • 打赏
  • 举报
回复
帮帮忙啊
jj2002 2006-04-20
  • 打赏
  • 举报
回复
那位达人能告诉小弟一下啊
jj2002 2006-04-19
  • 打赏
  • 举报
回复
还是不明白?呵呵!太菜了我,具体在那个jar包里看,用winrar看吧?还是用到反编译工具?具体怎么做,希望你告诉我,谢谢
yuzl32 2006-04-19
  • 打赏
  • 举报
回复
你包含的jar包里面.
jj2002 2006-04-19
  • 打赏
  • 举报
回复
楼上的,怎么查看org/apache/tools/ant/BuildException?
yuzl32 2006-04-18
  • 打赏
  • 举报
回复
查看一下存在不存在 org/apache/tools/ant/BuildException

81,091

社区成员

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

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