• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NoClassDefFoundError while accessing a package from an Active bundle

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic