Return-Path: X-Original-To: apmail-ace-users-archive@minotaur.apache.org Delivered-To: apmail-ace-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 416C717AE3 for ; Wed, 15 Apr 2015 10:41:42 +0000 (UTC) Received: (qmail 92320 invoked by uid 500); 15 Apr 2015 10:41:42 -0000 Delivered-To: apmail-ace-users-archive@ace.apache.org Received: (qmail 92296 invoked by uid 500); 15 Apr 2015 10:41:42 -0000 Mailing-List: contact users-help@ace.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@ace.apache.org Delivered-To: mailing list users@ace.apache.org Received: (qmail 92284 invoked by uid 99); 15 Apr 2015 10:41:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2015 10:41:41 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of robert.mather.rmm@gmail.com designates 209.85.220.170 as permitted sender) Received: from [209.85.220.170] (HELO mail-qk0-f170.google.com) (209.85.220.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2015 10:41:37 +0000 Received: by qku63 with SMTP id 63so75614764qku.3 for ; Wed, 15 Apr 2015 03:41:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=glD1yOgcjKKqbl6YkyrFob6M0nbuJeqfarwFYOzfoYQ=; b=pX3tsbogmg9ywMDkSy+/dZUCSfPD0i4EWp64VUzngFTsoUKpZKghgVR306ZIo4sqN7 sZGU4qiuqC5hm/9DZ48D7+HyAz44OLLl8sgjg0/3lm72t/QUT3Ent3MkSy9IIITWj+/v iPQLrWXugHsmzN+M5aUeE7zdSjv/WhXHrC4U5X6gELtJTSgqHrK5ncvsg3SEKpCCRmvg 6j1ZZz2OsiK1QEZdrXwLKzFCQFhJ30C/JofKNrQ6Whfme369cNpOSMqDAQRec3DPBaOF YWaXt6JhdHY01H4R3ly7kFHPy5vQxC7O30NQAN7vzWT75DqNaYT2AYmU1hQPtWU+0rEt WMlg== X-Received: by 10.140.83.116 with SMTP id i107mr21821213qgd.97.1429094472553; Wed, 15 Apr 2015 03:41:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.155.9 with HTTP; Wed, 15 Apr 2015 03:40:52 -0700 (PDT) In-Reply-To: <34FC354B-1CA9-483A-8C37-C3D9FC231850@luminis.eu> References: <3B60BD3D-54E7-4372-B373-C116F6A77995@luminis.eu> <34FC354B-1CA9-483A-8C37-C3D9FC231850@luminis.eu> From: "Robert M. Mather" Date: Wed, 15 Apr 2015 03:40:52 -0700 Message-ID: Subject: Re: Some clarifications about ACE template config engine To: users@ace.apache.org Content-Type: multipart/alternative; boundary=001a11c13a10631d730513c0fc46 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c13a10631d730513c0fc46 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Apr 15, 2015 at 1:08 AM, Jan Willem Janssen < janwillem.janssen@luminis.eu> wrote: > Hi Robert, > > > On 14 Apr 2015, at 19:28, Robert M. Mather > wrote: > > > >> > >> Ok, then I'm not sure how to explain the issue I'm having. The client > > side error log is the same for all the bundles I've tried: > > > >> 2015-04-14 10:13:10 | ERROR | ACE Agent Controller | 1 - Installation = of > > deployment update failed: Error while processing resource > > > 'com.patronpath.ring.channel.pubnub.PubnubChannel.Config_ring-ace-agent-t= est_30.0.0.xml' > > (463)! > > org.osgi.service.deploymentadmin.spi.ResourceProcessorException: No > Object > > Class Definition found with > > id=3Dcom.patronpath.ring.channel.pubnub.PubnubChannel > > at > > > org.apache.felix.deployment.rp.autoconf.AutoConfResourceProcessor.process= (AutoConfResourceProcessor.java:174) > > [=E2=80=A6] > > The Object Class Definition is in the OSGI-INF/metatype directory and i= s > > being generated by bnd: > > > > > > http://www.osgi.org/xmlns/metatype/v1.1.0" > > localization=3D"com.patronpath.ring.channel.pubnub.PubnubChannel$Config= "> > > > > > id=3D"com.patronpath.ring.channel.pubnub.PubnubChannel"> > > > required=3D"true" type=3D"String"/> > > > required=3D"true" type=3D"String"/> > > > cardinality=3D"0" required=3D"true" type=3D"String"/> > > > cardinality=3D"0" required=3D"true" default=3D"3" type=3D"Integer" > description=3D"How > > often the Pubnub presence info should be updated."/> > > > cardinality=3D"0" required=3D"true" default=3D"3" type=3D"Integer"/> > > > cardinality=3D"0" required=3D"true" default=3D"false" type=3D"Boolean"/= > > > > > > > > > > > > > > > > > The OCD id is correct and I know it's getting picked up by the metatype > > service because I can see the correct entry in the configuration tab of > the > > webconsole, and I'm able to load configuration to it via fileinstall. > This > > makes it seem as though there is something wrong with the autoconf > resource > > processor preventing it from finding the OCD. Finally, here is the > > definition I'm giving to ACE for interpolation: > > > > > > http://www.osgi.org/xmlns/metatype/v1.1.0 > > " > > localization=3D"com.patronpath.ring.channel.pubnub.PubnubChannel$Config= "> > > > bundle=3D"osgi-dp:com.patronpath.ring.channel.pubnub"> > > > > > > content=3D"${context.pubnubPublishKey}" /> > > > content=3D"${context.pubnubSubscribeKey}" /> > > > content=3D"${context.heartbeatIntervalSeconds}" /> > > > content=3D"${context.reconnectIntervalSeconds}" /> > > > content=3D"${context.retreiveMissedMessages}" /> > > > > > > > > Ok, you want to provide the MetaType definition from a bundle while it is > being > installed through DeploymentAdmin. For this to work, you need the MetaTyp= e > service as well, is this deployed as well (or already present) at the > target? > > The MetaType service is an optional requirement for the AutoConf resource > processor (if all MetaType definitions contain both a designate and OCD i= t > does > not use/need the MetaType service itself). > > > Is there some sort of security or permissions context I'm unaware of th= at > > would prevent the resource processor from seeing the OCD from the bundl= e? > > I'm using the latest binary distribution of ACE and > > the org.apache.felix.deployment.rp.autoconf-0.1.5.jar that comes with > it. A > > possibility I've been asking about on the bndtools group is whether the > > empty generated by bnd next to the might interfere wi= th > > the I'm supplying via ACE, but I'd expect a different sort = of > > error if that were the case. Also, it's not straightforward to prevent > bnd > > from generating the empty , so I'm hoping to explore other > > possibilities first. > > I think your problem is because the MetaType service is not available on > your > target. Can you confirm this? > > Yes, the Felix Metatype service version 1.0.10 was deployed. I'm seeing now that that version implements metatype spec 1.2, while the xml version I'm using specifies 1.1, so I'll try downgrading to 1.0.4 and let you know what happens. Thanks for your help! Robert > -- > Met vriendelijke groeten | Kind regards > > Jan Willem Janssen | Software Architect > +31 631 765 814 > > My world is revolving around INAETICS and Amdatu > > Luminis Technologies B.V. > Churchillplein 1 > 7314 BZ Apeldoorn > +31 88 586 46 00 > > http://www.luminis-technologies.com > http://www.luminis.eu > > KvK (CoC) 09 16 28 93 > BTW (VAT) NL8169.78.566.B.01 > > --001a11c13a10631d730513c0fc46--