You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@turbine.apache.org by sg...@apache.org on 2008/07/18 17:01:53 UTC

svn commit: r677925 [1/7] - in /turbine/fulcrum/trunk/jetty: ./ src/ src/java/ src/java/org/ src/java/org/apache/ src/java/org/apache/fulcrum/ src/java/org/apache/fulcrum/jetty/ src/java/org/apache/fulcrum/jetty/impl/ src/main/ src/main/assembly/ src/s...

Author: sgoeschl
Date: Fri Jul 18 08:01:51 2008
New Revision: 677925

URL: http://svn.apache.org/viewvc?rev=677925&view=rev
Log:
Initial import of fulcrum-jetty to run a embedded Jetty web container as Avalon service.

Added:
    turbine/fulcrum/trunk/jetty/
    turbine/fulcrum/trunk/jetty/LICENSE.txt
    turbine/fulcrum/trunk/jetty/NOTICE.txt
    turbine/fulcrum/trunk/jetty/jetty-with-jsp.xml
    turbine/fulcrum/trunk/jetty/pom.xml
    turbine/fulcrum/trunk/jetty/src/
    turbine/fulcrum/trunk/jetty/src/java/
    turbine/fulcrum/trunk/jetty/src/java/org/
    turbine/fulcrum/trunk/jetty/src/java/org/apache/
    turbine/fulcrum/trunk/jetty/src/java/org/apache/fulcrum/
    turbine/fulcrum/trunk/jetty/src/java/org/apache/fulcrum/jetty/
    turbine/fulcrum/trunk/jetty/src/java/org/apache/fulcrum/jetty/JettyService.java
    turbine/fulcrum/trunk/jetty/src/java/org/apache/fulcrum/jetty/impl/
    turbine/fulcrum/trunk/jetty/src/java/org/apache/fulcrum/jetty/impl/JettyServiceImpl.java
    turbine/fulcrum/trunk/jetty/src/main/
    turbine/fulcrum/trunk/jetty/src/main/assembly/
    turbine/fulcrum/trunk/jetty/src/main/assembly/bin.xml
    turbine/fulcrum/trunk/jetty/src/main/assembly/src.xml
    turbine/fulcrum/trunk/jetty/src/site/
    turbine/fulcrum/trunk/jetty/src/site/site.xml
    turbine/fulcrum/trunk/jetty/src/test/
    turbine/fulcrum/trunk/jetty/src/test/TestComponentConfig.xml
    turbine/fulcrum/trunk/jetty/src/test/TestRoleConfig.xml
    turbine/fulcrum/trunk/jetty/src/test/com/
    turbine/fulcrum/trunk/jetty/src/test/com/acme/
    turbine/fulcrum/trunk/jetty/src/test/com/acme/CookieDump.java
    turbine/fulcrum/trunk/jetty/src/test/com/acme/Counter.java
    turbine/fulcrum/trunk/jetty/src/test/com/acme/Date2Tag.java
    turbine/fulcrum/trunk/jetty/src/test/com/acme/DateTag.java
    turbine/fulcrum/trunk/jetty/src/test/com/acme/DispatchServlet.java
    turbine/fulcrum/trunk/jetty/src/test/com/acme/Dump.java
    turbine/fulcrum/trunk/jetty/src/test/com/acme/HelloWorld.java
    turbine/fulcrum/trunk/jetty/src/test/com/acme/SessionDump.java
    turbine/fulcrum/trunk/jetty/src/test/com/acme/TagListener.java
    turbine/fulcrum/trunk/jetty/src/test/com/acme/TestFilter.java
    turbine/fulcrum/trunk/jetty/src/test/com/acme/TestListener.java
    turbine/fulcrum/trunk/jetty/src/test/jetty/
    turbine/fulcrum/trunk/jetty/src/test/jetty/contexts/
    turbine/fulcrum/trunk/jetty/src/test/jetty/contexts/README.TXT
    turbine/fulcrum/trunk/jetty/src/test/jetty/contexts/test.d/
    turbine/fulcrum/trunk/jetty/src/test/jetty/contexts/test.d/override-web.xml
    turbine/fulcrum/trunk/jetty/src/test/jetty/contexts/test.xml
    turbine/fulcrum/trunk/jetty/src/test/jetty/etc/
    turbine/fulcrum/trunk/jetty/src/test/jetty/etc/jetty-jaas.xml
    turbine/fulcrum/trunk/jetty/src/test/jetty/etc/jetty-logging.xml
    turbine/fulcrum/trunk/jetty/src/test/jetty/etc/jetty.xml
    turbine/fulcrum/trunk/jetty/src/test/jetty/etc/login.conf
    turbine/fulcrum/trunk/jetty/src/test/jetty/etc/login.properties
    turbine/fulcrum/trunk/jetty/src/test/jetty/etc/realm.properties
    turbine/fulcrum/trunk/jetty/src/test/jetty/etc/webdefault.xml
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test-jaas/
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test-jaas/WEB-INF/
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test-jaas/WEB-INF/web.xml
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test-jaas/auth.html
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test-jaas/authfail.html
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test-jaas/index.html
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test-jaas/login.html
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test-jaas/logout.jsp
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/WEB-INF/
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/WEB-INF/acme-taglib.tld
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/WEB-INF/acme-taglib2.tld
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/WEB-INF/jetty-web.xml
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/WEB-INF/tags/
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/WEB-INF/tags/CVS/
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/WEB-INF/tags/CVS/Entries
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/WEB-INF/tags/CVS/Repository
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/WEB-INF/tags/CVS/Root
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/WEB-INF/tags/panel.tag
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/WEB-INF/web.xml
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/auth/
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/auth/file.txt
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/auth/relax.txt
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/cgi-bin/
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/cgi-bin/hello.sh   (with props)
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/d.txt
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/da.txt
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/da.txt.gz   (with props)
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/dat.txt
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/data.txt
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/data.txt.gz   (with props)
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/favicon.ico   (with props)
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/index.html
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/jetty_banner.gif   (with props)
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/jsp/
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/jsp/bean1.jsp
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/jsp/bean2.jsp
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/jsp/dump.jsp
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/jsp/expr.jsp
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/jsp/index.html
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/jsp/tag.jsp
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/jsp/tag2.jsp
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/jsp/tagfile.jsp
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/logon.html
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/logonError.html
    turbine/fulcrum/trunk/jetty/src/test/jetty/webapps/test/snoop.jsp
    turbine/fulcrum/trunk/jetty/src/test/org/
    turbine/fulcrum/trunk/jetty/src/test/org/apache/
    turbine/fulcrum/trunk/jetty/src/test/org/apache/fulcrum/
    turbine/fulcrum/trunk/jetty/src/test/org/apache/fulcrum/jetty/
    turbine/fulcrum/trunk/jetty/src/test/org/apache/fulcrum/jetty/JettyServiceTest.java
    turbine/fulcrum/trunk/jetty/src/test/org/apache/fulcrum/jetty/JettyTestRunner.java
    turbine/fulcrum/trunk/jetty/xdocs/
    turbine/fulcrum/trunk/jetty/xdocs/changes.xml
    turbine/fulcrum/trunk/jetty/xdocs/configuration.xml
    turbine/fulcrum/trunk/jetty/xdocs/index.xml

