Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat not contact another server ip address

 
Priya Sri
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • 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.
 
Rob Spoor
Sheriff
Pie
Posts: 20744
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd check my firewall settings first.
 
Priya Sri
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you explain in detail what are the settings that i missed ?
 
Rob Spoor
Sheriff
Pie
Posts: 20744
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • 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
  • 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
Pie
Posts: 20744
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • 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
  • 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
Pie
Posts: 20744
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I repeat myself:
Rob Spoor wrote:I would contact my network administrator about that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic