Search in sources :

Example 6 with WebInfConfiguration

use of org.eclipse.jetty.webapp.WebInfConfiguration in project joynr by bmwcarit.

the class ServersUtil method createBounceproxyControllerWebApp.

public static WebAppContext createBounceproxyControllerWebApp(String warFileName, String parentContext, Properties props) {
    WebAppContext bounceproxyWebapp = new WebAppContext();
    bounceproxyWebapp.setContextPath(createContextPath(parentContext, BOUNCEPROXYCONTROLLER_CONTEXT));
    bounceproxyWebapp.setWar("target/" + warFileName + ".war");
    if (props != null) {
        bounceproxyWebapp.setConfigurations(new Configuration[] { new WebInfConfiguration(), new WebXmlConfiguration(), new SystemPropertyServletConfiguration(props) });
    }
    // Makes jetty load classes in the same order as JVM. Otherwise there's
    // a conflict loading loggers.
    bounceproxyWebapp.setParentLoaderPriority(true);
    return bounceproxyWebapp;
}
Also used : WebAppContext(org.eclipse.jetty.webapp.WebAppContext) WebXmlConfiguration(org.eclipse.jetty.webapp.WebXmlConfiguration) WebInfConfiguration(org.eclipse.jetty.webapp.WebInfConfiguration) SystemPropertyServletConfiguration(io.joynr.integration.setup.SystemPropertyServletConfiguration)

Example 7 with WebInfConfiguration

use of org.eclipse.jetty.webapp.WebInfConfiguration in project joynr by bmwcarit.

the class ServersUtil method createControlledBounceproxyWebApp.

public static WebAppContext createControlledBounceproxyWebApp(String parentContext, Properties props) {
    WebAppContext bounceproxyWebapp = new WebAppContext();
    bounceproxyWebapp.setContextPath(createContextPath(parentContext, BOUNCEPROXY_CONTEXT));
    bounceproxyWebapp.setWar("target/controlled-bounceproxy.war");
    if (props != null) {
        bounceproxyWebapp.setConfigurations(new Configuration[] { new WebInfConfiguration(), new WebXmlConfiguration(), new SystemPropertyServletConfiguration(props) });
    }
    // Makes jetty load classes in the same order as JVM. Otherwise there's
    // a conflict loading loggers.
    bounceproxyWebapp.setParentLoaderPriority(true);
    return bounceproxyWebapp;
}
Also used : WebAppContext(org.eclipse.jetty.webapp.WebAppContext) WebXmlConfiguration(org.eclipse.jetty.webapp.WebXmlConfiguration) WebInfConfiguration(org.eclipse.jetty.webapp.WebInfConfiguration) SystemPropertyServletConfiguration(io.joynr.integration.setup.SystemPropertyServletConfiguration)

Aggregations

WebAppContext (org.eclipse.jetty.webapp.WebAppContext)7 WebInfConfiguration (org.eclipse.jetty.webapp.WebInfConfiguration)7 WebXmlConfiguration (org.eclipse.jetty.webapp.WebXmlConfiguration)7 AnnotationConfiguration (org.eclipse.jetty.annotations.AnnotationConfiguration)5 FragmentConfiguration (org.eclipse.jetty.webapp.FragmentConfiguration)5 MetaInfConfiguration (org.eclipse.jetty.webapp.MetaInfConfiguration)5 EnvConfiguration (org.eclipse.jetty.plus.webapp.EnvConfiguration)4 PlusConfiguration (org.eclipse.jetty.plus.webapp.PlusConfiguration)4 SystemPropertyServletConfiguration (io.joynr.integration.setup.SystemPropertyServletConfiguration)2 File (java.io.File)2 Server (org.eclipse.jetty.server.Server)2 JettyWebXmlConfiguration (org.eclipse.jetty.webapp.JettyWebXmlConfiguration)2 EmbeddedJetty (com.github.mjeanroy.junit.servers.jetty.EmbeddedJetty)1 EmbeddedJettyConfiguration (com.github.mjeanroy.junit.servers.jetty.EmbeddedJettyConfiguration)1 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 URL (java.net.URL)1 ArrayList (java.util.ArrayList)1 JasperInitializer (org.apache.jasper.servlet.JasperInitializer)1 InstanceManager (org.apache.tomcat.InstanceManager)1 SimpleInstanceManager (org.apache.tomcat.SimpleInstanceManager)1