quality@glassfish.java.net

Re: line command in GF V3b66 ??

From: Sankar Neelakandan <Sankar.Neelakandan_at_Sun.COM>
Date: Sat, 10 Oct 2009 21:54:56 -0700

Just type asadmin login and it will prompt you to enter the user/name
password.
What is your login command response ?.

# asadmin login

Enter admin user name [default: admin]>
Login information relevant to admin user name [admin]
for host [localhost] and admin port [4848] stored at
[/root/.asadminpass] successfully.
Make sure that this file remains protected.
Information stored in this file will be used by
asadmin commands to manage the associated domain.
Command login executed successfully.


Felipe Gaścho wrote:
> I tried to use asadmin login.. but it seems not to help..
>
> how to do that ? (I checked the asadmin -help login)
>
> On Sat, Oct 10, 2009 at 4:33 PM, Sankar Neelakandan
> <Sankar.Neelakandan_at_sun.com> wrote:
>
>> Jacek Laskowski wrote:
>>
>> 2009/10/10 Felipe Gaścho <fgaucho_at_gmail.com>:
>>
>>
>> I am trying to repeat my v2.1 line commands with the V3, but it is
>> failing to authenticate:
>>
>> fgaucho_at_Fortunario:~$ asadmin --passwordfile=/home/fgaucho/.passwords
>> --user=admin delete-jdbc-connection-pool --cascade=true jdbc/arenaPool
>> Authentication failed with password from login store:
>> /home/fgaucho/.asadminpass
>> Enter admin password for user "admin">
>> Authentication failed for user: admin
>> (Usually, this means invalid user name and/or password)
>> Command delete-jdbc-connection-pool failed.
>>
>>
>> Try ./bin/asadmin.bat login
>>
>>
>>
>> In V2.1 you might have logged in to the domain using "admin/<somepassword>
>> to das port 4848" and it is stored in /home/fgaucho/.asadminpass
>> In V3 the default admin user is "admin" and password is nopassword(
>> nothing).
>> When asadmin tries to connect to port 4848 it sees the login details from
>> the .asadminpass file and tries to use it. Since the passwords are different
>> it fails
>> To solve either use asadmin login or delete this file
>>
>> /home/fgaucho/.asadminpass
>>
>> Jacek
>>
>>
>>
>
>
>
>