title: Remote debugging on Tomcat with Eclipse
body: <p>I'm trying to initiate a remote debugging session on my PC with Eclipse &amp; Tomcat.
  I managed to run tomcat (not through eclipse) with the following params:</p>
  
  <pre><code>set JPDA_TRANSPORT=dt_socket
  set JPDA_ADDRESS=5050
  cataline jpda start
  </code></pre>
  
  <p>The server starts ok, this is the outcome:</p>
  
  <pre><code>Using CATALINA_BASE:   "C:\Java\Tomcat"
  Using CATALINA_HOME:   "C:\Java\Tomcat"
  Using CATALINA_TMPDIR: "C:\Java\Tomcat\temp"
  Using JRE_HOME:        "C:\Java\jdk1.6.0_27"
  Using CLASSPATH:       ...
  Listening for transport dt_socket at address: 5050
  ...
  ...
  INFO: Server startup in 12502 ms
  </code></pre>
  
  <p>Now, I opened eclipse, and loaded the relevant project.</p>
  
  <p>I set a new debugging configuration using <code>Remote Java Application</code> with localhost and the right port. however when I run it, I get this error message:</p>
  
  <pre><code>Failed to connect to remote VM. Connection refused.
  Connection refused: connect
  </code></pre>
  
  <p>Can't really understand where is the problem. this is all local inside the PC, so there shouldn't be any firewalls involved, can someone think of something ?</p>