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

The connection was refused when attempting to contact localhost:8080

preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
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
Marshal

Joined: Mar 22, 2005
Posts: 41906
    
  63
Is Tomcat actually running, and configured to listen on port 8080?


Ping & DNS - my free Android networking tools app
preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
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

Joined: Dec 11, 2004
Posts: 13410

How did you start Tomcat?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
I start the tomcat like ./startup.sh
preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
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

Joined: Dec 11, 2004
Posts: 13410

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
Marshal

Joined: Mar 22, 2005
Posts: 41906
    
  63
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

Joined: Dec 11, 2004
Posts: 13410

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

Joined: Oct 04, 2007
Posts: 518
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The connection was refused when attempting to contact localhost:8080