quality@glassfish.java.net

Re: Creating a realm in GlassFish 3.1 b25 has strange behavior

From: Anissa Lam <anissa.lam_at_oracle.com>
Date: Thu, 28 Oct 2010 08:15:27 -0700

Hi Richard,
Thanks for reporting this. I just tested the latest code and see the
same issue you reported here.
I then tried again using CLI and see some error:

/%asadmin create-auth-realm --classname
com.sun.enterprise.security.auth.realm.file.FileRealm --target
default-config --property file=/tmp/keyfile:jaas-context=fileRealm MyRealm/
*Did not find any suitable instances for target default-config; command
executed on DAS only*

Command create-auth-realm executed successfully.

/%asadmin list-auth-realms server-config/
admin-realm
file
certificate
MyRealm

Command list-auth-realms executed successfully.

list-auth-realms also ignored "default-config" and report whats in
"server-config".

/%asadmin list-auth-realms default-config/
Did not find any suitable instances for target default-config; command
executed on DAS only
admin-realm
file
certificate
MyRealm

Command list-auth-realms executed successfully.

I don't know if this is expected behavior either. Let me cc Kumar to
see what he says.

thanks
Anissa.


On 10/28/10 1:06 AM, Richard Kolb wrote:
> Hello.
>
> I created a realm in GlassFish 3.1 using this tutorial :
> http://developinjava.com/features/47-enterprise-java/106-securing-a-web-application-on-glassfish-using-jaas-pt-2.html?d74b8640
>
> I went to Configurations - default-config and created the realm there.
> But after I created it the realm appeared in server-config
>
> Is this correct behavior ?
>
> regards
> Richard.
>