[jboss-user] [Security & JAAS/JBoss] - JAAS/Login.config

Stephanie.Smith@sas.com do-not-reply at jboss.com
Mon Jan 29 14:03:31 EST 2007

I am creating my own custom mbean that is independent of JBoss

My sar files contains the appropriate login.config that I want to use and I have updated the jboss-services.xml file to define my mbean.  I also define the DynamicLoginConfig service and my mbean depends on this.

If my mbean's constructor attempts to authenticate, it always fails with a LoginException: 
javax.security.auth.login.LoginException: Missing users.properties file.

If I remove the authentication attempt from my constructor, and instead
attempt it later during one of my operation invocations, it all works fine.
IT finds the appropriate login.config and authenticates.

Should I be able to do this from my mbean's constructor?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007951#4007951

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007951

More information about the jboss-user mailing list