/** * {@inheritDoc} */ @Override public void configure(LocalContainer container) { if (getPropertyValue(GeneralPropertySet.JAVA_HOME) == null) { setProperty(GeneralPropertySet.JAVA_HOME, System.getProperty("java.home")); } parsePropertiesForPendingConfiguration(); verify(); try { doConfigure(container); } catch (Exception e) { throw new ContainerException("Failed to create a " + container.getName() + " " + getType().getType() + " configuration", e); } configureFiles(getFilterChain(), container); }
/** * {@inheritDoc} */ @Override public void doConfigure(LocalContainer container) throws Exception { try { setupConfigurationDir(); FilterChain filterChain = createJettyFilterChain(); String etcDir = getFileHandler().createDirectory(getHome(), "etc"); getResourceUtils().copyResource(RESOURCE_PATH + "cargocpc.war", new File(getHome(), "cargocpc.war")); getResourceUtils().copyResource(RESOURCE_PATH + container.getId() + "/webdefault.xml", new File(etcDir, "webdefault.xml"), filterChain, "UTF-8"); if (container.getOutput() != null) { activateLogging(container); } } catch (Exception e) { throw new ContainerException("Failed to create a " + container.getName() + " container configuration", e); } }
/** * {@inheritDoc} */ @Override public void doConfigure(LocalContainer container) throws Exception { try { setupConfigurationDir(); FilterChain filterChain = createJettyFilterChain(); String etcDir = getFileHandler().createDirectory(getHome(), "etc"); getResourceUtils().copyResource(RESOURCE_PATH + "cargocpc.war", new File(getHome(), "cargocpc.war")); getResourceUtils().copyResource(RESOURCE_PATH + container.getId() + "/webdefault.xml", new File(etcDir, "webdefault.xml"), filterChain, "UTF-8"); if (container.getOutput() != null) { activateLogging(container); } } catch (Exception e) { throw new ContainerException("Failed to create a " + container.getName() + " container configuration", e); } }
throw new ContainerException(getContainer().getName() + " doesn't support [" + deployable.getType().getType().toUpperCase() + "] archives. Got [" + deployable.getFile() + "]");
throw new ContainerException(getContainer().getName() + " doesn't support [" + deployable.getType().getType().toUpperCase() + "] archives. Got [" + deployable.getFile() + "]");
throw new ContainerException("Failed to create a " + container.getName() + " container configuration", e);
throw new ContainerException("Failed to create a " + container.getName() + " container configuration", e);
throw new ContainerException("Container " + getContainer().getName() + " cannot deploy expanded " + deployable.getType() + " deployables");
throw new ContainerException("Container " + getContainer().getName() + " cannot deploy " + deployable.getType() + " deployables");
throw new ContainerException("Container " + getContainer().getName() + " cannot deploy " + deployable.getType() + " deployables");