title: Glassfish 4.1.1 - alternatedocroot_1
body: <p>Is it still possible to serve files from an external folder with Glassfish 4 and the alternatedocroot_n property?</p>
  
  <p>In my web.xml file I have :</p>
  
  <pre><code>&lt;context-param&gt;
      &lt;param-name&gt;alternatedocroot_1&lt;/param-name&gt;
      &lt;param-value&gt;from=images/* dir=/web/files/&lt;/param-value&gt;
  &lt;/context-param&gt;
  </code></pre>
  
  <p>And then in an xhtml view I have :</p>
  
  <pre><code>&lt;h:graphicImage name="/images/#{item.filename}"/&gt;
  </code></pre>
  
  <p>But it returns a 404 error.</p>