2 Replies Latest reply on Dec 17, 2002 10:15 AM by wouter

    DatabaseServerLoginModule - InformixDS not bound exception

    gorlum

      I'm using jboss_3.0.3-tomcat_4.1.12 bundle
      When I'm trying to run my JAAS example I've got follows problem
      ...
      javax.security.auth.login.LoginException: javax.naming.NameNotFoundException: InformixDS not bound
      .....

      but in my other entity EJB's all works properly.

      I'm using auth.conf as JVM arguments

      other {
      org.jboss.security.auth.spi.DatabaseServerLoginModule required
      dsJndiName="java:/InformixDS"
      principalsQuery="select Password from Principals where PrincipalID=?"
      rolesQuery="select Password from Roles where PrincipalID=?"
      ;
      };

      Can anybody help me?
      Thanks.

        • 1. Re: DatabaseServerLoginModule - InformixDS not bound excepti
          sandyp

          I'm getting the same problem although I'm using a MySQL Database but the error is the same ie MySqlDS not bound
          I get a Login failure as follows:

          10:57:30,606 DEBUG (EppixDatabaseServerLoginModule.java:getUsersPassword:79) - Getting password for user = sandyP
          10:57:30,616 DEBUG (Logger.java:debug:126) - Login failure
          javax.security.auth.login.LoginException: javax.naming.NameNotFoundException: MySqlDS not bound
          at org.jboss.security.auth.spi.DatabaseServerLoginModule.getUsersPassword(DatabaseServerLoginModule.java:110)
          at security.EppixDatabaseServerLoginModule.getUsersPassword(EppixDatabaseServerLoginModule.java:81)

          • 2. Re: DatabaseServerLoginModule - InformixDS not bound excepti
            wouter

            Hi Anna and Sandy,

            I don't know how auth.conf is used in version 3.x.x Apparently jboss tries to use the datasource which means the file has been read. I wonder how your datasource can be bound for ejb and not for login. Perhaps it has something to do with the sequence of loading services ?

            Anyway, I think you have a better chance using login-config.xml instead of auth.conf. It is also the default specified in jboss-service.xml and works fine for me.

            Hope this helps. If it doesn't, perhaps post more details about what you're trying to do and how.

            Wouter