3 Replies Latest reply on Feb 7, 2007 7:56 AM by Shane Bryzak

    Problems with Seam Security

    Michael Schuetz Newbie

      I just tried out the example from the seam reference documentation to do a JAAS login via the SeamLoginModule and Identity object. Therefore I left out any declaration of a Security Context (none of my EJBs, components, ... is part of some), initialized the Identity component in components.xml (see code below) and created an appropriate login form (exactly like in the documentation).


      <security:identity authenticate-method="#{authenticator.seamAuthenticate}"/>

      The mentioned authenticator component is a stateless session bean. So when accessing the login page, the following error message occurs.

      error message:
      15:59:31,017 ERROR [Exceptions] redirecting to debug page
      javax.ejb.EJBTransactionRolledbackException: java.lang.IllegalStateException: No valid security context for the caller identity

      Did I miss anything ?

      Thx in advance !