<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><server xmlns="urn:jboss:domain:5.0"><br>
.....<br>
<socket-binding-group><br>
...<br>
....<br>
</socket-binding-group><br>
<br>
<system-properties><br>
<property name="test.wfly" value="hello world"/><br>
</system-properties><br>
<br>
</server></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: </socket-binding-group><br>
| 511: <br>
| 512: <b><system-properties></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: <property name="test.wfly" value="hello
world"/><br>
| 514: </system-properties><br>
| 515: <br>
|<br>
| 'system-properties' is allowed in elements: <br>
| - server<br>
| "<br>
|<br>
| The primary underlying error message was:<br>
| > ParseError at [row,col]:[512,5]<br>
| > Message: WFLYCTL0198: Unexpected element<br>
| > '{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>