2 Replies Latest reply on Feb 11, 2002 3:32 AM by chrishunter

    DatabaseServerLoginModule

    chrishunter

      I have set up the DatabaseServerLoginModule to authenticate agianst the database. I get the exception

      javax.naming.NameNotFoundException: seedocsIDB not bound

      from

      String name="guest";
      String password="guest";
      UsernamePasswordHandler handler = new UsernamePasswordHandler(name, password.toCharArray());
      LoginContext lc = new LoginContext("other", handler);
      lc.login();

      even though the connection pool seedocsIDB is bound and is accessible from my ejbs.

      I have tried every thing I can think of, any ideas what's wrong


        • 1. Re: DatabaseServerLoginModule

          Hi Chris,

          Unless you provide some more specific information, any attempt to give you an answer will be largely guesswork.

          What version are you using?
          How have you configured the datasource?
          How have you configured the login module?
          Is the name you're using the mapped name from your EJBs?
          What is the exception stacktrace from the server?

          The code you've given is client side code - but the relevant exception information will be in the server log.

          Luke.

          • 2. Re: DatabaseServerLoginModule
            chrishunter

            Luke,

            thanks for the reply, but I think I cracked it over the weekend. The problems was that the client side code was finding the server-side auth.conf (it's all on one machine) and was therefore trying to use the database connection from outside the JBoss container.


            Chris