Tomcat不能显示我自己的页面

来源:百度知道 编辑:UC知道 时间:2024/06/02 03:27:23
能显示http://localhost:8080主页面,但我把我自己写的jsp拷到root下面再打开就是不能显示,报错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:439)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:497)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.J

http://localhost:8080/项目名/XXX.jsp,确定jsp文件在root下面,而不在其他目录下面

你在JSP中使用的java类正确吗?你看一下那个类能否正确编译。

服务器配置错误 配置server.xml了吗