You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bernard <bh...@actrix.gen.nz> on 2005/03/16 10:14:55 UTC

Tomcat 5 shutdown issue with jsvc commons daemon

Hi,

My Tomcat with Apache httpd mod_jk and JDK 1.4 on Redhat 9 Linux runs
my applications but it does not shutdown as expected.

My servlets' destroy() methods are not called even though I use jsvc,
the commons daemon, with the script provided in the distribution.

I get the following error:

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

I would be very grateful for any help. All my mailing list and
newsgroup searches have not yielded any results. I am desparate.


The full log content is below. There are multiple other errors

"SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml"

also in this log which I was not able to resolve. The file
/usr/local/tomcat5/conf/web.xml exists and is readable and I don't
know why tomcat cannot process it.

Many thanks in advance

Bernard

jsvc.exec debug: user changed to 'tomcat'
jsvc.exec debug: Using default JVM in
/usr/java/j2re1.4.2/lib/i386/client/libjvm.so
jsvc.exec debug: Attemtping to load library
/usr/java/j2re1.4.2/lib/i386/client/libjvm.so
jsvc.exec debug: JVM library
/usr/java/j2re1.4.2/lib/i386/client/libjvm.so loaded
jsvc.exec debug: JVM library entry point found (0x40313788)
jsvc.exec debug: +-- DUMPING JAVA VM CREATION ARGUMENTS
-----------------
jsvc.exec debug: | Version:                       10002
jsvc.exec debug: | Ignore Unrecognized Arguments: False
jsvc.exec debug: | Extra options:                 3
jsvc.exec debug: |   "-Dcatalina.home=/usr/local/tomcat5" (0x00000000)
jsvc.exec debug: |   "-Djava.io.tmpdir=/var/tmp" (0x00000000)
jsvc.exec debug: |
"-Djava.class.path=/usr/java/j2re1.4.2/lib/tools.jar:/usr/local/tomcat5/bin/commons-daemon.jar:/usr/local/tomcat5/bin/bootstrap.jar"
(0x00000000)
jsvc.exec debug:
+-------------------------------------------------------
jsvc.exec debug: Java VM created successfully
jsvc.exec debug: Class org/apache/commons/daemon/support/DaemonLoader
found
jsvc.exec debug: Native methods registered
jsvc.exec debug: Checking daemon
jsvc.exec debug: Daemon checked successfully
Created MBeanServer with ID: eb7859:102aac0ffef:-8000:testhost:1
Mar 16, 2005 10:46:12 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 16, 2005 10:46:15 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 32644 ms
jsvc.exec debug: Daemon loaded successfully
Mar 16, 2005 10:46:19 PM org.apache.catalina.core.StandardService
start
INFO: Starting service Catalina
Mar 16, 2005 10:46:19 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
Mar 16, 2005 10:46:20 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 16, 2005 10:46:22 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:46:46 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:46:49 PM org.apache.catalina.core.ApplicationContext
log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
News / Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param
name: paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
Mar 16, 2005 10:46:51 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:46:54 PM org.apache.catalina.core.ApplicationContext
log
INFO: ContextListener: contextInitialized()
Mar 16, 2005 10:46:54 PM org.apache.catalina.core.ApplicationContext
log
INFO: SessionListener: contextInitialized()
Mar 16, 2005 10:47:05 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:47:08 PM org.apache.catalina.core.ApplicationContext
log
INFO: ContextListener: contextInitialized()
Mar 16, 2005 10:47:08 PM org.apache.catalina.core.ApplicationContext
log
INFO: SessionListener: contextInitialized()
Mar 16, 2005 10:47:11 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:47:14 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:47:16 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 16, 2005 10:47:16 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:47:22 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:47:24 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:47:26 PM org.apache.catalina.core.ApplicationContext
log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
News / Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param
name: paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
Mar 16, 2005 10:47:27 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:47:29 PM org.apache.catalina.core.ApplicationContext
log
INFO: ContextListener: contextInitialized()
Mar 16, 2005 10:47:29 PM org.apache.catalina.core.ApplicationContext
log
INFO: SessionListener: contextInitialized()
Mar 16, 2005 10:47:37 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:47:39 PM org.apache.catalina.core.ApplicationContext
log
INFO: ContextListener: contextInitialized()
Mar 16, 2005 10:47:39 PM org.apache.catalina.core.ApplicationContext
log
INFO: SessionListener: contextInitialized()
Mar 16, 2005 10:47:42 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:47:44 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:47:46 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 16, 2005 10:47:47 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:47:54 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:47:55 PM org.apache.catalina.core.ApplicationContext
log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
News / Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param
name: paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
Mar 16, 2005 10:47:56 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:47:58 PM org.apache.catalina.core.ApplicationContext
log
INFO: ContextListener: contextInitialized()
Mar 16, 2005 10:47:58 PM org.apache.catalina.core.ApplicationContext
log
INFO: SessionListener: contextInitialized()
Mar 16, 2005 10:48:07 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:48:08 PM org.apache.catalina.core.ApplicationContext
log
INFO: ContextListener: contextInitialized()
Mar 16, 2005 10:48:08 PM org.apache.catalina.core.ApplicationContext
log
INFO: SessionListener: contextInitialized()
Mar 16, 2005 10:48:11 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:48:13 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml
only/usr/local/tomcat5/conf/context.xml
Mar 16, 2005 10:48:18 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 16, 2005 10:48:27 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Mar 16, 2005 10:48:27 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/1304  config=null
Mar 16, 2005 10:48:30 PM org.apache.catalina.storeconfig.StoreLoader
load
INFO: Find registry server-registry.xml at classpath resource
Mar 16, 2005 10:48:31 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 136402 ms
jsvc.exec debug: Daemon started successfully
jsvc.exec debug: Waiting for a signal to be delivered
jsvc.exec debug: Caught SIGTERM: Scheduling a shutdown
jsvc.exec debug: Shutdown or reload requested: exiting
Mar 16, 2005 10:50:21 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

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Tomcat 5 shutdown issue with jsvc commons daemon

