cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: rev 56495 - in cocoon/whiteboard/kernel: . bin etc lib lib/endorsed logs sources/documentation sources/documentation/WEB-INF sources/tools sources/tools/package-list sources/tools/package-list/j2ee sources/tools/package-list/j2se sources/webapp sources/webapp/WEB-INF temp temp/docs temp/root
Date Wed, 03 Nov 2004 17:24:37 GMT
Author: pier
Date: Wed Nov  3 09:24:36 2004
New Revision: 56495

Added:
   cocoon/whiteboard/kernel/bin/
   cocoon/whiteboard/kernel/bin/gentoo.rc   (contents, props changed)
   cocoon/whiteboard/kernel/bin/jetty   (contents, props changed)
   cocoon/whiteboard/kernel/bin/start   (contents, props changed)
   cocoon/whiteboard/kernel/build.xml
   cocoon/whiteboard/kernel/etc/
   cocoon/whiteboard/kernel/etc/admin.xml
   cocoon/whiteboard/kernel/etc/jetty.xml
   cocoon/whiteboard/kernel/etc/webdefault.xml
   cocoon/whiteboard/kernel/lib/
   cocoon/whiteboard/kernel/lib/endorsed/
   cocoon/whiteboard/kernel/lib/endorsed/xerces-2.6.2.jar   (contents, props changed)
   cocoon/whiteboard/kernel/lib/endorsed/xml-apis-1.2.01.jar   (contents, props changed)
   cocoon/whiteboard/kernel/lib/jetty-4.2.21.jar   (contents, props changed)
   cocoon/whiteboard/kernel/lib/servlet-2.3.jar   (contents, props changed)
   cocoon/whiteboard/kernel/logs/
   cocoon/whiteboard/kernel/sources/documentation/
   cocoon/whiteboard/kernel/sources/documentation/WEB-INF/
   cocoon/whiteboard/kernel/sources/documentation/WEB-INF/web.xml
   cocoon/whiteboard/kernel/sources/documentation/index.html
   cocoon/whiteboard/kernel/sources/tools/
   cocoon/whiteboard/kernel/sources/tools/build-kernel.xml
   cocoon/whiteboard/kernel/sources/tools/package-list/
   cocoon/whiteboard/kernel/sources/tools/package-list/j2ee/
   cocoon/whiteboard/kernel/sources/tools/package-list/j2ee/package-list
   cocoon/whiteboard/kernel/sources/tools/package-list/j2se/
   cocoon/whiteboard/kernel/sources/tools/package-list/j2se/package-list
   cocoon/whiteboard/kernel/sources/webapp/
   cocoon/whiteboard/kernel/sources/webapp/WEB-INF/
   cocoon/whiteboard/kernel/sources/webapp/WEB-INF/configuration.xml
   cocoon/whiteboard/kernel/sources/webapp/WEB-INF/log4j.xml
   cocoon/whiteboard/kernel/sources/webapp/WEB-INF/web.xml
   cocoon/whiteboard/kernel/temp/
   cocoon/whiteboard/kernel/temp/docs/
   cocoon/whiteboard/kernel/temp/docs/.keep
   cocoon/whiteboard/kernel/temp/root/
   cocoon/whiteboard/kernel/temp/root/.keep
Log:
Here comes the servlet-based runtime environment and build system

Added: cocoon/whiteboard/kernel/bin/gentoo.rc
==============================================================================
--- (empty file)
+++ cocoon/whiteboard/kernel/bin/gentoo.rc	Wed Nov  3 09:24:36 2004
@@ -0,0 +1,32 @@
+#!/sbin/runscript
+
+JETTY_HOME=/opt/jetty
+
+depend() {
+	use logger dns
+	need net
+}
+
+checkconfig() {
+        if [ ! -d $JETTY_HOME ]
+        then
+                eerror "Jetty home directory not found"
+                return 1
+        fi
+}
+
+start() {
+	checkconfig || return 1
+	ebegin "Starting Jetty"
+	export JETTY_HOME
+	start-stop-daemon --start --quiet --pidfile $JETTY_HOME/logs/jetty.pid \
+		--startas $JETTY_HOME/bin/start
+	eend $?
+}
+
+stop() {
+	ebegin "Stopping Jetty"
+	start-stop-daemon --stop --quiet --pidfile $JETTY_HOME/logs/jetty.pid
+	rm -f $JETTY_HOME/logs/jetty.pid
+	eend $?
+}

Added: cocoon/whiteboard/kernel/bin/jetty
==============================================================================
--- (empty file)
+++ cocoon/whiteboard/kernel/bin/jetty	Wed Nov  3 09:24:36 2004
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+if test -z "$JAVA_HOME" ; then
+  echo "JAVA_HOME environment variable not specified"
+  exit 1
+fi
+
+if test -z "$JETTY_HOME" ; then
+  echo "JETTY_HOME environment variable not specified"
+  exit 1
+fi
+
+JAVA_CLASS_PATH=`find $JETTY_HOME/lib -type f -name \*.jar | sort | xargs echo | sed 's| |:|g'`
+if test -n "$CLASSPATH" ; then JAVA_CLASS_PATH="$CLASSPATH:$JAVA_CLASS_PATH" ; fi
+
+cd "$JETTY_HOME/logs"
+echo "`date +'[%Y/%m/%d %H:%M:%S.000]'` *****  Starting Jetty"
+echo $$ > "$JETTY_HOME/logs/jetty.pid"
+exec $JAVA_HOME/bin/java "$@" -DLOG_DATE_FORMAT='[yyyy/MM/dd hh:mm:ss.SSS]' \
+  -Djava.class.path="$JAVA_CLASS_PATH" \
+  -Djava.endorsed.dirs="$JETTY_HOME/lib/endorsed" \
+  -Dorg.mortbay.util.URI.charset="UTF-8" \
+  -Djetty.home="$JETTY_HOME" \
+  org.mortbay.jetty.Server \
+  "$JETTY_HOME/etc/jetty.xml" "$JETTY_HOME/etc/admin.xml"

