|
From: Shibu V. <sva...@gm...> - 2005-10-07 14:18:21
|
Tracy, It seems like your %JAVA_HOME% environment variable is not getting set properly before you execute the wrapper. That is propabably what is causing your windows service to not start. Good luck! On 10/6/05, Pleasant, Tracy <tra...@lm...> wrote: > > I get an error when trying to start the Windows Service > > Net start MyApp > > The MyApp Service is starting. > > The MyApp service cannot be started. > > A system error has occurred. > > System error 1067 has occurred. > > The process terminated unexpectedly. > > Command is: > C:\MyApp\bin\wrapper.exe -s C:\MyApp\bin\..\conf\wrapper.conf > > Log reads > > STATUS | wrapper | 2005/10/06 13:22:07 | --> Wrapper Started as Service > STATUS | wrapper | 2005/10/06 13:22:08 | Launching a JVM... > FATAL | wrapper | 2005/10/06 13:22:08 | Unable to execute Java command. > The system cannot find the file specified. (0x2) > > FATAL | wrapper | 2005/10/06 13:22:08 | "%JAVA_HOME%\bin\java" - > Djava.library.path=3D"..\lib" -classpath > "..\lib\wrapper.jar;%JAVA_HOME%\lib\tools.jar;C:\MyApp\lib\MyApp.jar" - > Dwrapper.key=3D"AYrW1B3dageXdGaH" -Dwrapper.port=3D32001 - > Dwrapper.use_system_time=3D"TRUE" -Dwrapper.version=3D"3.1.2" - > Dwrapper.native_library=3D"wrapper" -Dwrapper.service=3D"TRUE" - > Dwrapper.cpu.timeout=3D"10" -Dwrapper.jvmid=3D1 > org.tanukisoftware.wrapper.WrapperSimpleApp com.myproject.MyApp 4400 > > FATAL | wrapper | 2005/10/06 13:22:08 | Critical error: wait for JVM > process failed > > When running that command directory on the command line I get: > > Failed to connect to the Wrapper. > java.net.ConnectionException: Connection refused: connect > Exiting JVM... > > The application is a simple server application which opens a Socket on > port 4400 and listens for requests. > > The application works on it's own and when I run MyApp.bat > > > > |