Hi Akila, Do you suggest that the @scr.reference needs to be specified in one line as follows?
** @scr.reference name="analytics.component" interface="org.wso2.carbon.analytics.api.AnalyticsDataAPI" cardinality="1..1" * policy="dynamic" bind="setAnalyticsDataAPI" unbind="unsetAnalyticsDataAPI"* @scr.reference interface is not specified in two lines though. Thanks. On Fri, May 27, 2016 at 5:05 PM, Akila Ravihansa Perera <[email protected]> wrote: > Hi Fathima, > > The problem is with your service definition; > > > > > > */** * @scr.component name="org.wso2.carbon.cloud.das.datapurge.tool" * > @scr.reference name="analytics.component" > interface="org.wso2.carbon.analytics.api.AnalyticsDataAPI" * > cardinality="1..1" policy="dynamic" bind="setAnalyticsDataAPI" > unbind="unsetAnalyticsDataAPI" */* > > Notice that @scr.reference interface is split into two lines? This is the > root cause. Happened to me once ;) > > Thanks. > > On Fri, May 27, 2016 at 1:45 PM, Fathima Dilhasha <[email protected]> > wrote: > >> Please find attached pom.xml. >> >> On Fri, May 27, 2016 at 1:02 PM, Sameera Jayasoma <[email protected]> >> wrote: >> >>> Can you attach the Pom.xml ? >>> >>> >>> On Friday, May 27, 2016, Fathima Dilhasha <[email protected]> wrote: >>> >>>> The service is available and I can actually use it without any problem. >>>> I'm calling some methods on it and they are working fine. >>>> On 27 May 2016 12:17, "Sameera Jayasoma" <[email protected]> wrote: >>>> >>>>> Looks like this service is not available in your OSGi environment. >>>>> >>>>> *org.wso2.carbon.analytics.api.AnalyticsDataAPI* >>>>> >>>>> Can you double check on this? >>>>> >>>>> On Fri, May 27, 2016 at 12:08 PM, Anjana Fernando <[email protected]> >>>>> wrote: >>>>> >>>>>> Hi Sameera/Niranjan, >>>>>> >>>>>> You guys have any idea on to why this is happening? .. here, even >>>>>> though the OSGi is available and accessible to that bundle, it is still >>>>>> giving that message. >>>>>> >>>>>> Cheers, >>>>>> Anjana. >>>>>> >>>>>> On Fri, May 27, 2016 at 10:15 AM, Fathima Dilhasha <[email protected] >>>>>> > wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I'm trying to build an osgi component which uses " >>>>>>> *org.wso2.carbon.analytics.api.AnalyticsDataAPI*". When I add the >>>>>>> bundle to carbon server, the bundle is working as expected. But in the >>>>>>> osgi >>>>>>> console when I diagnose the bundle I get the following. >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> *Direct constraints which are unresolved: Missing required >>>>>>> capability Require-Capability: osgi.service; >>>>>>> filter="(objectClass=org.wso2.carbon.analytics.api.AnalyticsDataAPI)"* >>>>>>> Following are the imported packages in the written osgi component. >>>>>>> >>>>>>> <Import-Package> >>>>>>> >>>>>>> org.apache.commons.logging.*; version="${commons.logging.version}", >>>>>>> org.osgi.service.component; >>>>>>> version="${imp.pkg.version.osgi.service.component}", >>>>>>> org.osgi.framework; version="${imp.pkg.version.osgi.framework}", >>>>>>> org.wso2.carbon.core; version="${wso2das.version}", >>>>>>> org.wso2.carbon.analytics.api.*; >>>>>>> version=${wso2analytics.api.version}, >>>>>>> org.wso2.carbon.analytics.datasource.commons.exception.*; >>>>>>> resolution:=optional >>>>>>> </Import-Package> >>>>>>> >>>>>>> >>>>>>> Following are the scr tags specified in the component. >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> */** * @scr.component name="org.wso2.carbon.cloud.das.datapurge.tool" * >>>>>>> @scr.reference name="analytics.component" >>>>>>> interface="org.wso2.carbon.analytics.api.AnalyticsDataAPI" * >>>>>>> cardinality="1..1" policy="dynamic" bind="setAnalyticsDataAPI" >>>>>>> unbind="unsetAnalyticsDataAPI" */* >>>>>>> >>>>>>> I highly appreciate any help on understandng this issue. >>>>>>> >>>>>>> Thanks >>>>>>> Regards, >>>>>>> Dilhasha >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Fathima Dilhasha >>>>>>> *Software Engineer* >>>>>>> Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496> >>>>>>> <%2B94%20%280%29%20773%20451194> >>>>>>> [email protected] >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Dev mailing list >>>>>>> [email protected] >>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> *Anjana Fernando* >>>>>> Senior Technical Lead >>>>>> WSO2 Inc. | http://wso2.com >>>>>> lean . enterprise . middleware >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Sameera Jayasoma, >>>>> Software Architect, >>>>> >>>>> WSO2, Inc. (http://wso2.com) >>>>> email: [email protected] >>>>> blog: http://blog.sameera.org >>>>> twitter: https://twitter.com/sameerajayasoma >>>>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections >>>>> Mobile: 0094776364456 >>>>> >>>>> Lean . Enterprise . Middleware >>>>> >>>>> >>> >>> -- >>> Sameera Jayasoma, >>> Software Architect, >>> >>> WSO2, Inc. (http://wso2.com) >>> email: [email protected] >>> blog: http://blog.sameera.org >>> twitter: https://twitter.com/sameerajayasoma >>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections >>> Mobile: 0094776364456 >>> >>> Lean . Enterprise . Middleware >>> >>> >>> >> >> >> -- >> Fathima Dilhasha >> *Software Engineer* >> Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496> >> <%2B94%20%280%29%20773%20451194> >> [email protected] <[email protected]> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Akila Ravihansa Perera > WSO2 Inc.; http://wso2.com/ > > Blog: http://ravihansa3000.blogspot.com > -- Fathima Dilhasha *Software Engineer* Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496> <%2B94%20%280%29%20773%20451194> [email protected] <[email protected]>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
