Tuesday, October 8, 2024

Glassfish : Recreate domain to set new password

Glassfish : Recreate the Domain

(If you don't have important configurations)

If editing the 'admin-keyfile' doesn't work or seems too complex, and you dont't have important configurations in your domain, you can delete and recreate the domain:

  1. Delete the Domain: asadmin delete-domain domain1
  2. Create a New Domain: asadmin create-domain --adminport 4848 --user admin domain1 (here you will be asked to enter password)
  3. Start the New Domain: asadmin start-domain domain1
This will reset your Glassfish server to a clean state with a new admin password

No comments:

Post a Comment

Glassfish : Fix issue of secure admin must be enabled to access the DAS remotely

 The error "Secure Admin must be enabled to access the DAS remotely" occurs when you're trying to access the Glassfish Domain ...