You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Michael Wechner <mi...@wyona.org> on 2002/08/09 09:53:47 UTC

Redirect/Rewrite Module

Hi

I have a situation where I would like to do a lot of 
URI-redirects/rewrites. I know I can do this via the sitemap,
but other people would be doing this. So for the reason of "Separation
of Concern" I would like to separate this from the actual sitemap.

My question is what are the possibilties to do something like that?

-One way would probably be to have a separate sitemap dedicated to 
redirects, which is mounted by the actual sitemap.

-Or to have the redirects in a separate file, which is "pulled in" by
the actual sitemap as an external entity

-Or to have an action/component, where every request is sent through and 
is acting
as an redirect/rewrite module (and maybe calling Cocoon again!!)

Any thoughts on this?

Thanks a lot in advance

Michael


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: Building Cocoon on Mac OS X

Posted by Jesse Reynolds <li...@va.com.au>.
Urgh, I think I just answered my own question... corrupted filenames eg:

"AbstractJavaCompiler.ja100644"

/src/java/org/apache/cocoon/components/language/programming/java/AbstractJavaCompiler.ja100644


yikes... Ah, I must have used "tar" and not "gnutar". DOH!

package:
Building jar: /Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/cocoon.jar
Building jar: 
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/cocoon-scratchpad.jar

BUILD SUCCESSFUL

Total time: 1 minute 42 seconds

Yay

cheers

jesse


At 8:08 +1000 16/8/2002, Jesse Reynolds wrote:
>Hello folx
>
>Has anyone ever built Cocoon 2.x on Mac OS X?
>
>I got about 36 errors the first time I tried, below. They mostly 
>seem to be classes not found... any ideas anyone?
>
>I'm on Mac OS X version 10.1.5 on a powerbook g4.
>
>
>compile:
>Compiling with Java 1.3, debug on, optimize off, deprecation off
>Compiling 19 source files to 
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/classes
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/Javac.java:71: 
>Superclass 
>org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler 
>of class 
>org.apache.cocoon.components.language.programming.java.Javac not 
>found.
>public class Javac extends AbstractJavaCompiler {
>                            ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/JavaLanguage.java:64: 
>Class 
>org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage 
>not found in import.
>import 
>org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage;
>        ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/JavaLanguage.java:80: 
>Superclass 
>org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage 
>of class 
>org.apache.cocoon.components.language.programming.java.JavaLanguage 
>not found.
>public class JavaLanguage extends CompiledProgrammingLanguage
>                                   ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/Jikes.java:68: 
>Superclass 
>org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler 
>of class 
>org.apache.cocoon.components.language.programming.java.Jikes not 
>found.
>public class Jikes extends AbstractJavaCompiler {
>                            ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/CategoryNodeBuilder.java:68: 
>Superclass 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
>of class 
>org.apache.cocoon.components.treeprocessor.CategoryNodeBuilder not 
>found.
>public class CategoryNodeBuilder extends AbstractParentProcessingNodeBuilder
>                                          ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/ContainerNodeBuilder.java:66: 
>Superclass 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
>of class 
>org.apache.cocoon.components.treeprocessor.ContainerNodeBuilder not 
>found.
>public class ContainerNodeBuilder extends 
>AbstractParentProcessingNodeBuilder implements ThreadSafe {
>                                           ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/ActNodeBuilder.java:58: 
>Class 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
>not found in import.
>import 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder;
>        ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/ActNodeBuilder.java:73: 
>Superclass 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
>of class 
>org.apache.cocoon.components.treeprocessor.sitemap.ActNodeBuilder 
>not found.
>public class ActNodeBuilder extends AbstractParentProcessingNodeBuilder
>                                     ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/MatchNodeBuilder.java:61: 
>Class 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
>not found in import.
>import 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder;
>        ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/MatchNodeBuilder.java:75: 
>Superclass 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
>of class 
>org.apache.cocoon.components.treeprocessor.sitemap.MatchNodeBuilder 
>not found.
>public class MatchNodeBuilder extends AbstractParentProcessingNodeBuilder
>                                       ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/PipelineNodeBuilder.java:57: 
>Class 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
>not found in import.
>import 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder;
>        ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/PipelineNodeBuilder.java:70: 
>Superclass 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
>of class 
>org.apache.cocoon.components.treeprocessor.sitemap.PipelineNodeBuilder 
>not found.
>public class PipelineNodeBuilder extends 
>AbstractParentProcessingNodeBuilder implements ThreadSafe {
>                                          ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/SelectNodeBuilder.java:59: 
>Class 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
>not found in import.
>import 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder;
>        ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/SelectNodeBuilder.java:72: 
>Superclass 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
>of class 
>org.apache.cocoon.components.treeprocessor.sitemap.SelectNodeBuilder 
>not found.
>public class SelectNodeBuilder extends 
>AbstractParentProcessingNodeBuilder implements ThreadSafe {
>                                        ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/SitemapNodeBuilder.java:57: 
>Class 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
>not found in import.
>import 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder;
>        ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/SitemapNodeBuilder.java:72: 
>Superclass 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
>of class 
>org.apache.cocoon.components.treeprocessor.sitemap.SitemapNodeBuilder 
>not found.
>public class SitemapNodeBuilder extends 
>AbstractParentProcessingNodeBuilder implements ThreadSafe {
>                                         ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/serialization/ElementProcessorSerializer.java:59: 
>Class 
>org.apache.cocoon.components.elementprocessor.CannotCreateElementProcessorException 
>not found in import.
>import 
>org.apache.cocoon.components.elementprocessor.CannotCreateElementProcessorException;
>        ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/serialization/HSSFSerializer.java:58: 
>Class 
>org.apache.cocoon.components.elementprocessor.impl.poi.hssf.HSSFElementProcessorFactory 
>not found in import.
>import 
>org.apache.cocoon.components.elementprocessor.impl.poi.hssf.HSSFElementProcessorFactory;
>        ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/serialization/POIFSSerializer.java:58: 
>Class 
>org.apache.cocoon.components.elementprocessor.CannotCreateElementProcessorException 
>not found in import.
>import 
>org.apache.cocoon.components.elementprocessor.CannotCreateElementProcessorException;
>        ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/serialization/POIFSSerializer.java:60: 
>Class 
>org.apache.cocoon.components.elementprocessor.impl.poi.POIFSElementProcessor 
>not found in import.
>import 
>org.apache.cocoon.components.elementprocessor.impl.poi.POIFSElementProcessor;
>        ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/elementprocessor/ElementProcessorFactory.java:87: 
>Class 
>org.apache.cocoon.components.elementprocessor.CannotCreateElementProcessorException 
>not found in throws.
>         throws CannotCreateElementProcessorException;
>                ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/Row.java:71: 
>Class 
>org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.Sheet 
>not found.
>     private Sheet _sheet;
>                         ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/Row.java:79: 
>Class 
>org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.Sheet 
>not found.
>     Row(final HSSFRow row, final Sheet sheet)
>     ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/Row.java:126: 
>Class 
>org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.Cell 
>not found.
>     Cell createCell(final int column, final int cellType)
>          ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/Row.java:133: 
>Class 
>org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.Cell 
>not found.
>         Cell retval =  new Cell(_row
>         ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/Row.java:133: 
>Class 
>org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.Cell 
>not found.
>         Cell retval =  new Cell(_row
>                            ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/Pizza.java:110: 
>No variable classpath defined in class 
>org.apache.cocoon.components.language.programming.java.Pizza.
>         Main.setClassReader(new ClassReader(this.classpath, null));
>                                                 ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/Pizza.java:114: 
>Undefined variable: file
>         Main.compile(new String[]{file},
>                                   ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/Pizza.java:116: 
>Undefined variable: destDir
>                 new FileCompilerOutput(new File(destDir)),
>                                                 ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/Pizza.java:119: 
>No variable errors defined in class 
>org.apache.cocoon.components.language.programming.java.Pizza.
>         this.errors = new ByteArrayInputStream(err.toByteArray());
>             ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/NamedContainerNodeBuilder.java:69: 
>Method 
>configure(org.apache.avalon.framework.configuration.Configuration) 
>not found in class 
>org.apache.cocoon.components.treeprocessor.ContainerNodeBuilder.
>         super.configure(config);
>                        ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/PipelinesNodeBuilder.java:71: 
>No variable treeBuilder defined in class 
>org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNodeBuilder.
>         this.treeBuilder.setupNode(node, config);
>             ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/PipelinesNodeBuilder.java:73: 
>Method 
>buildChildNodes(org.apache.avalon.framework.configuration.Configuration) 
>not found in class 
>org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNodeBuilder.
>         ProcessingNode[] children = buildChildNodes(config);
>                                                    ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/PipelinesNodeBuilder.java:76: 
>Method getLogger() not found in class 
>org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNodeBuilder.
>             getLogger().error(msg);
>                      ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/ViewNodeBuilder.java:88: 
>Method getLogger() not found in class 
>org.apache.cocoon.components.treeprocessor.sitemap.ViewNodeBuilder.
>                 getLogger().error(msg);
>                          ^
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/ViewNodeBuilder.java:93: 
>No variable treeBuilder defined in class 
>org.apache.cocoon.components.treeprocessor.sitemap.ViewNodeBuilder.
>         SitemapLanguage sitemapBuilder = (SitemapLanguage)this.treeBuilder;
>                                                               ^
>36 errors
>
>BUILD FAILED
>
>/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build.xml:912: Compile 
>failed, messages should have been provided.
>
>Total time: 15 seconds
>
>--
>       Jesse Reynolds - Virtual Artists Pty Ltd - http://www.va.com.au
>
>     Email: jesse (at) va.com.au            > Website Development
>     Phone: +61 (0)8 8223 2288              > Web & Email Hosting
>       Web: http://jesse.va.com.au          > Streaming Media Hosting
>                                            > Telehousing / Colocation
>
>---------------------------------------------------------------------
>Please check that your question  has not already been answered in the
>FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
>To unsubscribe, e-mail:     <co...@xml.apache.org>
>For additional commands, e-mail:   <co...@xml.apache.org>


-- 
       Jesse Reynolds - Virtual Artists Pty Ltd - http://www.va.com.au

     Email: jesse (at) va.com.au            > Website Development
     Phone: +61 (0)8 8223 2288              > Web & Email Hosting
       Web: http://jesse.va.com.au          > Streaming Media Hosting
                                            > Telehousing / Colocation

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Building Cocoon on Mac OS X

Posted by Jesse Reynolds <li...@va.com.au>.
Hello folx

Has anyone ever built Cocoon 2.x on Mac OS X?

I got about 36 errors the first time I tried, below. They mostly seem 
to be classes not found... any ideas anyone?

I'm on Mac OS X version 10.1.5 on a powerbook g4.


compile:
Compiling with Java 1.3, debug on, optimize off, deprecation off
Compiling 19 source files to 
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/classes
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/Javac.java:71: 
Superclass 
org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler 
of class org.apache.cocoon.components.language.programming.java.Javac 
not found.
public class Javac extends AbstractJavaCompiler {
                            ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/JavaLanguage.java:64: 
Class 
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage 
not found in import.
import 
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage;
        ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/JavaLanguage.java:80: 
Superclass 
org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage 
of class 
org.apache.cocoon.components.language.programming.java.JavaLanguage 
not found.
public class JavaLanguage extends CompiledProgrammingLanguage
                                   ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/Jikes.java:68: 
Superclass 
org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler 
of class org.apache.cocoon.components.language.programming.java.Jikes 
not found.
public class Jikes extends AbstractJavaCompiler {
                            ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/CategoryNodeBuilder.java:68: 
Superclass 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
of class 
org.apache.cocoon.components.treeprocessor.CategoryNodeBuilder not 
found.
public class CategoryNodeBuilder extends AbstractParentProcessingNodeBuilder
                                          ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/ContainerNodeBuilder.java:66: 
Superclass 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
of class 
org.apache.cocoon.components.treeprocessor.ContainerNodeBuilder not 
found.
public class ContainerNodeBuilder extends 
AbstractParentProcessingNodeBuilder implements ThreadSafe {
                                           ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/ActNodeBuilder.java:58: 
Class 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
not found in import.
import 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder;
        ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/ActNodeBuilder.java:73: 
Superclass 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
of class 
org.apache.cocoon.components.treeprocessor.sitemap.ActNodeBuilder not 
found.
public class ActNodeBuilder extends AbstractParentProcessingNodeBuilder
                                     ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/MatchNodeBuilder.java:61: 
Class 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
not found in import.
import 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder;
        ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/MatchNodeBuilder.java:75: 
Superclass 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
of class 
org.apache.cocoon.components.treeprocessor.sitemap.MatchNodeBuilder 
not found.
public class MatchNodeBuilder extends AbstractParentProcessingNodeBuilder
                                       ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/PipelineNodeBuilder.java:57: 
Class 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
not found in import.
import 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder;
        ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/PipelineNodeBuilder.java:70: 
Superclass 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
of class 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNodeBuilder 
not found.
public class PipelineNodeBuilder extends 
AbstractParentProcessingNodeBuilder implements ThreadSafe {
                                          ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/SelectNodeBuilder.java:59: 
Class 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
not found in import.
import 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder;
        ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/SelectNodeBuilder.java:72: 
Superclass 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
of class 
org.apache.cocoon.components.treeprocessor.sitemap.SelectNodeBuilder 
not found.
public class SelectNodeBuilder extends 
AbstractParentProcessingNodeBuilder implements ThreadSafe {
                                        ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/SitemapNodeBuilder.java:57: 
Class 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
not found in import.
import 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder;
        ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/SitemapNodeBuilder.java:72: 
Superclass 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder 
of class 
org.apache.cocoon.components.treeprocessor.sitemap.SitemapNodeBuilder 
not found.
public class SitemapNodeBuilder extends 
AbstractParentProcessingNodeBuilder implements ThreadSafe {
                                         ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/serialization/ElementProcessorSerializer.java:59: 
Class 
org.apache.cocoon.components.elementprocessor.CannotCreateElementProcessorException 
not found in import.
import 
org.apache.cocoon.components.elementprocessor.CannotCreateElementProcessorException;
        ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/serialization/HSSFSerializer.java:58: 
Class 
org.apache.cocoon.components.elementprocessor.impl.poi.hssf.HSSFElementProcessorFactory 
not found in import.
import 
org.apache.cocoon.components.elementprocessor.impl.poi.hssf.HSSFElementProcessorFactory;
        ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/serialization/POIFSSerializer.java:58: 
Class 
org.apache.cocoon.components.elementprocessor.CannotCreateElementProcessorException 
not found in import.
import 
org.apache.cocoon.components.elementprocessor.CannotCreateElementProcessorException;
        ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/serialization/POIFSSerializer.java:60: 
Class 
org.apache.cocoon.components.elementprocessor.impl.poi.POIFSElementProcessor 
not found in import.
import 
org.apache.cocoon.components.elementprocessor.impl.poi.POIFSElementProcessor;
        ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/elementprocessor/ElementProcessorFactory.java:87: 
Class 
org.apache.cocoon.components.elementprocessor.CannotCreateElementProcessorException 
not found in throws.
         throws CannotCreateElementProcessorException;
                ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/Row.java:71: 
Class 
org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.Sheet 
not found.
     private Sheet _sheet;
                         ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/Row.java:79: 
Class 
org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.Sheet 
not found.
     Row(final HSSFRow row, final Sheet sheet)
     ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/Row.java:126: 
Class 
org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.Cell 
not found.
     Cell createCell(final int column, final int cellType)
          ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/Row.java:133: 
Class 
org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.Cell 
not found.
         Cell retval =  new Cell(_row
         ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/Row.java:133: 
Class 
org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.Cell 
not found.
         Cell retval =  new Cell(_row
                            ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/Pizza.java:110: 
No variable classpath defined in class 
org.apache.cocoon.components.language.programming.java.Pizza.
         Main.setClassReader(new ClassReader(this.classpath, null));
                                                 ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/Pizza.java:114: 
Undefined variable: file
         Main.compile(new String[]{file},
                                   ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/Pizza.java:116: 
Undefined variable: destDir
                 new FileCompilerOutput(new File(destDir)),
                                                 ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/programming/java/Pizza.java:119: 
No variable errors defined in class 
org.apache.cocoon.components.language.programming.java.Pizza.
         this.errors = new ByteArrayInputStream(err.toByteArray());
             ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/NamedContainerNodeBuilder.java:69: 
Method 
configure(org.apache.avalon.framework.configuration.Configuration) 
not found in class 
org.apache.cocoon.components.treeprocessor.ContainerNodeBuilder.
         super.configure(config);
                        ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/PipelinesNodeBuilder.java:71: 
No variable treeBuilder defined in class 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNodeBuilder.
         this.treeBuilder.setupNode(node, config);
             ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/PipelinesNodeBuilder.java:73: 
Method 
buildChildNodes(org.apache.avalon.framework.configuration.Configuration) 
not found in class 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNodeBuilder.
         ProcessingNode[] children = buildChildNodes(config);
                                                    ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/PipelinesNodeBuilder.java:76: 
Method getLogger() not found in class 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNodeBuilder.
             getLogger().error(msg);
                      ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/ViewNodeBuilder.java:88: 
Method getLogger() not found in class 
org.apache.cocoon.components.treeprocessor.sitemap.ViewNodeBuilder.
                 getLogger().error(msg);
                          ^
/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/treeprocessor/sitemap/ViewNodeBuilder.java:93: 
No variable treeBuilder defined in class 
org.apache.cocoon.components.treeprocessor.sitemap.ViewNodeBuilder.
         SitemapLanguage sitemapBuilder = (SitemapLanguage)this.treeBuilder;
                                                               ^
36 errors

BUILD FAILED

/Installers/cocoon-2.0.2-src/cocoon-2.0.2/build.xml:912: Compile 
failed, messages should have been provided.

Total time: 15 seconds

-- 
       Jesse Reynolds - Virtual Artists Pty Ltd - http://www.va.com.au

     Email: jesse (at) va.com.au            > Website Development
     Phone: +61 (0)8 8223 2288              > Web & Email Hosting
       Web: http://jesse.va.com.au          > Streaming Media Hosting
                                            > Telehousing / Colocation

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Redirect/Rewrite Module

Posted by Michael Wechner <mi...@wyona.org>.

Giacomo Pati wrote:

>On Fri, 9 Aug 2002, Michael Wechner wrote:
>
>>Hi
>>
>>I have a situation where I would like to do a lot of
>>URI-redirects/rewrites. I know I can do this via the sitemap,
>>but other people would be doing this. So for the reason of "Separation
>>of Concern" I would like to separate this from the actual sitemap.
>>
>>My question is what are the possibilties to do something like that?
>>
>>-One way would probably be to have a separate sitemap dedicated to
>>redirects, which is mounted by the actual sitemap.
>>
>>-Or to have the redirects in a separate file, which is "pulled in" by
>>the actual sitemap as an external entity
>>
>>-Or to have an action/component, where every request is sent through and
>>is acting
>>as an redirect/rewrite module (and maybe calling Cocoon again!!)
>>
>>Any thoughts on this?
>>
>
>What about redesigning your URI space?
>
>You know, I'm not a friend of redirects as they where made to keep old
>URIs still working if you had to restructure your site. It seems to me
>that people think redirection is a tool/pattern for web development.
>
I agree with you, but the problem of old URIs will probably exist for 
another year or so:-)
I think there are at least two solutions:

1) You can propagate the modifications of URIs through the net using a 
P2P approach
or something similar. This would not only be good for old URIs, but also 
for URIs where
content is changing all the time, such as for instance RSS. (For 
instance Slashdot has the
policy that you are not "allowed" to request their RSS more often than 
every 30 minutes,
else your IP will be blocked.)

2) Each URI has an owner. When the URI is old (expired), but is still 
being requested, then the server should tell the owner about it

Both solutions could be part of a Content Management System/Framework.

But there is also another "misuse" of redirects:
Companies (for instance newspapers) sometimes want to announce a new 
"product"
on the web, but the URI is too long for people remembering when reading 
the adds,
but actually it would be appropriate context-wise. So the marketing 
department thinks
of an "abbreviated" URI.

All the best

Michael

> 
>
>Giacomo
>
>
>---------------------------------------------------------------------
>Please check that your question  has not already been answered in the
>FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
>To unsubscribe, e-mail:     <co...@xml.apache.org>
>For additional commands, e-mail:   <co...@xml.apache.org>
>



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Redirect/Rewrite Module

Posted by Giacomo Pati <gi...@apache.org>.
On Fri, 9 Aug 2002, Michael Wechner wrote:

> Hi
>
> I have a situation where I would like to do a lot of
> URI-redirects/rewrites. I know I can do this via the sitemap,
> but other people would be doing this. So for the reason of "Separation
> of Concern" I would like to separate this from the actual sitemap.
>
> My question is what are the possibilties to do something like that?
>
> -One way would probably be to have a separate sitemap dedicated to
> redirects, which is mounted by the actual sitemap.
>
> -Or to have the redirects in a separate file, which is "pulled in" by
> the actual sitemap as an external entity
>
> -Or to have an action/component, where every request is sent through and
> is acting
> as an redirect/rewrite module (and maybe calling Cocoon again!!)
>
> Any thoughts on this?

What about redesigning your URI space?

You know, I'm not a friend of redirects as they where made to keep old
URIs still working if you had to restructure your site. It seems to me
that people think redirection is a tool/pattern for web development.

Giacomo


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Redirect/Rewrite Module

Posted by Giacomo Pati <gi...@apache.org>.
On Fri, 9 Aug 2002, Michael Wechner wrote:

> Hi
>
> I have a situation where I would like to do a lot of
> URI-redirects/rewrites. I know I can do this via the sitemap,
> but other people would be doing this. So for the reason of "Separation
> of Concern" I would like to separate this from the actual sitemap.
>
> My question is what are the possibilties to do something like that?
>
> -One way would probably be to have a separate sitemap dedicated to
> redirects, which is mounted by the actual sitemap.
>
> -Or to have the redirects in a separate file, which is "pulled in" by
> the actual sitemap as an external entity
>
> -Or to have an action/component, where every request is sent through and
> is acting
> as an redirect/rewrite module (and maybe calling Cocoon again!!)
>
> Any thoughts on this?

What about redesigning your URI space?

You know, I'm not a friend of redirects as they where made to keep old
URIs still working if you had to restructure your site. It seems to me
that people think redirection is a tool/pattern for web development.

Giacomo


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org