[jboss-jira] [JBoss JIRA] (WFLY-12783) EJBAccessException when security domain mapping added in the EJB3 subsystem to enable elytron
Katarina Hermanova (Jira)
issues at jboss.org
Wed Nov 13 05:26:00 EST 2019
[ https://issues.jboss.org/browse/WFLY-12783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Katarina Hermanova updated WFLY-12783:
--------------------------------------
Component/s: (was: Security)
> EJBAccessException when security domain mapping added in the EJB3 subsystem to enable elytron
> ---------------------------------------------------------------------------------------------
>
> Key: WFLY-12783
> URL: https://issues.jboss.org/browse/WFLY-12783
> Project: WildFly
> Issue Type: Task
> Components: Web Services
> Reporter: Katarina Hermanova
> Priority: Optional
> Attachments: newWebServiceDemo.zip
>
>
> 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
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list