1 Reply Latest reply on Nov 14, 2002 9:54 AM by mlindhout

    java:comp/env/security does not appear...

    mlindhout

      Hi there,

      I'm sure I'm missing something, although I read the chapter about security in the JBoss book twice. I have
      a simple web-app configured with DatabaseServerLoginModule security, and I get: java:comp/env/security does not appear to be correctly set up. This is my config

      db2-service.xml
      jndiName = jdbc/DeBugITDS
      web.xml:
      Form based login, realm = DeBugIT

      jboss-web.xml:
      security-domain: DeBugIT

      auth.conf:
      DeBugIT {
      org.jboss.security.auth.spi.DatabaseServerLoginModule required
      dsJndiName="jdbc/DeBugITDS"
      principalsQuery="select password from user where userid = ?"
      rolesQuery="select groupname, 'Roles' from membership where userid = ?"
      ;
      };

      login-config.xml
      (this holds the same info as auth.conf, but in XML format.

      -----8<-----8<-----8<-----8<-----8<-----8<-----

      What do I forget?