I was creating a launch configuration for a plug-in test and wanted to have only a minimal set of plugins configured. Thus I am using PDE to add all required plug-ins of the test. The “Validate Plug-ins” action does not recognize any issue.
However, when starting the test it fails with a
ModelServiceImpl‘s constructor. The reason here is that no instance of
IEventBroker was retrieved from the application context. To enhance the situation I have opened Bug#522051 and giving this as an error message.
To solve this issue when running on Equinox, the bundle
org.eclipse.equinox.event has to be added to the launch configuration. Also configure this bundle to start automatically at start level 2.
I would have liked to give this hint already with the improved error message, but theoretically the
IEventBroker could be also provided by another OSGi implementation, so this additional hint was rejected with reason. I hope that this post will help you then further.