title: HTML5 Video Not Working in JBOSS EAP 7.1.0
body: <p>Problem Definition</p>
  
  <p>I have a simple web app with html5 video on index page. When i try to deploy this web application on jboss eap 7.1.0 in stand alone mode it does not display video. But when i run the same web app on tomcat it runs perfectly fine and display video in browser.</p>
  
  <p>Googled Solution</p>
  
  <p>I have researched for the problem and found that i need to add mime type tag to my web.xml and to standalone.xml. Also i need to add range header to standlone.xml.But Still the problem exist.</p>
  
  <p>Web.xml Content</p>
  
  <pre><code>&lt;display-name&gt;EAPDemo&lt;/display-name&gt;
  &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;/WEB-INF/index.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  &lt;mime-mapping&gt;
      &lt;extension&gt;mp4&lt;/extension&gt;
      &lt;mime-type&gt;video/mp4&lt;/mime-type&gt;
  &lt;/mime-mapping&gt;
  </code></pre>
  
  <p>standalone.xml Content</p>
  
  <pre><code>&lt;subsystem xmlns="urn:jboss:domain:undertow:4.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;filter-ref name="server-header"/&gt;
              &lt;filter-ref name="x-powered-by-header"/&gt;
              &lt;filter-ref name="range" /&gt;
              &lt;http-invoker security-realm="ApplicationRealm"/&gt;
          &lt;/host&gt;
      &lt;/server&gt;
      &lt;servlet-container name="default"&gt;
          &lt;jsp-config/&gt;
          &lt;websockets/&gt;
          &lt;mime-mappings&gt;
              &lt;mime-mapping name="mp4" value="video/mp4" /&gt;
          &lt;/mime-mappings&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="JBoss-EAP/7"/&gt;
          &lt;response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/&gt;
          &lt;expression-filter name="range" expression="byte-range(send-accept-ranges=true)" /&gt;
      &lt;/filters&gt;
  &lt;/subsystem&gt;
  </code></pre>
  
  <p>Video Not Playing Screen Shot
  <img src="https://i.stack.imgur.com/h55mO.png" alt="Video Not Playing Screen Shot"></p>
  
  <p>Any Help would be appreciated.</p>
  
  <p>Thanks in advance </p>