admin@glassfish.java.net

Re: sequence of commands with no SSH

From: Joe Di Pol <joe.dipol_at_oracle.com>
Date: Thu, 29 Jul 2010 16:17:02 -0700

Lidai,

Support for what you tried is not in B13. It went in on Tuesday.

If you want to create an instance local to the DAS then you
can use scenario 2. Just do:

asadmin create-instance --node localhost i1

If you want an instance remote from the DAS without SSH
then you can use scenario 3. Log into the remote system and do:

asadmin --host dashost --port 4848 create-local-instance i2

This will autocreate a node for you in the DAS config so you
don't need to pre-create one.

Does that help?

Joe

Lidia Marchioni wrote:
> Hello Joe
>
> Thank you for the pointer! My sequence is similar to 5, though I'm just
> trying to create a standalone instance (no cluster). I'm trying the
> following on promoted build b13:
>
> # asadmin create-node-config lancer
> Command create-node-config executed successfully.
>
> # asadmin --host localhost --port 4848 create-local-instance --node
> lancer in1
> Attempting to rendezvous with DAS on host localhost port 4848
> Uptime: 1 hours, 9 minutes, 40 seconds
>
> The instance has rendezvoused with the DAS and will be using host
> localhost port 4848 for future communication.
> remote failure: Exception while adding the new configuration
> org.jvnet.hk2.config.TransactionFailure: There is no hostname specified
> for the instance in1. Each instance must have a node reference which
> contains a hostnmae attribute. :
> org.jvnet.hk2.config.TransactionFailure: There is no hostname specified
> for the instance in1. Each instance must have a node reference which
> contains a hostnmae attribute.
>
> Command create-local-instance failed.
>
> The domain.xml contains:
>
> <nodes>
> <node node-host="localhost" name="localhost"
> install-dir="${com.sun.aas.installRoot}" />
> <node name="lancer" />
> </nodes>
>
> I see that it is marked that scenario 5 will be available in MS4. Does
> it include the above sequence (e.g. without a cluster)?
>
> Thanks
> Lidia
>
>
> Joe Di Pol wrote:
>> Lidia Marchioni wrote:
>>> Hello
>>>
>>> Where can I look up the sequence of commands needed to create nodes
>>> and create/start instances on a local system as well as on a remote
>>> machine *without* the use of SSH?
>>
>> http://wikis.sun.com/display/GlassFish/3.1SSHScenarios
>>
>> See scenarios 2 and 3 (and 5 if you are running a build
>> off the trunk).
>>
>> Joe
>>
>>>
>>> Thanks
>>> Lidia
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>