Examples of DeploymentException


Examples of org.jboss.deployment.DeploymentException

               log.debug("Loaded config: "+configNames[n]);
            }
         }
         else
         {
            throw new DeploymentException("Failed to find authConf as resource: "+authConf);
         }
      }
   }
View Full Code Here

Examples of org.jboss.embedded.api.DeploymentException

         }
         catch (final org.jboss.deployers.spi.DeploymentException de)
         {

            // Construct a new DeploymentException of this API
            final DeploymentException wrappedException = new DeploymentException(de);

            // Remove all previously-added deployables from further MainDeployer processing
            final Iterator<Entry<Deployable, Deployment>> it = deploymentsToBeAdded.entrySet().iterator();
            while (it.hasNext())
            {
View Full Code Here

Examples of org.jboss.testharness.api.DeploymentException

    public DeploymentException getDeploymentException() {
        if (exception instanceof DeploymentException) {
            return (DeploymentException) exception;
        }
        System.out.println("BADCAST");
        return new DeploymentException("", exception);
    }
View Full Code Here

Examples of org.jboss.tmpdpl.api.container.DeploymentException

            mainDeployer.addDeployment(deployment);
         }
         catch (org.jboss.deployers.spi.DeploymentException de)
         {
            // Wrap in our own API's DeploymentException
            throw new DeploymentException(de);
         }

         // Add to the map (so we can undeploy the deployable later)
         this.deployableToDeploymentMap.put(vdfDeployable, deployment);
      }
View Full Code Here

Examples of org.jboss.weld.exceptions.DeploymentException

    private static <T> List<Metadata<T>> checkForDuplicates(List<Metadata<T>> list, LogMessageCallback messageCallback) {
        Map<T, Metadata<T>> map = new HashMap<T, Metadata<T>>();
        for (Metadata<T> item : list) {
            Metadata<T> previousOccurrence = map.put(item.getValue(), item);
            if (previousOccurrence != null) {
                throw new DeploymentException(messageCallback.invoke(item.getValue(), item, previousOccurrence));
            }
        }
        return list;
    }
View Full Code Here

Examples of org.mule.module.launcher.DeploymentException

    private void validateDomain(String domain)
    {
        File domainFolder = new File(MuleContainerBootstrapUtils.getMuleDomainsDir(), domain);
        if (!(domainFolder.exists() && domainFolder.isDirectory()))
        {
            throw new DeploymentException(CoreMessages.createStaticMessage(String.format("Domain %s does not exists", domain)));
        }
    }
View Full Code Here

Examples of org.osgi.service.deploymentadmin.DeploymentException

    private void verifyEntryName(String name) throws DeploymentException {
        byte[] bytes = name.getBytes();
        boolean delimiterSeen = false;
        for (int j = 0; j < bytes.length; j++) {
            if (!VALID_RESOURCE_PATH_CHARS.get(bytes[j])) {
                throw new DeploymentException(CODE_BAD_HEADER, "Resource ID '" + name + "' contains invalid character(s)");
            }
            if (bytes[j] == '/') {
                if (delimiterSeen) {
                    throw new DeploymentException(CODE_BAD_HEADER, "Resource ID '" + name + "' contains multiple consequetive path seperators");
                }
                else {
                    delimiterSeen = true;
                }
            }
View Full Code Here

Examples of org.smartcomps.twister.deployer.exception.DeploymentException

                log.info("<" + e.getName() + ">");
                ActivityDeployer ad = null;
                try {
                    ad = ActivityDeployerFactory.getActivityDeployer(e.getName());
                } catch (DeploymentException ex) {
                    throw new DeploymentException(ex);
                }
                Activity returnedActivity = ad.deploy(e, (StructuredActivity) activity);
                // Setting a flag on a receive if it's immediately followed by a Reply
                if ("receive".equals(e.getName())) {
                    if (i < (eltsSize - 1)) {
View Full Code Here

Examples of org.sonatype.aether.deployment.DeploymentException

    public DeployResult deploy( RepositorySystemSession session, DeployRequest request )
        throws DeploymentException
    {
        if ( session.isOffline() )
        {
            throw new DeploymentException( "The repository system is in offline mode, deployment impossible" );
        }

        SyncContext syncContext = syncContextFactory.newInstance( session, false );

        try
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.