Added: cocoon/whiteboard/kernel/bin/start
==============================================================================
--- (empty file)
+++ cocoon/whiteboard/kernel/bin/start	Wed Nov  3 09:24:36 2004
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+if test -z "$JETTY_HOME" ; then
+  echo "JETTY_HOME environment variable not specified"
+  exit 1
+fi
+
+if test -f "$JETTY_HOME/logs/jetty.pid" ; then
+  echo "Stale Jetty PID file in $JETTY_HOME/logs/jetty.pid"
+  exit 1
+fi
+
+"$JETTY_HOME/bin/jetty" -server -Xms512m -Xmx512m \
+  -DLOG_FILE="$COCOON_HOME/logs/cocoon-yyyy_mm_dd.log" \
+  < /dev/null > "$COCOON_HOME/logs/cocoon.out" 2>&1 &

Added: cocoon/whiteboard/kernel/build.xml
==============================================================================
--- (empty file)
+++ cocoon/whiteboard/kernel/build.xml	Wed Nov  3 09:24:36 2004
@@ -0,0 +1,253 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- ============================================================================= +
+ | Copyright (C) 1999-2004, The Apache Software Foundation.   All rights reserved. |
+ + =============================================================================== +
+ |                                                                                 |
+ | 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.      |
+ + ============================================================================== -->
+
+<project name="Apache Cocoon Kernel" default="all">
+
+  <property name="version"                  value="0.1"/>
+  <property name="package"                  value="org.apache.cocoon.kernel"/>
+
+  <property name="jar.startup"              value="cocoon-kernel-startup-${version}.jar"/>
+  <property name="jar.runtime"              value="cocoon-kernel-runtime-${version}.jar"/>
+  
+  <property name="build.dir"                value="${basedir}/build"/>
+  <property name="build.kernel.dir"         value="${build.dir}/kernel"/>
+  <property name="build.startup.dir"        value="${build.dir}/startup"/>
+  <property name="build.runtime.dir"        value="${build.dir}/runtime"/>
+  <property name="build.documentation.dir"  value="${build.dir}/documentation"/>
+
+  <property name="source.dir"               value="${basedir}/sources"/>
+  <property name="source.webapp.dir"        value="${source.dir}/webapp"/>
+  <property name="source.startup.dir"       value="${source.dir}/startup"/>
+  <property name="source.runtime.dir"       value="${source.dir}/runtime"/>
+  <property name="source.documentation.dir" value="${source.dir}/documentation"/>
+  
+  <property name="webapp.dir"               value="${basedir}/webapps"/>
+  <property name="webapp.docs.dir"          value="${webapp.dir}/docs"/>
+  <property name="webapp.root.dir"          value="${webapp.dir}/root"/>
+
+  <property name="tools.dir"                value="${source.dir}/tools"/>
+
+  <!-- ========================================================================== -->
+
+  <path id="classpath.startup">
+    <fileset dir="lib" includes="**/*.jar"/>
+  </path>
+
+  <path id="classpath.runtime">
+    <fileset dir="lib" includes="**/*.jar"/>
+    <fileset dir="${build.dir}" includes="${jar.startup}"/>
+  </path>
+
+  <path id="classpath.apidocs">
+    <fileset dir="lib" includes="**/*.jar"/>
+    <fileset dir="sources" includes="**/*.jar"/>
+  </path>
+
+  <!-- =========================================================================== +
+   | Compilation and archival tasks                                                |
+   + ============================================================================ -->
+
+  <target name="compile.startup" depends="prepare">
+    <javac
+        classpathref="classpath.startup"
+        srcdir="${source.startup.dir}"
+        destdir="${build.startup.dir}"
+        debug="true">
+      <include name="**/*.java"/>
+    </javac>
+  </target>
+
+  <!-- ========================================================================== -->
+
+  <target name="compile.runtime" depends="archive.startup">
+    <javac
+        classpathref="classpath.runtime"
+        srcdir="${source.runtime.dir}"
+        destdir="${build.runtime.dir}"
+        debug="true">
+      <include name="**/*.java"/>
+    </javac>
+  </target>
+
+  <!-- ========================================================================== -->
+
+  <target name="archive.startup" depends="compile.startup">
+    <jar
+        destfile="${build.dir}/${jar.startup}"
+        filesonly="true">
+      <fileset dir="${build.startup.dir}">
+        <include name="**/*.class"/>
+        <exclude name="**/.*"/>
+      </fileset>
+      <fileset dir="${build.startup.dir}">
+        <exclude name="**/.java"/>
+        <exclude name="**/.html"/>
+        <exclude name="**/.*"/>
+      </fileset>
+    </jar>
+  </target>
+
+  <target name="archive.runtime" depends="compile.runtime">
+    <jar
+        destfile="${build.dir}/${jar.runtime}"
+        filesonly="true">
+      <fileset dir="${build.runtime.dir}">
+        <include name="**/*.class"/>
+        <exclude name="**/.*"/>
+      </fileset>
+      <fileset dir="${build.runtime.dir}">
+        <exclude name="**/.java"/>
+        <exclude name="**/.html"/>
+        <exclude name="**/.*"/>
+      </fileset>
+    </jar>
+  </target>
+
+  <!-- =========================================================================== +
+   | JavaDoc generation                                                            |
+   + ============================================================================ -->
+
+  <target name="javadoc" unless="javadoc.uptodate" depends="webapp.prepare">
+    <javadoc destdir="${webapp.docs.dir}/javadoc"
+        author="true"
+        version="true"
+        use="true"
+        windowtitle="Apache Cocoon Kernel ${version}"
+        classpathref="classpath.apidocs">
+      <packageset dir="${build.documentation.dir}"/>
+      <group
+          title="Startup"
+          packages="${package}:${package}.configuration:${package}.startup"/>
+      <group
+          title="Runtime"
+          packages="${package}.deployment:${package}.description:${package}.plugins"/>
+      <link
+          href="http://java.sun.com/j2se/1.4.2/docs/api/package-list"
+          packagelistLoc="${tools.dir}/package-list/j2se"
+          offline="true"/>
+      <link
+          href="http://java.sun.com/j2ee/1.4/docs/api/package-list"
+          packagelistLoc="${tools.dir}/package-list/j2ee"
+          offline="true"/>
+    </javadoc>
+  </target>
+
+  <!-- =========================================================================== +
+   | Web-Application generation                                                    |
+   + ============================================================================ -->
+
+  <target name="webapp.prepare" depends="prepare">
+    <mkdir dir="${webapp.docs.dir}"/>
+    <mkdir dir="${webapp.root.dir}"/>
+    <copy todir="${webapp.docs.dir}">
+      <fileset dir="${source.documentation.dir}"></fileset>
+    </copy>
+    <copy todir="${webapp.root.dir}">
+      <fileset dir="${source.webapp.dir}"></fileset>
+    </copy>
+  </target>
+  
+  <!-- ========================================================================== -->
+
+  <target name="webapp.docs" depends="webapp.prepare">
+    <!-- copy all sources into one biiiiig directory -->
+    <mkdir dir="${webapp.docs.dir}/javadoc"/>
+    <copy todir="${build.documentation.dir}">
+      <mapper>
+        <mapper
+            type="regexp"
+            from="^(blocks|extensions|interfaces|modules)/([a-z\-\_\.]+)/src/(.*)\.(html|java)$"
+            to="\3.\4"/>
+        <mapper
+            type="regexp"
+            from="^(startup|runtime)/(.*)\.(html|java)$"
+            to="\2.\3"/>
+      </mapper>
+      <fileset dir="${source.dir}">
+        <include name="**/*.java"/>
+        <include name="**/*.html"/>
+      </fileset>
+    </copy>
+    <!-- run javadoc over the whole thing if (and only if) we need to -->
+    <uptodate property="javadoc.uptodate">
+      <srcfiles dir= "${build.documentation.dir}" includes="**/*.java"/>
+      <mapper type="merge" to="${webapp.docs.dir}/javadoc/index.html"/>
+    </uptodate>
+    <antcall target="javadoc"/>
+  </target>
+  
+  <!-- ========================================================================== -->
+
+  <target name="webapp.root" depends="webapp.prepare,archive.startup,archive.runtime,kernel.components">
+    <mkdir dir="${webapp.root.dir}/WEB-INF/lib"/>
+    <mkdir dir="${webapp.root.dir}/WEB-INF/kernel"/>
+    <copy todir="${webapp.root.dir}/WEB-INF/lib"    file="${build.dir}/${jar.startup}"/>
+    <copy todir="${webapp.root.dir}/WEB-INF/kernel" file="${build.dir}/${jar.runtime}"/>
+  </target>
+
+  <!-- =========================================================================== +
+   | Kernel related tasks                                                          |
+   + ============================================================================ -->
+
+  <target name="kernel.component">
+    <ant antfile="${tools.dir}/build-kernel.xml" dir="${basedir}" inheritAll="false">
+      <property name="component.name"   value="${name}"/>
+      <property name="component.source" value="${source.dir}/${name}"/>
+      <property name="component.target" value="${build.kernel.dir}/${name}"/>
+      <property name="component.deploy" value="${webapp.root.dir}/WEB-INF/kernel"/>
+    </ant>
+  </target>
+
+  <!-- ========================================================================== -->
+  
+  <target name="kernel.components">
+    <antcall target="kernel.component"><param name="name" value="extensions/logging"/></antcall>
+    <antcall target="kernel.component"><param name="name" value="interfaces/jdbc-datasource"/></antcall>
+    <antcall target="kernel.component"><param name="name" value="modules/commons-collections"/></antcall>
+    <antcall target="kernel.component"><param name="name" value="modules/commons-pool"/></antcall>
+    <antcall target="kernel.component"><param name="name" value="blocks/commons-dbcp"/></antcall>
+  </target>
+
+  <!-- =========================================================================== +
+   | Global and generic tasks                                                      |
+   + ============================================================================ -->
+
+  <target name="prepare">
+    <mkdir dir="${build.dir}"/>
+    <mkdir dir="${build.kernel.dir}"/>
+    <mkdir dir="${build.startup.dir}"/>
+    <mkdir dir="${build.runtime.dir}"/>
+    <mkdir dir="${build.documentation.dir}"/>
+  </target>
+
+  <!-- ========================================================================== -->
+  
+  <target name="all" depends="webapp.root,webapp.docs"
+      description="Build all the web applications"/>
+
+  <!-- ========================================================================== -->
+
+  <target name="clean" description="Clean interim compilation targets">
+    <delete dir="${build.dir}"/>
+  </target>
+
+  <!-- ========================================================================== -->
+
+  <target name="distclean" depends="clean" description="Revert to checkout state">
+    <delete dir="${webapp.dir}"/>
+  </target>
+
+</project>