Posted by Bernard <bh...@actrix.gen.nz>.
Thanks Wolfgang!

Still problems.

I downloaded from
http://cvs.apache.org/builds/jakarta-commons/nightly/commons-daemon/
the latest file:
commons-daemon-20050316.zip

autoconf worked fine.
./configure worked fine.
make failed with many errors.

How to fix this? Is it worth it? When is the next version coming out?

The errors are below.
I cross-posted to the commons-dev list because I used a nightly build.

Many thanks,

Bernard


# ./configure
*** Current host ***
checking build system type... i586-pc-linux-gnu
checking host system type... i586-pc-linux-gnu
checking cached host system type... ok
*** C-Language compilation tools ***
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
*** Java compilation tools ***
checking for javac... NONE
checking for javac... /usr/java/j2sdk1.4.2_07/bin/javac
checking wether the Java compiler (/usr/java/j2sdk1.4.2_07/bin/javac)
works... yes
checking for jar... NONE
checking for jar... /usr/java/j2sdk1.4.2_07/bin/jar
*** Host support ***
checking C flags dependant on host system type... ok
gcc flags added
*** Writing output files ***
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Makedefs
config.status: creating native/Makefile
*** All done ***
Now you can issue "make"
[root@testhost jsvc-src]# make
make -C native all
make[1]: Entering directory
`/tmp/jsvc/commons-daemon/bin/jsvc-src/native'
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c jsvc-unix.c -o jsvc-unix.o
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c arguments.c -o arguments.o
arguments.c: In function `arguments':
arguments.c:231: warning: unused variable `temp'
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c debug.c -o debug.o
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c dso-dlfcn.c -o dso-dlfcn.o
dso-dlfcn.c:51: warning: function declaration isn't a prototype
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c dso-dyld.c -o dso-dyld.o
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c help.c -o help.o
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c home.c -o home.o
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c java.c -o java.o
java.c:22:17: jni.h: No such file or directory
java.c:35: parse error before '*' token
java.c:35: warning: type defaults to `int' in declaration of `jvm'
java.c:35: warning: data definition has no type or storage class
java.c:36: parse error before '*' token
java.c:36: warning: type defaults to `int' in declaration of `env'
java.c:36: warning: data definition has no type or storage class
java.c:37: parse error before "cls"
java.c:37: warning: type defaults to `int' in declaration of `cls'
java.c:37: warning: initialization makes integer from pointer without
a cast
java.c:37: warning: data definition has no type or storage class
java.c:42: parse error before '*' token
java.c:42: warning: function declaration isn't a prototype
java.c: In function `shutdown':
java.c:43: `reload' undeclared (first use in this function)
java.c:43: (Each undeclared identifier is reported only once
java.c:43: for each function it appears in.)
java.c: At top level:
java.c:49: warning: function declaration isn't a prototype
java.c: In function `java_init':
java.c:91: warning: implicit declaration of function `jint'
java.c:91: `symb' undeclared (first use in this function)
java.c:91: `JavaVM' undeclared (first use in this function)
java.c:91: parse error before ',' token
java.c:92: `JNINativeMethod' undeclared (first use in this function)
java.c:93: `JavaVMOption' undeclared (first use in this function)
java.c:93: `opt' undeclared (first use in this function)
java.c:95: `JavaVMInitArgs' undeclared (first use in this function)
java.c:95: parse error before "arg"
java.c:97: parse error before "ret"
java.c:120: warning: implicit declaration of function `dso_error'
java.c:166: `arg' undeclared (first use in this function)
java.c:166: `JNI_VERSION_1_2' undeclared (first use in this function)
java.c:170: parse error before ')' token
java.c:198: `ret' undeclared (first use in this function)
java.c:206: invalid type argument of `->'
java.c:208: warning: comparison between pointer and integer
java.c:215: `nativemethod' undeclared (first use in this function)
java.c:219: invalid type argument of `->'
java.c: In function `JVM_destroy':
java.c:230: `jclass' undeclared (first use in this function)
java.c:230: parse error before "system"
java.c:231: `jmethodID' undeclared (first use in this function)
java.c:237: invalid type argument of `->'
java.c:246: `method' undeclared (first use in this function)
java.c:246: invalid type argument of `->'
java.c:253: invalid type argument of `->'
java.c:253: `jint' undeclared (first use in this function)
java.c:253: parse error before "exit"
java.c:257: invalid type argument of `->'
java.c: In function `java_load':
java.c:264: `jclass' undeclared (first use in this function)
java.c:264: parse error before "stringClass"
java.c:265: `jstring' undeclared (first use in this function)
java.c:267: `jobjectArray' undeclared (first use in this function)
java.c:268: `jmethodID' undeclared (first use in this function)
java.c:269: `jboolean' undeclared (first use in this function)
java.c:276: `className' undeclared (first use in this function)
java.c:276: invalid type argument of `->'
java.c:284: `stringClass' undeclared (first use in this function)
java.c:284: invalid type argument of `->'
java.c:291: `stringArray' undeclared (first use in this function)
java.c:291: invalid type argument of `->'
java.c:299: `currentArgument' undeclared (first use in this function)
java.c:299: invalid type argument of `->'
java.c:305: invalid type argument of `->'
java.c:310: `method' undeclared (first use in this function)
java.c:310: invalid type argument of `->'
java.c:316: `ret' undeclared (first use in this function)
java.c:316: invalid type argument of `->'
java.c: In function `java_start':
java.c:328: `jmethodID' undeclared (first use in this function)
java.c:328: parse error before "method"
java.c:329: `jboolean' undeclared (first use in this function)
java.c:335: `method' undeclared (first use in this function)
java.c:335: invalid type argument of `->'
java.c:341: `ret' undeclared (first use in this function)
java.c:341: invalid type argument of `->'
java.c: In function `java_stop':
java.c:353: `jmethodID' undeclared (first use in this function)
java.c:353: parse error before "method"
java.c:354: `jboolean' undeclared (first use in this function)
java.c:360: `method' undeclared (first use in this function)
java.c:360: invalid type argument of `->'
java.c:366: `ret' undeclared (first use in this function)
java.c:366: invalid type argument of `->'
java.c: In function `java_version':
java.c:378: `jmethodID' undeclared (first use in this function)
java.c:378: parse error before "method"
java.c:384: `method' undeclared (first use in this function)
java.c:384: invalid type argument of `->'
java.c:390: invalid type argument of `->'
java.c: In function `java_check':
java.c:396: `jstring' undeclared (first use in this function)
java.c:396: parse error before "className"
java.c:397: `jmethodID' undeclared (first use in this function)
java.c:398: `jboolean' undeclared (first use in this function)
java.c:405: `className' undeclared (first use in this function)
java.c:405: invalid type argument of `->'
java.c:414: `method' undeclared (first use in this function)
java.c:414: invalid type argument of `->'
java.c:420: `ret' undeclared (first use in this function)
java.c:420: invalid type argument of `->'
java.c: In function `java_destroy':
java.c:432: `jmethodID' undeclared (first use in this function)
java.c:432: parse error before "method"
java.c:433: `jboolean' undeclared (first use in this function)
java.c:439: `method' undeclared (first use in this function)
java.c:439: invalid type argument of `->'
java.c:445: `ret' undeclared (first use in this function)
java.c:445: invalid type argument of `->'
make[1]: *** [java.o] Error 1
make[1]: Leaving directory
`/tmp/jsvc/commons-daemon/bin/jsvc-src/native'
make: *** [native/all] Error 2







On Wed, 16 Mar 2005 12:46:19 +0100, you wrote:

>Hi Bernhard!
>
>Bernard wrote:
>
>>I get the following error:
>>
>>"jsvc.exec error: Service exit with a return value of 143"
>>
>
>There was a Thread here in December called "Session restart replication 
>when using jsvc". Bill Barker recommended to use CVS HEAD of the 
>commons-daemon.
>
>Kind regards
>
>Wolfgang
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: Tomcat 5 shutdown issue with jsvc commons daemon

Posted by Bernard <bh...@actrix.gen.nz>.
Thanks Wolfgang!

Still problems.

I downloaded from
http://cvs.apache.org/builds/jakarta-commons/nightly/commons-daemon/
the latest file:
commons-daemon-20050316.zip

autoconf worked fine.
./configure worked fine.
make failed with many errors.

How to fix this? Is it worth it? When is the next version coming out?

The errors are below.
I cross-posted to the commons-dev list because I used a nightly build.

Many thanks,

Bernard


# ./configure
*** Current host ***
checking build system type... i586-pc-linux-gnu
checking host system type... i586-pc-linux-gnu
checking cached host system type... ok
*** C-Language compilation tools ***
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
*** Java compilation tools ***
checking for javac... NONE
checking for javac... /usr/java/j2sdk1.4.2_07/bin/javac
checking wether the Java compiler (/usr/java/j2sdk1.4.2_07/bin/javac)
works... yes
checking for jar... NONE
checking for jar... /usr/java/j2sdk1.4.2_07/bin/jar
*** Host support ***
checking C flags dependant on host system type... ok
gcc flags added
*** Writing output files ***
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Makedefs
config.status: creating native/Makefile
*** All done ***
Now you can issue "make"
[root@testhost jsvc-src]# make
make -C native all
make[1]: Entering directory
`/tmp/jsvc/commons-daemon/bin/jsvc-src/native'
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c jsvc-unix.c -o jsvc-unix.o
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c arguments.c -o arguments.o
arguments.c: In function `arguments':
arguments.c:231: warning: unused variable `temp'
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c debug.c -o debug.o
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c dso-dlfcn.c -o dso-dlfcn.o
dso-dlfcn.c:51: warning: function declaration isn't a prototype
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c dso-dyld.c -o dso-dyld.o
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c help.c -o help.o
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c home.c -o home.o
gcc -g -O2 -DCPU=\"i386\" -DOS_LINUX -DDSO_DLFCN
-I/usr/java/j2re1.4.2/include -I/usr/java/j2re1.4.2/include/linux
-Wall -Wstrict-prototypes -c java.c -o java.o
java.c:22:17: jni.h: No such file or directory
java.c:35: parse error before '*' token
java.c:35: warning: type defaults to `int' in declaration of `jvm'
java.c:35: warning: data definition has no type or storage class
java.c:36: parse error before '*' token
java.c:36: warning: type defaults to `int' in declaration of `env'
java.c:36: warning: data definition has no type or storage class
java.c:37: parse error before "cls"
java.c:37: warning: type defaults to `int' in declaration of `cls'
java.c:37: warning: initialization makes integer from pointer without
a cast
java.c:37: warning: data definition has no type or storage class
java.c:42: parse error before '*' token
java.c:42: warning: function declaration isn't a prototype
java.c: In function `shutdown':
java.c:43: `reload' undeclared (first use in this function)
java.c:43: (Each undeclared identifier is reported only once
java.c:43: for each function it appears in.)
java.c: At top level:
java.c:49: warning: function declaration isn't a prototype
java.c: In function `java_init':
java.c:91: warning: implicit declaration of function `jint'
java.c:91: `symb' undeclared (first use in this function)
java.c:91: `JavaVM' undeclared (first use in this function)
java.c:91: parse error before ',' token
java.c:92: `JNINativeMethod' undeclared (first use in this function)
java.c:93: `JavaVMOption' undeclared (first use in this function)
java.c:93: `opt' undeclared (first use in this function)
java.c:95: `JavaVMInitArgs' undeclared (first use in this function)
java.c:95: parse error before "arg"
java.c:97: parse error before "ret"
java.c:120: warning: implicit declaration of function `dso_error'
java.c:166: `arg' undeclared (first use in this function)
java.c:166: `JNI_VERSION_1_2' undeclared (first use in this function)
java.c:170: parse error before ')' token
java.c:198: `ret' undeclared (first use in this function)
java.c:206: invalid type argument of `->'
java.c:208: warning: comparison between pointer and integer
java.c:215: `nativemethod' undeclared (first use in this function)
java.c:219: invalid type argument of `->'
java.c: In function `JVM_destroy':
java.c:230: `jclass' undeclared (first use in this function)
java.c:230: parse error before "system"
java.c:231: `jmethodID' undeclared (first use in this function)
java.c:237: invalid type argument of `->'
java.c:246: `method' undeclared (first use in this function)
java.c:246: invalid type argument of `->'
java.c:253: invalid type argument of `->'
java.c:253: `jint' undeclared (first use in this function)
java.c:253: parse error before "exit"
java.c:257: invalid type argument of `->'
java.c: In function `java_load':
java.c:264: `jclass' undeclared (first use in this function)
java.c:264: parse error before "stringClass"
java.c:265: `jstring' undeclared (first use in this function)
java.c:267: `jobjectArray' undeclared (first use in this function)
java.c:268: `jmethodID' undeclared (first use in this function)
java.c:269: `jboolean' undeclared (first use in this function)
java.c:276: `className' undeclared (first use in this function)
java.c:276: invalid type argument of `->'
java.c:284: `stringClass' undeclared (first use in this function)
java.c:284: invalid type argument of `->'
java.c:291: `stringArray' undeclared (first use in this function)
java.c:291: invalid type argument of `->'
java.c:299: `currentArgument' undeclared (first use in this function)
java.c:299: invalid type argument of `->'
java.c:305: invalid type argument of `->'
java.c:310: `method' undeclared (first use in this function)
java.c:310: invalid type argument of `->'
java.c:316: `ret' undeclared (first use in this function)
java.c:316: invalid type argument of `->'
java.c: In function `java_start':
java.c:328: `jmethodID' undeclared (first use in this function)
java.c:328: parse error before "method"
java.c:329: `jboolean' undeclared (first use in this function)
java.c:335: `method' undeclared (first use in this function)
java.c:335: invalid type argument of `->'
java.c:341: `ret' undeclared (first use in this function)
java.c:341: invalid type argument of `->'
java.c: In function `java_stop':
java.c:353: `jmethodID' undeclared (first use in this function)
java.c:353: parse error before "method"
java.c:354: `jboolean' undeclared (first use in this function)
java.c:360: `method' undeclared (first use in this function)
java.c:360: invalid type argument of `->'
java.c:366: `ret' undeclared (first use in this function)
java.c:366: invalid type argument of `->'
java.c: In function `java_version':
java.c:378: `jmethodID' undeclared (first use in this function)
java.c:378: parse error before "method"
java.c:384: `method' undeclared (first use in this function)
java.c:384: invalid type argument of `->'
java.c:390: invalid type argument of `->'
java.c: In function `java_check':
java.c:396: `jstring' undeclared (first use in this function)
java.c:396: parse error before "className"
java.c:397: `jmethodID' undeclared (first use in this function)
java.c:398: `jboolean' undeclared (first use in this function)
java.c:405: `className' undeclared (first use in this function)
java.c:405: invalid type argument of `->'
java.c:414: `method' undeclared (first use in this function)
java.c:414: invalid type argument of `->'
java.c:420: `ret' undeclared (first use in this function)
java.c:420: invalid type argument of `->'
java.c: In function `java_destroy':
java.c:432: `jmethodID' undeclared (first use in this function)
java.c:432: parse error before "method"
java.c:433: `jboolean' undeclared (first use in this function)
java.c:439: `method' undeclared (first use in this function)
java.c:439: invalid type argument of `->'
java.c:445: `ret' undeclared (first use in this function)
java.c:445: invalid type argument of `->'
make[1]: *** [java.o] Error 1
make[1]: Leaving directory
`/tmp/jsvc/commons-daemon/bin/jsvc-src/native'
make: *** [native/all] Error 2







On Wed, 16 Mar 2005 12:46:19 +0100, you wrote:

>Hi Bernhard!
>
>Bernard wrote:
>
>>I get the following error:
>>
>>"jsvc.exec error: Service exit with a return value of 143"
>>
>
>There was a Thread here in December called "Session restart replication 
>when using jsvc". Bill Barker recommended to use CVS HEAD of the 
>commons-daemon.
>
>Kind regards
>
>Wolfgang
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Tomcat 5 shutdown issue with jsvc commons daemon

Posted by Wolfgang Hackl <wo...@gmx.at>.
Hi Bernhard!

Bernard wrote:

>I get the following error:
>
>"jsvc.exec error: Service exit with a return value of 143"
>

There was a Thread here in December called "Session restart replication 
when using jsvc". Bill Barker recommended to use CVS HEAD of the 
commons-daemon.

Kind regards

Wolfgang

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org