Tomcat问题
本人安装了Tomcat5.0 但是怎么编写的jsp却运行不了?普通的HTML文件放在ROOT中却可以运行,书上不是说打入:
http://localhost:8080:+jsp文件名字就可以吗?但却出现下面的页面:
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:439)
org.apache.(Compiler.java:497)
org.apache.(Compiler.java:476)
org.apache.(Compiler.java:464)
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)
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:105)
org.apache.tools.ant.taskdefs.(Javac.java:929)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
org.apache.(Compiler.java:407)
org.apache.(Compiler.java:497)
org.apache.(Compiler.java:476)
org.apache.(Compiler.java:464)
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)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs.
谢谢各位了,问题解决了,是JDK跟Tomcat的配置问题.
[[it] 本帖最后由 linwu_2006 于 2008-9-15 14:59 编辑 [/it]]