Added: cocoon/whiteboard/kernel/etc/admin.xml
==============================================================================
--- (empty file)
+++ cocoon/whiteboard/kernel/etc/admin.xml	Wed Nov  3 09:24:36 2004
@@ -0,0 +1,38 @@
+<?xml version="1.0"  encoding="ISO-8859-1"?>
+<!DOCTYPE Configure PUBLIC 
+ "-//Mort Bay Consulting//DTD Configure 1.0//EN" 
+ "http://jetty.mortbay.org/configure_1_1.dtd">
+
+<Configure class="org.mortbay.jetty.Server">
+  <Call name="addListener">
+    <Arg>
+      <New class="org.mortbay.http.SocketListener">
+        <Set name="Host">localhost</Set>
+        <Set name="Port">8081</Set>
+        <Set name="MinThreads">1</Set>
+        <Set name="MaxThreads">5</Set>
+        <Set name="MaxIdleTimeMs">30000</Set>      
+      </New>
+    </Arg>
+  </Call>
+
+  <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>
+
+  <Set name="anonymous">true</Set>
+
+</Configure>
+
+
+
+

Added: cocoon/whiteboard/kernel/etc/jetty.xml
==============================================================================
--- (empty file)
+++ cocoon/whiteboard/kernel/etc/jetty.xml	Wed Nov  3 09:24:36 2004
@@ -0,0 +1,61 @@
+<?xml version="1.0"?> 
+<!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 Listeners                                         -->
+  <!-- =============================================================== -->
+  <Call name="addListener">
+    <Arg>
+      <New class="org.mortbay.http.SocketListener">
+        <Set name="Host"><SystemProperty name="jetty.host" default="0.0.0.0"/></Set>
+        <Set name="Port">8080</Set>
+        <Set name="MinThreads">5</Set>
+        <Set name="MaxThreads">10</Set>
+        <Set name="MaxIdleTimeMs">5000</Set>
+        <Set name="LowResourcePersistTimeMs">1000</Set>
+        <Set name="PoolName">main</Set>
+      </New>
+    </Arg>
+  </Call>
+
+  <!-- =============================================================== -->
+  <!-- Configure the Contexts                                          -->
+  <!-- =============================================================== -->
+
+  <Call name="addWebApplication">
+    <Arg>/docs/</Arg>
+    <Arg><SystemProperty name="jetty.home" default="."/>/webapps/docs</Arg>
+    <Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Set>
+    <Set name="tempDirectory">
+      <New class="java.io.File">
+        <Arg><SystemProperty name="jetty.home" default="."/>/temp/docs</Arg>
+      </New>
+    </Set>
+  </Call>
+
+  <Call name="addWebApplication">
+    <Arg>/</Arg>
+    <Arg><SystemProperty name="jetty.home" default="."/>/webapps/root</Arg>
+    <Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Set>
+    <Set name="tempDirectory">
+      <New class="java.io.File">
+        <Arg><SystemProperty name="jetty.home" default="."/>/temp/root</Arg>
+      </New>
+    </Set>
+  </Call>
+
+</Configure>
+
+
+
+
+
+
+
+
+

