| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 504 人关注过本帖
标题:自己的第一个JSP就是看不了,愁啊!
只看楼主 加入收藏
greenlove
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2006-5-1
收藏
 问题点数:0 回复次数:8 
自己的第一个JSP就是看不了,愁啊!

我的第一个页面 http://127.0.0.1:8080/myapp/index.jsp老是出错误。
配置都一切正常啊,这个是怎么回事情。
可以看到首页的猫。

2006-05-01 22:34
greenlove
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2006-5-1
收藏
得分:0 
补充一下啊,是500错误

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.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
	org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:439)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:497)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
	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:105)
	org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
	org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
	org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:407)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:497)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
	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.30 logs.

2006-05-01 22:36
飘飘叶子
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:34
帖 子:597
专家分:10
注 册:2005-8-17
收藏
得分:0 

把jsp里的内容帖出来


向着软件工程师的目标前进!
2006-05-02 08:36
greenlove
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2006-5-1
收藏
得分:0 

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.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
2006-05-02 11:47
greenlove
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2006-5-1
收藏
得分:0 
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:439)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:497)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
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
2006-05-02 11:48
greenlove
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2006-5-1
收藏
得分:0 

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:105)
	org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
	org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
	org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:407)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:497)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
	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.30 logs.


2006-05-02 11:48
greenlove
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2006-5-1
收藏
得分:0 
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.30 logs.


Apache Tomcat/5.0.30

2006-05-02 11:48
greenlove
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2006-5-1
收藏
得分:0 
就上面那些啊,帮忙啊
2006-05-02 11:49
adu99
Rank: 1
等 级:新手上路
帖 子:32
专家分:0
注 册:2006-5-4
收藏
得分:0 

同志 回头在看看JSP书吧,搞清楚 JSP 环境!
第一:你的环境有问题,Java 有点问题!


勤学如田中之禾,不见其长,日有所增……
2006-05-04 20:28
快速回复:自己的第一个JSP就是看不了,愁啊!
数据加载中...
 
   



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

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