Return-Path: Delivered-To: apmail-incubator-aries-user-archive@minotaur.apache.org Received: (qmail 66112 invoked from network); 24 Oct 2010 16:59:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Oct 2010 16:59:05 -0000 Received: (qmail 94215 invoked by uid 500); 24 Oct 2010 16:59:05 -0000 Delivered-To: apmail-incubator-aries-user-archive@incubator.apache.org Received: (qmail 94140 invoked by uid 500); 24 Oct 2010 16:59:04 -0000 Mailing-List: contact aries-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: aries-user@incubator.apache.org Delivered-To: mailing list aries-user@incubator.apache.org Received: (qmail 94132 invoked by uid 99); 24 Oct 2010 16:59:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Oct 2010 16:59:03 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kowalewski.bartosz@gmail.com designates 74.125.82.41 as permitted sender) Received: from [74.125.82.41] (HELO mail-ww0-f41.google.com) (74.125.82.41) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Oct 2010 16:58:59 +0000 Received: by wwi14 with SMTP id 14so1522567wwi.0 for ; Sun, 24 Oct 2010 09:58:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=v34bUVj+/00hJs3lUt+0MI41AzEmd5yQ8mUR2hF5jc8=; b=yCmMSAGcdWY4rmjKb/U+gnSveftQrqegwXT7DUfiVeMjLmxSonu8DjdqnY5N4Bbj95 sH4vuIHM6Aeohms/+zUZDtj2Zp8OvaxZuBDdypBNXJOdg2B68pf347962rnOqpHDrtw1 B2WKWGJ83v9NCZYe27X01tIx1yuJEwbKAEP4Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=xEhZOVcpO837ls19zjdiDj/vwtmvqaRFKRgncAtUFY+9207IdI4bOokKu/OYTd5qjq C04cZT7GW1WmocOu+EkrMZ96yPEYo8t/5LOE/MmWY+6MfdbWQgPq+bArZhMP9BFxmF26 kySKoXlt89nizTn0FySggFiXVhMTYvPkQDpFo= MIME-Version: 1.0 Received: by 10.227.138.73 with SMTP id z9mr2561934wbt.192.1287939517582; Sun, 24 Oct 2010 09:58:37 -0700 (PDT) Received: by 10.227.136.12 with HTTP; Sun, 24 Oct 2010 09:58:37 -0700 (PDT) In-Reply-To: References: Date: Sun, 24 Oct 2010 18:58:37 +0200 Message-ID: Subject: Re: Eclipse validation error on blueprint xml From: Bartosz Kowalewski To: aries-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Jorge, Alasdair, As far as I remember, property placeholders are in both namespaces :-). The cm one uses Configuration Admin, while the ext one is dedicated to working with system properties. Jorge, Looking at your example (the way you use specific properties), I think that what you really need is a single placeholder (instead of two): I think that you wanted to use custom prefix/suffix for cm property placeholder and you don't need the ext one at all. As a side effect this modification should get rid of the error message :-). The error printed by Eclipse is really weird. It says that blueprint.xsd is invalid and, what is more, it is only observable when elements from both ext and cm namespaces are used. It's not really caused by the cm namespace, if you remove the ext placeholder and leave the cm one, everything will work. I took a look at all three schemas and I think that they do not break the rule which appears in your error message. The error has something to do with the fact that both ext and cm import the blueprint schema, but I would say that it looks more like a bug in the validator than a problem with any of these three schemas. Oh, you have a spelling mistake in your error message - 'TdependesOn' ;-) Best regards, Bartek 2010/10/24 Alasdair Nottingham : > Hi, > I'm pretty sure that property-placeholder is in the cm namespace, not the > ext one. > Try the following: > =A0=A0 =A0 =A0 =A0 =A0placeholder-suffix=3D"]" /> > > Alasdair > Alasdair > On 24 Oct 2010, at 01:48, Jorge Riquelme wrote: > > Hi list, i'm new to Aries. I got to this project digging in the code > of karaf 2.1.0, searching how to provide configuration to mi bundles. > Everything works fine so far, but i'm getting a validation error in > eclipse. I added to my XML Catalog the namespaces (and the > respectively schema): > - http://www.osgi.org/xmlns/blueprint/v1.0.0 > http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd > - http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0 > https://svn.apache.org/repos/asf/incubator/aries/trunk/blueprint/blueprin= t-cm/src/main/resources/org/apache/aries/blueprint/compendium/cm/blueprint-= cm-1.0.0.xsd > - http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0 > https://svn.apache.org/repos/asf/incubator/aries/tags/blueprint-0.1-incub= ating/blueprint-core/src/main/resources/org/apache/aries/blueprint/ext/blue= print-ext.xsd > > This lets me use autocompletion, validation, etc; not vital but > useful. The problem is that I'm getting the following errors in > eclipse: > > derivation-ok-restriction.2.1.2: Error for type 'Tinlined-reference'. > The attribute use 'depends-on' in this type has type 'TdependesOn', > wich is not validly derived from 'TdependsOn', the type of the > matching attribute use in the base type. line 413 > derivation-ok-restriction.2.1.2: Error for type > 'Tinlined-reference-list'. The attribute use 'depends-on' in this type > has type 'TdependesOn', wich is not validly derived from 'TdependsOn', > the type of the matching attribute use in the base type. line 469 > > The blueprint file is: > > > =A0 =A0xmlns:cm=3D"http://aries.apache.org/blueprint/xmlns/blueprint-cm/v= 1.0.0" > =A0 =A0xmlns:ext=3D"http://aries.apache.org/blueprint/xmlns/blueprint-ext= /v1.0.0"> > > =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0placeholder-suffix=3D"]" /> > > =A0 =A0 > =A0 =A0 > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > =A0 =A0 > > =A0 =A0 class=3D"cl.toeska.cc.person.jena.JenaPersonService" > =A0 =A0 =A0 =A0init-method=3D"init" destroy-method=3D"destroy"> > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > =A0 =A0 > > =A0 =A0 interface=3D"cl.toeska.cc.person.api.PersonService" /> > > > The problem is caused by the element cm:property-placeholder; if i > remove it the errors disappear. > > > Any help or advice will be appreciated. > > > -- > Jorge Riquelme Santana >