users@glassfish.java.net

Re: Problem with GlassFish windows service

From: Ryan de Laplante <ryan_at_ijws.com>
Date: Wed, 05 Sep 2007 23:35:38 -0400

I am using this tool, which uses source from Sun's installer to build
the command line String. It makes using paths such as C:\Program
Files\Sun\GlassfishV2RC4\ easier.

http://www.ryandelaplante.com/rdelaplante/entry/creating_a_windows_service_for
I think there is something different about the cluster profile and
passwords.



glassfish_at_javadesktop.org wrote:
> Assumption: "Logoff your system" means you logged out of Windows.
>
> How did you create the service? The logon tab for the service should have "Local System Account" selected.
>
> Why don't you try removing the service and start over with these instructions:
>
> to delete your service:
>
> sc delete the-service-name
>
> here is how I create a service:
>
> sc create service-name binPath= "C:\as\lib\appservService.exe \"C:\as\bin\asadmin.bat start-domain domain-name\" \"C:\as\bin\asadmin.bat stop-domain %2\"" start= auto DisplayName= service-name
>
> -- Note how I don't need a password file. I just do the steps below before creating the service and I never need to give the password again. (I use the developer version).
>
> 1) asadmin start-domain
> 2) asadmin login
> [Message sent by forum member 'bnevins' (bnevins)]
>
> http://forums.java.net/jive/thread.jspa?messageID=234142
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>