Hi all,
In the process of setting up a new server I have encountered a problem
with getting jsvc to bind port 80 as root, to allow Tomcat to run as a
less-privileged user.
I have downloaded and built from source the latest version of jsvc (from
daemon-1.0.1.tar.gz)
With some slight modifications to Tomcat5.sh everything works fine for
running Tomcat on port 8080, however once server.xml is changed to make
Tomcat listen on port 80, the following exception is produced at startup:
6/10/2006 14:14:00 org.apache.coyote.http11.Http11BaseProtocol start
SEVERE: Error starting endpoint
java.net.BindException: Permission denied:80
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpo\
int.java:297)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndp\
oint.java:312)
at
org.apache.coyote.http11.Http11BaseProtocol.start(Http11BaseProtocol\
.java:150)
at
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:75\
)
at
org.apache.catalina.connector.Connector.start(Connector.java:1089)
at
org.apache.catalina.core.StandardService.start(StandardService.java:\
459)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:70\
9)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl\
.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce\
ssorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl\
.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce\
ssorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.ja\
va:177)
6/10/2006 14:14:00 org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException: service.getName(): "Catalina"; Protocol handler
start fai\
led: java.net.BindException: Permission denied:80
at
org.apache.catalina.connector.Connector.start(Connector.java:1096)
at
org.apache.catalina.core.StandardService.start(StandardService.java:\
459)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:70\
9)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl\
.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce\
ssorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl\
.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce\
ssorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.ja\
va:177)
6/10/2006 14:14:00 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1041 ms
I've seen posts about this issue on here before, but didn't find them
leading to any solution.
Any ideas out there?
(Before you ask, there's nothing else running on port 80 on that system
and there's nothing preventing a root user from running something to
listen on that port).
--
Stephen Souness
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]