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
>
> uid | rolename | role_group
> ----------+---------------+-------------
> vladimir | administrator | admin-group
As far as i remeber role_grou must be 'Roles' in order to appear in the Principal Roles.
Best regards,
Igor.