• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

IOException: The Network Adapter could not establish the connection

 
Greenhorn
Posts: 4
jQuery Tomcat Server Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to deploy a war for a web application in Tomcat. I've modified the context.xml file adding the following to define the database connection:



but I get this error in my catalina.out log:



Do I have to configure something else? I'm completely new to this so I would need a step by step explanation. Thanks.
 
Saloon Keeper
Posts: 22780
153
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apparently there is no network path between the client (Tomcat) and database server (Oracle).

Check the following:

1. IP and port address in the JDBC URL

2. Format of the URL. I think it may need to be like: "jdbc:oracle:thin:@//ip.ad.dr.ess:1523:PWS_DEV"

3. Firewalls between Tomcat and the Oracle server. You may need a network person to grant access.
 
alit bizz
Greenhorn
Posts: 4
jQuery Tomcat Server Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I've tried to connect via SQuirreL and I got this:



and if I ping that IP address, I get 100% packet loss, so I guess it's a problem with that IP, not mine right?

Thank you for your answer by the way.
 
Tim Holloway
Saloon Keeper
Posts: 22780
153
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If a ping fails, definitely verify the IP address. Also have them check to make sure a cable isn't unplugged!
 
Wink, wink, nudge, nudge, say no more, it's a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic