Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Admin User and Password for Netbeans created Glassfish domains?

When I create a “development” glassfish (3.1) domain with netbeans (6.9) then no passwords are needed. Everything works magically.

Nice on the first glance. Until you actually need to know the admin user and password.

The normal combination admin / adminadmin does not actually work.

Also the normal master password changeit won't get me anywhere.

Does anybody knows which credentials netbeans uses when creating a glassfish domain?

Of course I tried to create a domain using asadmin. But then NetBeans does not like these domains all that much, i.e. NetBeans starts to ask for passwords, automatic start of domain does not work any more. Trouble without end.

Update 1:

I tried to use empty passwords as suggested but this does not work either:

Authentication failed for user: admin
with password from password file: …\Domain.properties
(Usually, this means invalid user name and/or password)
Command create-file-user failed.

Am I between the hard rock and the deep blue sea here? NetBeans created domains don't work with command-line and command-line created domains don't work with netbeans?

like image 790
Martin Avatar asked Nov 16 '10 13:11

Martin


3 Answers

Most obvious answer missing? Netbeans - > Services - > Glassfish -> Properties -> Password show?

like image 108
Peter Avatar answered Oct 22 '22 13:10

Peter


Well I figured it out myself (again - when will I finally get my self learner badge?)

The problem is that the admin user is:

--user anonymous

no where documented. I only found it in the config/admin-keyfile. The password then is indeed empty as vkraemer suggested:

AS_ADMIN_MASTERPASSWORD=
AS_ADMIN_PASSWORD=

Thanks for the help.

like image 43
Martin Avatar answered Oct 22 '22 13:10

Martin


If you use NetBeans to create a development domain, it does not have a password. Sending one to the various commands will cause problems.

like image 39
vkraemer Avatar answered Oct 22 '22 12:10

vkraemer