Added: cocoon/whiteboard/kernel/etc/webdefault.xml
==============================================================================
--- (empty file)
+++ cocoon/whiteboard/kernel/etc/webdefault.xml	Wed Nov  3 09:24:36 2004
@@ -0,0 +1,259 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">   
+
+<!-- ===================================================================== -->
+<!-- This file contains the default descriptor for web applications.       -->
+<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+<!-- The original of this file is included as a resource in the            -->
+<!-- org.mortbay.jetty.jar file and is loaded by default for all web       -->
+<!-- applications before there own WEB-INF/web.xml file is loaded          -->
+<!--                                                                       -->
+<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+<!-- THE COPY OF THIS FILE in $JETTY_HOME/etc IS NOT USED BY DEFAULT!      -->
+<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+<!-- If the version in $JETTY_HOME/etc/ is to be used, then the            -->
+<!-- setDefaultsDescriptor method must be called on each context,          -->
+<!-- giving the location of the default web.xml file to use.               -->
+<!-- eg of setting the defaultsDescriptor in jetty.xml:
+
+    <Call name="addWebApplication">
+      <Arg>/mycontext</Arg>
+      <Arg><SystemProperty name="jetty.home" default=".">/webapps/mywebapp</Arg>
+      <Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Set>
+    </Call>
+                                                                           -->
+<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+
+
+<!-- ===================================================================== -->
+<web-app>
+  <description>
+    Default web.xml file.  
+    This file is applied to a Web application before it's own WEB_INF/web.xml file
+  </description>
+
+
+
+  <!-- ==================================================================== -->
+  <!-- Context params to control Session Cookies                            -->
+  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
+  <!-- UNCOMMENT TO ACTIVATE
+  <context-param>
+    <param-name>org.mortbay.jetty.servlet.SessionDomain</param-name>
+    <param-value>127.0.0.1</param-value>
+  </context-param>
+
+  <context-param>
+    <param-name>org.mortbay.jetty.servlet.SessionPath</param-name>
+    <param-value>/</param-value>
+  </context-param>
+
+  <context-param>
+    <param-name>org.mortbay.jetty.servlet.MaxAge</param-name>
+    <param-value>-1</param-value>
+  </context-param>
+  -->
+
+
+
+  <!-- ==================================================================== -->
+  <!-- The default servlet.                                                 -->
+  <!-- This servlet, normally mapped to /, provides the handling for static -->
+  <!-- content, OPTIONS and TRACE methods for the context.                  -->
+  <!-- The following initParameters are supported:                          -->
+  <!--                                                                      -->
+  <!--   acceptRanges     If true, range requests and responses are         -->
+  <!--                    supported                                         -->
+  <!--                                                                      -->
+  <!--   dirAllowed       If true, directory listings are returned if no    -->
+  <!--                    welcome file is found. Else 403 Forbidden.        -->
+  <!--                                                                      -->
+  <!--   putAllowed       If true, the PUT method is allowed                -->
+  <!--                                                                      -->
+  <!--   delAllowed       If true, the DELETE method is allowed             -->
+  <!--                                                                      -->
+  <!--   redirectWelcome  If true, redirect welcome file requests           -->
+  <!--                    else use request dispatcher forwards              -->
+  <!--                                                                      -->
+  <!--   minGzipLength    If set to a positive integer, then static content -->
+  <!--                    larger than this will be served as gzip content   -->
+  <!--                    encoded if a matching resource is found ending    -->
+  <!--                    with ".gz"                                        -->
+  <!--                                                                      -->
+  <!--   resoureBase      Can be set to replace the context resource base   -->
+  <!--                                                                      -->
+  <!-- The MOVE method is allowed if PUT and DELETE are allowed             -->
+  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
+  <servlet>
+    <servlet-name>default</servlet-name>
+    <servlet-class>org.mortbay.jetty.servlet.Default</servlet-class>
+    <init-param>
+      <param-name>acceptRanges</param-name>
+      <param-value>true</param-value>
+    </init-param>
+    <init-param>
+      <param-name>dirAllowed</param-name>
+      <param-value>true</param-value>
+    </init-param>
+    <init-param>
+      <param-name>putAllowed</param-name>
+      <param-value>false</param-value>
+    </init-param>
+    <init-param>
+      <param-name>delAllowed</param-name>
+      <param-value>false</param-value>
+    </init-param>
+    <init-param>
+      <param-name>redirectWelcome</param-name>
+      <param-value>false</param-value>
+    </init-param>
+    <init-param>
+      <param-name>minGzipLength</param-name>
+      <param-value>8192</param-value>
+    </init-param>
+    <load-on-startup>0</load-on-startup>
+  </servlet>
+  
+  <!-- ==================================================================== -->
+  <!-- JSP Servlet                                                          -->
+  <!-- This is the jasper JSP servlet from the jakarta project              -->
+  <!-- The following initParameters are supported:                          -->
+  <!--                                                                      -->
+  <!--   classpath           What class path should I use while compiling   -->
+  <!--                       generated servlets?  [Created dynamically      -->
+  <!--                       based on the current web application]          -->
+  <!--                                                                      -->
+  <!--   classdebuginfo      Should the class file be compiled with         -->
+  <!--                       debugging information?  [false]                -->
+  <!--                                                                      -->
+  <!--   ieClassId           The class-id value to be sent to Internet      -->
+  <!--                       Explorer when using <jsp:plugin> tags.         -->
+  <!--                       [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93]   -->
+  <!--                                                                      -->
+  <!--   jspCompilerPlugin   The fully qualified class name of the JSP      -->
+  <!--                       compiler plug-in to be used.  See below for    -->
+  <!--                       more information.                              -->
+  <!--                       [Use internal JDK compiler]                    -->
+  <!--                                                                      -->
+  <!--   keepgenerated       Should we keep the generated Java source code  -->
+  <!--                       for each page instead of deleting it? [true]   -->
+  <!--                                                                      -->
+  <!--   largefile           Should we store the static content of JSP      -->
+  <!--                       pages in external data files, to reduce the    -->
+  <!--                       size of the generated servlets?  [false]       -->
+  <!--                                                                      -->
+  <!--   logVerbosityLevel   The level of detailed messages to be produced  -->
+  <!--                       by this servlet.  Increasing levels cause the  -->
+  <!--                       generation of more messages.  Valid values are -->
+  <!--                       FATAL, ERROR, WARNING, INFORMATION, and DEBUG. -->
+  <!--                       [WARNING]                                      -->
+  <!--                                                                      -->
+  <!--   mappedfile          Should we generate static content with one     -->
+  <!--                       print statement per input line, to ease        -->
+  <!--                       debugging?  [false]                            -->
+  <!--                                                                      -->
+  <!--   scratchdir          What scratch directory should we use when      -->
+  <!--                       compiling JSP pages?  [default work directory  -->
+  <!--                       for the current web application]               -->
+  <!--                                                                      -->
+  <!-- If you wish to use Jikes to compile JSP pages:                       -->
+  <!-- * Set the "classpath" initialization parameter appropriately         -->
+  <!--   for this web application.                                          -->
+  <!-- * Set the "jspCompilerPlugin" initialization parameter to            -->
+  <!--   "org.apache.jasper.compiler.JikesJavaCompiler".                    -->
+  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
+  <servlet>
+    <servlet-name>jsp</servlet-name>
+    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
+    <load-on-startup>0</load-on-startup>
+  </servlet>
+
+  <!-- ==================================================================== -->
+  <!-- Dynamic Servlet Invoker.                                             -->
+  <!-- This servlet invokes anonymous servlets that have not been defined   -->
+  <!-- in the web.xml or by other means. The first element of the pathInfo  -->
+  <!-- of a request passed to the envoker is treated as a servlet name for  -->
+  <!-- an existing servlet, or as a class name of a new servlet.            -->
+  <!-- This servlet is normally mapped to /servlet/*                        -->
+  <!-- This servlet support the following initParams:                       -->
+  <!--                                                                      -->
+  <!--  nonContextServlets       If false, the invoker can only load        -->
+  <!--                           servlets from the contexts classloader.    -->
+  <!--                           This is false by default and setting this  -->
+  <!--                           to true may have security implications.    -->
+  <!--                                                                      -->
+  <!--  verbose                  If true, log dynamic loads                 -->
+  <!--                                                                      -->
+  <!--  *                        All other parameters are copied to the     -->
+  <!--                           each dynamic servlet as init parameters    -->
+  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
+  <servlet>
+    <servlet-name>invoker</servlet-name>
+    <servlet-class>org.mortbay.jetty.servlet.Invoker</servlet-class>
+    <init-param>
+      <param-name>verbose</param-name>
+      <param-value>false</param-value>
+    </init-param>
+    <init-param>
+      <param-name>nonContextServlets</param-name>
+      <param-value>false</param-value>
+    </init-param>
+    <init-param>
+      <param-name>dynamicParam</param-name>
+      <param-value>anyValue</param-value>
+    </init-param>
+    <load-on-startup>0</load-on-startup>
+  </servlet>
+
+  <!-- ==================================================================== -->
+  <servlet-mapping>
+    <servlet-name>default</servlet-name>
+    <url-pattern>/</url-pattern>
+  </servlet-mapping>
+
+  <!-- ==================================================================== -->
+  <servlet-mapping>
+    <servlet-name>jsp</servlet-name>
+    <url-pattern>*.jsp</url-pattern>
+  </servlet-mapping>
+
+  <!-- ==================================================================== -->
+  <servlet-mapping>
+    <servlet-name>jsp</servlet-name>
+    <url-pattern>*.jspf</url-pattern>
+  </servlet-mapping>
+
+  <!-- ==================================================================== -->
+  <servlet-mapping>
+    <servlet-name>invoker</servlet-name>
+    <url-pattern>/servlet/*</url-pattern>
+  </servlet-mapping>
+
+
+  <!-- ==================================================================== -->
+  <session-config>
+    <session-timeout>30</session-timeout>
+  </session-config>
+
+  <!-- ==================================================================== -->
+  <!-- Default MIME mappings                                                -->
+  <!-- The default MIME mappings are provided by the mime.properties        -->
+  <!-- resource in the org.mortbay.jetty.jar file.  Additional or modified  -->
+  <!-- mappings may be specified here                                       -->
+  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
+  <!-- UNCOMMENT TO ACTIVATE
+  <mime-mapping>
+    <extension>mysuffix</extension>
+    <mime-type>mymime/type</mime-type>
+  </mime-mapping>
+  -->
+
+  <!-- ==================================================================== -->
+  <welcome-file-list>
+    <welcome-file>index.html</welcome-file>
+    <welcome-file>index.htm</welcome-file>
+    <welcome-file>index.jsp</welcome-file>
+  </welcome-file-list>
+
+</web-app>
+

Added: cocoon/whiteboard/kernel/lib/endorsed/xerces-2.6.2.jar
==============================================================================
Binary file. No diff available.

Added: cocoon/whiteboard/kernel/lib/endorsed/xml-apis-1.2.01.jar
==============================================================================
Binary file. No diff available.

Added: cocoon/whiteboard/kernel/lib/jetty-4.2.21.jar
==============================================================================
Binary file. No diff available.

Added: cocoon/whiteboard/kernel/lib/servlet-2.3.jar
==============================================================================
Binary file. No diff available.

Added: cocoon/whiteboard/kernel/sources/documentation/WEB-INF/web.xml
==============================================================================
--- (empty file)
+++ cocoon/whiteboard/kernel/sources/documentation/WEB-INF/web.xml	Wed Nov  3 09:24:36 2004
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  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.
+-->
+
+<!--+
+    | This is the Cocoon web-app configurations file
+    +-->
+
+<!DOCTYPE web-app
+    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+    "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
+
+<web-app/>
+

Added: cocoon/whiteboard/kernel/sources/documentation/index.html
==============================================================================
--- (empty file)
+++ cocoon/whiteboard/kernel/sources/documentation/index.html	Wed Nov  3 09:24:36 2004
@@ -0,0 +1,9 @@
+<html>
+  <head>
+    <title>Apache Cocoon Kernel</title>
+  </head>
+  <body>
+    <p>Documentation will be coming one day.</p>
+    <p>Take a look at the <a href="javadoc/index.html">JavaDoc</a>.</p>
+  </body>
+</html>
\ No newline at end of file

Added: cocoon/whiteboard/kernel/sources/tools/build-kernel.xml
==============================================================================
--- (empty file)
+++ cocoon/whiteboard/kernel/sources/tools/build-kernel.xml	Wed Nov  3 09:24:36 2004
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project name="Apache Cocoon Kernel Components" default="component">
+
+  <!-- ========================================================================== -->
+
+  <path id="classpath">
+    <fileset dir="${basedir}/lib"     includes="**/*.jar"/>
+    <fileset dir="${basedir}/sources" includes="**/*.jar"/>
+    <fileset dir="${basedir}/build"   includes="**/*.jar"/>
+  </path>
+
+  <!-- =========================================================================== +
+   | Compilation and archival tasks                                                |
+   + ============================================================================ -->
+
+  <target name="component.build" if="component.compilable">
+    <mkdir dir="${component.target}"/>
+    <javac
+        classpathref="classpath"
+        srcdir="${component.source}/src"
+        destdir="${component.target}"
+        debug="true">
+      <include name="**/*.java"/>
+    </javac>
+    <jar
+        destfile="${component.target}.jar"
+        filesonly="true">
+      <fileset dir="${component.target}">
+        <include name="**/*.class"/>
+        <exclude name="**/.*"/>
+      </fileset>
+      <fileset dir="${component.source}/src">
+        <exclude name="**/.java"/>
+        <exclude name="**/.html"/>
+        <exclude name="**/.*"/>
+      </fileset>
+    </jar>
+
+    <copy
+        tofile="${component.deploy}/${component.name}/local.jar"
+        file="${component.target}.jar"/>
+  </target>
+
+  <!-- ========================================================================== -->
+
+  <target name="component.deploy">
+    <mkdir dir="${component.deploy}/${component.name}"/>
+    <copy todir="${component.deploy}/${component.name}">
+      <fileset dir="${component.source}">
+        <exclude name="src/**"/>
+      </fileset>
+    </copy>
+  </target>
+
+  <!-- ========================================================================== -->
+
+  <target name="component">
+    <echo message="Processing kernel component: &quot;${component.name}&quot;"/>
+    <available file="${component.source}/src" property="component.compilable" type="dir"/>
+    <antcall target="component.deploy"/>
+    <antcall target="component.build"/>
+  </target>
+
+</project>

