Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > 8158b2b8d550f6c5633c70687c478497 > files > 37

jetty5-5.1.12-1.0.7mdv2008.1.x86_64.rpm

<?xml version="1.0"  encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">

<!--

Configuration file for Watchdog tests.

Instructions for running Watchdog on Windows
============================================

  1. Check out latest version of Jetty (see http://sourceforge.net/cvs/?group_id=7322)
  2. Build Jetty
  3. Download latest binary build of Watchdog (from http://jakarta.apache.org/builds/jakarta-watchdog-4.0/nightly/)
  4. Unzip the Watchdog into a directory, from now on referred to as %WATCHDOG_HOME%
  5. Copy the test servlet and jsp web applications (servlet-tests.war and jsp-tests.war respectively) from
     %WATCHDOG_HOME%/webapps to %JETTY_HOME%/webapps
  6. Start Jetty with the watchdog configuration
  7. Run the watchdog tests, there are three different targets in the %WATCHDOG_HOME%/build.xml file:
       - servlet
       - jsp
       - jsp-xml
     To run the tests you will need to have ant 1.3 or later.  There are also convenience targets that run
     combinations of the above tests.  See the %WATCHDOG_HOME%/build.xml file for more details on available targets.
     Run the tests with the following command line (assumes ant is in your path):
       > cd %WATCHDOG_HOME%
       > ant servlet

     Due to problems with standard localhost setups, you may need to specify the local host with
       > ant -Dhost=127.0.0.1 servlet

Instructions for running Watchdog on Linux
==========================================

  1. Check out latest version of Jetty (see http://sourceforge.net/cvs/?group_id=7322)
  2. Build Jetty
  3. Download latest binary build of Watchdog (from http://jakarta.apache.org/builds/jakarta-watchdog-4.0/nightly/)
  4. Untar the Watchdog into a directory, from now on referred to as $WATCHDOG_HOME
  5. Copy the test servlet and jsp web applications (servlet-tests.war and jsp-tests.war respectively) from
     $WATCHDOG_HOME/webapps to $JETTY_HOME/webapps
  6. Start Jetty with the watchdog configuration
  7. Run the watchdog tests, there are three different targets in the $WATCHDOG_HOME/build.xml file:
       - servlet
       - jsp
       - jsp-xml
     To run the tests you will need to have ant 1.3 or later.  There are also convenience targets that run
     combinations of the above tests.  See the $WATCHDOG_HOME/build.xml file for more details on available targets.
     Run the tests with the following command line (assumes ant is in your path):
       $ cd $WATCHDOG_HOME
       $ ant servlet

-->

<Configure class="org.mortbay.jetty.Server">
  <Call name="addListener">
    <Arg>
      <New class="org.mortbay.http.SocketListener">
        <Set name="Port"><SystemProperty name="jetty.port" default="8080"/></Set>
        <Set name="MinThreads">8</Set>
        <Set name="MaxThreads">64</Set>
        <Set name="MaxIdleTimeMs">60000</Set>
        <Set name="LowResourcePersistTimeMs">5000</Set>
      </New>
    </Arg>
  </Call>

  <Call name="addListener">
    <Arg>
      <New class="org.mortbay.http.ajp.AJP13Listener">
        <Set name="Port"><SystemProperty name="jetty.port" default="8009"/></Set>
        <Set name="MinThreads">5</Set>
        <Set name="MaxThreads">255</Set>
        <Set name="MaxIdleTimeMs">0</Set>
        <Set name="confidentialPort">443</Set>
      </New>
    </Arg>
  </Call>

  <Call name="addWebApplication">
    <Arg>/servlet-tests/*</Arg>
    <Arg>webapps/servlet-tests.war</Arg>
    <Set name="extractWAR">true</Set>
  </Call>

  <Call name="addWebApplication">
    <Arg>/servlet-compat/*</Arg>
    <Arg>webapps/servlet-compat.war</Arg>
    <Set name="extractWAR">true</Set>
  </Call>

  <Call name="addWebApplication">
    <Arg>/jsp-tests/*</Arg>
    <Arg>webapps/jsp-tests.war</Arg>
    <Set name="extractWAR">true</Set>
  </Call>

  <Set name="RequestLog">
    <New class="org.mortbay.http.NCSARequestLog">
      <Arg><SystemProperty name="jetty.home" default="."/>/logs/yyyy_mm_dd.request.log</Arg>
    </New>
  </Set>

</Configure>