This was a big problem for me after inheriting a test virtual machine from a colleague who left the company. I did not want to risk creating a new domain as described above, and I tried to use the contents of the local password file as described above, but this did not work for me.
First worked on GlassFish Server Open Source Edition 3.1.2.2 (build 5). Change contents of this file:
$GLASSFISH_HOME$\glassfish\domains\domain1\config\admin-keyfile
from:
admin;{SSHA}WQVj8i9CLECCiv+w6ZxGgMrcfPqHPoXZW+2Jdw==;asadmin
I did not add a new line or carriage return at the end of the line.
This is my modification of the online solution .
Dab
source share