The GF2 Beta b48 can not create a domain during install.
Here's the meat of it.
$ java -version
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)
$ cp ~/Downloads/glassfish-installer-v2-b41.jar .
$ java -Xmx256m -jar ./glassfish-installer-v2-b41.jar
$ cd glassfish
$ chmod +x lib/ant/bin/ant
$ lib/ant/bin/ant -f setup.xml
...
create.domain:
[exec] Option adminuser deprecated, use --user instead.
[exec] com/sun/appserv/management/client/prefs/LoginInfoStore
BUILD FAILED
/Users/will/java/glassfishbeta/glassfish/setup.xml:155: The following error occurred while executing this line:
/Users/will/java/glassfishbeta/glassfish/setup.xml:519: exec returned: 1
Total time: 9 seconds
I tried executing bin/asadmin directly, and all I get is the message about the LoginInfoStore.
I have previously installed both GF1 and an earlier GF2 (b28) on this machine, but in different directories, under my user. I don't know if they are conflicting with this or not.
[Message sent by forum member 'whartung' (whartung)]
http://forums.java.net/jive/thread.jspa?messageID=220707