Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 44958 invoked from network); 5 Aug 2007 11:42:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Aug 2007 11:42:16 -0000 Received: (qmail 48205 invoked by uid 500); 5 Aug 2007 11:42:15 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 48114 invoked by uid 500); 5 Aug 2007 11:42:15 -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 48103 invoked by uid 99); 5 Aug 2007 11:42:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Aug 2007 04:42:15 -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; Sun, 05 Aug 2007 11:42:02 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 32CE27141F1 for ; Sun, 5 Aug 2007 04:41:53 -0700 (PDT) Message-ID: <10270987.1186314113203.JavaMail.jira@brutus> Date: Sun, 5 Aug 2007 04:41:53 -0700 (PDT) From: =?utf-8?Q?Kaz=C3=B3_Csaba_=28JIRA=29?= To: dev@cocoon.apache.org Subject: [jira] Updated: (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 ] Kaz=C3=B3 Csaba updated COCOON-2106: ------------------------------- Attachment: dbreader.diff The patch for DatabaseReader.java > 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 > Attachments: dbreader.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.