Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 39056 invoked from network); 2 Nov 2004 13:56:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Nov 2004 13:56:00 -0000 Received: (qmail 9173 invoked by uid 500); 2 Nov 2004 13:55:56 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 9054 invoked by uid 500); 2 Nov 2004 13:55:54 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 9031 invoked by uid 99); 2 Nov 2004 13:55:54 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of ap-cocoon-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO main.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 02 Nov 2004 05:55:53 -0800 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1COz8Z-0007kY-00 for ; Tue, 02 Nov 2004 14:55:51 +0100 Received: from dyn-213-36-224-146.ppp.tiscali.fr ([213.36.224.146]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Nov 2004 14:55:50 +0100 Received: from eric.burghard by dyn-213-36-224-146.ppp.tiscali.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Nov 2004 14:55:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: dev@cocoon.apache.org From: BURGHARD =?ISO-8859-15?Q?=C9ric?= Subject: how to get the xml serializer Date: Tue, 02 Nov 2004 15:03:26 +0100 Lines: 33 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dyn-213-36-224-146.ppp.tiscali.fr User-Agent: KNode/0.8.0 Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi ! I'm writing a new source module. I set-up some new pipelines with this module in the generator and everything is working correctly, ... well not exactly When i try to cinclude the xml from these pipelines in another pipeline i get an exception (unable to find the xml serializer component from the serializer selector component). The problem comes from the getInputStream() method. I took the one that came with XMLDBSource.java so i guess that xmldb: module has the same problem. The serializer is to be selected by manager = (ServiceManager) this.context.get(ContextHelper.CONTEXT_SITEMAP_SERVICE_MANAGER); serializerSelector = (ServiceSelector) manager.lookup(Serializer.ROLE + "Selector"); serializer = (Serializer)serializerSelector.select("xml"); which throw the exception The only components (related to serialization) i could find in the manager is the org.apache.cocoon.components.sax.XMLSerializer and the org.apache.cocoon.components.sax.XMLDeSerializer, but it seems complicated for my purposes. Any idea ? regards