Hi,

Are you using the latest release of Apache Felix Declarative Services ?
In this case, you might be hit by FELIX-1178 [1]

Your options are reverting to the previous release or upgrading to a
trunk build.

We are close to a new release of SCR (we have a small number of issues
open).

Regards
Felix

[1] https://issues.apache.org/jira/browse/FELIX-1178

mohn3310 schrieb:
> Hello,
> 
> I've recently converted from using Activators to Declarative Services. I've
> run into an issue where all dependent services are satisfied, but the
> overall state of the component is still unsatisfied. Any idea how it could
> get into this state?
> 
> Here's the output of 'scr info':
> 
> -> scr info 9
> ID: 9
> Name: MyBundle
> Bundle: com.myco.MyBundle (41)
> State: unsatisifed
> Default State: enabled
> Activation: immediate
> Services: com.myco.MyBundleService
> Service Type: service
> Reference: logService
>     Satisfied: satisfied
>     Service Name: org.osgi.service.log.LogService
>     Multiple: single
>     Optional: mandatory
>     Policy: static
> Reference: persistenceService
>     Satisfied: satisfied
>     Service Name: com.myco.persistence.PersistenceService
>     Multiple: single
>     Optional: mandatory
>     Policy: static
> Reference: httpService
>     Satisfied: satisfied
>     Service Name: org.osgi.service.http.HttpService
>     Multiple: single
>     Optional: mandatory
>     Policy: static
> Properties:
>     component.id = 9
>     component.name = MyBundle
>     service.pid = MyBundle
> 
> And here's the scr-plugin generated serviceComponents.xml file:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <components xmlns:scr="http://www.osgi.org/xmlns/scr/v1.0.0";>
>     <scr:component enabled="true" immediate="true" name="MyBundle">
>         <implementation class="com.myco.impl.MyBundleServiceImpl"/>
>         <service servicefactory="false">
>             <provide interface="com.myco.MyBundleService"/>
>         </service>
>         <property name="service.pid" value="MyBundle"/>
>         <reference name="logService"
> interface="org.osgi.service.log.LogService" cardinality="1..1"
> policy="static" bind="bindLogService" unbind="unbindLogService"/>
>         <reference name="persistenceService"
> interface="com.myco.persistence.PersistenceService" cardinality="1..1"
> policy="static" bind="bindPersistenceService"
> unbind="unbindPersistenceService"/>
>         <reference name="httpService"
> interface="org.osgi.service.http.HttpService" cardinality="1..1"
> policy="static" bind="bindHttpService" unbind="unbindHttpService"/>
>     </scr:component>
> </components>
> 
> Thanks for your help.
> 
> Mohnish

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to