Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Servlet/JSP/JSF/JavaFX Script  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
reply to postflat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:求救 jsp+javabean [Re:jiangsu3000]
jiangsu3000





发贴: 11
于 2004-11-07 07:56 user profilesend a private message to userreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
sorry
初次提问
我现在发现可能是我的机器无法编译jsp吧
看看
我的环境 java_home:E:\j2sdk1.4.2\lib;.
path:%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;D:\kv;E:\j2sdk1.4.2\bin;E:\j2sdk1.4.2\lib;.
我的系统,j2sdk1.4.2和tomcat5都是装在e:/下的
为什么我调试jsp的时候出现
 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
  org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
  org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
  org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
  org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
  org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
  org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
  org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
  org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
  org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

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




从Coding Fan到真正的技术专家

话题树型展开
人气 标题 作者 字数 发贴时间
3023 求救 jsp+javabean jiangsu3000 194 2004-11-06 14:58
2558 Re:求救 jsp+javabean bluepure 36 2004-11-06 18:49
2416 Re:求救 jsp+javabean jiangsu3000 1579 2004-11-06 19:03
2402 Re:求救 jsp+javabean jiangsu3000 13 2004-11-06 20:14
2392 Re:求救 jsp+javabean chengbd 378 2004-11-07 01:54
2431 Re:求救 jsp+javabean jiangsu3000 2385 2004-11-07 07:56
2391 Re:求救 jsp+javabean chengbd 56 2004-11-07 10:08
2507 Re:求救 jsp+javabean jiangsu3000 7 2004-11-07 17:55

reply to postflat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923