users@glassfish.java.net

Re: Error while trying to install GlassFish as a Windows ...

From: <forums_at_java.net>
Date: Thu, 1 Dec 2011 03:14:15 -0600 (CST)

Still didn't solve this..

Running with set AS_DEBUG=true and --versbose:

C:\glassfish3\bin>asadmin create-service --force
CLASSPATH= C:\glassfish3\bin\..\glassfish\modules\admin-cli.jar
Commands: [create-service, --force]
asadmin extension directory: C:\glassfish3\glassfish\lib\asadmin
Prepare
Process program options
Parsing program options
Parse command options
params: {force: [true]
}
operands: []
Prevalidate command options
Inject command options
Validate command options
service name = domain1
asadmin --host localhost --port 4848 --interactive=true --echo=false
--terse=fal
se create-service --dry-run=false --force=true
Execute command
TRACE:  Source executable: C:\glassfish3\glassfish\lib\winsw.exe
TRACE:  Copied from C:\glassfish3\glassfish\lib\winsw.exe to
C:\glassfish3\glass
fish\domains\domain1\bin\domain1Service.exe
TRACE:  Target XML file written:
C:\glassfish3\glassfish\domains\domain1\bin\dom
ain1Service.xml
TRACE:  **********   Object Dump  **********
Class           Modifiers            
Field                      Value
WindowsService  private static final  SOURCE_WIN32_EXE_FILENAME  winsw.exe
WindowsService  private static final 
TARGET_DIR                 bin
WindowsService  private static final  TEMPLATE_FILE_NAME        
Domain-service-
winsw.xml.template
WindowsService  private              
sourceWin32Exe             C:\glassfish3\g
lassfish\lib\winsw.exe
WindowsService  private              
targetDir                  C:\glassfish3\g
lassfish\domains\domain1\bin
WindowsService  private              
targetXml                  C:\glassfish3\g
lassfish\domains\domain1\bin\domain1Service.xml
WindowsService  private              
targetWin32Exe             C:\glassfish3\g
lassfish\domains\domain1\bin\domain1Service.exe
WindowsService  private              
xmlFileCopy                <null>
TRACE:  Uninstall STDERR: System.Management.ManagementException:
Initialization
failure
   at
System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStat
us errorCode)
   at System.Management.ManagementScope.InitializeGuts(Object o)
   at System.Management.ManagementScope.Initialize()
   at System.Management.ManagementScope.Connect()
   at WMI.WmiRoot..ctor(String machineName)
   at WMI.WmiRoot..ctor()
   at winsw.WrapperService.Run(String[] args)
   at winsw.WrapperService.Main(String[] args)
TRACE:  Uninstall STDOUT:
TRACE:  No preexisting Service with that id and/or name was found
Error while trying to install GlassFish as a Windows Service.
The return value was: -1.
STDERR:
STDOUT: System.Management.ManagementException: Initialization failure
   at
System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStat
us errorCode)
   at System.Management.ManagementScope.InitializeGuts(Object o)
   at System.Management.ManagementScope.Initialize()
   at System.Management.ManagementScope.Connect()
   at WMI.WmiRoot..ctor(String machineName)
   at WMI.WmiRoot..ctor()
   at winsw.WrapperService.Run(String[] args)
   at winsw.WrapperService.Main(String[] args)
Command create-service failed.


--
[Message sent by forum member 'gvpeter']
View Post: http://forums.java.net/node/866255