cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject Re: Interpreted Sitemap?
Date Wed, 06 Feb 2002 21:35:30 GMT
giacomo wrote:

>On Wed, 30 Jan 2002, Sylvain Wallez wrote:
>>shenoy, nitin wrote:
>>>Stefano wrote
>>>Have you tried running Cocoon with the interpreted sitemap instead of
>>>the compiled one? in that case, nobody needs to reference the libraries
>>>directly since it would be weblogic's classloader to give them to
>>>Cocoon's classes.
>>>Where would I find info about the interpreted sitemap? I have searched the
>>>archives and I saw a few discussion threads around it on the users group.
>>>But the last message merely said it was still in development.
>>The interpreted sitemap engine isn't in the official distribution, but
>>in the scratchpad. It is fully functionnal, and the only known issue I
>>know of (I'm currently working on it) is view handling in aggregations.
>>To use it, you'll have to include cocoon-scratchpad.jar in your
>>WEB-INF/lib and change the <sitemap> line in cocoon.xconf into :
>><sitemap class="org.apache.cocoon.treeprocessor.TreeProcessor"
>>At the first request, you may see an error message complaining about
>>undefined "xmldb" or "parentcm" generators. You'll then have to comment
>>out these pipelines in sitemap.xmap, since the interpreted sitemap is
>>more strict than the compiled engine.
>>Please report any problem you may have with this new engine.
>And here it is :)
>We usually deploy our apps as sub-sitemaps with the following approach:
>- install an unpacked cocoon.war into the servlet container
>  (Catalina in our case)
>- copy the sitemap.xmap to original.sitemp.xmap
>- in sitemap.xmap strip out all resources, action-sets and pipelines and
>  leave a:
>  <map:pipeline>
>   <map:match pattern="our-app/**">
>    <map:mount uri-prefix="our-app"
>               src="our-app/sitemap.xmap"
>               check-reload="yes"/>
>   </map:match>
>   <map:match pattern="**">
>    <map:mount uri-prefix=""
>               src="original.sitemap.xmap"
>               check-reload="yes"/>
>   </map:match>
>   <map:handle-errors>
>    <map:transform src="stylesheets/system/error2html.xsl"/>
>    <map:serialize status-code="500"/>
>   </map:handle-errors>
>  </map:pipeline>
>A request to http://localhost:8080/cocoon/welcome work smart with the
>compiled sitemap but with the TreeProcessor it spews alot of
>"Problem setting up the connection: org.dbxml.client.xmldb.DatabaseImpl"
>ProcessingExceptions and finally dies an OutOfMemoryError.
>Any thoughts?
Hi Giacomo,

Peter Royal found a bug that affects mounts that have a file and not a 
directory in their "src" attribute, just as in your sitemap. I'll fix it 
ASAP so you can try again. But I'm really surprised this causes such a 
violent death of the JVM !


Sylvain Wallez
Anyware Technologies -

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

View raw message