免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1507 | 回复: 3
打印 上一主题 下一主题

TOMCAT问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-10-07 21:22 |只看该作者 |倒序浏览
本人按照http://www.chinaunix.net/forum/viewtopic.php?t=148405 搭建了环境,

e:\j2sdk1.4.0_01
d:\TOMCT5.0
所有路径变量设置也正确,127.0.0.1:8080/jsp-examples上范例代码也能正确执行
但通过http://127.0.0.1:8080/myapp/test.jsp访问自己的jsp文件总是出现:
  1. HTTP Status 500 -

  2. --------------------------------------------------------------------------------

  3. type Exception report

  4. message

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

  6. exception

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

  8. No Java compiler was found to compile the generated source for the JSP.
  9. This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
  10. to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
  11. If using an alternate Java compiler, please check its installation and access path.

  12.         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:128)
  13.         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
  14.         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:413)
  15.         org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)
  16.         org.apache.jasper.compiler.Compiler.compile(Compiler.java:437)
  17.         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:555)
  18.         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
  19.         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
  20.         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
  21.         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


  22. note The full stack trace of the root cause is available in the Tomcat logs.


  23. --------------------------------------------------------------------------------

复制代码

请教是什么问题[/img]

论坛徽章:
0
2 [报告]
发表于 2003-10-07 21:54 |只看该作者

TOMCAT问题

估计没设好 JAVA_HOME

论坛徽章:
0
3 [报告]
发表于 2003-10-07 22:01 |只看该作者

TOMCAT问题

论坛徽章:
0
4 [报告]
发表于 2003-10-08 08:22 |只看该作者

TOMCAT问题

look at the error message careful:

No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
If using an alternate Java compiler, please check its installation and access path.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP