This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes login.config/mbean init issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "login.config/mbean init issue" Watch "login.config/mbean init issue" New topic
Author

login.config/mbean init issue

Stephanie, Smith
Greenhorn

Joined: May 22, 2001
Posts: 12
I am creating my own custom mbean that is independent of JBoss
services.

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?
Is there any way possible to get this to work?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: login.config/mbean init issue
 
Similar Threads
MBean InitialContext() Tomcat query- what is the relation
How to reference a JMX MBean ?
MBean InitialContext() Tomcat query- what is the relation