1 Reply Latest reply on Jan 28, 2006 9:54 PM by Scott Stark

    missing domain error when configuring a LoginModule

    Paula Decker Newbie

      Hello all,

      I get this partial stack trace after configuring a login module:

      deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
      19:58:39,457 ERROR [MainDeployer] Could not create deployment: file:/C:/Program
      Files/jboss/jboss-4.0.3SP1/server/default/deploy/example3-login-config-service.x
      ml
      org.jboss.deployment.DeploymentException: missing domain; - nested throwable: (j
      avax.management.MalformedObjectNameException: missing domain)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
      :178)
      at org.jboss.system.ServiceController.install(ServiceController.java:215
      )
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy4.install(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:232)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)



      My example3-login-config.xml file is:
      <?xml version="1.0" ?>
      <!DOCTYPE policy (View Source for full doctype...)>
      -
      - <application-policy name="Example3JaasDbRealm">
      -
      - <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">
      <module-option name="unauthenticatedIdentity">guest</module-option>
      <module-option name="dsJndiName">java:/DefaultDS</module-option>
      <module-option name="principalsQuery">SELECT PASSWORD FROM HR.USERS WHERE USER_LOGIN=?</module-option>
      <module-option name="rolesQuery">SELECT HR.VAL_ROLES.ROLE_NAME, 'Roles' FROM HR.VAL_ROLES, HR.USER_ROLES, HR.USERS where HR.USERS.USER_LOGIN=? and HR.USERS.USER_ID=HR.USER_ROLES.USER_ID and HR.USER_ROLES.ROLE_ID= HR.VAL_ROLES.ROLE_ID</module-option>
      </login-module>

      </application-policy>



      My example3-login-config-service.xml file is:
      <?xml version="1.0" encoding="UTF-8"?>



      example3-login-config.xml
      <!-- <depends optional-attribute-name="LoginConfigService">
      jboss.security:service=XMLLoginConfig

      <depends optional-attribute-name="SecurityManagerService">
      jboss.security:service=JaasSecurityManager
      -->



      Your help is needed.

      Thanks.

      paulad