注册 登录
编程论坛 J2EE论坛

[求助]tomcat 4.1连接sql server 2000 出错!!

myjava 发布于 2005-09-05 23:52, 863 次点击

500 Servlet Exception Note: sun.tools.javac.Main has been deprecated. /myjsp/db_get.jsp:23: Class Connection not found. Connection ^ /myjsp/db_get.jsp:24: Undefined variable or class name: DriverManager Conn=DriverManager.getConnection(sConnStr,"sa",""); ^ /myjsp/db_get.jsp:25: Class Statement not found. Statement stmt=Conn.createStatement(); ^ /myjsp/db_get.jsp:26: Class ResultSet not found. ResultSet rs=stmt.executeQuery("select * from CustomerInfo"); ^ /myjsp/db_get.jsp:150: Variable rs may not have been initialized. rs.close(); ^ 5 errors, 1 warning

-------------------------------------------------------------------------------- Resin 2.1.16 (built Tue Feb 15 11:12:27 PST 2005)

我用tomcat4.1连接sql server 2000时,发生错误 请各位大虾帮忙解决!!!

0 回复
1