sandeep kamath

Greenhorn
+ Follow
since Aug 21, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sandeep kamath

Hi All,

I have a non OSGI library file which has an API(method) which takes className as input & it tries to load the class using Class.forName.
This works fine in java. But i have created a bundle from the jar using maven plugin. i.e, I have added OSGI nature to it.

I have say 3 projects
1. My OSGI bundle - "BundleA".
2. NON osgi Library project "LibB". - converted to OSGI using BND tool or Maven
2. NON osgi Library project "LibC". - converted to OSGI using BND tool or Maven

LibsC - is the one explained above having the code class.forName. - 3rd party library
LibB - like intermediate library
BundleA - Exports a package say com.company.test

BudleA calls a service from LibB which inturn calls the method having loadClass(className) which takes class name from BundleA which is exported from bundle.
I have added <DynamicImport-Package>*</DynamicImport-Package> in manifest of LibC

I am getting classNotFoundException.
Please help