User: jules_gosnell
  Date: 01/04/30 15:46:53

  Added:       jetty/etc jetty.properties jetty.xml
  Log:
  add two configuration files used by Jetty
  
  Revision  Changes    Path
  1.1                  contrib/jetty/etc/jetty.properties
  
  Index: jetty.properties
  ===================================================================
  # Use sun's parser
  
  org.xml.sax.parser=com.sun.xml.parser.Parser
  
  
  
  
  1.1                  contrib/jetty/etc/jetty.xml
  
  Index: jetty.xml
  ===================================================================
  <?xml version="1.0"  encoding="ISO-8859-1"?>
  <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure 1.1//EN" 
"http://jetty.mortbay.com/configure_1_1.dtd";>
  
  <!--
  This is a Jetty HTTP server configuration file.  This configuration
  uses the generic com.mortbay.Util.XmlConfiguration class to call
  the normal com.mortbay.HTTP.HttpServer configuration API from
  within an XML script.
  
  The format of this file is described in the configure.dtd file.
  
  The API that can be called by this file is described in the
  Javadoc for Jetty.
  
  The following concepts must be understood when configuring
  a server:
  
  Listener: is a network interface object that
  accepts HTTP requests for the server. SocketListeners accept
  normal requests, while JsseListeners accept SSL requests.
  The threading model of the server is controlled by the
  listener parameters.
  
  WebApplication: is a bundled collection of resources,
  servlets and configuration that can provide a unified
  WWW application.  It is part of the 2.2 servlet standard.
  The contents of the application are configured by the
  web.xml deployment descriptor within the application.
  The configuration of the application within Jetty requires
  on the context of the application to be set.
  
  Context: is a grouping of server resources that share
  the same URL path prefix, class path and resource base.
  A Web application is an example of a specific context.
  Generic contexts may have arbitrary request handlers
  added to them.  All contexts have a path specification
  (frequently the default "/") and an option virtual
  host alias.
  
  Handler:  Handlers are the objects that actually
  service the HTTP requests. Examples of Handlers include
  ServletHandler, ResourceHandler and NotFoundHandler.
  Handlers are contained within Contexts, which provide
  conveniance methods for the common handlers so
  that servlet and file serving may be configured for
  a context without explicit creation of a Handler.
  
  
  This file configures the demo server and is equivalent
  to the com.mortbay.Jetty.Demo class.
  
  $ID: $
  -->
  
  <Configure class="com.mortbay.HTTP.HttpServer">
    <Call name="addListener">
      <Arg>
        <New class="com.mortbay.HTTP.SocketListener">
          <Set name="Port">8080</Set>
          <Set name="MinThreads">5</Set>
          <Set name="MaxThreads">255</Set>
          <Set name="MaxIdleTimeMs">60000</Set>
          <Set name="MaxReadTimeMs">60000</Set>
        </New>
      </Arg>
    </Call>
  
  
  <!--  Uncomment this to add an SSL listener.
    <Call name="addListener">
      <Arg>
        <New class="com.mortbay.HTTP.SunJsseListener">
          <Set name="Port">8443</Set>
          <Set name="MinThreads">5</Set>
          <Set name="MaxThreads">255</Set>
          <Set name="MaxIdleTimeMs">50000</Set>
          <Set name="Keystore"><SystemProperty name="jetty.home" 
