0 Replies Latest reply on Apr 13, 2010 9:37 AM by hugbert

    avoid "Subject is null for isCallerInRole Check with role=TL"

    hugbert

      Hi,

       

      I use JBoss AS 5.1

      I get the error message

      "ERROR [EnterpriseContext] Subject is null for isCallerInRole Check with  role=gaga"

       

      I have an MBean that calls a method in a EJB.  This method has  @ejb.permission unchecked="true" in the signature.

      Somwhere in EJB Method I do a "isCallerInRole("gaga")" this gives me:

       

      ERROR [EnterpriseContext] Subject is null for isCallerInRole Check with role=gaga

       

      What do I have to do to fix this?

       

      Thanks for helping

       

      Hubert