Re: jsvc.exec error: syscall failed in set_caps

2005-04-18 Thread Georges Roux
Bill Barker a écrit :
Yeah, well, check out 
http://issues.apache.org/bugzilla/show_bug.cgi?id=33154.
 

Well done Bill,
I use last stable 2.6.11 from kernel.org compiled as the debian way 
(initrd and all as module)
and nowI add  the line

modprobe capability
before launching jsvc, in my tomcat init script
and  wait now for the patch to drop the line
It's ok
Thanks a lot Bill
Georges
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: jsvc.exec error: syscall failed in set_caps

2005-04-17 Thread Wolfgang Hackl
Georges Roux wrote:
I can't start tomcat 5.5.9 as a daemon on linux on port 8080 (default 
configuration)
nothing is running on this port
and have only thi error in logs/catalina.err

jsvc.exec error: syscall failed in set_caps
jsvc.exec error: Service exit with a return value of 4
Try modprobe capability. I think there is also a bug filed concerning 
this problem.

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


Re: jsvc.exec error: syscall failed in set_caps

2005-04-17 Thread QM
On Sun, Apr 17, 2005 at 10:33:56AM +0200, Georges Roux wrote:
: I can't start tomcat 5.5.9 as a daemon on linux on port 8080 (default 
: configuration)
: nothing is running on this port
: and have only thi error in logs/catalina.err
: 
: jsvc.exec error: syscall failed in set_caps
: jsvc.exec error: Service exit with a return value of 4


Do you call jsvc as root?

A long time ago, there was a bug that would cause jsvc to fail unless
called as root.  IIRC set_caps() is the function that calls
setuid()/setgid().  Those calls require root privs, so they would fail;
and in turn, the whole program bailed out.

(The other option would have been for jsvc to see whether the requested
and calling user were the same.)

-QM

-- 

software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.org/

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



Re: jsvc.exec error: syscall failed in set_caps

2005-04-17 Thread Georges Roux
QM a écrit :
Do you call jsvc as root?
A long time ago, there was a bug that would cause jsvc to fail unless
called as root.  IIRC set_caps() is the function that calls
setuid()/setgid().  Those calls require root privs, so they would fail;
and in turn, the whole program bailed out.
(The other option would have been for jsvc to see whether the requested
and calling user were the same.)
-QM
 

Yes as root and jsvc crash
Georges
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: jsvc.exec error: syscall failed in set_caps

2005-04-17 Thread Georges Roux
And the problem was...
first I try to start tomcat with
-user www-data
-Djava.io.tmpdir=/tmp
and after as root with only
-Djava.io.tmpdir=/tmp
the problem was the write permissions on the sessions files in /tmp
Georges
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: jsvc.exec error: syscall failed in set_caps

2005-04-17 Thread QM

On Sun, Apr 17, 2005 at 07:34:49PM +0200, Georges Roux wrote:
: and after as root with only
: -Djava.io.tmpdir=/tmp
: the problem was the write permissions on the sessions files in /tmp


Thanks much for sharing your solution with the group -- this will help
people when they search the archives.

-QM


-- 

software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.org/

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



Re: jsvc.exec error: syscall failed in set_caps

2005-04-17 Thread Georges Roux

Thanks much for sharing your solution with the group -- this will help
people when they search the archives.
-QM
 

Well hm, bad news, the probleme is already here and I don't have the 
solution.

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


Re: jsvc.exec error: syscall failed in set_caps

2005-04-17 Thread Bill Barker

Georges Roux [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]

Thanks much for sharing your solution with the group -- this will help
people when they search the archives.

-QM

 Well hm, bad news, the probleme is already here and I don't have the 
 solution.


Yeah, well, check out 
http://issues.apache.org/bugzilla/show_bug.cgi?id=33154.

 Sorry

 Georges 




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



Re: jsvc.exec error on FC3

2005-03-03 Thread Bill Barker

