cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ovi...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/schecoon/webapp/WEB-INF cocoon.xconf
Date Thu, 02 May 2002 01:04:09 GMT
ovidiu      02/05/01 18:04:09

  Modified:    src/scratchpad/schecoon/webapp/WEB-INF cocoon.xconf
  Log:
  Merged with the latest version of cocoon.xconf from the main Cocoon.
  
  Revision  Changes    Path
  1.4       +159 -179  xml-cocoon2/src/scratchpad/schecoon/webapp/WEB-INF/cocoon.xconf
  
  Index: cocoon.xconf
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/webapp/WEB-INF/cocoon.xconf,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- cocoon.xconf	16 Apr 2002 00:25:02 -0000	1.3
  +++ cocoon.xconf	2 May 2002 01:04:08 -0000	1.4
  @@ -103,16 +103,15 @@
       Be careful with the heapsize and freememory parameters. Wrong values can
       cause high cpu usage. Example configuration:
       Jvm settings: 
  -      -Xms100000000 -Xmx200000000
  +       -Xmx200000000
       store-janitor settings:
          <parameter name="freememory" value="5000000"/>
          <parameter name="heapsize" value="150000000"/>
     
  -    Heapsize *must* be higher then the -Xms parameter and *must* be lower or
  -    equal than -Xmx. It is recommended to have heapsize equal to -Xmx, especially
  +    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 parameter *must* be lower than -Xms, and should be greater than
  -    amount of memory necessary for normal application operation.
  +    Freememory should be greater than amount of memory necessary for normal 
  +    application operation.
     -->
     <store-janitor class="org.apache.cocoon.components.store.StoreJanitorImpl"
                    logger="core.store.janitor">
  @@ -142,13 +141,14 @@
   
     <!-- Xpath Processor:
     -->
  -  <xpath-processor class="org.apache.cocoon.components.xpath.XPathProcessorImpl"
  +  <xpath-processor class="org.apache.avalon.excalibur.xml.xpath.XPathProcessorImpl"
                      logger="core.xpath-processor"/>
   
     <!-- URL Factory:
       The url factory adds special url protocols to the system, they are then
       available inside Cocoon, e.g. as a source argument for one of the sitemap
       components.
  +    THIS COMPONENT IS DEPRECATED AND SHOULD NOT BE USED ANYMORE 
     -->
     <url-factory logger="core.url-factory">
       <!-- Allows access to resources available from the ClassLoader,
  @@ -160,6 +160,34 @@
       <!-- Add here protocol factories for your own protocols -->
     </url-factory>
   
  +  <!-- Source Handler:
  +    The source handler adds special url protocols to the system, they are
  +    then available inside Cocoon, e.g. as a source argument for one of the
  +    sitemap components.
  +    THIS COMPONENT IS DEPRECATED AND SHOULD NOT BE USED ANYMORE 
  +  -->
  +  <source-handler logger="core.source-handler">
  +    <!-- file protocol : this is a WriteableSource -->
  +    <protocol name="file" class="org.apache.cocoon.components.source.FileSourceFactory"/>
  +
  +  </source-handler>
  +
  +  <!-- Source Factories
  +       Each source factory adds a special uri protocol to the system.
  +       This will replace the source-handler and url-factory components.
  +  -->
  +  <source-factories>
  +      <component-instance class="org.apache.excalibur.source.impl.ResourceSourceFactory"
name="resource"/>
  +      <component-instance class="org.apache.cocoon.components.source.impl.ContextSourceFactory"
name="context"/>
  +      <component-instance class="org.apache.cocoon.components.source.impl.CocoonSourceFactory"
