Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » ExtensionRegistry and org.osgi.framework.Bundle.start()
ExtensionRegistry and org.osgi.framework.Bundle.start() [message #132189] Tue, 02 June 2009 14:54 Go to next message
Anders Forsell is currently offline Anders ForsellFriend
Messages: 127
Registered: July 2009
Senior Member
I have a plug-in that is started dynamically using
"org.osgi.framework.Bundle.start()". It seems that the extension
registry is not updated with contributions from the associated plugin.xml.
Do I need to manually invoke some method to update the extension
registry when starting plug-ins dynamically?

Thanks,

---
Anders
Re: ExtensionRegistry and org.osgi.framework.Bundle.start() [message #132202 is a reply to message #132189] Tue, 02 June 2009 16:04 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

The extension registry should be updated when the bundle is installed.
But starting/stopping bundles don't effect what the extension registry
can see.

When was your bundle installed?

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Re: ExtensionRegistry and org.osgi.framework.Bundle.start() [message #132297 is a reply to message #132202] Wed, 03 June 2009 08:52 Go to previous message
Anders Forsell is currently offline Anders ForsellFriend
Messages: 127
Registered: July 2009
Senior Member
Thanks, I found that my problem was that build.properties didn't include
'plugin.xml'. It worked when launching within Eclipse, but the
exported Jar file didn't include the plugin.xml file.

I would have saved a few hours if Eclipse would have warned me about
this mistake ;-)

---
Anders

Paul Webster wrote:
> The extension registry should be updated when the bundle is installed.
> But starting/stopping bundles don't effect what the extension registry
> can see.
>
> When was your bundle installed?
>
> PW
>
Previous Topic:Add PhaseListener to equinox jetty
Next Topic:Running Equinox using servletbridge-like invocation (EclipseStarter through reflection): org.eclipse
Goto Forum:
  


Current Time: Thu Apr 25 13:45:21 GMT 2024

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

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

Back to the top