Hello,
I had this problem with iPOJO in the previous version. It is a
modularity (i.e. import / export packages) problem. For me, it was when
my bundle imports and exports a package who is exported by the
compendium too. But my bundle does not specify the version number of the
imported and exported bundle.
Try the same scenario, but begin by installing the compendium. If it
works, check the imported and exported package from the fileInstall bundle.
Regards,
Clement Escoffier
Toni Menzel a écrit :
Hi,
I just tried to install the "fileinstall" bundle from aqute.
For that I need org.osgi.util.tracker.
The only bundle I found in the felix-trunk is osgi-compendium.
(found the necessary bundle with grep -R
"Export-Package.*org.osgi.util.tracker" * .. there must be a better..???)
Trying to install that bundle, it results into a constraint violation
exception.
here is what I've done:
-> install http://www.aqute.biz/uploads/Code/aQute.fileinstall-1.0.jar
-> ps
START LEVEL 1
ID State Level Name
[ 0] [Active ] [ 0] System Bundle (0.8.0.SNAPSHOT)
[ 1] [Active ] [ 1] ShellService (0.8.0.SNAPSHOT)
[ 2] [Active ] [ 1] ShellTUI (0.8.0.SNAPSHOT)
[ 3] [Active ] [ 1] BundleRepository (0.8.0.SNAPSHOT)
[ 4] [Active ] [ 1] HTTP Service (0.8.0.SNAPSHOT)
[ 5] [Installed ] [ 1] aQute.fileinstall (1.0)
-> start 5
org.osgi.framework.BundleException: Unresolved package in bundle 5:
org.osgi.util.tracker [version=1.3.0]
-> install
file:////Users/tmenzel/devel/felix/felix/trunk/org.osgi.compendium/target/org.osgi.compendium-0.8.0-SNAPSHOT.jar
-> start 6
DEBUG: Constraint violation detected, will try to repair.
org.osgi.framework.BundleException: Unable to resolve due to
constraint violation.
Where is the constraint violation and how do I get that information ??
Kind regards,
Toni