[jboss-user] [Security & JAAS/JBoss] - Re: Class Loading Problem of LoginModule from MBean/SAR File
tine2k
do-not-reply at jboss.com
Thu Apr 17 10:17:17 EDT 2008
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.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144872#4144872
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144872
More information about the jboss-user
mailing list