Package org.mortbay.xml

Examples of org.mortbay.xml.XmlConfiguration.configure()


        properties.put("Server", _contexts.getServer());
        if (_configMgr!=null)
            properties.putAll(_configMgr.getProperties());
          
        xmlConfiguration.setProperties(properties);
        ContextHandler context=(ContextHandler)xmlConfiguration.configure();
        return context;
    }

}
View Full Code Here


        properties.put("Server", _contexts.getServer());
        if (_configMgr!=null)
            properties.putAll(_configMgr.getProperties());
          
        xmlConfiguration.setProperties(properties);
        ContextHandler context=(ContextHandler)xmlConfiguration.configure();
        return context;
    }

}
View Full Code Here

  public void run() {
    server = new Server();
    XmlConfiguration configuration;
    try {
      configuration = new XmlConfiguration(serverConf);
      configuration.configure(server);
      server.start();
    } catch (Exception e) {
      log.error(ExceptionUtil.getStackTrace(e));
    }    
  }
View Full Code Here

            LOG.info( "configuring jetty http server from the configuration file {}", confFile );

            try
            {
                jetty = new Server();
                jettyConf.configure( jetty );
                configured = true;
            }
            catch ( Exception e )
            {
                LOG.error( I18n.err( I18n.ERR_120 ) );
View Full Code Here

            if (appHome != null)
            {
                config.getProperties().put(MuleProperties.APP_HOME_DIRECTORY_PROPERTY, appHome);
            }

            config.configure(httpServer);
        }
        catch (Exception e)
        {
            throw new InitialisationException(e, this);
        }
View Full Code Here

      configurationClasses.addAll(Arrays.asList(bb.getConfigurationClasses()));
      bb.setConfigurationClasses(configurationClasses.toArray(new String[0]));
     
      Resource jettyEnvXml = Resource.newResource("src/main/webapp/WEB-INF/jetty-env.xml");
      XmlConfiguration config = new XmlConfiguration(jettyEnvXml.getURL());
      config.configure(bb);
     
      server.addHandler(bb);

      try
      {
View Full Code Here

            LOG.info( "configuring jetty http server from the configuration file {}", confFile );

            try
            {
                jetty = new Server();
                jettyConf.configure( jetty );
                configured = true;
            }
            catch ( Exception e )
            {
                LOG.error( "Failed to configure the jetty http server" );
View Full Code Here

      }

      XmlConfiguration xmlconfig = new XmlConfiguration(new FileInputStream(configFile));
      Map props = xmlconfig.getProperties();
      props.put("port", port);
      xmlconfig.configure(server);

      WebAppContext webapp = new WebAppContext();
      webapp.setResourceBase(instancePath);

      Resource resource = InheritingFileResource.newResource(instancePath, persvrHome);
View Full Code Here

    if(configs.getJettyXML() != null && !"".equals(configs.getJettyXML().trim())){
      System.err.println("Loading Jetty.xml:"+configs.getJettyXML());
      try{
        XmlConfiguration configuration = new XmlConfiguration(
            new File(configs.getJettyXML()).toURI().toURL());
        configuration.configure(server);
      }catch(Exception ex){
        System.err.println("Exception happened when loading Jetty.xml:");
        ex.printStackTrace();
      }
    }
View Full Code Here

        {
            String currConfigurationLocation = this.configurationLocations[i];
            this.getLogger().info("Loading the Jetty serviceConfiguration file : " + currConfigurationLocation);
            InputStream is = this.locate(this.serviceApplicationDir, currConfigurationLocation);
            XmlConfiguration configuration = new XmlConfiguration(is);
            configuration.configure(currServer);
            is.close();
        }

        this.server = currServer;
    }
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.