Expand my Community achievements bar.

SOLVED

OSGi service not registering when including DesignCache service

Avatar

Level 4

I am trying to reference the DesignCache service from within my own service. However, when I reference the DesignCache service my own service does not show/get registered. I see nothing in the log. The bundle starts and is Active but the service does not show. If I remove the DesignCache reference the service is registered and shows. Any ideas why?

@Reference
private DesignCache designCache;

component.id    1592
component.name    com.day.cq.wcm.core.impl.designer.DesignCacheImpl
Service PID    com.day.cq.wcm.core.impl.designer.DesignCacheImpl
Service Vendor    Day Management AG
Using Bundles    com.day.cq.wcm.cq-wcm-core (370)

 

UPDATE:

I can see the component is unsatisfied as it is unable to find the DesignCache service.

Reference designCache    ["Unsatisfied","Service Name: com.day.cq.wcm.core.impl.designer.DesignCache","Multiple: single","Optional: mandatory","Policy: static","No Services bound"]

1 Accepted Solution

Avatar

Correct answer by
Employee

Since the DesignCache interface isn't exported, this isn't possible.

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

Since the DesignCache interface isn't exported, this isn't possible.