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
0
votes
1 answer

Add external jar for bundle in KnopFlerFish

I'm trying build and run a bundle with external jar (tinyos.jar) dependy using knopflerfish. In the compile time, there aren't problems... but in run time... org.osgi.framework.BundleException: Unable to resolve bundle: missing package(s) or…
joao
  • 97
  • 1
  • 10
0
votes
1 answer

Any way to make a bundle required with Knoplerfish?

Is there any way to abort the startup of Knoplerfish if a specific bundle fails to initialize? By default, a FrameworkErrorEvent is printed to the console and the framework continues to load. init.xargs -initlevel 80 -istart…
Brian
  • 2,375
  • 4
  • 24
  • 35
0
votes
3 answers

Signed jar tamper verification

I have a webserver that serves OSGI bundles as self-signed jar files. These are downloaded and installed using the OSGI API on my devices. I have enabled security in knopflerfish OSGI and pointed it to a keystore with my public key. I want to verify…
karlsvan
  • 11
  • 5
0
votes
1 answer

JSONObjects not working with osgi registration, not as function argument, neaither as return

I'm working with a knopflerfish environment where I am trying to use functions from a remote object using ServiceRegistration. I will explain as an example. I have created two bundles, A and B. Bundle B has a class C where I have implemented two…
xian
  • 3
  • 2
0
votes
1 answer

Does Knopflerfish OSGi desktop require a connection to www.knopflerfish.org?

I'm trying a tutorial for OSGi that uses the knopflerfish desktop. Today, it hangs when I try to open a local .jar file to install it as a new bundle. It spits out a message on the console [stderr] Error when connecting to…
Kevin Beck
  • 2,394
  • 2
  • 15
  • 27
0
votes
2 answers

OSGi: How to detect when a bundle registers to a new service

I would like to know when a bundle in the environment registers a service using context.registerService(...). Is there a listener like FrameworkEvent.STARTED or something? Thanks.
user2256799
  • 229
  • 1
  • 3
  • 10
0
votes
1 answer

OSGI knopflerfish missing packages or can not resolve oll oof them

I have a bundle with some jars dependencies but I do not know why, when I run this bundle, it can not resolve the packages from slf4j.jar. This is the error showed by knopflerfish: WARNING: Prefs file removed in background…
Andoni Da Silva
  • 1,161
  • 15
  • 31
0
votes
1 answer

Is it necessary to remove service references in OSGi?

I am using the OSGi framework Knopflerfish, since I can now call the bundle to do something by register a service, do I need to remove the service? Because I cannot find any way to remove the service. By checking the services in BundleContext with…
dicky.lee
  • 86
  • 1
  • 6
0
votes
0 answers

Application deployment using Server-Side Knopflerfish

I have written a simple web application in java. There is a button in the index.jsp page when clicked, a method from a jar file called which print something. The index.jsp is like this:
Ali
  • 11
  • 1
0
votes
1 answer

OSGI container identification Equinox / knopflerfish and relation ship between equinox osgi jar and core osgi jar

Question 1:- I am working on a project which heavily uses OSGI. I am a newbee to OSGI. In my project I see JARS for both equinox and knopflerfish / and or knopflerfish bundles. Question2:- How do I determine among Equinox and Knoplerfish, which…
user2166888
  • 579
  • 1
  • 5
  • 13
0
votes
2 answers

Java Socket fails to transmit data over the network

I'm experiencing a bizarre problem with sockets between a Java Knopflerfish client bundle and a PHP (CLI, not web) server. The client/server pair work fine when both are located on the localhost, and all data is transmitted successfully. However,…
0
votes
1 answer

How to correctly use BundleSignerCondition and manage keys to make a secure OSGI environment based on bundles signature?

So here is my problem : I'm trying to create a secure OSGI (knopflerfish 5.0.0) environment based on bundles signatures. I have an admin bundle that uses the Conditional Permission Admin service and update the policy table with a policy file.…
0
votes
3 answers

OSGI Bundle Lazy Activation

I am really new on this one (OSGI), trying to do simple examples. I cant make lazy actication work. I know there a few Blueprint impl out there to resolve such issues, but before proceeding with one, I thought it would be good to learn a few…
user1934537
  • 49
  • 1
  • 5
0
votes
1 answer

Knoflerfish in Android - Bundle start failed

I follow this tutorial to embed OSGi into my Android application. However, after installing and starting a bundle, its state became RESOLVED (4), not ACTIVE (32) as it must be. When I try to start once again, it throws an exception: Bundle#1 start…
ndquangr
  • 465
  • 3
  • 9
0
votes
1 answer

Starting a Bundle on Knopflerfish embedded into Android doesn't work

I am embedding Knopflerfish framework into an android application to start and stop bundles dynamically. I followed this tutorial, downloaded framework.jar frome this link, and added it to my class path in my eclipse project. Additionally, below is…
Traveling Salesman
  • 2,209
  • 11
  • 46
  • 83