tomcat HTTP Status 500 - 错误
来源:百度知道 编辑:UC知道 时间:2024/06/18 12:55:22
在地址栏输入http://localhost:8080 能看见默认的index.jsp文件 但打开自己的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.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.
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:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.
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
答案就是你的环境变量没设置好.
要不你把rt.jar加到lib里也可以.
tomcat的http status404错误
TOMCAT 的 HTTP Status 500 - 错误 如何解决??
tomcat安装好start后,打开Http://localhost:8080该页无法显示,为什么?
出现"Apache Tomcat/4.0.1 - HTTP Status"是什么意思?
http://tomcat.apache.org/download-55.cgi中如何下载?
JSP中import导入包后,tomcat中出现Http Status 500错误
tomcat 想输入http://localhost:80 就能浏览目录怎么实现?
启动tomcat后运行http://localhost:8080后显示的不是主页面
tomcat怎么配置才可以在http和https之间转换呢?
跪求JSP+TOMCAT不能访问http://localhost:8080解决办法