User [admin] from host null does not have administration access
I should admit, I didn’t read the Glassfish 3.1 Administration Manual, and I don’t know if this is documented. Anyway the main problem appeared when I tried to connect on my cluster instances with admin credentials. If I connect with VisualVM or JConsole to Domain Administration Server (DAS) on 8686 I don’t have any problem. When I’m trying to connect to my cluster instances on port 28686 with admin credentials I get from JConsole
Connection Failed: Retry?
The connection to firstname.lastname@example.org:28686 did not succeed.
Would you like to try again?
and on server.log
[#|2011-11-23T12:12:40.599+0000|INFO|glassfish3.1.1|javax.enterprise.system.tools.admin.com.sun.enterprise.container.common|_ThreadID=34;_ThreadName=Thread-2;|User [admin] from host null does not have administration access|#]
I tried in several ways to see why doesn’t work, but I didn’t have to much time to found the real problem (anyway is very possible to be documented on Glassfish Administration Manual).
A workaround to this problem (or can I say feature?) is to create another user on your configuration profile on admin-realm (Configurations->cluster-config->Security->Realms->admin-realm) within asadmin Group.
You don’t need to restart anything it should instantly work.