title: Can't Remotely Debug Tomcat Running on CentOS Virtual Machine from Eclipse on Host Windows 7
body: <h1>Setup</h1>
  
  <h2>VMWare Virtual Machine</h2>
  
  <ul>
  <li>CentOS 5.5 64-bit</li>
  <li>OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)</li>
  <li>Tomcat 6.0</li>
  </ul>
  
  <h2>Host Machine</h2>
  
  <ul>
  <li>Windows 7 64-bit</li>
  <li>Oracle/Sun JDK 1.6 64-bit</li>
  <li>Eclipse Helios for Java EE developers</li>
  </ul>
  
  <h1>Problem</h1>
  
  <p>My eclipse Remote Java Application has following connection properties:</p>
  
  <pre><code>Host: 192.168.94.133
  Port: 8000
  </code></pre>
  
  <p>When I run the above configuration, I get:</p>
  
  <pre><code>Failed to connect to remote VM. Connection refused.
  Connection refused: connect
  </code></pre>
  
  <p>Nothing new comes out of tomcat's log.  </p>
  
  <p>But when I telnet from the windows box:</p>
  
  <pre><code>bash-3.2$ telnet 192.168.94.133 8000
  Trying 192.168.94.133...
  Connected to 192.168.94.133.
  Escape character is '^]'.
  Connection closed by foreign host.
  </code></pre>
  
  <p>Every time I try the above telnet, tomcat spits this out in the log:</p>
  
  <pre><code>Debugger failed to attach: timeout during handshake
  </code></pre>
  
  <p>Because of the telnet behavior, I think the issue is in Eclipse... I'd appreciate any help.</p>
  
  <p>Thanks,<br>
  -Dave</p>