Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 65524 invoked from network); 6 Sep 2006 20:39:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Sep 2006 20:39:30 -0000 Received: (qmail 72443 invoked by uid 500); 6 Sep 2006 20:39:28 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 72382 invoked by uid 500); 6 Sep 2006 20:39:28 -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 72371 invoked by uid 99); 6 Sep 2006 20:39:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Sep 2006 13:39:27 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [195.130.133.68] (HELO assei1bl6.telenet-ops.be) (195.130.133.68) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Sep 2006 13:39:26 -0700 Received: from localhost (localhost.localdomain [127.0.0.1]) by assei1bl6.telenet-ops.be (Postfix) with SMTP id E8A1D2200D0 for ; Wed, 6 Sep 2006 22:39:03 +0200 (CEST) Received: from [192.168.2.2] (d54C1AE48.access.telenet.be [84.193.174.72]) by assei1bl6.telenet-ops.be (Postfix) with ESMTP id D6EF2220073 for ; Wed, 6 Sep 2006 22:39:03 +0200 (CEST) Subject: Re: Apples + spring = cannot find beans (AvalonServiceManager exception) From: Bruno Dumon To: dev@cocoon.apache.org In-Reply-To: <44FED48D.2010902@mobilebox.pl> References: <44FED48D.2010902@mobilebox.pl> Content-Type: text/plain Date: Wed, 06 Sep 2006 22:39:02 +0200 Message-Id: <1157575143.6369.16.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Wed, 2006-09-06 at 16:00 +0200, Leszek Gawron wrote: > I have a development block that has a following application context > defined at COB-INF/config/spring/: > > > > > > > > > > > > > > > > > > > > > > > > > Now I am using service-apples which for > > performs a call > serviceManager.lookup( "fetchDiscount" ) > > Now I see that 'fetchDiscount' bean is shown in cocoon log > (pre-instantiating singletons yada yada yada) but I get the exception > anyway: > > Message: Component with 'fetchDiscount' is not defined in this service > manager. (Key='AvalonServiceManager') > > A simple test shows that ApplesProcessor is not properly contextualized: > If I move the file from > COB-INF/config/spring/applicationContext-apples.xml to > META-INF/spring/applicationContext-apples.xml (so that this file ends up > in WEB-INF/cocoon/spring/) everything starts working just fine. In Cocoon 2.1.9 there was a similar issue: https://issues.apache.org/jira/browse/COCOON-1728 though I don't know how much that applies to trunk. -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center bruno@outerthought.org bruno@apache.org