Tuesday, March 27, 2018

How to solve: Secure Admin must be enabled to access the DAS remotely in Glassfish / Payara Java EE application server

Enable Glassfish / Payara secure admin

asadmin> get secure-admin.enabled
Command get executed successfully.
asadmin> enable-secure-admin
You must restart all running servers for the change in secure admin to take effect.
Command enable-secure-admin executed successfully.
asadmin> restart-domain

Successfully restarted the domain
Command restart-domain executed successfully.
asadmin> get secure-admin.enabled
Command get executed successfully.

If you encounter:
asadmin>  enable-secure-admin
remote failure: At least one admin user has an empty password, which secure admin does not permit. Use the change-admin-password command or the admin console to create non-empty passwords for admin accounts.
Command enable-secure-admin failed.
asadmin> change-admin-password
Enter admin user name [default: admin]>
Enter the admin password> 
Enter the new admin password> 
Enter the new admin password again> 
Command change-admin-password executed successfully.


Featured Post

British-based startup ARC unveiled its first motorcycle model in Milan this week

One being described as fast, advanced and expensive. The so-called Vector costs more than $100,000