Package org.apache.axis2.deployment

Examples of org.apache.axis2.deployment.DeploymentException


                }
            }

        } catch (RegistryException e) {
            throw new DeploymentException("An error occured while deploying gadget archive", e);
        } catch (CarbonException e) {
            throw new DeploymentException("An error occured while deploying gadget archive", e);
        } catch (UserStoreException e) {
            throw new DeploymentException("An error occured while deploying gadget archive", e);
        }

    }
View Full Code Here


    }

    private File createBPELRepository(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 bpelRepo = new File(tenantsRepository, BPELConstants.BPEL_REPO_DIRECTORY);

        if (!bpelRepo.exists()) {
            boolean status = bpelRepo.mkdir();
            if (!status) {
                throw new DeploymentException("Failed to create BPEL repository directory " +
                        bpelRepo.getAbsolutePath() + ".");
            }
        }

        return bpelRepo;
View Full Code Here

        try {
            tenantProcessStore.deploy(deploymentFileData.getFile());
        } catch (Exception e) {
            String errorMessage = "Error deploying BPEL package: " + deploymentFileData.getName();
            log.error(errorMessage, e);
            throw new DeploymentException(errorMessage, e);
        }
    }
View Full Code Here

                    BPELConstants.BPEL_PACKAGE_EXTENSION));
            tenantProcessStore.undeploy(bpelPackageName);
        } catch (Exception e) {
            String errMsg = "BPEL Package: " + bpelArchivePath + " undeployment failed.";
            log.error(errMsg, e);
            throw new DeploymentException(errMsg, e);
        }
    }
View Full Code Here

            int tenantId = bpelServer.getMultiTenantProcessStore().
                    getTenantId(processConfiguration.getProcessId());
            TenantProcessStoreImpl pStore = (TenantProcessStoreImpl) bpelServer.
                    getMultiTenantProcessStore().getTenantsProcessStore(tenantId);
            pStore.removeProcessConfiguration(processConfiguration.getProcessId());
            throw new DeploymentException("BPEL Package undeployment failed.", e);
        }

        processProxy.setAxisService(axisService);
        removeBPELProcessProxyAndAxisService(processConfiguration.getDeployer(), serviceName, portName);
        services.put(processConfiguration.getDeployer(), serviceName, portName, processProxy);
View Full Code Here

                }
            }

        } catch (RegistryException e) {
            throw new DeploymentException("An error occured while deploying gadget archive", e);
        } catch (CarbonException e) {
            throw new DeploymentException("An error occured while deploying gadget archive", e);
        } catch (UserStoreException e) {
            throw new DeploymentException("An error occured while deploying gadget archive", e);
        }

    }
View Full Code Here

                            deploymentFileData.getFile());
            htStore.deploy(htDu);
        } catch (HumanTaskStoreException e) {
            String errMsg = "Human Task archive " + deploymentFileData.getName() + " deployment failed.";
            log.error(errMsg);
            throw new DeploymentException(errMsg, e);
        }
    }
View Full Code Here

        // Check weather the user provided a serviceName
        Object serviceNameObject = service.get(JSConstants.SERVICE_NAME_ANNOTATION, service);
        if (serviceNameObject instanceof String) {
            String serviceNameString = ((String) serviceNameObject).trim();
            if (serviceNameString.indexOf(' ') > -1) {
                throw new DeploymentException("Value of the serviceName annotation ('"
                        + serviceNameString + "') should be a single word.");
            }
            this.serviceName = serviceNameString;
        } else {
            this.serviceName = serviceName;
View Full Code Here

            }
        } else {
            String msg = "Artifact representing the filename "
                    + fileName + " is not deployed on Synapse";
            log.error(msg);
            throw new DeploymentException(msg);
        }

        if (log.isDebugEnabled()) {
            log.debug("UnDeployment of the synapse artifact from file : "
                    + fileName + " : COMPLETED");
View Full Code Here

    protected SynapseConfiguration getSynapseConfiguration() throws DeploymentException {
        Parameter synCfgParam =
                cfgCtx.getAxisConfiguration().getParameter(SynapseConstants.SYNAPSE_CONFIG);
        if (synCfgParam == null) {
            throw new DeploymentException("SynapseConfiguration not found. " +
                    "Are you sure that you are running Synapse?");
        }
        return (SynapseConfiguration) synCfgParam.getValue();
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.deployment.DeploymentException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.