<div dir="ltr"><div>Hi,</div><div><br></div><div>Iam unable to secure war file using jboss subsytem. Can please advise?</div><div><br></div><div><br></div><div>error :</div><div><br></div><div><div>Message: Unexpected element &#39;{urn:jboss:domain:keycloak:1.1}subsystem&#39;</div><div><span class="" style="white-space:pre">        </span>at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:108)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.as.server.parsing.StandaloneXml.parseServerProfile(StandaloneXml.java:1199)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_4(StandaloneXml.java:457)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:144)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:106)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)</div><div><span class="" style="white-space:pre">        </span>at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:123)</div><div><span class="" style="white-space:pre">        </span>... 3 more</div></div><div><br></div><div><br></div>snippet of standalone.xml<br clear="all"><div><br></div><div>&lt;subsystem xmlns=&quot;urn:jboss:domain:keycloak-server:1.1&quot;&gt;</div><div>           &lt;web-context&gt;auth&lt;/web-context&gt;</div><div>         &lt;/subsystem&gt; </div><div>         &lt;subsystem xmlns=&quot;urn:jboss:domain:keycloak:1.1&quot;&gt;</div><div><span class="" style="white-space:pre">                </span>   &lt;secure-deployment name=&quot;WAR MODULE NAME.war&quot;&gt;</div><div>    &lt;realm&gt;demo&lt;/realm&gt;</div><div>    &lt;realm-public-key&gt;MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsy3CI+Un3CTFC/yoMzXNb7+Zm2gExw7khOduINB6wVIZpx+BT60DtXqcr0jZgxsO06ITL1/whVwHBx8G0KNG+t3McoYjXtEgkU5q0F+UA97M863Sg/762dC/2os7KiD/WVreXxA4wuueil/PPGj8YS0EUacx28yOhbhIIbva/jEWCtgKS3r/H6OtxZNM0lE0taimKlNT7NfLTBm/XH6IsdF75QD2WKTdzMHrd92zBg7lzHvp+/tZ7JwGhlR/+9N8O2qnPZWKVub7Wgum30trV8slFhWsneraosG2mnmeJLuIkNtev2gYvuNc5i8uZuKUnrdz2CUWEbViEReWm3uWRwIDAQAB&lt;/realm-public-key&gt;</div><div>    &lt;auth-server-url&gt;<a href="http://localhost:8080/auth">http://localhost:8080/auth</a>&lt;/auth-server-url&gt;</div><div>    &lt;bearer-only&gt;true&lt;/bearer-only&gt;</div><div>    &lt;ssl-required&gt;EXTERNAL&lt;/ssl-required&gt;</div><div>    &lt;resource&gt;<a href="http://localhost:8080/jasperserver-pro/">http://localhost:8080/jasperserver-pro/</a>&lt;/resource&gt;</div><div>&lt;/secure-deployment&gt;</div><div>&lt;/subsystem&gt; </div><div>    &lt;/profile&gt;</div><div class="gmail_signature"><div dir="ltr"></div></div>
</div>