title: Cannot run/debug jsp page from within IntelliJ using Tomcat server
body: <p>I created a new project and created artifact for it.
  When I run Tomcat from command prompt and go to: <code>http://localhost:8080/IntelProject1/index.jsp</code></p>
  
  <p>I can see my page. </p>
  
  <p>But when I try to run it from IntelliJ, it opens empty page: 
      <a href="http://localhost:8080" rel="noreferrer">http://localhost:8080</a></p>
  
  <p>and if I try to go to:
  <code>http://localhost:8080/IntelProject1/index.jsp</code></p>
  
  <p>this is what it displays: </p>
  
  <p><code>HTTP Status 404 - /IntelProject1/index.jsp</code></p>
  
  <pre><code>type Status report
  
  message /IntelProject1/index.jsp
  
  description The requested resource is not available.
  
  Apache Tomcat/7.0.57
  </code></pre>
  
  <p>The reason it is able to find it from tomcat is because I edited server.xml file in tomcat/conf folder:</p>
  
  <pre><code>&lt;Context path="/IntelProject1" docBase="C:\Users\ibogojevic\Desktop\IntelProject1\web\JSP" /&gt;
  </code></pre>
  
  <p>But I want to be able to open it and debug from within <code>IntelliJ</code> </p>
  
  <p>Maybe my artifact is wrong.
  Any thoughts?</p>