Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-12783

EJBAccessException when security domain mapping added in the EJB3 subsystem to enable elytron

    Details

    • Type: Task
    • Status: Open (View Workflow)
    • Priority: Optional
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Security, Web Services
    • Labels:
      None

      Description

      Having webservice with @RolesAllowed annotation and security domain defined in the jboss-ejb3.xml (or @SecurityDomain). When this security domain mapping is added in the EJB3 subsystem it is failing with "javax.ejb.EJBAccessException: WFLYEJB0364: Invocation on method: METHOD of bean: BEAN is not allowed".
      I believe the message is not clearly describing the problem and maybe the documentation should be extended.

      Steps to reproduce:
      1, Deploy echoServer-1.0-SNAPSHOT.jar
      2, Add user with `$

      {jbossHomeName}/bin/add-user.sh -a -u 'quickstartUser' -p 'quickstartPwd1!' -g 'guest,admin'`
      3, To add security domain mapping in the EJB3 subsystem run `/subsystem=ejb3/application-security-domain=other:add(security-domain=ApplicationDomain)` and `reload` using $ {jbossHomeName}

      /bin/jboss-cli.sh
      4, Run EchoClient.main()

      • to restore configuration run `/subsystem=ejb3/application-security-domain=other:remove` and `reload` using $ {jbossHomeName}

        /bin/jboss-cli.sh

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jim.ma Jim Ma
                Reporter:
                khermano Katarina Hermanova
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: