求助:JSP :Unable to compile class for JSP
dfzx 2005-03-12 05:16:11 我装的是JDK+TOMCAT
CLASSPATH:D:\JDK\lib;.;D:\JDK\lib\tool.jar;D:\JDK\lib\dt.jar;%TOMCAT_HOME%\lib
JAVA_HOME:D:\JDK\
PATH:%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;D:\JDK\bin;.;D:\JDK\lib\dt.jar;D:\JDK\lib\tools.jar
TOMCAT_HOME:D:\Tomcat 5.0
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: 2 in the jsp file: /shi/index.jsp
Generated servlet error:
[javac] Compiling 1 source file
D:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\shi\index_jsp.java:43: package com.guestbook does not exist
com.guestbook.DBConnection DBConnection = null;
^
An error occurred at line: 2 in the jsp file: /shi/index.jsp
Generated servlet error:
D:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\shi\index_jsp.java:45: package com.guestbook does not exist
DBConnection = (com.guestbook.DBConnection) pageContext.getAttribute("DBConnection", PageContext.PAGE_SCOPE);
^
An error occurred at line: 2 in the jsp file: /shi/index.jsp
Generated servlet error:
D:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\shi\index_jsp.java:47: package com.guestbook does not exist
DBConnection = new com.guestbook.DBConnection();
^
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:552)
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.
哪位大哥帮帮小弟我~~~~~~~~~~~~~~~~哇~~~~~~~~~~~~~~~~