报404错,是没有找到你输入的date.jsp,不是你的页面有错。我试了一下,可以正确输出的。 (Hello! The time is now Tue Feb 01 16:43:18 CST 2005 ) 我的目录是:http://localhost:8080/TomcatProject/date.jsp
*.jsp 肯定是放错了位置! 放在ROOT试试看。
就是,这个是页面没有找到的问题,是路径有错,不然你把<%= new java.util.Date() %>去了再看看,肯定还是这个问题,所以请首先保证路进正确。
这回是这个错误:HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: Unable to compile class for JSPNo 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 文件路径:C:\Tomcat\webapps\ROOT\Date.jsp运行路径:http://192.168.245.245:8080/Date.jspjsp的错误为什么这难看懂呀?
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.
呵呵~ <HTML><BODY>Hello! The time is now <%= new java.util.Date() %></BODY></HTML> jdk1.4+tomcat5+win2000报错 HTTP Status 404 - /date.jsp (/date.jsp)把这个/去掉试试
(Hello! The time is now Tue Feb 01 16:43:18 CST 2005 )
我的目录是:http://localhost:8080/TomcatProject/date.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
文件路径:C:\Tomcat\webapps\ROOT\Date.jsp运行路径:http://192.168.245.245:8080/Date.jspjsp的错误为什么这难看懂呀?
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.
<HTML><BODY>Hello! The time is now <%= new java.util.Date() %></BODY></HTML>
jdk1.4+tomcat5+win2000报错
HTTP Status 404 - /date.jsp
(/date.jsp)把这个/去掉试试