aspose file tools*
The moose likes Other Application Frameworks and the fly likes NoClassDefFoundError while accessing a package from an Active bundle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "NoClassDefFoundError while accessing a package from an Active bundle" Watch "NoClassDefFoundError while accessing a package from an Active bundle" New topic
Author

NoClassDefFoundError while accessing a package from an Active bundle

Trupti Mali
Greenhorn

Joined: Jun 26, 2014
Posts: 1
Hi,
I am referring one package from a bundle (say ABC). I have added that pkg in dependencies(pom.xml) of that bundle. I have also added the package in osgi.bnd of the bundle. Upon building the bundle with mvn - I can see that package in the import list of manifest.mf of the bundle ABC.

When I start the container , I see that bundle ABC becomes active (that means all the dependencies are resolved)- but when I give following command - b <bundle id of ABC> - I dont see that pkg listed in the import list. (Whereas that pkg is present in export list of bunle XYZ - which is exporting it)
In configuration also I have made sure that exporting bundle XYZ has lower start order than dependent bundle ABC (started before the dependent bundle)

BUT , when I uninstall bundle ABC and restart the container - the bundle ABC gets registered in the end of the OSGI modules list and I can see the pkg in the imported list.


In live environment I wont have an option of executing this above manual step (of uninstalling and restarting the container). Whats going wrong in first place I am not able to figure out. Any pointers please?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NoClassDefFoundError while accessing a package from an Active bundle