|
From: Eoin C. <eo...@pe...> - 2005-01-13 13:39:17
|
maybe 'java' isn't on the path during startup, but is on the path when you log in and start it manually? try setting the absolute path to the java executable in your wrapper.conf to see if this is the problem. eoin. Sascha Monteiro wrote: > Linux wrapper fails to start JVM on reboot, but is successful when > started manual! > This is the log from reboot (in runlevel 3): > DEBUG | wrapper | 2005/01/13 22:29:03 | Spawning intermediate process... > DEBUG | wrapper | 2005/01/13 22:29:03 | Spawning daemon process... > STATUS | wrapper | 2005/01/13 22:29:03 | --> Wrapper Started as Daemon > DEBUG | wrapper | 2005/01/13 22:29:03 | Using system timer. > DEBUG | wrapperp | 2005/01/13 22:29:03 | server listening on port 32000. > DEBUG | wrapper | 2005/01/13 22:29:03 | Command[0] : java > DEBUG | wrapper | 2005/01/13 22:29:03 | Command[1] : > -Djava.library.path=./lib > DEBUG | wrapper | 2005/01/13 22:29:03 | Command[2] : -classpath > DEBUG | wrapper | 2005/01/13 22:29:03 | Command[3] : > ./lib/wrapper.jar:./lib/mail.jar:./lib/activation.jar:./cdrc.jar > DEBUG | wrapper | 2005/01/13 22:29:03 | Command[4] : > -Dwrapper.key=5bWn9AdgITKTHYsU > DEBUG | wrapper | 2005/01/13 22:29:03 | Command[5] : -Dwrapper.port=32000 > DEBUG | wrapper | 2005/01/13 22:29:03 | Command[6] : -Dwrapper.debug=TRUE > DEBUG | wrapper | 2005/01/13 22:29:03 | Command[7] : > -Dwrapper.use_system_time=TRUE > DEBUG | wrapper | 2005/01/13 22:29:03 | Command[8] : > -Dwrapper.version=3.1.2 > DEBUG | wrapper | 2005/01/13 22:29:03 | Command[9] : > -Dwrapper.native_library=wrapper > DEBUG | wrapper | 2005/01/13 22:29:03 | Command[10] : > -Dwrapper.service=TRUE > DEBUG | wrapper | 2005/01/13 22:29:03 | Command[11] : > -Dwrapper.cpu.timeout=10 > DEBUG | wrapper | 2005/01/13 22:29:03 | Command[12] : -Dwrapper.jvmid=1 > DEBUG | wrapper | 2005/01/13 22:29:03 | Command[13] : > org.tanukisoftware.wrapper.WrapperSimpleApp > DEBUG | wrapper | 2005/01/13 22:29:03 | Command[14] : > com.yourcdr.collector.CdrcD > STATUS | wrapper | 2005/01/13 22:29:03 | Launching a JVM... > ERROR | wrapper | 2005/01/13 22:29:03 | Unable to start JVM: No such > file or directory (2) > ERROR | wrapper | 2005/01/13 22:29:03 | Critical error: wait for JVM > process failed (No child processes) > DEBUG | wrapper | 2005/01/13 22:29:03 | JVM process exited with a code > of 1, setting the wrapper exit code to 1. > ERROR | wrapper | 2005/01/13 22:29:03 | Unable to start a JVM > STATUS | wrapper | 2005/01/13 22:29:03 | <-- Wrapper Stopped > > I have put the shell script in my apps directory, > then an symbolic link in /etc/init.d/ > and have put a link to that in /etc/rc3.d/S98yourcdr > > but if I do /etc/rc3.d/S98yourcdr start it works fine! > > I looks like the shell script terminates before everything is started, > but how can I change it to wait for my app to be started? > (I am using the WrapperSimpleApp as main class) > > thanks a lot! > > oh, these are the lines from a manual start: > DEBUG | wrapper | 2005/01/13 22:49:04 | Command[14] : > com.yourcdr.collector.CdrcD > STATUS | wrapper | 2005/01/13 22:49:04 | Launching a JVM... > INFO | jvm 1 | 2005/01/13 22:49:10 | WrapperManager class > initialized by thread: main Using classloader: > sun.misc.Launcher$AppClassLoader@7b7072 > INFO | jvm 1 | 2005/01/13 22:49:10 | Wrapper Manager: JVM #1 > INFO | jvm 1 | 2005/01/13 22:49:10 | Wrapper Manager: Registering > shutdown hook > INFO | jvm 1 | 2005/01/13 22:49:10 | Wrapper Manager: Using wrapper > INFO | jvm 1 | 2005/01/13 22:49:10 | Loaded native library: > libwrapper.so > > _________________________________________________________________ > Play online games with your friends with MSN Messenger > http://messenger.msn.nl/ > > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user |