title: IntelliJ, can't start simple web application: Unable to ping server at localhost:1099
body: <p>I'm trying to make a simple web app in IntelliJ by following this tutorial:
  <a href="http://wiki.jetbrains.net/intellij/Creating_a_simple_Web_application_for_Tomcat_in_IntelliJ_IDEA_12" rel="noreferrer">http://wiki.jetbrains.net/intellij/Creating_a_simple_Web_application_for_Tomcat_in_IntelliJ_IDEA_12</a></p>
  
  <p>I believe my Tomcat is installed correctly since I see the tomcat pictures when I go to 
  <code>http://localhost:8080/</code></p>
  
  <p>I've followed all the steps up until the part it tells me to run <code>index.jsp</code>, at which point I get the error:</p>
  
  <pre><code>Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: nodename nor servname provided, or not known
  </code></pre>
  
  <p>I see this in the log:</p>
  
  <pre><code>Application Server was not connected before run configuration stop, reason:
             Unable to ping server at localhost:1099
  </code></pre>
  
  <p>This 1099 comes from the JMX port in Run -> Edit Configurations.</p>
  
  <p>How do I fix this?</p>