title: Change root context for a servlet in an IntelliJ IDEA project
body: <p>I have created two servlets that run when I use their url-pattern that is defined in my web.xml file.</p>
  
  <p>For example, to run the first one I type  the following in my browser:</p>
  
  <pre><code>http://localhost:8080/XmlServletPath
  </code></pre>
  
  <p>I want to find a way to run these servlets from a different root context, for example:</p>
  
  <pre><code>http://localhost:8080/SimpleServletProject/XmlServletPath
  </code></pre>
  
  <p>When I try the above URL now I am getting the following error:</p>
  
  <pre><code>HTTP Status 404 - /SimpleServletProject/XmlServletPath
  
  type Status report
  message /SimpleServletProject/XmlServletPath
  description The requested resource is not available.
  </code></pre>
  
  <p>PS: I am using Tomcat 7.0.35.</p>