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:44:14 +0100

On 5/10/2010 7:29 AM, Naman Mehta wrote:
> hi,
>
> Now I tried create-local-instance command,
>
> ./asadmin create-local-instance
> Enter the value for the instance_name operand> instance1
> Command create-local-instance executed successfully.
>
> naman_at_naman:/space/gfv3/v3setup/glassfishv3/bin$ ./asadmin
> start-local-instance
> Enter the value for the instance_name operand> instance1
> java.io.IOException: No domain.xml. It should be here:
> /space/gfv3/v3setup/glassfishv3/glassfish/nodeagents/naman/instance1/config/domain.xml
> Command start-local-instance failed.
>
> It's creating all empty directories in my setup folder. Any
> workaround/help for the same?
right it only creates the empty directories right now. I'll send some
manual copy instructions.

Jennifer
>
> Regards,
> Naman
>
>
> 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.
>>
>>
>> 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?*
>>
>> Regards,
>> Naman
>