I have a glassfish server runing. it has 3 different domains - d1,d2, and d3. now when I try to run asadmin enable-secure-admin
command, how to i specify which
Before being able to enable Security, You might be prompted with a message saying your admin password is empty and cannot enable security.
To solve the problem:
Change the password of admin this way:
asadmin --host localhost --port 4848 change-admin-password
It will prompt you with user, type "admin", admin password, retype admin password
Once this is done, enable the security with the following command:
asadmin --host localhost --port 4848 enable-secure-admin
This should fix the problem.