Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-5971

EJBContext.getCallerPrincipal() results in IllegalStateException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • No Release
    • JBossAS-4.2.3.GA
    • EJB
    • None

    Description

      Observed behavior:

      calling EJBContext.getCallerPrincipal() for not logged-in user (Stateless bean method invoked from non-secure servlet) results in java.lang.IllegalStateException: No valid security context for the caller identity exception.

      Stateless bean definition follows:

      @Stateless(name = "AwardService")
      @SecurityDomain(unauthenticatedPrincipal = "guest", value = "portal")
      public class AwardServiceImpl implements AwardService {
      .....
      }

      Expected behavior:

      "guest" principal to be returned on getCallerPrincipal() method invocation.

      Attachments

        Activity

          People

            Unassigned Unassigned
            eskape_jira Egor Kolesnikov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: