title: Application Server was not connected before run configuration stop, reason: java.io.IOException: Failed to retrieve RMIServer stub:
body: <p>I am trying to deploy my app using the Jetty plug in with IntelliJ. I am getting this error message. I am able to deploy the app using Tomcat successfully.</p>
  
  <p>Can anyone suggest why?</p>
  
  <pre><code>Application Server was not connected before run configuration stop, reason:
      java.io.IOException: Failed to retrieve RMIServer stub:
      javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException:
      error during JRMP connection establishment; nested exception is: 
      java.net.SocketException: Connection reset]
  </code></pre>