localHost.addChild(rootContext);
Engine engine = tomcat.createEngine();
engine.setDefaultHost(localHost.getName());
engine.setName("TomcatEngine");
engine.addChild(localHost);
tomcat.addEngine(engine);
Connector connector = tomcat.createConnector(localHost.getName(), port, false);
tomcat.addConnector(connector);