users@glassfish.java.net

Re: What have I done 'wrong'

From: Tom Mueller <tom.mueller_at_oracle.com>
Date: Tue, 14 Jun 2011 14:41:19 -0500

Did you already have at least one local instance created for domain1?

I suspect that what is happening is that create-local-instance is trying
to create instance "sai1" in the "localhost-domain1" node, and the
agent/config/das.properties file there says that the DAS is on port 4848
for that node.

Try adding "--node localhost-domain3" to your create-local-instance
command.

Tom


On 6/14/2011 1:37 PM, Vince Kraemer wrote:
> I am trying to create a stand-alone instance of a custom domain
> (domain3) that has a portbase of 28000.
>
> here is the transcript of actions that I thought would work...
>
> bash-3.2$ /export/home/vkraemer/GlassFish_Server_3.1.1/bin/asadmin
> create-domain --portbase 28000 domain3
> Enter admin user name [Enter to accept default "admin" / no password]>
> Using port 28048 for Admin.
> Using port 28080 for HTTP Instance.
> Using port 28076 for JMS.
> Using port 28037 for IIOP.
> Using port 28081 for HTTP_SSL.
> Using port 28038 for IIOP_SSL.
> Using port 28039 for IIOP_MUTUALAUTH.
> Using port 28086 for JMX_ADMIN.
> Using port 28066 for OSGI_SHELL.
> Using port 28009 for JAVA_DEBUGGER.
> Distinguished Name of the self-signed X.509 Server Certificate is:
> [CN=mjhmbl,OU=GlassFish,O=Oracle Corporation,L=Santa
> Clara,ST=California,C=US]
> Distinguished Name of the self-signed X.509 Server Certificate is:
> [CN=mjhmbl-instance,OU=GlassFish,O=Oracle Corporation,L=Santa
> Clara,ST=California,C=US]
> No domain initializers found, bypassing customization step
> Domain domain3 created.
> Domain domain3 admin port is 28048.
> Domain domain3 allows admin login as user "admin" with no password.
> Command create-domain executed successfully.
> bash-3.2$ /export/home/vkraemer/GlassFish_Server_3.1.1/bin/asadmin
> start-domain domain3
> Waiting for domain3 to start ........
> Successfully started the domain : domain3
> domain Location:
> /export/home/vkraemer/GlassFish_Server_3.1.1/glassfish/domains/domain3
> Log File:
> /export/home/vkraemer/GlassFish_Server_3.1.1/glassfish/domains/domain3/logs/server.log
> Admin Port: 28048
> Command start-domain executed successfully.
> bash-3.2$ /export/home/vkraemer/GlassFish_Server_3.1.1/bin/asadmin
> --port 28048 version
> Version = GlassFish Server Open Source Edition 3.1.1-b06 (build 6)
> Command version executed successfully.
> bash-3.2$ /export/home/vkraemer/GlassFish_Server_3.1.1/bin/asadmin
> --port 28048 create-local-instance sai1
> Failed to rendezvous with DAS on localhost:4848. Please check if this
> server is running, that the host and port are correct, and that this
> server is configured to allow remote access.
> Command create-local-instance failed.
>
>
> What did I do wrong?
>
> Thanks,
> vbk
>