Oracle failure "The Network Adapter could not establish the connection" when using TNSNamesFile in JBoss EWS

Solution Verified - Updated -

Issue

  • The following URL is used to configure Oracle to connect to the database using the tnsnames.ora file

    jdbc:oracle:thin:TNSNamesFile=/config/my/path/tnsnames.ora;TNSServerName=MYTEST.DB1
    
  • Connection attempts fail with the following exception

    ... IO Error: The Network Adapter could not establish the connection
    

Environment

  • Red Hat JBoss Enterprise Web Server (EWS) 3.1
  • Oracle

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