engine.start();
connector = new CustomConnector();
connector.setPort(portNumber);
connector.setContainer(engine);
connector.initialize();
connector.start();
} catch (Exception e) {
throw new ServletMappingException(e);
}
// Keep track of the running server