下面是出错信息,如果可能,一会儿我把源文件全部发上去
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 An error occurred at line: 6 in the jsp file: /car.jsp Generated servlet error: [javac] Compiling 1 source file C:\Tomcat 5.0\work\Catalina\localhost\myweb\org\apache\jsp\car_jsp.java:7: cannot resolve symbol symbol : class Car location: package testclass import testclass.Car; ^ C:\Tomcat 5.0\work\Catalina\localhost\myweb\org\apache\jsp\car_jsp.java:49: cannot resolve symbol symbol : class Car location: package testclass testclass.Car car2=new testclass.Car(); ^ An error occurred at line: 6 in the jsp file: /car.jsp Generated servlet error: C:\Tomcat 5.0\work\Catalina\localhost\myweb\org\apache\jsp\car_jsp.java:49: cannot resolve symbol symbol : class Car location: package testclass testclass.Car car2=new testclass.Car(); ^ 3 errors 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:553) 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.