cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <>
Subject Re: javax.servlet.ServletException: No block for /myBlock/index.html
Date Thu, 22 Nov 2007 21:05:31 GMT
Mansour wrote:
> Ok, It's working now. Basically I removed the components definition from 
> the sitemap.xmap. It worked fine. Now, I need someone to explain to me 
> what happened.

Previously in the sitemap you had this:

   <map:generator label="content"
     logger="sitemap.generator.file" name="file"
     src="org.apache.cocoon.generation.FileGenerator" />

This snippet refers to the property named 'file-generator.pool-max', and this 
property is not defined anywhere in the Cocoon 2.2. To fix this you have several 

1. Use number instead of property reference
2. Define property in Block/META-INF/cocoon/*.properties file
3. Define property in Block/COB-INF/config/properties/*.properties file

> I guess I should not redefine in my sitemap component, 
> because this will override the config in the war file (the platform). I 
> don't know if I am right, but I need some one to advice me.
> The new contents of the sitemap:
> <?xml version="1.0" encoding="iso-8859-1"?>
> <map:sitemap xmlns:map="">
>        <map:pipelines>
>                <map:pipeline type="caching">
>                        <map:match pattern="*.html">
>                                <map:generate src="index.xml" />
>                                <map:transform src="doc2html.xsl" />
>                                <map:serialize type="html" />
>                        </map:match>
>                </map:pipeline>
>        </map:pipelines>
> </map:sitemap>

And this works too ;-)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message