Have you found any solution to this problem?
I've got exactly the same and would be really grateful if it could be solved.
The RolePrincipal JAR is not included in the WAR File, it is loaded via jboss-deployment-structure.xml as module.
What does the jboss-deployment-structure.xml look like?
So my questions is:
- Is there any chance I can get this stuff loaded with the same classloader?
Yes. Just add a dependency in the jboss-deployment-structure.xml to the module the xyz.security one which has the loginmodule classes