This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes Connection refused Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Connection refused" Watch "Connection refused" New topic

Connection refused

Mithun Madhu

Joined: Feb 26, 2009
Posts: 8

I am trying to configure a web application developed in JSP in an RHEL 5.6 environment.
The webserver I am using is Tomcat 5. The database used is MySql 5. I have installed jdk 6.
However, the application refuses to connect to the database. The login page is visible when I access it in the browser.
But when I try to login with the proper credentials, the following exception is coming in catalina.out log file. Connection refused
at com.mysql.jdbc.StandardSocketFactory.connect(
at com.mysql.jdbc.MysqlIO.<init>(
This is followed by a few more lines.

Please help...
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

Please check if you have configured the correct MySQL JDBC driver. Also, please check if the login account information is present in the database.

Not many get the right opportunity !
I agree. Here's the link:
subject: Connection refused