dev@glassfish.java.net

Re: Starting Glassfish v3 using the full java command

From: Rahul Biswas <Rahul.Biswas_at_Sun.COM>
Date: Thu, 01 Oct 2009 17:08:32 -0700

Hi Kedar,

passing in "AS_ADMIN_MASTERPASSWORD=<password>" on the command prompt
worked. Just fyi, the other way of -passwordfile <path-to-file> seems to
be ignored (same problem). I am on b66 picked from hudson.

Thanks!
Rahul

Kedar Mhaswade wrote:
> I think this is changed in current nightly builds. I am not
> sure which build you are using. Still ...
>
> By "full java command", you mean the java command that asadmin
> start-domain (launcher) ultimately invokes, right?
>
> If that's what you mean, you have one of the two choices:
> 1- put your master password in a file as
> AS_ADMIN_MASTERPASSWORD=<password> and pass that file as:
> -passwordfile file-path
>
> (note: single '-' before passwordfile).
>
> 2- do java .... -stdin and then it will prompt you for master
> password.
>
> Let me know if any of this works for you.
>
> With a 2-day old v3 workspace, I essentially mimicked what you
> did, i.e. I ran the attached file and it started my domain.
>
> Regards,
> Kedar
>
> PS - I am hoping that what I think above is related to your problem ...
>
> Rahul Biswas wrote:
>> I need to track down a regression and to do that I have to start
>> GlassFish using the full java command. This used to work fine until v2
>> versions, but with v3 I am running into a
>> "java.security.UnrecoverableKeyException: Password verification
>> failed" error. The error log is attached for a more detailed stack trace.
>>
>> My password for admin is the same as for v2 and so is the method for
>> extracting the java command to startup the server ("/usr/ucb/ps"). I
>> have tried a bunch of different things including "asadmin login" to
>> set the password, removing the "$HOME/.asadmin*" artifacts, but the
>> same error persists. The server starts up fine using the asadmin CLI.
>> Any ideas what could be the issue?
>>
>> Thanks
>> Rahul
>>
>>
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net