/** * @return The default deployment or null */ private Archive<?> getDefaultDeployment() { if (defaultDeployment == null) { try { defaultDeployment = createDefaultDeployment(); } catch (RuntimeException ex) { // ignore } } return defaultDeployment; }
/** * Deploy the default WAR deployment. * <p/> * <p>For WAR-based applications, the primary WAR artifact iwll be deployed.</p> * * @return The container. * @throws Exception if an error occurs. */ public Container deploy() throws Exception { Archive deployment = createDefaultDeployment(); if (deployment == null) { System.err.println("[WARN] Unable to create default deployment"); return this; } else { return deploy(deployment); } }
/** * Deploy the default WAR deployment. * <p/> * <p>For WAR-based applications, the primary WAR artifact iwll be deployed.</p> * * @return The container. * @throws DeploymentException if an error occurs. */ public Container deploy() throws DeploymentException { Archive deployment = createDefaultDeployment(); if (deployment == null) { throw new DeploymentException("Unable to create default deployment"); } else { return deploy(deployment); } }
/** * Deploy the default WAR deployment. * <p/> * <p>For WAR-based applications, the primary WAR artifact iwll be deployed.</p> * * @return The container. * @throws DeploymentException if an error occurs. */ public Container deploy() throws DeploymentException { Archive<?> deployment = createDefaultDeployment(); if (deployment == null) { throw new DeploymentException("Unable to create default deployment"); } else { return deploy(deployment); } }