problem about bnd-Collection of common programming errors
palacsint
java osgi classloader apache-felix bnd
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 says that the class cannot be found (ClassNotFoundException) and the connection cannot be created. But when I do something like that (try-catch is omitted):com.mysql.jdbc.Driver d = new com.mysql.jdbcDriver Class.forName(“com.mysql.jdbc.Driver”);Then ev
Boomah
java osgi apache-felix bnd
In my osgi application I have three bundles, travel.api, table.api and utils. travel.api depends on table.api which depends on utils. Note that travel.api doesn’t directly depend on utils. I use aQute Bnd to generate the manifests and I believe it is working fine. The manifests are displayed below.There is a class called PageData that has a field of type TableData, which in turn has a field of type TestObject. PageData is located in travel.api, TableData is located in table.api and TestObject is
Saket
ant osgi apache-felix bnd
I have an OSGi bundle that is built using ANT and the classic BND tool. My bundle uses a library (JAR) internally, which is not available as a bundle within my OSGi container (Apache Felix). So, I am trying to embed it within my bundle, for access at runtime. How can I embed such a library/JAR using ANT+BND? (Note : I cannot use MAVEN, using which this could have been a lot easier)
user1202394
java import osgi bundle bnd
I inherited a .bnd file that has the import !javax., and my program produces runtime errors if I take out that statement. I currently need to add JavaHelp to my application, which is under javax.help.. When I have both of those imports in my .bnd and I use a class from JavaHelp, it produces a ClassNotFoundException for the specific class, like javax.help.JHelp. Is there a way to handle this situation, I feel stuck.
kiki
bnd maven-bundle-plugin
In a POM parent I’m defining all common rules to build a bundle. In the Embed-Dependency instruction I would like to write :<Embed-Dependency>*;scope=compile|runtime;artifactId=!my-api;type=!bundle</Embed-Dependency>”Embed all dependencies having scope compile or runtime except my-api artifact and bundle typed dependencies.”It works for scope and artifactId constraints but type!=bundle doesn’t seem to work.All this to avoid having to specify the provided scope to bundle dependencies
Emil Lundberg
osgi gradle bnd
I’m building an OSGi jar using Gradle, and I’m having a bit of trouble with the manifest. Here’s an excerpt from my build script:apply plugin: ‘java’ apply plugin: ‘osgi’jar {baseName = ‘awesome’manifest {name = ‘An Awesome Application’symbolicName = ‘com.example.awesome’ // instruction ‘Import-Package’, ‘org.springframework.orm’} }Using the above, Gradle detects my dependencies and adds an Import-Package with all my compile-time dependencies. But say my application has a runtime dependen
Web site is in building