Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The connection was refused when attempting to contact localhost:8080

 
preethi Ayyappan
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
when i tried to see the Tomcat Administration page by giving http://localhost:8080 in the browser ,after tomcat installation in my redhat linux machine, i am getting the following error in an alert message.

The connection was refused when attempting to contact localhost:8080

what does it mean.why this error occured?please help me.I have downloaded and installed jdk1.6.0_04 in usr/java and jakarta-tomcat-5.0.28 in usr/local.

Thanks.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is Tomcat actually running, and configured to listen on port 8080?
 
preethi Ayyappan
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I never had worked with tomcat.how could i find whether it is running and listening to port 8080?
could you please guide me?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
preethi Ayyappan
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I start the tomcat like ./startup.sh
 
preethi Ayyappan
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using redhat linux 4 and apache 2 and jdk 1.6.0_04.shall i uninstall the tomcat and reinstall another version.If so could anyone tell me where should i download tomcat and what are the installation instructions i have to follow?coz i am confused by looking at different installation instructions.please give me any useful link to download and install tomcat properly in my linux machine.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
coz i am confused by ...


In an effort to help everyone get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see:
UseRealWords

Abbreviations such as "u" or "ur" in
place of "you" and "you are" or "you're" confound language translation software making
it hard for our non-English speaking members to read your posts.
'coz' is not a word in the English language.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's no point in installing Tomcat again - you said you started the version that's installed. If you got neither error messages on the command line, nor any errors in the log files (those are generally in the TOMCAT_HOME/logs directory) then Tomcat should be running.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean Fedora 4?
RedHat 4 ancient.


In any case if you ran startup.sh and didn't see errors on the screen, it should be running.
Did you read any of the logs under tomcat/logs to see if exceptions are being thrown?

The nestsat program will show you which port have something bound to them.
This is on my machine with Tomcat running on 8080:
 
preethi Ayyappan
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.Now i have installed apache-tomcat-5.5.26.tar.gz.Now it is working fine.sorry for using non english words
[ March 01, 2008: Message edited by: preethi Ayyappan ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic