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" <same...@wso2.com> 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 <anj...@wso2.com> 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 <dilha...@wso2.com> >> 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> >>> dilha...@wso2.com <madha...@wso2.com> >>> >>> _______________________________________________ >>> Dev mailing list >>> Dev@wso2.org >>> 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: same...@wso2.com > blog: http://blog.sameera.org > twitter: https://twitter.com/sameerajayasoma > flickr: http://www.flickr.com/photos/sameera-jayasoma/collections > Mobile: 0094776364456 > > Lean . Enterprise . Middleware > >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev