tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wolfgang Hackl <wolf.ha...@inode.at>
Subject Re: can't run tomcat with jsvc
Date Mon, 03 Jan 2005 12:30:24 GMT
Haluk Durmus wrote:

> I wan't to use Tomcat 5.5.6 as our default Webserver on port 80.
> That's why I start it with "jsvc", that should give the chance
> to run on prots <1024  for nonroot-user.
> but get Error-Message in log file:

[...]

> jsvc.exec error: syscall failed in set_caps
> jsvc.exec error: Service exit with a return value of 4


Hi Haluk,
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

Unfortunately, you did not post furter details describing your system. I 
Hope this helps anyway.

Wolfgang

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