I've chosen JavaService to be tool for running my java application as NT service.
but, I didn't manage to start sample service I've got in installation package.
by starting TestSampleService.bat I get this in console:
.
The SampleService service is starting.
The SampleService service could not be started.
The service did not report an error.
More help is available by typing NET HELPMSG 3534.
.
Stopping sample service... Press Control-C to abort
Press any key to continue . . .
In the Windows Event Log I found no suspicious messages, even there are those:
"The SampleService service was successfully sent a start control."
"The SampleService service entered the running state"
"The SampleService service entered the stopped state"
but I didnt manage to start SampleService at all..
javaservice.log file.. I found there those lines for running SampleService.bat:
***** Start of new JavaService log session *****
Invoking Windows Service, register service control dispatcher
ServiceMain function invoked, with one argument, service name (SampleService)
Created ProcessGlobals singleton instance
Logging service event start[ed] event (starting now)...
logEventMessage (type #1073741828) : SampleService1073741828
Creating thread (StartServiceThread)
logEventMessage (type #1073741829) : SampleService1073741829
Service Main waiting for event flags to be set
Start Service Thread invoked
Start Service Thread setting current directory to 'D:\Sole-ws\JavaService\dl\JavaService-src-2.0.7.64\javaservice\bin'
Start Service Thread starting the java service...
StartJavaService(serviceParams)
logFunctionError: LoadLibrary
logFunctionMessage: LoadLibrary:The specified module could not be found.
logEventMessage (type #-1073737728) : Could not load the Java Virtual Machine.-1073737728
logEventMessage (type #-1073737728) : C:\Program-1073737728
StartJavaService failed
Start Service Thread failed
logEventMessage (type #-1073737726) : SampleService-1073737726
***** End of JavaService log session *****
and, in debug mode, starting JavaServiceDebug.exe i got this:
***** Start of new JavaService log session *****
Invoking Windows Service, register service control dispatcher
Service control dispatcher registration failed!
logFunctionError: StartServiceCtrlDispatcher
logFunctionMessage: StartServiceCtrlDispatcher:Overlapped I/O operation is in progress.
***** End of JavaService log session *****
I also fond those messages in
Event Viewer/
Application, while strarting debug mode:
chronically:
The SampleService service is being started.
The SampleService service has been started.
The LoadLibrary function failed for the following reason: The specified module could not be found.
Could not load the Java Virtual Machine.
C:\java\1.5.15\\jre\bin\server\jvm.dll
The SampleService service failed to start.
The StartServiceCtrlDispatcher function failed for the following reason: Overlapped I/O operation is in progress.
Reds are Errors, and black are Informations..
Anybody have an idea what I should do?
Do you have proposal of another free/gpl/cheap solution for this?
thanks