OK. There is a subtle difference between starting a dev domain and a domain
that is aware of support application server clusters.
It appears to me that the domain that you created for developer profile
(using
e.g. ant -f setup.xml or glassfish/bootstrap> maven configure-runtime).
In this
case the domain startup needs no admin password.
If on the other hand, you created a domain that supports clusters ((using
e.g. ant -f setup-cluster.xml or glassfish/bootstrap> maven
configure-cluster), you'd
need to provide the correct password. Thus if the domain you created did
not use
"wrongpassword" at the time of creation, its startup would fail with
start-domain
command that you tried below.
It is another discussion why this (and not that) type of domain
needs admin password at the startup.
Bill: at the moment, it is not associated with the .asadminpass file.
The start-domain
command does not yet look at ~/.asadminpass file. We are working on it.
Hope this helps.
Kedar
Bobby Bissett - Javasoft wrote:
> Hi,
>
> I'm trying to reproduce an issue where starting the server with an
> incorrect password gave a cryptic error message. But my server seems
> very agreeable and doesn't seem to care, so I can't reproduce it. My
> output is below -- can someone let me know how to make this fail?
>
> Thanks,
> Bobby
>
> ---------------------
> D:\work\ws\publish\glassfish\bin>cat pass
> AS_ADMIN_PASSWORD=wrongpassword
>
> D:\work\ws\publish\glassfish\bin>asadmin start-domain --user admin
> --passwordfile pass domain1
> Starting Domain domain1, please wait.
> Log redirected to
> D:\work\ws\publish\glassfish\domains\domain1\logs\server.log.
> Redirecting output to
> D:/work/ws/publish/glassfish/domains/domain1/logs/server.log
> Domain domain1 is ready to receive client requests. Additional
> services are being started in background.
> Domain [domain1] is running [Sun Java System Application Server
> Enterprise Edition 9.1 (build )] with its configuration and logs at:
> [D:\wor
> k\ws\publish\glassfish\domains].
> Admin Console is available at [http://localhost:4848].
> Use the same port [4848] for "asadmin" commands.
> User web applications are available at these URLs:
> [http://localhost:8080 https://localhost:8181 ].
> Following web-contexts are available:
> [/web1 /asadmin /adminconsole /wstx-services ].
> Standard JMX Clients (like JConsole) can connect to JMXServiceURL:
> [service:jmx:rmi:///jndi/rmi://hostname:8686/jmxrmi] for domain
> management purposes.
> Domain listens on at least following ports for connections:
> [8080 8181 4848 3700 3820 3920 8686 ].
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>