"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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.