Questions tagged [bnd]

BND is a Java tool for automated building bundles for an OSGi environment.

196 questions
6
votes
3 answers

OSGi JAX-RS and bnd declarative service

I want to migrate my EE application to OSGi. my application consist of business libraries, database JPA/Entities and a REST/WS interfaces. it also has a web client. I start by prototyping the structure and making all the interfaces and bundles…
Gadi
  • 1,539
  • 22
  • 37
4
votes
2 answers

Spring OSGI service reference interfaces must be explicitly imported by consuming bundle?

I'm getting acquainted with Spring OSGI and Blueprint, but am having "classpath" difficulties (like many newbies). I have two OSGI bundles - one that defines various beans (using Blueprint, not that it should matter) and exports them as services;…
RubyTuesdayDONO
  • 2,350
  • 2
  • 25
  • 37
4
votes
1 answer

Override Require-Capability in Maven-Bundle-Plugin

My question is similar to this one but I am using the Maven bundle plugin to achieve the same end result. I am building a bundle that contains a persistence.xml file and I have found that the maven-bundle-plugin automatically generates the following…
D-Dᴙum
  • 7,689
  • 8
  • 58
  • 97
4
votes
0 answers

p2-maven-plugin -- bundle conflicts with other existing bundle

I’m starting to use the p2-maven-plugin in order to integrate non-OSGi JARs into our project in a (hopefully) convenient manner. I have an artifact which I want to OSGi-ify, called com.thirdparty.artifact. I’m current using p2-maven-plugin’s…
qqilihq
  • 10,794
  • 7
  • 48
  • 89
4
votes
2 answers

How to use bnd directives from maven-bundle-plugin?

How can I use bnd directives instruction from maven-bundle-plugin? bnd directives are starting with a '-' character, and this is an invalid xml tag: <-foo>bar I have checked the official page for maven-bundle-plugin, and they said that it…
ceilfors
  • 2,617
  • 23
  • 33
4
votes
1 answer

Transitive dependencies in OSGi

I'm getting a NoClassDefFoundError at runtime and I thought the "uses" directive would avoid this because I thought it created transitivity (correct me if I'm wrong). Here is my configuration: Bundle 1 Export-package A Bundle 2 Export-package…
Hilikus
  • 9,954
  • 14
  • 65
  • 118
4
votes
2 answers

WebLogic and OSGi

Is there a way to run an OSGi container in the Weblogic Application Server? I know that it works with JBoss, Glassfish and there are possibilities to add an Equinox servlet bridge to your OSGi project (implementation of the bridge is too old). But I…
christian.vogel
  • 2,117
  • 18
  • 22
3
votes
1 answer

how to add Service-Component header to the bundle manifest file in OSGI declarative services?

I am using OSGI declarative services(SCR) to create a component bundle . I am not keen on using the annotation based component xml files generated by maven-scr-plugin . I am writing the component.xml by hand . But, i need the Service-Component…
sanre6
  • 797
  • 2
  • 11
  • 28
3
votes
2 answers

OSGi Felix and BndTools - Load class by name

In my OSGi environment I am trying to preload a database driver for further usage. Normally, this can be done like that: Class.forName("com.mysql.jdbc.Driver"); After that, a connection can be created. However, if I use that in OSGi under Felix, he…
Nico Schertler
  • 32,049
  • 4
  • 39
  • 70
3
votes
3 answers

BND Ant task - wrap non-OSGi jars

I'm trying to use Ant bndwrap task to wrap non-OSGi jars in a directory. My current Ant configuration for this is:
vdjurovic
  • 178
  • 2
  • 13
3
votes
2 answers

BND puts the same package to both export and import sections of manifest.mf

I have a Vaadin application, which I'm trying to build as a set of OSGI bundles using Maven + BND. I can't deploy the bundles To Apache Felix because some dependencies can't be resolved. Apache Felix complains that can't find package XYZ required…
Alex
  • 2,589
  • 3
  • 35
  • 44
3
votes
1 answer

Implementation of Jakarta XML Binding-API not found?

My context : BND (bndtools with Eclipse IDE) ; OSGI (-runfw: org.eclipse.osgi;version='[3.16.100.v20201030-1916,3.16.200.v20210226-1447]') ; runee: JavaSE-1.8 in bnd.launch file : -runbundles: \ …
Lbro
  • 309
  • 2
  • 16
3
votes
2 answers

Gradle compileJava Task keeps failing

alright i've been hiting my head against the wall for quite sometime now, and now i dont even know what to search for to find a solution, here are my files build.gradle //Applying the Gradle BND Plugin for Workspace Builds …
3
votes
1 answer

ClassCastException when using log4j in app embedding osgi felix while bundles use log4j

I have a java application which embeds felix osgi container. The java application uses log4j 2.8.2. One of my osgi implementation bundles also use log4j. Because of this i added the jars log4j-api-2.8.2 and log4j-core-2.8.2 to the osgi system…
Okwan Tegls
  • 133
  • 1
  • 9
3
votes
1 answer

Unable to add test dependencies from Maven repository in Bndtools

In a Bndtools workspace, I would like to add dependencies to JUnit and Mockito in a certain project Therefore the project's bnd.bnd file contains this -testpath instruction: -testpath: \ junit:junit;version=latest,\ …
Rüdiger Herrmann
  • 20,512
  • 11
  • 62
  • 79
1
2
3
13 14