• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection timed out: connect

 
Betsy Camel
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

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.
java.net.ConnectException: Connection timed out: connect
java.net.PlainSocketImpl.socketConnect(Native Method)
java.net.PlainSocketImpl.doConnect(Unknown Source)
java.net.PlainSocketImpl.connectToAddress(Unknown Source)
java.net.PlainSocketImpl.connect(Unknown Source)
java.net.SocksSocketImpl.connect(Unknown Source)
java.net.Socket.connect(Unknown Source)
java.net.Socket.connect(Unknown Source)
java.net.Socket.<init>(Unknown Source)
java.net.Socket.<init>(Unknown Source)
com.ftp.connect(ftp.java:97)
com.ftp.connect(ftp.java:86)
com.Display.getDetails(Display.java:46)
ControlAction.execute(ControlAction.java:50)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


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
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting this error in tomcat5. Please help
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic