You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by re...@apache.org on 2006/05/18 15:56:40 UTC
svn commit: r407552 - in /cocoon/trunk/tools/archetypes: ./
cocoon-22-archetype-webapp/ cocoon-22-archetype-webapp/src/
cocoon-22-archetype-webapp/src/main/
cocoon-22-archetype-webapp/src/main/resources/
cocoon-22-archetype-webapp/src/main/resources/ME...
Author: reinhard
Date: Thu May 18 06:56:38 2006
New Revision: 407552
URL: http://svn.apache.org/viewvc?rev=407552&view=rev
Log:
Initial commit of a cocoon-22 webapp archetype
Added:
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/ (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/pom.xml (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/ (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/ (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/ (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/META-INF/ (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/META-INF/archetype.xml (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/ (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/pom.xml (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/ (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/ (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/ (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/ (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/cocoon.xconf (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/log4j.xconf (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/properties/ (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/properties/core.properties (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/properties/dev/ (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/properties/dev/core.properties (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/sitemap-additions/ (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/sitemap-additions/cocoon-core-sitemap.xmap (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/xconf/ (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/xconf/cocoon-core.xconf (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/sitemap.xmap (with props)
cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/welcome.xml (with props)
Modified:
cocoon/trunk/tools/archetypes/pom.xml
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/
------------------------------------------------------------------------------
eol:style = 'native'
Added: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/pom.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/pom.xml?rev=407552&view=auto
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/pom.xml (added)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/pom.xml Thu May 18 06:56:38 2006
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2006 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.
+-->
+<project>
+ <parent>
+ <artifactId>cocoon-archetypes</artifactId>
+ <groupId>org.apache.cocoon</groupId>
+ <version>1-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>cocoon-22-archetype-webapp</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <name>Cocoon 2.2 Webapp Archetype</name>
+</project>
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/pom.xml
------------------------------------------------------------------------------
eol:style = 'native'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/pom.xml
------------------------------------------------------------------------------
svn:keywords = 'Id'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/
------------------------------------------------------------------------------
eol:style = 'native'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/
------------------------------------------------------------------------------
eol:style = 'native'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/
------------------------------------------------------------------------------
eol:style = 'native'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/META-INF/
------------------------------------------------------------------------------
eol:style = 'native'
Added: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/META-INF/archetype.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/META-INF/archetype.xml?rev=407552&view=auto
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/META-INF/archetype.xml (added)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/META-INF/archetype.xml Thu May 18 06:56:38 2006
@@ -0,0 +1,14 @@
+<archetype>
+ <id>cocoon-22-archetype-webapp</id>
+ <resources>
+ <resource>src/main/webapp/sitemap.xmap</resource>
+ <resource>src/main/webapp/welcome.xml</resource>
+ <resource>src/main/webapp/WEB-INF/web.xml</resource>
+ <resource>src/main/webapp/WEB-INF/log4j.xconf</resource>
+ <resource>src/main/webapp/WEB-INF/cocoon.xconf</resource>
+ <resource>src/main/webapp/WEB-INF/properties/core.properties</resource>
+ <resource>src/main/webapp/WEB-INF/properties/dev/core.properties</resource>
+ <resource>src/main/webapp/WEB-INF/sitemap-additions/cocoon-core-sitemap.xmap</resource>
+ <resource>src/main/webapp/WEB-INF/xconf/cocoon-core.xconf</resource>
+ </resources>
+</archetype>
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/META-INF/archetype.xml
------------------------------------------------------------------------------
eol:style = 'native'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/META-INF/archetype.xml
------------------------------------------------------------------------------
svn:keywords = 'Id'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/
------------------------------------------------------------------------------
eol:style = 'native'
Added: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/pom.xml?rev=407552&view=auto
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/pom.xml (added)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/pom.xml Thu May 18 06:56:38 2006
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2006 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.
+-->
+<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">
+
+ <modelVersion>4.0.0</modelVersion>
+ <packaging>jar</packaging>
+
+ <name>${artifactId}</name>
+
+ <groupId>${groupId}</groupId>
+ <artifactId>${artifactId}</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-deployer-plugin</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <configuration>
+ <serverVersion>2.2</serverVersion>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>maven-jetty6-plugin</artifactId>
+ <version>6.0.0beta10</version>
+ <configuration>
+ <connectors>
+ <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
+ <port>8888</port>
+ <maxIdleTime>30000</maxIdleTime>
+ </connector>
+ </connectors>
+ <webAppSourceDirectory>./target/cocoon-webapp</webAppSourceDirectory>
+ <contextPath>/</contextPath>
+ </configuration>
+ </plugin>
+ </plugins>
+ <finalName>cocoon-webapp</finalName>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-core</artifactId>
+ <version>2.2.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-paranoid-impl</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cocoon</groupId>
+ <artifactId>cocoon-forms-impl</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+
+</project>
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/pom.xml
------------------------------------------------------------------------------
eol:style = 'native'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/pom.xml
------------------------------------------------------------------------------
svn:keywords = 'Id'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/
------------------------------------------------------------------------------
eol:style = 'native'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/
------------------------------------------------------------------------------
eol:style = 'native'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/
------------------------------------------------------------------------------
eol:style = 'native'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/
------------------------------------------------------------------------------
eol:style = 'native'
Added: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/cocoon.xconf
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/cocoon.xconf?rev=407552&view=auto
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/cocoon.xconf (added)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/cocoon.xconf Thu May 18 06:56:38 2006
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 1999-2005 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.
+-->
+<!-- CVS $Id: cocoon.xconf 407205 2006-05-17 09:32:20Z cziegeler $ -->
+<cocoon version="2.2">
+
+<!--+
+ | This is the main Apache Cocoon configuration file.
+ | It contains includes for the core components and for
+ | each of the blocks that are to be loaded.
+ |
+ | You can add your own components here or include some
+ | additional external files.
+ +-->
+
+ <include src="context://WEB-INF/xconf/cocoon-core.xconf"/>
+
+ <!--+
+ | Include all configuration files ending with ".xconf"
+ | from the xconf directory.
+ +-->
+ <include dir="context://WEB-INF/xconf" pattern="*.xconf"/>
+
+ <!--+
+ | Include core sitemap configuration.
+ +-->
+ <include src="context://WEB-INF/sitemap-additions/cocoon-core-sitemap.xmap"/>
+
+ <!--+
+ | Include all configuration files ending with ".xmap"
+ | from the sitemap-additions directory.
+ +-->
+ <include dir="context://WEB-INF/sitemap-additions" pattern="*.xmap"/>
+
+ <!--+
+ | Include all configuration files ending with ".samplesxconf"
+ | from the xconf directory.
+ +-->
+ <include dir="context://WEB-INF/xconf" pattern="*.samplesxconf"/>
+</cocoon>
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/cocoon.xconf
------------------------------------------------------------------------------
eol:style = 'native'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/cocoon.xconf
------------------------------------------------------------------------------
svn:keywords = 'Id'
Added: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/log4j.xconf
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/log4j.xconf?rev=407552&view=auto
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/log4j.xconf (added)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/log4j.xconf Thu May 18 06:56:38 2006
@@ -0,0 +1,36 @@
+<?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.
+-->
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+
+ <!-- This is a sample configuration for log4j.
+ It simply just logs everything into a single
+ log file.
+ Note, that you can use properties for value substitution.
+ -->
+ <appender name="COCOON_DEFAULT" class="org.apache.log4j.FileAppender">
+ <param name="File" value="${log-dir}/log4j.log" />
+ <param name="Append" value="false" />
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%t %-5p %c{2} - %m%n"/>
+ </layout>
+ </appender>
+
+ <root>
+ <priority value="error"/>
+ <appender-ref ref="COCOON_DEFAULT" />
+ </root>
+</log4j:configuration>
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/log4j.xconf
------------------------------------------------------------------------------
eol:style = 'native'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/log4j.xconf
------------------------------------------------------------------------------
svn:keywords = 'Id'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/properties/
------------------------------------------------------------------------------
eol:style = 'native'
Added: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/properties/core.properties
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/properties/core.properties?rev=407552&view=auto
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/properties/core.properties (added)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/properties/core.properties Thu May 18 06:56:38 2006
@@ -0,0 +1,145 @@
+# Copyright 2005 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 file contains the default settings for Cocoon.
+# You should NOT change this file directly. Create your own properties
+# file and put it in the sub directories for the mode you are running
+# Cocoon in.
+
+# This parameter points to the main configuration file for Cocoon.
+org.apache.cocoon.configuration=/WEB-INF/cocoon.xconf
+
+# Delay between reload checks for the configuration in ms.
+# The check is only performed if reloading is turned on!
+org.apache.cocoon.reload-delay=1000
+
+# Allow reinstantiating (reloading) of the cocoon instance. If this is
+# set to "yes" or "true", a new cocoon instance can be created using
+# the request parameter "cocoon-reload". It also enables that Cocoon is
+# reloaded when cocoon.xconf changes. Default is no for security reasons.
+org.apache.cocoon.reloading=no
+
+# Turn on reloading for specific parts:
+#org.apache.cocoon.reloading.sitemap=yes
+#org.apache.cocoon.reload-delay.sitemap=5000
+#org.apache.cocoon.reloading.config=yes
+#org.apache.cocoon.reloading.flow=yes
+
+# This parameter indicates the log4j configuration file.
+org.apache.cocoon.logging.configuration=WEB-INF/log4j.xconf
+
+# This parameter indicates the category id of the logger
+# configuration used by the environment Cocoon runs in (CLI, Servlet etc.).
+org.apache.cocoon.logging.category.environment=access
+
+# This parameter indicates the category id of the logger from the
+# logging system for the Cocoon engine.
+# This logger is used for all components described in the cocoon.xconf
+# and sitemap.xmap file not having specified a logger with the
+# logger="..." attribute in the component configuration file.
+org.apache.cocoon.logging.category.cocoon=core
+
+# This parameter indicates the log level to use throughout startup of the
+# system. As soon as the logging system is set up, the setting of the
+# logging system is used instead!
+# Available levels are:
+# DEBUG: prints all level of log messages.
+# INFO: prints all level of log messages except DEBUG ones.
+# WARN: prints all level of log messages except DEBUG and INFO ones.
+# ERROR: prints all level of log messages except DEBUG, INFO and WARN ones.
+# FATAL_ERROR: prints only log messages of this level
+org.apache.cocoon.logging.bootstrap.loglevel=WARN
+
+# Causes all files in multipart requests to be processed.
+# Default is true but the maximum allowed size is kept small for security reasons.
+# Unsupported values will be interpreted as false.
+org.apache.cocoon.uploads.enable=true
+
+# This parameter allows to specify where Cocoon should put uploaded files.
+# The path specified can be either absolute or relative to the context
+# path of the servlet. On windows platform, absolute directory must start
+# with volume: C:\Path\To\Upload\Directory
+#
+# The default directory is "upload-dir" in the work-directory
+#org.apache.cocoon.uploads.directory=WEB-INF/work/upload-dir
+
+# Causes all files in multipart requests to be saved to upload-dir.
+# Default is true for security reasons.
+# Unsupported values will be interpreted as false.
+org.apache.cocoon.uploads.autosave=true
+
+# Specify handling of name conflicts when saving uploaded files to disk.
+# Acceptable values are deny, allow, rename (default). Files are renamed
+# x_filename where x is an integer value incremented to make the new
+# filename unique.
+org.apache.cocoon.uploads.overwrite=rename
+
+# Specify maximum allowed size of the upload. Defaults to 10 Mb.
+# Set here to a very low 100 kb to allow samples to run.
+org.apache.cocoon.uploads.maxsize=102400
+
+# This parameter allows to specify where Cocoon should create its page
+# and other objects cache. The path specified can be either absolute or
+# relative to the context path of the servlet. On windows platform,
+# absolute directory must start with volume: C:\Path\To\Cache\Directory
+#
+# The default directory is "cache-dir" in the work-directory.
+#org.apache.cocoon.cache.directory=WEB-INF/work/cache-dir
+
+# This parameter allows to specify where Cocoon should put it's
+# working files. The path specified is either absolute or relative
+# to the context path of the Cocoon servlet. On windows platform,
+# absolute directory must start with volume: C:\Path\To\Work\Directory
+#
+# The default directory is "cocoon-files" directory in the servlet
+# context's temp directory (context property javax.servlet.context.tempdir).
+#org.apache.cocoon.work.directory=WEB-INF/work
+
+# This parameter is used to list classes that should be loaded at
+# initialization time of the servlet. For example, JDBC Drivers used need to
+# be named here. Additional entries may be inserted here during build
+# depending on your build properties.
+#
+# For parent ServiceManager sample:
+#org.apache.cocoon.classloader.load.classes.parentcm=org.apache.cocoon.samples.parentcm.Configurator
+#
+# For IBM WebSphere:
+#org.apache.cocoon.classloader.load.classes.websphere=com.ibm.servlet.classloader.Handler
+
+# If you set this parameter to 'true' or 'yes', Cocoon will add processing
+# time to the end of each response. Value 'hide' adds processing time as an
+# HTML comment. By default, processing time is not added (corresponds to
+# value 'no').
+# NOTE: If you use this feature, Cocoon might generated a wrong content
+# length header in the response. This is due to the internal processing
+# of Readers and the Caching. So, this might be the reason if you get
+# a warning about a wrong content length.
+# See http://issues.apache.org/bugzilla/show_bug.cgi?id=17370.
+#org.apache.cocoon.showtime=true
+#org.apache.cocoon.hideshowtime=true
+
+# Whether or not the X-Cocoon-Version response header will be included.
+# This is true by default, but there may be some circumstances when it
+# is not desired (e.g. "information hiding" for added security, or if
+# using jsp:include with Cocoon-generated pages produces a "response is
+# already committed" error).
+org.apache.cocoon.showcocoonversion=true
+
+# If true or not set, this class will try to catch and handle all Cocoon
+# exceptions. If false, it will rethrow them to the servlet container.
+org.apache.cocoon.manageexceptions=true
+
+# Set form encoding. This will be the character set used to decode request
+# parameters. If not set the ISO-8859-1 encoding will be assumed.
+org.apache.cocoon.formencoding=ISO-8859-1
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/properties/core.properties
------------------------------------------------------------------------------
eol:style = 'native'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/properties/core.properties
------------------------------------------------------------------------------
svn:keywords = 'Id'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/properties/dev/
------------------------------------------------------------------------------
eol:style = 'native'
Added: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/properties/dev/core.properties
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/properties/dev/core.properties?rev=407552&view=auto
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/properties/dev/core.properties (added)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/properties/dev/core.properties Thu May 18 06:56:38 2006
@@ -0,0 +1,20 @@
+# Copyright 1999-2005 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.
+#
+
+# Turn on debug logging
+org.apache.cocoon.override.loglevel=DEBUG
+
+# Turn on reloading for all parts
+org.apache.cocoon.reloading=yes
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/properties/dev/core.properties
------------------------------------------------------------------------------
eol:style = 'native'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/properties/dev/core.properties
------------------------------------------------------------------------------
svn:keywords = 'Id'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/sitemap-additions/
------------------------------------------------------------------------------
eol:style = 'native'
Added: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/sitemap-additions/cocoon-core-sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/sitemap-additions/cocoon-core-sitemap.xmap?rev=407552&view=auto
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/sitemap-additions/cocoon-core-sitemap.xmap (added)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/sitemap-additions/cocoon-core-sitemap.xmap Thu May 18 06:56:38 2006
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2006 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.
+-->
+<map:components xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+
+ <map:generators default="file">
+ <map:generator label="content" logger="sitemap.generator.file" name="file" pool-max="32" src="org.apache.cocoon.generation.FileGenerator"/>
+ </map:generators>
+
+ <map:transformers default="xslt">
+ <map:transformer logger="sitemap.transformer.xslt" name="xslt" pool-max="32" src="org.apache.cocoon.transformation.TraxTransformer">
+ <use-request-parameters>false</use-request-parameters>
+ <use-session-parameters>false</use-session-parameters>
+ <use-cookie-parameters>false</use-cookie-parameters>
+ <xslt-processor-role>xalan</xslt-processor-role>
+ <check-includes>true</check-includes>
+ </map:transformer>
+ </map:transformers>
+
+ <map:serializers default="xhtml">
+ <map:serializer logger="sitemap.serializer.xml" mime-type="text/xml" name="xml" src="org.apache.cocoon.serialization.XMLSerializer"/>
+ <map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html" name="xhtml" pool-max="64" src="org.apache.cocoon.serialization.XMLSerializer">
+ <doctype-public>-//W3C//DTD XHTML 1.0 Strict//EN</doctype-public>
+ <doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</doctype-system>
+ <encoding>UTF-8</encoding>
+ </map:serializer>
+ </map:serializers>
+
+ <map:readers default="resource">
+ <map:reader logger="sitemap.reader.resource" name="resource" pool-max="32" src="org.apache.cocoon.reading.ResourceReader"/>
+ </map:readers>
+
+ <map:matchers default="wildcard">
+ <map:matcher logger="sitemap.matcher.wildcard" name="wildcard" src="org.apache.cocoon.matching.WildcardURIMatcher"/>
+ </map:matchers>
+
+ <map:pipes default="caching">
+ <map:pipe name="caching" src="org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline"/>
+ <map:pipe name="noncaching" src="org.apache.cocoon.components.pipeline.impl.NonCachingProcessingPipeline"/>
+ </map:pipes>
+
+</map:components>
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/sitemap-additions/cocoon-core-sitemap.xmap
------------------------------------------------------------------------------
eol:style = 'native'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/sitemap-additions/cocoon-core-sitemap.xmap
------------------------------------------------------------------------------
svn:keywords = 'Id'
Added: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml?rev=407552&view=auto
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml (added)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml Thu May 18 06:56:38 2006
@@ -0,0 +1,150 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 1999-2005 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/dtd/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>org.mortbay.jetty.servlet.SessionPath</param-name>
+ <param-value>/some/path/to/your/webapp</param-value>
+ <description>An override of the session cookie path</description>
+ </context-param-->
+
+ <!-- Servlet Configuration ========================================== -->
+
+ <servlet>
+ <servlet-name>Cocoon</servlet-name>
+ <display-name>Cocoon</display-name>
+ <description>Cocoon</description>
+
+ <!--
+ The paranoid servlet class, to be used instead of regular one when
+ having conflicts between libraries used by Cocoon and the servlet
+ container.
+ -->
+ <servlet-class>org.apache.cocoon.servlet.ParanoidCocoonServlet</servlet-class>
+ <init-param>
+ <param-name>classloader-class</param-name>
+ <param-value>org.apache.cocoon.servlet.ParanoidClassLoader</param-value>
+ </init-param>
+ <!--
+ The regular servlet class (trusts the servlet container classloader)
+ <servlet-class>org.apache.cocoon.servlet.CocoonServlet</servlet-class>
+ -->
+
+ <!--
+ Set encoding used by the container. If not set the ISO-8859-1 encoding
+ will be assumed.
+ Since the servlet specification requires that the ISO-8859-1 encoding
+ is used (by default), you should never change this value unless
+ you have a buggy servlet container.
+ -->
+ <init-param>
+ <param-name>container-encoding</param-name>
+ <param-value>ISO-8859-1</param-value>
+ </init-param>
+
+ <!--
+ This parameter allows you to startup Cocoon2 immediately after startup
+ of your servlet engine.
+ -->
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <!-- URL space mappings ============================================= -->
+
+ <!--
+ Cocoon handles all the URL space assigned to the webapp using its sitemap.
+ It is recommended to leave it unchanged. Under some circumstances though
+ (like integration with proprietary webapps or servlets) you might have
+ to change this parameter.
+ -->
+ <servlet-mapping>
+ <servlet-name>Cocoon</servlet-name>
+ <url-pattern>/</url-pattern>
+ </servlet-mapping>
+
+ <!--
+ Some servlet engines (Tomcat) have defaults which are not overriden
+ by '/' mapping, but must be overriden explicitly.
+ -->
+ <servlet-mapping>
+ <servlet-name>Cocoon</servlet-name>
+ <url-pattern>*.jsp</url-pattern>
+ </servlet-mapping>
+ <!--
+ Some servlet engines (WebLogic) have defaults which are not overriden
+ by '/' mapping, but must be overriden explicitly.
+ -->
+ <servlet-mapping>
+ <servlet-name>Cocoon</servlet-name>
+ <url-pattern>*.html</url-pattern>
+ </servlet-mapping>
+
+ <!-- various MIME type mappings ====================================== -->
+
+ <mime-mapping>
+ <extension>css</extension>
+ <mime-type>text/css</mime-type>
+ </mime-mapping>
+
+ <mime-mapping>
+ <extension>xml</extension>
+ <mime-type>text/xml</mime-type>
+ </mime-mapping>
+
+ <mime-mapping>
+ <extension>xsl</extension>
+ <mime-type>text/xml</mime-type>
+ </mime-mapping>
+
+ <mime-mapping>
+ <extension>xconf</extension>
+ <mime-type>text/xml</mime-type>
+ </mime-mapping>
+
+ <mime-mapping>
+ <extension>xmap</extension>
+ <mime-type>text/xml</mime-type>
+ </mime-mapping>
+
+ <mime-mapping>
+ <extension>ent</extension>
+ <mime-type>text/plain</mime-type>
+ </mime-mapping>
+
+ <mime-mapping>
+ <extension>grm</extension>
+ <mime-type>text/plain</mime-type>
+ </mime-mapping>
+
+</web-app>
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
eol:style = 'native'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:keywords = 'Id'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/xconf/
------------------------------------------------------------------------------
eol:style = 'native'
Added: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/xconf/cocoon-core.xconf
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/xconf/cocoon-core.xconf?rev=407552&view=auto
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/xconf/cocoon-core.xconf (added)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/xconf/cocoon-core.xconf Thu May 18 06:56:38 2006
@@ -0,0 +1,713 @@
+<?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.
+-->
+<!-- SVN $Id: cocoon-core.xconf 396505 2006-04-24 10:33:03Z antonio $ -->
+<components>
+
+<!--+
+ | This file defines the Cocoon core components.
+ +-->
+
+ <!-- Include the core roles definitions. This is for the sake of clarity,
+ as they are implicitely loaded at startup, but we may want to remove
+ this implicit behaviour in the future now that we have the include
+ mechanism. -->
+ <include src="resource://org/apache/cocoon/cocoon.roles"/>
+
+<!-- =========================== Sitemap =============================== -->
+
+ <!--+
+ | New implementation of the sitemap. It is interpreted, so load times
+ | are super-fast, and request processing is slightly faster than with
+ | the compiled engine thanks to the HotSpot VM.
+ |
+ | Reloading of the sitemap:
+ | If a sitemap is checked for reloading is determined by the
+ | org.apache.cocoon.reloading (resp. org.apache.cocoon.reloading.sitemap)
+ | property.
+ | Set to "no", the sitemap is generated once at startup.
+ | Set to "yes", the sitemap is regenerated if it changes.
+ |
+ | For development environment, set the check-reload to yes.
+ | For production environment, it is advisable to set check-reload to no.
+ +-->
+ <sitemap file="context://sitemap.xmap" logger="sitemap"/>
+
+<!-- ========================= Sitemap Flowscript ========================== -->
+
+ <!--+
+ | The <flow-interpreters> element is used to describe the flowscript
+ | engines usedd by the current instance.
+ |
+ | The attributes recognized by the <flow-interpreters> element are:
+ |
+ | default (string value):
+ |
+ | the default interpreted language assumed for <map:script>
+ | elements which do not specify a "language" attribute. If not
+ | present, the first language that's described within the
+ | <flow-interpreters> element is assumed to be the default
+ | language.
+ |
+ | Within <flow-interpreters> only <component-instance> elements are
+ | recognized. The attributes recognized by this element are "name"
+ | and "class". "name" specifies the name of a scripting language,
+ | and "class" defines the Java class that implements it. See
+ | org.apache.cocoon.components.flow.Interpreter for the Cocoon
+ | interface with an scripting language interpreter.
+ |
+ | A <component-instance> element contains as subelements the
+ | following elements:
+ |
+ | reload-scripts (boolean value, default false):
+ | whether to check if the scripts source files are modified.
+ | Checking for modification is an expensive operation, so leave
+ | it disabled in a production environment. If not present it is
+ | assumed to be "false" (if no property is overriding this). When
+ | "true" *all* script files are
+ | checked for modification on each function invocation done using
+ | <map:call function="...">, but not more frequent than the value
+ | of "check-time" (see below).
+ | The default for this function is determined by the value of the
+ | reloading property 'org.apache.cocoon.reloading.flow'.
+ |
+ | check-time (long value, default 1000):
+ | time in miliseconds between the checks for the last modification
+ | date of script files.
+ |
+ | debugger (boolean value, default false):
+ | whether support for the JavaScript debugger should be enabled in
+ | the control flow.
+ +-->
+ <flow-interpreters default="javascript" logger="flow">
+ <!-- FOM (Flow Object Model) -->
+ <component-instance exported="false" name="javascript" class="org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter">
+ <load-on-startup>resource://org/apache/cocoon/components/flow/javascript/fom/fom_system.js</load-on-startup>
+ <!--
+ <reload-scripts>true</reload-scripts>
+ <check-time>4000</check-time>
+ -->
+ <!-- <debugger>enabled</debugger> --> <!-- JavaScript Debugger support -->
+ </component-instance>
+ </flow-interpreters>
+
+ <!--+
+ | Configuration for the continuations manager.
+ |
+ | This section specifies the default time-to-live of continuations
+ | in miliseconds using the "time-to-live" attribute of
+ | the <continuations-manager> element.
+ |
+ | The <expirations-check> element specifies different policies for
+ | expiring continuations. Currently only the "periodic" type is
+ | supported.
+ |
+ | If you need higher security you can bind your continuations
+ | to session. This way only the session that initially created
+ | the continuation can later resume it. Also if session gets
+ | invalidated all continuations are invalidated as well.
+ | Enable this feature for web applications by setting
+ | 'session-bound-continuations' to true.
+ +-->
+ <continuations-manager logger="flow.manager" time-to-live="3600000"
+ session-bound-continuations="false">
+ <expirations-check type="periodic">
+ <offset>180000</offset>
+ <period>180000</period>
+ </expirations-check>
+ </continuations-manager>
+
+<!-- =================== Sitemap Input/Output Modules ====================== -->
+
+ <!--+
+ | InputModules are a replacement to reading values directly
+ | e.g. from request parameters. By using this abstraction and
+ | indirection, other components can be more generic and changes
+ | to the application logic are easier.
+ |
+ | A number of components already use InputModules: the sitemap processor,
+ | flow, some matchers, the linkrewriting transformer, database actions
+ | and more.
+ |
+ | For example the sitemap processor allows to obtain a value
+ | named "foo" from an the InputModule for request parameters by
+ | writing {request-param:foo} wherever a sitemap variable is
+ | allowed.
+ |
+ | Some InputModules need the help of other InputModules to
+ | obtain values and only apply a function to the obtained value
+ | or change the name of the attribute. These modules usually
+ | carry "Meta" in their name. An example is the ChainMetaModule
+ | which tries several other modules in turn until a non-null
+ | value is obtained or all modules are tied.
+ |
+ | For details and optional configuration parameters refer to the
+ | accompanying javadocs.
+ +-->
+ <input-modules>
+ <component-instance logger="core.modules.input" name="url-encode" class="org.apache.cocoon.components.modules.input.URLEncodeModule">
+ <encoding>UTF-8</encoding>
+ </component-instance>
+ <component-instance logger="core.modules.input" name="url-decode" class="org.apache.cocoon.components.modules.input.URLDecodeModule">
+ <encoding>UTF-8</encoding>
+ </component-instance>
+ <component-instance logger="core.modules.input" name="global" class="org.apache.cocoon.components.modules.input.GlobalInputModule"/>
+ <component-instance logger="core.modules.input" name="request" class="org.apache.cocoon.components.modules.input.RequestModule"/>
+ <component-instance logger="core.modules.input" name="baselink" class="org.apache.cocoon.components.modules.input.BaseLinkModule" />
+ <component-instance logger="core.modules.input" name="session" class="org.apache.cocoon.components.modules.input.SessionModule"/>
+ <component-instance logger="core.modules.input" name="environment-attr" class="org.apache.cocoon.components.modules.input.EnvironmentAttributeModule"/>
+ <component-instance logger="core.modules.input" name="request-param" class="org.apache.cocoon.components.modules.input.RequestParameterModule"/>
+ <component-instance logger="core.modules.input" name="raw-request-param" class="org.apache.cocoon.components.modules.input.RawRequestParameterModule"/>
+ <component-instance logger="core.modules.input" name="request-attr" class="org.apache.cocoon.components.modules.input.RequestAttributeModule"/>
+ <component-instance logger="core.modules.input" name="request-scoped-attr" class="org.apache.cocoon.components.modules.input.RequestScopedAttributeModule"/>
+ <component-instance logger="core.modules.input" name="request-header" class="org.apache.cocoon.components.modules.input.HeaderAttributeModule"/>
+ <component-instance logger="core.modules.input" name="session-attr" class="org.apache.cocoon.components.modules.input.SessionAttributeModule"/>
+ <component-instance logger="core.modules.input" name="cookie" class="org.apache.cocoon.components.modules.input.CookieModule"/>
+ <component-instance logger="core.modules.input" name="system-property" class="org.apache.cocoon.components.modules.input.SystemPropertyModule"/>
+ <component-instance logger="core.modules.input" name="constant" class="org.apache.cocoon.components.modules.input.StringConstantModule"/>
+ <component-instance logger="core.modules.input" name="random" class="org.apache.cocoon.components.modules.input.RandomNumberModule"/>
+ <component-instance logger="core.modules.input" name="digest" class="org.apache.cocoon.components.modules.input.DigestMetaModule"/>
+ <component-instance logger="core.modules.input" name="date" class="org.apache.cocoon.components.modules.input.DateInputModule">
+ <!-- <format>EEE, d MMM yyyy HH:mm:ss Z</format> -->
+ <!--Eg: Mon, 28 Oct 2002 03:08:49 +1100 -->
+ </component-instance>
+ <component-instance logger="core.modules.input" name="nullinput" class="org.apache.cocoon.components.modules.input.NullInputModule"/>
+ <component-instance logger="core.modules.input" name="realpath" class="org.apache.cocoon.components.modules.input.RealPathModule"/>
+ <component-instance logger="core.modules.input" name="contextpath" class="org.apache.cocoon.components.modules.input.ContextPathModule"/>
+ <component-instance logger="core.modules.input" name="naming" class="org.apache.cocoon.components.modules.input.NamingInputModule">
+ </component-instance>
+ <component-instance logger="core.modules.input" name="cocoon-properties" class="org.apache.cocoon.components.modules.input.PropertiesFileModule">
+ <file src="resource://org/apache/cocoon/cocoon.properties" />
+ </component-instance>
+ <component-instance logger="core.modules.input" name="flow-attribute" class="org.apache.cocoon.components.modules.input.FlowAttributeModule"/>
+ <component-instance logger="core.modules.input" name="flow-attr" class="org.apache.cocoon.components.modules.input.FlowAttributeModule"/>
+ <component-instance logger="core.modules.input" name="flow-continuation" class="org.apache.cocoon.components.modules.input.FlowContinuationModule"/>
+
+ <component-instance logger="core.modules.input" name="xmlmeta" class="org.apache.cocoon.components.modules.input.XMLMetaModule"/>
+ <component-instance logger="core.modules.input" name="mapmeta" class="org.apache.cocoon.components.modules.input.MapMetaModule"/>
+ <component-instance logger="core.modules.input" name="datemeta" class="org.apache.cocoon.components.modules.input.DateMetaInputModule"/>
+ <component-instance logger="core.modules.input" name="jxpath" class="org.apache.cocoon.components.modules.input.JXPathMetaModule"/>
+ <component-instance logger="core.modules.input" name="simplemap" class="org.apache.cocoon.components.modules.input.SimpleMappingMetaModule"/>
+ <component-instance logger="core.modules.input" name="locate" class="org.apache.cocoon.components.modules.input.LocateResource"/>
+ <component-instance logger="core.modules.input" name="chain" class="org.apache.cocoon.components.modules.input.ChainMetaModule">
+ <input-module name="request-param"/>
+ <input-module name="request-attr"/>
+ <input-module name="session-attr"/>
+ <input-module name="defaults"/>
+ </component-instance>
+
+ <!--+
+ | Following five modules definitions, 'defaults', 'myxml',
+ | 'slashdot' 'random-100-to-500' and 'random-5000-to-10000',
+ | are used only in the samples.
+ +-->
+ <component-instance logger="core.modules.input" name="defaults" class="org.apache.cocoon.components.modules.input.DefaultsModule">
+ <values>
+ <skin>defaultSkin</skin>
+ <base-url>http://localhost:8080/cocoon</base-url>
+ </values>
+ </component-instance>
+ <component-instance logger="core.modules.input" name="myxml" class="org.apache.cocoon.components.modules.input.XMLFileModule">
+ <file src="context://samples/modules/forrestconf.xml"/>
+ </component-instance>
+ <component-instance logger="core.modules.input" name="slashdot" class="org.apache.cocoon.components.modules.input.XMLFileModule">
+ <file src="http://slashdot.org/slashdot.rss"/>
+ </component-instance>
+ <component-instance logger="core.modules.input" name="random-100-to-500" class="org.apache.cocoon.components.modules.input.RandomNumberModule">
+ <min>100</min>
+ <max>500</max>
+ </component-instance>
+ <component-instance logger="core.modules.input" name="random-5000-to-10000" class="org.apache.cocoon.components.modules.input.RandomNumberModule">
+ <min>5000</min>
+ <max>10000</max>
+ </component-instance>
+
+ </input-modules>
+
+ <!--+
+ | OutputModules are companion modules for InputModules.
+ |
+ | The same principles apply here, only that OutputModules allow
+ | writing data to places. Apparently, there are a lot less
+ | places to write to than to read data from, thus there are only
+ | a few OutputModules coming with Apache Cocoon.
+ |
+ | One special feature of OutputModules is, that they expose some
+ | limited transactional behaviour. Hence it does not suffice to
+ | write a value, but it is required to confirm this at the
+ | end. Until then, the value could not be read from the
+ | corresponding InputModule. This behaviour is not enfored but
+ | it should be expected. Omitting a commit or rollback is an
+ | error.
+ |
+ | OutputModules are currently used by flow, a number of actions
+ | and transformers.
+ +-->
+ <output-modules>
+ <component-instance logger="core.modules.output" name="request-attr" class="org.apache.cocoon.components.modules.output.RequestAttributeOutputModule"/>
+ <component-instance logger="core.modules.output" name="request-attr-map" class="org.apache.cocoon.components.modules.output.RequestAttributeMap"/>
+ <component-instance logger="core.modules.output" name="session-attr" class="org.apache.cocoon.components.modules.output.SessionAttributeOutputModule"/>
+ </output-modules>
+
+<!-- ================================= XML ================================ -->
+
+ <!--+
+ | Entity resolution catalogs
+ |
+ | The default catalog is distributed at WEB-INF/entities/catalog
+ | This is the contextual pathname for Cocoon resources.
+ | You can override this path, if necessary, using the "catalog" parameter:
+ |
+ | <parameter name="catalog" value="WEB-INF/entities/catalog"/>
+ |
+ | However, it is probably desirable to leave this default catalog config
+ | and declare your own local catalogs, which are loaded in addition to
+ | the system catalog.
+ |
+ | There are various ways to do local configuration (see "Entity Catalogs"
+ | documentation). One way is via the CatalogManager.properties file.
+ | As an additional method, you can specify the "local-catalog"
+ | parameter here.
+ |
+ | local-catalog:
+ | The full filesystem pathname to a single local catalog file.
+ |
+ | <parameter name="local-catalog" value="/usr/local/sgml/mycatalog"/>
+ |
+ | verbosity:
+ | The level of messages for status/debug (messages go to standard output)
+ | The following messages are provided ...
+ | 0 = none
+ | 1 = ? (... not sure yet)
+ | 2 = 1+, Loading catalog, Resolved public, Resolved system
+ | 3 = 2+, Catalog does not exist, resolvePublic, resolveSystem
+ | 10 = 3+, List all catalog entries when loading a catalog
+ | (Cocoon also logs the "Resolved public" messages.)
+ |
+ | <parameter name="verbosity" value="2"/>
+ +-->
+ <entity-resolver logger="core.resolver">
+ <parameter name="catalog" value="WEB-INF/entities/catalog"/>
+ <parameter name="verbosity" value="1"/>
+ </entity-resolver>
+
+ <!--+
+ | XML Parser
+ |
+ | Apache Cocoon requires a JAXP 1.1 parser. The default parser is
+ | org.apache.excalibur.xml.impl.JaxpParser.
+ | Note: If you have problems because your servlet environment uses its
+ | own parser not conforming to JAXP 1.1 try using the alternative
+ | XercesParser instead of the JaxpParser. To activate the XercesParser,
+ | change the class attribute to
+ | class="org.apache.excalibur.xml.impl.XercesParser"
+ | You will also need to add a system property to your JVM,
+ | probably on the startup of your servlet engine like this:
+ | -Dorg.apache.excalibur.xml.sax.SAXParser=org.apache.excalibur.xml.impl.XercesParser
+ |
+ | Configuration parameters for the JaxpParser (not the XercesParser!):
+ | - validate (boolean, default = false): should the parser validate
+ | parsed documents?
+ | Note: XML validation is only being used for the documentation build.
+ | (If you are going to use it elsewhere, then do so with caution.)
+ | You really should have validated all of your XML documents already,
+ | according to their proper DTD or schema. Do not expect Cocoon
+ | to do it.
+ | - namespace-prefixes (boolean, default = false) : do we want
+ | namespaces declarations also as 'xmlns:' attributes?
+ | Note : setting this to true confuses some XSL processors
+ | (e.g. Saxon).
+ | - stop-on-warning (boolean, default = true) : should the parser
+ | stop parsing if a warning occurs ?
+ | - stop-on-recoverable-error (boolean, default = true) : should the
+ | parser stop parsing if a recoverable error occurs ?
+ | - reuse-parsers (boolean, default = true) : do we want to reuse
+ | parsers or create a new parser for each parse ?
+ | Note : even if this parameter is true, parsers are not recycled
+ | in case of parsing errors : some parsers (e.g. Xerces) do not like
+ | to be reused after failure.
+ | - sax-parser-factory (string, optional) : the name of the
+ | SAXParserFactory implementation class to be used instead of using
+ | the standard JAXP mechanism (SAXParserFactory.newInstance()). This
+ | allows to choose unambiguously the JAXP implementation to be used
+ | when several of them are available in the classpath.
+ | - document-builder-factory (string, optional) : the name of the
+ | DocumentBuilderFactory implementation to be used (similar to
+ | sax-parser-factory for DOM).
+ | - drop-dtd-comments : should comment() events from DTD's be dropped?
+ | Note: Since this implementation does not support the DeclHandler
+ | interface anyway, it is quite useless to only have the comments
+ | from DTD. And the comment events from the internal DTD subset
+ | would appear in the serialized output again.
+ +-->
+ <xml-parser class="org.apache.excalibur.xml.impl.JaxpParser"
+ logger="core.xml-parser" pool-max="32">
+ <parameter name="validate" value="false"/>
+ <parameter name="namespace-prefixes" value="false"/>
+ <parameter name="stop-on-warning" value="true"/>
+ <parameter name="stop-on-recoverable-error" value="true"/>
+ <parameter name="reuse-parsers" value="false"/>
+ <parameter name="drop-dtd-comments" value="true"/>
+ </xml-parser>
+
+ <!--+
+ | XSLT Processor
+ |
+ | 'incremental-processing' (only works with Xalan) allows the XSLT
+ | processor to start the output of the transformation as soon as possible.
+ | if set to false, the transforer waits until the end of the
+ | transformation to deliver the output.
+ | WARNING: * if you enable incremental-processing, you should be aware of
+ | the following bug:
+ | http://issues.apache.org/bugzilla/show_bug.cgi?id=13186
+ | * incremental-processing creates an additional, non-pooled thread.
+ | * using incremental-processing does not save memory, the input
+ | tree will still be build completely.
+ | * incremental processing is a 'static' thing in Xalan: if you
+ | enable it on one xslt-processor, enable it on all.
+ +-->
+ <xslt-processor logger="core.xslt">
+ <parameter name="use-store" value="true"/>
+ <parameter name="incremental-processing" value="false"/>
+ </xslt-processor>
+
+ <!--+
+ | XSLT Processor using xsltc from Xalan
+ | For Interpreted Xalan use:
+ | <transformer-factory>org.apache.xalan.processor.TransformerFactoryImpl</transformer-factory>
+ +-->
+ <component logger="core.xslt"
+ role="org.apache.excalibur.xml.xslt.XSLTProcessor/xsltc"
+ class="org.apache.cocoon.components.xslt.TraxProcessor">
+ <parameter name="use-store" value="true"/>
+ <parameter name="transformer-factory" value="org.apache.xalan.xsltc.trax.TransformerFactoryImpl"/>
+ </component>
+
+ <!--+
+ | Xalan XSLT Processor
+ +-->
+ <component logger="core.xslt"
+ role="org.apache.excalibur.xml.xslt.XSLTProcessor/xalan"
+ class="org.apache.cocoon.components.xslt.TraxProcessor">
+ <parameter name="use-store" value="true"/>
+ <parameter name="incremental-processing" value="false"/>
+ <parameter name="transformer-factory" value="org.apache.xalan.processor.TransformerFactoryImpl"/>
+ </component>
+
+ <!--+
+ | Saxon XSLT Processor
+ | For old (6.5.2) Saxon use:
+ | <parameter name="transformer-factory" value="com.icl.saxon.TransformerFactoryImpl"/>
+ | For new (7+) Saxon use:
+ | <parameter name="transformer-factory" value="net.sf.saxon.TransformerFactoryImpl"/>
+ <component logger="core.xslt"
+ role="org.apache.excalibur.xml.xslt.XSLTProcessor/saxon"
+ class="org.apache.cocoon.components.xslt.TraxProcessor">
+ <parameter name="use-store" value="true"/>
+ <parameter name="transformer-factory" value="com.icl.saxon.TransformerFactoryImpl"/>
+ </component>
+ +-->
+
+ <!--+
+ | Xpath Processor (Based on Xalan)
+ +-->
+ <xpath-processor class="org.apache.excalibur.xml.xpath.XPathProcessorImpl" logger="core.xpath"/>
+
+ <!--+
+ | The XMLizers converts different mime-types to XML
+ +-->
+ <xmlizer logger="core.xmlizer">
+ <parser role="org.apache.excalibur.xml.sax.SAXParser" mime-type="text/xml"/>
+ </xmlizer>
+
+<!-- ============================ Object Stores =========================== -->
+
+ <!--+
+ | Transient Store: holds objects that don't have to survive shutdown
+ |
+ | Common configuration parameters:
+ | maxobjects: Indicates how many objects will be held in the cache.
+ | When the number of maxobjects has been reached. The last object
+ | in the cache will be thrown out.
+ +-->
+ <transient-store logger="core.store.transient">
+ <parameter name="maxobjects" value="1000"/>
+ </transient-store>
+
+ <!--+
+ | Store: generic store. The default implementation is an in-memory store
+ | backed by a disk store (based on EHCache). This forms a two-stage
+ | cache composed of a fast in-memory MRU front-end and a persistent
+ | back-end which stores the less-used objects.
+ |
+ | Common configuration parameters:
+ | maxobjects: Indicates how many objects will be held in the cache.
+ | When the number of maxobjects has been reached. The last object
+ | in the cache will be thrown out.
+ +-->
+ <store logger="core.store">
+ <parameter name="maxobjects" value="1000"/>
+ <parameter name="use-cache-directory" value="true"/>
+ </store>
+
+ <!--+
+ | Store Janitor: the store garbage collector and memory usage controller.
+ |
+ | WARNING: Be careful with the heapsize and freememory parameters.
+ | Wrong values can cause high cpu usage.
+ |
+ | Example configuration:
+ | Jvm settings:
+ | -Xmx200000000
+ | store-janitor settings:
+ | <parameter name="freememory" value="5000000"/>
+ | <parameter name="heapsize" value="196000000"/>
+ |
+ | It is recommended to have heapsize equal to -Xmx, especially on Sun's
+ | JVM which are unable to shrink its heap once it grows above minimum.
+ | Freememory should be greater than amount of memory necessary for normal
+ | application operation.
+ | BUT: The heap size of the memory of the JVM is a little bit less than
+ | the value you specify for -Xmx, so you have to set the heapsize
+ | for the store janitor to a value which is lower (2% less seems
+ | to be a working value).
+ +-->
+ <store-janitor logger="core.store.janitor">
+ <!--+
+ | How much free memory shall be available in the jvm?
+ | If not specified, defaults to 1Mb.
+ +-->
+ <parameter name="freememory" value="2048000"/>
+ <!--+
+ | How much memory at max jvm can consume?
+ | The default max heapsize for Sun's JVM is (almost) 64Mb,
+ | can be increased by specifying -Xmx command line parameter.
+ | If not specified, defaults to 66600000 bytes.
+ +-->
+ <parameter name="heapsize" value="66600000"/>
+ <!--+
+ | How often shall the cleanup thread check memory?
+ | If not specified, defaults to 10 seconds.
+ +-->
+ <parameter name="cleanupthreadinterval" value="10"/>
+ <!--+
+ | Experimental adaptive algorithm for cleanup interval
+ <parameter name="adaptivethreadinterval" value="true"/>
+ +-->
+ <!--+
+ | What percent of the store elements shall be dropped on low memory?
+ | If not specified, defaults to 10%
+ +-->
+ <parameter name="percent_to_free" value="10"/>
+ <!--+
+ | Shall garbage collector be invoked on low memory?
+ | If not specified, defaults to false.
+ +-->
+ <parameter name="invokegc" value="false"/>
+ <!--+
+ | Name of the thread pool to use.
+ | If not specified, defaults to 'daemon'.
+ +-->
+ <parameter name="thread-pool" value="daemon"/>
+
+ <!--+
+ | What should be the priority of the cleanup thread?
+ | This parameter is used only by older implementation of the janitor.
+ | New implementation uses centrally configured thread pool (see
+ | thread-pools element below).
+ <parameter name="threadpriority" value="5"/>
+ +-->
+ </store-janitor>
+
+<!-- ========================= Protocol Handlers =========================== -->
+
+ <!--+
+ | Source Factories
+ |
+ | Each source factory adds a special uri schemes to the system.
+ +-->
+ <source-factories>
+ <component-instance name="resource" class="org.apache.excalibur.source.impl.ResourceSourceFactory"/>
+ <component-instance name="context" class="org.apache.cocoon.components.source.impl.ContextSourceFactory"/>
+ <component-instance name="cocoon" class="org.apache.cocoon.components.source.impl.SitemapSourceFactory"/>
+
+ <!--+
+ | The "file:" source protocol is modifiable (can be written to) and
+ | traversable (directory structures can be crawled).
+ +-->
+ <component-instance name="file" class="org.apache.excalibur.source.impl.FileSourceFactory"/>
+ <component-instance name="upload" class="org.apache.cocoon.components.source.impl.PartSourceFactory"/>
+ <component-instance name="module" class="org.apache.cocoon.components.source.impl.ModuleSourceFactory"/>
+ <component-instance name="xmodule" class="org.apache.cocoon.components.source.impl.XModuleSourceFactory"/>
+ <component-instance name="zip" class="org.apache.cocoon.components.source.impl.ZipSourceFactory"/>
+ <component-instance name="empty" class="org.apache.cocoon.components.source.impl.EmptySourceFactory"/>
+
+ <!--+
+ | The "*" protocol handles all uri schemes that are not explicitely
+ | specified. This includes all JDK standard protocols.
+ +-->
+ <component-instance name="*" class="org.apache.excalibur.source.impl.URLSourceFactory"/>
+ </source-factories>
+
+<!-- ================ Internationalization Catalogs =================== -->
+
+ <!--+
+ | I18n Bundle Factory
+ |
+ | BundleFactory loads Bundles with i18n resources for the given locale.
+ | Default location for bundles specified with the 'catalogue-location'.
+ +-->
+ <i18n-bundles logger="core.i18n">
+ <!--+
+ | Role of the store component to be used for caching loaded bundles.
+ +-->
+ <store-role>org.apache.excalibur.store.Store/TransientStore</store-role>
+ <!--+
+ | Reload check delay. Default 60000 (1 minute), 0 means no delay
+ | (check always), -1 means no reload.
+ +-->
+ <reload-interval>60000</reload-interval>
+ <!--+
+ | Location of the default message catalogue. Optional.
+ +-->
+ <catalogue-location>context://samples/i18n/translations</catalogue-location>
+ </i18n-bundles>
+
+<!-- ====================== System Components =========================== -->
+
+ <!--+
+ | The Cache Manager is a component that can be used to cache content.
+ | It is currently used by the cinclude transformer
+ +-->
+ <component class="org.apache.cocoon.transformation.helpers.DefaultIncludeCacheManager"
+ role="org.apache.cocoon.transformation.helpers.IncludeCacheManager">
+ <!-- Set the preemptive-loader-url to a pipeline inside Cocoon that
+ contains the preemptive loader action. The URL must be absolute!
+ <parameter name="preemptive-loader-url"
+ value="http://localhost:8080/cocoon/samples/cinclude/loader"/>
+ -->
+ </component>
+
+ <!--+
+ | Runnable manager
+ |
+ | This component manages commands (Runnables) executed in background using
+ | preconfigured pools of worker threads
+ +-->
+ <runnable-manager logger="core.runnable">
+ <!--+
+ | This is the default configuration of the runnable-manager. More
+ | indepth information can be found at
+ | http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/PooledExecutor.html
+ | The following elements can be used:
+ |
+ | thread-factory: specifies the fully qualified class name of an
+ | org.apache.cocoon.components.thread.ThreadFactory
+ | implementation. It is responsible to create Thread
+ | classes.
+ | thread-pools: container element for thread-pool elements.
+ | name: required name of the pool.
+ | priority: optional priority all threads of the pool will
+ | have (the ThreadFactory will be set to this
+ | priority).The possible values are:
+ | MIN: corresponds to Thread#MIN_PRIORITY
+ | NORM: corresponds to Thread#NORM_PRIORITY (default)
+ | MAX: corresponds to Thread#MAX_PRIORITY
+ | daemon: whether newly created Threads should run in
+ | daemon mode or not. Default to false.
+ | queue-size: optional size of a queue to hold Runnables if the
+ | pool is full. Possible values are:
+ | less than 0: unbounded (default)
+ | equal to 0: no queue at all
+ | greater than 0: size of the queue
+ | max-pool-size: optional maximum number of threads in the pool.
+ | Defaults to 5.
+ | NOTE: if a queue is specified (queue-sie != 0)
+ | this value will be ignored.
+ | min-pool-size: optional minimum number of threads in the pool.
+ | Defaults to 5.
+ | NOTE: if a queue has been specified (queue-sie != 0)
+ | this value will be used as the maximum of
+ | thread running concurrently.
+ | keep-alive-time-ms: The time in ms an idle thread should keep alive
+ | before it might get garbage collected. This
+ | defaults to 60000 ms.
+ | block-policy; The policy to be used if all resources (thread in
+ | the pool and slots in the queue) are exhausted.
+ | Possible values are:
+ | ABORT: Throw a RuntimeException
+ | DISCARD: Throw away the current request
+ | and return.
+ | DISCARDOLDEST: Throw away the oldest request
+ | and return.
+ | RUN (default): The thread making the execute
+ | request runs the task itself.
+ | This policy helps guard against
+ | lockup.
+ | WAIT: Wait until a thread becomes
+ | available. This policy should, in
+ | general, not be used if the
+ | minimum number of threads is zero,
+ | in which case a thread may never
+ | become available.
+ | shutdown-graceful: Terminate thread pool after processing all
+ | Runnables currently in queue. Any Runnable entered
+ | after this point will be discarded. A shut down
+ | pool cannot be restarted. This also means that a
+ | pool will need keep-alive-time-ms to terminate.
+ | The default value not to shutdown graceful.
+ | shutdown-wait-time-ms: The time in ms to wait before issuing an
+ | immediate shutdown after a graceful shutdown
+ | has been requested.
+ +-->
+ <thread-factory>org.apache.cocoon.components.thread.DefaultThreadFactory</thread-factory>
+ <thread-pools>
+ <!--+
+ | This is the default thread pool. It's use fits best for short
+ | running background tasks.
+ +-->
+ <thread-pool>
+ <name>default</name>
+ <priority>NORM</priority>
+ <daemon>false</daemon>
+ <queue-size>-1</queue-size>
+ <max-pool-size>5</max-pool-size>
+ <min-pool-size>5</min-pool-size>
+ <keep-alive-time-ms>60000</keep-alive-time-ms>
+ <block-policy>ABORT</block-policy>
+ <shutdown-graceful>false</shutdown-graceful>
+ <shutdown-wait-time-ms>-1</shutdown-wait-time-ms>
+ </thread-pool>
+ <!--+
+ | This thread pool should be used for daemons (permanently running
+ | threads).
+ +-->
+ <thread-pool>
+ <name>daemon</name>
+ <priority>NORM</priority>
+ <daemon>true</daemon>
+ <queue-size>0</queue-size>
+ <max-pool-size>-1</max-pool-size>
+ <min-pool-size>1</min-pool-size>
+ <keep-alive-time-ms>60000</keep-alive-time-ms>
+ <block-policy>ABORT</block-policy>
+ <shutdown-graceful>false</shutdown-graceful>
+ <shutdown-wait-time-ms>-1</shutdown-wait-time-ms>
+ </thread-pool>
+ </thread-pools>
+ </runnable-manager>
+
+</components>
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/xconf/cocoon-core.xconf
------------------------------------------------------------------------------
eol:style = 'native'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/xconf/cocoon-core.xconf
------------------------------------------------------------------------------
svn:keywords = 'Id'
Added: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/sitemap.xmap?rev=407552&view=auto
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/sitemap.xmap (added)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/sitemap.xmap Thu May 18 06:56:38 2006
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2006 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.
+-->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+ <map:pipelines>
+ <map:pipeline>
+ <map:match pattern="">
+ <map:generate src="welcome.xml"/>
+ <map:serialize type="xhtml"/>
+ </map:match>
+ </map:pipeline>
+ </map:pipelines>
+</map:sitemap>
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/sitemap.xmap
------------------------------------------------------------------------------
eol:style = 'native'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/sitemap.xmap
------------------------------------------------------------------------------
svn:keywords = 'Id'
Added: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/welcome.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/welcome.xml?rev=407552&view=auto
==============================================================================
--- cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/welcome.xml (added)
+++ cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/welcome.xml Thu May 18 06:56:38 2006
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<!--
+ Copyright 2006 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.
+-->
+<html>
+ <head>
+ <title>Cocoon 2.2 webapp project artifact sucessfully started!</title>
+ </head>
+ <body>
+ <h2>Congratulations,</h2>
+ <p>
+ you have successfully started your own Cocoon 2.2 project based on the 'cocoon-22-archetype-webapp' Maven 2 archetype.
+ </p>
+ <p>
+ The archetype that you used only loads a reduced set of components. It only includes the most important sitemap components
+ (e.g. the file generator, the XSLT transformer, the XHTML serializer) and Cocoon Forms and Cocoon Template.
+ </p>
+ </body>
+</html>
\ No newline at end of file
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/welcome.xml
------------------------------------------------------------------------------
eol:style = 'native'
Propchange: cocoon/trunk/tools/archetypes/cocoon-22-archetype-webapp/src/main/resources/archetype-resources/src/main/webapp/welcome.xml
------------------------------------------------------------------------------
svn:keywords = 'Id'
Modified: cocoon/trunk/tools/archetypes/pom.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/pom.xml?rev=407552&r1=407551&r2=407552&view=diff
==============================================================================
--- cocoon/trunk/tools/archetypes/pom.xml (original)
+++ cocoon/trunk/tools/archetypes/pom.xml Thu May 18 06:56:38 2006
@@ -20,18 +20,16 @@
+-->
<project>
<parent>
- <artifactId>cocoon</artifactId>
<groupId>org.apache.cocoon</groupId>
- <version>2.2.0-SNAPSHOT</version>
+ <artifactId>cocoon</artifactId>
+ <version>1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>cocoon-archetypes</artifactId>
<name>Various Maven Archetypes</name>
- <version>1.0-SNAPSHOT</version>
+ <version>1-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
- <!-- module>cocoon-archetype-core</module-->
- <!-- moved *for now* into block-deployer -->
- <!--module>cocoon-archetype-block</module-->
+ <module>cocoon-22-archetype-webapp</module>
</modules>
</project>