under construction
OSGi requires that if one bundle needs code in another bundle, the first needs to Import-Package the java package, and the second needs to Export-Package in their MANIFEST.MF files. If some of these are missing, the program will fail somehow. If we are lucky, we get a ClassNotFoundException or NoClassDefFoundException listing the class that is the problem. But sometimes, like in Hiral's case, there is no direct error message. I tried "grep"ing all the "import ..." statements in the .java source files, but this did not find all the required imports.
I found: http://stackoverflow.com/questions/3609982/find-out-dependencies-for-a-any-jar-bundle
One of the tools mentioned was bnd, which we are already using. I tried this yesterday, but it did not find all the required imports. I can try the other tools mentioned in the link. Other options are: