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 > Tomcat 1.4 can not connect DB2 V8.1 on AMD64

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-27-05, 07:29
BruceChen BruceChen is offline
Registered User
 
Join Date: Dec 2004
Posts: 9
Unhappy Tomcat 1.4 can not connect DB2 V8.1 on AMD64

Hi,

I am trying to make a UBD DB2 8.1 connection using the Java
COM.ibm.db2.jdbc.app.DB2Driver via Tomcat 1.4.3 on AMD64 + SuSE SLES9. The JDK is IBM 1.4.2. Then I found below strange info in my jsp:
"java.sql.SQLException: No suitable driver"

But in fact, I have renamed db2java.zip in DB2 folder to db2java.jar, and put it into everywhere I could imagine (webapps/my_proj/WEB-INF/, ....). I have put the path of db2java.jar into CLASSPATH environemnt variant.

Another strange matter is that when I put almost the same code into one java app, and compile it / run it, I found I could find the db2 driver. God, save me!

Thanks very much!
Reply With Quote
  #2 (permalink)  
Old 01-27-05, 08:40
achiola achiola is offline
Registered User
 
Join Date: May 2002
Location: General Deheza, Cba, Arg.
Posts: 273
hi
you have tomcat and db2 into same server?

maybe you can user the: COM.ibm.db2.jdbc.net.DB2Driver


abel.
Reply With Quote
  #3 (permalink)  
Old 01-27-05, 20:53
BruceChen BruceChen is offline
Registered User
 
Join Date: Dec 2004
Posts: 9
Quote:
Originally Posted by achiola
hi
you have tomcat and db2 into same server?

maybe you can user the: COM.ibm.db2.jdbc.net.DB2Driver


abel.
Yes, I am using them in the same server. :-(
Reply With Quote
  #4 (permalink)  
Old 01-28-05, 22:15
mike.abel mike.abel is offline
Registered User
 
Join Date: Apr 2002
Location: Chicago
Posts: 10
So, you've copied the db2java.zip from SQLLIB\java and placed it into your webapps/my_proj/WEB-INF/lib directory, recycled tomcat, and retested? This should be sufficient. Have you applied any fixpack to DB2 after you copied db2java.zip? If so, you must recopy as the fixpack probably has updates. BTW: DON'T JUST RENAME db2java.zip that is located in SQLLIBjava - this is BAD! Do not touch db2java.zip that is in SQLLIB - ONLY copy it to db2java.jar into the TOMCAT directory. Make sure db2java.zip that is in SQLLIB is the one that is in your CLASSPATH.
Reply With Quote
  #5 (permalink)  
Old 01-30-05, 21:51
BruceChen BruceChen is offline
Registered User
 
Join Date: Dec 2004
Posts: 9
Thank you very much for the reminding!
But I did not apply any patch, did not rename db2java.zip, and db2java.zip is inside the CLASSPATH. :-(
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