Details
-
Task
-
Resolution: Unresolved
-
Optional
-
None
-
None
-
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 `$
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