Hi Pubudu,

Attached is the pom file.

Thanks,

On Wed, Sep 10, 2014 at 2:26 PM, Pubudu Dissanayake <pubu...@wso2.com>
wrote:

> Hi Supun,
>
> Please make sure that third party jar is in 'resolve' state. Be aware that
> importing a package doesn't import its sub-packages and there is no
> relationship among nested packages. You have to specifically mention " 
> Import-Package:
> org.apache.commons.math3.stat.descriptive; version="[3.3.0,4.0.0)" "
>
> Please attach your pom file as well.
>
> Thanks
> -Pubudu
>
>
>
> On Wed, Sep 10, 2014 at 1:04 PM, Supun Sethunga <sup...@wso2.com> wrote:
>
>> Correction :  *<CARBON_HOME>/repository/components/lib folder*
>>
>> On Wed, Sep 10, 2014 at 1:00 PM, Supun Sethunga <sup...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> The imported library *org.apache.commons.math3 *is being not
>>> identified. (gets the following output in the osgi console)
>>>
>>> *reference:file:../dropins/org.wso2.carbon.ml.dataset-0.1.0.jar [340]*
>>>> *  Direct constraints which are unresolved:*
>>>> *    Missing imported package
>>>> org.apache.commons.math3.stat.descriptive_[3.3.0,4.0.0)*
>>>>
>>>
>>>  Tried putting the relevant third-party jar file to the
>>> <CARBON_HOME>/repository/components/plugins folder, and deploy. But still
>>> not resolved.
>>>
>>> Thanks,
>>> Supun
>>>
>>> On Wed, Sep 10, 2014 at 11:49 AM, Danushka Fernando <danush...@wso2.com>
>>> wrote:
>>>
>>>> I think best way to figure out this is to start the server with osgi
>>>> console and find out the unsatisfied items.
>>>>
>>>> Thanks & Regards
>>>> Danushka Fernando
>>>> Software Engineer
>>>> WSO2 inc. http://wso2.com/
>>>> Mobile : +94716332729
>>>>
>>>>
>>>> On Wed, Sep 10, 2014 at 10:45 AM, Supun Sethunga <sup...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Sameera / Carbon team,
>>>>>
>>>>> Im trying to expose some Machine Learning services as a carbon
>>>>> component. The component I wrote builds successfully. But when I try to
>>>>> deploy this component (tried deploying in both BAM and ESB), the 
>>>>> deployment
>>>>> process halts, saying the following.
>>>>>
>>>>>
>>>>>
>>>>> *[2014-09-10 10:32:04,915]  INFO
>>>>> {org.apache.cassandra.thrift.ThriftServer} -  Listening for thrift
>>>>> clients...[2014-09-10 10:33:05,754]  WARN
>>>>> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization 
>>>>> is
>>>>> delayed due to the following unsatisfied items:[2014-09-10 10:33:05,755]
>>>>> WARN {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for
>>>>> required OSGiAxis2Service: org.wso2.carbon.ml.dataset-4.2.0*
>>>>>
>>>>> Found out that the reason for this was the logger log4j (when I
>>>>> replace log4j with commons-logger, the component got deployed) and a class
>>>>> in a third party library
>>>>> "org.apache.commons.math3.stat.descriptive.DescriptiveStatistics".
>>>>>
>>>>> Any idea what causes this issue?
>>>>>
>>>>> Thanks,
>>>>> Supun
>>>>>
>>>>> --
>>>>> *Supun Sethunga*
>>>>> Software Engineer
>>>>> WSO2, Inc.
>>>>> lean | enterprise | middleware
>>>>> Mobile : +94 716546324
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> *Supun Sethunga*
>>> Software Engineer
>>> WSO2, Inc.
>>> lean | enterprise | middleware
>>> Mobile : +94 716546324
>>>
>>
>>
>>
>> --
>> *Supun Sethunga*
>> Software Engineer
>> WSO2, Inc.
>> lean | enterprise | middleware
>> Mobile : +94 716546324
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Pubudu Dissanayake*
>  Software Engineer
>
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Mob: + 94 775 503 304
>
> Blog: http://geekdetected.wordpress.com/
> Linkedin: *http://lk.linkedin.com/in/pubududissanayake*
> <http://lk.linkedin.com/in/pubududissanayake>
> Flickr : https://www.flickr.com/photos/pubudufx/
> Twitter: https://twitter.com/GeekInAction
>
>


-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
lean | enterprise | middleware
Mobile : +94 716546324
<?xml version="1.0" encoding="UTF-8"?>
<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>
        <artifactId>ml-components</artifactId>
        <groupId>org.wso2.carbon</groupId>
        <version>0.1.0</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>org.wso2.carbon.ml.dataset</artifactId>
    <packaging>bundle</packaging>
    <name>WSO2 Carbon - Machine Learner Dataset Component</name>
    <repositories>
        <repository>
            <id>wso2-Nexus</id>
            <name>WSO2 Repository</name>
            <url>http://dist.wso2.org/maven2/</url>
        </repository>
    </repositories>
    <dependencies>
    	<dependency>
	      <groupId>org.apache.hadoop</groupId>
	      <artifactId>hadoop-core</artifactId>
	      <version>1.2.1</version>
	      <scope>compile</scope>
	    </dependency>
	    <dependency>
	      <groupId>org.apache.mahout</groupId>
	      <artifactId>mahout-core</artifactId>
	      <version>0.9</version>
	      <scope>compile</scope>
	    </dependency>
	    <dependency>
	      <groupId>org.apache.mahout</groupId>
	      <artifactId>mahout-math</artifactId>
	      <version>0.9</version>
	      <scope>compile</scope>
	    </dependency>
        <dependency>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
            <version>1.1.1</version>
        </dependency>
      <dependency>
		<groupId>org.apache.commons</groupId>
		<artifactId>commons-math3</artifactId>
		<version>3.3</version>
	</dependency>
	
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
                        <Bundle-Name>${pom.artifactId}</Bundle-Name>
                        <Export-Package>org.wso2.carbon.ml.dataset.*</Export-Package>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to