Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The connection was refused when attempting to contact localhost:7001

 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay.

The port 8080 works. I messed up the port.

Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic