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 reportmessage Servlet Database is not availabledescription The requested resource (Servlet Database is not available) is not available.
--------------------------------------------------------------------------------Apache Tomcat/5.5.17
{
try{
Class.forName ("com.microsoft.jdbc.sqlserver.SQLServerDriver");
}
catch(ClassNotFoundException e){
throw new UnavailableException("加载数据库驱动程序失败");
}
}如果将以上语句删除则不会出错
错误页面如下:HTTP Status 404 - Servlet Database is not available--------------------------------------------------------------------------------type Status reportmessage Servlet Database is not availabledescription The requested resource (Servlet Database is not available) is not available.
--------------------------------------------------------------------------------Apache Tomcat/5.5.17
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货