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: Fri, 29 Oct 2010 08:04:33 -0700

Hi Richard,
You are welcome. Looking forward to work with FishCAT closely again !!

Anissa.

On 10/28/10 11:38 PM, Richard Kolb wrote:
> Hi Anissa
>
> thanks very much. FishCAT is back :)
>
> regards
> Richard
>
> On 28 October 2010 17:15, Anissa Lam <anissa.lam_at_oracle.com
> <mailto: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.
>>
>