Examples of ConfigurationAlreadyExistsException


Examples of org.apache.geronimo.kernel.config.ConfigurationAlreadyExistsException

                if (log.isDebugEnabled()) {
                    log.debug(location.getPath() + " is empty");
                }
            } else {
                log.error(location.getPath() + " is not an empty directory");
                throw new ConfigurationAlreadyExistsException("Configuration already exists: " + configId);
            }
        } else {
            if (log.isDebugEnabled()) {
                log.debug("Creating configuration directory: " + location.getPath());
            }
            location.mkdirs();
        }
        if (!location.exists()) {
            throw new ConfigurationAlreadyExistsException("Could not create configuration directory: " + location);
        }
        return location;
    }
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationAlreadyExistsException

        File destination = repository.getLocation(configId);

        // if directory in the correct place -- noop
        if (!source.equals(destination)) {
            if (destination.exists()) {
                throw new ConfigurationAlreadyExistsException(configId.toString());
            }

            if (source.isFile()) {
                // Assume this is a jar file
                // copy it into the repository; repository should unpack it
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationAlreadyExistsException

            }

            // 2. Validate that we can install this
            if (!validatePlugin(data)) {
                //already installed
                throw new ConfigurationAlreadyExistsException("Configuration " + toArtifact(data.getPluginArtifact().get(0).getModuleId()) + " is already installed.");
            }

            verifyPrerequisites(data);

            PluginArtifactType instance = data.getPluginArtifact().get(0);
View Full Code Here

Examples of org.dcm4che3.conf.api.ConfigurationAlreadyExistsException

    @Override
    public synchronized void persist(Device device) throws ConfigurationException {
        String deviceName = device.getDeviceName();
        String pathName = deviceRef(deviceName);
        if (PreferencesUtils.nodeExists(rootPrefs, pathName))
            throw new ConfigurationAlreadyExistsException(pathName);

        Preferences deviceNode = rootPrefs.node(pathName);
        storeTo(device, deviceNode);
        storeChilds(device, deviceNode);
        try {
View Full Code Here

Examples of org.dcm4che3.conf.api.ConfigurationAlreadyExistsException

            rollback = true;
            storeChilds(deviceDN, device);
            updateCertificates(device);
            rollback = false;
        } catch (NameAlreadyBoundException e) {
            throw new ConfigurationAlreadyExistsException(deviceName);
        } catch (NamingException e) {
            throw new ConfigurationException(e);
        } catch (CertificateException e) {
            throw new ConfigurationException(e);
        } finally {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.