title: IntelliJ IDEA 14.1.3 Ultimate: Application Server was not connected before run configuration stop, reason: Unable to ping server at localhost:1099
body: <p>I'm trying to run an exploded war, to deploy it from IDEA Ultimate through a <code>local Tomcat Server run configuration</code>. When I start the main artifact I'm always getting this error.</p>
  
  <p>I looked at other threads in here, <a href="https://stackoverflow.com/questions/29037327/intellij-idea-tomcat-application-server-was-not-connected-before-run-configurati">for example</a>, and I think I have a different problem. After IDEA reports failure, Tomcat is up and running and I can connect without a problem to <code>localhost:1099</code> with Java VisualVM.</p>
  
  <p>Regarding <a href="https://stackoverflow.com/questions/19068977/intellij-cant-start-simple-web-application-unable-to-ping-server-at-localhost">this one</a>, I'm running a Debian 6 x64 system and localhost refers to 127.0.0.1 without issue. Also Java VisualVM works, so I'm confident I'm not having this problem. The tomcat distribution I'm using is <code>apache-tomcat-6.0.43</code>.</p>
  
  <p>There was a different problem I read about on the <a href="https://youtrack.jetbrains.com/issue/IDEA-88167" rel="nofollow noreferrer">JetBrains trac</a> and at least the <code>-Djava.rmi.server.hostname=127.0.0.1</code> VM option specified there didn't help.</p>
  
  <p>According to <a href="http://mail.openjdk.java.net/pipermail/macosx-port-dev/2013-October/006093.html" rel="nofollow noreferrer">this thread</a> (yet I'm obviously not running OS X) there might be an issue with JDK and the JMX interface, somewhere between 1.7.0_40 and 1.7.0_60. I have my problem though with 1.7.0_53, 1.7.0_23 and 1.7.0_80. And JMX probably works fine in my case (as I said above, VisualVM connects to the tomcat launched and "forgotten" by IDEA at <code>localhost:1099</code> without failure).</p>
  
  <p>Any clue about fixing this error?</p>