Win a copy of High Performance Python for Data Analytics this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

The connection was refused when attempting to contact localhost:7001

 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author and iconoclast
Posts: 24203
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay.

The port 8080 works. I messed up the port.

Thank you.
 
See ya later boys, I think I'm in love. Oh wait, she's just a tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic