jsp配置 服务器500错误 请高手帮忙解决一下 急啊!!!

来源:百度知道 编辑:UC知道 时间:2024/09/21 03:13:11
能访问tomcat欢迎页面,也能访问html文件,但是在访问jsp是服务器总是报出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

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:35

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.

关键信息,请检查你的JDK配置,特别是lib下的tools.jar是否被破坏。

java相关的环境变量你是怎么配的?

重装