I have written a simple sling component which has one interface and another one is implemented class. I am building this bundle jar using maven,i am installing it from CQ felix console.Bundle is uploaded successfully and it's in active state.
When i am trying to instantiate this bundle class from component jsp ,Null pointer exception is coming this is happening due to not able get the reference of that implemented class.Below is the jsp code snippet using to call this class. Below is the code to instantiate bundle class:
InvokeAEMWorkflowImpl wfService = sling.getService(InvokeAEMWorkflowImpl.class);
And also i have observed one more thing ,i am not able to see anything related to this felix console's component and service areas(tabs).
Can someone help me why i am not able to refer this class in my component jsp.
Thanks, Kishore