Reputation: 2584
I am facing the same problem as mentioned in this question
HTTP Status 500 - Internal Server Error on Glassfish
I do this
root@user1:~# asadmin enable-secure-admin
No command 'asadmin' found, did you mean:
Command 'amadmin' from package 'amanda-server' (universe)
Command 'acsadmin' from package 'ion' (universe)
asadmin: command not found
I have a Linux 16.04 and
tried this and i got another email. I appreciate if you can comment on this
glassfish4/bin/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.
Upvotes: 1
Views: 2323
Reputation: 29168
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.
Resource Link: https://stackoverflow.com/a/12323491/2293534
Upvotes: 1