[infinispan-issues] [JBoss JIRA] (ISPN-11905) cache-container tag should not raise an XSD validation when the jmx tag is before the transport tag

Diego Lovison (Jira) issues at jboss.org
Mon May 25 12:58:17 EDT 2020


Diego Lovison created ISPN-11905:
------------------------------------

             Summary: cache-container tag should not raise an XSD validation when the jmx tag is before the transport tag
                 Key: ISPN-11905
                 URL: https://issues.redhat.com/browse/ISPN-11905
             Project: Infinispan
          Issue Type: Bug
          Components: Server
    Affects Versions: 11.0.0.CR1
            Reporter: Diego Lovison


{{cache-container}} tag should not raise an XSD validation error when the {{jmx}} tag is before the {{transport}} tag

{code:xml}
   <cache-container xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    xsi:schemaLocation="urn:infinispan:config:11.0 https://infinispan.org/schemas/infinispan-config-fragment-11.0.xsd"
                    xmlns="urn:infinispan:config:11.0"
                    name="default" statistics="true">
      <jmx enabled="true" />
      <transport cluster="${infinispan.cluster.name}" stack="${org.infinispan.test.server.cluster.stack:test-tcp}"/>
   </cache-container>
{code}

Error:
{noformat}
Invalid content was found starting with element '{"urn:infinispan:config:11.0":transport}'. One of '{"urn:infinispan:config:11.0":global-state, "urn:infinispan:config:11.0":local-cache, "urn:infinispan:config:11.0":local-cache-configuration, "urn:infinispan:config:11.0":replicated-cache, "urn:infinispan:config:11.0":replicated-cache-configuration, "urn:infinispan:config:11.0":invalidation-cache, "urn:infinispan:config:11.0":invalidation-cache-configuration, "urn:infinispan:config:11.0":distributed-cache, "urn:infinispan:config:11.0":distributed-cache-configuration, "urn:infinispan:config:11.0":scattered-cache, "urn:infinispan:config:11.0":scattered-cache-configuration, WC[##other:"urn:infinispan:config:11.0"]}' is expected.
{noformat}

It is not preventing the server from startup.

If we use in this order:

{code:xml}
   <cache-container xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    xsi:schemaLocation="urn:infinispan:config:11.0 https://infinispan.org/schemas/infinispan-config-fragment-11.0.xsd"
                    xmlns="urn:infinispan:config:11.0"
                    name="default" statistics="true">
      <transport cluster="${infinispan.cluster.name}" stack="${org.infinispan.test.server.cluster.stack:test-tcp}"/>
      <jmx enabled="true" />
   </cache-container>
{code}

No XSD validation error.




--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list