SQLServerException: "Connection refused" in JBoss EAP
Issue
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.".
Environment
- 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, tools, and much more.