I have an MDB where I defined a runAs-Identity.
But when I access an statless SessionBean I always get this error message:
17:03:33,834 ERROR [AuthenticationInterceptor] Authentication exception, principal=[roles=[NewsUpdater],principal=anonymous]
So it seems as the runAs is interpreted correctly, because there is the correct role mentioned in the principal.
But NewsUpdater is in the @MethodPermisson Annotation of the method in the SessionBean.
What is wrong?
Thanks for your help
Please log a bug in JIRA.