title: Cannot start Apache Tomcat 6 from IntelliJ IDEA 12.1.4 Ultimate (Windows 7)
body: <p>I need to debug a web application for Tomcat6 in IntelliJ IDEA.</p>
  
  <p>When I try to run my web application, I get two errors:</p>
  
  <ol>
  <li><em>Address localhost:1099 is already in use</em></li>
  <li><em>Unable to open debugger port: java.net.SocketException</em></li>
  </ol>
  
  <p>Launching the Apache Tomcat 6 service manually works fine.</p>
  
  <p>What should I do in order to be able to debug web applications in Apache Tomcat 6 from Intellij IDEA?</p>