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 Wicket quickstart page
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(">>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP");
server.start();
System.in.read();
System.out.println(">>> STOPPING EMBEDDED JETTY SERVER");
// while (System.in.available() == 0) {
// Thread.sleep(5000);
// }
server.stop();
server.join();
} catch (Exception e) {
.....
}
When I try to reach http://localhost:8080, I get:
HTTP ERROR: 503
Problem accessing / Reason:
SERVICE_UNAVAILABLE
There are no error logs. What's wrong, and how do I fix it?