2 Replies Latest reply on Jun 5, 2003 10:09 AM by Kevin Moran

    No security context set?

    Kevin Moran Newbie

      Hi,
      I'm getting a

      java.lang.IllegalStateException: No security context set

      exception in my SLSB's ejbCreate() method when I call getCallerPrincipal() on the SessionContext. What's odd (at least to me) is that if I make the bean stateful in the deployment descriptor, no exception is thrown and the EJB correctly prints the caller's identity.

      I know SLSBs don't have any client-specific state. But I thought (perhaps wrongly) that an SLSB could determine the caller's identity. Is the exception I'm seeing correct?

      TIA,
      -kevin

      P.S. I'm using JBoss 3.0.7 with ClientLoginModule on the client side and UsersRolesLoginModule on the server.