tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nadia Kunkov" <nad...@parkerglobal.com>
Subject RE: setting tomcat to listen on port 80
Date Wed, 05 Nov 2003 19:33:50 GMT
Oh, I don't know how to thank you!!!  That's it!  It finally works....  Now should we be using
port 80 and running as root or should we better use port redirection:
 /etc/sysconfig/ipchains
-I input --proto TCP --dport 80 -j REDIRECT 8080
-I input --proto TCP --dport 443 -j REDIRECT 8443

Thanks for your help.
N.K.

-----Original Message-----
From: Shapira, Yoav [mailto:Yoav.Shapira@mpi.com]
Sent: Wednesday, November 05, 2003 1:48 PM
To: Tomcat Users List
Subject: RE: setting tomcat to listen on port 80



Howdy,
Your 8005 error is because you started tomcat before, and shut it down
inappropriately, or not at all, so it's still listening on port 8005.
8005 is the default tomcat shutdown port.

Shut down the first tomcat properly and completely.  Then you'll be able
to start on port 80 (and 8005 -- a server shutdown port is always
required in addition to the connector port).

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: V.Karthik Kumar [mailto:kkgoesnuts@yahoo.com]
>Sent: Wednesday, November 05, 2003 1:47 PM
>To: Tomcat Users List
>Subject: Re: setting tomcat to listen on port 80
>
>I really don't know how to help you. The server.xml
>file works well in Windows (i've tried it out, on port
>80).
>
>So, temporarily, till one of us comes up with a
>solution, start httpd, and give a redirection page to
>http://yourhost:8080.
>
>Tomcat uses more ports such as a Shutdown Port / AJP13
>Port etc.
>
>This you can see in all the <Connector> lists in
>server.xml file.
>
>There is nothing wrong in using port 80. It works well
>on Windows.. But i really don't know why it doesn't
>work on Linux.
>
>(That doesn't answer the question anyway)
>
>--- Nadia Kunkov <nadiak@parkerglobal.com> wrote:
>> I'd like Tomcat 4 to be listening on port 80. I have
>> changed
>> server.xml file
>> to read: <Connector name =
>> org.apache.catalina.connector.http.HttpConnector
>> port = 80 >.
>> I'm running as root, I know only root can access
>> this port.
>> When I try to start Tomcat (tomcat4 start) I get a
>> message: bind
>> exception - permission denied:80, bind exception -
>> 8005 address already in use.
>> So I found a file /etc/tomcat4/tomcat4.conf where I
>> changed tomcat-user to "root".
>> Now when I try to start Tomcat I only have one
>> error: bind exception 8005 address already in use.
>>
>> My httpd is disabled, since we are using Tomcat as
>> web server.
>> In Firewall configuration I added a line with Accept
>> action for port
>> 80. It created an /etc/sysconfig/ipchains file.
>> When I ran netstat -tupan I see no entry for port
>> 80. But there is an entry for port 8005 that reads
>> "Java".
>> Could you explain to me what does it all mean?  I'm
>> pretty new to this stuff so bear with me. Dies
>> Tomcat need both ports 80 and 8005?  Isn't Java mean
>> Tomcat is listening on 8005?  Anyway how can I make
>> Tomcat listen on port 80?  Just changing server.xml
>> doesn't seem to be enough.
>>
>> Any ideas would be greatly appreciated.
>> Thanks in advance.
>> N.K
>>
>>
>>
>---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail:
>> tomcat-user-help@jakarta.apache.org
>>
>
>
>__________________________________
>Do you Yahoo!?
>Protect your identity with Yahoo! Mail AddressGuard
>http://antispam.yahoo.com/whatsnewfree
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message