Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 8888 invoked from network); 4 Dec 2009 15:07:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Dec 2009 15:07:23 -0000 Received: (qmail 63130 invoked by uid 500); 4 Dec 2009 15:07:23 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 63065 invoked by uid 500); 4 Dec 2009 15:07:22 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 63057 invoked by uid 99); 4 Dec 2009 15:07:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Dec 2009 15:07:22 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [82.99.2.81] (HELO mx4.ciber-europe.com) (82.99.2.81) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Dec 2009 15:07:19 +0000 Received: from eusex01.sweden.ecsoft ([10.46.0.69]) by mx4.ciber-europe.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 4 Dec 2009 16:06:55 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CA74F3.6ADD70BA" 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, 4 Dec 2009 16:06:56 +0100 Message-ID: <7C655C04B6F59643A1EF66056C0E095E0317F47A@eusex01.sweden.ecsoft> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: 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 Thread-Index: Acp082vUWUd1fLSXR0+pLHWgnGPXtQ== From: "Robby Pelssers" To: X-OriginalArrivalTime: 04 Dec 2009 15:06:55.0173 (UTC) FILETIME=[6AD57750:01CA74F3] ------_=_NextPart_001_01CA74F3.6ADD70BA Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi guys, =20 I defined a custom serializer to add a specific doctype declaration: =20 = http://nww.qa.spider.nxp.com:8310/xmetal/schemas/map.dtd<= /doctype-system> =20 =20 I dynamically generate the zip archive using inline xml content. =20 Ziparchive xml snippet (1) =20 =20 My sitemap snippet looks like this: =20 =E0results in (1)=20 =20 I can process this pipeline up until transformation. But the zip = serializer gives me following exception: =20 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=3D'AvalonServiceSelector') at = org.apache.cocoon.serialization.ZipArchiveSerializer.addEntry(ZipArchiveS= erializer.java:333) at = org.apache.cocoon.serialization.ZipArchiveSerializer.startElement(ZipArch= iveSerializer.java:211) at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at = org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invok= e(PoolableProxyHandler.java:71) at $Proxy12.startElement(Unknown Source) at = net.sf.saxon.event.ContentHandlerProxy.startContent(ContentHandlerProxy.j= ava:253) =20 =20 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? =20 May thx in advance, Robby Pelssers ------_=_NextPart_001_01CA74F3.6ADD70BA Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi guys,

 

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

 

      = <map:serializer =

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

        = src=3D"org.apache.cocoon.serialization.XMLSerializ= er">

        <doctype-system>http://nww.qa.spider.nxp.com:8310/xmetal/schemas/map.dt= d</doctype-system>

      </map:serializer>

 

 

I dynamically generate the zip archive using inline = xml content.

 

Ziparchive xml snippet = (1)

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

<zip:archive xmlns:zip=3D"http://a= pache.org/cocoon/zip-archive/1.0" xmlns:xs=3D"http://www.w3.org/2001/XMLSchema">

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

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

           =             &= nbsp;            = <topicmeta>

           =             &= nbsp;           &n= bsp;            = <critdates>

           =             &= nbsp;           &n= bsp;           &nb= sp;            = <revised modified=3D"20091204"/&g= t;

           =             &= nbsp;           &n= bsp;            = </critdates>

           =             &= nbsp;           &n= bsp;            = <releasestate content=3D"released"/&g= t;

           =             &= nbsp;           &n= bsp;            = <owner content=3D"NXP"/>

           =             &= nbsp;            = </topicmeta>

           =             &= nbsp;            = <topicgroup>

           =             &= nbsp;           &n= bsp;            = <topichead navtitle=3D"PH3330L"/&g= t;

           =             &= nbsp;           &n= bsp;            = <topicref href=3D"product_profile" navtitle=3D"product_profile"/>

           =             &= nbsp;           &n= bsp;            = <topicref href=3D"pinning_information" navtitle=3D"pinning_information"/>

           =             &= nbsp;           &n= bsp;            = <topicref href=3D"ordering_information" navtitle=3D"ordering_information"/>

           =             &= nbsp;           &n= bsp;            = <topicref href=3D"marking" navtitle=3D"marking<= /span>"/>

           =             &= nbsp;            = </topicgroup>

           =              = </map>

    = ;        </zip:entry>

</zip:archive>

 

 

My sitemap snippet looks like this:

 

      = <map:match pattern=3D"zip">

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

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

        <map:serialize type=3D"zip"/>

      </map:match>

 

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

 

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=3D'AvalonServiceSelector')

      at org.apache.cocoon.serialization.ZipArchiveSerializer.addEntry(<= span style=3D'font-size:10.0pt;font-family:"Courier = New";color:navy'>ZipArchiveSerializer.java:333)

      at = org.apache.cocoon.serialization.ZipArchiveSerializer.startElement(= ZipArchiveSerializer.java:211)

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

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at = java.lang.reflect.Method.invoke(Method.java:585)

      at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invok= e(PoolableProxyHandler.java:71)

      at $Proxy12.startElement(Unknown Source)

      at net.sf.saxon.event.ContentHandlerProxy.startContent(ContentHandlerProxy.java:253)

 

 

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

------_=_NextPart_001_01CA74F3.6ADD70BA--