users@glassfish.java.net

ant -f setup-cluster.xml fails (CLI130 Could not create domain, domain1)

From: Dies Koper <dies_at_jp.fujitsu.com>
Date: Wed, 20 Jun 2007 18:26:36 +0900

Hello,

When I run ant -f setup-cluster.xml it fails to create the default
domain (domain1) on my machine. It did work on two other machines.

After "[exec] Security Store used should be: JKS", Ant outputs the
following:
     [exec] CLI130 Could not create domain, domain1
   [delete] Deleting: D:\sources\Sun\javaee5\gf2-beta3c\glassfish\passfile

I have tried with JDK 5.0 and 6.0, and with last week's promoted beta3
and the final beta2 GlassFish release.

Running it in the debugger I find that the first invocation to "keytool"
seems to fail (the code expects 0).
     [exec] Subprocess exit value = -1073741819

However, if I put a breakpoint right after this line and invoke the
keytool command with the same arguments from the command prompt I get
the following error message so it seems the keytool did do its work:

  keytool error: java.lang.Exception: Key pair not generated, alias
<s1as> already exists

If I change the exit code in the debugger before GlassFish throws an
exception, the code continues and calls keytool about three or four more
times. These times the result code is zero and in the end the domain is
created successfully.

The only difference between this machine and the others is that here I'm
running Windows XP (Japanese) and on the others I run Windows 2000
Server (En and Ja).

I googled about exit codes, but they all seem OS specific and could not
find out what -1073741819 meant.

Is Windows XP an unsupported OS? Is there a work-around for this problem
(other than changing the source or using the debugger like I did)?

Thanks!
Dies