Hi there,
I know there are a few posts regarding not being able to get the windows
service running and Event ID ( 0 ) showing up in the event viewer; however,
my service starts and stops just fine, but I'm consistently getting Event ID
( 0 ) messages in my event viewer.
The specifics of the message is the following for service start up events:
Event Type: Information
Event Source: appservService
Event Category: None
Event ID: 0
Date: 10/24/2008
Time: 11:09:49 AM
User: N/A
Computer: NODE1
Description:
The description for Event ID ( 0 ) in Source ( appservService ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help and
Support for details. The following information is part of the event:
c:\glassfish\bin\asadmin.bat start-node-agent --user user --passwordfile
c:\glassfish\glassfish.txt NODE1-node-agent .
And for shut down events, replace the start-node-agent to stop-node-agent
(minus the user and password file parts).
Just to be clear, my service starts up and shuts down as advertised, but I
can't quite figure out why the event messages are as they are. Is this an
endemic problem?
Also, just for added info, here's the service create command I used:
C:\WINDOWS\system32\sc.exe create glassfish-node-agent binPath=
"C:\glassfish\lib\appservService.exe \"c:\glassfish\bin\asadmin.bat
start-node-agent --user user --passwordfile c:\glassfish\glassfish.txt
%computername%-node-agent\" \"c:\glassfish\bin\asadmin.bat stop-node-agent
%computername%-node-agent\"" start= auto DisplayName= "Glassfish Node Agent"
Thanks!
John