name="cocoon"/>
  +  </source-factories>
  +
  +  <!-- The XMLizer converts different mime-types to XML -->
  +  <xmlizer>
  +      <component-instance class="org.apache.excalibur.xmlizer.impl.TextXMLizer" name="text/xml"/>
  +      <component-instance class="org.apache.excalibur.xmlizer.impl.HTMLXMLizer" name="text/html"/>
  +  </xmlizer>
  +
     <!-- Program Generator:
       The ProgamGenerator builds programs from a XML document written in a
       MarkupLanguage.
  @@ -198,24 +226,15 @@
     <!-- Programming Languages: -->
     <programming-languages>
       <java-language name="java" logger="core.language.java">
  -      <!-- Compiler parameter specifies which class to use to compile Java.
  -           Possible variants are:
  -             Javac. Requires javac.jar (included with Cocoon distribution).
  -             Pizza. Requires pizza.jar (included with Cocoon distribution).
  -             Jikes. Requires IBM jikes compiler to be present in the PATH  -->
  -      <parameter name="compiler" value="org.apache.cocoon.components.language.programming.java.Javac"/>
         <!-- Specifies which formatter to use to format source code.
              This parameter is optional. 
              It is commented out because of bug #5689: Java "code-formatter" incorrectly
formats double values
         <parameter name="code-formatter" value="org.apache.cocoon.components.language.programming.java.JstyleFormatter"/>
         -->
  +      <parameter name="compiler" value="org.apache.cocoon.components.language.programming.java.Javac"/>
         <!-- A singleton-like implementation of a ClassLoader -->
         <parameter name="class-loader" value="org.apache.cocoon.components.classloader.ClassLoaderManagerImpl"/>
       </java-language>
  -
  -    <!-- Interpreted JavaScript language -->
  -    <js-language name="js" logger="core.language.js"/>
  -
     </programming-languages>
   
     <!-- Class loader:
  @@ -234,8 +253,8 @@
         <parameter name="prefix" value="xsp"/>
         <parameter name="uri" value="http://apache.org/xsp"/>
   
  -      <!-- Defines the XSP Core logicsheet for the Java language -->
         <target-language name="java">
  +        <!-- Defines the XSP Core logicsheet for the Java language -->
           <parameter name="core-logicsheet" value="resource://org/apache/cocoon/components/language/markup/xsp/java/xsp.xsl"/>
           
           <!-- The Request logicsheet (taglib) is an XSP logicsheet that wraps XML tags

  @@ -345,29 +364,6 @@
           </builtin-logicsheet>
   
         </target-language>
  -
  -      <target-language name="js">
  -        <parameter name="core-logicsheet" value="resource://org/apache/cocoon/components/language/markup/xsp/javascript/xsp.xsl"/>
  -
  -        <builtin-logicsheet>
  -          <parameter name="prefix" value="xsp-request"/>
  -          <parameter name="uri" value="http://apache.org/xsp/request/2.0"/>
  -          <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/javascript/request.xsl"/>
  -        </builtin-logicsheet>
  -
  -        <builtin-logicsheet>
  -          <parameter name="prefix" value="xsp-response"/>
  -          <parameter name="uri" value="http://apache.org/xsp/response/2.0"/>
  -          <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/javascript/response.xsl"/>
  -        </builtin-logicsheet>
  -
  -        <builtin-logicsheet>
  -          <parameter name="prefix" value="xsp-session"/>
  -          <parameter name="uri" value="http://apache.org/xsp/session/2.0"/>
  -          <parameter name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/javascript/session.xsl"/>
  -        </builtin-logicsheet>
  -      </target-language>
  -        
       </xsp-language>
   
       <!-- Defines Sitemap Core logicsheet for the Java language -->
  @@ -381,8 +377,7 @@
       </sitemap-language>
     </markup-languages>
   
  -  <!-- Datasources:
  -  -->
  +  <!-- Datasources: -->
     <datasources>
       <jdbc name="personnel" logger="core.datasources.personnel">
         <!--
  @@ -474,151 +469,136 @@
   
   <!-- ======================== The sitemap  ============================== -->
   
  -  <!-- Reloading of the sitemap:
  -    The check-reload attribute determines if the sitemap is reloaded on change.
  -    Set to "no", the sitemap is generated once at startup.
  -    Set to "yes", the sitemap is regenerated if it changes.
  -
  -    The reload-method specifies the method for the regeneration:
  -    asynchron: If the sitemap changes, the sitemap is regenerated at the
  -               next request in the background and the incoming request is
  -               served with the old sitemap. All subsequent requests are
  -               served with the old sitemap until the regeneration in the
  -               background has finished.
  -    synchron: If the sitemap changes, the sitemap is regenerated at the
  -              next request. When the regeneration is finished, the request
  -              (and all subsequent ones) is served with the new sitemap.
  -
  -    For development environment, set the reload-method to synchron and the
  -    check-reload to yes.
  -    For production environment, it is advisable to set the reload-method to
  -    asynchron and for more safety the check-reload to no.
  -  -->
  -  <!--sitemap class="org.apache.cocoon.treeprocessor.TreeProcessor" file="sitemap.xmap"
