JBOSS throws "org.postgresql.util.PSQLException: Connection refused" in VoyenceControl
search cancel

JBOSS throws "org.postgresql.util.PSQLException: Connection refused" in VoyenceControl

book

Article ID: 315694

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

  • Users are unable to login.
  • Receive warning in server.log:

WARN  [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (http-0.0.0.0-8881-1) Throwable while attempting to get a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.)

Environment

VMware Smart Assurance - NCM

Cause

JBOSS failed to establish connectivity to the database because the database was not available upon startup.

Resolution

To remedy this issue, you must restart services on the application server to allow the database to become available to JBOSS:

/etc/init.d/vcmaster restart