admin@glassfish.java.net

create-cluster

From: Bhakti Mehta <bhakti.mehta_at_sun.com>
Date: Fri, 07 May 2010 12:57:48 -0700

Hi

I see that in create-cluster with --systemproperties we get this under
cluster element and not under config as was in v2.1.1. (also braces
should not be there)

<cluster name="mycl" config-ref="mycl-config">
      <system-property name="[HTTP_LISTENER_PORT" value="9033]" />
    </cluster>

Is someone working on this or should I look at this issue? Also Amy
reverted 36642
https://glassfish-svn.dev.java.net/source/browse/glassfish-svn/trunk/v3/packager/nucleus-base/lib/templates/domain.xml?view=diff&rev=36732&p1=trunk/v3/packager/nucleus-base/lib/templates/domain.xml&p2=trunk/v3/packager/nucleus-base/lib/templates/domain.xml&r1=36731&r2=36732
since it caused regression in devtest. When are we going to put that
change in again ?

On a side note I found a few issues like this (I think Jerome will be
looking at the first one) . Not sure who owns the second one.
1. If a create and delete a cluster and call create again this is the
error I get

/Users/bhakti/gftest/foradmin/glassfishv3/glassfish/bin % ./asadmin
delete-cluster newcl

Command delete-cluster executed successfully.
/Users/bhakti/gftest/foradmin/glassfishv3/glassfish/bin % ./asadmin
create-cluster newcl
org.glassfish.api.admin.CommandException: remote failure: Exception
while adding the new configuration
org.jvnet.hk2.config.TransactionFailure: A Cluster instance with a
"newcl" name already exist in the configuration :
org.jvnet.hk2.config.TransactionFailure: A Cluster instance with a
"newcl" name already exist in the configuration


Command create-cluster failed.

2. asadmin create-cluster/create-instance --help fails with following
exception however passes with asadmin help create-cluster(in v2.1.1
both ways would work)
/Users/bhakti/gftest/foradmin/glassfishv3/glassfish/bin % ./asadmin
create-cluster --help
Exception in thread "main" java.lang.NullPointerException
   at
com.sun.enterprise.admin.cli.CLICommand.prevalidate(CLICommand.java:639)
   at com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:238)
   at
com.sun.enterprise.admin.cli.AsadminMain.executeCommand(AsadminMain.java:229)

   at com.sun.enterprise.admin.cli.AsadminMain.main(AsadminMain.java:167)

 How are others testing the commands, any devtest framework we can use
(I see Jerome adds a few unit tests during build time but am sure that
is not the place for all the tests since the build will be come slow)?
Please can you provide some info regarding these,
Regards,
Bhakti