title: How to debug wildfly fail when running standalone.sh?
body: <p>I cannot run my cors header in wildfly.</p>
  
  <p>Here is my standalone.xml</p>
  
  <pre><code>&lt;subsystem xmlns="urn:jboss:domain:undertow:3.0"&gt;
       &lt;buffer-cache name="default"/&gt;
       &lt;server name="default-server"&gt;
       &lt;http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/&gt;
           &lt;https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true"/&gt;
           &lt;host name="default-host" alias="localhost"&gt;
           &lt;location name="/" handler="welcome-content"/&gt;
           &lt;access-log/&gt;
           &lt;filter-ref name="server-header"/&gt;
           &lt;filter-ref name="x-powered-by-header"/&gt;
           &lt;filter-ref name="gzipFilter" predicate="exists('%{o,Content-Type}') and regex(pattern='(?:application/javascript|text/css|text/html|text/xml|application/json)(;.*)?', value=%{o,Content-Type}, full-match=true)"/&gt;
           &lt;filter-ref name="Access-Control-Allow-Origin"/&gt;
           &lt;filter-ref name="Access-Control-Allow-Methods"/&gt;
           &lt;filter-ref name="Access-Control-Allow-Headers"/&gt;
           &lt;filter-ref name="Access-Control-Allow-Credentials"/&gt;
           &lt;/host&gt;
       &lt;/server&gt;
       &lt;servlet-container name="default"&gt;
          &lt;jsp-config development="true" tag-pooling="false"/&gt;
          &lt;websockets/&gt;
       &lt;/servlet-container&gt;
       &lt;handlers&gt;
          &lt;file name="welcome-content" path="${jboss.home.dir}/welcome-content"/&gt;
       &lt;/handlers&gt;
       &lt;filters&gt;
           &lt;response-header name="server-header" header-name="Server" header-value="WildFly/10"/&gt;
           &lt;response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/&gt;
           &lt;gzip name="gzipFilter"/&gt;
           &lt;response-header name="Access-Control-Allow-Origin" header-name="Access-Control-Allow-Origin" header-value="*"/&gt;
           &lt;response-header name="Access-Control-Allow-Methods" header-name="Access-Control-Allow-Methods" header-value="GET, POST, OPTIONS, PUT"/&gt;
           &lt;response-header name="Access-Control-Allow-Headers" header-name="Access-Control-Allow-Headers" header-value="accept, authorization, content-type, x-requested-with"/&gt;
           &lt;response-header name="Access-Control-Allow-Credentials" header-name="Access-Control-Allow-Credentials" header-value="true"/&gt;
       &lt;/filters&gt;
  &lt;/subsystem&gt;
  </code></pre>
  
  <p>And the result of ./standalone.sh is:</p>
  
  <pre><code>18:44:34,491 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) "WFLYCTL0193: Failed executing subsystem undertow boot operations"
  18:44:34,493 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("parallel-subsystem-boot") failed - address: ([]) - failure description: "\"WFLYCTL0193: Failed executing subsystem undertow boot operations\""
  18:44:34,499 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
  </code></pre>
  
  <p>Anyone can advise please...</p>