9 Replies Latest reply on Mar 5, 2012 5:32 AM by iran zhou

    JBoss 7.1.0 Final: Could not connect to a secured domain manager

    iran zhou Newbie

      Dears,

       

      I have a problems to set up a domain controler.

       

      using : Jboss 7.1.0Final

       

      I have two PC(192.168.10.131--master 192.168.10.167--iran)

       

      Config of master:(hots.xml)

       

      
      <?xml version='1.0' encoding='UTF-8'?>
      
      
      <host name="master" xmlns="urn:jboss:domain:1.1">
      
          <management>
              <security-realms>
                  <security-realm name="ManagementRealm">
                      <authentication>
                          <properties path="mgmt-users.properties" relative-to="jboss.domain.config.dir"/>
                      </authentication>
                  </security-realm>
                  <security-realm name="ApplicationRealm">
                      <authentication>
                          <properties path="application-users.properties" relative-to="jboss.domain.config.dir" />
                      </authentication>
                  </security-realm>
              </security-realms>
              <management-interfaces>
                  <native-interface security-realm="ManagementRealm">
                      <socket interface="management" port="${jboss.management.native.port:9999}"/>
                  </native-interface>
                  <http-interface security-realm="ManagementRealm">
                      <socket interface="management" port="${jboss.management.http.port:9990}"/>
                  </http-interface>
              </management-interfaces>
          </management>
      
      
          <domain-controller>
             <local/>
             <!-- Alternative remote domain controller configuration with a host and port -->
             <!-- <remote host="${jboss.domain.master.address}" port="${jboss.domain.master.port:9999}"/> -->
          </domain-controller>
      
      
          <interfaces>
              <interface name="management">
                  <inet-address value="${jboss.bind.address.management:192.168.10.131}"/>
              </interface>
              <interface name="public">
                 <inet-address value="${jboss.bind.address:192.168.10.131}"/>
              </interface>
              <interface name="unsecure">
                  <!-- Used for IIOP sockets in the standarad configuration.
                       To secure JacORB you need to setup SSL -->
                  <inet-address value="192.168.10.131"/>
              </interface>
          </interfaces>
      
                 <jvms>
                    <jvm name="default">
                <heap size="64m" max-size="256m"/>
                <permgen size="256m" max-size="256m"/>
                  <jvm-options>
                      <option value="-server"/>
                  </jvm-options>
             </jvm>
                 </jvms>
      
          <servers>
              <server name="server-one" group="main-server-group">
                  <!-- Remote JPDA debugging for a specific server
                  <jvm name="default">
                    <jvm-options>
                      <option value="-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"/>
                    </jvm-options>
                 </jvm>
                 -->
              </server>
             
          </servers>
      </host>
      
      
      

       

      master mgmt-users.properties:

      iran=7d41bef8a074477bd6c47e8ef31a9a05
      
      

       

      password = 'iz'

      after base64 is 'aXo='

       

      Config of Iran: host.xml

       

      <?xml version='1.0' encoding='UTF-8'?>
      
      
      <host name="iran" xmlns="urn:jboss:domain:1.1">
      
           <management>
              <security-realms>
                  <security-realm name="ManagementRealm">
                                              <server-identities>
                                                   <secret value="aXo=" />
                                              </server-identities>
                      <authentication>
                          <properties path="mgmt-users.properties" relative-to="jboss.domain.config.dir"/>
                      </authentication>
                  </security-realm>
                  <security-realm name="ApplicationRealm">
                      <authentication>
                          <properties path="application-users.properties" relative-to="jboss.domain.config.dir" />
                      </authentication>
                  </security-realm>
              </security-realms>
              <management-interfaces>
                  <native-interface security-realm="ManagementRealm">
                      <socket interface="management" port="9999"/>
                  </native-interface>
                  <http-interface security-realm="ManagementRealm">
                      <socket interface="management" port="9990"/>
                  </http-interface>
              </management-interfaces>
          </management>
      
      
          <domain-controller>
             <remote host="192.168.10.131" port="9999" security-realm="ManagementRealm"  /> 
          </domain-controller>
      
      
          <interfaces>
              <interface name="management">
                  <inet-address value="192.168.10.167"/>
              </interface>
              <interface name="public">
                 <inet-address value="192.168.10.167"/>
              </interface>
              <interface name="unsecure">
                  <!-- Used for IIOP sockets in the standarad configuration.
                       To secure JacORB you need to setup SSL -->
                  <inet-address value="127.0.0.1"/>
              </interface>
          </interfaces>
      
      
                 <jvms>
                    <jvm name="default">
                <heap size="64m" max-size="256m"/>
                <permgen size="256m" max-size="256m"/>
                  <jvm-options>
                      <option value="-server"/>
                  </jvm-options>
             </jvm>
                 </jvms>
      
      
          <servers>
              <server name="server-one" group="main-server-group">
                  <!-- Remote JPDA debugging for a specific server
                  <jvm name="default">
                    <jvm-options>
                      <option value="-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"/>
                    </jvm-options>
                 </jvm>
                 -->
              </server>
            
          </servers>
      </host>
      
      

       

      I can start the master.

      but when i start the 'Iran', the log is sa below.

       

       

      .......
      [Host Controller] 10:35:59,031 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010900: Could
       not connect to remote domain controller 192.168.10.131:9999
      [Host Controller] 10:36:05,046 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010900: Could
       not connect to remote domain controller 192.168.10.131:9999
      [Host Controller] 10:36:11,062 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010900: Could
       not connect to remote domain controller 192.168.10.131:9999
      [Host Controller] 10:36:17,077 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010900: Could
       not connect to remote domain controller 192.168.10.131:9999
      [Host Controller] 10:36:23,092 WARN  [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010900: Could
       not connect to remote domain controller 192.168.10.131:9999
      [Host Controller] 10:36:29,123 ERROR [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010901: Could
       not connect to master. Aborting. Error was: java.lang.IllegalStateException: JBAS010951: Could not connect to
       master in 0 attempts within 30000 ms
      
      

      BTW:I can use telnet to connect the 192.168.10.131 9999 in 'iran'

       

       

      can anyone get me some idea?