OSGi service not registering when including DesignCache service | Community
Skip to main content
Level 3
October 16, 2015
Solved

OSGi service not registering when including DesignCache service

  • October 16, 2015
  • 1 reply
  • 927 views

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"]

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by JustinEd3

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

1 reply

JustinEd3Adobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

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