Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection refused

 
Mithun Madhu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.

java.net.ConnectException: Connection refused
at gnu.java.net.PlainSocketImpl.connect
at java.net.Socket.connect(libgcj.so.7rh)
at java.net.Socket.connect(libgcj.so.7rh)
at java.net.Socket.<init>(libgcj.so.7rh)
at java.net.Socket.<init>(libgcj.so.7rh)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:173)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:267)
This is followed by a few more lines.

Please help...
 
Madhan Sundararajan Devaki
Ranch Hand
Posts: 312
Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please check if you have configured the correct MySQL JDBC driver. Also, please check if the login account information is present in the database.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic