glassfishglassfish-3

I forgot the Glassfish3 master-password, how can i reset it?


I forgot the master-password of my Glassfish 3.1.2.2. Is there a way to reset it? I spent a lot of time "googling around" but i didn't find a suitable answer.


Solution

  • Please follow the below steps:

    1. Stop the domain
    2. Back up the master password file
    3. Create a new domain and save the master password:
      asadmin create-domain --savemasterpassword domain2
    4. Remember the password :-)
    5. Copy the newly created masterpassword file over the old one
    6. Delete the newly created domain:
      asadmin delete-domain domain2

    FYI, now you should also know why you want to protect the master password file using file permissions :-)