admin@glassfish.java.net

Re: create-cluster

From: Jennifer Chou <jennifer.chou_at_oracle.com>
Date: Fri, 07 May 2010 21:03:58 +0100

On 5/7/2010 8:57 PM, Bhakti Mehta wrote:
> 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 ?
Justin said it will be ok to put it back once he recommit his changes
that jane rolled back because tests in embedded broke.
I can send the default-config xml snippet in the meanwhile and you can
add it manually. Let me know.

>
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>