felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raymond Auge <raymond.a...@liferay.com>
Subject Re: Help debug ServiceDependency in DM4-R8
Date Fri, 09 Sep 2016 21:25:47 GMT
Note that service visibility is subject to class space coherence...

What does that mean?

It means that the package who's interface the service is published under,
has to be the same package imported by the referencing code. The service
registry won't offer up the service to the bundle who would suffer a
ClassCastException when handed the service instance otherwise.

So, what you want to do is check that both the service bundle and the
tracking bundle are using the same package.

- Ray

On Fri, Sep 9, 2016 at 1:04 PM, mduduzik <mduduzi.keswa@gmail.com> wrote:

> I have a DM component that depends on a service that looks like is
> available
> (checking with WebConsole). However, the consuming DM component stays in
> WAITING_FOR_REQUIRED state. How do I debug why an available service is not
> being consumed.
> Note: required service is registered after the component is created (via
> dm.add(component)).
> Thanks.
> --
> View this message in context: http://apache-felix.18485.x6.
> nabble.com/Help-debug-ServiceDependency-in-DM4-R8-tp5018369.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org

*Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org> (@OSGiAlliance)

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message