1 Reply Latest reply on Oct 21, 2003 4:33 AM by Igor Kolomiyets

    principalRoles=null but principal is ok

    vovan_onjava Newbie

      Hi list!

      I run into a problem with the following exception:
      000
      23:25:36,875 ERROR [SecurityInterceptor] Insufficient method permissions, princi
      pal=vladimir, method=create, interface=HOME, requiredRoles=[administrator], prin
      cipalRoles=null

      This happens when I call create method on home interface of my sessionBean. I keep information about roles in database table called role. It looks like:

      uid | rolename | role_group
      ----------+---------------+-------------
      vladimir | administrator | admin-group

      and my application policy rolesQuery is:
      <module-option name="rolesQuery">select rolename, role_group from role where uid=?</module-option>

      Im stuck with that. Maybe anyone knows what the problem is?

      TIA

      vovan_onjava