Marcus,
I downloaded it and also applied the patch to eliminate the "Cannot
execute JSVC executor process" error. But here's the catch, and maybe
you know the answer. The machine and the OS (Fedora) are 64bit but the
Java runtime is 32bit. In order for jsvc to make use of the shared
libs, it has to be 32 bit as well. So, I build it like this:
CFLAGS=-m32 CPPFLAGS=-m32 CCASFLAGS=-m32 LDFLAGS="-L/usr/lib -L/lib" \
./configure --build=i686-pc-linux-gnu \
But at the end of the make, I get
gcc -L/usr/lib -L/lib -ldl -lpthread jsvc-unix.o libservice.a -o ../jsvc
/usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libdl.a when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching
for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching
for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: warning: i386 architecture of input file `jsvc-unix.o' is
incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`libservice.a(arguments.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`libservice.a(debug.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`libservice.a(help.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`libservice.a(home.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`libservice.a(java.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`libservice.a(location.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`libservice.a(replace.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: warning: i386 architecture of input file
`libservice.a(dso-dlfcn.o)' is incompatible with i386:x86-64 output
And I end up with an ELF 64-bit LSB executable that gets an immediate
segmentation fault.
Any ideas how to build it right.
Thanks,
Rob
Markus Schönhaber said the following on 10/10/2007 09:11 AM:
Rob Tanner schrieb:
How do I run Tomcat as a non-root user? I need to be able to bind to
ports 80 & 443 which are privileged ports. I know that with straight
Apache the user that it runs as is configured in httpd.conf. It starts
up as root, binds to the ports and then drops its privileges. However,
I'm running Tomcat as stand-alone. So, is there some mechanism in
Tomcat to accomplish the same thing?
Yes, jsvc[1]. The sources should be in the bin/ directory of your Tomcat
installation.
Regards
mks
[1] http://commons.apache.org/daemon/jsvc.html
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]