Has anyone set up Glassfish as a service on a Windows computer under
C:\Program Files\ or any other path with a space in it? If so please
help me with the command line to configure the service.
Thanks,
Ryan
attached mail follows:
Hi,
I've installed Glassfish V2 Beta 3 on a Windows computer under
C:\Program Files\Sun\glassfish-beta3\. I know that I can use Glassfish
under C:\Program Files\ because I've been using it like that for over a
year.
The Sun Application Platform SDK sets up a Windows service that works
properly when I install it under C:\Program Files\. I'm having trouble
manually setting up a Windows service for Glassfish. The service is
created, but when I start the service I have to wait a minute or two
before it fails to start.
Here are the instructions I was following:
https://glassfish.dev.java.net/javaee5/docs/AG/ablwx.html
And here are a couple command lines I've run:
1) Command I ran:
C:\windows\system32\sc.exe create GlassfishV2 binPath= "C:\Program
Files\Sun\glassfish-beta3\lib\appservService.exe \"\\\"C:\Program
Files\Sun\glassfish-beta3\bin\asadmin.bat\\\" start-domain --user admin
domain1\" \"\\\"C:\Program Files\Sun\glassfish-beta3\bin\asadmin.bat\\\"
stop-domain domain1\"" start= auto DisplayName= "GlassfishV2"
Path to executable according to Windows services (looks the same as it
would when Sun Application Platform SDK creates a service):
C:\Program Files\Sun\glassfish-beta3\lib\appservService.exe
"\"C:\Program Files\Sun\glassfish-beta3\bin\asadmin.bat\" start-domain
--user admin domain1\" "\"C:\Program
Files\Sun\glassfish-beta3\bin\asadmin.bat\" stop-domain domain1"
2) Comand I ran:
C:\windows\system32\sc.exe create GlassfishV2 binPath= "\"C:\Program
Files\Sun\glassfish-beta3\lib\appservService.exe\" \"\\\"C:\Program
Files\Sun\glassfish-beta3\bin\asadmin.bat\\\" start-domain --user admin
domain1\" \"\\\"C:\Program Files\Sun\glassfish-beta3\bin\asadmin.bat\\\"
stop-domain domain1\"" start= auto DisplayName= "GlassfishV2"
Path to executable according to Windows services:
"C:\Program Files\Sun\glassfish-beta3\lib\appservService.exe"
"\"C:\Program Files\Sun\glassfish-beta3\bin\asadmin.bat\" start-domain
--user admin domain1" "\"C:\Program
Files\Sun\glassfish-beta3\bin\asadmin.bat\" stop-domain domain1"
Once we figure this out, it would be good to update the instructions in
the glassfish docs. Not everyone likes to install in C:\Sun\.
Thanks,
Ryan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net