DriverManager.getConnection() fails under JDK 1.1.8 but not 1.2 
Author Message
 DriverManager.getConnection() fails under JDK 1.1.8 but not 1.2

I'm using IBM's DB2 JDBC driver.  Using standard code I can load the driver
and get a connection just fine under JDK 1.2, but it does not work under
1.1.8.  (The exception on DriverManager.getConnection() is "No suitable
driver found".)

This happens even when I call DriverManager.registerDriver() explicitly, as
so:

            Driver driver = (Driver) Class.forName(
                "COM.ibm.db2.jdbc.app.DB2Driver" ).newInstance();
            DriverManager.registerDriver( driver );

Any help would be greatly appreciated.  We need to run under 1.1.8.



Mon, 07 Jan 2002 03:00:00 GMT
 DriverManager.getConnection() fails under JDK 1.1.8 but not 1.2

Try calling driver.connect() with the appropriate arguments. What happens?

Quote:

> I'm using IBM's DB2 JDBC driver.  Using standard code I can load the driver
> and get a connection just fine under JDK 1.2, but it does not work under
> 1.1.8.  (The exception on DriverManager.getConnection() is "No suitable
> driver found".)

> This happens even when I call DriverManager.registerDriver() explicitly, as
> so:

>             Driver driver = (Driver) Class.forName(
>                 "COM.ibm.db2.jdbc.app.DB2Driver" ).newInstance();
>             DriverManager.registerDriver( driver );

> Any help would be greatly appreciated.  We need to run under 1.1.8.

--
PS: Hey folks, we're hiring Java engineers for our WebLogic
    Engineering group in downtown S.F. Send me your resume.
--------------------------------------------------------------------------------
                    The Weblogic Application Server from BEA
         JavaWorld Editor's Choice Award: Best Web Application Server
  Java Developer's Journal Editor's Choice Award: Best Web Application Server
     Crossroads A-List Award: Rapid Application Development Tools for Java
Intelligent Enterprise RealWare: Best Application Using a Component Architecture
               http://weblogic.beasys.com/press/awards/index.htm


Mon, 07 Jan 2002 03:00:00 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. Works in JDK 1.1.7 but not in JDK 1.2

2. DriverManager.setLoginTimeout() causes DriverManager.getConnection() to time out

3. How to make JDK 1.2 look and act like JDK 1.1 for a 1.1 JVM

4. JDK 1.1.* vs JDK 1.2

5. What JUNK should not be in CLASSPATH for JDK 1.2

6. JDBC 2.0 / JDK 1.2 Drivers for Oracle 8.0x (not Oracle 8i)

7. DriverManager.getConnection()

8. timeout when calling DriverManager.getConnection()

9. jdbc DriverManager.getConnection problem

10. DriverManager.getConnection()

11. Question aboutr of JDBC DriverManager.getConnection()

12. DriverManager.getConnection Synchronized


 
Powered by phpBB® Forum Software