2 Replies Latest reply on Mar 3, 2004 2:06 PM by alisson

    DatabaseServerLoginModule

    alisson

      Hi,
      I'm trying to the DatabaseServerLoginModule to make the user authentication but I cannot make it works correctly. I´ve configured the files jboss-web.xml, login-config.xml. When the Jboss is started it presents the message:

      17:47:40,125 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean ope
      ration 'checkIncompleteDeployments()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:

      Incompletely deployed packages:

      MBeans waiting for classes:

      MBeans waiting for other MBeans:
      [ObjectName: jboss.mq:service=InvocationLayer,type=HTTP
      state: CREATED
      I Depend On: jboss.mq:service=Invoker
      jboss.web:service=WebServer

      Depends On Me: , ObjectName: jboss.mq:service=InvocationLayer,type=JVM
      state: CREATED
      I Depend On: jboss.mq:service=Invoker

      Depends On Me: , ObjectName: jboss.mq:service=InvocationLayer,type=RMI
      state: CREATED
      I Depend On: jboss.mq:service=Invoker

      Depends On Me: , ObjectName: jboss.mq:service=InvocationLayer,type=OIL
      state: CREATED
      I Depend On: jboss.mq:service=Invoker

      Depends On Me: , ObjectName: jboss.mq:service=InvocationLayer,type=UIL
      state: CREATED
      I Depend On: jboss.mq:service=Invoker

      ...

      My jboss-web.xml is bad configured? View:

      ... other application policy
      <application-policy name = "academicoApp">

      <login-module code ="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag = "required">
      <module-option name="dsJndiName">java:/AcademicoDB</module-option>
      <module-option name="principalsQuery">select passwd from users where username=?</module-option>
      <module-option name="rolesQuery">select userRoles 'Role' from userroles where username=?</module-option>
      </login-module>

      </application-policy>

      ... other application policy

      Thanks,
      Alisson Brito

        • 1. Re: DatabaseServerLoginModule
          pilhuhn

          Are you using Win* and seeing a "port inuse" exception relatively early in the Jboss start messages?
          Port 1099 or 1098 is probably in use by some other services. Check this and retry when those ports are not used.

          • 2. Re: DatabaseServerLoginModule
            alisson

            Yes, I'm using Windows XP but there is not any application on port 1098 neither 1099. This problem occurs only when my application-policy is configured on jboss-web.xml.
            Which files should be configured if I want to protect just my servlets and JSP (I am not using EJB)?