Added: cocoon/whiteboard/kernel/sources/tools/package-list/j2ee/package-list
==============================================================================
--- (empty file)
+++ cocoon/whiteboard/kernel/sources/tools/package-list/j2ee/package-list	Wed Nov  3 09:24:36 2004
@@ -0,0 +1,54 @@
+javax.activation
+javax.ejb
+javax.ejb.spi
+javax.enterprise.deploy.model
+javax.enterprise.deploy.shared
+javax.enterprise.deploy.shared.factories
+javax.enterprise.deploy.spi
+javax.enterprise.deploy.spi.exceptions
+javax.enterprise.deploy.spi.factories
+javax.enterprise.deploy.spi.status
+javax.jms
+javax.mail
+javax.mail.event
+javax.mail.internet
+javax.mail.search
+javax.management
+javax.management.j2ee
+javax.management.j2ee.statistics
+javax.management.loading
+javax.management.modelmbean
+javax.management.monitor
+javax.management.openmbean
+javax.management.relation
+javax.management.timer
+javax.resource
+javax.resource.cci
+javax.resource.spi
+javax.resource.spi.endpoint
+javax.resource.spi.security
+javax.resource.spi.work
+javax.security.jacc
+javax.servlet
+javax.servlet.http
+javax.servlet.jsp
+javax.servlet.jsp.el
+javax.servlet.jsp.tagext
+javax.transaction
+javax.transaction.xa
+javax.xml.namespace
+javax.xml.parsers
+javax.xml.registry
+javax.xml.registry.infomodel
+javax.xml.rpc
+javax.xml.rpc.encoding
+javax.xml.rpc.handler
+javax.xml.rpc.handler.soap
+javax.xml.rpc.holders
+javax.xml.rpc.server
+javax.xml.rpc.soap
+javax.xml.soap
+javax.xml.transform
+javax.xml.transform.dom
+javax.xml.transform.sax
+javax.xml.transform.stream

