* @throws MalformedURLException
*/
public void deployWar(String warPath) throws InterruptedException, MalformedURLException {
System.out.println("deploying war from " + warPath + " please wait...");
DeployableFactory deployableFac = new DefaultDeployableFactory();
WAR war = (WAR) deployableFac.createDeployable(container.getId(), warPath, DeployableType.WAR);
DeployerFactory deployerFac = new DefaultDeployerFactory();
Deployer deployer = deployerFac.createDeployer(getContainer(), DeployerType.INSTALLED);
deployer.deploy(war);
// verify that application has started before exiting method
int cycles = 0;