2 Replies Latest reply on Mar 7, 2013 10:24 AM by mansm

    Slave Domain Controller Username

    bpoulain

      Hi,

       

      I am running in domain mode slave domain controllers (Jboss AS 7.1.1). The Admin Guide says:

       

      "if you want to override the username used for authentication a username attribute can be added to the <remote /> element"

       

      When I create an username attribute in the <remote /> element, I see this message:

       

      [Host Controller] 18:24:25,527 INFO  [org.jboss.as] (MSC service thread 1-1) JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

      [Host Controller] 18:24:26,544 ERROR [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010932: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration

      [Host Controller]       at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

      [Host Controller]       at org.jboss.as.host.controller.HostControllerConfigurationPersister.load(HostControllerConfigurationPersister.java:158) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]

      [Host Controller]       at org.jboss.as.host.controller.DomainModelControllerService.boot(DomainModelControllerService.java:315) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]

      [Host Controller]       at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:155) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

      [Host Controller]       at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_37]

      [Host Controller] Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[31,8]

      [Host Controller] Message: JBAS014788: Unexpected attribute 'username' encountered

      [Host Controller]       at org.jboss.as.controller.parsing.ParseUtils.unexpectedAttribute(ParseUtils.java:104) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

      [Host Controller]       at org.jboss.as.host.controller.parsing.HostXml.parseRemoteDomainControllerAttributes(HostXml.java:832) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]

      [Host Controller]       at org.jboss.as.host.controller.parsing.HostXml.parseRemoteDomainController1_1(HostXml.java:778) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]

      [Host Controller]       at org.jboss.as.host.controller.parsing.HostXml.parseDomainController(HostXml.java:745) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]

      [Host Controller]       at org.jboss.as.host.controller.parsing.HostXml.readHostElement_1_1(HostXml.java:392) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]

      [Host Controller]       at org.jboss.as.host.controller.parsing.HostXml.readElement(HostXml.java:126) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]

      [Host Controller]       at org.jboss.as.host.controller.parsing.HostXml.readElement(HostXml.java:103) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]

      [Host Controller]       at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final.jar:1.1.0.Final]

      [Host Controller]       at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]

      [Host Controller]       at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:133) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

      [Host Controller]       ... 4 more

      [Host Controller]

      [Host Controller] 18:24:26,585 FATAL [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010933: Host Controller boot has failed in an unrecoverable manner; exiting. See previous messages for details.

       

      This is my host.xml:

       

      ...

          <domain-controller>

             <remote host="${jboss.domain.master.address}" port="${jboss.domain.master.port:9999}" security-realm="ManagementRealm" username="srv03" />

          </domain-controller>

      ...

       

      Can you help me ?