Added: cocoon/whiteboard/kernel/sources/tools/package-list/j2se/package-list
==============================================================================
--- (empty file)
+++ cocoon/whiteboard/kernel/sources/tools/package-list/j2se/package-list	Wed Nov  3 09:24:36 2004
@@ -0,0 +1,135 @@
+java.applet
+java.awt
+java.awt.color
+java.awt.datatransfer
+java.awt.dnd
+java.awt.event
+java.awt.font
+java.awt.geom
+java.awt.im
+java.awt.im.spi
+java.awt.image
+java.awt.image.renderable
+java.awt.print
+java.beans
+java.beans.beancontext
+java.io
+java.lang
+java.lang.ref
+java.lang.reflect
+java.math
+java.net
+java.nio
+java.nio.channels
+java.nio.channels.spi
+java.nio.charset
+java.nio.charset.spi
+java.rmi
+java.rmi.activation
+java.rmi.dgc
+java.rmi.registry
+java.rmi.server
+java.security
+java.security.acl
+java.security.cert
+java.security.interfaces
+java.security.spec
+java.sql
+java.text
+java.util
+java.util.jar
+java.util.logging
+java.util.prefs
+java.util.regex
+java.util.zip
+javax.accessibility
+javax.crypto
+javax.crypto.interfaces
+javax.crypto.spec
+javax.imageio
+javax.imageio.event
+javax.imageio.metadata
+javax.imageio.plugins.jpeg
+javax.imageio.spi
+javax.imageio.stream
+javax.naming
+javax.naming.directory
+javax.naming.event
+javax.naming.ldap
+javax.naming.spi
+javax.net
+javax.net.ssl
+javax.print
+javax.print.attribute
+javax.print.attribute.standard
+javax.print.event
+javax.rmi
+javax.rmi.CORBA
+javax.security.auth
+javax.security.auth.callback
+javax.security.auth.kerberos
+javax.security.auth.login
+javax.security.auth.spi
+javax.security.auth.x500
+javax.security.cert
+javax.sound.midi
+javax.sound.midi.spi
+javax.sound.sampled
+javax.sound.sampled.spi
+javax.sql
+javax.swing
+javax.swing.border
+javax.swing.colorchooser
+javax.swing.event
+javax.swing.filechooser
+javax.swing.plaf
+javax.swing.plaf.basic
+javax.swing.plaf.metal
+javax.swing.plaf.multi
+javax.swing.table
+javax.swing.text
+javax.swing.text.html
+javax.swing.text.html.parser
+javax.swing.text.rtf
+javax.swing.tree
+javax.swing.undo
+javax.transaction
+javax.transaction.xa
+javax.xml.parsers
+javax.xml.transform
+javax.xml.transform.dom
+javax.xml.transform.sax
+javax.xml.transform.stream
+org.ietf.jgss
+org.omg.CORBA
+org.omg.CORBA.DynAnyPackage
+org.omg.CORBA.ORBPackage
+org.omg.CORBA.TypeCodePackage
+org.omg.CORBA.portable
+org.omg.CORBA_2_3
+org.omg.CORBA_2_3.portable
+org.omg.CosNaming
+org.omg.CosNaming.NamingContextExtPackage
+org.omg.CosNaming.NamingContextPackage
+org.omg.Dynamic
+org.omg.DynamicAny
+org.omg.DynamicAny.DynAnyFactoryPackage
+org.omg.DynamicAny.DynAnyPackage
+org.omg.IOP
+org.omg.IOP.CodecFactoryPackage
+org.omg.IOP.CodecPackage
+org.omg.Messaging
+org.omg.PortableInterceptor
+org.omg.PortableInterceptor.ORBInitInfoPackage
+org.omg.PortableServer
+org.omg.PortableServer.CurrentPackage
+org.omg.PortableServer.POAManagerPackage
+org.omg.PortableServer.POAPackage
+org.omg.PortableServer.ServantLocatorPackage
+org.omg.PortableServer.portable
+org.omg.SendingContext
+org.omg.stub.java.rmi
+org.w3c.dom
+org.xml.sax
+org.xml.sax.ext
+org.xml.sax.helpers

Added: cocoon/whiteboard/kernel/sources/webapp/WEB-INF/configuration.xml
==============================================================================
--- (empty file)
+++ cocoon/whiteboard/kernel/sources/webapp/WEB-INF/configuration.xml	Wed Nov  3 09:24:36 2004
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<configuration>
+
+  <!-- Kernel initial class path -->
+  <classpath>
+    <library href="kernel/cocoon-kernel-runtime-0.1.jar"/>
+  </classpath>
+
+  <!-- Kernel plugins -->
+  <descriptor href="kernel/extensions/logging/cocoon.xml"/>
+
+  <!-- The interface descriptors available to this kernel -->
+  <descriptor href="kernel/interfaces/jdbc-datasource/cocoon.xml"/>
+  
+  <!-- The abstract descriptors available to this kernel -->
+  <descriptor href="kernel/modules/commons-collections/cocoon.xml"/>
+  <descriptor href="kernel/modules/commons-pool/cocoon.xml"/>
+
+  <!-- The block descriptors available to this kernel -->
+  <descriptor href="kernel/blocks/commons-dbcp/cocoon.xml"/>
+
+  <!-- Logging plugin configuration -->
+  <logging log4j="log4j.xml"/>
+
+  <!-- Configuration for all instances deployed in the kernel -->  
+  <instance name="test"  block="http://cocoon.apache.org/blocks/jakarta/commons-dbcp/1.2.1">
+    <set property="driverClassName" value="oracle.jdbc.OracleDriver"/>
+    <set property="url" value="jdbc:oracle:thin:@qbe.local:1521:vnlive"/>
+    <set property="username" value="****"/>
+    <set property="password" value="****"/>
+    <set property="maxActive" value="5"/>
+  </instance>
+  
+</configuration>
\ No newline at end of file

Added: cocoon/whiteboard/kernel/sources/webapp/WEB-INF/log4j.xml
==============================================================================
--- (empty file)
+++ cocoon/whiteboard/kernel/sources/webapp/WEB-INF/log4j.xml	Wed Nov  3 09:24:36 2004
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+
+    <appender name="default" class="org.apache.log4j.ConsoleAppender">
+        <layout class="org.apache.log4j.PatternLayout">
+            <param name="ConversionPattern" value="%d{yyyy/MM/dd HH:mm:ss.SSS} [%-5p] %c{2}: %m%n"/>
+        </layout>	    
+    </appender>
+
+    <root>
+        <priority value ="debug" />
+        <appender-ref ref="default" />
+    </root>
+	
+</log4j:configuration>

Added: cocoon/whiteboard/kernel/sources/webapp/WEB-INF/web.xml
==============================================================================
--- (empty file)
+++ cocoon/whiteboard/kernel/sources/webapp/WEB-INF/web.xml	Wed Nov  3 09:24:36 2004
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 1999-2004 The Apache Software Foundation
+
+  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.
+-->
+
+<!--+
+    | This is the Cocoon web-app configurations file
+    +-->
+
+<!DOCTYPE web-app
+    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+    "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
+
+<web-app>
+
+  <!-- Context Configuration ========================================== -->
+
+  <!--+
+      | Set a context property useful to allow you to ProxyPass your
+      | web application mounted to a different URI without loosing the
+      | ability to do cookie-based sessions.
+      | WARNING: this is Jetty specific!
+      +-->
+  <context-param>
+    <param-name>kernel-configuration</param-name>
+    <param-value>/WEB-INF/configuration.xml</param-value>
+  </context-param>
+
+  <listener>
+    <listener-class>org.apache.cocoon.kernel.startup.ServletLoader</listener-class>
+  </listener>
+
+</web-app>
+

Added: cocoon/whiteboard/kernel/temp/docs/.keep
==============================================================================

Added: cocoon/whiteboard/kernel/temp/root/.keep
==============================================================================

Mime
View raw message