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 JSPGenerated servlet error:
D:\Tomcat 5.0\work\Catalina\localhost\myapp\org\apache\jsp\testBean_jsp.java:6: 无法访问 test.TestBean
错误的类文件: D:\Tomcat 5.0\webapps\myapp\WEB-INF\classes\test\TestBean.class
类文件包含错误的类: TestBean
请删除该文件或确保该文件位于正确的类路径子目录中。
import test.TestBean;
           ^ org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:437)
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.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.
--------------------------------------------------------------------------------Apache Tomcat/5.0.30

解决方案 »

  1.   

    三种原因1.编译不成功
    2.jsp错误
    3.类错误
      

  2.   

    D:\Tomcat 5.0\work\Catalina\localhost\myapp\org\apache\jsp\testBean_jsp.java:6: 无法访问 test.TestBean
    错误的类文件: D:\Tomcat 5.0\webapps\myapp\WEB-INF\classes\test\TestBean.class
    类文件包含错误的类: TestBean
    请删除该文件或确保该文件位于正确的类路径子目录中。
    import test.TestBean; 
      

  3.   

    它是说不能编译你的jsp, 找不到TestBean这个类.
    你检查一下路径名称是不是都写对了,jsp引入的语法是不是对