Hi Tim,

If you want to use some of the eclipse equinox bundles (such as org.eclipse.equinox.coordinator), you are kind of bound to the equinox framework since they depend on the org.eclipse.osgi.util package that is provided by the equinox framework.

If you do want to run these on a different OSGi framework, try including the org.eclipse.equinox.supplement bundle, which is a small utility bundle that also exports this util package. The source code can be found at http://git.eclipse.org/c/equinox/rt.equinox.framework.git/tree/bundles/org.eclipse.osgi/supplement

We are fore example hosting a version of this bundle in the Ecipse Concierge repository (https://www.eclipse.org/concierge/repository/index.xml), which you can add to your BNDTools workspace. Make sure to add the supplement bundle to your run requirements before hitting resolve.

Best regards,

Tim

On 11/10/2016 10:32 AM, Tim Ward wrote:
So, I've gone through the enRoute tutorials, which worked fine, then tried writing some code of my own, which worked fine, then tried deploying it to Karaf, attempting to following the instructions in

http://enroute.osgi.org/appnotes/bndtools-and-karaf.html

and it doesn't work, and after several days nobody here can make any progress with understanding what's wrong or how to fix it.

As I'm new to this stuff I don't really know what information might enable people to help spot my problem, but I'll start with the karaf output below. I did the "resolve" on the debug.bndrun so why are there things that appear not to be resolved?

karaf@root()> list
START LEVEL 100 , List Threshold: 50
 ID | State     | Lvl | Version                | Name
----------------------------------------------------------------------------------------
 56 | Active    |  80 | 3.2.0.201605172008     | biz.aQute.remote.agent
137 | Active    |  80 | 1.0.1                  | Apache Felix Log Service
138 | Active | 80 | 1.0.0.201611091637 | com.telensa.apps.planet.pc.provider 139 | Installed | 80 | 1.0.0.201611091638 | com.telensa.apps.planet.ws.application
141 | Active    |  80 | 3.2.0                  | Apache Felix Http Jetty
142 | Active    |  80 | 1.1.2                  | Apache Felix Servlet API
143 | Active | 80 | 2.0.2 | Apache Felix Declarative Services
144 | Installed |  80 | 1.3.100.v20150410-1453 | Coordinator
145 | Installed |  80 | 1.3.100.v20140115-1647 | Event Admin
146 | Installed |  80 | 1.4.100.v20150408-1437 | Meta Type
147 | Active    |  80 | 9.3.8.v20160314        | Jetty :: Utilities
148 | Active | 80 | 9.3.8.v20160314 | Jetty :: Utilities :: Ajax(JSON) 149 | Active | 80 | 1.3.1.201505202024 | org.osgi:org.osgi.service.event 150 | Active | 80 | 1.3.0.201505202024 | org.osgi:org.osgi.service.metatype 151 | Installed | 80 | 2.0.0.201610141744 | osgi.enroute.configurer.simple.provider 152 | Active | 80 | 2.0.0.201610141744 | osgi.enroute.executor.simple.provider 153 | Active | 80 | 2.0.0.201610141744 | osgi.enroute.logger.simple.provider 154 | Active | 80 | 2.0.0.201610141745 | osgi.enroute.web.simple.provider
karaf@root()> diag
com.telensa.apps.planet.ws.application (139)
--------------------------------------------
Status: Installed
Unsatisfied Requirements:
[com.telensa.apps.planet.ws.application [139](R 139.0)] osgi.extender; (&(osgi.extender=osgi.enroute.configurer)(&(version>=1.0.0)(!(version>=2.0.0))))


Coordinator (144)
-----------------
Status: Installed
Unsatisfied Requirements:
[org.eclipse.equinox.coordinator [144](R 144.0)] osgi.wiring.package; (&(osgi.wiring.package=org.eclipse.osgi.util)(version>=1.1.0)(!(version>=2.0.0))) [org.eclipse.equinox.coordinator [144](R 144.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.coordinator)(version>=1.0.0)(!(version>=1.1.0)))


Event Admin (145)
-----------------
Status: Installed
Unsatisfied Requirements:
[org.eclipse.equinox.event [145](R 145.0)] osgi.wiring.package; (&(osgi.wiring.package=org.eclipse.osgi.framework.eventmgr)(version>=1.1.0)) [org.eclipse.equinox.event [145](R 145.0)] osgi.wiring.package; (&(osgi.wiring.package=org.eclipse.osgi.util)(version>=1.1.0))


Meta Type (146)
---------------
Status: Installed
Unsatisfied Requirements:
[org.eclipse.equinox.metatype [146](R 146.0)] osgi.wiring.package; (&(osgi.wiring.package=org.eclipse.osgi.util)(version>=1.1.0)(!(version>=2.0.0)))


osgi.enroute.configurer.simple.provider (151)
---------------------------------------------
Status: Installed
Unsatisfied Requirements:
[osgi.enroute.configurer.simple.provider [151](R 151.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.coordinator)(version>=1.0.0)(!(version>=2.0.0))) [osgi.enroute.configurer.simple.provider [151](R 151.0)] osgi.wiring.package; (&(osgi.wiring.package=osgi.enroute.configurer.api)(version>=1.0.0)(!(version>=1.1.0))) [osgi.enroute.configurer.simple.provider [151](R 151.0)] osgi.service; (objectClass=java.lang.Object) [osgi.enroute.configurer.simple.provider [151](R 151.0)] osgi.service; (objectClass=org.osgi.service.cm.ConfigurationAdmin) [osgi.enroute.configurer.simple.provider [151](R 151.0)] osgi.service; (objectClass=org.osgi.service.coordinator.Coordinator) [osgi.enroute.configurer.simple.provider [151](R 151.0)] osgi.service; (objectClass=org.osgi.service.log.LogService)


karaf@root()>




--
Tim Verbelen
Ghent University - imec
IDLab
iGent Tower - Department of Information Technology
Technologiepark-Zwijnaarde 15, B-9052 Ghent, Belgium
T: +32 9 33 14905 ; T Secr: +32 9 33 14900
E: tim.verbe...@intec.ugent.be
W: IDLab.UGent.be ; W: IDLab.technology

_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to