<%@ page language="java" contentType="text/html; charset=gb2312" 
import="java.sql.*" %>
   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>留言簿</title>
</head>
<body background="image/bg1.gif">
<center><h1>公共留言簿</h1>
<%
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String title;
String time;
String fromid; 
Connection con=DriverManager.getConnection("jdbc:odbc:shopdata","","");
System.out.println("connection successful");
Statement sql=con.createStatement();
String condition="SELECT * FROM message";
ResultSet rs=sql.executeQuery(condition);
int rowcount=0;
%>
<center>
<table width="800">
<tr><td>
<table border="1" width="800" height="30">
<tr>
    <td width="400" valign="middle" align="center">时间</td>
    <td width="100" valign="middle" align="center">作者</td>
    <td width="300" valign="middle" align="center">标题</td>
</tr>
</table>
</td></tr>
<%
while (rs.next()){
rowcount++;
time=rs.getString("time");
fromid=rs.getString("fromid");
title=rs.getString("title");
%>
<tr><td>
<table border="1" width="800" height="30">
<tr>
    <td  width="400" valign="middle" align="center"><%=time %> </td>
    <td  width="100" valign="middle" align="center"><%=fromid %></td>
    <td  width="300" valign="middle" align="center"><a href="showboard.jsp?rowcount=<%=rowcount %>"><%=title %></a></td>
</tr>
</table>
</td></tr>
<%
}
%>
</table>
</center>
<% con.close();
}
catch (SQLException e){
out.print("SQL error" + e.toString());
}%>
</center>
</body>
</html>以上为测试的JSP页面,shopdata已经在ODBC数据源管理器中添加,几个月前连接也正常,现在移到TOMCAT测试,每次都提示SQL errorjava.sql.SQLException: [Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序 这段时间电脑上装过SQL server 2000 ,但卸载掉了.应该不相关的吧.
该怎么样解决?谢谢!