Package org.emrys.webosgi.core

Examples of org.emrys.webosgi.core.ServiceInitException


      if (!getWebContainer().getAllBundledServletContext().contains(
          servletContext)) {
        getWebContainer().regServletContext(servletContext);
      }
    } catch (Exception e) {
      throw new ServiceInitException(new Status(Status.ERROR, bundle
          .getSymbolicName(), "Web Service init failed.", e));
    }

    // Parse JavaEE Configuration to servlet context.
    // avoid dom4j using SAXParser provided from server
View Full Code Here


    initWebConfig();
  }

  public void startDynamicServices() throws ServiceInitException {
    if (!fwkRuntime.isFwkInited())
      throw new ServiceInitException(
          new Status(Status.ERROR, bundle.getSymbolicName(),
              "The web bundle cann't active before web container initiliazed."));

    synchronized (this) {
      // Only call once.
View Full Code Here

    try {
      getWebContainer().activeServletContext(servletContext);
      initFilters();
      initOnStartServlet();
    } catch (Throwable t) {
      throw new ServiceInitException(new Status(Status.ERROR, bundle
          .getSymbolicName(), "Web Service init failed.", t));
    }
  }
View Full Code Here

      initServlets(doc);
      initOthers(doc);
      webContainer.refresh();
    } catch (Exception e) {
      e.printStackTrace();
      throw new ServiceInitException(new Status(Status.ERROR, bundle
          .getSymbolicName(), "Initialize Web.xml configre failed["
          + this.getWebContextPath() + "].", e));
    }
  }
View Full Code Here

            .getFrameworkAttribute(ATTR_FWK_OSGI_EMBEDDED);
        if (osgiEmbeddedLauncher == null
            || osgiEmbeddedLauncher.equals(Boolean.FALSE)) {
          if (hostWebActivator == null
              || !hostWebActivator.isWebServiceStarted()) {
            throw new ServiceInitException(
                new Status(
                    Status.ERROR,
                    fwkActivator.getBundleSymbleName(),
                    "Host Web Component not started. The framework maybe not able to work normally."));
          }
View Full Code Here

TOP

Related Classes of org.emrys.webosgi.core.ServiceInitException

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.