已经安装了SQL SERVER2000的JDBC,但还是出错!
qingz 2006-08-16 03:07:45 public void init() throws ServletException
{
try{
Class.forName ("com.microsoft.jdbc.sqlserver.SQLServerDriver");
}
catch(ClassNotFoundException e){
throw new UnavailableException("加载数据库驱动程序失败");
}
}
如果将以上语句删除则不会出错
错误页面如下:
HTTP Status 404 - Servlet Database is not available
--------------------------------------------------------------------------------
type Status report
message Servlet Database is not available
description The requested resource (Servlet Database is not available) is not available.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.17