GlassFish 3.1.2 - My remote admin doesn't work. What the hell ?
GlassFish Server 3.1.2 has just been released. If you already have installed it, you probably tried to connect to the administration page from an other computer (in my case, GlassFish is installed on a dedicated server).
If you don't have modified security configuration, you must face a problem : you cannot login to GlassFish administration page, and it shows a message like
Secure Admin must be enabled to access the DAS remotely.
This kind of security rule is not new, but GlassFish 3.1.2 now enables it by default : you have to enable Secure Admin first to login remotely.
To activate Secure Admin, you only have to :
- start GlassFish.
- go to the "bin" directory of your GlassFish installation.
- run the "asadmin enable-secure-admin" command. You will have to type admin username and password.
- restart GlassFish.
- you can now go to the GlassFish administration page remotely (
http://YourServerAddress:4848/). Note that you will be automatically redirected to the secured admin page
https://YourServerAddress:4848/. You can log in.
Nota : I have noticed that Secure Admin doesn't work if you have changed the default admin port (4848). To use an other admin port, you may have to make some additional configurations.