cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robby Pelssers" <>
Subject problem with zip serializer Cocoon 2.2: Component with role 'org.apache.cocoon.serialization.Serializer/' and key 'map' is not defined in this service selector
Date Fri, 04 Dec 2009 15:06:56 GMT
Hi guys,


I defined a custom serializer to add a specific doctype declaration:



        logger="sitemap.serializer.xml" mime-type="text/xml" name="map"






I dynamically generate the zip archive using inline xml content.


Ziparchive xml snippet (1)

<?xml version="1.0" encoding="UTF-8"?>

<zip:archive xmlns:zip="" xmlns:xs="">

            <zip:entry name="PH3330L.xml" serializer="map">

                        <map id="emptymap" rev="000.000" title="PH3330L">



                                                            <revised modified="20091204"/>


                                                <releasestate content="released"/>

                                                <owner content="NXP"/>



                                                <topichead navtitle="PH3330L"/>

                                                <topicref href="product_profile" navtitle="product_profile"/>

                                                <topicref href="pinning_information" navtitle="pinning_information"/>

                                                <topicref href="ordering_information" navtitle="ordering_information"/>

                                                <topicref href="marking" navtitle="marking"/>







My sitemap snippet looks like this:


      <map:match pattern="zip">

        <map:generate src="cocoon:/datasheet_mockup"/>

        <map:transform src="xslt/datasheet2zip.xslt" type="saxon" label="zip"/>  àresults
in (1) 

        <map:serialize type="zip"/>



I can process this pipeline up until transformation.  But the zip serializer gives me following


Caused by: org.apache.avalon.framework.service.ServiceException: Component with role 'org.apache.cocoon.serialization.Serializer/'
and key 'map' is not defined in this service selector. (Key='AvalonServiceSelector')

      at org.apache.cocoon.serialization.ZipArchiveSerializer.addEntry(

      at org.apache.cocoon.serialization.ZipArchiveSerializer.startElement(

      at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(

      at java.lang.reflect.Method.invoke(

      at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(

      at $Proxy12.startElement(Unknown Source)

      at net.sf.saxon.event.ContentHandlerProxy.startContent(



I would expect that the name of the serializer is used as key... or is my assumption wrong
and do I need to add some extra configuration to the custom serializer?


May thx in advance,

Robby Pelssers

View raw message