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]>
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~  Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
  ~
  ~  WSO2 Inc. licenses this file to you under the Apache License,
  ~  Version 2.0 (the "License"); you may not use this file except
  ~  in compliance with the License.
  ~  You may obtain a copy of the License at
  ~
  ~  http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~  Unless required by applicable law or agreed to in writing,
  ~  software distributed under the License is distributed on an
  ~  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~  KIND, either express or implied.  See the License for the
  ~  specific language governing permissions and limitations
  ~  under the License.
  -->

<project xmlns="http://maven.apache.org/POM/4.0.0";
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>
    <parent>
        <groupId>org.wso2.carbon.cloud</groupId>
        <artifactId>cloud-tools</artifactId>
        <version>1.0.0</version>
        <relativePath>../../pom.xml</relativePath>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <groupId>org.wso2.carbon</groupId>
    <artifactId>org.wso2.carbon.cloud.das.datapurge.tool</artifactId>
    <version>1.0.0</version>
    <packaging>bundle</packaging>
    <name>Cloud - DAS DataPurge Tool</name>
    <description>Tool to purge unnecessary data from DAS</description>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-scr-plugin</artifactId>
                <executions>
                    <execution>
                        <id>generate-scr-scrdescriptor</id>
                        <goals>
                            <goal>scr</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                        <Bundle-Name>${project.artifactId}</Bundle-Name>
                        <Private-Package>
                            org.wso2.carbon.cloud.das.datapurge.tool.internal
                        </Private-Package>
                        <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.*; resolution:=optional
                        </Import-Package>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
            <version>${commons.logging.version}</version>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.service.component</artifactId>
            <version>${org.osgi.service.component.version}</version>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.core</artifactId>
            <version>${org.osgi.framework.version}</version>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.core.services</artifactId>
            <version>${wso2das.version}</version>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon.analytics</groupId>
            <artifactId>org.wso2.carbon.analytics.api</artifactId>
            <version>${wso2analytics.api.version}</version>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon.analytics</groupId>
            <artifactId>org.wso2.carbon.analytics.datasource.commons</artifactId>
            <version>${wso2analytics.api.version}</version>
        </dependency>
    </dependencies>

    <properties>
        <wso2das.version>4.4.3</wso2das.version>
        <wso2analytics.api.version>1.0.5</wso2analytics.api.version>
    </properties>
</project>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to