aspose file tools*
The moose likes General Computing and the fly likes The connection was refused when attempting to contact localhost:7001 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "The connection was refused when attempting to contact localhost:7001" Watch "The connection was refused when attempting to contact localhost:7001" New topic
Author

The connection was refused when attempting to contact localhost:7001

Daniel Gee
Ranch Hand

Joined: Aug 29, 2003
Posts: 202
I am using the Tomcat 5.0.28. I have two browsers: Netscape and IE. I have been testing my JavaServer Faces (JSF) applications.

I put JSF example war files (I tested many examples) under the webapps directory, started my Tomcat, and typed http://localhost:7001/XXXXX in the browser's address bar. All those applications worked fine.

I then put the Exadel plug-in in my Eclipse (The Exadel is an IDE that supports the development of JSF.). I was able to launch the Tomcat within the Eclipse and deploy some other JSF example applications. Things worked.

I did not run any application for a few weeks.

Today, I lauched the Tomcat (no problem). I wanted to re-test those JSF examples that are under the webapps directory to refresh my memory. After I typed http://localhost:7001/XXXXXX in the Netscape's address bar, I got an alert: The connection was refused when attempting to contact localhost:7001. I also typed http://localhost:7001/XXXXX in the IE's address bar, the message is that the web site cannot be found.

What is going on? What could go wrong? Nevertheless, I am still able to launch the Tomcat within the Eclipse and test some JSF examples.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Are you sure you're really running Tomcat on port 7001, and not something more common like 80 or 8080?

Are you sure you typed "localhost" the first time and not "127.0.0.1"? The latter should always work, but the former won't always work -- Windows doesn't necessarily know what "localhost" means.


[Jess in Action][AskingGoodQuestions]
Daniel Gee
Ranch Hand

Joined: Aug 29, 2003
Posts: 202
Okay.

The port 8080 works. I messed up the port.

Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The connection was refused when attempting to contact localhost:7001