Package org.apache.catalina.startup.Tomcat

Examples of org.apache.catalina.startup.Tomcat.DefaultWebXmlListener


          initSimpleAuth();
      }
      standardContext.setRealm(defaultRealm);
       */

      ctx.addLifecycleListener(new DefaultWebXmlListener());

      ContextConfig ctxCfg = new EmbeddedContextConfig(); // Arquillian hook to add META-INF/context.xml processing
      ctx.addLifecycleListener(ctxCfg);

      // prevent it from looking ( if it finds one - it'll have dup error )
View Full Code Here


    // setup a context
    Context context = new StandardContext();
    context.setName("/");
    context.setPath("/");
    context.setDocBase(appDocBase);
    context.addLifecycleListener(new DefaultWebXmlListener());
    context.setSessionTimeout(30);
    for (int i = 0; i < DEFAULT_MIME_MAPPINGS.length;) {
      context.addMimeMapping(DEFAULT_MIME_MAPPINGS[i++], DEFAULT_MIME_MAPPINGS[i++]);
    }
    context.addWelcomeFile("index.jsp");
View Full Code Here

    // setup a context
    Context context = new StandardContext();
    context.setName("/");
    context.setPath("/");
    context.setDocBase(appDocBase);
    context.addLifecycleListener(new DefaultWebXmlListener());
    context.setSessionTimeout(30);
    for (int i = 0; i < DEFAULT_MIME_MAPPINGS.length;) {
      context.addMimeMapping(DEFAULT_MIME_MAPPINGS[i++], DEFAULT_MIME_MAPPINGS[i++]);
    }
    context.addWelcomeFile("index.jsp");
View Full Code Here

TOP

Related Classes of org.apache.catalina.startup.Tomcat.DefaultWebXmlListener

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.