Glassfish Windows Service Stopped after Logoff

C:\>asadmin create-jvm-options -Xrs [ [ Version: V3  Subject: CN=IL01LAB96.ds.mot.com, OU=GlassFish, O=Oracle Corporation, L=Santa Clara, ST=California, C=US Signature Algorithm: SHA1withRSA, OID = 1.2.840.113549.1.1.5
 * Run the following to allow the JVM options.

Key: Sun RSA public key, 1024 bits modulus: 119443579738679930841945300896617596740600746696296859473893248225273 84608226528176770221451648312827176642147545638589812924754601287432440034136570 43008076281407477353196525105780018489190372758805316824952507290639744268393208 94551522128940145505593530199347102800530515851586347396796669311172914271171039

public exponent: 65537 Validity: [From: Fri Aug 02 14:16:41 CDT 2013, To: Mon Jul 31 14:16:41 CDT 2023] Issuer: CN=IL01LAB96.ds.mot.com, OU=GlassFish, O=Oracle Corporation, L=Santa C lara, ST=California, C=US SerialNumber: [   51fc0599]

Certificate Extensions: 1 [1]: ObjectId: 2.5.29.14 Criticality=false SubjectKeyIdentifier [ KeyIdentifier [ 0000: 15 9A B5 F1 DD B1 37 EB  96 F4 87 30 4D 13 D1 98  ......7....0M... 0010: 90 90 CC 0C                                       .... ] ]

] Algorithm: [SHA1withRSA] Signature: 0000: 37 B2 61 B5 E4 43 86 17  81 AD 81 6F F5 E2 30 24  7.a..C.....o..0$ 0010: 39 79 5C BA 9E 48 04 CF  94 76 40 86 BE 99 57 B7  9y\..H...v@...W. 0020: 1A C3 C3 41 90 23 37 8F   C6 F3 ED E4 9D 38 F6 01  ...A.#7......8.. 0030: B7 5B A0 F3 B4 BF 12 61  31 72 02 20 94 FC CC D5  .[.....a1r. .... 0040: D5 7A 20 D2 CF 49 CB C0  76 E6 CA CB 50 32 78 C8  .z ..I..v...P2x. 0050: E7 A0 3E 35 01 57 59 1E  5B C5 D0 F8 E1 13 27 AD  ..>5.WY.[.....'. 0060: 5F A2 78 B3 64 8A D3 C9  09 22 4C 52 DA D4 35 B7  _.x.d...."LR..5. 0070: 86 9E 24 31 B7 92 6B FE   AC 80 EB C1 71 A3 B8 6F  ..$1..k.....q..o

] Do you trust the above certificate [y|N] --> y Created 1 option(s) Command create-jvm-options executed successfully.

(1) [glassfish_install]\bin\asadmin.bat and [glassfish_install]\glassfish\bin\asadmin.bat:
 * In three places, add -Xrs into the commands.

... %JAVA% -Xrs -jar "%~dp0..\glassfish\modules\admin-cli.jar" %\* ...

(2) domain.xml: ...  ...   -Xrs ...


 * References:
 * http://denistek.blogspot.com/2008/05/glassfish-and-windows-service.html
 * https://blogs.oracle.com/foo/entry/how_to_make_v3_platform