title: Why is Jetty hanging when I try to start it in debug mode?
body: <p>My problem is that when I try to launch Start.java in debug mode, Jetty hangs. Here is my Start.java file, taken from the <a href="http://wicket.apache.org/start/quickstart.html" rel="nofollow">Wicket quickstart page</a></p>
  
  <pre><code>Server server = new Server();
  SocketConnector connector = new SocketConnector();
  
  // Set some timeout options to make debugging easier.
  connector.setMaxIdleTime(1000 * 60 * 60);
  .....
  try {
      System.out.println("&gt;&gt;&gt; STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP");
      server.start();
      System.in.read();
      System.out.println("&gt;&gt;&gt; STOPPING EMBEDDED JETTY SERVER");
      // while (System.in.available() == 0) {
      //   Thread.sleep(5000);
      // }
      server.stop();
      server.join();
  } catch (Exception e) {
  .....
  }
  </code></pre>
  
  <p>When I try to reach <a href="http://localhost:8080" rel="nofollow">http://localhost:8080</a>, I get:</p>
  
  <blockquote>
    <p>HTTP ERROR: 503</p>
    
    <p>Problem accessing / Reason:</p>
    
    <p>SERVICE_UNAVAILABLE</p>
  </blockquote>
  
  <p>There are no error logs. What's wrong, and how do I fix it?</p>