1 Reply Latest reply on Mar 8, 2005 11:54 AM by John Christian Engelsen

    Logincontext cant find jboss server ?

    John Christian Engelsen Newbie

      Im creating a standalone web start application

      I get this error while trying to use a loginContext

      java.lang.SecurityException: Unable to locate a login configuration
      at com.sun.security.auth.login.ConfigFile.(ConfigFile.java:97)

      Everything works fine up till

      LoginContext lc = new LoginContext("other", callback);

      Is this because I miss a configuration file in the application ? Am I not using the right LoginCotextclass or ?

        • 1. Re: Logincontext cant find jboss server ?
          John Christian Engelsen Newbie

          I fixed it. I think....
          By adding the

          java -Djava.security.auth.login.config=./resources/auth.conf <java-main>

          but now I get a different error

          javax.security.auth.login.LoginException: unable to find LoginModule class: org.jboss.security.ClientLoginModule
          at javax.security.auth.login.LoginContext.invoke(LoginContext.java:808)
          at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
          at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
          at java.security.AccessController.doPrivileged(Native Method)
          at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
          at javax.security.auth.login.LoginContext.login(LoginContext.java:579)