"SQLServerException: The connection to the named instance has failed." in JBoss EAP

Solution Verified - Updated -

Issue

  • The following exception is raised when attempting to connect to SQLServer

    ... com.microsoft.sqlserver.jdbc.SQLServerException: The connection to the named instance  has failed. Error: java.net.SocketTimeoutException: Receive timed out.
            at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)
            at com.microsoft.sqlserver.jdbc.SQLServerConnection.getInstancePort(Unknown Source)
            at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)
            at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)
            at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:260)
            ...
    

Environment

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

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content