ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
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 :-)



1 to 5 of 5
1 to 5 of 5