title: How can I serve static content from directory outside of webapplication in Jetty7
body: <p>I'm trying to serve static content e.g. pdf file from a directory on unix server that is outside of my web application directory. I have tried the following however I get a 404 when I try to access it. I have defined it as follows in jetty.xml</p>
  
  <pre><code>            &lt;Item&gt;
                      &lt;New class="org.eclipse.jetty.server.handler.ContextHandler"&gt;
                      &lt;Set name="contextPath"&gt;/test&lt;/Set&gt;
                      &lt;Set name="handler"&gt;
                          &lt;New class="org.eclipse.jetty.server.handler.ResourceHandler"&gt;
                              &lt;Set name="directoriesListed"&gt;true&lt;/Set&gt;
                              &lt;Set name="resourceBase"&gt;/data/muni/data/AlaBAMa/muMCVClient&lt;/Set&gt;
                                                         &lt;/New&gt;
                      &lt;/Set&gt;
                  &lt;/New&gt;
              &lt;/Item&gt;
  </code></pre>
  
  <p><code>/data/muni/data/AlaBAMa/muMCVClient</code> is path of my server where my pdf file is located. but when I try <code>/test/test.pdf</code> I get a 404.</p>
  
  <p>Any help would be greatly appreciated.</p>