Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 46657 invoked from network); 6 Aug 2007 11:26:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Aug 2007 11:26:24 -0000 Received: (qmail 84235 invoked by uid 500); 6 Aug 2007 11:26:22 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 84012 invoked by uid 500); 6 Aug 2007 11:26:21 -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 List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 84001 invoked by uid 99); 6 Aug 2007 11:26:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2007 04:26:21 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2007 11:26:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5C09D7141FD for ; Mon, 6 Aug 2007 04:25:59 -0700 (PDT) Message-ID: <4278184.1186399559373.JavaMail.jira@brutus> Date: Mon, 6 Aug 2007 04:25:59 -0700 (PDT) From: "Grzegorz Kossakowski (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Assigned: (COCOON-2106) DatabaseReader and SQLTransformer cannot obtain datasource In-Reply-To: <23675953.1186313992823.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COCOON-2106?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Grzegorz Kossakowski reassigned COCOON-2106: -------------------------------------------- Assignee: Grzegorz Kossakowski > DatabaseReader and SQLTransformer cannot obtain datasource > ---------------------------------------------------------- > > Key: COCOON-2106 > URL: https://issues.apache.org/jira/browse/COCOON-2106 > Project: Cocoon > Issue Type: Bug > Components: Blocks: Databases > Affects Versions: 2.2-dev (Current SVN) > Reporter: Kaz=C3=B3 Csaba > Assignee: Grzegorz Kossakowski > Attachments: dbreader.diff, sqltrans.diff > > > The DatabaseReader and SQLTransformer components fail to obtain the confi= gured data source and throw a ServiceException like "Component with 'org.ap= ache.avalon.excalibur.datasource.DataSourceComponent/personnel' is not defi= ned in this service manager. (Key=3D'AvalonServiceManager')". The failing f= unction call in both cases is: > this.manager.lookup(DataSourceComponent.ROLE + '/' + datasourceName) > The result is the same regardless of whether the data source is defined a= s an Avalon component or a Spring bean. > Changing the code to use ServiceSelector as in the "Creating a Reader" do= cument [1] and the modular database actions solves the problem for both cas= es. The attached patch applies this modification to DatabaseReader.java. > [1] http://cocoon.zones.apache.org/daisy/cdocs/g1/g1/g2/g1/g2/681.html --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.