I’m writing a web application and am using the Sun Glassfish application server to run it. I was messing with some security settings today (changing the master password, looking at replacing SSL certificates, etc.) After some messing I found the server would no longer start. It gave me the following error:
Starting Domain domain1, please wait.
Log redirected to <glassfish-home>/domains/domain1/logs/server.log.
Incorrect master password
CLI156 Could not start the domain domain1.
I changed the password back to default, scoured the web looking for a fix. After a bit of hair-pulling, I found the file <glassfish-home>/domains/domain1/master-password was owned by root-root. I ran the password update command using sudo, but I forgot to force it to my glassfish user. When Glassfish tried to start, it found it could not read the file containing the password it needed to access its keystore and failed. A quick chown command to change the owner back to the proper setting (the non-privileged glassfish user) and the server fired up like a champ.
Hopefully this will help the fellow Java geeks from losing any more hair than necessary.