<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><tt>I was experimenting with something on the just released
        WildFly 11 and lazily added the "system-properties" element
        within the server element, after the socket-binding-group in
        standalone.xml. Something like this:</tt></p>
    <p><tt>&lt;server xmlns="urn:jboss:domain:5.0"&gt;<br>
            .....<br>
            &lt;socket-binding-group&gt;<br>
            ...<br>
            ....<br>
            &lt;/socket-binding-group&gt;<br>
        <br>
            &lt;system-properties&gt;<br>
                &lt;property name="test.wfly" value="hello world"/&gt;<br>
            &lt;/system-properties&gt;<br>
        <br>
        &lt;/server&gt;</tt></p>
    <p><tt>Then booted the standalone server and ran into this improved
        error message at startup:</tt></p>
    <p><tt><br>
      </tt></p>
    <p><tt>17:51:32,950 ERROR [org.jboss.as.controller] (Controller Boot
        Thread) <br>
        <br>
        OPVDX001: Validation error in standalone.xml
        -----------------------------------<br>
        |<br>
        |  510:     &lt;/socket-binding-group&gt;<br>
        |  511: <br>
        |  512:     <b>&lt;system-properties&gt;</b><b><br>
        </b><b>|           ^^^^ 'system-properties' isn't an allowed
          element here</b><br>
        |                <br>
        |                <b>Elements allowed here are: </b><br>
        |                  deployment-overlays   management            <b>system-properties</b>    
        <br>
        |                  deployments           paths                
        vault                 <br>
        |                  extensions            profile               <br>
        |                  interfaces            socket-binding-group  <br>
        |<br>
        |  513:         &lt;property name="test.wfly" value="hello
        world"/&gt;<br>
        |  514:     &lt;/system-properties&gt;<br>
        |  515: <br>
        |<br>
        | 'system-properties' is allowed in elements: <br>
        | - server<br>
        | "<br>
        |<br>
        | The primary underlying error message was:<br>
        | &gt; ParseError at [row,col]:[512,5]<br>
        | &gt; Message: WFLYCTL0198: Unexpected element<br>
        | &gt;   '{urn:jboss:domain:5.0}system-properties' encountered<br>
        |</tt></p>
    <p><tt><br>
      </tt></p>
    <p><tt>I understand why it errored out (it expects the
        system-properties to be after the "extensions" element, than at
        the end) and I fixed the config to get past it. However, the
        interesting bit is that the error message that it threw states
        that "system-properties" isn't allowed at that location and the
        elements that are allowed there displays a bunch of elements
        which also includes "system-properties".</tt></p>
    <p><tt>I haven't looked up the code to see how that log message is
        generated and if it's just a logging issue or something more.
        Thought of noting it here in the list.<br>
      </tt></p>
    <p><tt><br>
      </tt></p>
    <p><tt>-Jaikiran<br>
      </tt></p>
    <p><tt></tt><br>
    </p>
  </body>
</html>