Added: turbine/fulcrum/trunk/jetty/LICENSE.txt
URL: http://svn.apache.org/viewvc/turbine/fulcrum/trunk/jetty/LICENSE.txt?rev=677925&view=auto
==============================================================================
--- turbine/fulcrum/trunk/jetty/LICENSE.txt (added)
+++ turbine/fulcrum/trunk/jetty/LICENSE.txt Fri Jul 18 08:01:51 2008
@@ -0,0 +1,202 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.

Added: turbine/fulcrum/trunk/jetty/NOTICE.txt
URL: http://svn.apache.org/viewvc/turbine/fulcrum/trunk/jetty/NOTICE.txt?rev=677925&view=auto
==============================================================================
--- turbine/fulcrum/trunk/jetty/NOTICE.txt (added)
+++ turbine/fulcrum/trunk/jetty/NOTICE.txt Fri Jul 18 08:01:51 2008
@@ -0,0 +1,6 @@
+Turbine Fulcrum YAAFI
+Copyright 2002-2007 The Apache Software Foundation.
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+

Added: turbine/fulcrum/trunk/jetty/jetty-with-jsp.xml
URL: http://svn.apache.org/viewvc/turbine/fulcrum/trunk/jetty/jetty-with-jsp.xml?rev=677925&view=auto
==============================================================================
--- turbine/fulcrum/trunk/jetty/jetty-with-jsp.xml (added)
+++ turbine/fulcrum/trunk/jetty/jetty-with-jsp.xml Fri Jul 18 08:01:51 2008
@@ -0,0 +1,248 @@
+<?xml version="1.0"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<project
+    xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <groupId>fulcrum</groupId>
+    <artifactId>fulcrum-parent</artifactId>
+    <version>1-SNAPSHOT</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>fulcrum-jetty</artifactId>
+  <version>1.0.0-SNAPSHOT</version>
+  <name>Fulcrum Jetty</name>
+  <inceptionYear>2008</inceptionYear>
+  <description>Avalon Component for an embeddable Jetty Servlet Container</description>
+  <url>http://turbine.apache.org/fulcrum/fulcrum-jetty/</url>
+		
+  <scm>
+    <connection>scm:svn:http://svn.apache.org/repos/asf/turbine/fulcrum/trunk/jetty/</connection>
+    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/turbine/fulcrum/trunk/jetty/</developerConnection>
+    <url>http://svn.apache.org/viewcvs/turbine/fulcrum/trunk/jetty/</url>
+  </scm>
+
+  <distributionManagement>
+    <site>
+      <id>fulcrum.website</id>
+      <name>Fulcrum Website</name>
+      <url>${fulcrum.deployment.protocol}://people.apache.org/www/turbine.apache.org/fulcrum/fulcrum-jetty/</url>
+    </site>    
+  </distributionManagement>
+	
+  <developers>
+    <developer>
+      <name>Siegfried Goeschl</name>
+      <id>sgoeschl</id>
+      <email>sgoeschl@apache.org</email>
+      <organization></organization>
+      <roles>
+        <role>Java Developer</role>
+      </roles>
+    </developer>
+  </developers>
+
+  <dependencies>
+    <!-- Avalon dependecies -->
+    <dependency>
+      <groupId>avalon-framework</groupId>
+      <artifactId>avalon-framework-api</artifactId>
+      <version>4.3</version>
+      <exclusions>
+        <exclusion>
+          <groupId>avalon-logkit</groupId>
+          <artifactId>avalon-logkit</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
+    <!-- Jetty dependencies -->
+    <dependency>
+      <groupId>org.mortbay.jetty</groupId>
+      <artifactId>jetty</artifactId>
+      <version>${jetty.version}</version>
+    </dependency>
+    <!-- Optional Jetty dependencies -->
+    <dependency>
+      <groupId>org.mortbay.jetty</groupId>
+      <artifactId>jetty-plus</artifactId>
+      <version>${jetty.version}</version>
+      <exclusions>
+        <exclusion>
+          <groupId>geronimo-spec</groupId> 
+          <artifactId>geronimo-spec-jta</artifactId>
+        </exclusion>
+      </exclusions>      
+    </dependency>
+    <!-- testing dependencies -->
+    <dependency>
+      <groupId>fulcrum</groupId>
+      <artifactId>fulcrum-testcontainer</artifactId>
+      <version>1.0.6-SNAPSHOT</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>fulcrum</groupId>
+      <artifactId>fulcrum-yaafi</artifactId>
+      <version>1.0.6-SNAPSHOT</version>
+      <scope>test</scope>
+    </dependency>    
+  </dependencies>
+
+  <build>
+    <sourceDirectory>${basedir}/src/java</sourceDirectory>
+    <testSourceDirectory>${basedir}/src/test</testSourceDirectory>
+  </build>
+  
+  <profiles>
+    <profile>
+      <!-- Make a JDK 1.4 build by default -->
+      <id>jdk14</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>  
+      <dependencies>
+        <!-- JSP 2.0 dependencies for JDK 1.4 -->
+        <dependency>
+          <groupId>ant</groupId> 
+          <artifactId>ant</artifactId> 
+          <version>1.6.5</version> 
+        </dependency> 
+        <dependency> 
+          <groupId>commons-el</groupId> 
+          <artifactId>commons-el</artifactId> 
+          <version>1.0</version> 
+          <exclusions>
+            <exclusion>
+              <groupId>commons-logging</groupId>
+              <artifactId>commons-logging</artifactId>
+            </exclusion>   
+          </exclusions>
+        </dependency> 
+        <dependency> 
+          <groupId>org.slf4j</groupId> 
+          <artifactId>slf4j-api</artifactId> 
+          <version>1.3.1</version> 
+        </dependency> 
+        <dependency> 
+          <groupId>org.slf4j</groupId> 
+          <artifactId>slf4j-simple</artifactId> 
+          <version>1.3.1</version> 
+        </dependency>     
+        <dependency> 
+          <groupId>org.slf4j</groupId> 
+          <artifactId>jcl104-over-slf4j</artifactId> 
+          <version>1.3.1</version> 
+        </dependency>     
+        <dependency> 
+          <groupId>tomcat</groupId> 
+          <artifactId>jasper-compiler</artifactId> 
+          <version>${jetty.jasper.version}</version> 
+          <exclusions>
+            <exclusion>
+              <groupId>javax.servlet</groupId>
+              <artifactId>servlet-api</artifactId>
+            </exclusion>   
+          </exclusions>            
+        </dependency> 
+        <dependency> 
+          <groupId>tomcat</groupId> 
+          <artifactId>jasper-compiler-jdt</artifactId> 
+          <version>${jetty.jasper.version}</version> 
+          <exclusions>
+            <exclusion>
+              <groupId>org.eclipse.jdt</groupId>
+              <artifactId>core</artifactId>
+            </exclusion>   
+          </exclusions>
+        </dependency> 
+        <dependency> 
+          <groupId>tomcat</groupId> 
+          <artifactId>jasper-runtime</artifactId> 
+          <version>${jetty.jasper.version}</version> 
+          <exclusions>
+            <exclusion>
+              <groupId>javax.servlet</groupId>
+              <artifactId>servlet-api</artifactId>
+            </exclusion>   
+          </exclusions>      
+        </dependency>
+        <!--
+        <dependency> 
+          <groupId>xerces</groupId> 
+          <artifactId>xmlParserAPIs</artifactId> 
+          <version>${jetty.xerces.version}</version> 
+        </dependency>    
+        <dependency> 
+          <groupId>xerces</groupId> 
+          <artifactId>xercesImpl</artifactId> 
+          <version>${jetty.xerces.version}</version> 
+        </dependency>        
+      -->        
+      </dependencies>        
+      <properties>  
+        <!-- Default configuration for compiler source and target JVM -->
+        <maven.compile.source>1.4</maven.compile.source>
+        <maven.compile.target>1.4</maven.compile.target>
+        <!-- the Jasper version to pick up -->
+        <jetty.jasper.version>5.5.15</jetty.jasper.version>    
+        <!-- the Jasper version to pick up -->
+        <jetty.xerces.version>2.6.2</jetty.xerces.version>        
+        <!-- the JSP version to pick up -->
+        <jetty.jsp.version>2.0</jetty.jsp.version>
+        <!-- Mark this a JDK-14 library -->
+        <jar.finalName>fulcrum-jetty-jdk14-${project.version}</jar.finalName>
+      </properties>                
+    </profile>  
+    <profile>
+      <!-- Make an optional JDK 1.5 using 'mvn -Pjdk15 clean install' -->
+      <id>jdk15</id>
+      <dependencies> 
+        <!-- JSP 2.1 dependencies for JDK 1.5 -->
+        <dependency>
+          <groupId>org.mortbay.jetty</groupId>
+          <artifactId>jsp-${jetty.jsp.version}</artifactId>
+          <version>${jetty.version}</version>
+        </dependency>            
+      </dependencies>              
+      <properties>  
+        <!-- Default configuration for compiler source and target JVM -->
+        <maven.compile.source>1.5</maven.compile.source>
+        <maven.compile.target>1.5</maven.compile.target>
+        <!-- the JSP version to pick up -->
+        <jetty.jsp.version>2.1</jetty.jsp.version>
+        <!-- Mark this a JDK-14 library -->
+        <jar.finalName>fulcrum-jetty-jdk15-${project.version}</jar.finalName>
+      </properties>        
+    </profile>  
+    <profile>
+      <!-- enable this profile if you like run Jetty using 'mvn -Pstandalone clean test' -->
+      <id>standalone</id>
+      <properties>
+        <test>**/JettyTestRunner</test>
+      </properties>
+    </profile>
+  </profiles>
+  
+  <properties>  
+    <!-- the Jetty version to pick up -->
+    <jetty.version>6.1.11</jetty.version>    
+  </properties>  
+	
+</project>
\ No newline at end of file

