Return-Path: X-Original-To: apmail-karaf-user-archive@minotaur.apache.org Delivered-To: apmail-karaf-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E9D38C7B6 for ; Fri, 9 Jan 2015 13:29:28 +0000 (UTC) Received: (qmail 62984 invoked by uid 500); 9 Jan 2015 13:29:25 -0000 Delivered-To: apmail-karaf-user-archive@karaf.apache.org Received: (qmail 62927 invoked by uid 500); 9 Jan 2015 13:29:25 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 62917 invoked by uid 99); 9 Jan 2015 13:29:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jan 2015 13:29:25 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URIBL_DBL_ABUSE_REDIR X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bcanhome@googlemail.com designates 209.85.215.48 as permitted sender) Received: from [209.85.215.48] (HELO mail-la0-f48.google.com) (209.85.215.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jan 2015 13:29:00 +0000 Received: by mail-la0-f48.google.com with SMTP id gf13so14373222lab.7 for ; Fri, 09 Jan 2015 05:28:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ntZ1kBQiDrDId+SXkU3LDxOu9RHjxiaqrrtPRZ1BLpk=; b=ZbOB2vUkiCBsBuUtzIFpt+PRMG6bXUuA3mB22dCyNBe/VuOHYkrOjHxNthQGpA1js+ s+Alcny2e4r8w8K4s2wWb50xTeWY3sQZjA+l/15dUwZZZhj+b3+L+LDPCLSQM6/CINKZ kfwAcZI/kVjQxymJ2Uzx2U8o4+uC/mxE7ufX6iYLIbjl7uALuBd17iTxq/G2u0W0AfSA r7cNR+TuIOzJ64Vce7szj+vIQsfTy8evHUDRh2T+dnkuZj0V+vrz622MNKeaSB1Eu0Un YUWlpgFo5/PHmHZmhVeyw1exhiAsKfmJu/LISZ4OF6EhZVv1+rZt3K4TI9UDYDsKbrgk 2ncQ== MIME-Version: 1.0 X-Received: by 10.112.62.194 with SMTP id a2mr21400140lbs.73.1420810093742; Fri, 09 Jan 2015 05:28:13 -0800 (PST) Received: by 10.112.5.196 with HTTP; Fri, 9 Jan 2015 05:28:13 -0800 (PST) In-Reply-To: <54AFD564.30103@gmail.com> References: <54AFBFA9.70501@gmail.com> <54AFD564.30103@gmail.com> Date: Fri, 9 Jan 2015 14:28:13 +0100 Message-ID: Subject: Re: bundle:list command not found after restart of karaf From: Achim Nierbeck To: "user@karaf.apache.org" Content-Type: multipart/alternative; boundary=001a11c3c46eee51fb050c382053 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c3c46eee51fb050c382053 Content-Type: text/plain; charset=UTF-8 Most likely it doesn't contain an extender, just the API of it. Regarding H2 importing the osgi.jdbc package, I would guess this is an optional dependency and usually doesn't need to be fullfilled. If you want to use a org.osgi.jdbc you might be interested in using Pax JDBC. Or you might just want to use the jdbc feature of Karaf itself. never the less I'd start just with h2 only, no extra dependency, this should be alright. regards, Achim 2015-01-09 14:19 GMT+01:00 Richard Hierlmeier : > > I am running karaf 3.0.1. > > I found the problem, my feature needs > mvn:com.h2database/h2/1.3.174 > > h2 imports package org.osgi.service.jdbc version>=1.0.0 which is provided > by > mvn:org.osgi/org.osgi.compendium/5.0.0 > > Hence my feature has org.osgi.compendium as dependency. > It seems that this bundle contains an blue print extender. > > What is the recommended way for karaf 3 to get the package > org.osgi.service.jdbc? > > > > > Am 09.01.2015 um 13:34 schrieb Achim Nierbeck: > >> Take a look at your feature definition (the xml file). >> You might find some blueprint bundles there, or maybe a reference to >> another feature-repository (definition file). >> Maybe you are referencing the gemini blueprint implementation. >> Those two can not co-exist unless you work with regions (karaf 2.4 and >> higher) >> >> regards, Achim >> >> >> 2015-01-09 12:46 GMT+01:00 Richard Hierlmeier >> >: >> >> >> I can deploy my own bundle into karaf. However after a restart karaf >> the bundle commands are no longer available. >> >> In the log files I found the following message: >> >> 2015-01-09 12:23:46,289 | INFO | FelixStartLevel | >> BlueprintExtender | 19 - >> org.apache.aries.blueprint.__core - 1.4.0 | Bundle >> org.apache.karaf.bundle.core is not compatible with this blueprint >> extender >> >> It seems that my feature brings its own blue print extender into the >> system. >> >> How can I find it out what bundle contains this incompatible blue >> print extender? >> >> Thank you in advance >> >> >> >> >> >> -- >> >> Apache Member >> Apache Karaf Committer & PMC >> OPS4J Pax Web Committer >> & Project Lead >> blog >> Co-Author of Apache Karaf Cookbook >> >> Software Architect / Project Manager / Scrum Master >> >> -- Apache Member Apache Karaf Committer & PMC OPS4J Pax Web Committer & Project Lead blog Co-Author of Apache Karaf Cookbook Software Architect / Project Manager / Scrum Master --001a11c3c46eee51fb050c382053 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Most likely it doesn't contain an extender, just the A= PI of it.=C2=A0
Regarding H2 importing the osgi.jdbc package, I would g= uess this is an optional dependency and usually doesn't need to be full= filled.=C2=A0
If you want to use a org.osgi.jdbc you might be int= erested in using Pax JDBC.=C2=A0
Or you might just want to use th= e jdbc feature of Karaf itself.=C2=A0

never the le= ss I'd start just with h2 only, no extra dependency, this should be alr= ight.=C2=A0
=C2=A0
regards, Achim=C2=A0

<= /div>

2015-0= 1-09 14:19 GMT+01:00 Richard Hierlmeier <rhierlmeier@googlemail.c= om>:

I am running karaf 3.0.1.

I found the problem, my feature needs
=C2=A0 mvn:com.h2database/h2/1.3.174

h2 imports package org.osgi.service.jdbc version>=3D1.0.0 which is provi= ded by
=C2=A0 mvn:org.osgi/org.osgi.compendium/5.0.0

Hence my feature has org.osgi.compendium as dependency.
It seems that this bundle contains an blue print extender.

What is the recommended way for karaf 3 to get the package org.osgi.service= .jdbc?




Am 09.01.2015 um 13:34 schrieb Achim Nierbeck:
Take a look at your feature definition (the xml file).
You might find some blueprint bundles there, or maybe a reference to
another feature-repository (definition file).
Maybe you are referencing the gemini blueprint implementation.
Those two can not co-exist unless you work with regions (karaf 2.4 and
higher)

regards, Achim


2015-01-09 12:46 GMT+01:00 Richard Hierlmeier
<rhierlm= eier@googlemail.com <mailto:rhierlmeier@googlemail.com>>:


=C2=A0 =C2=A0 I can deploy my own bundle into karaf. However after a restar= t karaf
=C2=A0 =C2=A0 the bundle commands are no longer available.

=C2=A0 =C2=A0 In the log files I found the following message:

=C2=A0 =C2=A0 2015-01-09 12:23:46,289 | INFO=C2=A0 | FelixStartLevel=C2=A0 = |
=C2=A0 =C2=A0 BlueprintExtender=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0| 19 -
=C2=A0 =C2=A0 org.apache.aries.blueprint.__core - 1.4.0 | Bundle
=C2=A0 =C2=A0 org.apache.karaf.bundle.core is not compatible with this blue= print
=C2=A0 =C2=A0 extender

=C2=A0 =C2=A0 It seems that my feature brings its own blue print extender i= nto the
=C2=A0 =C2=A0 system.

=C2=A0 =C2=A0 How can I find it out what bundle contains this incompatible = blue
=C2=A0 =C2=A0 print extender?

=C2=A0 =C2=A0 Thank you in advance





--

Apache Member
Apache Karaf <htt= p://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/= > Committer
& Project Lead
blog <http:/= /notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master




--

Apache Member
Apache Kara= f <http://karaf.a= pache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.op= s4j.org/display/paxweb/Pax+Web/> Committer & Project Lead
blo= g <http://no= tizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS&= gt;

Software Architect / Project Manager / Scrum M= aster=C2=A0

--001a11c3c46eee51fb050c382053--