Package org.jboss.msc.service

Examples of org.jboss.msc.service.StartException


    public void start(final StartContext context) throws StartException {
        try {
            serverConfig.create();
        } catch (final Exception e) {
            ROOT_LOGGER.configServiceCreationFailed();
            throw new StartException(e);
        }
    }
View Full Code Here


            ServiceTarget serviceTarget = context.getChildTarget();
            BundleManagerService bundleManager = injectedBundleManager.getValue();
            installedBundleName = bundleManager.installBundle(serviceTarget, deployment);
            injectedStartTracker.getValue().addInstalledBundle(installedBundleName, deployment);
        } catch (Throwable t) {
            throw new StartException(MESSAGES.failedToInstallDeployment(deployment), t);
        }
    }
View Full Code Here

        context.setThreadBindingListener(new ThreadSetupBindingListener(actions));
        try {
            try {
                context.create();
            } catch (Exception e) {
                throw new StartException(MESSAGES.createContextFailed(), e);
            }
            try {
                context.start();
            } catch (LifecycleException e) {
                throw new StartException(MESSAGES.startContextFailed(), e);
            }
            if (context.getState() != 1) {
                throw new StartException(MESSAGES.startContextFailed());
            }
            WebLogger.WEB_LOGGER.registerWebapp(context.getName());
        } finally {
            JsfInjectionProvider.getInjectionContainer().set(null);
        }
View Full Code Here

        try {
            ServiceTarget serviceTarget = context.getChildTarget();
            BundleManagerService bundleManager = injectedBundleManager.getValue();
            installedBundleName = bundleManager.registerModule(serviceTarget, module, metadata);
        } catch (Throwable t) {
            throw new StartException(MESSAGES.failedToRegisterModule(module), t);
        }
    }
View Full Code Here

        try {
            server.init();
            server.start();
        } catch (Exception e) {
            throw new StartException(MESSAGES.errorStartingWeb(), e);
        }
        this.server = server;
        this.service = service;
        this.engine = engine;
    }
View Full Code Here

            JMXServiceURL url = buildJMXServiceURL();
            adapter = new RMIConnectorServer(url, env, rmiServer, injectedMBeanServer.getValue());
            adapter.start();
            registry.rebind(RMI_BIND_NAME, rmiServer.toStub());
        } catch (Exception e) {
            throw new StartException(e);
        }
    }
View Full Code Here

        };
        try {
            MBeanServer mbeanServer = injectedMBeanServer.getValue();
            mbeanServer.registerMBean(new StandardMBean(mbean, ManagedServiceContainer.class), OBJECT_NAME);
        } catch (Exception ex) {
            new StartException("Cannot register: " + OBJECT_NAME, ex);
        }
    }
View Full Code Here

        } catch (StartException e) {
          context.failed(e);

        } catch (Throwable e) {
          context.failed(new StartException(e));

        }
      }
    });
  }
View Full Code Here

    } catch (StartException e) {
      throw e;

    } catch (Exception e) {
      throw new StartException(e);

    } finally {
      if(reference != null) {
        reference.release();
      }
View Full Code Here

            postDeployMethod.invoke(processApplication.getRawObject(), getInjections(postDeployMethod));
            return null;
          }
        });
      }catch(Exception e) {
        throw new StartException("Exception while invoking the @PostDeploy method ", e);
      }
    }

  }
View Full Code Here

TOP

Related Classes of org.jboss.msc.service.StartException

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.