public void deployFromUrl(Deployer deployer, URL servicesURL) throws DeploymentException { throw new DeploymentException( "Not support for this operation - deployFromUrl(Deployer deployer, URL servicesURL)"); }
log.error( Messages.getMessage(DeploymentErrorMsgs.INVALID_MODULE, deploymentFileData.getName(), e.getMessage()), e); PrintWriter error_ptintWriter = new PrintWriter(errorWriter); e.printStackTrace(error_ptintWriter); moduleStatus = "Error:\n" + errorWriter.toString(); } catch (AxisFault axisFault) {
public void undeploySynapseArtifact(String artifactName) { //get Old Lib config Library existingLib = null; try { existingLib = getSynapseConfiguration().getSynapseLibraries().get(artifactName); existingLib.unLoadLibrary(); getSynapseConfiguration().removeSynapseLibrary(artifactName); } catch (DeploymentException e) { handleDeploymentError(e.getMessage(),e); } }
public void undeploySynapseArtifact(String artifactName) { // get Old Lib config Library existingLib = null; try { existingLib = getSynapseConfiguration().getSynapseLibraries().get(artifactName); existingLib.unLoadLibrary(); getSynapseConfiguration().removeSynapseImport(artifactName); getSynapseConfiguration().removeSynapseLibrary(artifactName); } catch (DeploymentException e) { handleDeploymentError(e.getMessage(), e); } }
public void deployFromUrl(Deployer deployer, URL servicesURL) throws DeploymentException { throw new DeploymentException( "Not support for this operation - deployFromUrl(Deployer deployer, URL servicesURL)"); }
private void handleException(String message, Exception e) throws DeploymentException { if (log.isDebugEnabled()) { log.debug(message, e); } throw new DeploymentException(message, e); }
private void handleException(String message, Throwable t) throws DeploymentException { if (log.isDebugEnabled()) { log.debug(message, t); } throw new DeploymentException(message, t); } }
private void handleException(String message, Exception e) throws DeploymentException { if (log.isDebugEnabled()) { log.debug(message, e); } throw new DeploymentException(message, e); }
private void handleException(String message, Throwable t) throws DeploymentException { if (log.isDebugEnabled()) { log.debug(message, t); } throw new DeploymentException(message, t); } }
protected HashMap processMessageBuilders(OMElement messageBuildersElement) throws DeploymentException { try { return super.processMessageBuilders(messageBuildersElement); } catch (NoClassDefFoundError e) { if (deploymentEngine != null) { throw new DeploymentException(e); } else { // Called from createDefaultConfigurationContext in ConfigurationContextFactory // Please don't throw an exception. return new HashMap(); } } }
protected HashMap processMessageFormatters(OMElement messageFormattersElement) throws DeploymentException { try { return super.processMessageFormatters(messageFormattersElement); } catch (NoClassDefFoundError e) { if (deploymentEngine != null) { throw new DeploymentException(e); } else { // Called from createDefaultConfigurationContext in ConfigurationContextFactory // Please don't throw an exception. return new HashMap(); } } }
protected HashMap processMessageFormatters(OMElement messageFormattersElement) throws DeploymentException { try { return super.processMessageFormatters(messageFormattersElement); } catch (NoClassDefFoundError e) { if (deploymentEngine != null) { throw new DeploymentException(e); } else { // Called from createDefaultConfigurationContext in ConfigurationContextFactory // Please don't throw an exception. return new HashMap(); } } }
protected HashMap processMessageBuilders(OMElement messageBuildersElement) throws DeploymentException { try { return super.processMessageBuilders(messageBuildersElement); } catch (NoClassDefFoundError e) { if (deploymentEngine != null) { throw new DeploymentException(e); } else { // Called from createDefaultConfigurationContext in ConfigurationContextFactory // Please don't throw an exception. return new HashMap(); } } }
/** * Removing already deployed bucket * * @param filePath the path to the bucket to be removed * @throws org.apache.axis2.deployment.DeploymentException */ public void undeploy(String filePath) throws DeploymentException { try { if (!unDeployedExecutionPlanFilePaths.contains(filePath)) { processUndeploy(filePath); } else { log.debug("Execution plan file is already undeployed :" + filePath); unDeployedExecutionPlanFilePaths.remove(filePath); } } catch (Throwable t) { log.error("Can't undeploy the execution plan: " + filePath, t); throw new DeploymentException("Can't undeploy the execution plan: " + filePath, t); } }
private void createHumanTaskRepository(ConfigurationContext configCtx) throws DeploymentException { String axisRepoPath = configCtx.getAxisConfiguration().getRepository().getPath(); if (CarbonUtils.isURL(axisRepoPath)) { throw new DeploymentException("URL Repositories are not supported: " + axisRepoPath); } File tenantsRepository = new File(axisRepoPath); File humanTaskRepo = new File(tenantsRepository, HumanTaskConstants.HUMANTASK_REPO_DIRECTORY); if (!humanTaskRepo.exists()) { boolean status = humanTaskRepo.mkdir(); if (!status) { throw new DeploymentException("Failed to create HumanTask repository directory " + humanTaskRepo.getAbsolutePath() + "."); } } } }
public List<Phase> getGlobalInFaultPhases() throws DeploymentException { ArrayList<Phase> globalInfaultphase = new ArrayList<Phase>(); boolean foundDispatchPhase = false; for (int i = 0; i < IN_FaultPhases.size(); i++) { Phase phase = (Phase) IN_FaultPhases.get(i); String phaseName = phase.getPhaseName(); if (!foundDispatchPhase) { if (PhaseMetadata.PHASE_DISPATCH.equals(phaseName)) { foundDispatchPhase = true; } globalInfaultphase.add(phase); } } if (!foundDispatchPhase) { throw new DeploymentException( Messages.getMessage(DeploymentErrorMsgs.DISPATCH_PHASE_NOT_FOUND)); } return globalInfaultphase; }
public List<Phase> getGlobalInflow() throws DeploymentException { ArrayList<Phase> globalphase = new ArrayList<Phase>(); boolean foundDispatchPhase = false; for (int i = 0; i < INPhases.size(); i++) { Phase phase = (Phase) INPhases.get(i); String phaseName = phase.getPhaseName(); if (!foundDispatchPhase) { if (PhaseMetadata.PHASE_DISPATCH.equals(phaseName)) { foundDispatchPhase = true; } globalphase.add(phase); } } if (!foundDispatchPhase) { throw new DeploymentException( Messages.getMessage(DeploymentErrorMsgs.DISPATCH_PHASE_NOT_FOUND)); } return globalphase; }
public Object run() throws org.apache.axis2.deployment.DeploymentException { Class selectorClass; try { if ((className != null) && !"".equals(className)) { selectorClass = Loader.loadClass(Thread.currentThread() .getContextClassLoader(), className); } else { throw new DeploymentException(Messages.getMessage(errorMsg, "Invalid Class Name", className)); } } catch (ClassNotFoundException e) { throw new DeploymentException(Messages.getMessage(errorMsg, "ClassNotFoundException", className), e); } return selectorClass; } });
public List<Phase> getGlobalInflow() throws DeploymentException { ArrayList<Phase> globalphase = new ArrayList<Phase>(); boolean foundDispatchPhase = false; for (int i = 0; i < INPhases.size(); i++) { Phase phase = (Phase) INPhases.get(i); String phaseName = phase.getPhaseName(); if (!foundDispatchPhase) { if (PhaseMetadata.PHASE_DISPATCH.equals(phaseName)) { foundDispatchPhase = true; } globalphase.add(phase); } } if (!foundDispatchPhase) { throw new DeploymentException( Messages.getMessage(DeploymentErrorMsgs.DISPATCH_PHASE_NOT_FOUND)); } return globalphase; }
public List<Phase> getGlobalInFaultPhases() throws DeploymentException { ArrayList<Phase> globalInfaultphase = new ArrayList<Phase>(); boolean foundDispatchPhase = false; for (int i = 0; i < IN_FaultPhases.size(); i++) { Phase phase = (Phase) IN_FaultPhases.get(i); String phaseName = phase.getPhaseName(); if (!foundDispatchPhase) { if (PhaseMetadata.PHASE_DISPATCH.equals(phaseName)) { foundDispatchPhase = true; } globalInfaultphase.add(phase); } } if (!foundDispatchPhase) { throw new DeploymentException( Messages.getMessage(DeploymentErrorMsgs.DISPATCH_PHASE_NOT_FOUND)); } return globalInfaultphase; }