Thursday, 23 July 2009

get rid of glassfish master password

I've set up a webapp to be able to create-domain, deploy, test and delete-domain using the maven-glassfish-plugin.
The problem is that it insists on setting the master password.
Now its not possible to set the master password being used by the eclipse JavaEE glassfish plugin.
So when you try to start it from eclipse it asks for the master
password in the background:
Please enter the master password
After a while it times out and it says:
Server GlassFish at localhost failed to start.

I found out that you can tell glassfish to not ask the password anymore by doing:
asadmin change-master-password --savemasterpassword domain1
http://forums.java.net/jive/message.jspa?messageID=341172

However, I changed my admin password maven uses,
to be the real defaut master password: "changeit",
and now eclipse can start maven-created domains without me
having to --savemasterpassword
http://blogs.sun.com/alexismp/entry/what_is_a_glassfish_master

4 comments:

  1. THANKS A LOT!
    I had this crazy problem and this solved it!

    ReplyDelete
  2. Thank you very much, it worked like a charm!

    ReplyDelete
  3. asadmin change-master-password --savemasterpassword domain1 by request password write changeit

    ReplyDelete
    Replies
    1. Everytime I change to new password. it says:
      "Keystore was tampered with, or password was incorrect
      Command change-master-password failed."

      Tried different passwords.

      Delete