SQLServerException: "Connection refused" in JBoss EAP

Solution Verified - Updated -


Encountering the following exception when connecting to the database

... com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host org.myco.myhost, port 1433 has failed. Error: "Connection refused: connect. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".


  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7
    • 6
  • Microsoft SQL Server

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In