Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Run configuration plug-in auto-start setting has no effect. Why?(Trying to adjust the auto-start argument for certain bundles - nothing happens.)
Run configuration plug-in auto-start setting has no effect. Why? [message #502287] Mon, 07 December 2009 15:39 Go to next message
Marton Sigmond is currently offline Marton Sigmond
Messages: 71
Registered: July 2009
Location: Hungary
Member
Hi,

I have a 3.4.2 target platform, and a 3.5 SR1 IDE.

I want to use OSGi Declarative Services in my product, so I added the org.eclipse.equinox.ds (and required plug-ins) to my run configuration. Its auto-start argument is automatically set to true.

I started my product, but my services did not come alive.
After many hours of digging I figured, that the org.eclipse.equinox.ds plug-in is in resolved state, so it has not been activated.

I tried to set the auto-start argument for other plug-ins too, and I found the same: no effect, plug-ins remain resolved.

Please let me know what can be the problem.

Thanks,
Marton


Best Regards,
Marton Sigmond
Software Design Engineer
Re: Run configuration plug-in auto-start setting has no effect. Why? [message #502380 is a reply to message #502287] Mon, 07 December 2009 22:05 Go to previous messageGo to next message
Ralf Ebert is currently offline Ralf Ebert
Messages: 72
Registered: July 2009
Member
Marton Sigmond wrote:
> I tried to set the auto-start argument for other plug-ins too, and I
> found the same: no effect, plug-ins remain resolved.

Do the plug-ins get active when you start them manually using the OSGi console?
(-console as program argument).

If so, please go to the configuration folder (as specified in the Configuration
tab of your run configuration). Have a look at the config.ini file (this
configures the start levels) - are bundles marked for auto start here like this
"somebundleid@4\:start"?


--
http://www.ralfebert.de/blog/eclipsercp/
Re: Run configuration plug-in auto-start setting has no effect. Why? [message #502450 is a reply to message #502380] Tue, 08 December 2009 10:30 Go to previous messageGo to next message
Marton Sigmond is currently offline Marton Sigmond
Messages: 71
Registered: July 2009
Location: Hungary
Member
Thank you for the answer.

Yes, plug-ins get active when started from the console.
There is no config.ini file, since it is set to be generated automatically.

Couple more details:
- If I reset the target platform to the Running Platform (which is 3.5), everything works fine.
- Created a new workspace to test the problem in a minimalistic environment, but I could not recreate the problem. Plug-ins are activated properly when auto-start is set.
- When I start a plug-in from the console, providing a service works, but referencing a service does not work (maybe this is another thread).

Thanks for any help,
Marton


Best Regards,
Marton Sigmond
Software Design Engineer
Re: Run configuration plug-in auto-start setting has no effect. Why? [message #502469 is a reply to message #502450] Tue, 08 December 2009 12:36 Go to previous message
Marton Sigmond is currently offline Marton Sigmond
Messages: 71
Registered: July 2009
Location: Hungary
Member
> - When I start a plug-in from the console, providing a service works, but referencing a service does not work (maybe this is another thread).

I found this: 3.4.2 needs unbind in the reference tag.

Auto-starting plug-ins is still a mystery.

Regards,
Marton


Best Regards,
Marton Sigmond
Software Design Engineer
Previous Topic:Update Site Categories not shown
Next Topic:How to remove the default "project"/"example"/"other" item from the ne
Goto Forum:
  


Current Time: Sat Oct 25 00:52:21 GMT 2014

Powered by FUDForum. Page generated in 0.01685 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software