service.AddContext("/test", "/test");
server.addService(service);
service2 = new JBossWeb("node4",  "localhost", false, "ROOT", Aliases2);
service2.addConnector(8014);
service2.AddContext("/test", "/test");
<BUG>server.addService(service2);
cluster = Maintest.createClusterListener(server, "224.0.1.105", 23364, false, "dom1", true, false, true, "secret");</BUG>
} catch(Exception ex) {
ex.printStackTrace();
fail("can't start service");

service.AddContext("/test", "/test");
server.addService(service);
service2 = new JBossWeb("node4",  "localhost", false, "ROOT", Aliases2);
service2.addConnector(8014);
service2.AddContext("/test", "/test");
server.addService(service2);
if (virtualhosts != null)
addVirtualHosts(service, service2, virtualhosts);
cluster = Maintest.createClusterListener(server, "224.0.1.105", 23364, false, "dom1", true, false, true, "secret");
} catch(Exception ex) {
ex.printStackTrace();
fail("can't start service");
