Examples of WebXmlConfiguration


Examples of org.eclipse.jetty.webapp.WebXmlConfiguration

        context.setAttribute("org.eclipse.jetty.websocket.jsr356",Boolean.TRUE);

        // @formatter:off
        context.setConfigurations(new Configuration[] {
                new AnnotationConfiguration(),
                new WebXmlConfiguration(),
                new WebInfConfiguration(),
                new PlusConfiguration(),
                new MetaInfConfiguration(),
                new FragmentConfiguration(),
                new EnvConfiguration()});
View Full Code Here

Examples of org.eclipse.jetty.webapp.WebXmlConfiguration

    //context.setResourceBase("H:\\codes\\opensources\\github\\super-diamond\\super-diamond-server\\src\\main\\webapp");
    context.setContextPath("/superdiamond");
    context.setConfigurations(new Configuration[]{
        new AnnotationConfiguration(),
         new WebInfConfigurationExt(),
         new WebXmlConfiguration(),
             new MetaInfConfiguration(),
             new FragmentConfiguration(),
             new JettyWebXmlConfiguration()});
    context.setThrowUnavailableOnStartupException(true);
    context.setParentLoaderPriority(true);
View Full Code Here

Examples of org.eclipse.jetty.webapp.WebXmlConfiguration

        path = String.format("/%s", UriComponent.decodePath(u.getPath(), true).get(1).toString());
        WebAppContext context = new WebAppContext();
        context.setDisplayName("JettyContext");
        context.setContextPath(path);
        context.setConfigurations(new Configuration[]{new WebXmlConfiguration()});
        ServletHolder holder;
        if (c != null) {
            holder = context.addServlet(c, "/*");
        } else {
            holder = new ServletHolder(servlet);
View Full Code Here

Examples of org.eclipse.jetty.webapp.WebXmlConfiguration

      File warDir = new File(buildDirectory, finalName);
      File warFile = new File(buildDirectory, finalName + ".war");
      File webXmlFile = new File(warDir, webXml);
      FileUtils.copyFile(new File(basedir, "src/main/webapp/" + webXml), webXmlFile);
     
      Configuration[] configurations = new Configuration[] { new WebXmlConfiguration(), new FragmentConfiguration() };
      WebAppContext context = new WebAppContext();
      context.setDefaultsDescriptor(null);
      context.setDescriptor(webXmlFile.getAbsolutePath());
      context.setConfigurations(configurations);
     
View Full Code Here

Examples of org.eclipse.jetty.webapp.WebXmlConfiguration

        // JQM configuration should be on the class path
        webAppContext.setExtraClasspath("conf/jqm.properties");

        // Set configurations (order is important: need to unpack war before reading web.xml)
        webAppContext.setConfigurations(new Configuration[] { new WebInfConfiguration(), new WebXmlConfiguration(),
                new MetaInfConfiguration(), new FragmentConfiguration(), new AnnotationConfiguration(), new TagLibConfiguration() });

        h.addHandler(webAppContext);
    }
View Full Code Here

Examples of org.eclipse.jetty.webapp.WebXmlConfiguration

    throws Exception
    {
        super();  
        setConfigurations(new Configuration[]{
                new MavenWebInfConfiguration(),
                new WebXmlConfiguration(),
                new MetaInfConfiguration(),
                new FragmentConfiguration(),
                _envConfig = new EnvConfiguration(),
                new PlusConfiguration(),
                new AnnotationConfiguration(),
View Full Code Here

Examples of org.eclipse.jetty.webapp.WebXmlConfiguration

                }
            });

            JettyWebAppContext context = new JettyWebAppContext();
            context.setWebInfLib(ImmutableList.copyOf(jars));
            Configuration[] contextConfigs = {new WebXmlConfiguration(), new WebInfConfiguration()};
            context.setConfigurations(contextConfigs);
            context.setDescriptor(webXml);
            context.setResourceBases(new String[] {sourcePath});
            context.setContextPath(contextPath);
            context.setParentLoaderPriority(true);
View Full Code Here

Examples of org.mortbay.jetty.webapp.WebXmlConfiguration

        server = new Server();

        explodedWarDir = WarExploder.getExplodedDir();
        WebAppContext context = new WebAppContext(explodedWarDir.getPath(), contextPath);
        context.setClassLoader(getClass().getClassLoader());
        context.setConfigurations(new Configuration[]{new WebXmlConfiguration(), new NoListenerConfiguration()});
        server.setHandler(context);
        context.setMimeTypes(MIME_TYPES);
        if(Functions.isWindows()) {
            // this is only needed on Windows because of the file
            // locking issue as described in JENKINS-12647
View Full Code Here

Examples of org.mortbay.jetty.webapp.WebXmlConfiguration

    String webXmlUrlString = webXmlUrl.toExternalForm();
    String oldProp = System.getProperty("org.mortbay.xml.XmlParser.Validating",
        "false");
    try {
      System.setProperty("org.mortbay.xml.XmlParser.Validating", "false");
      WebXmlConfiguration wxc = new WebXmlConfiguration();
      ServletHandler myServletHandler = new ServletHandler();
      wxc.setWebAppContext(new WebAppContext(null, null, myServletHandler, null));
      wxc.configure(webXmlUrlString);
      ServletMapping[] mappings = myServletHandler.getServletMappings();
      ServletHolder[] servlets = myServletHandler.getServlets();
      Map<String, String> servletNameToClassName = new HashMap<String, String>();
      Map<String, Set<String>> classNameToPaths = new HashMap<String, Set<String>>();
      Map<String, String> classNameToServletName = new HashMap<String, String>();
View Full Code Here

Examples of org.mortbay.jetty.webapp.WebXmlConfiguration

    protected ServletContext createWebServer() throws Exception {
        server = new Server();

        WebAppContext context = new WebAppContext(WarExploder.getExplodedDir().getPath(), contextPath);
        context.setClassLoader(getClass().getClassLoader());
        context.setConfigurations(new Configuration[]{new WebXmlConfiguration(), new NoListenerConfiguration()});
        server.setHandler(context);
        context.setMimeTypes(MIME_TYPES);

        SocketConnector connector = new SocketConnector();
        connector.setHeaderBufferSize(12*1024); // use a bigger buffer as Stapler traces can get pretty large on deeply nested URL
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.