admin@glassfish.java.net

Cannot keep service running

From: Joseph Chen <4chen500_at_gmail.com>
Date: Tue, 9 Feb 2010 05:27:36 -0500

I have two installations of GF3, both of them Windows Server 2003. I
have them both installed with the default domain, domain1. I have
created the service to run GF following these instructions:

http://blogs.sun.com/foo/entry/platform_services_available_in_v3

The service crashes on both systems very shortly after being started,
both from the services console and from the command line. Here is the
content of my domain1Service.err.log:

Command start-domain only accepts one operand
Usage: asadmin [asadmin-utility-options] start-domain
        [--debug[=<debug(default:false)>]] [--domaindir <domaindir>]
        [-?|--help[=<help(default:false)>]]
        [--upgrade[=<upgrade(default:false)>]]
        [-v|--verbose[=<verbose(default:false)>]] [domain_name]

There is also a domain1Service.out.log file being created with the contents:

Command start-domain failed.

And a file domain1Service.wrapper.log:

2010-02-08 23:26:04 - Starting J:/Aux Program
Files/glassfishv3/glassfish/bin/asadmin.bat start-domain --verbose
--domaindir J:/Aux Program Files/glassfishv3/glassfish/domains domain1
2010-02-08 23:26:04 - Started 3288

On both systems, the output files are the same, albeit with different
paths and processIDs in the wrapper.log file.

Please advise.