尝试做:asadmin create-service
并得到:
Error while trying to install Glassfish as a Windows Service.
The return value was: 8.
STDERR:
STDOUT: WMI.WmiException: UnknownFailure
at WMI.WmiRoot.BaseHanderl.CheckError(ManagementBaseObject result)
at WMI.WmiRoot.ClassHandler.Invoke(Object proxy, MethodInfo method, Object[] ags)
at WMI.Win32ServicesProxy.Create(String, String, STring, ServiceType, ErrorControl, StartMode, Boolean, String[])
at winsw.WrapperService.Run(String[] args)
at winsw.WrapperService.Main(String[] arges
Command create-service failed
尝试将 glassfish 创建为服务以在 Windows 启动时启动 glassfish(在 auto-deploy 文件夹中使用 WAR 文件以尽快启动应用程序。)