Uploaded image for project: 'WildFly Discovery'
  1. WildFly Discovery
  2. WFDISC-22

Problem parsing multiple <service/> elements

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Beta12
    • None
    • None

      When parsing a discovery configuration file of the form:

          <discovery xmlns="urn:wildfly-discovery:1.0">
              <discovery-provider>
                  <static>
                      <service uri="node:myNode" abstract-type="ejb" abstract-type-authority="jboss">
                          <attribute name="cluster" value="myCluster"/>
                      </service>
                      <service uri="http-remoting://15.16.17.18:8080" abstract-type="ejb" abstract-type-authority="jboss">
                          <attribute name="node" value="myNode"/>
                      </service>
                  </static>
              </discovery-provider>
              <registry-provider>
                  <local-registry/>
              </registry-provider>
          </discovery>
      

      we see the exception:

      java.lang.ExceptionInInitializerError
      	at org.wildfly.discovery.ParsingTestCase.testConfiguredProviderContents(ParsingTestCase.java:29)
      Caused by: org.wildfly.discovery.InvalidDiscoveryConfigurationException: 
      org.wildfly.client.config.ConfigXMLParseException: CONF0005: Unexpected element "service" in namespace "urn:wildfly-discovery:1.0" encountered
      	at file:/home/nrla/projects/wildfly-discovery-git-repo/target/test-classes/wildfly-config.xml:10:117
      	at org.wildfly.discovery.ParsingTestCase.testConfiguredProviderContents(ParsingTestCase.java:29)
      Caused by: org.wildfly.client.config.ConfigXMLParseException: 
      CONF0005: Unexpected element "service" in namespace "urn:wildfly-discovery:1.0" encountered
      	at file:/home/nrla/projects/wildfly-discovery-git-repo/target/test-classes/wildfly-config.xml:10:117
      	at org.wildfly.discovery.ParsingTestCase.testConfiguredProviderContents(ParsingTestCase.java:29)
      

            rachmato@redhat.com Richard Achmatowicz
            rachmato@redhat.com Richard Achmatowicz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: