JavaBeat Certifications Certifications Kits Articles Interview Questions OCAJP 7 OCPJP 5 OCPJP 6 OCEJWCD 6 SCBCD 5.0 SCEA SCJA

Why do I get a connection refused exception

Topic :
Feedback Request New QnA Print Email

  1. your database server is accepting TCP connections.
  2. Check that your database server is running on the server address you think it is
  3. Check for firewalls. Is there a port or ports being blocked between your application and the database?
  4. Check that you are not having a security problem. Is your application an Applet? If you are connecting to a database that is not on the same physical box as your web server then you need to sign your applet.
  5. Check that you are using the right username and password
  6. Check that the database user has the correct permissions and is able to log in from the location you are attempting to log in from.
  7. Check that you are using the correct driver for your database. There often different versions of the same driver for the same database but different versions of the database since the underlying proctocol had some changes between versions.

Topic :
Feedback Request New QnA Print Email

All api java java 6.0 java 7.0 jdbc jsp servlet ejb jndi jms ejb 3.0 j2ee jee 5.0 jee 6.0 jsf struts spring Hibernate ajax JBoss Seam netbeans eclipse ant xml maven dojo junit javafx j2me log4j ESB JBoss Apache Quartz scjp mysql oracle gwt openjpa jmx yui google-guice android JBoss scwcd 5.0 scjp 1.5 scjp 1.6 scja scbcd 5.0

javabeat | advertise | about us | contact | useful resources
Copyright (2004 - 2013), JavaBeat