BND is a Java tool for automated building bundles for an OSGi environment.
Questions tagged [bnd]
196 questions
3
votes
1 answer
Can I use version qualifiers to require specific package versions in OSGi?
I have a third party JAR I wish to wrap - it does not have its own OSGi manifest. For example, org.myproject. So I create a bundle wrapper.
This works fine - I provide the version for the release of org.myproject. This is dictated by the authors of…

Dan Gravell
- 7,855
- 7
- 41
- 64
3
votes
1 answer
Restlet bundle in osgi (bndtools) fails to start. Activator error com/sun/net/httpserver/HttpHandler
I'm migrating to bndtools some osgi plugins that I had created and were working in the standard Eclipse environment. I've added the Felix Web Console, and Jetty HTTP Service, and swapped out some Equinox bundles with Felix equivalents.
When I run…

Ken Diederich
- 118
- 6
3
votes
1 answer
How to use org.apache.felix.scr annotations for a bundle from scratch?
I've started developing a bundle for apache felix and did so with the ops4j pax plugin.
I've created the project structure with pax-create-project and in there did the normal pax-create-bundle. Then you get the initial project structure for building…

Kjellski
- 925
- 10
- 24
2
votes
0 answers
Unable to resolve bundle, missing requirement JAX-RS
I'm trying to use JAX-RS in AEM (OSGi), but my bundle is not active because of missing requirement.
org.apache.aries.javax.jax.rs-api is installed as separate bundle and it's active
Cannot start (org.osgi.framework.BundleException: Unable to resolve…

mkovacek
- 310
- 2
- 15
2
votes
0 answers
Bound mismatch and Discouraged access after moving from java6 to java8
I have a very strange error after transfering a PDE project to bndtools and from java6 to java8. The structure is very complex but I'm sure it worked in the old version.
The error is in one of my classes where I try to initiate a new…

Philipp M
- 502
- 6
- 20
2
votes
0 answers
OSGi bnd gradle non-workspace demo or template
Looking for a non-workspace #OSGi #bnd #gradle project sample/demo/template.
Anyone can share some insight into how to get the setup working?
I am not using eclipse, just plain gradle/java.
ideally with Apache Felix
BND ver 4.x will be…

Gadi
- 1,539
- 22
- 37
2
votes
3 answers
Liferay - Using Third Party Library doesn't work
I'm new to Liferay. For my first project, I need to create a module which uses a third party library.
This library was developed by a university and is not used very often, so it's not on any maven repo or anything. Therefore I copied it into my…

EyedPeas
- 146
- 4
- 17
2
votes
1 answer
BndTools, How to add a non-OSGi JAR?
BndTools, How to add a non-OSGi JAR? I wanted to add jcraft Libraries into my osgi project. Using plain JAR breaks the whole project. Missing requirement wiring package
ERROR: Bundle com.herle.iiot.application.installation [6] Error starting…

Amrith Raj Herle
- 773
- 1
- 6
- 18
2
votes
2 answers
Running bnd-structured app in IDEA on MacOS: Unresolved requirement: Import-Package: com.apple.eawt
I'm trying to run Alloy (prkiens/markdown branch) from IntelliJ IDEA so I can use the IDEA debugger. This project uses a bnd workspace, which I've never dealt with before.
I'm running on macOS (High Sierra).
I loaded the project into IntelliJ by…

Lorin Hochstein
- 57,372
- 31
- 105
- 141
2
votes
2 answers
How to deal with dependencies with "provided" scope in OSGi
There are lots of tutorials, which shows how to cope with dependencies of the OSGi project and how should they be converted to the bundle. After more than one day research, I have still not found how to deal with the dependencies with provided…

Ad Infinitum
- 3,560
- 27
- 33
2
votes
2 answers
How to add all third party jars(resolvable) in my OSGi bundle jar using 'bnd-maven-plugin'?
I am developing OSGi application using 'bnd-maven-plugin'
https://github.com/bndtools/bnd/tree/master/maven/bnd-maven-plugin
I have many third party jars in my project, referenced through maven.
When I create jar bundle using 'maven install', I will…

Umesh Rajani
- 139
- 2
- 13
2
votes
2 answers
OSGi classloading: why does BND imports classes that are not referenced directly?
Bundle-A:
FooA.java
package com.foo.a;
import com.foo.b.FooB;
class FooA {
FooB b = new FooB();
}
Bundle-B:
FooB.java:
package com.foo.b;
import com.foo.c.FooC;
class FooB {
public FooC foo() {
...
}
}
Bundle-C:
...
So in…

mdzh
- 1,030
- 2
- 17
- 34
2
votes
1 answer
How to copy a resource directory and all included files and sub-folders in a Jar onto another directory
Is it possible to copy a resource folder, and all the files within, including all directories and sub directories therein into another directory?
What I've managed so far is to copy only one file resource, which is a CSS file:
public void addCSS()…

Program-Me-Rev
- 6,184
- 18
- 58
- 142
2
votes
2 answers
Feedback on Maven multi-module project setup with OSGi
I am getting in touch with OSGi and trying to setup a project using Apache Felix and Maven. I'd like to use a Multi-Module build and declarative services. The project is hosted on GitHub: osgi-maven-example (Note that the link points to a specific…

Thomas Eizinger
- 1,404
- 14
- 25
2
votes
2 answers
OSGi Bundle not starting with Felix Host application
I am using Apache Felix in a host application to provide the ability to load extensions at runtime. The mechanism works great but I have some very temperamental behaviour regarding the bundles starting if I include certain dependencies. If for…

tarka
- 5,289
- 10
- 51
- 75