I am afraid that org.osgi.service.jdbc is requires by h2:
karaf@root()> bundle:install mvn:com.h2database/h2/1.3.174
Bundle ID: 79
karaf@root()> bundle:headers 79
H2 Database Engine (79)
-----------------------
...
Implementation-Version = 1.3.174
Import-Package =
...
org.osgi.service.jdbc;version=1.0,
...
I will switch to pax-jdbc-h2:
karaf@root()> feature:repo-add
mvn:org.ops4j.pax.jdbc/pax-jdbc-features/0.4.0/xml/features
karaf@root()> feature:install pax-jdbc-h2
karaf@root()> la | grep -i h2
95 | Active | 80 | 0.4.0 | OPS4J Pax JDBC Apache H2
Driver Adapter
Thank you for your help
Richard
Am 09.01.2015 um 14:28 schrieb Achim Nierbeck:
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
<[email protected] <mailto:[email protected]>>:
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
<[email protected] <mailto:[email protected]>
<mailto:rhierlmeier@__googlemail.com
<mailto:[email protected]>>>:
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 <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/__display/paxweb/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 Karaf <http://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