Added: turbine/fulcrum/trunk/jetty/pom.xml
URL: http://svn.apache.org/viewvc/turbine/fulcrum/trunk/jetty/pom.xml?rev=677925&view=auto
==============================================================================
--- turbine/fulcrum/trunk/jetty/pom.xml (added)
+++ turbine/fulcrum/trunk/jetty/pom.xml Fri Jul 18 08:01:51 2008
@@ -0,0 +1,224 @@
+<?xml version="1.0"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<project
+    xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <groupId>fulcrum</groupId>
+    <artifactId>fulcrum-parent</artifactId>
+    <version>1-SNAPSHOT</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>fulcrum-jetty</artifactId>
+  <version>1.0.0-SNAPSHOT</version>
+  <name>Fulcrum Jetty</name>
+  <inceptionYear>2008</inceptionYear>
+  <description>Avalon Component for an embeddable Jetty Servlet Container</description>
+  <url>http://turbine.apache.org/fulcrum/fulcrum-jetty/</url>
+		
+  <scm>
+    <connection>scm:svn:http://svn.apache.org/repos/asf/turbine/fulcrum/trunk/jetty/</connection>
+    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/turbine/fulcrum/trunk/jetty/</developerConnection>
+    <url>http://svn.apache.org/viewcvs/turbine/fulcrum/trunk/jetty/</url>
+  </scm>
+
+  <distributionManagement>
+    <site>
+      <id>fulcrum.website</id>
+      <name>Fulcrum Website</name>
+      <url>${fulcrum.deployment.protocol}://people.apache.org/www/turbine.apache.org/fulcrum/fulcrum-jetty/</url>
+    </site>    
+  </distributionManagement>
+	
+  <developers>
+    <developer>
+      <name>Siegfried Goeschl</name>
+      <id>sgoeschl</id>
+      <email>sgoeschl@apache.org</email>
+      <organization></organization>
+      <roles>
+        <role>Java Developer</role>
+      </roles>
+    </developer>
+  </developers>
+
+  <dependencies>
+    <!-- Avalon dependecies -->
+    <dependency>
+      <groupId>avalon-framework</groupId>
+      <artifactId>avalon-framework-api</artifactId>
+      <version>4.3</version>
+      <exclusions>
+        <exclusion>
+          <groupId>avalon-logkit</groupId>
+          <artifactId>avalon-logkit</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
+    <!-- Jetty dependencies -->
+    <dependency>
+      <groupId>org.mortbay.jetty</groupId>
+      <artifactId>jetty</artifactId>
+      <version>${jetty.version}</version>
+    </dependency>
+    <!-- Optional Jetty dependencies -->
+    <dependency>
+      <groupId>org.mortbay.jetty</groupId>
+      <artifactId>jetty-plus</artifactId>
+      <version>${jetty.version}</version>
+      <optional>true</optional>
+      <exclusions>
+        <exclusion>
+          <groupId>geronimo-spec</groupId> 
+          <artifactId>geronimo-spec-jta</artifactId>
+        </exclusion>
+      </exclusions>      
+    </dependency>
+    <!-- testing dependencies -->
+    <dependency>
+      <groupId>fulcrum</groupId>
+      <artifactId>fulcrum-testcontainer</artifactId>
+      <version>1.0.6-SNAPSHOT</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>fulcrum</groupId>
+      <artifactId>fulcrum-yaafi</artifactId>
+      <version>1.0.6-SNAPSHOT</version>
+      <scope>test</scope>
+    </dependency>   
+    <!-- JSP 2.0 dependencies running JDK 1.4 for testing JSPs -->
+    <dependency>
+      <groupId>ant</groupId> 
+      <artifactId>ant</artifactId> 
+      <version>1.6.5</version> 
+      <scope>test</scope>
+    </dependency> 
+    <dependency> 
+      <groupId>commons-el</groupId> 
+      <artifactId>commons-el</artifactId> 
+      <version>1.0</version> 
+      <scope>test</scope>
+      <exclusions>
+        <exclusion>
+          <groupId>commons-logging</groupId>
+          <artifactId>commons-logging</artifactId>
+        </exclusion>   
+      </exclusions>
+    </dependency> 
+    <dependency> 
+      <groupId>org.slf4j</groupId> 
+      <artifactId>slf4j-api</artifactId> 
+      <version>1.3.1</version> 
+      <scope>test</scope>
+    </dependency> 
+    <dependency> 
+      <groupId>org.slf4j</groupId> 
+      <artifactId>slf4j-simple</artifactId> 
+      <version>1.3.1</version> 
+      <scope>test</scope>
+    </dependency>     
+    <dependency> 
+      <groupId>org.slf4j</groupId> 
+      <artifactId>jcl104-over-slf4j</artifactId> 
+      <version>1.3.1</version> 
+      <scope>test</scope>
+    </dependency>     
+    <dependency> 
+      <groupId>tomcat</groupId> 
+      <artifactId>jasper-compiler</artifactId> 
+      <version>${jetty.jasper.version}</version>
+      <scope>test</scope>      
+      <exclusions>
+        <exclusion>
+          <groupId>javax.servlet</groupId>
+          <artifactId>servlet-api</artifactId>
+        </exclusion>   
+      </exclusions>            
+    </dependency> 
+    <dependency> 
+      <groupId>tomcat</groupId> 
+      <artifactId>jasper-compiler-jdt</artifactId> 
+      <version>${jetty.jasper.version}</version> 
+      <scope>test</scope>
+      <exclusions>
+        <exclusion>
+          <groupId>org.eclipse.jdt</groupId>
+          <artifactId>core</artifactId>
+        </exclusion>   
+      </exclusions>
+    </dependency> 
+    <dependency> 
+      <groupId>tomcat</groupId> 
+      <artifactId>jasper-runtime</artifactId> 
+      <version>${jetty.jasper.version}</version> 
+      <scope>test</scope>
+      <exclusions>
+        <exclusion>
+          <groupId>javax.servlet</groupId>
+          <artifactId>servlet-api</artifactId>
+        </exclusion>   
+      </exclusions>      
+    </dependency>
+    <!-- not sure if those deps are really needed but keep them around -->
+    <!--
+    <dependency> 
+      <groupId>xerces</groupId> 
+      <artifactId>xmlParserAPIs</artifactId> 
+      <version>${jetty.xerces.version}</version> 
+    </dependency>    
+    <dependency> 
+      <groupId>xerces</groupId> 
+      <artifactId>xercesImpl</artifactId> 
+      <version>${jetty.xerces.version}</version> 
+    </dependency>        
+  -->            
+  </dependencies>
+
+  <build>
+    <sourceDirectory>${basedir}/src/java</sourceDirectory>
+    <testSourceDirectory>${basedir}/src/test</testSourceDirectory>
+  </build>
+  
+  <profiles>
+    <profile>
+      <!-- enable this profile if you like run Jetty using 'mvn -Pstandalone clean test' -->
+      <id>standalone</id>
+      <properties>
+        <test>**/JettyTestRunner</test>
+      </properties>
+    </profile>
+  </profiles>
+  
+  <properties>  
+    <!-- Default configuration for compiler source and target JVM -->
+    <maven.compile.source>1.4</maven.compile.source>
+    <maven.compile.target>1.4</maven.compile.target>
+    <!-- the Jasper version to pick up -->
+    <jetty.jasper.version>5.5.15</jetty.jasper.version>    
+    <!-- the Jasper version to pick up -->
+    <jetty.xerces.version>2.6.2</jetty.xerces.version>        
+    <!-- the JSP version to pick up -->
+    <jetty.jsp.version>2.0</jetty.jsp.version>
+    <!-- the Jetty version to pick up -->
+    <jetty.version>6.1.11</jetty.version>    
+  </properties>  
+	
+</project>
\ No newline at end of file

