Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 5 in Linux

 
Raj Maheshwari
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I'm trying to get Tomcat 5 running in Linux but am running into some startup problems.

Ok, so this is what I've done so far:

- I got a tar.gz file of Tomcat 5 and untarred it into a folder called /sw/Tomcat5
- I chmod'd the entire folder to 755.
- I goto the bin folder and type ./startup.sh and it does not give me any error.
- I tried to connect to it remotely from my desktop and could not connect to the machine
- So I tried to telnet to it locally and did a GET/ and I do get responses locally.
- So I did a netstat --numeric-ports -a | grep 8080
And I get the following:

$ netstat --numeric-ports -a | grep 8080
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN

It seems like the port 8080 is bound to 0.0.0.0 and am not sure if that is causing the problem?

Has anyone seen this before or are there any suggestions I can try to resolve this issue?

Thanks!
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean when you say "locally from my desktop"?

Did you try to connect to it with a browser?
 
Raj Maheshwari
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I did try to connect using a browser from my desktop (running windows) and the Tomcat instance is on a linux box.

When I said I tried to connect locally, I meant, that on the linux machine I telnet to port 8080 and do a GET / to see if it responds.

Thanks
Raj
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have iptables or ipchains blocking port 8080?
Can you ping the Linux box from your windows machine?
[ April 23, 2005: Message edited by: Ben Souther ]
 
Tad Dicks
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried running a browser on your linux machine and will that connect?
Do you have network card configured on you linux machine? I've done something similiar at home, it took me a little bit of time.

What distribution are you using?
 
Raj Maheshwari
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I can ping it.

However when I try: http://<linux machine with fqdn>:8080/

It times out

Thanks a lot.
Raj
 
Raj Maheshwari
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tad

I did not try with a browser on the linux machine yet, I'll try to do that and let you know. However, from the linux machine I did telnet to port 8080 and do a GET/ whcih did return responses.

I am using Redhat Enterprise Linux 3

Yes there is a network card on the linux machine, but the machine is based on a colo facility. If there was a problem what would it be? I can ask the IT dept to look into it.
Thanks
Raj
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Raj Maheshwari:

Yes there is a network card on the linux machine, but the machine is based on a colo facility. If there was a problem what would it be? I can ask the IT dept to look into it.


Ahh, now we're getting somewhere.
Most facilities don't have machines open to the worlds across all ports.
Ask the co-lo if port 8080 is open.
I bet it's not.
 
Raj Maheshwari
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ben!
Thanks a lot. Let me find that out with our sys admins right away. While i do that I'm going to try to simualte this on a vmware linux image as well and see what comes up. Will reply as soon as I have some answer.

Regards
Raj
 
Raj Maheshwari
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ben

Checked with IT and no its not any port blocked. I should have known since we run a lot of windows boxes off there with all sorts of port numbers. Could it be with a misconfigured nic or something?

Thanks
Raj
 
Raj Maheshwari
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just to let you know... it works perfectly on the vmware image as expected.
 
Craig Jackson
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you verified that your firewall is setup to allow incoming http requests?
If not check customize your security level on the linux box and verify it is setup to allow HTTP requests.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic