Skip to main content



      Home
Home » Eclipse Projects » Equinox » Problem with OSGi Declarative Services
Problem with OSGi Declarative Services [message #136104] Mon, 27 July 2009 06:43 Go to next message
Eclipse UserFriend
I implemented an OSGi declartive service A which is dependant (references)
on another service B. When I start my application via run configuration
the bind-method with the B parameter is called without problems. However
when I start my feature-based product configuration (containing exactly
the same plugins), the constructor of service A is called, but not the
specified bind-method. When I restart the first (working) run
configuration (see above) the bind-method isn't called anymore...

When I debug the code the reference object looks fine to me. However first
a NoSuchMethodError is thrown and afterwards a cyclic reference-exception
is thrown (though there is no cycle in my service declarations...)

Any idea why this is happening?

Regards and thanks in advance,
Mike
Re: Problem with OSGi Declarative Services [message #407973 is a reply to message #136104] Thu, 30 July 2009 03:14 Go to previous message
Eclipse UserFriend
Well, I am able to answer my question myself. I hat to setthe equinox ds
plugin to autostart=true lin the Configuration tab. Don't know why this is
necessary. But now my application works fine.

Mike
Previous Topic:How to Mirror from an Update site from Ecipse
Next Topic:Programmatically Update RCP Feature
Goto Forum:
  


Current Time: Sun Jul 27 11:15:05 EDT 2025

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

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

Back to the top