Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2003
    Posts
    30

    Question Unanswered: "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

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1

    Re: "No Suitable Driver" Exception

    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.
    ---
    "It does not work" is not a valid problem statement.

  3. #3
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •