users@glassfish.java.net

Secure admin breaks web admin?

From: <forums_at_java.net>
Date: Wed, 22 Jun 2011 03:45:35 -0500 (CDT)

I have some trouble with my new installation of Glassfish. This is the setup:
OS: Debian, latest stable version; Glassfish 3.1 (downloaded today).

I installed Glassfish using the "custom option", so I could configure things
on the way - I created a domain called staf and left everything more or less
at defaults (I installed in /usr/local/glassfish3). When I tested it with my
browser (Iceweasel 3.5.16), I could log in and defined a MySQL connection
pool and JDBC resource.

I then tried to access it from NetBeans 7 - after having created a server
definition pointing to my new domain, it came back with the message:

Authorization failed for __locations on hag.  Have you run the
enable-secure-admin command?

I then ran "asadmin enable-secure-admin" on the server, which seems to
satisfy NetBeans, but now I can't access the admin console through the
browser. Is this the expected behaviour in this situation? Or is something
broken?


--
[Message sent by forum member 'janpla']
View Post: http://forums.java.net/node/814675