Article:
  Creating a Web Application with Ant and Tomcat 4
Subject:   no connection to the database: DBCP borrowObject failed
Date:   2003-03-01 11:13:17
From:   anonymous2
greetings


it took some time to configure all the stuff but finally compiling/installing/removing works!


but the ContextListener does not succeed to connect to the mysql database:


--
DBCP borrowObject failed: java.sql.SQLException: Server connection failure during transaction.
Attemtped reconnect 3 times. Giving up.
--


its the line in AdressDB where the application gets stuck:
this._conn = dataSrc.getConnection();


mysql is up and running. also the JConnector jar file is installed.


i dont get what's causing the error or what its about.


thanks for any ideas :-)


Full Threads Oldest First

Showing messages 1 through 8 of 8.

  • no connection to the database: DBCP borrowObject failed
    2003-03-05 06:09:46  wenbo_luo [View]

    I have the same problem, but it's a little different ,the following is the messgae throwed in the tomcat console.

    DBCP borrowObject failed: java.sql.SQLException: Cannot load connection class because of underlying exception:
    'java.lang.NumberFormatException: For input strin
    g: "/"'.

    I don't know why it is ,
    Any reply will be appreciated.
    • no connection to the database: DBCP borrowObject failed
      2003-07-16 14:00:31  anonymous2 [View]

      This is the error I fet ..Please let me know how to fix this .

      DBCP borrowObject failed: java.sql.SQLException: Server connection failure durin
      g transaction.
      Attemtped reconnect 3 times. Giving up.
      • no connection to the database: DBCP borrowObject failed
        2003-11-03 22:49:58  anonymous2 [View]

        Attemtped reconnect 3 times. Giving up.
    • no connection to the database: DBCP borrowObject failed
      2003-04-05 05:03:33  anonymous2 [View]

      Hi
      Even I got the same error, it says that the accesss is denied for the user to the Public database.
      If u have any solution please reply to this id
      vec_sagar@indiatimes.com

      thanks...
  • no connection to the database: DBCP borrowObject failed
    2003-03-02 00:53:18  ossipetz [View]

    well the:
    DBCP borrowObject failed

    tells that the database connection is present but unusable.

    - the max connections are reached
    - the database does not exist or has a different spelling. the example uses 'Public' as databasename. try using the same letters.

    something else :)

  • no connection to the database: DBCP borrowObject failed
    2003-03-01 16:50:14  ossipetz [View]

    well the:
    DBCP borrowObject failed

    tells that the database connection is present but unusable.

    - the max connections are reached
    - the database does not exist or has a different spelling. the example uses 'Public' as databasename. try using the same letters.

    something else :)

  • no connection to the database: DBCP borrowObject failed
    2003-03-01 16:35:23  ossipetz [View]

    well the:
    DBCP borrowObject failed

    tells that the database connection is present but unusable.

    - the max connections are reached
    - the database does not exist or has a different spelling. the example uses 'Public' as databasename. try using the same letters.

    something else :)

  • no connection to the database: DBCP borrowObject failed
    2003-03-01 16:32:07  ossipetz [View]

    well the:
    DBCP borrowObject failed

    tells that the database connection is present but unusable.

    - the max connections are reached
    - the database does not exist or has a different spelling. the example uses 'Public' as databasename. try using the same letters.

    something else :)