users@glassfish.java.net

Re: Glassfish as a service on windows: asadmin create-service fails

From: <glassfish_at_javadesktop.org>
Date: Mon, 13 Sep 2010 11:31:29 PDT

Thanks very much for your quick reply.

No luck:

C:\Documents and Settings\tempadmin>asadmin create-service --name LEADGlassfish
No local string for: null_arg
Found setAccessible: public static void java.lang.reflect.AccessibleObject.setAc
cessible(java.lang.reflect.AccessibleObject[],boolean) throws java.lang.Security
Exception
Found the Windows Service and successfully uninstalled it.
WMI.WmiException: StatusInvalidName
   at WMI.WmiRoot.BaseHandler.CheckError(ManagementBaseObject result)
   at WMI.WmiRoot.ClassHandler.Invoke(Object proxy, MethodInfo method, Object[]
args)
   at WMI.Win32ServicesProxy.Create(String , String , String , ServiceType , Err
orControl , StartMode , Boolean , String[] )
   at winsw.WrapperService.Run(String[] args)
   at winsw.WrapperService.Main(String[] args)
Error while trying to install GlassFish as a Windows Service.
The return value was: 20.
STDERR:
STDOUT: WMI.WmiException: StatusInvalidName
   at WMI.WmiRoot.BaseHandler.CheckError(ManagementBaseObject result)
   at WMI.WmiRoot.ClassHandler.Invoke(Object proxy, MethodInfo method, Object[]
args)
   at WMI.Win32ServicesProxy.Create(String , String , String , ServiceType , Err
orControl , StartMode , Boolean , String[] )
   at winsw.WrapperService.Run(String[] args)
   at winsw.WrapperService.Main(String[] args)

Command create-service failed.

C:\Documents and Settings\tempadmin>

I've run net start to see what services exist, and have "sc delete"d all relevant services that I might have installed. Is there some further cleanup I should be doing?

Best,
Laird
[Message sent by forum member 'ljnelson']

http://forums.java.net/jive/thread.jspa?messageID=482547