default="."/>/etc/demokeystore</Set>
        <Set name="Password">OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4</Set>
        <Set name="KeyPassword">OBF:1u2u1wml1z7s1z7a1wnl1u2g</Set>
        </New>
      </Arg>
    </Call>
  -->
  
    <Call name="addWebApplication">
      <Arg>/jetty/*</Arg>
      <Arg><SystemProperty name="jetty.home" default="."/>/webapps/jetty</Arg>
      <Arg><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Arg>
      <Arg type="boolean">false</Arg> <!-- dont expand war -->
    </Call>
  
    <Call name="addContext">
      <Arg>/demo/*</Arg>
  
      <!-- Remove this comment for .htaccess handling
      <Call name="addHandler">
        <Arg><New class="com.mortbay.HTTP.Handler.HTAccessHandler">
            <Set name="Default"><SystemProperty name="jetty.home" 
default="."/>/etc/htaccess</Set>
            <Set name="AccessFile">.htaccess</Set></New></Arg>
      </Call>
      -->
  
      <Call name="addServlet">
        <Arg>Dump</Arg>
        <Arg>/dump/*,*.DUMP</Arg>
        <Arg>com.mortbay.Servlet.Dump</Arg>
        <Put name="InitParam">Value</Put>
      </Call>
      <Call name="addServlet">
        <Arg>Session</Arg>
        <Arg>/session</Arg>
        <Arg>com.mortbay.Servlet.SessionDump</Arg>
      </Call>
      <Call name="addServlet">
        <Arg>Dispatch</Arg>
        <Arg>/Dispatch/*</Arg>
        <Arg>com.mortbay.Servlet.RequestDispatchTest</Arg>
      </Call>
      <Call name="addServlet">
        <Arg>JSP</Arg>
        <Arg>*.jsp,*.jsP,*.jSp,*.jSP,*.Jsp,*.JsP,*.JSp,*.JSP</Arg>
        <Arg>org.apache.jasper.servlet.JspServlet</Arg>
      </Call>   
  
      <Set name="ResourceBase"><SystemProperty name="jetty.home" 
default="."/>/docroot/</Set>
      <Set name="ServingResources">TRUE</Set>
      <Call name="addHandler">
        <Arg><New class="com.mortbay.HTTP.Handler.DumpHandler"/></Arg>
      </Call>
      <Set name="HttpServerAccess">TRUE</Set>
  
      <Call name="addHandler">
        <Arg type="int">0</Arg>
        <Arg>
          <New class="com.mortbay.HTTP.Handler.ForwardHandler">
            <Arg>/dump/forwardedRoot</Arg>
            <Call 
name="addForward"><Arg>/forward/*</Arg><Arg>/dump/forwarded</Arg></Call>
          </New>
        </Arg>
      </Call>
    </Call>
  
    <Call name="addContext">
      <Arg>/javadoc/*</Arg>
      <Set name="ResourceBase"><SystemProperty name="jetty.home" 
default="."/>/javadoc/</Set>
      <Set name="ServingResources">TRUE</Set>
    </Call>
  
    <Call name="addContext">
      <Arg>/cgi-bin/*</Arg>
      <Set name="ResourceBase"><SystemProperty name="jetty.home" 
default="."/>/cgi-bin</Set>
      <Call name="addServlet">
        <Arg>Common Gateway Interface</Arg>
        <Arg>/</Arg>
        <Arg>com.mortbay.Servlet.CGI</Arg>
       <Put name="Path">/bin:/usr/bin:/usr/local/bin</Put>
      </Call>
    </Call>
  
    <Call name="addContext">
      <Arg>/</Arg>
      <Set name="ClassPath"><SystemProperty name="jetty.home" 
default="."/>/servlets/</Set>
      <Set name="DynamicServletPathSpec">/servlet/*</Set>
      <Call name="getServletHandler">
        <Set name="ServeDynamicSystemServlets" type="boolean">FALSE</Set>
      </Call>
      <Call name="addHandler">
        <Arg type="int">0</Arg>
        <Arg>
          <New class="com.mortbay.HTTP.Handler.ForwardHandler">
            <Arg>/jetty/index.html</Arg>
          </New>
        </Arg>
      </Call>
      <Set name="ResourceBase"><SystemProperty name="jetty.home" 
default="."/>/etc/dtd/</Set>
      <Set name="ServingResources">TRUE</Set>
    </Call>
  
    <Call name="addRealm">
      <Arg>
        <New class="com.mortbay.HTTP.HashUserRealm">
          <Arg>Jetty Demo Realm</Arg>
          <Arg><SystemProperty name="jetty.home" 
default="."/>/etc/demoRealm.properties</Arg>
        </New>
      </Arg>
    </Call>
  
  <!--
    <Set name="LogSink">
      <New class="com.mortbay.Util.RolloverFileLogSink">
        <Set name="LogDir"><SystemProperty name="jetty.home"/>/logs</Set>
        <Set name="RetainDays">90</Set>
        <Set name="MultiDay">false</Set>
        <Set name="Append">true</Set>
      </New>
    </Set>
  -->
  
  </Configure>
  
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to