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:
An error occurred at line: 26 in the jsp file: /WebRoot/dbaccess.jsp
com.mysql.jdbc.Driver cannot be resolved to a type
23: //加载驱动程序,下面的代码加载MySQL驱动程序
24: Class.forName("com.mysql.jdbc.Driver");
25: //注册MySQL驱动程序
26: DriverManager.registerDriver(new com.mysql.jdbc.Driver());
27: //用适当的驱动程序连接到数据库
28: String dbUrl = "jdbc:mysql://localhost/ky?useUnicode=true&characterEncoding=GB2312";
29: String dbUser="root";
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.18
哪位帮忙一下.几天还未解决这个问题.究竟是什么地方错了?
问题补充:
包有导入,用户密码也有.就是出现这种错误.不知是什么原因.网上也有很多人遇到过这样的问题.哪位曾经配置成功的.能帮忙一下吗?
2009年4月02日 11:06