title: Server is not connected when trying to deploy with intellij
body: <p>I am trying to build, deploy and debug my webapp inside intellij. </p>
  
  <p>I have setup my tomcat using <a href="https://stackoverflow.com/a/19609115/162345">this</a> answer and I was able to get the server running. The issue is that my webapp is not being deployed, though it is defined in the <code>deployment</code> tab. </p>
  
  <p>I am getting the following error:
  <strong>server is not connected. Deploy is not available</strong>  </p>
  
  <p>If I copy the war and start the server everything works Ok. With ports 8080 and 8000.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>Just in case it is somehow related, the project is build with Maven &amp; Spring </p>
  
  <p>I added the Run/Debug Configuration for the Server:</p>
  
  <p><strong>Server Tab</strong>
  <img src="https://i.stack.imgur.com/HHjxH.png" alt="Server Tab"></p>
  
  <p><strong>Deployment Tab</strong>
  <img src="https://i.stack.imgur.com/58H9n.png" alt="Deployment tab"></p>
  
  <p>Debug Console output:</p>
  
  <pre><code>D:\development\infra\appServers\apache-tomcat-7.0.47\bin\catalina.bat run
  [2014-08-05 01:23:11,413] Artifact devstage:war exploded: Server is not connected. Deploy is not available.
  Using CATALINA_BASE:   "C:\Users\chaim\.IntelliJIdea13\system\tomcat\Unnamed_devstage_4"
  Using CATALINA_HOME:   "D:\development\infra\appServers\apache-tomcat-7.0.47"
  Using CATALINA_TMPDIR: "D:\development\infra\appServers\apache-tomcat-7.0.47\temp"
  Using JRE_HOME:        "C:\Program Files\Java\jdk1.7.0_45"
  Using CLASSPATH:       "D:\development\infra\appServers\apache-tomcat-7.0.47\bin\bootstrap.jar;D:\development\infra\appServers\apache-tomcat-7.0.47\bin\tomcat-juli.jar"
  Aug 05, 2014 1:23:12 PM org.apache.catalina.core.AprLifecycleListener init
  INFO: Loaded APR based Apache Tomcat Native library 1.1.29 using APR version 1.4.8.
  Aug 05, 2014 1:23:12 PM org.apache.catalina.core.AprLifecycleListener init
  INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
  Aug 05, 2014 1:23:12 PM org.apache.catalina.core.AprLifecycleListener initializeSSL
  INFO: OpenSSL successfully initialized (OpenSSL 1.0.1e 11 Feb 2013)
  Aug 05, 2014 1:23:12 PM org.apache.coyote.AbstractProtocol init
  INFO: Initializing ProtocolHandler ["http-apr-8080"]
  Aug 05, 2014 1:23:12 PM org.apache.coyote.AbstractProtocol init
  INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
  Aug 05, 2014 1:23:12 PM org.apache.catalina.startup.Catalina load
  INFO: Initialization processed in 902 ms
  Aug 05, 2014 1:23:12 PM org.apache.catalina.core.StandardService startInternal
  INFO: Starting service Catalina
  Aug 05, 2014 1:23:12 PM org.apache.catalina.core.StandardEngine startInternal
  INFO: Starting Servlet Engine: Apache Tomcat/7.0.47
  Aug 05, 2014 1:23:12 PM org.apache.coyote.AbstractProtocol start
  INFO: Starting ProtocolHandler ["http-apr-8080"]
  Aug 05, 2014 1:23:12 PM org.apache.coyote.AbstractProtocol start
  INFO: Starting ProtocolHandler ["ajp-apr-8009"]
  Aug 05, 2014 1:23:12 PM org.apache.catalina.startup.Catalina start
  INFO: Server startup in 35 ms
  [2014-08-05 01:23:21,363] Artifact devstage:war exploded: Server is not connected. Deploy is not available.
  Aug 05, 2014 1:23:22 PM org.apache.catalina.startup.HostConfig deployDirectory
  INFO: Deploying web application directory D:\development\infra\appServers\apache-tomcat-7.0.47\webapps\manager
  [2014-08-05 01:23:38,311] Artifact devstage:war exploded: Server is not connected. Deploy is not available.
  </code></pre>