quality@glassfish.java.net

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

From: Richard Kolb <rjdkolb_at_gmail.com>
Date: Fri, 29 Oct 2010 08:38:59 +0200

Hi Anissa

thanks very much. FishCAT is back :)

regards
Richard

On 28 October 2010 17:15, Anissa Lam <anissa.lam_at_oracle.com> wrote:

> 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.
>
>