title: Getting Service cannot be resolved to a type error while consuming OSGi service
body: <p>I have created a component which consumes the sling service from OSGI bundle in Cq5.
  But while consuming it throws error stating that <strong>com.aem.HelloService cannot be resolved to a type</strong> , 
  When looked under <a href="http://localhost:4502/system/console/services" rel="nofollow">http://localhost:4502/system/console/services</a>.</p>
  
  <p>Service is running properly.</p>