title: Debug Apache Tomcat. Oops! Google Chrome could not connect. Why?
body: <p>I have next task: Debug Apache Tomcat in Eclipse.</p>
  
  <p>My steps:</p>
  
  <ul>
  <li>Run Tomcat: <code>./startup.sh</code></li>
  <li>Check - open in browser localhost:8080/MyProject - SUCCESS.</li>
  <li>in file <code>catalina.sh</code> I added next lines:</li>
  </ul>
  
  <p><code>export JPDA_ADDRESS=8000</code>
  <code>export JPDA_TRANSPORT=dt_socket</code></p>
  
  <ul>
  <li>in file <code>startup.sh</code>:</li>
  </ul>
  
  <p>I comment this line: </p>
  
  <p><code>#exec "$PRGDIR"/"$EXECUTABLE" start "$@"</code> </p>
  
  <p>and added next line: </p>
  
  <p><code>exec "$PRGDIR"/"$EXECUTABLE" jpda start "$@"</code></p>
  
  <ul>
  <li>Run Tomcat: <code>startup.sh</code></li>
  <li>Check - in browser try open localhost:8080/MyProject - FAIL.
  At the next step I will try add settings in Eclipse for remote debug Tomcat, but I have Fail on previous step.</li>
  </ul>
  
  <p>Why did this happen??</p>
  
  <p>Maybe, it is depends on OS type? I use Ubuntu 11.10...</p>