Site Navigation

Mar 11, 2015

Glassfish 4 Admin Passwords with NetBeans

Question: Where can I find the Admin Password for GlassFish 4?

Most of the time when working with NetBeans and Glassfish for development, you don’t need to know what the password is for the GlassFish server. Starting and stopping the server as well as open in the admin console is automatic. However, if like me, sometimes you work with multiple versions of NetBeans and you may be prompted for a password in the GlassFish admin console. So the username is "admin", but where is the darn password stored?

Usually in one of two the places.

Location 1

The first place to look is in the GlassFish configuration directory.

glassfish-4.0/glassfish/domains/domain1/config/local-password

Location 2

The second place to look is in NetBeans

  1. Click on the Services Tab
  2. Right click on the GlassFish Server
  3. Select Properties
  4. Too see the password, check the Show Password in this Form option

Caveats

Do not change these passwords! GlassFish has to be running to change admin passwords. If you “lose” the passwords for some reason, you will need to re-install.

If you want to change the password, look up the asadmin documentation for more details.

Post a Comment

Favorite Links Feed