title: Embedded Jetty resourceBase classpath URL
body: <p>I'm embedding Jetty in a Spring based application. I configure my Jetty server in a Spring context file. The specific part of the configuration I'm having trouble with is this:</p>
  
  <pre><code>&lt;bean class="org.eclipse.jetty.webapp.WebAppContext"&gt;
     &lt;property name="contextPath" value="/" /&gt;
     &lt;property name="resourceBase" value="????????" /&gt;
     &lt;property name="parentLoaderPriority" value="true" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>If you see above, where I've put the ????????, I ideally want the resourceBase to reference a folder on my classpath. I'm deploying my application in a single executable JAR file and have a folder <code>config/web/WEB-INF</code> on my classpath.</p>
  
  <p>Jetty seems to be able to handle URLs defined in the resourceBase (e.g. <code>jar:file:/myapp.jar!/config/web</code>) but it doesn't seem to support classpath URLs. I get an IllegalArgumentException if I define something like <code>classpath:config/web</code>.</p>
  
  <p>This is a real pain for me. Does anyone know of anyway to achieve this functionality?</p>
  
  <p>Thanks,</p>
  
  <p>Andrew</p>