Added: turbine/fulcrum/trunk/jetty/src/java/org/apache/fulcrum/jetty/JettyService.java
URL: http://svn.apache.org/viewvc/turbine/fulcrum/trunk/jetty/src/java/org/apache/fulcrum/jetty/JettyService.java?rev=677925&view=auto
==============================================================================
--- turbine/fulcrum/trunk/jetty/src/java/org/apache/fulcrum/jetty/JettyService.java (added)
+++ turbine/fulcrum/trunk/jetty/src/java/org/apache/fulcrum/jetty/JettyService.java Fri Jul 18 08:01:51 2008
@@ -0,0 +1,34 @@
+package org.apache.fulcrum.jetty;
+
+import org.mortbay.jetty.Server;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * Starts an instance of the Spring Service Framework as Avalon service.
+ *
+ * @author <a href="mailto:siegfried.goeschl@it20one.at">Siegfried Goeschl</a>
+ */
+
+public interface JettyService
+{
+    /** @return the underlying Jetty server instance */
+    Server getServer();
+}
\ No newline at end of file

Added: turbine/fulcrum/trunk/jetty/src/java/org/apache/fulcrum/jetty/impl/JettyServiceImpl.java
URL: http://svn.apache.org/viewvc/turbine/fulcrum/trunk/jetty/src/java/org/apache/fulcrum/jetty/impl/JettyServiceImpl.java?rev=677925&view=auto
==============================================================================
--- turbine/fulcrum/trunk/jetty/src/java/org/apache/fulcrum/jetty/impl/JettyServiceImpl.java (added)
+++ turbine/fulcrum/trunk/jetty/src/java/org/apache/fulcrum/jetty/impl/JettyServiceImpl.java Fri Jul 18 08:01:51 2008
@@ -0,0 +1,255 @@
+package org.apache.fulcrum.jetty.impl;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import org.apache.avalon.framework.activity.Startable;
+import org.apache.avalon.framework.activity.Initializable;
+import org.apache.avalon.framework.logger.AbstractLogEnabled;
+import org.apache.avalon.framework.logger.LogEnabled;
+import org.apache.avalon.framework.configuration.ConfigurationException;
+import org.apache.avalon.framework.configuration.Configuration;
+import org.apache.avalon.framework.configuration.Reconfigurable;
+import org.apache.avalon.framework.context.Contextualizable;
+import org.apache.avalon.framework.context.Context;
+import org.apache.avalon.framework.context.ContextException;
+import org.apache.fulcrum.jetty.JettyService;
+
+import org.mortbay.jetty.Server;
+import org.mortbay.xml.XmlConfiguration;
+
+import java.io.File;
+import java.io.InputStream;
+import java.io.IOException;
+import java.io.FileInputStream;
+
+/**
+ * Starts an instance of the Spring Service Framework as Avalon service.
+ *
+ * @author <a href="mailto:siegfried.goeschl@it20one.at">Siegfried Goeschl</a>
+ */
+
+public class JettyServiceImpl
+    extends AbstractLogEnabled
+    implements LogEnabled, Startable, Contextualizable, Initializable, Reconfigurable, JettyService
+{
+    /** the Jetty server instance */
+    private Server server;
+
+    /** the location of the Jetty XML configuration files */
+    private String[] configurationLocations;
+
+    /** the working directory of the service */
+    private File serviceApplicationDir;
+
+    /////////////////////////////////////////////////////////////////////////
+    // Avalon Lifecycle Implementation
+    /////////////////////////////////////////////////////////////////////////
+
+    /**
+     * Constructor
+     */
+    public JettyServiceImpl()
+    {
+        // nothing to do
+    }
+
+    public void contextualize(Context context) throws ContextException
+    {
+        this.serviceApplicationDir = (File) context.get("context-root");
+    }
+
+    /**
+     * @see org.apache.avalon.framework.configuration.Configurable#configure(org.apache.avalon.framework.configuration.Configuration)
+     */
+    public void configure(Configuration configuration) throws ConfigurationException
+    {
+        // parse the 'configurations'
+
+        Configuration[] configurationsList = configuration.getChild("configurations").getChildren("configuration");
+        this.configurationLocations = new String[configurationsList.length];
+
+        for(int i=0; i<this.configurationLocations.length; i++)
+        {
+            this.configurationLocations[i] = configurationsList[i].getValue();
+        }
+
+        if(this.configurationLocations.length == 0)
+        {
+            String msg = "No configuration files for the Jetty are defined";
+            throw new ConfigurationException(msg);
+        }
+
+        // parse the 'properties'
+
+        Configuration[] propertiesConfiguration = configuration.getChild("properties", true).getChildren("property");
+
+        for( int i=0; i<propertiesConfiguration.length; i++ )
+        {
+            String key = propertiesConfiguration[i].getAttribute("name");
+            String value = propertiesConfiguration[i].getValue();
+            this.getLogger().info("Setting the system property '" + key + "'==>'" + value + "'");            
+            System.setProperty( key, value );
+        }
+    }
+
+    /**
+     * @see org.apache.avalon.framework.activity.Initializable#initialize()
+     */
+    public void initialize() throws Exception
+    {
+        // locate the serviceConfiguration file and initialize Jetty server
+
+        Server currServer = new Server();
+
+        for(int i=0; i<this.configurationLocations.length; i++)
+        {
+            String currConfigurationLocation = this.configurationLocations[i]; 
+            this.getLogger().info("Loading the Jetty serviceConfiguration file : " + currConfigurationLocation);
+            InputStream is = this.locate(this.serviceApplicationDir, currConfigurationLocation);
+            XmlConfiguration configuration = new XmlConfiguration(is);
+            configuration.configure(currServer);
+            is.close();
+        }
+
+        this.server = currServer;
+    }
+
+    /**
+     * @see org.apache.avalon.framework.activity.Startable#start()
+     */
+    public void start() throws Exception
+    {
+        this.getServer().start();
+    }
+
+    /**
+     * @see org.apache.avalon.framework.activity.Startable#stop()
+     */
+    public void stop() throws Exception
+    {
+        this.getServer().stop();
+    }
+
+    /**
+     * @see org.apache.avalon.framework.configuration.Reconfigurable#reconfigure(org.apache.avalon.framework.configuration.Configuration)
+     */
+    public void reconfigure(Configuration configuration) throws ConfigurationException
+    {
+        if(configuration != null)
+        {
+            this.configure(configuration);
+        }
+
+        try
+        {
+            this.initialize();
+        }
+        catch(Exception e)
+        {
+            String msg = "Initializing the new server failed";
+            throw new ConfigurationException(msg, e);
+        }
+    }
+
+    /////////////////////////////////////////////////////////////////////////
+    // Service Interface Implementation
+    /////////////////////////////////////////////////////////////////////////
+
+    public Server getServer()
+    {
+        return this.server;
+    }
+
+    /////////////////////////////////////////////////////////////////////////
+    // Service Implementation
+    /////////////////////////////////////////////////////////////////////////
+
+    /**
+     * Locate the configuration file using the file system or a classpath.
+     *
+     * @param applicationDir the directory where to start the search
+     * @param location the location of the source to be loaded
+     * @return the input stream of the resource
+     * @exception IOException the operation failed
+     */
+    private InputStream locate( File applicationDir, String location ) throws IOException
+    {
+        if( ( location == null ) || ( location.length() == 0 ) )
+        {
+            throw new IllegalArgumentException("location is null or empty");
+        }
+
+        File file = null;
+        InputStream is = null;
+
+        // try to load a relative location with the given root dir
+        // e.g. "jetty.xml" located in the current working directory
+
+        if( !location.startsWith("/") )
+        {
+            file = new File( applicationDir, location );
+
+            this.getLogger().debug("Looking for " + location + " in the application directory");
+
+            if( file.exists() )
+            {
+                is = new FileInputStream( file );
+                this.getLogger().debug("Found " + location + " as " + file.getAbsolutePath() );
+            }
+        }
+
+        // try to load an absolute location as file
+        // e.g. "/foo/jetty.xml" from the root of the file system
+
+        if( ( is == null ) && (location.startsWith("/")) )
+        {
+            file = new File( location );
+
+            this.getLogger().debug("Looking for " + location + " as absolute file location");
+
+            if( file.isAbsolute() && file.exists() )
+            {
+                is = new FileInputStream( file );
+                this.getLogger().debug("Found " + location + " as " + file.getAbsolutePath() );
+            }
+        }
+
+        // try to load an absolute location through the classpath
+        // e.g. "/jetty.xml" located in the classpath
+
+        if( ( is == null ) && (location.startsWith("/")) )
+        {
+            this.getLogger().debug("Looking for " + location + " using the class loader");
+            is =  getClass().getResourceAsStream( location );
+
+            if( is != null )
+            {
+                this.getLogger().debug("Successfully located " + location);
+            }
+        }
+
+        if( is == null )
+        {
+            this.getLogger().warn("Unable to find any resource with the name '" + location + "'");
+        }
+
+        return is;
+    }
+}
\ No newline at end of file

