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 > DB2 and tomcat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-01-07, 14:19
sbmj2 sbmj2 is offline
Registered User
 
Join Date: Aug 2007
Posts: 1
DB2 and tomcat

Hi..

I have a java program that goes against a db2 database that I now need to change into a servlet. DB2 version is 8.1.8.913 and Tomcat version is 5.5.20.
The message I get is

INFO: Server startup in 1094 ms
ClassNotFoundException: com.ibm.db2.jcc.DB2Driver
SQLException: No suitable driver

I have checked the forum and none of the answers seem to help.

Thanks,
Rhonda
Reply With Quote
  #2 (permalink)  
Old 08-02-07, 03:38
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
check for the classpath setting
there is a chapter in online info center about this : Installing the DB2 Universal JDBC Driver
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #3 (permalink)  
Old 08-02-07, 03:44
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
How is your classpath set for Tomcat? It seems that it does not include the necessary paths for DB2 and, thus, the DB2 driver is not found.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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