stefano     2003/02/23 07:18:37

  Added:       tools/jetty/conf admin.xml jetty.env main.xml
  Log:
  added forehead environment for jetty and the web administration context
  for jetty (I removed security realms but administration binds only to localhost 
which should
  be secure enough for development purposes)
  
  Revision  Changes    Path
  1.1                  xml-cocoon2/tools/jetty/conf/admin.xml
  
  Index: admin.xml
  ===================================================================
  <?xml version="1.0"  encoding="ISO-8859-1"?>
  <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure 1.2//EN" 
"http://jetty.mortbay.org/configure_1_2.dtd";>
  
  <!-- =============================================================== -->
  <!-- Configure the Jetty Server for the Administration Interface     -->
  <!-- =============================================================== -->
  
  <Configure class="org.mortbay.jetty.Server">
  
    <!-- =============================================================== -->
    <!-- Configure the Request Listeners                                 -->
    <!-- =============================================================== -->
  
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <!-- Add and configure a HTTP listener to port 8081                    -->
    <!-- The default port can be changed using: java -Djetty.admin.port=80 -->
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <Call name="addListener">
      <Arg>
        <New class="org.mortbay.http.SocketListener">
          <Set name="Host">127.0.0.1</Set>
          <Set name="Port"><SystemProperty name="jetty.admin.port" 
default="8081"/></Set>
          <Set name="MinThreads">5</Set>
          <Set name="MaxThreads">100</Set>
          <Set name="MaxIdleTimeMs">30000</Set>
          <Set name="LowResourcePersistTimeMs">5000</Set>
        </New>
      </Arg>
    </Call>
  
    <!-- =============================================================== -->
    <!-- Configure the Contexts                                          -->
    <!-- =============================================================== -->
  
    <Call name="addContext">
      <Arg>/</Arg>   
  
      <Call name="addServlet">
        <Arg>Admin</Arg>
        <Arg>/</Arg>
        <Arg>org.mortbay.servlet.AdminServlet</Arg>
      </Call>
      <Call name="setAttribute">
        <Arg>org.mortbay.http.HttpServer</Arg>
        <Arg><Call name="getHttpServer"/></Arg>
      </Call>
    </Call>
  
  </Configure>
  
  
  
  
  
  
  
  1.1                  xml-cocoon2/tools/jetty/conf/jetty.env
  
  Index: jetty.env
  ===================================================================
  # Define the entry-point class
  =[root] org.mortbay.jetty.Server
  
  # Define a classloader named [root]
  [root]
      tools/jetty/lib/*
      lib/endorsed/*
  
  
  
  
  1.1                  xml-cocoon2/tools/jetty/conf/main.xml
  
  Index: main.xml
  ===================================================================
  <?xml version="1.0"  encoding="ISO-8859-1"?>
  <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure 1.2//EN" 
"http://jetty.mortbay.org/configure_1_2.dtd";>
  
  <!-- =============================================================== -->
  <!-- Configure the Jetty Server                                      -->
  <!-- =============================================================== -->
  
  <Configure class="org.mortbay.jetty.Server">
  
    <!-- =============================================================== -->
    <!-- Configure the Request Listeners                                 -->
    <!-- =============================================================== -->
  
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <!-- Add and configure a HTTP listener to port 8888                  -->
    <!-- The default port can be changed using: java -Djetty.port=80     -->
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <Call name="addListener">
      <Arg>
        <New class="org.mortbay.http.SocketListener">
          <Set name="Port"><SystemProperty name="jetty.port" default="8888"/></Set>
          <Set name="MinThreads">5</Set>
          <Set name="MaxThreads">100</Set>
          <Set name="MaxIdleTimeMs">30000</Set>
          <Set name="LowResourcePersistTimeMs">5000</Set>
        </New>
      </Arg>
    </Call>
  
    <!-- =============================================================== -->
    <!-- Configure the Contexts                                          -->
    <!-- =============================================================== -->
  
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <!-- Add root context web applications.                              -->
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
    
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
    <!-- Add a all web application within the webapps directory.         -->
    <!-- + No virtual host specified                                     -->
    <!-- + Look in the webapps directory relative to jetty.home or .     -->
    <!-- + Use the webdefault.xml resource for the defaults descriptor   -->
    <!-- + Upack the war file                                            -->
    <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  
    <Call name="addWebApplication">
      <Arg>/</Arg>
      <Arg><SystemProperty name="webapp" default="."/></Arg>
      <Set name="defaultsDescriptor">./tools/jetty/conf/webdefaults.xml</Set>
    </Call>
  
  </Configure>
  
  
  

Reply via email to