This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.
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?
Joined: Mar 30, 2004
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 ??
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.
Joined: Mar 30, 2004
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