reload-method="asynchron" check-reload="yes" logger="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.
   
  -    To use this engine, comment the declaration above and uncomment the declaration below.
  +    Reloading of the sitemap:
  +    The check-reload attribute determines if the sitemap is reloaded on change.
  +    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 the check-reload to no.
     -->
  -  <sitemap class="org.apache.cocoon.components.treeprocessor.TreeProcessor"
  -	   logger="sitemap"
  +  <sitemap file="sitemap.xmap" check-reload="yes" logger="sitemap"
   	   config="resource://org/apache/cocoon/components/treeprocessor/treeprocessor-builtins2.xml"/>
   
  -<!-- ===================== Sitemap Components =========================== -->
   
  -  <!-- Here defined some core Cocoon sitemap components, as File generator
  -       or XSLT transformer. Note that syntax of this file slightly differs
  -       from the syntax of <map:components> section of the sitemap.xmap file.
  -  -->
  -  <generators>
  -    <component-instance name="file" class="org.apache.cocoon.generation.FileGenerator"
  -                        label="content,data"
  -                        logger="sitemap.generator.file"
  -                        pool-max="32" pool-min="8" pool-grow="4"/>
  -
  -    <component-instance name="serverpages" class="org.apache.cocoon.generation.ServerPagesGenerator"
  -                        label="content,data"
  -                        logger="sitemap.generator.serverpages"
  -                        pool-max="32" pool-min="4" pool-grow="2"/>
  -    
  -    <component-instance name="directory" class="org.apache.cocoon.generation.DirectoryGenerator"
  -                        logger="sitemap.generator.directory"
  -                        label="content,data"
  -                        pool-max="16" pool-min="2" pool-grow="2"/>
  -
  -    <component-instance name="request" class="org.apache.cocoon.generation.RequestGenerator"
  -                        logger="sitemap.generator.request"
  -                        label="data"
  -                        pool-max="16" pool-min="2" pool-grow="2"/>
  -
  -    <component-instance name="status" class="org.apache.cocoon.generation.StatusGenerator"
  -                        logger="sitemap.generator.status"
  -                        label="data"
  -                        pool-max="16" pool-min="2" pool-grow="2"/>
  -  </generators>
  -
  -  <transformers>
  -    <component-instance name="xslt" class="org.apache.cocoon.transformation.TraxTransformer"
  -                        logger="sitemap.transformer.xslt"
  -                        pool-max="32" pool-min="8" pool-grow="2">
  -      <use-request-parameters>false</use-request-parameters>
  -      <use-browser-capabilities-db>false</use-browser-capabilities-db>
  -      <use-deli>false</use-deli>
  -    </component-instance>
  -
  -    <component-instance name="log" class="org.apache.cocoon.transformation.LogTransformer"
  -                        logger="sitemap.transformer.log"
  -                        pool-max="16" pool-min="2" pool-grow="2"/>
  -
  -    <component-instance name="xinclude" class="org.apache.cocoon.transformation.XIncludeTransformer"
  -                        logger="sitemap.transformer.xinclude"
  -                        pool-max="16" pool-min="2" pool-grow="2"/>
  -
  -    <component-instance name="cinclude" class="org.apache.cocoon.transformation.CIncludeTransformer"
  -                        logger="sitemap.transformer.cinclude"
  -                        pool-max="16" pool-min="2" pool-grow="2"/>
  -
  -    <component-instance name="augment"
  -			class="org.apache.cocoon.transformation.AugmentTransformer"
  -			mime-type="text/xml"
  -			logger="sitemap.transformer.augment"/>
  -  </transformers>
  -
  -  <serializers>
  -    <component-instance name="links" class="org.apache.cocoon.serialization.LinkSerializer"
  -                        logger="sitemap.serializer.links"/>
  -
  -    <component-instance name="xml" class="org.apache.cocoon.serialization.XMLSerializer"
  -                        mime-type="text/xml"
  -                        logger="sitemap.serializer.xml"/>
  -
  -    <component-instance name="svg2jpeg"
  -			class="org.apache.cocoon.serialization.SVGSerializer"
  -                        mime-type="image/jpeg"
  -                        logger="sitemap.serializer.xml"/>
  -
  -    <component-instance name="svg2png"
  -			class="org.apache.cocoon.serialization.SVGSerializer"
  -                        mime-type="image/png"
  -                        logger="sitemap.serializer.xml"/>
  -
  -    <component-instance name="html" class="org.apache.cocoon.serialization.HTMLSerializer"
  -                        mime-type="text/html"
  -                        logger="sitemap.serializer.html"
  -                        pool-max="32" pool-min="4" pool-grow="4">
  -      <buffer-size>1024</buffer-size>
  -    </component-instance>
  -  </serializers>
  -
  -  <readers>
  -    <component-instance name="resource" class="org.apache.cocoon.reading.ResourceReader"
  -                        logger="sitemap.reader.resource"
  -                        pool-max="32"/>
  -  </readers>
  -
  -  <matchers>
  -    <component-instance name="wildcard" class="org.apache.cocoon.matching.WildcardURIMatcher"
  -                        logger="sitemap.matcher.wildcard"/>
  -
  -    <component-instance name="regexp" class="org.apache.cocoon.matching.RegexpURIMatcher"
  -                        logger="sitemap.matcher.regexp"/>
  -  </matchers>
  -
  -  <selectors>
  -  </selectors>
  -
  -  <actions>
  -    <component-instance name="add-employee" class="org.apache.cocoon.acting.DatabaseAddAction"
  -                        logger="sitemap.action.add-employee"/>
  -
  -    <component-instance name="del-employee" class="org.apache.cocoon.acting.DatabaseDeleteAction"
  -                        logger="sitemap.action.del-employee"/>
  -
  -    <component-instance name="upd-employee" class="org.apache.cocoon.acting.DatabaseUpdateAction"
  -                        logger="sitemap.action.upd-employee"/>
  -  </actions>
  + 
  + <!-- ===================== Sitemap Components =========================== -->
  + 
  +   <!-- Here defined some core Cocoon sitemap components, as File generator
  +        or XSLT transformer. Note that syntax of this file slightly differs
  +        from the syntax of <map:components> section of the sitemap.xmap file.
  +   -->
  +   <generators>
  +     <component-instance name="file" class="org.apache.cocoon.generation.FileGenerator"
  +                         label="content,data"
  +                         logger="sitemap.generator.file"
  +                         pool-max="32" pool-min="8" pool-grow="4"/>
  + 
  +     <component-instance name="serverpages" class="org.apache.cocoon.generation.ServerPagesGenerator"
  +                         label="content,data"
  +                         logger="sitemap.generator.serverpages"
  +                         pool-max="32" pool-min="4" pool-grow="2"/>
  +     
  +     <component-instance name="directory" class="org.apache.cocoon.generation.DirectoryGenerator"
  +                         logger="sitemap.generator.directory"
  +                         label="content,data"
  +                         pool-max="16" pool-min="2" pool-grow="2"/>
  + 
  +     <component-instance name="request" class="org.apache.cocoon.generation.RequestGenerator"
  +                         logger="sitemap.generator.request"
  +                         label="data"
  +                         pool-max="16" pool-min="2" pool-grow="2"/>
  + 
  +     <component-instance name="status" class="org.apache.cocoon.generation.StatusGenerator"
  +                         logger="sitemap.generator.status"
  +                         label="data"
  +                         pool-max="16" pool-min="2" pool-grow="2"/>
  +   </generators>
  + 
  +   <transformers>
  +     <component-instance name="xslt" class="org.apache.cocoon.transformation.TraxTransformer"
  +                         logger="sitemap.transformer.xslt"
  +                         pool-max="32" pool-min="8" pool-grow="2">
  +       <use-request-parameters>false</use-request-parameters>
  +       <use-browser-capabilities-db>false</use-browser-capabilities-db>
  +       <use-deli>false</use-deli>
  +     </component-instance>
  + 
  +     <component-instance name="log" class="org.apache.cocoon.transformation.LogTransformer"
  +                         logger="sitemap.transformer.log"
  +                         pool-max="16" pool-min="2" pool-grow="2"/>
  + 
  +     <component-instance name="xinclude" class="org.apache.cocoon.transformation.XIncludeTransformer"
  +                         logger="sitemap.transformer.xinclude"
  +                         pool-max="16" pool-min="2" pool-grow="2"/>
  + 
  +     <component-instance name="cinclude" class="org.apache.cocoon.transformation.CIncludeTransformer"
  +                         logger="sitemap.transformer.cinclude"
  +                         pool-max="16" pool-min="2" pool-grow="2"/>
  + 
  +     <component-instance name="augment"
  + 			class="org.apache.cocoon.transformation.AugmentTransformer"
  + 			mime-type="text/xml"
  + 			logger="sitemap.transformer.augment"/>
  +   </transformers>
  + 
  +   <serializers>
  +     <component-instance name="links" class="org.apache.cocoon.serialization.LinkSerializer"
  +                         logger="sitemap.serializer.links"/>
  + 
  +     <component-instance name="xml" class="org.apache.cocoon.serialization.XMLSerializer"
  +                         mime-type="text/xml"
  +                         logger="sitemap.serializer.xml"/>
  + 
  +     <component-instance name="svg2jpeg"
  + 			class="org.apache.cocoon.serialization.SVGSerializer"
  +                         mime-type="image/jpeg"
  +                         logger="sitemap.serializer.xml"/>
  + 
  +     <component-instance name="svg2png"
  + 			class="org.apache.cocoon.serialization.SVGSerializer"
  +                         mime-type="image/png"
  +                         logger="sitemap.serializer.xml"/>
  + 
  +     <component-instance name="html" class="org.apache.cocoon.serialization.HTMLSerializer"
  +                         mime-type="text/html"
  +                         logger="sitemap.serializer.html"
  +                         pool-max="32" pool-min="4" pool-grow="4">
  +       <buffer-size>1024</buffer-size>
  +     </component-instance>
  +   </serializers>
  + 
  +   <readers>
  +     <component-instance name="resource" class="org.apache.cocoon.reading.ResourceReader"
  +                         logger="sitemap.reader.resource"
  +                         pool-max="32"/>
  +   </readers>
  + 
  +   <matchers>
  +     <component-instance name="wildcard" class="org.apache.cocoon.matching.WildcardURIMatcher"
  +                         logger="sitemap.matcher.wildcard"/>
  + 
  +     <component-instance name="regexp" class="org.apache.cocoon.matching.RegexpURIMatcher"
  +                         logger="sitemap.matcher.regexp"/>
  +   </matchers>
  + 
  +   <selectors>
  +   </selectors>
  + 
  +   <actions>
  +     <component-instance name="add-employee" class="org.apache.cocoon.acting.DatabaseAddAction"
  +                         logger="sitemap.action.add-employee"/>
  + 
  +     <component-instance name="del-employee" class="org.apache.cocoon.acting.DatabaseDeleteAction"
  +                         logger="sitemap.action.del-employee"/>
  + 
  +     <component-instance name="upd-employee" class="org.apache.cocoon.acting.DatabaseUpdateAction"
  +                         logger="sitemap.action.upd-employee"/>
  +   </actions>
   
   </cocoon>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message