Does the “problem bundle” import the package? You can check this with the 
following command:

        inspect req osgi.wiring.package <bundle-id>


Regards,
Neil


On 18 August 2014 at 22:09:17, Tim McIver ([email protected]) wrote:

Hello,  

I'm getting a NoClassDefFoundError when trying to start a bundle that  
resolves without error. This happens when trying to instantiate a class  
(in the bundle activator) whose .class file resides in the bundle  
itself. But the class being instantiated is derived from a class found  
in another bundle, already resolved and started. To confirm that I've  
got things wired up in the way that I think I do, I ran the following  
command at the Felix console:  

g! which <problem-bundle-id> 
<fully-qualified-name-of-class-that-gives-noclassdeffounderror>  


and the response is good (I think):  

Loaded from: <com.example.impl> [50]  


where 50 is indeed the ID of the bundle where I'm exporting package  
com.example.impl. Any idea what could be causing this?  

Thanks,  
Tim  

---------------------------------------------------------------------  
To unsubscribe, e-mail: [email protected]  
For additional commands, e-mail: [email protected]  

Reply via email to