RE: running tomcat on port 80
Is it unix / linux box ? Then yo need to be root when you start tomcat -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 17:47 To: tomcat-user@jakarta.apache.org Subject: running tomcat on port 80 Hi, Can I run Tomcat 5.0 on port 80? I do not want my visitor have to type the port number. After setting 80 as port number in the server.xml and starting tomcat, I got the following error message: SEVERE: Error starting endpoint java.net.BindException:permission denied:80 Thanks, Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running tomcat on port 80
Shouldn't be any problems. Are you sure there are not other programs bound to 80? Try netstat -a in the dos window. -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 21, 2005 9:47 AM To: tomcat-user@jakarta.apache.org Subject: running tomcat on port 80 Hi, Can I run Tomcat 5.0 on port 80? I do not want my visitor have to type the port number. After setting 80 as port number in the server.xml and starting tomcat, I got the following error message: SEVERE: Error starting endpoint java.net.BindException:permission denied:80 Thanks, Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running tomcat on port 80
Or it is possible that something else is running on port 80 - possibly a webserver. U can use the netstat command to check/verify this. HTH, Anoop On 6/21/05, Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: Is it unix / linux box ? Then yo need to be root when you start tomcat -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 17:47 To: tomcat-user@jakarta.apache.org Subject: running tomcat on port 80 Hi, Can I run Tomcat 5.0 on port 80? I do not want my visitor have to type the port number. After setting 80 as port number in the server.xml and starting tomcat, I got the following error message: SEVERE: Error starting endpoint java.net.BindException:permission denied:80 Thanks, Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks and best regards, Anoop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running tomcat on port 80
Permission denied means you are running it with non-root user. Normal user can not bind to port 80. Thanks, Mandar -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 21, 2005 12:47 PM To: tomcat-user@jakarta.apache.org Subject: running tomcat on port 80 Hi, Can I run Tomcat 5.0 on port 80? I do not want my visitor have to type the port number. After setting 80 as port number in the server.xml and starting tomcat, I got the following error message: SEVERE: Error starting endpoint java.net.BindException:permission denied:80 Thanks, Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running tomcat on port 80 instead of port 8080
Try it and see what happens. (meaning yes, that should work) -Tim Neil Zanella wrote: Hello, Sorry if this is a FAQ but how can I run Jakarta Tomcat on port 80 rather than on port 8080? I guess all I have to do is change $CATALINA_HOME/conf/server.xml so that instead of: !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 the following appears instead: !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=80 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 and restart the server. Is this correct? Thanks, Neil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running tomcat on port 80 instead of port 8080
On Fri, 2003-07-04 at 13:16, Neil Zanella wrote: Sorry if this is a FAQ but how can I run Jakarta Tomcat on port 80 rather than on port 8080? I guess all I have to do is change $CATALINA_HOME/conf/server.xml so that instead of: ... Yes, that should work. However if you are running on linux, a normal user cannot bind to ports below ~1000, you have to be root to do that. Is it possible to bind Tomcat to port 80 without running the JVM as root? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running tomcat on port 80 instead of port 8080
On Linux to run Tomcat Standalone on port 80, without using ROOT permissions(simple user) U can use iptables to redirect 8080 to 80 and 8443 to 443. without iptables, apache can do the job as necessary, but iptables is very simple. Georges Tom Parker a écrit : On Fri, 2003-07-04 at 13:16, Neil Zanella wrote: Sorry if this is a FAQ but how can I run Jakarta Tomcat on port 80 rather than on port 8080? I guess all I have to do is change $CATALINA_HOME/conf/server.xml so that instead of: ... Yes, that should work. However if you are running on linux, a normal user cannot bind to ports below ~1000, you have to be root to do that. Is it possible to bind Tomcat to port 80 without running the JVM as root? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat on port 80
Terry, Tomcat would need exclusive use of the port. You probably have Apache or some other web server already listening on that port. You will have to move it to another if you want to run Tomcat on 80. The other option is to have Apache act as the front-end to Tomcat using a connector such as mod_jk. Chuck -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 4:53 PM To: [EMAIL PROTECTED] Subject: Running Tomcat3 on port 80 What do I have to do to get Tomcat 3.3.1 to run with port 80? I modified server.xml to alter the port number, and it now fails with lack of permission on port 80. The Redhad doc for Apache says it must be started by root for this to work, but I start it as root and it still fails. A command line procedure would be best, and pointer to commands and doc is fine. Thanks! Regards, Terry Fuller [EMAIL PROTECTED] --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Tomcat on port 80
Actually, I'm such a newbie that I'm perfectly willing to give Tomcat exclusive access to port 80 -- at the moment, I rather not incur the additional learning curve required to get Apache running, still less getting Apache to frontend for Tomcat. I grant you that I'll probably want to use Apache eventually, but I'm already up over my ears in Tomcat / Java / Servlets / JSPs / UNIX / Linux / Redhat and most of the circuit breakers have already tripped. I only mentioned Apache in the original posting because I thought that the same process would be necessary for any app to listen to port 80... I did su and then run the tomcat restart command as that seemed to be what was needed to start Apache on port 80, but Tomcat still fail with the message about permission on 80. So any more help? Regards, Terry Fuller [EMAIL PROTECTED] --- In [EMAIL PROTECTED], on 06/12/2003 at 05:05 PM, Goehring, Chuck Mr., RCI - San Diego [EMAIL PROTECTED] said: Terry, Tomcat would need exclusive use of the port. You probably have Apache or some other web server already listening on that port. You will have to move it to another if you want to run Tomcat on 80. The other option is to have Apache act as the front-end to Tomcat using a connector such as mod_jk. Chuck -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 4:53 PM To: [EMAIL PROTECTED] Subject: Running Tomcat3 on port 80 What do I have to do to get Tomcat 3.3.1 to run with port 80? I modified server.xml to alter the port number, and it now fails with lack of permission on port 80. The Redhad doc for Apache says it must be started by root for this to work, but I start it as root and it still fails. A command line procedure would be best, and pointer to commands and doc is fine. Thanks! Regards, Terry Fuller [EMAIL PROTECTED] --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat on port 80 under non root?
For any serious application, you should use Apache in front of Tomcat, and it has this capability built in. Alec Bau wrote: On Solaris 2.7 we need Tomcat process to use port 80 but to run under id other than root. Is there a trick or conf option to do this, i.e. grab port 80 under root and then set user id to something else? Or the only way is to modify source and to call setuid via JNI after socket is bound? Thanks, Alec
Re: Running Tomcat on port 80 under non root?
I have tried to make mod_jk.so on solaris 2.7 for apache but no luck. Anybody were able to make one? Thanks C.M. Rahman Network Engineer CCS Internet 13740 Research Blvd. Suite O-4 Austin, TX 78758 [EMAIL PROTECTED] - Original Message - From: David Crooke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 19, 2001 10:47 PM Subject: Re: Running Tomcat on port 80 under non root? For any serious application, you should use Apache in front of Tomcat, and it has this capability built in. Alec Bau wrote: On Solaris 2.7 we need Tomcat process to use port 80 but to run under id other than root. Is there a trick or conf option to do this, i.e. grab port 80 under root and then set user id to something else? Or the only way is to modify source and to call setuid via JNI after socket is bound? Thanks, Alec