Examples of StartException


Examples of org.jboss.msc.service.StartException

               deploymentMD = activator.doDeploy();
            } finally {
               Thread.currentThread().setContextClassLoader(old);
            }
        } catch (Throwable e) {
            throw new StartException("Failed to activate resource adapter " + deploymentName, e);
        }

        value = new ResourceAdapterDeployment(deploymentMD);
        registry.getValue().registerResourceAdapterDeployment(value);
        managementRepository.getValue().getConnectors().add(value.getDeployment().getConnector());
View Full Code Here

Examples of org.jboss.msc.service.StartException

            byte[] rootContextId = "root".getBytes();
            namingPOA.activate_object_with_id(rootContextId, ns);
            namingService = NamingContextExtHelper.narrow(namingPOA.create_reference_with_id(rootContextId,
                    "IDL:omg.org/CosNaming/NamingContextExt:1.0"));
        } catch (Exception e) {
            throw new StartException("Failed to start the CORBA Naming Service", e);
        }

        // bind the corba naming service to JNDI.
        CorbaServiceUtil.bindObject(context.getChildTarget(), "corbanaming", namingService);
View Full Code Here

Examples of org.jboss.msc.service.StartException

            // bind the ORB to JNDI under java:/jboss/orb.
            ServiceTarget target = context.getChildTarget();
            CorbaServiceUtil.bindObject(target, "orb", this.orb);
        } catch (Exception e) {
            throw new StartException(e);
        }

        CorbaUtils.setOrbProperties(properties);

        log.info("CORBA ORB Service Started");
View Full Code Here

Examples of org.jboss.msc.service.StartException

            CommonDeployment raxmlDeployment = null;
            try {
                raxmlDeployment = raDeployer.doDeploy();
            } catch (Throwable t) {
                throw new StartException("Failed to start RA deployment [" + deploymentName + "]", t);
            }

            value = new ResourceAdapterDeployment(raxmlDeployment);

            registry.getValue().registerResourceAdapterDeployment(value);
            managementRepository.getValue().getConnectors().add(value.getDeployment().getConnector());
        } catch (Exception e) {
            throw new StartException(e);
        }
    }
View Full Code Here

Examples of org.jboss.msc.service.StartException

        try {
            final ServiceContainer container = startContext.getController().getServiceContainer();

            CommonDeployment deploymentMD = getDeployer().deploy(container);
            if (deploymentMD.getCfs().length != 1) {
                throw new StartException("unable to start the ds because it generate more than one cf");
            }
            sqlDataSource = (javax.sql.DataSource) deploymentMD.getCfs()[0];
            log.debugf("Adding datasource: %s", deploymentMD.getCfJndiNames()[0]);
        } catch (Throwable t) {
            throw new StartException("Error during the deployment of " + jndiName, t);
        }
    }
View Full Code Here

Examples of org.jboss.msc.service.StartException

        raDeployer.setConfiguration(config.getValue());

        try {
            raDeployment = raDeployer.doDeploy();
        } catch (Throwable t) {
            throw new StartException("Failed to start RA deployment [" + deploymentName + "]", t);
        }

        value = new ResourceAdapterDeployment(raDeployment);
        registry.getValue().registerResourceAdapterDeployment(value);
        managementRepository.getValue().getConnectors().add(value.getDeployment().getConnector());
View Full Code Here

Examples of org.jboss.msc.service.StartException

        URL url = find(resource, JGroupsExtension.class.getClassLoader());
        ROOT_LOGGER.debugf("Loading JGroups protocol defaults from %s", url.toString());
        try {
            return XmlConfigurator.getInstance(url);
        } catch (IOException e) {
            throw new StartException(MESSAGES.parserFailure(url));
        }
    }
View Full Code Here

Examples of org.jboss.msc.service.StartException

                if (url != null) {
                    return url;
                }
            }
        }
        throw new StartException(MESSAGES.notFound(resource));
    }
View Full Code Here

Examples of org.jboss.msc.service.StartException

    public void start(StartContext arg0) throws StartException {
        try {
            this.channel = this.factory.getValue().createChannel(this.id);
            this.channel.connect(this.id, null, 0);
        } catch (Exception e) {
            throw new StartException(e);
        }
    }
View Full Code Here

Examples of org.jboss.msc.service.StartException

    public synchronized int incrementUsers() throws StartException {
        if (count == 0) {
            try {
                ctx = startWebApp(host);
            } catch (Exception e) {
                throw new StartException(e);
            }
        }
        return count++;
    }
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.