title: Eclipse Remote debugging with jboss
body: <p>How can I configure remote debugging in Eclipse with JBOSS server 4.x version?</p>
  
  <p>So far,</p>
  
  <p><strong>Step1</strong>: I have modified the run.confg file. By uncommenting the below line. Sample JPDA settings for remote socket debugging:      </p>
  
  <pre><code>JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
  </code></pre>
  
  <p><strong>Step2</strong> : Then I configured Eclipse in debug configurations. It's saying:</p>
  
  <pre><code>Failed to connect to remote VM. Connection refused.
  </code></pre>