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

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

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Optional
    • None
    • None
    • Security, Web Services
    • 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

      Attachments

        Activity

          People

            rhn-engineering-ema Jim Ma
            kathermanova Katarína Hermanová
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: