cocoon-dev mailing list archives

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

> shenoy, nitin wrote:
> ><snip>
> >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.
> >
> ></snip>
> >
> >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.
> >
> >Regards,
> >Nitin
> >
> 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"
> logger="sitemap"/>
> 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:match pattern="our-app/**">
    <map:mount uri-prefix="our-app"

   <map:match pattern="**">
    <map:mount uri-prefix=""

    <map:transform src="stylesheets/system/error2html.xsl"/>
    <map:serialize status-code="500"/>

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?


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

View raw message