It looks to me like you connecting locally with MS Access and trying to
connect remotely with DB2.  You could try

COM.ibm.db2.jdbc.app.DB2Driver instead.  Also is your DB2Java.zip on the
Classpath?

Good luck
Chor Hock Lee
Solution Architect
(eBusiness, Java, Network Computing - the tools of Business Transformation)


Tel: 613 96266561 Mobile: 0411 259313 Fax: 613 96266622



tumlare <[EMAIL PROTECTED]> on 10/03/99 03:08:32 PM

Please respond to tumlare <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Chor-Hock Lee/Australia/IBM)
Subject:  Problem in connection with DB2 for both JSP & Java Servlet...





Hi.

I was using the MS Access database in JSP and Servlet by ODBC. This was wrk
nicely. But now the same database I created in DB2, It's not working.

Code which, i was using with JDBC-ODBC for MS Access
---------------------------------------------
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager("jdbc:odbc:databasename");

Code which, i was using with DB2 for DB2 database
---------------------------------------------
Class.forName("h");
Connection con = DriverManager("jdbc:db2://IP Address/port/databasename");

For the DB2, It is not connecting and giving exception ClassNotFound


B'rgds

Toseef Alam

Hi.
 
I was using the MS Access database in JSP and Servlet by ODBC. This was wrk nicely. But now the same database I created in DB2, It's not working.
 
Code which, i was using with JDBC-ODBC for MS Access
---------------------------------------------
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager("jdbc:odbc:databasename");
 
Code which, i was using with DB2 for DB2 database
---------------------------------------------
Class.forName("COM.ibm.db2.jdbc.net.DB2Driver");
Connection con = DriverManager("jdbc:db2://IP Address/port/databasename");
 
For the DB2, It is not connecting and giving exception ClassNotFound
 
 
B'rgds
 
Toseef Alam
 

Reply via email to