Chong Yu Meng [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Bill Barker wrote:
 | Chong Yu Meng [EMAIL PROTECTED] wrote in message
 | news:[EMAIL PROTECTED]
 |
 | The daemon starts up ok, but when shutting down, I get this error:
 |
 | Feb 28, 2005 3:23:40 PM org.apache.coyote.http11.Http11Protocol pause
 | INFO: Pausing Coyote HTTP/1.1 on http-8080
 | jsvc.exec error: Service exit with a return value of 143
 |
 | When I do a shutdown using the shutdown.sh script, Tomcat shuts down
 | gracefully.
 |
 | Is there a way to shutdown jsvc gracefully?
 |
 | Yes. Don't use the version that ships with Tomcat.

 Hi Bill,

 I just downloaded and compiled the source version from the Commons
 website (http://www.apache.org/dist/jakarta/commons/daemon/binaries/).
 Unfortunately, I still get the same error.

 Any ideas? Perhaps you could point me to the site you downloaded your
 jsvc sources from, because the date stamp on the two sites I visited
 were different -- although the results were the same.


You need CVS HEAD.


 - --
 ~ --
 ~ Pascal Chong


 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.6 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFCJaUgmVdpiRJSldgRAo8/AJ0QnHZ9OAiWCnYZ307u+2f1MyMOAwCgksRt
 h0KffKXJ+tk+cU3JXD3TT7U=
 =Vgbu
 -END PGP SIGNATURE- 




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



Re: jsvc.exec error on FC3

2005-03-02 Thread Chong Yu Meng
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Bill Barker wrote:
| Chong Yu Meng [EMAIL PROTECTED] wrote in message
| news:[EMAIL PROTECTED]
|
| The daemon starts up ok, but when shutting down, I get this error:
|
| Feb 28, 2005 3:23:40 PM org.apache.coyote.http11.Http11Protocol pause
| INFO: Pausing Coyote HTTP/1.1 on http-8080
| jsvc.exec error: Service exit with a return value of 143
|
| When I do a shutdown using the shutdown.sh script, Tomcat shuts down
| gracefully.
|
| Is there a way to shutdown jsvc gracefully?
|
| Yes. Don't use the version that ships with Tomcat.
Hi Bill,
I just downloaded and compiled the source version from the Commons
website (http://www.apache.org/dist/jakarta/commons/daemon/binaries/).
Unfortunately, I still get the same error.
Any ideas? Perhaps you could point me to the site you downloaded your
jsvc sources from, because the date stamp on the two sites I visited
were different -- although the results were the same.
- --
~ --
~ Pascal Chong
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFCJaUgmVdpiRJSldgRAo8/AJ0QnHZ9OAiWCnYZ307u+2f1MyMOAwCgksRt
h0KffKXJ+tk+cU3JXD3TT7U=
=Vgbu
-END PGP SIGNATURE-
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: jsvc.exec error on FC3

2005-02-28 Thread Bill Barker

Chong Yu Meng [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi all,

 I'm trying to configure jsvc to work on a Fedora Core 3 system running
 Blackdown Java 1.4.2.

 I managed to do a configure and compile jsvc all right. I used the
 Tomcat5.sh script to start up and shutdown jsvc.

 The daemon starts up ok, but when shutting down, I get this error:

 Feb 28, 2005 3:23:40 PM org.apache.coyote.http11.Http11Protocol pause
 INFO: Pausing Coyote HTTP/1.1 on http-8080
 jsvc.exec error: Service exit with a return value of 143

 When I do a shutdown using the shutdown.sh script, Tomcat shuts down
 gracefully.

 Is there a way to shutdown jsvc gracefully?



Yes. Don't use the version that ships with Tomcat.

 - --
 ~ --
 ~ Pascal Chong


 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.6 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFCItLzmVdpiRJSldgRAvmvAKCm9a0bCgMM/MyqAK3Z+didFbljDACeMLCI
 mTEsiSSYMKZjLouLXON4/Eo=
 =L0kT
 -END PGP SIGNATURE- 




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



RE: jsvc.exec error

2004-03-15 Thread Mariano
I have this shell script to use with Tomat 5.0.19 with Fedora Core 1 and
works fine:

#!/bin/sh
#
# Startup script for Tomcat 5.0
#
# chkconfig: 345 84 16
# description: Tomcat 5.0 jakarta JSP server
#
# Small shell script to show how to start/stop Tomcat using jsvc
# If you want to have Tomcat running on port 80 please modify the server.xml
# file:
#
#!-- Define a non-SSL HTTP/1.1 Connector on port 80 --
#Connector className=org.apache.catalina.connector.http.HttpConnector
#   port=80 minProcessors=5 maxProcessors=75
#   enableLookups=true redirectPort=8443
#   acceptCount=10 debug=0 connectionTimeout=6/
#
# You need a developement version of Tomcat (Apache Tomcat/4.1-dev)
#
# Adapt the following lines to your configuration
JAVA_HOME=/var/j2sdk
CATALINA_HOME=/var/tomcat
DAEMON_HOME=/var/tomcat/bin
TOMCAT_USER=tomcat
TMP_DIR=/var/tmp
CATALINA_OPTS=-Xms256m -Xmx256m -XX:PermSize=128m -XX:MaxPermSize=128m
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$DAEMON_HOME/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar

case $1 in
  start)
#
# Start Tomcat
#
$DAEMON_HOME/jsvc \
-user $TOMCAT_USER \
-home $JAVA_HOME \
-Dcatalina.home=$CATALINA_HOME \
-Djava.io.tmpdir=$TMP_DIR \
-outfile $CATALINA_HOME/logs/catalina.out \
-errfile '1' \
$CATALINA_OPTS \
-cp $CLASSPATH \
org.apache.catalina.startup.Bootstrap
#
# To get a verbose JVM
#-verbose \
# To get a debug of jsvc.
#-debug \
;;

  stop)
#
# Stop Tomcat
#
PID=`cat /var/run/jsvc.pid`
kill $PID
;;

  *)
echo Usage tomcat.sh start/stop
exit 1;;
esac

I hope this help you.

Mariano López

-Mensaje original-
De: Mark Shifman [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 15 de marzo de 2004 20:24
Para: [EMAIL PROTECTED]
Asunto: jsvc.exec error


I just installed and init.d script for jakarta-tomcat-5.0.19.  I am
running linux  2.4.21-9.ELsmp.

The edited Tomcat5.sh script seems to work fine but I get  this message
logged to catalina.out when I stop tomcat:

jsvc.exec error: Service exit with a return value of 143

I checked jsvc-unix.c but it doesn't really say anything except the
child may not have exited cleanly.

ps doesn't show any obvious orphans or zombies.

Whats going on?  How can I fix this.

thanks

mas



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


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