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 > Help!! Connect to DB2 using Tomcat4 servlet container

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-28-04, 19:01
qixin qixin is offline
Registered User
 
Join Date: Jan 2004
Posts: 1
Unhappy Help!! Connect to DB2 using Tomcat4 servlet container

Hello all,

I am very new to DB2, and have no idea how to solve this problem.

I have installed DB2 V8.1 server and administion client in my machine (OS: Linux). And I have already created an database by a Java program. Therefore I am sure the JDBC driver db2java.zip is correct.
Then I installed Tomcat4 in the same machine, and try to run Java servlets. But I got the error message:

java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.app.DB2Driver
...

I hava set to CLASSPATH. I even changed the tomcat4 startup file to include
"-classpath /opt/IBM/db2/V8.1/java/db2java.zip".

Why couldn't the JDBC driver be found?

//confused

Qi
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