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.
The moose likes Tomcat and the fly likes Connection timed out: connect Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » Tomcat
Bookmark "Connection timed out: connect" Watch "Connection timed out: connect" New topic

Connection timed out: connect

Betsy Camel
Ranch Hand

Joined: Oct 02, 2003
Posts: 119

i have got a servlet which calls the java class. the java class connects to a server. when i run the java class it gives me the output without problem but when i try to run the servlet it gives me the following error. Connection timed out: connect Method) Source) Source) Source) Source) Source) Source)<init>(Unknown Source)<init>(Unknown Source)

Can anyone help me. i am behind a firewall but if that is the reason i am getting the error then even the standalone shouldnt have worked. Please help
Betsy Camel
Ranch Hand

Joined: Oct 02, 2003
Posts: 119
I am getting this error in tomcat5. Please help
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Are you running Tomcat under the same username from which you were running the standalone Java program?

If not, does the username under which Tomcat is running have sufficient privileges to see and connect to that server?

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Have you checked out Aspose?
subject: Connection timed out: connect
It's not a secret anymore!