If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Driver Class Not Found for DB2 on Linux!!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-20-04, 01:16
rr s rr s is offline
Registered User
 
Join Date: Sep 2004
Posts: 1
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
Reply With Quote
  #2 (permalink)  
Old 09-20-04, 09:37
NetToni99 NetToni99 is offline
Registered User
 
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".
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On