标题:浏览jsp时出现问题
取消只看楼主
wenhao
Rank: 1
等 级:新手上路
帖 子:65
专家分:0
注 册:2007-12-22
 问题点数:0 回复次数:3 
浏览jsp时出现问题
这是ie的提示信息:
帮我看看是什么毛病

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
    org.apache.(DefaultErrorHandler.java:97)
    org.apache.(ErrorDispatcher.java:346)
    org.apache.(Compiler.java:414)
    org.apache.(Compiler.java:472)
    org.apache.(Compiler.java:451)
    org.apache.(Compiler.java:439)
    org.apache.jasper.(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)
    net.umsoft.grantDemo.util.MyFilter.doFilter(MyFilter.java:36)


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.(CompilerAdapterFactory.java:106)
    org.apache.tools.ant.taskdefs.(Javac.java:935)
    org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
    org.apache.(Compiler.java:382)
    org.apache.(Compiler.java:472)
    org.apache.(Compiler.java:451)
    org.apache.(Compiler.java:439)
    org.apache.jasper.(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)
    net.umsoft.grantDemo.util.MyFilter.doFilter(MyFilter.java:36)


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


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

Apache Tomcat/5.0.28
搜索更多相关主题的帖子: jsp jasper apache compiler org 
2008-01-24 08:33
wenhao
Rank: 1
等 级:新手上路
帖 子:65
专家分:0
注 册:2007-12-22
得分:0 
我已经配置
是这样的,我把jdk装在了D盘TOOLS下

JAVA_HOME=D:\TOOL
path=%JAVA_HOME%\bin
classpaht=.;=%JAVA_HOME%\lib\dt.jar;  .....................等

之后,我编了一个java文件,在DoS下经过编绎( javac HelloWord.java )
解释正确显示
2008-01-24 11:40
wenhao
Rank: 1
等 级:新手上路
帖 子:65
专家分:0
注 册:2007-12-22
得分:0 
这个问题出了两种情况
手动把tomcat服务启动,打开IE后sp页面可以浏览了;
用myeclipse进行操作,在其里面启动tomcat服务后,在IE里浏览jsp就不可以,
这是怎么个情况哩?~
2008-01-25 09:25
wenhao
Rank: 1
等 级:新手上路
帖 子:65
专家分:0
注 册:2007-12-22
得分:0 
我的ie没有设置代理服务器,
电脑上了网啊的
2008-01-27 09:58



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-198528-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.898598 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved