• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat server is not connecting to localhost:8080 ,please help

 
Neha Diwaker
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am working on a unix machine.I have installed apache-tomcat-7.0.16.
I am able to start tomcat server.It starts and says:

Using CATALINA_BASE: /home/jainpa/MySoftware/jakarta-tomcat-5.5.9
Using CATALINA_HOME: /home/jainpa/MySoftware/jakarta-tomcat-5.5.9
Using CATALINA_TMPDIR: /home/jainpa/MySoftware/jakarta-tomcat-5.5.9/temp
Using JRE_HOME: /home/jainpa/NehaDiwakar/jdk1.7.0

and I am confirming with process also that tomcat is started.

Now when i am trying to ping using below command:

$ ping localhost 8080

PING 8080 (0.0.31.144) 56(124) bytes of data.
^C
--- 8080 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms


.Please help as i m not able to connect to localhost.

Neha
 
Swastik Dey
Rancher
Posts: 1625
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try telnet localhost 8080
 
Neha Diwaker
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Swastik,

I tried telnet command it says:


Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused


,where is it going wrong not able to understand.

Please help.
 
Swastik Dey
Rancher
Posts: 1625
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Neha,

Some kind of firewall is blocking the request on port 8080. Probably the easier solution is to change the http port number of tomcat.
 
Neha Diwaker
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Swastik,

I tried changing port number to 8001 i server.xml file.
but still its giving same for 8001 also.

How to unblock the firewell.
Neha
 
Swastik Dey
Rancher
Posts: 1625
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Neha,

I don't know much about unix. However related to your problem I was going through net, and I found the following link, probably this might help you.

http://www.cyberciti.biz/faq/linux-unix-open-ports/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic