I used Eclipse to create a new plug-in project which created a default Activator
for me. When debugging (running as Eclipse Application) I noticed the start()
and stop()
methods of this activator weren't called.
Following the guide on what to do when your bundle isn't visible in Eclipse I stumbled upon the following results.
- Using the
ss
command, I can see my bundle listed. - The status of my bundle is 'Starting'
The bundle is in the process of starting. A bundle is in the
STARTING
state when itsstart
method is active. A bundle must be in this state when the bundle'sBundleActivator.start(BundleContext)
is called. If theBundleActivator.start
method completes without exception, then the bundle has successfully started and must move to theACTIVE
state.
A breakpoint placed on the first line in the start
method doesn't get hit. Neither does System.out.println
show up in the console. What could cause the start
method not getting called, and thus the state being stuck in STARTING
?