title: Not able to access the external resource through glassfish when using alternatedocroot
body: <p>The application I'm working on is deployed in Glassfish v3.1.1. I'm trying to use alternate document root to serve files from outside the war.</p>
  
  <p>This is the content i have specified in glassfish-web.xml</p>
  
  <p><code>&lt;glassfish-web-app&gt;
      &lt;context-root&gt;xyz&lt;/context-root&gt;
      &lt;property name="alternatedocroot_2" value="from=/new/\* dir=E:/xyz"/&gt;
      &lt;/glassfish-web-app&gt;</code></p>
  
  <p>The static files are stored in this location:</p>
  
  <pre><code>E:\xyz\new
  </code></pre>
  
  <p>After deployment,when the file is accessed using this url,I get a 404 response.</p>
  
  <pre><code>http://localhost:8080/xyz/new/1_RD_2.png
  </code></pre>
  
  <p>I did a search on how the requests are matched, and the above code seems to match with what was given <a href="https://blogs.oracle.com/jluehe/entry/alternate_docroots_and_local_resource" rel="nofollow">here</a>.
  But still, the code doesn't work. Is there something i'm missing or doing wrong here?</p>