LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-19-2002, 11:15 PM   #1
osirus
LQ Newbie
 
Registered: Sep 2002
Posts: 5

Rep: Reputation: 0
Localhost refuses my connection!


I have installed Tomcat 4.1.10 on Linux 7.3. When I run "startup.sh" it starts up fine, but when I try to connect to "http://localhost:8080" it refuses my connection. I'm not sure what has gone wrong. I have successfully installed Tomcat 4.0.4 on a laptop and it works fine. I thought I may be having a problem with my DSL line buggering things up, but I'm not sure and wouldn't know how to fix it anyway.

Any suggestions?
 
Old 09-20-2002, 12:40 AM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
This is most probably a firewall issue, check that you have 8080 open for localhost, otherwise you'd get connection refused error.
 
Old 09-20-2002, 01:29 AM   #3
osirus
LQ Newbie
 
Registered: Sep 2002
Posts: 5

Original Poster
Rep: Reputation: 0
Thanx,
I've decided to revert back to tomcat-4.0.4....at least this still works!
 
Old 09-22-2002, 04:17 AM   #4
prpsarathy435
LQ Newbie
 
Registered: Dec 2001
Location: Mumbai, India
Distribution: net
Posts: 18

Rep: Reputation: 0
If it refuses connection, means that you tomcat has not started proper. Do the following it will work :

see in /root/.bashrc the path for java is given.
in the /var/tomcat4/conf/tomcat4.conf java path is given proper
Then run the tomcat4 with "run" in the terminal mode. It will to step by step to say what it is doing and whether the startin of tomcat is proper or not like the following :

==================================================================================
[root@localhost root]# tomcat4 stop
Using CATALINA_BASE: /var/tomcat4
Using CATALINA_HOME: /var/tomcat4
Using CATALINA_TMPDIR: /var/tomcat4/temp
Using JAVA_HOME: /usr/java/jdk1.3.1_04
[root@localhost root]# tomcat4 run
Using CATALINA_BASE: /var/tomcat4
Using CATALINA_HOME: /var/tomcat4
Using CATALINA_TMPDIR: /var/tomcat4/temp
Using JAVA_HOME: /usr/java/jdk1.3.1_04
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8081
Starting service Tomcat-Standalone
Apache Tomcat/4.1
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8081
[INFO] ChannelSocket - -JK2: ajp13 listening on tcp port 8019
[INFO] JkMain - -Jk running ID=0 time=2/60 config=/var/tomcat4/conf/jk2.properties



==================================================================================
 
Old 12-30-2004, 07:17 AM   #5
fredslz
LQ Newbie
 
Registered: Dec 2004
Posts: 1

Rep: Reputation: 0
Quote:
Originally posted by prpsarathy435
If it refuses connection, means that you tomcat has not started proper. Do the following it will work :

see in /root/.bashrc the path for java is given.
in the /var/tomcat4/conf/tomcat4.conf java path is given proper
Then run the tomcat4 with "run" in the terminal mode. It will to step by step to say what it is doing and whether the startin of tomcat is proper or not like the following :

==================================================================================
[root@localhost root]# tomcat4 stop
Using CATALINA_BASE: /var/tomcat4
Using CATALINA_HOME: /var/tomcat4
Using CATALINA_TMPDIR: /var/tomcat4/temp
Using JAVA_HOME: /usr/java/jdk1.3.1_04
[root@localhost root]# tomcat4 run
Using CATALINA_BASE: /var/tomcat4
Using CATALINA_HOME: /var/tomcat4
Using CATALINA_TMPDIR: /var/tomcat4/temp
Using JAVA_HOME: /usr/java/jdk1.3.1_04
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8081
Starting service Tomcat-Standalone
Apache Tomcat/4.1
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8081
[INFO] ChannelSocket - -JK2: ajp13 listening on tcp port 8019
[INFO] JkMain - -Jk running ID=0 time=2/60 config=/var/tomcat4/conf/jk2.properties


=================================================================================

I had the same problem, but in my case it wasn't a real problem.

Looking the logs file (catalina_YYYY-MM-DD.log) I found out that the tomcat was running in the port 8180 instead of 8080.

So, I used http://localhost:8180 and everything is now ok.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
X refuses connection slim27616 SUSE / openSUSE 1 02-14-2005 04:37 AM
Apache refuses to connect to localhost Boby Linux - Software 2 11-17-2004 01:10 AM
Apache server refuses connection jimaman SUSE / openSUSE 13 11-11-2004 05:14 PM
HTTP Server enabled but localhost refuses me. Ukee Linux - Software 6 09-16-2004 01:15 PM
Localhost refuses to print... Nichole_knc Slackware 2 09-12-2004 06:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration