This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

IOException: The Network Adapter could not establish the connection

 
Greenhorn
Posts: 4
jQuery Tomcat Server Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 25455
178
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 25455
178
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
No. No. No. No. Changed my mind. Wanna come down. To see this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic