users@glassfish.java.net

Re: Password requested when deploy is launched !!!!

From: <glassfish_at_javadesktop.org>
Date: Thu, 21 Jan 2010 11:03:42 PST

> Hi,
>
> Glassfish v3 requires a password when using the
> following command :
>
> D:\Soft\opensource\glassfishv3-xx\bin>asadmin --user
> anonymous deploy --type osgi
> d:/temp/spring-osgi-extender-1.2.0.jar
> Warning: asadmin extension directory is missing:
> D:\Soft\opensource\glassfishv3-xx\glassfish\lib\asadmi
> n
This is a new warning. Did you do upgrade or something like that?
Is this a fresh installation?

> Authentication failed with password from login store:
> C:\Documents and
> Settings\Charlesm.STREAMLINED\.asadminpass
> Enter admin password for user "anonymous">
> Authentication failed for user: anonymous
> (Usually, this means invalid user name and/or
> password)
> Command deploy failed.
>
> but not password has been defined during installation
> of Glassfish.
What was the user name that you defined during the installation?
The basic rule is if you chose a password other than the default (i.e. no password), the user
name matters. So, let's say you created the installation/domain with user name "foo" and
password "secret", you will need to specify those when you do asadmin (remote) commands
like deploy.
Hope that helps.

REgards,
Kedar
[Message sent by forum member 'km' (kedar.mhaswade_at_sun.com)]

http://forums.java.net/jive/thread.jspa?messageID=382218