Skip to main content

Authentication error while deploying application to GlassFish through Buildmaster

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
neetira
Offline
Joined: 2008-09-26

Hi

I am trying to deploy an application to GlassFish server 3.1.2 through BuildMaster tool in Windows using:

asadmin deploy --force=true --createtables=true business.ear

I can run this command through my command window with no issues.

But when running this command through BuildMaster, it gives Authentication Error:

Authentication failed for user: null
(Usually, this means invalid user name and/or password)
Command deploy failed.

I tried adding the username:
asadmin --user admin deploy --force=true --createtables=true business.ear

Then it gave an error:
Authentication failed for user: admin
(Usually, this means invalid user name and/or password)
Command deploy failed.

Why is it not able to read the .asadminpass file which has the username/password for the localhost?

Anybody else has faced this issue? How do I make it read the .asadminpass file?

Thanks