主题:救急啊,各位高手们,请进来帮我看一下我这网站代码哪里错了??
我启动TOMCAT之后,在浏览器上输入http://localhost:8080/Business/,显示以下错误:
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
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\Business\index_jsp.java:7: 软件包 com.bwm.db 不存在
import com.bwm.db.Condb;
^
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\Business\index_jsp.java:10: 软件包 com.bwm.db 不存在
import com.bwm.db.Condb;
^
An error occurred at line: 52 in the jsp file: /Business/left.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\Business\index_jsp.java:169: 找不到符号
符号: 类 Condb
位置: 类 org.apache.jsp.Business.index_jsp
Condb con=new Condb();
^
An error occurred at line: 52 in the jsp file: /Business/left.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\Business\index_jsp.java:169: 找不到符号
符号: 类 Condb
位置: 类 org.apache.jsp.Business.index_jsp
Condb con=new Condb();
^
注意:C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\Business\index_jsp.java 使用了未经检查或不安全的操作。
注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。
4 错误
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:412)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
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.28 logs.
--------------------------------------------------------------------------------
我已经把类 Condb的.class文件放到Business\WEB-INF\classes\com\bwm\db文件中了,可还是出现这样的错误,这到底是怎么回事?难道我放错地方了吗?????知道的朋友请教教我啊,这问题已经苦恼我好久了.先谢了,~~~~~~~~~~~
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
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\Business\index_jsp.java:7: 软件包 com.bwm.db 不存在
import com.bwm.db.Condb;
^
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\Business\index_jsp.java:10: 软件包 com.bwm.db 不存在
import com.bwm.db.Condb;
^
An error occurred at line: 52 in the jsp file: /Business/left.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\Business\index_jsp.java:169: 找不到符号
符号: 类 Condb
位置: 类 org.apache.jsp.Business.index_jsp
Condb con=new Condb();
^
An error occurred at line: 52 in the jsp file: /Business/left.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\Business\index_jsp.java:169: 找不到符号
符号: 类 Condb
位置: 类 org.apache.jsp.Business.index_jsp
Condb con=new Condb();
^
注意:C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\Business\index_jsp.java 使用了未经检查或不安全的操作。
注意:要了解详细信息,请使用 -Xlint:unchecked 重新编译。
4 错误
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:412)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
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.28 logs.
--------------------------------------------------------------------------------
我已经把类 Condb的.class文件放到Business\WEB-INF\classes\com\bwm\db文件中了,可还是出现这样的错误,这到底是怎么回事?难道我放错地方了吗?????知道的朋友请教教我啊,这问题已经苦恼我好久了.先谢了,~~~~~~~~~~~