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 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.