Kees Jongenburger wrote:
On Friday 16 July 2004 07:49 pm, Horacio de Oro wrote:

Hi again!

I was trying File.mkdirs() on Tomcat 5.0.25 on Debian Woody, and I can
say File.mkdirs() don't work if Tomcat is started with jsvc.

(I've to say that this happens ONLY on Debian Woody... Debian Sarge and
Debian Sid works ok).


Hi . if you have installed tomcat using apt-get it might just be the security settings 
that debian developers
like to add to tomcat. Have you tried to download tomcat and insall by hand?
(editing /etc/tomcatthingy) does not work since they also used to override those files 
every startup



Hi! I've installed tomcat from "jakarta-tomcat-5.0.25.tar.gz"...

On "jsvc-src/native/jsvc-unix.c":

/* Set linux capability, user and group */
#ifdef OS_LINUX
/* CAPSALL is to allow to read/write at any location */
#define CAPSALL (1 << CAP_NET_BIND_SERVICE)+ \
                (1 << CAP_SETUID)+ \
                (1 << CAP_SETGID)+ \
                (1 << CAP_DAC_READ_SEARCH)+ \
                (1 << CAP_DAC_OVERRIDE)
#define CAPSMAX (1 << CAP_NET_BIND_SERVICE)+ \
                (1 << CAP_DAC_READ_SEARCH)+ \
                (1 << CAP_DAC_OVERRIDE)
/* That a more reasonable configuration */
#define CAPS    (1 << CAP_NET_BIND_SERVICE)+ \
                (1 << CAP_SETUID)+ \
                (1 << CAP_SETGID)
/* probably the only one Java could use */
#define CAPSMIN (1 << CAP_NET_BIND_SERVICE)


I don't understand how to use "capabilities"... Could be some problem related with capabilities??? (since the error apears ONLY if I start Tomcat with jsvc)


Horacio

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to