• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

tomcat not contact another server ip address

 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

i have deployed a war file in tomcat. The war file is supposed to contact a password vault server and give the password for my application.
But it is hanging at the place of connecting to the server ip address.
When we run the same with Run as Java application using main() from RAD/WSAD, it works perfectly and giving the password to us.
we used ipaddress 10.x.x.x in the place of testpvault.abc.com. No Working anyways.
Just hangs at the line in RED below. Not coming exception block also.



We are running tomcat on 8080 port. Do I need to do any configuration/setting in tomcat server.xml for connecting to another IP address or server ?? Please guide me.
 
Sheriff
Posts: 22784
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd check my firewall settings first.
 
Priya Sri
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you explain in detail what are the settings that i missed ?
 
Rob Spoor
Sheriff
Posts: 22784
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think that it's Tomcat or the JVM that's causing the connection problems, but the firewall on either one (or both) of the machines, or something in between.

From the machine on which Tomcat is running, can you ping the other machine? Can you connect to it using Telnet? Open a command prompt and try the following two commands (assuming the other machine is running on port 80; otherwise replace the 80 with the right port):

Also, are you aware that you can't access the WEB-INF folder or any file inside it through a web browser?
 
Priya Sri
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tried with ping testpvault.abc.om - Result is ==> Request Timed out.

With telnet testpvault.abc.om 80 - Result is ==> Could not open connection to the host, on port 80: Connect failed

The same code works through RAD - using main() method.
If Firewall exists for that server testpvault.abc.om, it should not be working through RAD also right ??

 
Rob Spoor
Sheriff
Posts: 22784
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you sure that RAD is running on that same machine? Because the ping result verifies that there is a network issue between the two. Now all you need to do is figure out what causes this issue. I would contact my network administrator about that.
 
Priya Sri
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Both RAD and Tomcat on same machine.

ping testpvault.abc.om - Result is ==> Request Timed out.
telnet testpvault.abc.om 80 - Result is ==> Could not open connection to the host, on port 80: Connect failed

With RAD, it works. Tomcat - Does not work !!


 
Rob Spoor
Sheriff
Posts: 22784
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I repeat myself:

Rob Spoor wrote:I would contact my network administrator about that.

 
If you open the box, you will find Heisenberg strangling Shrodenger's cat. And waving this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic