找不到驱动,好象是这样。
你还要安装sql server2000的jdbc驱动。
安装完成后做以下工作(假设安装在C:盘):拷贝:c:-Program Files-Microsoft SQL Server 2000 Driver for JDBC-lib文件夹到:
      你的WEB-INF文件夹中。
找到msbase.jar, mssqlserver.jar,msutil.jar 三个文件
  拷贝到比如:你的程序目录 d:\jsp\WEB-LIB\LIB 下面

解决方案 »

  1.   

    呵呵,确实是没有找到服务器.
    你先用应用程序代码调试.
    import java.sql.*; 
    public class test {
        
        private static String url= "jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=NorthWind";  
        private static String uid = "sa";
        private static String pwd = "sa";
        private static String driverClassName = "com.microsoft.jdbc.sqlserver.SQLServerDriver";    public static void main(String[] args){ 
             try{ 
                Class.forName(driverClassName); 
             }catch(Exception e){ 
                e.printStackTrace(); 
                System.err.println("找不到驱动程序路径。"); 
                System.exit(0); 
            } 
            Connection conn = null; 
            PreparedStatement ps = null;
            ResultSet rs = null; 
            String sql = "select * from categories"; 
            try{ 
                conn = DriverManager.getConnection(url,uid,pwd); 
                ps = conn.prepareStatement(sql); 
                rs = ps.executeQuery(); 
                System.out.println("table categories:"); 
                System.out.println("id\t\tname"); 
                while(rs.next()){ 
                    String id = rs.getString("CategoryID"); 
                    String name = rs.getString("CategoryName"); 
                    System.out.println(id + "\t\t" + name); 
                } 
            }catch(SQLException e){ 
                e.printStackTrace(); 
                System.err.println("连接数据库失败."); 
                System.exit(0); 
            }finally{ 
                if(rs != null){ 
                    try{ 
                        rs.close(); 
                    }catch(SQLException e){ 
                        e.printStackTrace(); 
                        System.err.println("不能关闭数据库连接"); 
                        System.exit(0); 
                    } 
                } 
                if(ps != null){ 
                    try{ 
                        ps.close(); 
                    }catch(SQLException e){ 
                        e.printStackTrace(); 
                        System.err.println("不能关闭数据库连接"); 
                        System.exit(0); 
                    } 
                } 
                if(conn != null){ 
                    try{ 
                        conn.close(); 
                    }catch(SQLException e){ 
                        e.printStackTrace(); 
                        System.err.println("不能关闭数据库连接"); 
                        System.exit(0); 
                    } 
                } 
            } 
            System.out.println("数据库连接测试成功."); 
        } 

    把url和其他设置改掉外就可以了.