0 Replies Latest reply on Jun 12, 2007 6:19 AM by LeQuoc Thai

    Help me about DatabaseServerLoginModule !!!

    LeQuoc Thai Novice

      Hi all!
      I use Jboss 4.05 and EJB 3.0 and use DatabaseServerLoginModule.
      I were created two tables "Users" and "UserInRoles". In my tables, have two user

      user1 has two roles: Manager and Physician
      user2 has one role: Physican

      Manager has two permissions (methods): write and read
      Physican has one permission (method): read

      When I enter user2 I can call read method but when I enter user1 I don't call read method. My application show some messeges:
      javax.ejb.EJBAccessException: Authorization failure
      ......
      Caused by: java.lang.SecurityException: Insufficient permissions, principal=user1, requiredRoles=[Physician], principalRoles=[Manager,Physician]

      Why? I were created user1 has two roles: Manager and Physician in mySQL! And Jboss also know this! Please help me!!!