jsp的java文件放哪,Java开发网 - 请问:Jsp文件的存放位置和如何运行Jsp文件?

Posted by:冷血无情

Posted on:2005-10-03 18:56

如标题示。

另:(不知以下的路径是否对)

我在Tomcat 5.0\webapps的目录下建一文件夹myapp,该文件夹下有一Jsp文件

index.jsp,index.jsp的内容如下:

Now time is:

当我在IE浏览器输入http://localhost:8080/myapp/index.jsp 运行时出错(Tomcat安装成功)

错误信息如下:

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

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.

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)

org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)

javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

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

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

Apache Tomcat/5.0.16

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值