Added: turbine/fulcrum/trunk/jetty/src/main/assembly/bin.xml
URL: http://svn.apache.org/viewvc/turbine/fulcrum/trunk/jetty/src/main/assembly/bin.xml?rev=677925&view=auto
==============================================================================
--- turbine/fulcrum/trunk/jetty/src/main/assembly/bin.xml (added)
+++ turbine/fulcrum/trunk/jetty/src/main/assembly/bin.xml Fri Jul 18 08:01:51 2008
@@ -0,0 +1,43 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<assembly>
+    <id>bin</id>
+    <formats>
+        <format>tar.gz</format>
+        <format>zip</format>
+    </formats>
+    <includeSiteDirectory>false</includeSiteDirectory>
+    <fileSets>
+        <fileSet>
+            <includes>
+                <include>LICENSE.txt</include>
+                <include>NOTICE.txt</include>
+            </includes>
+        </fileSet>
+        <fileSet>
+            <directory>target</directory>
+            <outputDirectory></outputDirectory>
+            <includes>
+                <include>*.jar</include>
+            </includes>
+        </fileSet>
+        <fileSet>
+            <directory>target/site/apidocs</directory>
+            <outputDirectory>apidocs</outputDirectory>
+        </fileSet>
+    </fileSets>
+</assembly>

