3 Replies Latest reply on Mar 25, 2002 9:08 PM by IPOz

    Unable to locate a login configuration ?

    IPOz Newbie

      The following is some codesnippet from test class:
      ...
      private static void login(String username, char[] password) throws Exception
      {
      if( loggedIn )
      return;

      lc = null;
      String confName = System.getProperty("conf.name", "spec-test");
      AppCallbackHandler handler = new AppCallbackHandler(username, password);

      lc = new LoginContext(confName, handler); <= throw error here

      System.out.println("Creating LoginContext("+confName+") succeed !");

      lc.login();
      System.out.println("Created LoginContext, subject=" + lc.getSubject());
      loggedIn = true;
      }
      Why do i get such a message ?


      Any suggestion is appropriated !