2
我已在Windows 8.1創建服務的GlassFish
開始glassfishs服務一個問題,我得到這個錯誤:
c:\glassfishv3\bin>asadmin create-service
Found the Windows Service and successfully uninstalled it.
WMI.WmiException: AccessDenied
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: 2.
STDERR:
STDOUT: WMI.WmiException: AccessDenied
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)
Usage: asadmin [asadmin-utility-options] create-service [--name <name>]
[--serviceproperties <serviceproperties>]
[--dry-run[=<dry-run(default:false)>]] [--domaindir <domaindir>]
[-?|--help[=<help(default:false)>]] [domain_name]
Command create-service failed.
用戶帳戶是管理員。
我不知道該怎麼辦,你能否給我一個推薦來解決這個錯誤。