Women in Technology

Hear us Roar



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 :-)


Main Topics Oldest First

Showing messages 1 through 5 of 5.

  • 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-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 :)