|
From: Geoffrey M. <ga...@im...> - 2004-11-08 16:14:26
|
In your wrapper.conf, set wrapper.java.command to the full path to your java executable (if you don't know what that is, try "which java" at the command prompt). At boot time, the environment available is quite minimal, and paths are generally not set. You may find other paths which you need to explicitly set as well. Sander Smith wrote: > I've just started using this code and to say that I'm pleasantly > impressed would be an understatement. Things have been working great > out of the box with very minimal efforts from me. > > I have a little server that I've put the Wrapper in front of, and > things work fine. I'm developing on Windows, and it works there as > well as working as an NT service. I copy everything over to Linux, and > it works there also. Great. Now the problems start. I'd like to start > the server every time Linux boots as a daemon (just like an NT > Service). Unfortunately, while I know lots about Java and Windows, I > know almost squat about Linux. I put the start command in > /etc/rc.d/rc.local and have found that the server does not start. > Looking at my log I see: > > DEBUG | wrapper | 2004/11/08 09:56:00 | Spawning intermediate > process... > DEBUG | wrapper | 2004/11/08 09:56:00 | Spawning daemon process... > STATUS | wrapper | 2004/11/08 09:56:00 | --> Wrapper Started as Daemon > DEBUG | wrapper | 2004/11/08 09:56:00 | Using system timer. > DEBUG | wrapperp | 2004/11/08 09:56:00 | server listening on port 32000. > DEBUG | wrapper | 2004/11/08 09:56:00 | Command[0] : java > DEBUG | wrapper | 2004/11/08 09:56:00 | Command[1] : > -Djava.library.path=lib > DEBUG | wrapper | 2004/11/08 09:56:00 | Command[2] : -classpath > DEBUG | wrapper | 2004/11/08 09:56:00 | Command[3] : > lib/wrapper.jar:lib/Sericon.jar:lib/Tomcat.jar > DEBUG | wrapper | 2004/11/08 09:56:00 | Command[4] : > -Dwrapper.key=PxmJatXIRjWOVZR_ > DEBUG | wrapper | 2004/11/08 09:56:00 | Command[5] : > -Dwrapper.port=32000 > DEBUG | wrapper | 2004/11/08 09:56:00 | Command[6] : > -Dwrapper.debug=TRUE > DEBUG | wrapper | 2004/11/08 09:56:00 | Command[7] : > -Dwrapper.use_system_time=TRUE > DEBUG | wrapper | 2004/11/08 09:56:00 | Command[8] : > -Dwrapper.version=3.1.2 > DEBUG | wrapper | 2004/11/08 09:56:00 | Command[9] : > -Dwrapper.native_library=wrapper > DEBUG | wrapper | 2004/11/08 09:56:00 | Command[10] : > -Dwrapper.service=TRUE > DEBUG | wrapper | 2004/11/08 09:56:00 | Command[11] : > -Dwrapper.cpu.timeout=10 > DEBUG | wrapper | 2004/11/08 09:56:00 | Command[12] : -Dwrapper.jvmid=1 > DEBUG | wrapper | 2004/11/08 09:56:00 | Command[13] : > org.tanukisoftware.wrapper.WrapperSimpleApp > DEBUG | wrapper | 2004/11/08 09:56:00 | Command[14] : > com.Sericon.LicensingServer.GUI.MainServerNoWindows > STATUS | wrapper | 2004/11/08 09:56:00 | Launching a JVM... > ERROR | wrapper | 2004/11/08 09:56:00 | Unable to start JVM: No such > file or directory (2) > ERROR | wrapper | 2004/11/08 09:56:00 | Critical error: wait for JVM > process failed (No child processes) > DEBUG | wrapper | 2004/11/08 09:56:01 | JVM process exited with a > code of 1, setting the wrapper exit code to 1. > ERROR | wrapper | 2004/11/08 09:56:01 | JVM exited while loading the > application. > DEBUG | wrapper | 2004/11/08 09:56:01 | JVM was only running for 0 > seconds leading to a failed restart count of 1. > DEBUG | wrapper | 2004/11/08 09:56:01 | Waiting 5 seconds before > launching another JVM. > DEBUG | wrapper | 2004/11/08 09:56:05 | Command[0] : java > DEBUG | wrapper | 2004/11/08 09:56:05 | Command[1] : > -Djava.library.path=lib > DEBUG | wrapper | 2004/11/08 09:56:05 | Command[2] : -classpath > DEBUG | wrapper | 2004/11/08 09:56:05 | Command[3] : > lib/wrapper.jar:lib/Sericon.jar:lib/Tomcat.jar > DEBUG | wrapper | 2004/11/08 09:56:05 | Command[4] : > -Dwrapper.key=17MbBIUs1QfWO6Wu > DEBUG | wrapper | 2004/11/08 09:56:05 | Command[5] : > -Dwrapper.port=32000 > DEBUG | wrapper | 2004/11/08 09:56:05 | Command[6] : > -Dwrapper.debug=TRUE > DEBUG | wrapper | 2004/11/08 09:56:05 | Command[7] : > -Dwrapper.use_system_time=TRUE > DEBUG | wrapper | 2004/11/08 09:56:05 | Command[8] : > -Dwrapper.version=3.1.2 > DEBUG | wrapper | 2004/11/08 09:56:05 | Command[9] : > -Dwrapper.native_library=wrapper > DEBUG | wrapper | 2004/11/08 09:56:05 | Command[10] : > -Dwrapper.service=TRUE > DEBUG | wrapper | 2004/11/08 09:56:05 | Command[11] : > -Dwrapper.cpu.timeout=10 > DEBUG | wrapper | 2004/11/08 09:56:05 | Command[12] : -Dwrapper.jvmid=2 > DEBUG | wrapper | 2004/11/08 09:56:05 | Command[13] : > org.tanukisoftware.wrapper.WrapperSimpleApp > DEBUG | wrapper | 2004/11/08 09:56:05 | Command[14] : > com.Sericon.LicensingServer.GUI.MainServerNoWindows > STATUS | wrapper | 2004/11/08 09:56:05 | Launching a JVM... > ERROR | wrapper | 2004/11/08 09:56:05 | Unable to start JVM: No such > file or directory (2) > ERROR | wrapper | 2004/11/08 09:56:05 | Critical error: wait for JVM > process failed (No child processes) > DEBUG | wrapper | 2004/11/08 09:56:05 | JVM process exited with a > code of 1, setting the wrapper exit code to 1. > ERROR | wrapper | 2004/11/08 09:56:05 | Unable to start a JVM > STATUS | wrapper | 2004/11/08 09:56:05 | <-- Wrapper Stopped > > > > > I'm guessing that the boot process is not ready yet to start my > server. Should I be putting this command in a different place? Any > other ideas on what I should be doing? > > Thanks a lot for this great tool. One other criticism - what's with > the really tiny font on the webpage? > > Sander Smith > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > --- > [This E-mail scanned for viruses by Declude Virus] > > > --- [This E-mail scanned for viruses by Declude Virus] |