Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 86014 invoked from network); 12 Feb 2009 14:04:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2009 14:04:20 -0000 Received: (qmail 3617 invoked by uid 500); 12 Feb 2009 14:04:19 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 3542 invoked by uid 500); 12 Feb 2009 14:04:18 -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 3533 invoked by uid 99); 12 Feb 2009 14:04:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 06:04:18 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=PLING_QUERY,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [80.237.158.89] (HELO sester.sidebysite.de) (80.237.158.89) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 14:04:09 +0000 Received: from xdsl-78-34-64-102.netcologne.de ([78.34.64.102] helo=[192.168.23.22]) by sester.sidebysite.de with esmtpsa (TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63) (envelope-from ) id 1LXcTZ-0005nC-9A for dev@cocoon.apache.org; Thu, 12 Feb 2009 15:23:39 +0100 Message-Id: <2D67005C-5025-4B15-9FF7-78969212F2E1@boksa.de> From: Benjamin Boksa To: dev@cocoon.apache.org In-Reply-To: <49942424.9040508@mobilebox.pl> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Bug in Cocoon Spring Configurator 2.0 (!?) Date: Thu, 12 Feb 2009 15:03:44 +0100 References: <4993F8D6.7050802@mobilebox.pl> <49942424.9040508@mobilebox.pl> X-Mailer: Apple Mail (2.930.3) X-Spam-Score: -4.0 (----) X-Spam-Report: Spam detection software, running on the system "ds80-237-158-89.dedicated.hosteurope.de", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Am 12.02.2009 um 14:29 schrieb Leszek Gawron: > Benjamin Boksa wrote: >> Hi Leszek, >> thanks you very much for looking into my problem: >>> I have run your test scenario. Please use the following statement: >>> >>>> >>>> >>>> >>>> >>> >>> using classpath*: ensures that spring will scan all available jars >>> for that path and aggregate the results. >> That (scanning all jars) actually was one of the things I tried to >> avoid (as this might cause problems with the same directories >> existing in two jars). Not very likely, I know, but avoidable as >> the configurator test-case shows. > > One more comment: there is completely no problem if every jar has / > META-INF/properties/application.properties file. Every file has > unique URL and the property placeholder will pick all of them. Treat > it more like a nice feature than a problem :) [...] Content analysis details: (-4.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP 1.4 PLING_QUERY Subject has exclamation mark and question mark -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] -1.0 AWL AWL: From: address is in the auto white-list X-Virus-Checked: Checked by ClamAV on apache.org Am 12.02.2009 um 14:29 schrieb Leszek Gawron: > Benjamin Boksa wrote: >> Hi Leszek, >> thanks you very much for looking into my problem: >>> I have run your test scenario. Please use the following statement: >>> >>>> >>>> >>> service/spring"/> >>>> >>> foo-service/properties"/> >>>> >>> >>> using classpath*: ensures that spring will scan all available jars =20= >>> for that path and aggregate the results. >> That (scanning all jars) actually was one of the things I tried to =20= >> avoid (as this might cause problems with the same directories =20 >> existing in two jars). Not very likely, I know, but avoidable as =20 >> the configurator test-case shows. > > One more comment: there is completely no problem if every jar has /=20 > META-INF/properties/application.properties file. Every file has =20 > unique URL and the property placeholder will pick all of them. Treat =20= > it more like a nice feature than a problem :) Not sure if I understand you on that one=85 Let's assume there are two =20= "foo.properties" files both containing a property "bar" - when using =20 the settings above how does the spring-configurator decide which is =20 the right property to use? I think this might result in a problem (the =20= wrong "bar"-property is used)=85 However the big problem/misunderstanding/bug is that with my the =20 original settings the bean definitions seem to be read correctly while the properties =20 are not - which I absolutely can't understand. I feel a bit like going =20= in circles and can't find any good resources (despite of Leszek ;-) ) =20= which might help me solve this problem. So if you have further information please let me know :-) Thanks for you time Benjamin=