users@glassfish.java.net

Glassfish V3 as a Service on Windows Server

From: Thomas Gelzhaeuser <thomas_at_gelzhaeuser.de>
Date: Mon, 18 Jan 2010 11:30:34 +0100

Hi all.

Just a quick question: When I tried to find a solution for installing
Glassfish V3 as a Service on a Windows Server 2003 R3, Standard x64
edition, Service Pack 3, I stumbled across the create-service command.

Unfortunately the output is as follows:

C:\glassfishv3\bin>asadmin create-service domain1
Error while trying to install GlassFish as a Windows Service.
The return value was: 128.
STDERR:
STDOUT:
Usage: asadmin [asadmin-utility-options] create-service [--name <name>]
       [--serviceproperties <serviceproperties>]
       [--dry-run[=<dry-run(default:false)>]] [--domaindir <domaindir>]
       [-?|--help[=<help(default:false)>]] [domain_name]
Command create-service failed.

Any one with an idea on how to move on from here?

Thanks.

Thomas.