0 Replies Latest reply on May 31, 2005 12:25 AM by Joco Miterdekel

    MissingResourceException during login when using a custom Lo

    Joco Miterdekel Newbie

      Hi,

      I use JBoss 4.0.2 and try to use JAAS authentication with a custom LoginModule. I've set up the SecurityDomain in login-config.xml and put my LoginModule in a jar under server/all/lib.

      When I call the login method of the LoginContext I get the following MissingResourceException:

      16:19:19,312 INFO [STDOUT] java.util.MissingResourceException: Can't find resource for bundle sun.security.util.Resourc
      es, key unable to instantiate LoginModule:
      16:19:19,312 INFO [STDOUT] at java.util.ResourceBundle.getObject(ResourceBundle.java:326)
      16:19:19,312 INFO [STDOUT] at java.util.ResourceBundle.getString(ResourceBundle.java:286)
      16:19:19,312 INFO [STDOUT] at sun.security.util.ResourcesMgr.getString(ResourcesMgr.java:36)
      16:19:19,312 INFO [STDOUT] at javax.security.auth.login.LoginContext.invoke(LoginContext.java:804)
      16:19:19,312 INFO [STDOUT] at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
      16:19:19,312 INFO [STDOUT] at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
      16:19:19,312 INFO [STDOUT] at java.security.AccessController.doPrivileged(Native Method)
      16:19:19,312 INFO [STDOUT] at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
      16:19:19,312 INFO [STDOUT] at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
      16:19:19,312 INFO [STDOUT] at ejb.dispatcher.DispatcherBean.processMessage(DispatcherBean.java:75)
      ...

      I have no idea what I'm doing wrong. Is there anything missing, or is it just a bug?
      Thanx.

      Joe