users@glassfish.java.net

Re: AccessLocalException throws when security is activated

From: Harsha R A <Harsha.Ra_at_Sun.COM>
Date: Wed, 04 Jul 2007 21:52:51 +0530

Please note I also changed the annotation @RolesAllowed as follows
(roles are specified as array elements with curly braces)

@RolesAllowed({"BeanRoleRef"})

Thanks
Harsha

glassfish_at_javadesktop.org wrote:
> Well, i just install the build b41d-beta2.
> The granted.policy file generated by glassfish is :
>
> grant principal com.sun.enterprise.deployment.Group "BeanRoleRef" {
> permission javax.security.jacc.EJBMethodPermission "TestSecurityBean", "testSecurityCall,Remote,";
> permission javax.security.jacc.EJBRoleRefPermission "TestSecurityBean", "BeanRoleRef";
> };
>
> grant principal com.sun.enterprise.deployment.Group "InvalidBeanRoleRef" {
> permission javax.security.jacc.EJBMethodPermission "TestSecurityBean", "testInvalidRoleCall,Remote,";
> permission javax.security.jacc.EJBRoleRefPermission "TestSecurityBean", "InvalidBeanRoleRef";
> };
>
>
>
> I still have the same exception as before.
> But if i replace the content of this file with the content you give me previously then it is working.
> I think there is something wrong when generating this file with the V2 beta2 and previous versions.
> I will try now with the build 54.
> [Message sent by forum member 'franck_mosse' (franck_mosse)]
>
> http://forums.java.net/jive/thread.jspa?messageID=225233
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>