title: How do I remove the root element of my Jetty webapp url?
body: <p>I am running a Java webapp (let's call it mywebapp).</p>
  
  <p>Currently I access my page in this webapp by pointing locally to:</p>
  
  <pre><code>http://localhost:9000/mywebapp/mystuff
  </code></pre>
  
  <p>However, I need  to access it using:</p>
  
  <pre><code>http://localhost:9000/mystuff
  </code></pre>
  
  <p>How can I do this?  I've tried messing with some confs, but to no avail...</p>
  
  <p>This is my current root.xml:</p>
  
  <pre><code>&lt;?xml version="1.0"  encoding="ISO-8859-1"?&gt;
  &lt;!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"&gt;
  &lt;Configure class="org.mortbay.jetty.webapp.WebAppContext"&gt;
      &lt;Set name="contextPath"&gt;/root&lt;/Set&gt;
      &lt;Set name="war"&gt;
          &lt;SystemProperty name="app.webapps.path"/&gt;/mywebapp.war
      &lt;/Set&gt;
  &lt;/Configure&gt;
  </code></pre>
  
  <p>Also tried:</p>
  
  <pre><code>&lt;?xml version="1.0"  encoding="ISO-8859-1"?&gt;
  &lt;!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"&gt;
  &lt;Configure class="org.mortbay.jetty.webapp.WebAppContext"&gt;
      &lt;Set name="contextPath"&gt;/&lt;/Set&gt;
      &lt;Set name="war"&gt;
          &lt;SystemProperty name="app.webapps.path"/&gt;/mywebapp.war
      &lt;/Set&gt;
  &lt;/Configure&gt;
  </code></pre>
  
  <p>I'm using Maven - not sure if that may be making the difference.</p>
  
  <p>Thanks!</p>