On 6/22/11 1:45 AM, forums_at_java.net wrote:
> 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.
You open up a browser window and access console without issue.
>
> 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?
What does it mean by access from NetBeans 7 ? Is this the same way you
access the console "before" creating the JDBC resource ?
I don't see how creating a JDBC resource will change the way you access
the console.
>
> I then ran "asadmin enable-secure-admin" on the server, which seems to
> satisfy NetBeans,
what you mean satisfy NetBeans ? Are you talking about other NetBeans
functions ?
> but now I can't access the admin console through the
> browser. Is this the expected behaviour in this situation? Or is
> something
> broken?
After running the enable-secure-admin, you should see that your http
request is redirected to https.
Do you see this happening in your browser ?
Is there any error logged in your server.log ? (found under
glassfish/domains/domain1/logs).
Anissa.
>
>
> --
>
> [Message sent by forum member 'janpla']
>
> View Post: http://forums.java.net/node/814675
>
>