Questions tagged [osgi-fragment]
60 questions
0
votes
1 answer
How can I access an instance method/property of a Host from Test Bundle Fragment?
I have a bundle test.Bundle1 that have some properties fulfilled by Blueprint injections.
I've created one test fragment whose Host is test.Bundle1 and I would like to obtain myClassA instantiated singleton to access those properties.
I know that I…

Cristiano
- 1,414
- 15
- 22
0
votes
0 answers
Eclipse product is not detecting dropins plugins and not updating bundles.info
I have migrated my eclipse RCP product from eclipse 3.8 to eclipse 4.12. Whenever we add any additional plugin to plugins or dropins folder. It was reflected in bundles.info in eclipse 3.8. But in eclipse 4.12 it is not updating bundles.info file…

pvyas
- 41
- 5
0
votes
0 answers
Import package in OSGI fragment which is not specified in host bundle
I have to provide some UI customization of a bundle and for that i am using osgi fragment . Scenario is i want to include another bundle in my fragment module which has no reference in host bundle for example in fragment module i want to include…

Ali
- 557
- 1
- 9
- 30
0
votes
1 answer
How to set final static variable values in a component by reading the values from fragment?
I am just beginner in OSGi and we are still using version 4.
I have a OSGi component where one of the class has public static final (psf) variables.
What I would like to do, I want to use a fragment where it reads the values from properties file and…

Hari
- 441
- 6
- 15
0
votes
1 answer
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.jetty.plus
from Karaf cache log i have receive the following error multiple times when i'm deploy bundle in karaf
!ENTRY org.eclipse.jetty.jndi 4 0 2019-02-21 16:27:11.500
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not…

vijay
- 75
- 1
- 9
0
votes
1 answer
AspectJ LoadTimeWeaving on OSGI
I'm trying to use aspectJ Load Time Weaving (no Spring) on OSGI with help of equinox jars (org.aspectj.runtime, org.aspectj.weaver, org.eclipse.equinox.weaving.aspectj on bundles folder and org.eclipse.equinox.weaving.hook located at the same folder…

Shico Ren
- 17
- 6
0
votes
1 answer
Felix: unable to add extension bundle on JDK 9
Upon migration to JDK 9+, our OSGi container built around apache Felix started to fail installing an extension bundle. The error message is:
Caused by: org.osgi.framework.BundleException: Could not create bundle object.
at…

gjoranv
- 4,376
- 3
- 21
- 37
0
votes
1 answer
OSGI: Using code in another bundle from a fragment
I want to add an OSGI fragment to a bundle, here to "org.eclipse.equinox.http.jetty", with a Manifest.mf like this:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: JettyCustomize
Bundle-SymbolicName:…

Matthias Boehm
- 85
- 1
- 6
0
votes
2 answers
OSGi fragments: Patching bugs in Eclipse plug-ins
After hearing about OSGi fragments, I was wondering:
Can I use a fragment to inject a patch, that is, replace an existing class in an existing, signed bundle?
Is there documentation how to do that?

Aaron Digulla
- 321,842
- 108
- 597
- 820
0
votes
1 answer
Registering services inside OSGi extension bundles
I'm playing with OSGi framework extension bundles in order to fully understand them.
After looking at the OSGi R6 specification (3.15 and 4.2.4.1) I've sucessfully invoked the "start" method of the ExtensionBundleActivator. Now I'm trying to…

Koldar
- 1,317
- 15
- 35
0
votes
1 answer
Apache tomcat catalina springsource bundle is not RESOLVED on equinox OSGi container
I have a java application in which I start Equinox OSGi container (version 3.10.1.v20140909-1633) and load apache catalina springsource bundle com.springsource.org.apache.catalina.springsource_6.0.20.S2-r5956 and other dependent bundles.
Following…

Raghavendra Nilekani
- 396
- 2
- 10
- 22
0
votes
1 answer
JPA in OSGi - Single schema, but entities in multiple bundles
Given a single db schema and two (or more) bundles.
Question: is it possible to have JPA entities (for the single schema) distributed across bundles?
(I was initially thinking about fragment bundles, but want to know if
there are other…

mhshams
- 16,384
- 17
- 55
- 65
0
votes
1 answer
Is there a way to prioritize fragment dependencies?
Is there a way to prioritize fragment dependencies? I have the case that one of the maven plugins that is used at compile time does not use the hierarchical OSGi Classloading, but instead uses a "flat" classpath. Now there is a version conflict…

kutschkem
- 7,826
- 3
- 21
- 56
0
votes
1 answer
What is the alternative to PackageAdmin.getFragments
With OSGi 4.3, I understand PackageAdmin has been deprecated. How do you then find the fragments for a specific bundle - i.e. what is the alternative to PackageAdmin.getFragments(Bundle bundle)?

Tonny Madsen
- 12,628
- 4
- 31
- 70
0
votes
1 answer
Use Spring-DM Extender
I need to wait some time before shut down my OSGI context.( Give some time to finish the tasks that are currently running). I came across with shutdown.wait.time property in the extenderProperties bean.
Can anyone please let me know how can I use…

Sam
- 2,055
- 6
- 31
- 48