tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Haluk Durmus <haluk.dur...@gmx.de>
Subject Re: can't run tomcat with jsvc
Date Mon, 03 Jan 2005 13:40:30 GMT
Thanks,

> I had the same problem on my Debian after a distribution upgrade from 
> Woody with kernel 2.4.18 to Sarge and kernel 2.6.8. I traced the jsvc 
> call with strace -f. So I got the following messages:
>
> [pid 11313] capset(0x19980330, 0, 
> {CAP_SETGID|CAP_SETUID|CAP_NET_BIND_SERVICE, 
> CAP_SETGID|CAP_SETUID|CAP_NET_BIND_SERVICE, 
> CAP_SETGID|CAP_SETUID|CAP_NET_BIND_SERVICE}) = -1 EPERM (Operation not 
> permitted)
> [pid 11313] write(2, "jsvc.exec error: ", 17) = 17
> [pid 11313] write(2, "syscall failed in set_caps", 26) = 26

> It seems that some things regarding security and/or cryptography have 
> changed in the kernels. What helped me out of my situation was:
> modprobe capability


This solved my problem with the Error set_caps.

My kernel:

Linux mobil-data 2.6.9 #3 Thu Dec 23 15:40:24 CET 2004 i686 unknown 
unknown GNU/Linux

But now I have an other one!

jsvc didn't bind to port 80

I start:

root@mobil-data:/opt/jakarta-tomcat-5.5.6/bin/jsvc-src/native# 
./Tomcat5.sh start

Error in catalino.out log:

Jan 3, 2005 2:24:34 PM org.apache.coyote.http11.Http11Protocol start
SEVERE: Error starting endpoint
java.net.BindException: Permission denied:80
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:297)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:312)
        at 
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:181)
        at org.apache.catalina.connector.Connector.start(Connector.java:990)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:459)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2010)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:218)
Jan 3, 2005 2:24:34 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  Protocol handler start failed: 
java.net.BindException: Permission denied:80
        at org.apache.catalina.connector.Connector.start(Connector.java:992)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:459)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2010)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:218)
Jan 3, 2005 2:24:34 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3041 ms







---------------------------------------------------------------------
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