This content has been marked as final. Show 1 reply
Okay, I solve it.
The problem was that I programmatically added another MBean from the MBean contained and registered along with the SAR-File I used the following code:
MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); MyNewMBeanObject status = new MyNewMBeanObject(); mbs.registerMBean(status, oName);
So far so good, the added MBean can access all classes but no LoginModules (via LoginContext). Apparently JBoss does not like it, when you add an MBean programmtically and access JAAS from it. MBeans registered by JBoss via SAR-Files can access LoginModules just fine.