This content has been marked as final. Show 4 replies
Have you started the cmd as administrator?
I think your problem is something very common, you need to leave a space between start= and auto (Example: start= auto)
Here is how I create my services, part of a batch file that creates the Domains.
sc.exe create SunJavaSystemAppDomain1 binPath= "C:\Sun\sdk\lib\appservService.exe \"C:\glassfishv3\glassfish\bin\asadmin.bat start-domain domain1\" \"C:\glassfishv3\glassfish\bin\asadmin.bat stop-domain domain1\ "" start= auto
sc.exe description SunJavaSystemAppDomain1 "Sun Application Server for Domain1"
sc.exe start SunJavaSystemAppDomain1
Thanks a lot both of you.
It may be either problem. I have actually reverted back to v2 at the time. But I will definitely take into account both your suggestion if I upgrade again.
Can use the asadmin command 'create-service'