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 > "No Suitable Driver" Exception

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-02-03, 11:29
tmoeller tmoeller is offline
Registered User
 
Join Date: Apr 2003
Posts: 30
Question "No Suitable Driver" Exception

Hi,

we have a Java-Application , running on a Tomcat 4.1.24 with a DB2 Runtime Client V8.1 FP3 installed on Windows Server 2003 connecting to a DB2 Server V7.2 FP8.

When we tried to connect, we always get a "No Suitable Driver"-Exception. We renamed the db2java.zip to db2java.jar a put it into Tomcats common/lib folder. It is accessed but something is still not working.

A connection from the CLP directly to the DB Server works well.

Any ideas are welcome!!!

Thanks

Thorsten
Reply With Quote
  #2 (permalink)  
Old 10-02-03, 12:11
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: "No Suitable Driver" Exception

Quote:
Originally posted by tmoeller

we have a Java-Application , running on a Tomcat 4.1.24 with a DB2 Runtime Client V8.1 FP3 installed on Windows Server 2003 connecting to a DB2 Server V7.2 FP8.

When we tried to connect, we always get a "No Suitable Driver"-Exception. We renamed the db2java.zip to db2java.jar a put it into Tomcats common/lib folder. It is accessed but something is still not working.

What driver class and url string do you use in the resource parameters? The error you quote can happen if the url does not match the driver type used for connection.
Reply With Quote
  #3 (permalink)  
Old 10-04-03, 03:17
tmoeller tmoeller is offline
Registered User
 
Join Date: Apr 2003
Posts: 30
Hi,

we managed to make up a connection via Java directly, excluding the Tomcat. So there might be a Problem with the Tomcat and the DB2 Client/DriverClass ( We use jdbc.app.DB2Driver ). The url must be right as it works without tomcat.

Cheers

Thorsten
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