NoClassDefFoundError in Eclipse RCP application?

This sounds like some bundles haven't been initialized at that point. OSGi will start modules based on the dependencies, but there's a random element when you don't have the proper dependencies set in place. I would suggest looking at that.

If you want more info, you can use the OSGi console to examine your environment.

This sounds like some bundles haven't been initialized at that point. OSGi will start modules based on the dependencies, but there's a random element when you don't have the proper dependencies set in place. I would suggest looking at that.

If you want more info, you can use the OSGi console to examine your environment: ibm.com/developerworks/library/os-ecl-os... Hope this helps.

It happens shortly after program startup, usually at the first user-action. I also think it is related to dependency management, but haven't found anything wrong yet. I'll have a look at your link.

– StackedCrooked Nov 18 '11 at 16:42 Are the classes EMyAppObjectItemProvider and MyAppApplication in the same bundle? Does it always happen with the same class? With classes in the same bundle?

– Andres Olarte Nov 18 '11 at 16:48 EMyAppObjectItemProvider and MyAppApplication are in different bundles. Yes, it always happens with the same class, at the same line of code. – StackedCrooked Nov 18 '11 at 17:05.

Try to run your application in the debugger with the OSGi console enabled (-console). Add a Class breakpoint for NoClassDefFoundError or alternatively on the offending line of code (MyappguimodelItemProviderAdapterFactory. Java:159).

And, when the breakpoint is hit: find the bundle ID of the bundle with MyappguimodelItemProviderAdapterFactory - e.g. With the ss OSGi command find the complete status of the bundle with the bundle OSGi command check whether the package in question - com.mycompany.products.myapp.gui.model. Provider - is wired correctly in the "Imported Packages" section I don't know what can be wrong, but you should check that the correct package wiring has been set up - possibly using packages com.mycompany.products.myapp.gui.model. Provider OSGi command to find all the providers the bundle with EMyAppObjectItemProvider actually includes the class - you can find the jar used by OSGi with the status OSGi command (don't assume you know :-)).

For classloading issues Java offers some tools. Look Do you really get class loaders on Slideshare. I once had a similar problem with the help system of Eclipse which I integrated in my RCP product.

When started within the IDE everything worked fine but when starting the exported product the help system just doesn't come up.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions