cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gelo1234 <gelo1...@gmail.com>
Subject Re: Cocoon 3 sitemap setup
Date Wed, 24 Aug 2016 15:56:58 GMT
Hi,

AFAIK there is no more direct sitemap mounting in C3. You have to make a
separate C3 module/block and "mount"/assign a context to it.
Then you can connect 2 or more Cocoon blocks together in order to share
some common servlet or functionality.

Take a look at Cocoon samples:
https://github.com/ilgrosso/cocoon3EmptyProject/tree/COCOON3-105

Greetings,
Greg

24.08.2016 13:21 "Artur Synowiec" <asynowie@yahoo.com.invalid> napisaƂ(a):

> Hello,
>
> I need some help with setting up Cocoon 3 sitemap.
>
> I have used Cocoon 2.1 and 2.2 in the past and enjoyed the simplicity of
> the XML transformation
> using sitemap language.
>
> Now I would like to get a hand of Cocoon 3. I've successfully managed to
> integrate
> C3 pipeline processor with other Java applications (based on Spring Boot)
> but
> I would love to make it work again with sitemap. I can see a few examples
> on the web
> of people using C3 inside their apps but couldn't see any example of
> mounting a sitemap.xmap
>
> Ideally I would like to integrate it with a Spring Boot app and
> mount XMLSitemapServlet in there.
> I have managed to do it using a class implementing Spring's
> ServletContextInitializer but I'm getting this exception:
>
> java.lang.IllegalStateException: Received closing 'match' but there was
> no node to close.
> I think it could be something to do with creating a Spring bean
> of org.apache.cocoon.sitemap.node.SitemapNode/sitemap
> which is needed for SitemapNodeFactory's createNode() method.
>
> I would appreciate any help on this.
>
> Regards,
> Artur
>
>

Mime
View raw message