admin@glassfish.java.net

Re: Cannot keep service running

From: Byron Nevins <Byron.Nevins_at_Sun.COM>
Date: Tue, 09 Feb 2010 11:58:55 -0800

Darn -- I was hoping I could fix the issue in V3 code with work-around
#2. This probably means that the Windows program itself needs to change...

Please keep me posted on your adventures!

Joseph Chen wrote:
> Thanks for your reply!
>
> Well, just fyi, I just tried option 2 with no success. I guess I will
> need to uninstall and re-install. Oh well, that takes less time than
> the time I spent tinker with the service like this! :)
>
> On a side note, when I install gfv3 with the JavaEE6 bundle,
> everything goes great, but if I use the GFv3 bundle only, my
> updatetool doesn't work. more accurately, the tool works if I install
> with ports other than 8080 and 4848, but then other things don't work
> right. But that's another battle for another time. I'll just stick
> with the JavaEE6 bundle! :)
>
> Thanks a mil.
>
>
> On Tue, Feb 9, 2010 at 1:34 PM, Byron Nevins <Byron.Nevins_at_sun.com> wrote:
>
>> I believe you have found a fat bug. One that has reared its head in many
>> situations over the years. You have a space in your install folder. The
>> windows program we are using to help with the services -- winsw.exe -- does
>> not appear to respect the spaces in the name.
>>
>> If you simply attempt to run EXACTLY what the error files say they are
>> trying to run -- you will see the problem clearly:
>>
>> start-domain --verbose --domaindir J:/Aux Program
>> Files/glassfishv3/glassfish/
>> domains domain1
>> i.e.
>>
>> start-domain --verbose --domaindir J:/Aux Program
>> Files/glassfishv3/glassfish/domains domain1
>> -- start-domain sees 3 operands. Only 0 or 1 operand is allowed (the domain
>> name)
>>
>> =============================================================================
>>
>> I have 2 work-arounds --
>>
>> 1) Reinstall V3 into a path with no spaces (this will fix the problem for
>> sure)
>>
>> 2)
>>
>> create the service
>> uninstall it (....\domain1\bin\domain1Service.exe uninstall)
>> edit domain1Service.xml and put literal double-quotes around the path.
>> domain1Service.exe install
>> doman1Service.exe start
>>
>> (I have not tried (2) yet)
>>
>> Joseph Chen wrote:
>>
>> 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.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>>
>>
>>
>> --
>> Byron Nevins - Sun Microsystems, Inc.
>> Home: 650-359-1290
>> Cell: 650-784-4123
>> Sierra: 209-295-2188
>>
>> --------------------------------------------------------------------- To
>> unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net For additional
>> commands, e-mail: admin-help_at_glassfish.dev.java.net
>>

-- 
Byron Nevins  -  Sun Microsystems, Inc.
Home: 650-359-1290
Cell: 650-784-4123
Sierra: 209-295-2188