Added: turbine/fulcrum/trunk/jetty/src/main/assembly/src.xml
URL: http://svn.apache.org/viewvc/turbine/fulcrum/trunk/jetty/src/main/assembly/src.xml?rev=677925&view=auto
==============================================================================
--- turbine/fulcrum/trunk/jetty/src/main/assembly/src.xml (added)
+++ turbine/fulcrum/trunk/jetty/src/main/assembly/src.xml Fri Jul 18 08:01:51 2008
@@ -0,0 +1,41 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<assembly>
+    <id>src</id>
+    <formats>
+        <format>tar.gz</format>
+        <format>zip</format>
+    </formats>
+    <baseDirectory>${artifactId}-${version}-src</baseDirectory>
+    <fileSets>
+        <fileSet>
+            <includes>
+                <include>build.xml</include>
+                <include>LICENSE.txt</include>
+                <include>NOTICE.txt</include>
+                <include>pom.xml</include>
+                <include>STATUS</include>
+            </includes>
+        </fileSet>
+        <fileSet>
+            <directory>src</directory>
+        </fileSet>
+        <fileSet>
+            <directory>xdocs</directory>
+        </fileSet>
+    </fileSets>
+</assembly>

Added: turbine/fulcrum/trunk/jetty/src/site/site.xml
URL: http://svn.apache.org/viewvc/turbine/fulcrum/trunk/jetty/src/site/site.xml?rev=677925&view=auto
==============================================================================
--- turbine/fulcrum/trunk/jetty/src/site/site.xml (added)
+++ turbine/fulcrum/trunk/jetty/src/site/site.xml Fri Jul 18 08:01:51 2008
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<project name="Fulcrum Jetty">
+  <body>
+    <menu name="Overview">
+      <item name="Overview"            href="/index.html"/>
+      <item name="Configuration"       href="/configuration.html"/>
+    </menu>  
+    ${reports}
+  </body>
+</project>

Added: turbine/fulcrum/trunk/jetty/src/test/TestComponentConfig.xml
URL: http://svn.apache.org/viewvc/turbine/fulcrum/trunk/jetty/src/test/TestComponentConfig.xml?rev=677925&view=auto
==============================================================================
--- turbine/fulcrum/trunk/jetty/src/test/TestComponentConfig.xml (added)
+++ turbine/fulcrum/trunk/jetty/src/test/TestComponentConfig.xml Fri Jul 18 08:01:51 2008
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<componentConfig>
+
+  <!--
+    JettyService
+
+    configurations := contains a list of configuration files
+    configurations/configuration := contains the location of configuration file
+    properties := contains a list of system properties
+    properties/property@name := contains the name of a system property
+    properties/property := contains the value of a system property            
+  -->
+
+  <JettyService>
+    <configurations>  
+        <configuration>./src/test/jetty/etc/jetty.xml</configuration>
+        <configuration>./src/test/jetty/etc/jetty-logging.xml</configuration>
+        <configuration>./src/test/jetty/etc/jetty-jaas.xml</configuration>
+    </configurations>
+    <properties>
+        <property name="jetty.home">./src/test/jetty</property>
+        <property name="jetty.logs">./target</property>
+        <property name="jetty.port">9080</property>
+    </properties>
+  </JettyService>
+
+</componentConfig>

Added: turbine/fulcrum/trunk/jetty/src/test/TestRoleConfig.xml
URL: http://svn.apache.org/viewvc/turbine/fulcrum/trunk/jetty/src/test/TestRoleConfig.xml?rev=677925&view=auto
==============================================================================
--- turbine/fulcrum/trunk/jetty/src/test/TestRoleConfig.xml (added)
+++ turbine/fulcrum/trunk/jetty/src/test/TestRoleConfig.xml Fri Jul 18 08:01:51 2008
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<role-list>
+  <role
+    name="org.apache.fulcrum.jetty.JettyService"
+    shorthand="JettyService"
+    default-class="org.apache.fulcrum.jetty.impl.JettyServiceImpl"
+    description="Starts a Jetty container as Avalon service"
+  />        
+</role-list>
\ No newline at end of file

Added: turbine/fulcrum/trunk/jetty/src/test/com/acme/CookieDump.java
URL: http://svn.apache.org/viewvc/turbine/fulcrum/trunk/jetty/src/test/com/acme/CookieDump.java?rev=677925&view=auto
==============================================================================
--- turbine/fulcrum/trunk/jetty/src/test/com/acme/CookieDump.java (added)
+++ turbine/fulcrum/trunk/jetty/src/test/com/acme/CookieDump.java Fri Jul 18 08:01:51 2008
@@ -0,0 +1,118 @@
+// ========================================================================
+// Copyright 1996-2005 Mort Bay Consulting Pty. Ltd.
+// ------------------------------------------------------------------------
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at 
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ========================================================================
+
+package com.acme;
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.util.Date;
+import java.util.Enumeration;
+
+import javax.servlet.ServletConfig;
+import javax.servlet.ServletException;
+import javax.servlet.http.Cookie;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.servlet.http.HttpSession;
+
+
+/* ------------------------------------------------------------ */
+/** Test Servlet Cookies.
+ *
+ * @author Greg Wilkins (gregw)
+ */
+public class CookieDump extends HttpServlet
+{
+    int redirectCount=0;
+
+    /* ------------------------------------------------------------ */
+    public void init(ServletConfig config)
+         throws ServletException
+    {
+        super.init(config);        
+    }
+
+    /* ------------------------------------------------------------ */
+    protected void handleForm(HttpServletRequest request,
+                          HttpServletResponse response) 
+    {
+        String action = request.getParameter("Action");
+        String name =  request.getParameter("Name");
+        String value =  request.getParameter("Value");
+        String age =  request.getParameter("Age");
+
+        if (name!=null && name.length()>0)
+        {
+            Cookie cookie = new Cookie(name,value);
+            if (age!=null && age.length()>0)
+                cookie.setMaxAge(Integer.parseInt(age));
+            response.addCookie(cookie);
+        }
+    }
+    
+    /* ------------------------------------------------------------ */
+    public void doPost(HttpServletRequest request,
+                       HttpServletResponse response) 
+        throws ServletException, IOException
+    {
+        handleForm(request,response);
+        String nextUrl = getURI(request)+"?R="+redirectCount++;
+        String encodedUrl=response.encodeRedirectURL(nextUrl);
+        response.sendRedirect(encodedUrl);
+    }
+        
+    /* ------------------------------------------------------------ */
+    public void doGet(HttpServletRequest request,
+                      HttpServletResponse response) 
+        throws ServletException, IOException
+    {
+        handleForm(request,response);
+        
+        response.setContentType("text/html");
+
+        
+        PrintWriter out = response.getWriter();
+        out.println("<h1>Cookie Dump Servlet:</h1>");       
+        
+        Cookie[] cookies = request.getCookies();
+        
+        for (int i=0;cookies!=null && i<cookies.length;i++)
+        {
+            out.println("<b>"+cookies[i].getName()+"</b>="+cookies[i].getValue()+"<br/>");
+        }
+        
+        out.println("<form action=\""+response.encodeURL(getURI(request))+"\" method=\"post\">"); 
+
+        out.println("<b>Name:</b><input type=\"text\" name=\"Name\" value=\"name\"/><br/>");
+        out.println("<b>Value:</b><input type=\"text\" name=\"Value\" value=\"value\"/><br/>");
+        out.println("<b>Max-Age:</b><input type=\"text\" name=\"Age\" value=\"60\"/><br/>");
+        out.println("<input type=\"submit\" name=\"Action\" value=\"Set\"/>");
+
+    }
+
+    /* ------------------------------------------------------------ */
+    public String getServletInfo() {
+        return "Session Dump Servlet";
+    }
+
+    /* ------------------------------------------------------------ */
+    private String getURI(HttpServletRequest request)
+    {
+        String uri=(String)request.getAttribute("javax.servlet.forward.request_uri");
+        if (uri==null)
+            uri=request.getRequestURI();
+        return uri;
+    }
+    
+}

Added: turbine/fulcrum/trunk/jetty/src/test/com/acme/Counter.java
URL: http://svn.apache.org/viewvc/turbine/fulcrum/trunk/jetty/src/test/com/acme/Counter.java?rev=677925&view=auto
==============================================================================
--- turbine/fulcrum/trunk/jetty/src/test/com/acme/Counter.java (added)
+++ turbine/fulcrum/trunk/jetty/src/test/com/acme/Counter.java Fri Jul 18 08:01:51 2008
@@ -0,0 +1,24 @@
+package com.acme;
+
+
+public class Counter
+{
+    int counter=0;
+    String last;
+
+    public int getCount()
+    {
+	counter++;
+	return counter;
+    }
+
+    public void setLast(String uri) {
+        last=uri;
+    }
+
+    public String getLast() {
+        return last;
+    }
+
+}
+

Added: turbine/fulcrum/trunk/jetty/src/test/com/acme/Date2Tag.java
URL: http://svn.apache.org/viewvc/turbine/fulcrum/trunk/jetty/src/test/com/acme/Date2Tag.java?rev=677925&view=auto
==============================================================================
--- turbine/fulcrum/trunk/jetty/src/test/com/acme/Date2Tag.java (added)
+++ turbine/fulcrum/trunk/jetty/src/test/com/acme/Date2Tag.java Fri Jul 18 08:01:51 2008
@@ -0,0 +1,35 @@
+package com.acme;
+
+import java.io.IOException;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.StringTokenizer;
+
+import javax.servlet.jsp.JspContext;
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.tagext.JspFragment;
+import javax.servlet.jsp.tagext.SimpleTagSupport;
+
+public class Date2Tag extends SimpleTagSupport
+{
+    String format;
+    
+    public void setFormat(String value) {
+        this.format = value;
+    }
+
+    public void doTag() throws JspException, IOException {
+        String formatted = 
+            new SimpleDateFormat("long".equals(format)?"EEE 'the' d:MMM:yyyy":"d:MM:yy")
+            .format(new Date());
+        StringTokenizer tok = new StringTokenizer(formatted,":");
+        JspContext context = getJspContext();
+        context.setAttribute("day", tok.nextToken() );
+        context.setAttribute("month", tok.nextToken() );
+        context.setAttribute("year", tok.nextToken() );
+
+        JspFragment fragment = getJspBody();
+        fragment.invoke(null);
+    }
+}
+

Added: turbine/fulcrum/trunk/jetty/src/test/com/acme/DateTag.java
URL: http://svn.apache.org/viewvc/turbine/fulcrum/trunk/jetty/src/test/com/acme/DateTag.java?rev=677925&view=auto
==============================================================================
--- turbine/fulcrum/trunk/jetty/src/test/com/acme/DateTag.java (added)
+++ turbine/fulcrum/trunk/jetty/src/test/com/acme/DateTag.java Fri Jul 18 08:01:51 2008
@@ -0,0 +1,52 @@
+package com.acme;
+
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.TimeZone;
+
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.JspTagException;
+import javax.servlet.jsp.PageContext;
+import javax.servlet.jsp.tagext.BodyContent;
+import javax.servlet.jsp.tagext.BodyTagSupport;
+import javax.servlet.jsp.tagext.Tag;
+
+public class DateTag extends BodyTagSupport
+{
+    Tag parent;
+    BodyContent body;
+    String tz="GMT";
+
+    public void setParent(Tag parent) {this.parent=parent;}
+    public Tag getParent() {return parent;}
+    public void setBodyContent(BodyContent content) {body=content;}
+    public void setPageContext(PageContext pageContext) {}
+
+    public void setTz(String value) {tz=value;}
+
+    public int doStartTag() throws JspException {return EVAL_BODY_TAG;}
+    
+    public int doEndTag() throws JspException {return EVAL_PAGE;}
+
+    public void doInitBody() throws JspException {}
+
+    public int doAfterBody() throws JspException {
+	try
+	{
+            SimpleDateFormat format = new SimpleDateFormat(body.getString());
+            format.setTimeZone(TimeZone.getTimeZone(tz));
+	    body.getEnclosingWriter().write(format.format(new Date()));
+	    return SKIP_BODY;
+	}
+	catch (Exception ex) {
+            ex.printStackTrace();
+            throw new JspTagException(ex.toString());
+	}
+    }
+
+    public void release()
+    {
+	body=null;
+    }
+}
+

