title: HTTP Error 404 with jetty server
body: <p>I have the following folder structure in my project.</p>
  
  <pre><code>&gt; src/
  &gt;&gt;main/
  &gt;&gt;&gt;webapp/
  &gt;&gt;&gt;&gt;WEB_INF/
  &gt;&gt;&gt;&gt;&gt;pages/
  &gt;&gt;&gt;&gt;&gt;&gt;js/
  </code></pre>
  
  <p>All my script files are located in js folder and my jsp page is located in pages folder.In order to include abc.js script in my jsp page I wrote the following line</p>
  
  <pre><code>&lt;script type="text/javascript" src="/WEB-INF/pages/js/abc.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>But I got following error</p>
  
  <pre><code>"NetworkError: 404 Not Found - http://localhost:8080/WEB-INF/pages/js/abc.js"
  </code></pre>
  
  <p>I am using jetty server to deploy my project. For running it I am using </p>
  
  <pre><code>mvn jetty:run
  </code></pre>
  
  <p>If I am putting my script file directly in webapp folder and including script  in following way then it is working perfectly fine.</p>
  
  <pre><code>&lt;script type="text/javascript" src="abc.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>But I want to maintain folder structure of my project by putting all scripts in js folder.
  Can somebody please tell me why jetty server is taking files located only in webapp folder?
  I am using windows7</p>