10
votes

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?

4
Can you provide more details about 'you actually need to know the passowrd'?vkraemer
in the curretnt case I want to use asadmin.bat to create non privileged test users.Martin

4 Answers

11
votes

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.

7
votes

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

2
votes

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

0
votes

First, login to the Administration Console using admin/adminadmin and then change the password. After that, you will be able to connect from Netbeans. I did that with Netbeans 8.