Added: turbine/fulcrum/trunk/jetty/src/test/com/acme/DispatchServlet.java
URL: http://svn.apache.org/viewvc/turbine/fulcrum/trunk/jetty/src/test/com/acme/DispatchServlet.java?rev=677925&view=auto
==============================================================================
--- turbine/fulcrum/trunk/jetty/src/test/com/acme/DispatchServlet.java (added)
+++ turbine/fulcrum/trunk/jetty/src/test/com/acme/DispatchServlet.java Fri Jul 18 08:01:51 2008
@@ -0,0 +1,261 @@
+// ========================================================================
+// Copyright 1996-2005 Mort Bay Consulting Pty. Ltd.
+// ------------------------------------------------------------------------
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at 
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ========================================================================
+
+package com.acme;
+import java.io.IOException;
+import java.io.OutputStream;
+import java.io.PrintWriter;
+
+import javax.servlet.RequestDispatcher;
+import javax.servlet.ServletConfig;
+import javax.servlet.ServletContext;
+import javax.servlet.ServletException;
+import javax.servlet.ServletOutputStream;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletRequestWrapper;
+import javax.servlet.http.HttpServletResponse;
+import javax.servlet.http.HttpServletResponseWrapper;
+
+import org.mortbay.util.URIUtil;
+
+
+/* ------------------------------------------------------------ */
+/** Test Servlet RequestDispatcher.
+ * 
+ * @author Greg Wilkins (gregw)
+ */
+public class DispatchServlet extends HttpServlet
+{
+    /* ------------------------------------------------------------ */
+    String pageType;
+
+    /* ------------------------------------------------------------ */
+    public void init(ServletConfig config) throws ServletException
+    {
+        super.init(config);
+    }
+
+    /* ------------------------------------------------------------ */
+    public void doPost(HttpServletRequest sreq, HttpServletResponse sres) throws ServletException, IOException
+    {
+        doGet(sreq, sres);
+    }
+
+    /* ------------------------------------------------------------ */
+    public void doGet(HttpServletRequest sreq, HttpServletResponse sres) throws ServletException, IOException
+    {
+        if (sreq.getParameter("wrap") != null)
+        {
+            sreq= new HttpServletRequestWrapper(sreq);
+            sres= new HttpServletResponseWrapper(sres);
+        }
+        
+        if (sreq.getParameter("session") != null)
+            sreq.getSession(true);
+
+        String prefix=
+            sreq.getContextPath() != null ? sreq.getContextPath() + sreq.getServletPath() : sreq.getServletPath();
+
+        String info;
+
+        if (sreq.getAttribute("javax.servlet.include.servlet_path") != null)
+            info= (String)sreq.getAttribute("javax.servlet.include.path_info");
+        else
+            info= sreq.getPathInfo();
+
+        if (info == null)
+            info= "NULL";
+
+        if (info.startsWith("/includeW/"))
+        {
+            sres.setContentType("text/html");
+            info= info.substring(9);
+            if (info.indexOf('?') < 0)
+                info += "?Dispatch=include";
+            else
+                info += "&Dispatch=include";
+            
+            PrintWriter pout= null;
+            pout= sres.getWriter();
+            pout.write("<H1>Include (writer): " + info + "</H1><HR>");
+            
+            RequestDispatcher dispatch= getServletContext().getRequestDispatcher(info);
+            if (dispatch == null)
+            {
+                pout= sres.getWriter();
+                pout.write("<H1>Null dispatcher</H1>");
+            }
+            else
+                dispatch.include(sreq, sres);
+            
+            pout.write("<HR><H1>-- Included (writer)</H1>");
+        }
+        else if (info.startsWith("/includeS/"))
+        {
+            sres.setContentType("text/html");
+            info= info.substring(9);
+            if (info.indexOf('?') < 0)
+                info += "?Dispatch=include";
+            else
+                info += "&Dispatch=include";
+            
+            OutputStream out= null;
+            out= sres.getOutputStream();
+            out.write(("<H1>Include (outputstream): " + info + "</H1><HR>").getBytes());
+            
+            RequestDispatcher dispatch= getServletContext().getRequestDispatcher(info);
+            if (dispatch == null)
+            {
+                out= sres.getOutputStream();
+                out.write("<H1>Null dispatcher</H1>".getBytes());
+            }
+            else
+                dispatch.include(sreq, sres);
+            
+            out.write("<HR><H1>-- Included (outputstream)</H1>".getBytes());
+            
+        }
+        else if (info.startsWith("/forward/"))
+        {
+            info= info.substring(8);
+            if (info.indexOf('?') < 0)
+                info += "?Dispatch=forward";
+            else
+                info += "&Dispatch=forward";
+            RequestDispatcher dispatch= getServletContext().getRequestDispatcher(info);
+            if (dispatch != null)
+            {
+                ServletOutputStream out =sres.getOutputStream();
+                out.print("Can't see this");
+                dispatch.forward(sreq, sres);
+                try
+                {
+                    out.println("IOException");
+                    throw new IllegalStateException();
+                }
+                catch(IOException e)
+                {}
+            }
+            else
+            {
+                sres.setContentType("text/html");
+                PrintWriter pout= sres.getWriter();
+                pout.write("<H1>No dispatcher for: " + info + "</H1><HR>");
+                pout.flush();
+            }
+        }
+        else if (info.startsWith("/forwardC/"))
+        {
+            info= info.substring(9);
+            if (info.indexOf('?') < 0)
+                info += "?Dispatch=forward";
+            else
+                info += "&Dispatch=forward";
+            
+            String cpath= info.substring(0, info.indexOf('/', 1));
+            info= info.substring(cpath.length());
+            
+            ServletContext context= getServletContext().getContext(cpath);
+            RequestDispatcher dispatch= context.getRequestDispatcher(info);
+            
+            if (dispatch != null)
+            {
+                dispatch.forward(sreq, sres);
+            }
+            else
+            {
+                sres.setContentType("text/html");
+                PrintWriter pout= sres.getWriter();
+                pout.write("<H1>No dispatcher for: " + cpath + URIUtil.SLASH + info + "</H1><HR>");
+                pout.flush();
+            }
+        }
+        else if (info.startsWith("/includeN/"))
+        {
+            sres.setContentType("text/html");
+            info= info.substring(10);
+            if (info.indexOf(URIUtil.SLASH) >= 0)
+                info= info.substring(0, info.indexOf(URIUtil.SLASH));
+            
+            PrintWriter pout;
+            if (info.startsWith("/null"))
+                info= info.substring(5);
+            else
+            {
+                pout= sres.getWriter();
+                pout.write("<H1>Include named: " + info + "</H1><HR>");
+            }
+            
+            RequestDispatcher dispatch= getServletContext().getNamedDispatcher(info);
+            if (dispatch != null)
+                dispatch.include(sreq, sres);
+            else
+            {
+                pout= sres.getWriter();
+                pout.write("<H1>No servlet named: " + info + "</H1>");
+            }
+            
+            pout= sres.getWriter();
+            pout.write("<HR><H1>Included ");
+        }
+        else if (info.startsWith("/forwardN/"))
+        {
+            info= info.substring(10);
+            if (info.indexOf(URIUtil.SLASH) >= 0)
+                info= info.substring(0, info.indexOf(URIUtil.SLASH));
+            RequestDispatcher dispatch= getServletContext().getNamedDispatcher(info);
+            if (dispatch != null)
+                dispatch.forward(sreq, sres);
+            else
+            {
+                sres.setContentType("text/html");
+                PrintWriter pout= sres.getWriter();
+                pout.write("<H1>No servlet named: " + info + "</H1>");
+                pout.flush();
+            }
+        }
+        else
+        {
+            sres.setContentType("text/html");
+            PrintWriter pout= sres.getWriter();
+            pout.write(
+                    "<H1>Dispatch URL must be of the form: </H1>"
+                    + "<PRE>"
+                    + prefix
+                    + "/includeW/path\n"
+                    + prefix
+                    + "/includeS/path\n"
+                    + prefix
+                    + "/forward/path\n"
+                    + prefix
+                    + "/includeN/name\n"
+                    + prefix
+                    + "/forwardC/_context/path\n</PRE>");
+        }
+        
+    }
+
+    /* ------------------------------------------------------------ */
+    public String getServletInfo()
+    {
+        return "Include Servlet";
+    }
+
+    /* ------------------------------------------------------------ */
+    public synchronized void destroy()
+    {
+    }
+
+}