connecting to an access database

i have a servlet that is trying to connect to an access database and read the data within it. when i run the server i get this error:-

java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

i have set up the data source name in the ODBC Data Sources settings in windows NT control panel, and when i run the program as a stand alone java program (not as a servlet) it gets the data from the database without any errors.

I am using Netscape iplanet web server to run the servlets and this is the java code i am using:-

Connection con = null;

Statement stmt = null;

ResultSet rs = null;

try {

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

con = DriverManager.getConnection("jdbc:odbc:first_test");

stmt = con.createStatement();

rs = stmt.executeQuery("SELECT * FROM Names");

[919 byte] By [russelladams] at [2007-9-26 2:18:38]
# 1
try, http://www.pitt.edu/~urcml
mchan0 at 2007-6-29 9:19:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
please check your DataSourceName information name of odbc source, username password etc..
simmy1 at 2007-6-29 9:19:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...