Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2004
    Posts
    1

    Unanswered: Driver Class Not Found for DB2 on Linux!!

    Hi,

    I am, finding problem to load DB2 driver Class used in an application deployed on Websphere Applcation Server 5.1 using database DB2 8.1 on Linux Redhat OS

    try
    {
    Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
    }
    catch(ClassNotFoundException cnfe)
    {
    throw new SQLException("DRIVER PROBLEM Can’t find class for driver:" +cnfe.getMessage());
    }


    ClassPath has been set as follows in .bash_profile of the login user on Linux:

    $CLASSPATH:/opt/IBM/db2/V8.1/java:/opt/IBM/db2/V8.1/java/db2java.zip


    I checked the driver class(DB2driver) which is present in db2java.zip in the path COM.ibm.db2.jdbc.app

    The above exception is thrown when trying to connect to database.

    Is anything required to be done in WAS where the application is deployed

    Hope to get good help from this forum

    Thanks,
    Manish

  2. #2
    Join Date
    Sep 2004
    Posts
    3
    Hi,

    I had the same problem with WAS on Windows. The problem was that the system classpath was too long. In the Java Runtime that still functioned to access, only in WAS the error message came "class not found".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •