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 14:30:58 +0530

There is a mistake in your sun-ejb-jar.xml . The role-name should be
BeanRoleRef instead of BeanRole as shown below. i.e. role-name in
sun-ejb-jar.xml and ejb-jar.xml should be same.

 <security-role-mapping>
      <role-name>BeanRoleRef</role-name>
      <principal-name>franck</principal-name>
  </security-role-mapping>

  <security-role-mapping>
      <role-name>InvalidBeanRoleRef</role-name>
      <principal-name>lolo</principal-name>
      <principal-name>chack</principal-name>
  </security-role-mapping>

I have tried your application with this change and it works.

Thanks
Harsha
glassfish_at_javadesktop.org wrote:
> Just some precisions:
> - I deploy my bean as a module
> - The standalone client is the same computer as the application server.
>
> Bye.
> [Message sent by forum member 'franck_mosse' (franck_mosse)]
>
> http://forums.java.net/jive/thread.jspa?messageID=225082
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>