Glassfish version 3.1.2: Secure Admin must be enabled to access the DAS remotely.
Overview
Firstly, I only install the new Glassfish 3.1.2 only in my laptop and access the administration module locally by using “localhost:4048”. When I install it on the development server and try to access it remotely, by using “http:/my_host:port”. It shows me an error as cannot login with the message as
Secure Admin must be enabled to access the DAS remotely.
The Investigation
I’ve found the nice solution form stack overflow here.
The solution
It’s simple by activate the secure admin by using the following command line: –
asadmin --host [host] --port [port] enable-secure-admin
The host is the host name or IP address for the Glassfish Server which we need to enable the secure admin.
The port is the target Glassfish Server port which wee need to enable the secure admin.
Caution
Please take a big note as the following: –
- The target Glassfish Server which is the port owner is started before executing the above command.
- After executing, the target Glassfish Server need to be restarted for taking effect.
Rollback
If we would like to disable the secure admin, it can be done easily as the following: –
asadmin --host [host] --port [port] disable-secure-admin
Posted on March 23, 2012, in Glassfish Server, Java EE, JavaEE Server, Security and tagged Glassfish 3.1.2, software, technology. Bookmark the permalink. 7 Comments.
Thank you it works ,
in order to avoid confusion this command will execute on glassfish folder here are steps for beginners.
Step-1 go to command prompt
Step-2 go to glasfish directory where asadmin.bat file exists
Step-3 asadmin –host myhost –port 4848 enable-secure-admin
I haven’t done a whole lot of Glassfish administration (mostly just Tomcat)… thanks so much for posting Charlee, very helpful stuff.
create new domain on my exsisting glassfish .
I am able to open with my new port and new admin user but it shows blank page.can i know why
Pingback: Tab Sweep – Upgrade to Java EE 6, Groovy NetBeans, JSR310, JCache interview, OEPE, and more « oracle fusion identity
Pingback: GlassFish desde consola « Jaehoo Weblog
Pingback: GlassFish 3.1.2 -Enable remote secure admin | mauroprogram's Blog
Pingback: Java – Instalar Glassfish en Ubuntu Server 14.04 | Blogging googling