Package org.apache.geronimo.deployment

Examples of org.apache.geronimo.deployment.DeploymentException


                type = attribute.getType();
            }

            PropertyEditor editor = PropertyEditors.findEditor(type, classLoader);
            if (editor == null) {
                throw new DeploymentException("Unable to find PropertyEditor for " + type);
            }
            editor.setAsText(text);
            Object value = editor.getValue();
            gbean.setAttribute(name, value);
        } catch (ClassNotFoundException e) {
            throw new DeploymentException("Unable to find PropertyEditor for " + type, e);
        } catch (Exception e) {
            throw new DeploymentException("Unable to set attribute " + name + " to " + text, e);
        }
    }
View Full Code Here


        Set patternNames = new HashSet(patterns.length);
        for (int i = 0; i < patterns.length; i++) {
            try {
                patternNames.add(new ObjectName(patterns[i]));
            } catch (MalformedObjectNameException e) {
                throw new DeploymentException("Invalid pattern for reference " + name + ": " + patterns[i], e);
            }
        }
        gbean.setReferencePatterns(name, patternNames);
    }
View Full Code Here

            URI ejbURI = new URI(null, null, modulePath.getPath(), name);
            references.put(ejbURI, containerId);
            URI moduleURI = new URI(null, null, modulePath.getPath(), null);
            interfacesReferences.put(moduleURI, containerId);
        } catch (URISyntaxException e) {
            throw new DeploymentException(e);
        }
    }
View Full Code Here

        try {
            URI cfURI = new URI(null, null, modulePath.getPath(), name);
            references.put(cfURI, containerId);
        } catch (URISyntaxException e) {
            throw new DeploymentException(e);
        }
    }
View Full Code Here

        try {
            URI cfURI = new URI(null, null, modulePath.getPath(), name);
            references.put(cfURI, containerId);
        } catch (URISyntaxException e) {
            throw new DeploymentException(e);
        }
    }
View Full Code Here

        try {
            URI cfURI = new URI(null, null, modulePath.getPath(), name);
            references.put(cfURI, containerId);
        } catch (URISyntaxException e) {
            throw new DeploymentException(e);
        }
    }
View Full Code Here

        } catch (UnknownEJBRefException e) {
            ObjectName query = null;
            try {
                query = NameFactory.getComponentRestrictedQueryName(null, null, name, NameFactory.JCA_RESOURCE_ADAPTER, j2eeContext);
            } catch (MalformedObjectNameException e1) {
                throw new DeploymentException("Could not construct resource adapter object name query", e);
            }
            ObjectName containerName = resourceReferenceBuilder.locateResourceName(query);
            return containerName.getCanonicalName();
        }
    }
View Full Code Here

        } catch (UnknownEJBRefException e) {
            ObjectName query = null;
            try {
                query = NameFactory.getComponentRestrictedQueryName(null, null, name, NameFactory.JCA_MANAGED_CONNECTION_FACTORY, j2eeContext);
            } catch (MalformedObjectNameException e1) {
                throw new DeploymentException("Could not construct connection factory object name query", e);
            }
            ObjectName containerName = resourceReferenceBuilder.locateResourceName(query);
            return containerName.getCanonicalName();
        }
    }
View Full Code Here

        } catch (UnknownEJBRefException e) {
            ObjectName query = null;
            try {
                query = NameFactory.getComponentRestrictedQueryName(null, null, name, NameFactory.JCA_ADMIN_OBJECT, j2eeContext);
            } catch (MalformedObjectNameException e1) {
                throw new DeploymentException("Could not construct admin object object name query", e);
            }
            ObjectName containerName = resourceReferenceBuilder.locateResourceName(query);
            return containerName.getCanonicalName();
        }
    }
View Full Code Here

    //Resource adapter/activationspec support

    public void addActivationSpecInfos(ObjectName resourceAdapterName, Map activationSpecInfoMap) throws DeploymentException {
        Object old = activationSpecInfos.put(resourceAdapterName, activationSpecInfoMap);
        if (old != null) {
            throw new DeploymentException("Duplicate resource adapter name: " + resourceAdapterName);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.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.