I added password to glassfish for admin from localhost:4848 Before adding the password I was able to start the server from netbeans, now I can only start it from console.
In netbeans I get the Glassfish server 3 start failed error and INFO: User [] from host localhost does not have administration access.
I added the following to glassfish-web.xml. I guess I need to add the password too to somewhere in code but I can't find where
<security-role-mapping>
<role-name>admin</role-name>
<group-name>asadmin</group-name>
</security-role-mapping>