Questions tagged [knopflerfish]

an easy to use open source certified implementation of the OSGi R4 v4.2 core framework specification, as well as related build tools and applications

http://www.knopflerfish.org/index.html - Main page of a project

36 questions
38
votes
1 answer

Full Android support for OSGi bundles

This topic explains how you can transform an OSGI framework to run on android. Then it gives tips to convert android packages as OSGI bundles capable of calling android API. At the current stage, the only thing these Android OSGI bundles cannot do…
slash33
  • 899
  • 1
  • 11
  • 17
5
votes
1 answer

which one is called first Activate function or bind function in SCR Runtime

I was confused with the order that which function Activate function or bind function gets called when component become active. In my opinion activate function function will be called first as Bind function is for binding the service. But as we know…
3
votes
1 answer

How can an Android Activity use a Knopflerfish OSGi Bundle installed on the device

I have installed Knopflerfish on an Android emulator using this tutorial: http://www.knopflerfish.org/releases/current/docs/android_dalvik_tutorial.html The installation on the emulator is ok, and now I would like to call an OSGi bundle running on…
Fret
  • 51
  • 2
2
votes
2 answers

NoClassDefFoundError: com/sun/xml/internal/bind/DatatypeConverterImpl using knopfletfish

I am new to ogsi and when I run the bundle in the knopfletfish framework, I obtain this error: Exception in thread "Thread-17" [stderr] java.lang.NoClassDefFoundError: com/sun/xml/internal/bind/DatatypeConverterImpl [stderr] at…
Andoni Da Silva
  • 1,161
  • 15
  • 31
2
votes
1 answer

Embedding Knopflerfish in Android doesn't work

I am trying to embed the Knopflerfish framework into an android application to load and unload bundles dynamically. I followed this tutorial The first step I did is to download framework.jar frome this link, and to add it to my class path in my…
Traveling Salesman
  • 2,209
  • 11
  • 46
  • 83
2
votes
1 answer

Webservice, Axis & OSGI (knopflerfish)

I first warn you because I'm a beginner. So, I don't know if I'll be specific on all points. Here is my problem: I have a wsdl file. Currently, I use Tomcat and Axis to deploy it. So for that, I use the wsdl2java tool of axis that generates me the…
baonounet
  • 43
  • 3
1
vote
1 answer

OSGI: How to find out what bundles are subscribed to a specific property defined on my service reference dictionary?

When I register a ServiceReference I define the topics of the OSGi Events I'm publishing in a Dictionary class, like the context method definition says: registerService(Class, service, Dictionary) My Dictionary definition is:…
user2256799
  • 229
  • 1
  • 3
  • 10
1
vote
2 answers

OSGi: How to find out what bundles are using a services I'm exporting?

I'm trying to get a list of bundles that are either importing a service my bundle is exporting (I can't find a way to get other bundles manifest) or to get a list of bundles subscribed to the services my bundle is publishing. So far I'm trying to…
user2256799
  • 229
  • 1
  • 3
  • 10
1
vote
1 answer

OSGi Initial Provisioning Implementation

I'm looking for an implementation of the Initial Provisioning section of the Compendium specification. I see that Apache Felix doesn't provide one. Knopflerfish provides one with the Pro version. I see that Equinox provides one implementation but…
manash
  • 6,985
  • 12
  • 65
  • 125
1
vote
1 answer

Knopflerfish packaging

I am at the moment creating a matrix which is showing how far Knopflerfish, Equinox and Felix are OSGi 4.2 compliant. So far I looked at the Knopflerfish documentation (Link 1, Link 2) to get an idea of how much of the Core and Compendium specs are…
Jens
  • 20,533
  • 11
  • 60
  • 86
1
vote
1 answer

Pax Web on Knopflerfish on Android

I'm planning to start OSGi on Android with Web Services, wherein I will be able to run Java Server Pages (jsp) and Java Servlets on Android Browser. My initial step was installing Knopflerfish on Android. I have followed this tutorial from…
Nyahaha Wakoko
  • 51
  • 1
  • 1
  • 8
1
vote
1 answer

How to handle the URL protocol bundle://

I try to get a file in my bundle with: File file = new File(bundleContext.getBundle(). getResource("image/logo.jpg").toURI()); The result is a IllegalArgumentException with the cause "URI scheme is not "file". This is logical, but how should i open…
nik the lion
  • 458
  • 1
  • 9
  • 22
1
vote
1 answer

osgi import-package cannot reach inner classes

I have one bundle B1 using another bundle B2 and bundle B2 exports following packages: package a.b.c package a.b.d The problem here is in B1 I need to use some inner classes in package a.b.c, lets say: a.b.c.d.e But in that case eclipse throws…
anvarik
  • 6,417
  • 5
  • 39
  • 53
1
vote
2 answers

Knopflerfish, use external library in bundle

I know there are two ways of using external libraries in OSGI bundles. As only my package needs the lib (e.g. google-gson) I tried to put it in the Bundle-ClassPath (manifest.mf). But whenever I run the bundle in Knopflerfish I get the Exception in…
nyyrikki
  • 1,436
  • 1
  • 21
  • 32
1
vote
1 answer

Boot Class Path extension support for OSGi kf framework

Is Boot Class Path extension supported in kf framework? If it is supported, how can I configure to set the property to always be true? I've tried setting org.osgi.supports.bootclasspath.extension property to true but to no avail. From the…
1
2 3