wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Tomcat 5 in Linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 5 in Linux" Watch "Tomcat 5 in Linux" New topic
Author

Tomcat 5 in Linux

Raj Maheshwari
Ranch Hand

Joined: Jul 02, 2004
Posts: 34
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

Joined: Dec 11, 2004
Posts: 13410

What do you mean when you say "locally from my desktop"?

Did you try to connect to it with a browser?


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

Joined: Jul 02, 2004
Posts: 34
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

Joined: Dec 11, 2004
Posts: 13410

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

Joined: Nov 16, 2004
Posts: 264
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

Joined: Jul 02, 2004
Posts: 34
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

Joined: Jul 02, 2004
Posts: 34
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

Joined: Dec 11, 2004
Posts: 13410

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

Joined: Jul 02, 2004
Posts: 34
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

Joined: Jul 02, 2004
Posts: 34
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

Joined: Jul 02, 2004
Posts: 34
just to let you know... it works perfectly on the vmware image as expected.
Craig Jackson
Ranch Hand

Joined: Mar 19, 2002
Posts: 405
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 5 in Linux
 
Similar Threads
The connection was refused when attempting to contact localhost:8080
problem with ports
What's the URL for administering GlassFish on a Linux server?
question for mark
WS Startup: NET_Bind (in depth, however).