users@glassfish.java.net

Re: asadmin create-domain error under MacOs X

From: Filippo Diotalevi <filippo.diotalevi_at_gmail.com>
Date: Tue, 20 Feb 2007 09:58:24 +0100

On 2/19/07, glassfish_at_javadesktop.org <glassfish_at_javadesktop.org> wrote:
> How about:
> - create a file e.g. /tmp/passfile with following contents:
> AS_ADMIN_ADMINPASSWORD=adminadmin
> AS_ADMIN_MASTERPASSWORD=changeit
>
> - asadmin create-domain --adminuser user --passwordfile /tmp/passfile ...
>
> This will not make asadmin prompt for the password.
>
> Apparently, there is something wrong with the native library that accepts the password
> entered on command line *without* echoing.
>
> Let's know if this works.

Yes, it works, thank you.
It's also necessary to start glassfish using the --passwordfile option, i.e.

asadmin start-domain --passwordfile /tmp/passfile <mydomainname>

--
filippo