I got a similar error trying to install glassfish v2 with netbeans 6 beta 1 and beta 2, or AS9.1 with j2ee5 update 3.
In my case, the problem was caused by having Java 1.6.0 beta b59g installed.
After installing Java 1.6.0 update 3, installation proceeded without problems.
The following shows the log of the failed installation (probably caused by absence of Java DB):
[2007-10-26 16:50:16.656]: ... path : C:\Program Files\Java\jdk1.6.0
[2007-10-26 16:50:16.656]: ... version : 1.6.0
[2007-10-26 16:50:16.656]: ... vendor : Sun Microsystems Inc.
[2007-10-26 16:50:16.656]: ... final : false
[2007-10-26 16:50:31.796]: executing command: C:\Program Files\glassfish-v2-b58g\bin\asadmin.bat create-domain --interactive=false --adminport 4848 --user admin --passwordfile C:\Program Files\glassfish-v2-b58g\nbi-59124.tmp --instanceport 8080 --domainproperties http.ssl.port=8181 --savemasterpassword=true domain1, in directory: C:\Program Files\glassfish-v2-b58g
[2007-10-26 16:50:32.375]: [stdout]: Using port 4848 for Admin.
[2007-10-26 16:50:32.375]: [stdout]: Using port 8080 for HTTP Instance.
[2007-10-26 16:50:32.437]: [stdout]: Using default port 7676 for JMS.
[2007-10-26 16:50:32.437]: [stdout]: Using default port 3700 for IIOP.
[2007-10-26 16:50:32.437]: [stdout]: Using port 8181 for HTTP_SSL.
[2007-10-26 16:50:32.437]: [stdout]: Using default port 3820 for IIOP_SSL.
[2007-10-26 16:50:32.437]: [stdout]: Using default port 3920 for IIOP_MUTUALAUTH.
[2007-10-26 16:50:32.437]: [stdout]: Using default port 8686 for JMX_ADMIN.
[2007-10-26 16:50:32.437]: [stdout]: Domain being created with profile:developer, as specified by variable AS_ADMIN_PROFILE in configuration file.
[2007-10-26 16:50:33.250]: [stdout]: Security Store uses: JKS
[2007-10-26 16:50:46.312]: [stdout]: org.apache.derby.jdbc.EmbeddedDriver is not registered with the JDBC driver manager
[2007-10-26 16:50:46.312]: [stderr]: CLI130 Could not create domain, domain1
[2007-10-26 16:50:46.312]: [return]: 0
[2007-10-26 16:50:46.312]: ... command execution finished
[2007-10-26 16:50:46.312]: org.netbeans.installer.utils.exceptions.InstallationException: Failed to create the default domain
[2007-10-26 16:50:46.312]: at org.netbeans.installer.products.glassfish.ConfigurationLogic.install(ConfigurationLogic.java:406)
[2007-10-26 16:50:46.312]: at org.netbeans.installer.product.components.Product.install(Product.java:329)
[2007-10-26 16:50:46.312]: at org.netbeans.installer.wizard.components.actions.InstallAction.execute(InstallAction.java:144)
[2007-10-26 16:50:46.312]: at org.netbeans.installer.wizard.components.WizardAction$1.run(WizardAction.java:120)
[2007-10-26 16:50:46.312]: Caused by: org.netbeans.installer.utils.applications.GlassFishUtils$DomainCreationException: "Could not create domain - error CLI130 occurred.
[2007-10-26 16:50:46.312]: at org.netbeans.installer.utils.applications.GlassFishUtils.createDomain(GlassFishUtils.java:117)
[2007-10-26 16:50:46.312]: at org.netbeans.installer.utils.applications.GlassFishUtils.createDomain(GlassFishUtils.java:87)
[2007-10-26 16:50:46.312]: at org.netbeans.installer.products.glassfish.ConfigurationLogic.install(ConfigurationLogic.java:397)
[2007-10-26 16:50:46.312]: ... 3 more
[2007-10-26 16:53:38.406]: entering -- org.netbeans.installer.product.Registry.finalizeRegistry():289
[2007-10-26 16:53:38.406]: finalizing product registry
[Message sent by forum member 'ammatsun' (ammatsun)]
http://forums.java.net/jive/thread.jspa?messageID=242488