dev@glassfish.java.net

Re: Any help on create-instance command...

From: Jennifer Chou <jennifer.chou_at_oracle.com>
Date: Mon, 10 May 2010 15:41:55 +0100

On 5/10/2010 6:59 AM, Naman Mehta wrote:
> hi,
>
> Trying create-instance command on Gf3.0 latest code snapshot.
>
> *Getting below error:*
>
> ./asadmin create-instance
> Enter the value for the nodeagent option> nodeagent1
> Enter the value for the name operand> instance1
> org.glassfish.api.admin.CommandException: remote failure: Exception
> while adding the new configuration
> org.jvnet.hk2.config.TransactionFailure: Unmatched braces in the
> pattern. : org.jvnet.hk2.config.TransactionFailure: Unmatched braces
> in the pattern.
The error msg has been fixed I think in the latest 3.1 workspace.
The default-config is not in domain.xml yet. Attached is the xml
snippet you can copy it to domain.xml under configs config.
>
>
> Command create-instance failed.
> naman_at_naman:/space/gfv3/v3setup/glassfishv3/bin$ ./asadmin
> create-instance --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)
>
> *Any idea on the same?*
I think also this has been fixed in the latest 3.1.

Jennifer
>
> Regards,
> Naman