Context staticContext = new Context(clientFacingServer, "/static");
staticContext.addServlet(new ServletHolder(new StaticServlet()), "/");
Context context = new Context(clientFacingServer, "/");
context.addServlet(new ServletHolder(new TraceClientServlet()), "/");
boolean connected = false;
SocketConnector socket = null;
// Keep trying ports until we can connect
while (!connected) {
try {
socket = new SocketConnector();
socket.setPort(clientPort);
clientFacingServer.addConnector(socket);
clientFacingServer.start();
connected = true;
} catch (Exception e) {
if (e instanceof BindException) {