Re: [Dev] Error while implementing the Integration test for salesforce(SOAP API) connector

2016-05-02 Thread Malaka Silva
Hi Hariprasath,

Can we verify the [1] fix is there with ESB 5.0.0 alpha please?

[1] https://github.com/wso2/wso2-axis2/pull/73

On Mon, May 2, 2016 at 11:16 PM, Chanaka Fernando  wrote:

> Hi Hariprasath,
>
> ESB 5.0.0 - Alpha has been released with the axis2 version 1.6.1.wso2v17
> (kernel 4.4.5) and it should have this fix included. Please double check
> this on the correct alpha pack.
>
> On Mon, May 2, 2016 at 12:12 PM, Malaka Silva  wrote:
>
>> Thx
>>
>> On Mon, May 2, 2016 at 12:11 PM, Hariprasath Thanarajah <
>> haripras...@wso2.com> wrote:
>>
>>> Hi Malaka,
>>>
>>> I have created the jira[1] with highest priority,
>>>
>>> [1]
>>> https://wso2.org/jira/browse/ESBJAVA-4582
>>>
>>> On Mon, May 2, 2016 at 11:31 AM, Malaka Silva  wrote:
>>>
 Hi Hariprasath,

 Ideally fix should go with latest ESB. If you find the same issue with
 ESB 5 Alpha, please report a jira with highest priority.

 On Mon, May 2, 2016 at 11:25 AM, Hariprasath Thanarajah <
 haripras...@wso2.com> wrote:

> Hi Malaka,
>
> I have changed the code in wso2-axis2 according to [1] and put it as a
> patch. Now it's working perfectly. Thank you everyone for your 
> suggestions.
>
> [1]
> https://github.com/wso2-support/wso2-axis2/pull/1/files
> 
>
> On Thu, Apr 21, 2016 at 6:36 PM, Hariprasath Thanarajah <
> haripras...@wso2.com> wrote:
>
>> Noted malaka.
>>
>> On Thursday, April 21, 2016, Malaka Silva  wrote:
>>
>>> Hi Hariprasath,
>>>
>>> Best is start debugging fresh pack with the release tag and apply
>>> the fix and check [1].
>>>
>>> Did you check this with esb 5 alpha alread? If not do so.
>>>
>>> [1]
>>> https://docs.wso2.com/display/TA430/Debugging+Product+Integration+Tests
>>>
>>> On Thu, Apr 21, 2016 at 2:53 AM, Hariprasath Thanarajah <
>>> haripras...@wso2.com> wrote:
>>>
 As malaka said this is slightly different from the usual way and
 Malaka, I copied the patch to the folder and put the zip to the 
 repository.
 Need to investigate further.


 On Wednesday, April 20, 2016, Malaka Silva  wrote:

> Hariprasath is doing this for connectors. It is slightly different
> than running esb integration tests. We need to copy the zip file
> to repository folder. Hope you have updated the zip file with patch 
> in that
> case.
>
> On Wed, Apr 20, 2016 at 10:08 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Hariprasath,
>>
>> Did you apply the patch manually  to the pack when you run the
>> integration test? AFAIK when you run integration tests it will use 
>> the
>> already built default pack. It will not contains the patch.
>>
>> Thanks
>> Thusitha
>>
>> On Wed, Apr 20, 2016 at 9:32 AM, Malaka Silva 
>> wrote:
>>
>>> Hi Hariprasath,
>>>
>>> You need to debug and investigate this further. Find details on
>>> debugging integration test in [1]
>>>
>>> [1]
>>> https://docs.wso2.com/display/TA430/Debugging+Product+Integration+Tests
>>>
>>> On Wed, Apr 20, 2016 at 6:18 PM, Hariprasath Thanarajah <
>>> haripras...@wso2.com> wrote:
>>>
 Hi All,

 I have apply the patch to ESB 4.9.0 have mentioned above in
 [1], but I  got the same error. If I create the test case for 
 another
 method(describeSObject) also show the same error. I have attached 
 the wire
 log for this method also,

 Can anyone give any suggestion on this?

 On Tue, Apr 19, 2016 at 1:36 PM, Hariprasath Thanarajah <
 haripras...@wso2.com> wrote:

> Noted Malaka,
>
> I will check and update on this.
>
> On Tue, Apr 19, 2016 at 1:11 PM, Malaka Silva  > wrote:
>
>> Hi Hariprasath,
>>
>> Seems like a issue is mentioned in [1]. Ideally this should
>> be fixed in ESB alpha release. Please check.
>>
>> If not apply the fix and see if that works. If works add a
>> jira for esb 5.
>>
>> [1] https://wso2.org/jira/browse/ESBJAVA-4388
>>
>> On Thu, Apr 7, 2016 at 3:59 PM, Hariprasath Thanarajah <
>> haripras...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I am working on to create integration test for salesforce

Re: [Dev] Is streaming input & output support working in MSF4J?

2016-05-02 Thread Kasun Indrasiri
Had a chat with Ranawaka on this.. seems like we do have couple of ways to
handle this. He will share the details.

On Mon, May 2, 2016 at 6:13 AM, Afkham Azeez  wrote:

> The problem is, we can't do the next MSF4J release because we can't lose a
> feature in a release. This is a blocker for us. We have plans to release in
> the next 2 weeks.
>
> On Mon, May 2, 2016 at 4:56 PM, Isuru Ranawaka  wrote:
>
>> Hi Azeez,
>>
>> Currently streaming works if we used both sender side and listener side
>> only . But since MSF4J is using only listener side if we did not spawn
>> separate thread from engine level for writing response  it will not work
>> because request reading and writing happens through same thread. But with
>> the next release we will fix that. currently we are finalizing on removing
>> engine level thread model from transport.
>>
>>
>> thanks
>> IsuruR
>>
>> On Mon, May 2, 2016 at 3:50 PM, Afkham Azeez  wrote:
>>
>>> Is this working after moving to the new transport framework?
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * *
>>> *email: **az...@wso2.com* 
>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: **http://twitter.com/afkham_azeez*
>>> 
>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Best Regards
>> Isuru Ranawaka
>> M: +94714629880
>> Blog : http://isurur.blogspot.com/
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Kasun Indrasiri
Software Architect
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

cell: +94 77 556 5206
Blog : http://kasunpanorama.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS Tooling] Installed Distribution module fails to build when migrated to Eclipse Mars

2016-05-02 Thread Awanthika Senarath
Hello Nandika,

Developer Studio Kernel 4.1.0 GA is scheduled to be released on the 5th of
May.

Regards
Awanthika

Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Tue, May 3, 2016 at 11:55 AM, Nandika Jayawardana 
wrote:

> Hi Awanthika,
>
> You can let us know when the developer studio mars kernel is scheduled to
> be released. What we want from BPS tooling point of view is to release the
> currently completed human task editor and the migrated BPEL tooling ( from
> luna to mars ) released as quickly as possible.
>
> Regards
> Nandika
>
> On Tue, May 3, 2016 at 11:52 AM, Heshitha Hettihewa 
> wrote:
>
>> Hi kavith,
>>
>> Thanks a lot for pointing out , This was the cause for the build failure.
>>
>> Thanks.
>>
>> On Tue, May 3, 2016 at 11:44 AM, Heshitha Hettihewa 
>> wrote:
>>
>>> Hi Awanthika,
>>>
>>> Thanks a lot. I will add a profile in the main pom as you mentioned.
>>>
>>> Thanks.
>>>
>>> On Tue, May 3, 2016 at 11:39 AM, Kavith Lokuhewage 
>>> wrote:
>>>
 Hi Hasitha,

 Seems like eclipse mars releases are still not deployed to wso2 maven.
 Since these packs are configured as pom dependencies in installed
 distribution module, maven tries to download them from the configured nexus
 repos. We will have to get them deployed to nexus first .

 Thanks

 On Tue, May 3, 2016 at 11:33 AM, Heshitha Hettihewa >>> > wrote:

> Hi all,
>
> Currently I'm in the process of migrating BPEL plugins and Human Task
> editor plugin into Eclipse Mars. In installed distributions module I have
> updated the existing luna repos into new mars repos according to this [1].
> But when I'm trying to build the installed distributions module I'm 
> getting
> this build error.
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:unpack
> (1-unpack-p2-agent-distribution) on project
> developer-studio-bps-eclipse-jee-mars-linux-gtk: Unable to find artifact.
> Could not find artifact
> org.eclipse:eclipse-jee-mars-2-linux-gtk:tar.gz:4.5.2 in wso2-maven2-repo 
> (
> http://dist.wso2.org/maven2/)
> [ERROR]
> [ERROR] Try downloading the file manually from the project website.
> [ERROR]
> [ERROR] Then, install it using the command:
> [ERROR] mvn install:install-file -DgroupId=org.eclipse
> -DartifactId=eclipse-jee-mars-2-linux-gtk -Dversion=4.5.2
> -Dpackaging=tar.gz -Dfile=/path/to/file
> [ERROR]
> [ERROR] Alternatively, if you host your own repository you can deploy
> the file there:
> [ERROR] mvn deploy:deploy-file -DgroupId=org.eclipse
> -DartifactId=eclipse-jee-mars-2-linux-gtk -Dversion=4.5.2
> -Dpackaging=tar.gz -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> [ERROR]
> [ERROR]
> [ERROR] org.eclipse:eclipse-jee-mars-2-linux-gtk:tar.gz:4.5.2
> [ERROR]
> [ERROR] from the specified remote repositories:
> [ERROR] wso2-maven2-repo (http://dist.wso2.org/maven2/,
> releases=true, snapshots=true),
> [ERROR] DevS-Deps-p2-Repository (
> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/kernel/releases/,
> releases=false, snapshots=false),
> [ERROR] Eclipse-p2-repo (http://download.eclipse.org/releases/mars/,
> releases=false, snapshots=false),
> [ERROR] WSO2-Nexus-Maven-Repository (
> http://maven.wso2.org/nexus/content/groups/wso2-public/,
> releases=true, snapshots=true),
> [ERROR] Maven-Central-Repo (http://repo1.maven.org/maven/,
> releases=true, snapshots=true),
> [ERROR] DevS-Kernel-p2-releases-Repository (
> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/kernel/releases/,
> releases=false, snapshots=false),
> [ERROR] DevS-Platform-p2-releases-Repository (
> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/platform-bundles/releases/,
> releases=false, snapshots=false),
> [ERROR] Additional-Tools-p2-Repository (
> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.0.0/additional-tools/releases/p2/,
> releases=false, snapshots=false),
> [ERROR] WSO2-p2-Repository (
> http://product-dist.wso2.com/p2/carbon/releases/wilkes/,
> releases=false, snapshots=false),
> [ERROR] WSO2-Nexus-Maven-SNAPSHOT-Repository (
> http://maven.wso2.org/nexus/content/repositories/wso2.maven2.snapshot/,
> releases=true, snapshots=true),
> [ERROR] central (http://repo.maven.apache.org/maven2, releases=true,
> snapshots=false)
>
> any suggestions on solving this?
>
> [1]. https://github.com/wso2/devstudio-tooling-esb
>
> Thanks,
> --
> Heshitha Hettihewa
> *Software Engineer*
> Mobile : +94716866386
> <%2B94%20%280%29%20773%20451194>
> heshit...@wso2.com
>



 --
 *Kavith Lokuhewage*
 Software Engineer
 WSO2 Inc.

Re: [Dev] [DEV][AppM] Cannot add web application 'Failed to add asset.'

2016-05-02 Thread Chanuka Dissanayake
Hi Dinusha,

Thanks for the help. I can add the web application now, but I'm not able to
publish it even though I have the required permission. Jithendra also
checked with the super user, but the same problem. What could be the issue
here?

Regards,
Chanuka.

On Tue, May 3, 2016 at 10:02 AM, Dinusha Senanayaka 
wrote:

> Hi Chanuka,
>
> This seems to be a issue with setting permissions to registry resource in
> mounted environment [1]. Will provide a patch ASAP.
>
> [1] https://wso2.org/jira/browse/REGISTRY-2214
>
> Regards,
> Dinusha.
>
> On Mon, May 2, 2016 at 12:14 PM, Chanuka Dissanayake 
> wrote:
>
>> What is the deployment ? Not a standalone setup of 1.2.0-M3 right ?
>>
>>
>> Yes, not a standalone. I have tried a new app but same error.
>>
>> Did you check the the permissions section in the resource metadata page
>>> in registry browser. Were they properly set?
>>>
>>> @jithendra, could you check this.
>>
>> On Mon, May 2, 2016 at 12:02 PM, Denuwanthi De Silva > > wrote:
>>
>>> Hi Chanuka,
>>>
>>> Did you check the the permissions section in the resource metadata page
>>> in registry browser. Were they properly set?
>>> Check the user core versions as it could be related to issues at [1][2].
>>>
>>> [1]https://wso2.org/jira/browse/CARBON-15771
>>> [2]https://wso2.org/jira/browse/IDENTITY-4291
>>>
>>> On Mon, May 2, 2016 at 11:52 AM, Dinusha Senanayaka 
>>> wrote:
>>>
 Hi Chanuka,

 What is the deployment ? Not a standalone setup of 1.2.0-M3 right ?
 Btw, it says web app already exist. May be transaction failed at
 intermediate state, if you tried to add it several times. Can you try
 adding new app with different name and context too.

 Regards,
 Dinusha.

 On Mon, May 2, 2016 at 11:46 AM, Chanuka Dissanayake 
 wrote:

> Hi,
>
> AppM version : 1.2.0 M3.
> I'm getting the $subject while trying to add an application *[1]* (I
> have the required permission). But when I tried to add the same 
> application
> again, it's mentioning, Message,
>
>
> *Error occurred while adding the WebApp. A duplicate WebApp already
> exists with name - 'MyApp' and version - '1.0.0'*
>
> *[1]*
>
> TID: [-1234] [] [2016-05-02 11:29:55,652]  WARN
> {org.wso2.carbon.registry.core.jdbc.Repository} -  User
> chan...@wso2.com is not authorized to read the resource
> /_system/governance/appmgt/applicationdata/provider/chanuka-AT-wso2.com/MyApp/1.0.0/webapp.
> {org.wso2.carbon.registry.core.jdbc.Repository}
> TID: [-1234] [] [2016-05-02 11:29:55,660] ERROR
> {JAGGERY.assets.default.asset:jag} -
>  org.mozilla.javascript.WrappedException: Wrapped
> org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:
> Resource does not exist at path
> /_system/governance/appmgt/applicationdata/provider/chanuka-AT-wso2.com/MyApp/1.0.0/webapp
> (/scripts/registry/registry-osgi.js#268)
> at
> org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
> at
> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
> at
> org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
> at
> org.jaggeryjs.rhino..scripts.registry.c0._c_anonymous_25(/scripts/registry/registry-osgi.js:268)
> at
> org.jaggeryjs.rhino..scripts.registry.c0.call(/scripts/registry/registry-osgi.js)
> at
> org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
> at
> org.jaggeryjs.rhino..scripts.registry.c0._c_anonymous_25(/scripts/registry/artifacts.js:360)
> at
> org.jaggeryjs.rhino..scripts.registry.c0.call(/scripts/registry/artifacts.js)
> at
> org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
> at
> org.jaggeryjs.rhino.publisher.modules.ext.scripts.c5._c_anonymous_2(/publisher/modules/ext/scripts/asset.lifecycle.action.save.js:70)
> at
> org.jaggeryjs.rhino.publisher.modules.ext.scripts.c5.call(/publisher/modules/ext/scripts/asset.lifecycle.action.save.js)
> at
> org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
> at
> org.jaggeryjs.rhino.publisher.modules.ext.core.c2._c_anonymous_14(/publisher/modules/ext/core/extension.core.js:235)
> at
> org.jaggeryjs.rhino.publisher.modules.ext.core.c2.call(/publisher/modules/ext/core/extension.core.js)
> at
> org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
> at
> org.jaggeryjs.rhino.publisher.modules.ext.core.c3._c_anonymous_10(/publisher/modules/ext/core/extension.management.js:161)
> at
> org.jaggeryjs.rhino.publisher.modules.ext.core.c3.call(/publisher/modules/ext/core/extension.management.js)
> at
> org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
> at
> org.jaggeryjs.rhino.publisher.modules.ext.core.c3._c_anonymous_

Re: [Dev] [BPS Tooling] Installed Distribution module fails to build when migrated to Eclipse Mars

2016-05-02 Thread Nandika Jayawardana
Hi Awanthika,

You can let us know when the developer studio mars kernel is scheduled to
be released. What we want from BPS tooling point of view is to release the
currently completed human task editor and the migrated BPEL tooling ( from
luna to mars ) released as quickly as possible.

Regards
Nandika

On Tue, May 3, 2016 at 11:52 AM, Heshitha Hettihewa 
wrote:

> Hi kavith,
>
> Thanks a lot for pointing out , This was the cause for the build failure.
>
> Thanks.
>
> On Tue, May 3, 2016 at 11:44 AM, Heshitha Hettihewa 
> wrote:
>
>> Hi Awanthika,
>>
>> Thanks a lot. I will add a profile in the main pom as you mentioned.
>>
>> Thanks.
>>
>> On Tue, May 3, 2016 at 11:39 AM, Kavith Lokuhewage 
>> wrote:
>>
>>> Hi Hasitha,
>>>
>>> Seems like eclipse mars releases are still not deployed to wso2 maven.
>>> Since these packs are configured as pom dependencies in installed
>>> distribution module, maven tries to download them from the configured nexus
>>> repos. We will have to get them deployed to nexus first .
>>>
>>> Thanks
>>>
>>> On Tue, May 3, 2016 at 11:33 AM, Heshitha Hettihewa 
>>> wrote:
>>>
 Hi all,

 Currently I'm in the process of migrating BPEL plugins and Human Task
 editor plugin into Eclipse Mars. In installed distributions module I have
 updated the existing luna repos into new mars repos according to this [1].
 But when I'm trying to build the installed distributions module I'm getting
 this build error.

 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:unpack
 (1-unpack-p2-agent-distribution) on project
 developer-studio-bps-eclipse-jee-mars-linux-gtk: Unable to find artifact.
 Could not find artifact
 org.eclipse:eclipse-jee-mars-2-linux-gtk:tar.gz:4.5.2 in wso2-maven2-repo (
 http://dist.wso2.org/maven2/)
 [ERROR]
 [ERROR] Try downloading the file manually from the project website.
 [ERROR]
 [ERROR] Then, install it using the command:
 [ERROR] mvn install:install-file -DgroupId=org.eclipse
 -DartifactId=eclipse-jee-mars-2-linux-gtk -Dversion=4.5.2
 -Dpackaging=tar.gz -Dfile=/path/to/file
 [ERROR]
 [ERROR] Alternatively, if you host your own repository you can deploy
 the file there:
 [ERROR] mvn deploy:deploy-file -DgroupId=org.eclipse
 -DartifactId=eclipse-jee-mars-2-linux-gtk -Dversion=4.5.2
 -Dpackaging=tar.gz -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
 [ERROR]
 [ERROR]
 [ERROR] org.eclipse:eclipse-jee-mars-2-linux-gtk:tar.gz:4.5.2
 [ERROR]
 [ERROR] from the specified remote repositories:
 [ERROR] wso2-maven2-repo (http://dist.wso2.org/maven2/, releases=true,
 snapshots=true),
 [ERROR] DevS-Deps-p2-Repository (
 http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/kernel/releases/,
 releases=false, snapshots=false),
 [ERROR] Eclipse-p2-repo (http://download.eclipse.org/releases/mars/,
 releases=false, snapshots=false),
 [ERROR] WSO2-Nexus-Maven-Repository (
 http://maven.wso2.org/nexus/content/groups/wso2-public/,
 releases=true, snapshots=true),
 [ERROR] Maven-Central-Repo (http://repo1.maven.org/maven/,
 releases=true, snapshots=true),
 [ERROR] DevS-Kernel-p2-releases-Repository (
 http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/kernel/releases/,
 releases=false, snapshots=false),
 [ERROR] DevS-Platform-p2-releases-Repository (
 http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/platform-bundles/releases/,
 releases=false, snapshots=false),
 [ERROR] Additional-Tools-p2-Repository (
 http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.0.0/additional-tools/releases/p2/,
 releases=false, snapshots=false),
 [ERROR] WSO2-p2-Repository (
 http://product-dist.wso2.com/p2/carbon/releases/wilkes/,
 releases=false, snapshots=false),
 [ERROR] WSO2-Nexus-Maven-SNAPSHOT-Repository (
 http://maven.wso2.org/nexus/content/repositories/wso2.maven2.snapshot/,
 releases=true, snapshots=true),
 [ERROR] central (http://repo.maven.apache.org/maven2, releases=true,
 snapshots=false)

 any suggestions on solving this?

 [1]. https://github.com/wso2/devstudio-tooling-esb

 Thanks,
 --
 Heshitha Hettihewa
 *Software Engineer*
 Mobile : +94716866386
 <%2B94%20%280%29%20773%20451194>
 heshit...@wso2.com

>>>
>>>
>>>
>>> --
>>> *Kavith Lokuhewage*
>>> Software Engineer
>>> WSO2 Inc. - http://wso2.com
>>> lean . enterprise . middleware
>>> Mobile - +9477-9-145-123 | +9471-455-6-401
>>> Linkedin 
>>> Twitter 
>>>
>>
>>
>>
>> --
>> Heshitha Hettihewa
>> *Software Engineer*
>> Mobile : +94716866386
>> <%2B94%20%280%29%20773%20451194>
>> heshit...@wso2.com
>>
>
>
>
> --
> Heshitha Hett

Re: [Dev] [BPS Tooling] Installed Distribution module fails to build when migrated to Eclipse Mars

2016-05-02 Thread Heshitha Hettihewa
Hi kavith,

Thanks a lot for pointing out , This was the cause for the build failure.

Thanks.

On Tue, May 3, 2016 at 11:44 AM, Heshitha Hettihewa 
wrote:

> Hi Awanthika,
>
> Thanks a lot. I will add a profile in the main pom as you mentioned.
>
> Thanks.
>
> On Tue, May 3, 2016 at 11:39 AM, Kavith Lokuhewage 
> wrote:
>
>> Hi Hasitha,
>>
>> Seems like eclipse mars releases are still not deployed to wso2 maven.
>> Since these packs are configured as pom dependencies in installed
>> distribution module, maven tries to download them from the configured nexus
>> repos. We will have to get them deployed to nexus first .
>>
>> Thanks
>>
>> On Tue, May 3, 2016 at 11:33 AM, Heshitha Hettihewa 
>> wrote:
>>
>>> Hi all,
>>>
>>> Currently I'm in the process of migrating BPEL plugins and Human Task
>>> editor plugin into Eclipse Mars. In installed distributions module I have
>>> updated the existing luna repos into new mars repos according to this [1].
>>> But when I'm trying to build the installed distributions module I'm getting
>>> this build error.
>>>
>>> [ERROR] Failed to execute goal
>>> org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:unpack
>>> (1-unpack-p2-agent-distribution) on project
>>> developer-studio-bps-eclipse-jee-mars-linux-gtk: Unable to find artifact.
>>> Could not find artifact
>>> org.eclipse:eclipse-jee-mars-2-linux-gtk:tar.gz:4.5.2 in wso2-maven2-repo (
>>> http://dist.wso2.org/maven2/)
>>> [ERROR]
>>> [ERROR] Try downloading the file manually from the project website.
>>> [ERROR]
>>> [ERROR] Then, install it using the command:
>>> [ERROR] mvn install:install-file -DgroupId=org.eclipse
>>> -DartifactId=eclipse-jee-mars-2-linux-gtk -Dversion=4.5.2
>>> -Dpackaging=tar.gz -Dfile=/path/to/file
>>> [ERROR]
>>> [ERROR] Alternatively, if you host your own repository you can deploy
>>> the file there:
>>> [ERROR] mvn deploy:deploy-file -DgroupId=org.eclipse
>>> -DartifactId=eclipse-jee-mars-2-linux-gtk -Dversion=4.5.2
>>> -Dpackaging=tar.gz -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>>> [ERROR]
>>> [ERROR]
>>> [ERROR] org.eclipse:eclipse-jee-mars-2-linux-gtk:tar.gz:4.5.2
>>> [ERROR]
>>> [ERROR] from the specified remote repositories:
>>> [ERROR] wso2-maven2-repo (http://dist.wso2.org/maven2/, releases=true,
>>> snapshots=true),
>>> [ERROR] DevS-Deps-p2-Repository (
>>> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/kernel/releases/,
>>> releases=false, snapshots=false),
>>> [ERROR] Eclipse-p2-repo (http://download.eclipse.org/releases/mars/,
>>> releases=false, snapshots=false),
>>> [ERROR] WSO2-Nexus-Maven-Repository (
>>> http://maven.wso2.org/nexus/content/groups/wso2-public/, releases=true,
>>> snapshots=true),
>>> [ERROR] Maven-Central-Repo (http://repo1.maven.org/maven/,
>>> releases=true, snapshots=true),
>>> [ERROR] DevS-Kernel-p2-releases-Repository (
>>> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/kernel/releases/,
>>> releases=false, snapshots=false),
>>> [ERROR] DevS-Platform-p2-releases-Repository (
>>> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/platform-bundles/releases/,
>>> releases=false, snapshots=false),
>>> [ERROR] Additional-Tools-p2-Repository (
>>> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.0.0/additional-tools/releases/p2/,
>>> releases=false, snapshots=false),
>>> [ERROR] WSO2-p2-Repository (
>>> http://product-dist.wso2.com/p2/carbon/releases/wilkes/,
>>> releases=false, snapshots=false),
>>> [ERROR] WSO2-Nexus-Maven-SNAPSHOT-Repository (
>>> http://maven.wso2.org/nexus/content/repositories/wso2.maven2.snapshot/,
>>> releases=true, snapshots=true),
>>> [ERROR] central (http://repo.maven.apache.org/maven2, releases=true,
>>> snapshots=false)
>>>
>>> any suggestions on solving this?
>>>
>>> [1]. https://github.com/wso2/devstudio-tooling-esb
>>>
>>> Thanks,
>>> --
>>> Heshitha Hettihewa
>>> *Software Engineer*
>>> Mobile : +94716866386
>>> <%2B94%20%280%29%20773%20451194>
>>> heshit...@wso2.com
>>>
>>
>>
>>
>> --
>> *Kavith Lokuhewage*
>> Software Engineer
>> WSO2 Inc. - http://wso2.com
>> lean . enterprise . middleware
>> Mobile - +9477-9-145-123 | +9471-455-6-401
>> Linkedin 
>> Twitter 
>>
>
>
>
> --
> Heshitha Hettihewa
> *Software Engineer*
> Mobile : +94716866386
> <%2B94%20%280%29%20773%20451194>
> heshit...@wso2.com
>



-- 
Heshitha Hettihewa
*Software Engineer*
Mobile : +94716866386
<%2B94%20%280%29%20773%20451194>
heshit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS Tooling] Installed Distribution module fails to build when migrated to Eclipse Mars

2016-05-02 Thread Heshitha Hettihewa
Hi Awanthika,

Thanks a lot. I will add a profile in the main pom as you mentioned.

Thanks.

On Tue, May 3, 2016 at 11:39 AM, Kavith Lokuhewage  wrote:

> Hi Hasitha,
>
> Seems like eclipse mars releases are still not deployed to wso2 maven.
> Since these packs are configured as pom dependencies in installed
> distribution module, maven tries to download them from the configured nexus
> repos. We will have to get them deployed to nexus first .
>
> Thanks
>
> On Tue, May 3, 2016 at 11:33 AM, Heshitha Hettihewa 
> wrote:
>
>> Hi all,
>>
>> Currently I'm in the process of migrating BPEL plugins and Human Task
>> editor plugin into Eclipse Mars. In installed distributions module I have
>> updated the existing luna repos into new mars repos according to this [1].
>> But when I'm trying to build the installed distributions module I'm getting
>> this build error.
>>
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:unpack
>> (1-unpack-p2-agent-distribution) on project
>> developer-studio-bps-eclipse-jee-mars-linux-gtk: Unable to find artifact.
>> Could not find artifact
>> org.eclipse:eclipse-jee-mars-2-linux-gtk:tar.gz:4.5.2 in wso2-maven2-repo (
>> http://dist.wso2.org/maven2/)
>> [ERROR]
>> [ERROR] Try downloading the file manually from the project website.
>> [ERROR]
>> [ERROR] Then, install it using the command:
>> [ERROR] mvn install:install-file -DgroupId=org.eclipse
>> -DartifactId=eclipse-jee-mars-2-linux-gtk -Dversion=4.5.2
>> -Dpackaging=tar.gz -Dfile=/path/to/file
>> [ERROR]
>> [ERROR] Alternatively, if you host your own repository you can deploy the
>> file there:
>> [ERROR] mvn deploy:deploy-file -DgroupId=org.eclipse
>> -DartifactId=eclipse-jee-mars-2-linux-gtk -Dversion=4.5.2
>> -Dpackaging=tar.gz -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>> [ERROR]
>> [ERROR]
>> [ERROR] org.eclipse:eclipse-jee-mars-2-linux-gtk:tar.gz:4.5.2
>> [ERROR]
>> [ERROR] from the specified remote repositories:
>> [ERROR] wso2-maven2-repo (http://dist.wso2.org/maven2/, releases=true,
>> snapshots=true),
>> [ERROR] DevS-Deps-p2-Repository (
>> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/kernel/releases/,
>> releases=false, snapshots=false),
>> [ERROR] Eclipse-p2-repo (http://download.eclipse.org/releases/mars/,
>> releases=false, snapshots=false),
>> [ERROR] WSO2-Nexus-Maven-Repository (
>> http://maven.wso2.org/nexus/content/groups/wso2-public/, releases=true,
>> snapshots=true),
>> [ERROR] Maven-Central-Repo (http://repo1.maven.org/maven/,
>> releases=true, snapshots=true),
>> [ERROR] DevS-Kernel-p2-releases-Repository (
>> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/kernel/releases/,
>> releases=false, snapshots=false),
>> [ERROR] DevS-Platform-p2-releases-Repository (
>> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/platform-bundles/releases/,
>> releases=false, snapshots=false),
>> [ERROR] Additional-Tools-p2-Repository (
>> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.0.0/additional-tools/releases/p2/,
>> releases=false, snapshots=false),
>> [ERROR] WSO2-p2-Repository (
>> http://product-dist.wso2.com/p2/carbon/releases/wilkes/, releases=false,
>> snapshots=false),
>> [ERROR] WSO2-Nexus-Maven-SNAPSHOT-Repository (
>> http://maven.wso2.org/nexus/content/repositories/wso2.maven2.snapshot/,
>> releases=true, snapshots=true),
>> [ERROR] central (http://repo.maven.apache.org/maven2, releases=true,
>> snapshots=false)
>>
>> any suggestions on solving this?
>>
>> [1]. https://github.com/wso2/devstudio-tooling-esb
>>
>> Thanks,
>> --
>> Heshitha Hettihewa
>> *Software Engineer*
>> Mobile : +94716866386
>> <%2B94%20%280%29%20773%20451194>
>> heshit...@wso2.com
>>
>
>
>
> --
> *Kavith Lokuhewage*
> Software Engineer
> WSO2 Inc. - http://wso2.com
> lean . enterprise . middleware
> Mobile - +9477-9-145-123 | +9471-455-6-401
> Linkedin 
> Twitter 
>



-- 
Heshitha Hettihewa
*Software Engineer*
Mobile : +94716866386
<%2B94%20%280%29%20773%20451194>
heshit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS Tooling] Installed Distribution module fails to build when migrated to Eclipse Mars

2016-05-02 Thread Kavith Lokuhewage
Hi Hasitha,

Seems like eclipse mars releases are still not deployed to wso2 maven.
Since these packs are configured as pom dependencies in installed
distribution module, maven tries to download them from the configured nexus
repos. We will have to get them deployed to nexus first .

Thanks

On Tue, May 3, 2016 at 11:33 AM, Heshitha Hettihewa 
wrote:

> Hi all,
>
> Currently I'm in the process of migrating BPEL plugins and Human Task
> editor plugin into Eclipse Mars. In installed distributions module I have
> updated the existing luna repos into new mars repos according to this [1].
> But when I'm trying to build the installed distributions module I'm getting
> this build error.
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:unpack
> (1-unpack-p2-agent-distribution) on project
> developer-studio-bps-eclipse-jee-mars-linux-gtk: Unable to find artifact.
> Could not find artifact
> org.eclipse:eclipse-jee-mars-2-linux-gtk:tar.gz:4.5.2 in wso2-maven2-repo (
> http://dist.wso2.org/maven2/)
> [ERROR]
> [ERROR] Try downloading the file manually from the project website.
> [ERROR]
> [ERROR] Then, install it using the command:
> [ERROR] mvn install:install-file -DgroupId=org.eclipse
> -DartifactId=eclipse-jee-mars-2-linux-gtk -Dversion=4.5.2
> -Dpackaging=tar.gz -Dfile=/path/to/file
> [ERROR]
> [ERROR] Alternatively, if you host your own repository you can deploy the
> file there:
> [ERROR] mvn deploy:deploy-file -DgroupId=org.eclipse
> -DartifactId=eclipse-jee-mars-2-linux-gtk -Dversion=4.5.2
> -Dpackaging=tar.gz -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> [ERROR]
> [ERROR]
> [ERROR] org.eclipse:eclipse-jee-mars-2-linux-gtk:tar.gz:4.5.2
> [ERROR]
> [ERROR] from the specified remote repositories:
> [ERROR] wso2-maven2-repo (http://dist.wso2.org/maven2/, releases=true,
> snapshots=true),
> [ERROR] DevS-Deps-p2-Repository (
> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/kernel/releases/,
> releases=false, snapshots=false),
> [ERROR] Eclipse-p2-repo (http://download.eclipse.org/releases/mars/,
> releases=false, snapshots=false),
> [ERROR] WSO2-Nexus-Maven-Repository (
> http://maven.wso2.org/nexus/content/groups/wso2-public/, releases=true,
> snapshots=true),
> [ERROR] Maven-Central-Repo (http://repo1.maven.org/maven/, releases=true,
> snapshots=true),
> [ERROR] DevS-Kernel-p2-releases-Repository (
> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/kernel/releases/,
> releases=false, snapshots=false),
> [ERROR] DevS-Platform-p2-releases-Repository (
> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/platform-bundles/releases/,
> releases=false, snapshots=false),
> [ERROR] Additional-Tools-p2-Repository (
> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.0.0/additional-tools/releases/p2/,
> releases=false, snapshots=false),
> [ERROR] WSO2-p2-Repository (
> http://product-dist.wso2.com/p2/carbon/releases/wilkes/, releases=false,
> snapshots=false),
> [ERROR] WSO2-Nexus-Maven-SNAPSHOT-Repository (
> http://maven.wso2.org/nexus/content/repositories/wso2.maven2.snapshot/,
> releases=true, snapshots=true),
> [ERROR] central (http://repo.maven.apache.org/maven2, releases=true,
> snapshots=false)
>
> any suggestions on solving this?
>
> [1]. https://github.com/wso2/devstudio-tooling-esb
>
> Thanks,
> --
> Heshitha Hettihewa
> *Software Engineer*
> Mobile : +94716866386
> <%2B94%20%280%29%20773%20451194>
> heshit...@wso2.com
>



-- 
*Kavith Lokuhewage*
Software Engineer
WSO2 Inc. - http://wso2.com
lean . enterprise . middleware
Mobile - +9477-9-145-123 | +9471-455-6-401
Linkedin   Twitter

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS Tooling] Installed Distribution module fails to build when migrated to Eclipse Mars

2016-05-02 Thread Awanthika Senarath
Hello Heshitha,

As explained offline this is because the Eclipse Mars distributions are not
added to the WSO2 reposiroty yet. Previous developer studio versions were
based on eclipse Luna.

We will be adding it once we release the developer studio kernel. until
then please build your product tooling without installed distributions.

Please note that Installed distributions should be built and released with
the final release only.

Please implement a profile in your main pom to ensure you do not build
installed distributions in normal builds a it consumes a lot of resources.


Regards
Awanthika

Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Tue, May 3, 2016 at 11:33 AM, Heshitha Hettihewa 
wrote:

> Hi all,
>
> Currently I'm in the process of migrating BPEL plugins and Human Task
> editor plugin into Eclipse Mars. In installed distributions module I have
> updated the existing luna repos into new mars repos according to this [1].
> But when I'm trying to build the installed distributions module I'm getting
> this build error.
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:unpack
> (1-unpack-p2-agent-distribution) on project
> developer-studio-bps-eclipse-jee-mars-linux-gtk: Unable to find artifact.
> Could not find artifact
> org.eclipse:eclipse-jee-mars-2-linux-gtk:tar.gz:4.5.2 in wso2-maven2-repo (
> http://dist.wso2.org/maven2/)
> [ERROR]
> [ERROR] Try downloading the file manually from the project website.
> [ERROR]
> [ERROR] Then, install it using the command:
> [ERROR] mvn install:install-file -DgroupId=org.eclipse
> -DartifactId=eclipse-jee-mars-2-linux-gtk -Dversion=4.5.2
> -Dpackaging=tar.gz -Dfile=/path/to/file
> [ERROR]
> [ERROR] Alternatively, if you host your own repository you can deploy the
> file there:
> [ERROR] mvn deploy:deploy-file -DgroupId=org.eclipse
> -DartifactId=eclipse-jee-mars-2-linux-gtk -Dversion=4.5.2
> -Dpackaging=tar.gz -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> [ERROR]
> [ERROR]
> [ERROR] org.eclipse:eclipse-jee-mars-2-linux-gtk:tar.gz:4.5.2
> [ERROR]
> [ERROR] from the specified remote repositories:
> [ERROR] wso2-maven2-repo (http://dist.wso2.org/maven2/, releases=true,
> snapshots=true),
> [ERROR] DevS-Deps-p2-Repository (
> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/kernel/releases/,
> releases=false, snapshots=false),
> [ERROR] Eclipse-p2-repo (http://download.eclipse.org/releases/mars/,
> releases=false, snapshots=false),
> [ERROR] WSO2-Nexus-Maven-Repository (
> http://maven.wso2.org/nexus/content/groups/wso2-public/, releases=true,
> snapshots=true),
> [ERROR] Maven-Central-Repo (http://repo1.maven.org/maven/, releases=true,
> snapshots=true),
> [ERROR] DevS-Kernel-p2-releases-Repository (
> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/kernel/releases/,
> releases=false, snapshots=false),
> [ERROR] DevS-Platform-p2-releases-Repository (
> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/platform-bundles/releases/,
> releases=false, snapshots=false),
> [ERROR] Additional-Tools-p2-Repository (
> http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.0.0/additional-tools/releases/p2/,
> releases=false, snapshots=false),
> [ERROR] WSO2-p2-Repository (
> http://product-dist.wso2.com/p2/carbon/releases/wilkes/, releases=false,
> snapshots=false),
> [ERROR] WSO2-Nexus-Maven-SNAPSHOT-Repository (
> http://maven.wso2.org/nexus/content/repositories/wso2.maven2.snapshot/,
> releases=true, snapshots=true),
> [ERROR] central (http://repo.maven.apache.org/maven2, releases=true,
> snapshots=false)
>
> any suggestions on solving this?
>
> [1]. https://github.com/wso2/devstudio-tooling-esb
>
> Thanks,
> --
> Heshitha Hettihewa
> *Software Engineer*
> Mobile : +94716866386
> <%2B94%20%280%29%20773%20451194>
> heshit...@wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [BPS Tooling] Installed Distribution module fails to build when migrated to Eclipse Mars

2016-05-02 Thread Heshitha Hettihewa
Hi all,

Currently I'm in the process of migrating BPEL plugins and Human Task
editor plugin into Eclipse Mars. In installed distributions module I have
updated the existing luna repos into new mars repos according to this [1].
But when I'm trying to build the installed distributions module I'm getting
this build error.

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:unpack
(1-unpack-p2-agent-distribution) on project
developer-studio-bps-eclipse-jee-mars-linux-gtk: Unable to find artifact.
Could not find artifact
org.eclipse:eclipse-jee-mars-2-linux-gtk:tar.gz:4.5.2 in wso2-maven2-repo (
http://dist.wso2.org/maven2/)
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.eclipse
-DartifactId=eclipse-jee-mars-2-linux-gtk -Dversion=4.5.2
-Dpackaging=tar.gz -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the
file there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.eclipse
-DartifactId=eclipse-jee-mars-2-linux-gtk -Dversion=4.5.2
-Dpackaging=tar.gz -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR]
[ERROR] org.eclipse:eclipse-jee-mars-2-linux-gtk:tar.gz:4.5.2
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] wso2-maven2-repo (http://dist.wso2.org/maven2/, releases=true,
snapshots=true),
[ERROR] DevS-Deps-p2-Repository (
http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/kernel/releases/,
releases=false, snapshots=false),
[ERROR] Eclipse-p2-repo (http://download.eclipse.org/releases/mars/,
releases=false, snapshots=false),
[ERROR] WSO2-Nexus-Maven-Repository (
http://maven.wso2.org/nexus/content/groups/wso2-public/, releases=true,
snapshots=true),
[ERROR] Maven-Central-Repo (http://repo1.maven.org/maven/, releases=true,
snapshots=true),
[ERROR] DevS-Kernel-p2-releases-Repository (
http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/kernel/releases/,
releases=false, snapshots=false),
[ERROR] DevS-Platform-p2-releases-Repository (
http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.1.0/platform-bundles/releases/,
releases=false, snapshots=false),
[ERROR] Additional-Tools-p2-Repository (
http://builder1.us1.wso2.org/~developerstudio/developer-studio-kernel/4.0.0/additional-tools/releases/p2/,
releases=false, snapshots=false),
[ERROR] WSO2-p2-Repository (
http://product-dist.wso2.com/p2/carbon/releases/wilkes/, releases=false,
snapshots=false),
[ERROR] WSO2-Nexus-Maven-SNAPSHOT-Repository (
http://maven.wso2.org/nexus/content/repositories/wso2.maven2.snapshot/,
releases=true, snapshots=true),
[ERROR] central (http://repo.maven.apache.org/maven2, releases=true,
snapshots=false)

any suggestions on solving this?

[1]. https://github.com/wso2/devstudio-tooling-esb

Thanks,
-- 
Heshitha Hettihewa
*Software Engineer*
Mobile : +94716866386
<%2B94%20%280%29%20773%20451194>
heshit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] java.lang.NoClassDefFoundError: org/wso2/caching/CachingConstants

2016-05-02 Thread Niranjan Karunanandham
Hi Bhathiya,

The source code for wso2caching-core [1] is available in the svn.

[1] -
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/dependencies/commons/caching/4.0.3/pom.xml

Regards,
Nira

On Tue, May 3, 2016 at 11:11 AM, Bhathiya Jayasekara 
wrote:

> Hi Manoj,
>
> I installed *synapse-nhttp-transport *feature in a carbon server. But it
> gave $subject. Dependency tree shows that it needs
> *org.wso2.caching:wso2caching-core:4.0.3. *
>
> *[INFO]
> org.apache.synapse:synapse-nhttp-transport:bundle:2.1.7-wso2v3-ALPHA*
> [INFO] +- org.apache.httpcomponents:httpcore:jar:4.3.3:compile
> [INFO] +- org.wso2.httpcomponents:httpcore-nio:jar:4.3.3-wso2v2:compile
> [INFO] +- org.apache.httpcomponents:httpclient:jar:4.3.6:compile
> [INFO] |  +- commons-logging:commons-logging:jar:1.1.1:compile (version
> managed from 1.1.3)
> [INFO] |  \- commons-codec:commons-codec:jar:1.2:compile (version managed
> from 1.6)
> [INFO] +- org.apache.axis2:axis2-transport-http:jar:1.6.1-wso2v12:compile
> [INFO] |  +- org.apache.axis2:axis2-kernel:jar:1.6.1-wso2v12:compile
> [INFO] |  |  +-
> org.apache.geronimo.specs:geronimo-ws-metadata_2.0_spec:jar:1.1.2:compile
> [INFO] |  |  +-
> org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1:compile
> [INFO] |  |  +- javax.servlet:servlet-api:jar:2.3:compile
> [INFO] |  |  +- commons-httpclient:commons-httpclient:jar:3.1:compile
> [INFO] |  |  +- commons-fileupload:commons-fileupload:jar:1.2:compile
> [INFO] |  |  +- wsdl4j:wsdl4j:jar:1.6.2:compile
> [INFO] |  |  +-
> org.apache.ws.commons.schema.wso2:XmlSchema:jar:1.4.7.wso2v3:compile
> [INFO] |  |  +- org.apache.woden:woden-api:jar:1.0M9:compile
> [INFO] |  |  |  \-
> org.apache.ws.commons.schema:XmlSchema:jar:1.4.3:compile (version managed
> from 1.4.7)
> [INFO] |  |  +- org.apache.woden:woden-impl-dom:jar:1.0M9:compile
> [INFO] |  |  |  \- org.apache.woden:woden-impl-commons:jar:1.0M9:compile
> [INFO] |  |  \- javax.ws.rs:jsr311-api:jar:1.0:compile
> [INFO] |  \- junit:junit:jar:4.8.2:test
> [INFO] +- org.bouncycastle:bcpkix-jdk15on:jar:1.52:compile
> [INFO] |  \- org.bouncycastle:bcprov-jdk15on:jar:1.52:compile
> [INFO] +- *org.wso2.caching:wso2caching-core:jar:4.0.3:compile*
>
> @esb team: shouldn't we upgrade this dependency?
>
> Thanks,
> Bhathiya
>
> On Tue, May 3, 2016 at 9:36 AM, Manoj Kumara  wrote:
>
>> Hi Bhathiya,
>>
>> On which products you get this error. Ideally packages on carbon should
>> be as org.wso2.carbon.*
>>
>> However Nira found this on code [1] which is before carbon era.
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/branches/carbon/2.0.3/commons/caching/modules/core/src/main/java/org/wso2/caching/CachingConstants.java
>> 
>>
>> *Manoj Kumara*
>> WSO2 Inc. *| **lean. enterprise. middleware.*
>> *Mobile:* +94 713 448188
>>
>> On Tue, May 3, 2016 at 12:18 AM, Bhathiya Jayasekara 
>> wrote:
>>
>>> Hi all,
>>>
>>> I'm trying to figure out which feature I need to install to get the
>>> class in $subject? Any help?
>>>
>>> Thanks,
>>> --
>>> *Bhathiya Jayasekara*
>>> *Senior Software Engineer,*
>>> *WSO2 inc., http://wso2.com *
>>>
>>> *Phone: +94715478185 <%2B94715478185>*
>>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>>> *
>>> *Twitter: https://twitter.com/bhathiyax *
>>> *Blog: http://movingaheadblog.blogspot.com
>>> *
>>>
>>
>>
>
>
> --
> *Bhathiya Jayasekara*
> *Senior Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>



-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Carbon Security Userstore JDBC 1.0.0 M1 Released !

2016-05-02 Thread Jayanga Kaushalya
*Carbon Security Userstore JDBC 1.0.0 M1 Released !*

We are pleased to announce the $subject.

This includes a JDBC based user store implementation for Carbon Security
CAAS with authentication, authorization (read only) and user management
(read only) support.

*Installing as a Carbon Feature*

You may install carbon-security-userstore-jdbc feature to your product
with:


  org.wso2.carbon.security.userstore
  org.wso2.carbon.security.userstore.jdbc.feature
  1.0.0-m1
  zip


Best Regards
Identity Server Team

*Jayanga Kaushalya*
Software Engineer
Mobile: +94777860160
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] java.lang.NoClassDefFoundError: org/wso2/caching/CachingConstants

2016-05-02 Thread Bhathiya Jayasekara
Hi Manoj,

I installed *synapse-nhttp-transport *feature in a carbon server. But it
gave $subject. Dependency tree shows that it needs
*org.wso2.caching:wso2caching-core:4.0.3. *

*[INFO]
org.apache.synapse:synapse-nhttp-transport:bundle:2.1.7-wso2v3-ALPHA*
[INFO] +- org.apache.httpcomponents:httpcore:jar:4.3.3:compile
[INFO] +- org.wso2.httpcomponents:httpcore-nio:jar:4.3.3-wso2v2:compile
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.3.6:compile
[INFO] |  +- commons-logging:commons-logging:jar:1.1.1:compile (version
managed from 1.1.3)
[INFO] |  \- commons-codec:commons-codec:jar:1.2:compile (version managed
from 1.6)
[INFO] +- org.apache.axis2:axis2-transport-http:jar:1.6.1-wso2v12:compile
[INFO] |  +- org.apache.axis2:axis2-kernel:jar:1.6.1-wso2v12:compile
[INFO] |  |  +-
org.apache.geronimo.specs:geronimo-ws-metadata_2.0_spec:jar:1.1.2:compile
[INFO] |  |  +-
org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1:compile
[INFO] |  |  +- javax.servlet:servlet-api:jar:2.3:compile
[INFO] |  |  +- commons-httpclient:commons-httpclient:jar:3.1:compile
[INFO] |  |  +- commons-fileupload:commons-fileupload:jar:1.2:compile
[INFO] |  |  +- wsdl4j:wsdl4j:jar:1.6.2:compile
[INFO] |  |  +-
org.apache.ws.commons.schema.wso2:XmlSchema:jar:1.4.7.wso2v3:compile
[INFO] |  |  +- org.apache.woden:woden-api:jar:1.0M9:compile
[INFO] |  |  |  \- org.apache.ws.commons.schema:XmlSchema:jar:1.4.3:compile
(version managed from 1.4.7)
[INFO] |  |  +- org.apache.woden:woden-impl-dom:jar:1.0M9:compile
[INFO] |  |  |  \- org.apache.woden:woden-impl-commons:jar:1.0M9:compile
[INFO] |  |  \- javax.ws.rs:jsr311-api:jar:1.0:compile
[INFO] |  \- junit:junit:jar:4.8.2:test
[INFO] +- org.bouncycastle:bcpkix-jdk15on:jar:1.52:compile
[INFO] |  \- org.bouncycastle:bcprov-jdk15on:jar:1.52:compile
[INFO] +- *org.wso2.caching:wso2caching-core:jar:4.0.3:compile*

@esb team: shouldn't we upgrade this dependency?

Thanks,
Bhathiya

On Tue, May 3, 2016 at 9:36 AM, Manoj Kumara  wrote:

> Hi Bhathiya,
>
> On which products you get this error. Ideally packages on carbon should be
> as org.wso2.carbon.*
>
> However Nira found this on code [1] which is before carbon era.
>
> [1]
> https://svn.wso2.org/repos/wso2/branches/carbon/2.0.3/commons/caching/modules/core/src/main/java/org/wso2/caching/CachingConstants.java
> 
>
> *Manoj Kumara*
> WSO2 Inc. *| **lean. enterprise. middleware.*
> *Mobile:* +94 713 448188
>
> On Tue, May 3, 2016 at 12:18 AM, Bhathiya Jayasekara 
> wrote:
>
>> Hi all,
>>
>> I'm trying to figure out which feature I need to install to get the class
>> in $subject? Any help?
>>
>> Thanks,
>> --
>> *Bhathiya Jayasekara*
>> *Senior Software Engineer,*
>> *WSO2 inc., http://wso2.com *
>>
>> *Phone: +94715478185 <%2B94715478185>*
>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>> *
>> *Twitter: https://twitter.com/bhathiyax *
>> *Blog: http://movingaheadblog.blogspot.com
>> *
>>
>
>


-- 
*Bhathiya Jayasekara*
*Senior Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] C5 based esb product build fails due to a missing dependancy in msf4j-core

2016-05-02 Thread Hasitha Aravinda
​I built MSF4J locally, But still we are getting build failures.

Installation failed.
Cannot complete the install because one or more required items could not be
found.
 Software being installed: WSO2 MSF4J Feature 1.1.0.SNAPSHOT
(org.wso2.msf4j.feature.group 1.1.0.SNAPSHOT)
 Missing requirement: swagger-jaxrs 1.5.8 (io.swagger.jaxrs 1.5.8) requires
'package com.google.common.base [18.0.0,19.0.0)' but it could not be found
 Cannot satisfy dependency:
  From: WSO2 MSF4J Feature 1.1.0.SNAPSHOT (org.wso2.msf4j.feature.group
1.1.0.SNAPSHOT)
  To: io.swagger.jaxrs [1.5.8]
Application failed, log file location:
/data/M2Repo/gitnew/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1462252647331.log

[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 BPS - Parent . SUCCESS [3.320s]
[INFO] WSO2 BPS - Distribution ... FAILURE [25.419s]
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 29.470s
[INFO] Finished at: Tue May 03 10:47:29 IST 2016
[INFO] Final Memory: 43M/972M
[INFO]

[ERROR] Failed to execute goal
org.wso2.carbon.maven:carbon-feature-plugin:2.0.0:install
(feature-installation) on project wso2bps: P2 publisher return code was 13
-> [Help 1]


Thanks,
Hasitha.

On Mon, May 2, 2016 at 3:46 PM, Afkham Azeez  wrote:

> If you don't build it locally, you will have to wait until the snapshot
> gets published to the Nexus repo.
>
> On Mon, May 2, 2016 at 3:36 PM, Himasha Guruge  wrote:
>
>>  Missing requirement: swagger-core 1.5.8 (io.swagger.core 1.5.8) requires
>> 'package com.fasterxml.jackson.dataformat.yaml [2.4.0,3.0.0)' but it could
>> not be found
>>
>>  Cannot satisfy dependency:
>>
>>   From: msf4j-analytics 1.1.0.SNAPSHOT (msf4j-analytics 1.1.0.SNAPSHOT)
>>
>>   To: package org.wso2.msf4j [1.1.0,2.0.0)
>>
>>  Cannot satisfy dependency:
>>
>>   From: msf4j-core 1.1.0.SNAPSHOT (msf4j-core 1.1.0.SNAPSHOT)
>>
>>   To: package io.swagger.util [1.5.0,2.0.0)
>>
>>  Cannot satisfy dependency:
>>
>>   From: WSO2 MSF4J Feature 1.1.0.SNAPSHOT (org.wso2.msf4j.feature.group
>> 1.1.0.SNAPSHOT)
>>
>>   To: msf4j-analytics [1.1.0.SNAPSHOT]
>>
>> On Mon, May 2, 2016 at 3:34 PM, Afkham Azeez  wrote:
>>
>>> What is the error?
>>>
>>> On Mon, May 2, 2016 at 3:34 PM, Himasha Guruge 
>>> wrote:
>>>
 Hi Azeez,

 Tried to build BPS branch, and the build is still failing.


 Thanks,
 Himasha

 On Mon, May 2, 2016 at 2:33 PM, Afkham Azeez  wrote:

> We'll add a test
>
> On Mon, May 2, 2016 at 1:48 PM, Sameera Jayasoma 
> wrote:
>
>> Hi Azeez/Samiyuru/Aruna,
>>
>> Can we add OSGi tests to avoid such failures in future?
>>
>> Thanks,
>> Sameera.
>>
>> On Mon, May 2, 2016 at 10:06 AM, Vinod Kavinda 
>> wrote:
>>
>>> Hi team,
>>>
>>> I'm getting the following error. It seems that "package
>>> io.swagger.util" is missing. Please resolve this.
>>>
>>> Installation failed.
>>>
>>> Cannot complete the install because one or more required items could
>>> not be found.
>>>
>>>  Software being installed: WSO2 MSF4J Feature 1.1.0.SNAPSHOT
>>> (org.wso2.msf4j.feature.group 1.1.0.SNAPSHOT)
>>>
>>>  Missing requirement: swagger-core 1.5.8 (io.swagger.core 1.5.8)
>>> requires 'package com.fasterxml.jackson.dataformat.yaml [2.4.0,3.0.0)' 
>>> but
>>> it could not be found
>>>
>>>  Cannot satisfy dependency:
>>>
>>>   From: msf4j-analytics 1.1.0.SNAPSHOT (msf4j-analytics
>>> 1.1.0.SNAPSHOT)
>>>
>>>   To: package org.wso2.msf4j [1.1.0,2.0.0)
>>>
>>>  Cannot satisfy dependency:
>>>
>>>   From: msf4j-core 1.1.0.SNAPSHOT (msf4j-core 1.1.0.SNAPSHOT)
>>>
>>>   To: package io.swagger.util [1.5.0,2.0.0)
>>>
>>>  Cannot satisfy dependency:
>>>
>>>   From: WSO2 MSF4J Feature 1.1.0.SNAPSHOT
>>> (org.wso2.msf4j.feature.group 1.1.0.SNAPSHOT)
>>>
>>>   To: msf4j-analytics [1.1.0.SNAPSHOT]
>>>
>>>
>>> Regards,
>>>
>>> Vinod
>>> --
>>> Vinod Kavinda
>>> Software Engineer
>>> *WSO2 Inc. - lean . enterprise . middleware .*
>>> Mobile : +94 (0) 712 415544
>>> Blog : http://soatechflicks.blogspot.com/
>>>
>>>
>>
>>
>> --
>> 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

Re: [Dev] APIM Getting SSLPeerUnverifiedException after upgrading to kernel 4.4.4

2016-05-02 Thread Malithi Edirisinghe
Hi Dulanja,

I tested the SLO flow and it works fine.
AFAIU, the problem occurs as products try to access through IPs, acting as
a client, while the server cert is by default 'localhost'. But, in IS I
don't think we have such flows.
Therefore, for IS, I don't think we should need that system property in
startup scripts. Instead isn't it better if we capture this in docs and
mention on the way to disable it. For products that fail we can have this
in the startup script. WDYT?

Thanks,
Malithi.

On Mon, May 2, 2016 at 5:10 PM, Dulanja Liyanage  wrote:

> @IS Team, I think IS will also fail in the back channel SLO flow?
>
> IMO, we could set that system property in the startup script, but there
> should be a Production Guideline in our docs to remove that at the
> production time. WDYT?
>
>
>
> On Mon, Apr 11, 2016 at 1:41 PM, Dinusha Senanayaka 
> wrote:
>
>> Hi All,
>>
>> Getting same exception in App Manager also after updating to
>> kernel-4.4.5. What is the resolution for this, can we continue with
>> "-Dorg.opensaml.httpclient.https.disableHostnameVerification=true \" system
>> property in startup script as Harsha suggested ?
>>
>> Regards,
>> Dinusha.
>>
>> On Tue, Apr 5, 2016 at 7:18 PM, Harsha Kumara  wrote:
>>
>>> Hi IS Team,
>>>
>>> It seems that the issue got resolved with the system property. We will
>>> needed to add it to our startup scripts. Any concerns on doing that?
>>>
>>> Thanks,
>>> Harsha
>>>
>>> On Tue, Apr 5, 2016 at 6:26 PM, Harsha Kumara  wrote:
>>>
 Boolean.getBoolean perform system property lookup. I'll try that
 solution and update.

 On Tue, Apr 5, 2016 at 6:20 PM, Harsha Kumara  wrote:

> I have done some analysis on this. In API Manager initial
> functionality works fine. When the access token is
> generated SAML2BearerGrantHandler doing DefaultBootstrap.bootstrap(); in
> opensaml library. With the new version of the opensaml library they have
> perform initializeHttpClient();[1] during the bootstrap. So the underline
> commons http client library socket factory has changed
> from SSLProtocolSocketFactory to TLSProtocolSocketFactory.
> In TLSProtocolSocketFactory it's perform host name verification which 
> cause
> this exception. When go through their code, they have tried to disable 
> this
> from System property. But implementation is doing Boolean.getBoolean
> instead of looking from System.getPropety[2] which seems bug. If this has
> worked, we could have set a system property.
>
> [1]
> /**
>  *  Initializes the Apache Commons HttpClient library.
>  */
> protected static void initializeHttpClient() {
> if
> (!Boolean.getBoolean(SYSPROP_HTTPCLIENT_HTTPS_DISABLE_HOSTNAME_VERIFICATION))
> {
> ProtocolSocketFactory socketFactory =
> new TLSProtocolSocketFactory(null, null, new
> StrictHostnameVerifier());
> Protocol.registerProtocol("https", new Protocol("https",
> socketFactory, 443));
> }
> }
>
> [2]
> /** System property used to disable global default HTTPS hostname
> verification in Apache Commons HttpClient. */
> public static final String
> SYSPROP_HTTPCLIENT_HTTPS_DISABLE_HOSTNAME_VERIFICATION =
> "org.opensaml.httpclient.https.disableHostnameVerification";
>
> Thanks,
> Harsha
>
>
> On Tue, Apr 5, 2016 at 5:48 PM, Nuwan Dias  wrote:
>
>> IS Team,
>>
>> It looks like the TLSProtocolSocketFactory isn't honouring the
>> HostName verification parameter. It always tries to do the hostname
>> verification. Looks like a buggy behaviour to me.
>>
>> This causes problems for API Manager and any other product which has
>> a distributed deployment (App Manager, DAS, etc) because it prevents http
>> clients within our code from accessing Admin Services of remote nodes. 
>> The
>> http clients fail since the server cert is by default for localhost and
>> whenever we try to access through IPs it fails. The only way to overcome
>> this is to create the proper certs and deploy on the server. Which is a
>> huge hassle for simple test scenarios.
>>
>> The TLSProtocolSocketFactory is being set when the SAMLBearerGrant is
>> being initialized. Until then things work fine. We either have to stop it
>> being set or use a version of opensaml which supports skipping the host
>> name verification (like our transports allow). Otherwise this is going to
>> be a huge blocker for our releases.
>>
>> Thanks,
>> NuwanD.
>>
>> On Thu, Mar 17, 2016 at 7:09 PM, Sam Sivayogam  wrote:
>>
>>> HI All,
>>>
>>> Had a offline chat with Pulasthi and got to know that in IS 5.0.8
>>> there was opensaml upgrade from 2.4.1 to 2.6.4. After going through [1] 
>>> got
>>> to know that there is a hostname verification introduced in opensaml 
>>> 2.6.4
>>>

Re: [Dev] [DEV][AppM] Cannot add web application 'Failed to add asset.'

2016-05-02 Thread Dinusha Senanayaka
Hi Chanuka,

This seems to be a issue with setting permissions to registry resource in
mounted environment [1]. Will provide a patch ASAP.

[1] https://wso2.org/jira/browse/REGISTRY-2214

Regards,
Dinusha.

On Mon, May 2, 2016 at 12:14 PM, Chanuka Dissanayake 
wrote:

> What is the deployment ? Not a standalone setup of 1.2.0-M3 right ?
>
>
> Yes, not a standalone. I have tried a new app but same error.
>
> Did you check the the permissions section in the resource metadata page in
>> registry browser. Were they properly set?
>>
>> @jithendra, could you check this.
>
> On Mon, May 2, 2016 at 12:02 PM, Denuwanthi De Silva 
> wrote:
>
>> Hi Chanuka,
>>
>> Did you check the the permissions section in the resource metadata page
>> in registry browser. Were they properly set?
>> Check the user core versions as it could be related to issues at [1][2].
>>
>> [1]https://wso2.org/jira/browse/CARBON-15771
>> [2]https://wso2.org/jira/browse/IDENTITY-4291
>>
>> On Mon, May 2, 2016 at 11:52 AM, Dinusha Senanayaka 
>> wrote:
>>
>>> Hi Chanuka,
>>>
>>> What is the deployment ? Not a standalone setup of 1.2.0-M3 right ?
>>> Btw, it says web app already exist. May be transaction failed at
>>> intermediate state, if you tried to add it several times. Can you try
>>> adding new app with different name and context too.
>>>
>>> Regards,
>>> Dinusha.
>>>
>>> On Mon, May 2, 2016 at 11:46 AM, Chanuka Dissanayake 
>>> wrote:
>>>
 Hi,

 AppM version : 1.2.0 M3.
 I'm getting the $subject while trying to add an application *[1]* (I
 have the required permission). But when I tried to add the same application
 again, it's mentioning, Message,


 *Error occurred while adding the WebApp. A duplicate WebApp already
 exists with name - 'MyApp' and version - '1.0.0'*

 *[1]*

 TID: [-1234] [] [2016-05-02 11:29:55,652]  WARN
 {org.wso2.carbon.registry.core.jdbc.Repository} -  User
 chan...@wso2.com is not authorized to read the resource
 /_system/governance/appmgt/applicationdata/provider/chanuka-AT-wso2.com/MyApp/1.0.0/webapp.
 {org.wso2.carbon.registry.core.jdbc.Repository}
 TID: [-1234] [] [2016-05-02 11:29:55,660] ERROR
 {JAGGERY.assets.default.asset:jag} -
  org.mozilla.javascript.WrappedException: Wrapped
 org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:
 Resource does not exist at path
 /_system/governance/appmgt/applicationdata/provider/chanuka-AT-wso2.com/MyApp/1.0.0/webapp
 (/scripts/registry/registry-osgi.js#268)
 at
 org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
 at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
 at
 org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
 at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
 at
 org.jaggeryjs.rhino..scripts.registry.c0._c_anonymous_25(/scripts/registry/registry-osgi.js:268)
 at
 org.jaggeryjs.rhino..scripts.registry.c0.call(/scripts/registry/registry-osgi.js)
 at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
 at
 org.jaggeryjs.rhino..scripts.registry.c0._c_anonymous_25(/scripts/registry/artifacts.js:360)
 at
 org.jaggeryjs.rhino..scripts.registry.c0.call(/scripts/registry/artifacts.js)
 at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
 at
 org.jaggeryjs.rhino.publisher.modules.ext.scripts.c5._c_anonymous_2(/publisher/modules/ext/scripts/asset.lifecycle.action.save.js:70)
 at
 org.jaggeryjs.rhino.publisher.modules.ext.scripts.c5.call(/publisher/modules/ext/scripts/asset.lifecycle.action.save.js)
 at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 org.jaggeryjs.rhino.publisher.modules.ext.core.c2._c_anonymous_14(/publisher/modules/ext/core/extension.core.js:235)
 at
 org.jaggeryjs.rhino.publisher.modules.ext.core.c2.call(/publisher/modules/ext/core/extension.core.js)
 at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 org.jaggeryjs.rhino.publisher.modules.ext.core.c3._c_anonymous_10(/publisher/modules/ext/core/extension.management.js:161)
 at
 org.jaggeryjs.rhino.publisher.modules.ext.core.c3.call(/publisher/modules/ext/core/extension.management.js)
 at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
 at
 org.jaggeryjs.rhino.publisher.modules.ext.core.c3._c_anonymous_8(/publisher/modules/ext/core/extension.management.js:111)
 at
 org.jaggeryjs.rhino.publisher.modules.ext.core.c3.call(/publisher/modules/ext/core/extension.management.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
 at
 org.jaggeryjs.rhino.publisher.assets.default.c1._c_anonymous_8(/publisher/assets/default/asset.jag:429)
 at
 org.jaggeryjs.rhino.publisher.assets.default.c1.call(/publisher/assets/default/asset

Re: [Dev] [GSOC2016]Proposal 4: [ML] Ensemble Methods Support for WSO2 Machine Learner

2016-05-02 Thread Supun Sethunga
Hi Misgana,

Any update on the progress?

Regards,

On Thu, Apr 28, 2016 at 7:10 PM, Supun Sethunga  wrote:

> Hi Misgana,
>
> Please find the answers inline.
>
> 1. Do I need only to work with carbon-ml repo or should the whole kernel
>> be installed?
>
> Don't need to build the kernal. Building carbon-ml [1] and then
> product-ml [2] would be enough.
>
> The Build from source Documentation site varies from what i have
>> setup(uses svn, downloads whole kernel). Should i follow this?
>
> Just download the source-code ([1] and [2]), and execute a "maven clean
> install" from the source directory. As I mentioned earlier, no need to
> download or build the Carbon Kernal.
>
> Could  you suggest on how to setup my dev environment? Currently I
>> installed Spark, converted my project to a maven project. But maven seems
>> not to properly compile.
>
> No need to install spark. Spark is only used as an external library
> (jars). If you are using Eclipse/IntelliJ IDEA, import the source-code as a
> maven project. IDE will automatically resolve the dependencies.
>
>  I implemented Gradientboosted to core/spark/Algorithms.
>
> What's the purpose of implementing Gradientboosted?
>
> Next step would be to modify *SupervisedSparkModelBuilder.*
>
> I think it would be easier for you to first (after finished with the above
> steps) write a simple standalone java client, which reads a simple dataset
> (a csv file) and build the ensemble model with Spark. Then you can
> integrate that logic to the SupervisedSparkModelBuilder, and eventually
> to the model-building workflow of WSO2 ML.
>
> [1] https://github.com/wso2/carbon-ml
> [2] https://github.com/wso2/product-ml
> [3] https://docs.wso2.com/display/ML110/Building+from+Source
>
> Regards,
> Supun
>
>
> On Thu, Apr 28, 2016 at 5:22 PM, misgana  wrote:
>
>> Hi Supun,
>>
>> My current workflow looks like this:
>> 1. Fork and clone carbon-ml repo form github  -- DONE
>> 2. Setup Dev environment -- IN PROGRESS
>> 3. Integrate GradientBoosted tree algorithm to carbon-ml  -- IN PROGRESS
>>
>> Issues:
>> 1. Do I need only to work with carbon-ml repo or should the whole kernel
>> be installed?
>> 2. The Build from source Documentation site varies from what i have
>> setup(uses svn, downloads whole kernel). Should i follow this?
>> 3.Could  you suggest on how to setup my dev environment? Currently I
>> installed Spark, converted my project to a maven project. But maven seems
>> not to properly compile.
>> 4. I implemented Gradientboosted to core/spark/Algorithms. Next step
>> would be to modify
>> *SupervisedSparkModelBuilder.  5. *Here I would check how this would be
>> integrated in the whole framework and test on Iris dataset.(On this I need
>> to do some reading)
>>
>> I would very appreciate your guidance on this plan/work in progress.
>>
>> Best,
>> Misgana
>>
>>
>>
>> On 26.04.2016 09:26, Misgana Negassi wrote:
>>
>> Hi Supun,
>> I have forked carbon-ml to my repo[1] and currently I am familiarizing
>> myself with the code and software architecture. I will make commits after
>> trying out with a new algorithm.
>>
>> [1] https://github.com/zemoel/carbon-ml
>>
>> On 26.04.2016 06:47, Supun Sethunga wrote:
>>
>> Hi Misgana,
>>
>> As you progress, please keep us posted too. It would be nice if you
>> can share your code as well (Github project). You can take a fork of repo
>> [1], and start working on your fork.
>>
>> [1] https://github.com/wso2/carbon-ml
>>
>> On Mon, Apr 25, 2016 at 7:57 PM, Misgana Negassi <
>> negas...@tf.uni-freiburg.de> wrote:
>>
>>> Hi Supun,
>>>
>>> Thank you for accepting me for this project!I am excited to work on it
>>> and start right away with the links you sent.
>>>
>>> Best,
>>> Misgana
>>>
>>>
>>>
>>> On 25.04.2016 12:06, Supun Sethunga wrote:
>>>
>>> Hi Misgana,
>>>
>>> Congratulations for getting accepted for the gsoc 2016! Hope you are
>>> ready to get started with the project.
>>>
>>> To get more familiarized with the code, I'm sharing the implementations
>>> of the current algorithms [1]. For your ensemble method, you need to add
>>> three more cases (for the three types of ensembles) for the method [2]. You
>>> may try out adding a new algorithm to he existing flow, and see how it
>>> works. Please feel free to raise any questions/issues you come across.
>>>
>>> [1]
>>> 
>>> https://github.com/wso2/carbon-ml/tree/master/components/ml/org.wso2.carbon.ml.core/src/main/java/org/wso2/carbon/ml/core/spark/algorithms
>>> [2]
>>> 
>>> https://github.com/wso2/carbon-ml/blob/master/components/ml/org.wso2.carbon.ml.core/src/main/java/org/wso2/carbon/ml/core/spark/algorithms/SupervisedSparkModelBuilder.java#L101
>>>
>>> Regards,
>>> Supun

Re: [Dev] APIM Automations tests are disabled

2016-05-02 Thread Nuwan Dias
On Mon, May 2, 2016 at 10:44 PM, Aparna Karunarathna 
wrote:

> Hi Nuwan,
>
> We have seen a lot of discrepancies in the automation test, so it would be
> good if you guys can fix those before the release.
>

If you can report whatever discrepancies you encounter that would be easy
for us to fix. Yes, we need to fix them, but its always a battle between
time and priorities. Right now we won't be putting a lot of focused effort
on validating ~500 test cases because in a few months time we anyway have
to re-write these tests to be on top of C5.

>
> Regards,
> Aparna
>
> On Mon, May 2, 2016 at 6:36 PM, Nuwan Dias  wrote:
>
>> Not sure why this was disabled. Maybe its because it uses the deprecated
>> YouTube API (it no longer works). These are very old tests coming even
>> before the wso2-dev repo days. So can't recall its entire history.
>>
>> However, there is a new test case called CopyNewVersionTestCase that
>> covers this scenario. So we haven't lost on coverage by disabling it.
>>
>> We have ~500 tests in the product now. And some of these are pretty old.
>> Yes, we need to refine and remove obsolete ones and we do that as we
>> encounter them. We will do this refining as priorities allow us to.
>>
>> Thanks,
>> NuwanD.
>>
>> On Mon, May 2, 2016 at 5:59 PM, Dharshana Warusavitharana <
>> dharsha...@wso2.com> wrote:
>>
>>> Hi APIM team,
>>>
>>> Please add comments when you are disabling tests like this. Or remove
>>> test completely if they are obsolete please remove them from the suite.
>>> And i see invalid test method description here.
>>>
>>> Please fix these ASAP.
>>>
>>> Thank you,
>>> Dharshana.
>>>
>>> On Mon, May 2, 2016 at 5:19 PM, Yasassri Ratnayake 
>>> wrote:
>>>
 Hi APIM Team,

 Observed the following test case at [1]. As shown below most test
 mrethods are disabled except for 2  in this test class and I couldn't find
 any comment explaining why these tests were disabled. Can we look into
 these and get them enabled?


 @Test(groups = {"wso2.am"}, description = "API visibility", enabled =
 false)
 public void copyAPILifeCycleTestCase() throws Exception {


 [1] -
 https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/other/APIApplicationLifeCycleTestCase.java#L363


 With Regards,
 --
 Yasassri Ratnayake
 Software Engineer - QA
 WSO2 Inc ; http://wso2.com
 lean.enterprise.middleware
 *Mobile : +94715933168 <%2B94715933168>*
 *Blogs : http://yasassriratnayake.blogspot.com
 *
 *http://wso2logs.blogspot.com
 *

>>>
>>>
>>>
>>> --
>>>
>>> Dharshana Warusavitharana
>>> Senior Software Engineer , Test Automation
>>> WSO2 Inc. http://wso2.com
>>> email : dharsha...@wso2.com 
>>> Tel  : +94 11 214 5345
>>> Fax :+94 11 2145300
>>> cell : +94770342233
>>> blog : http://dharshanaw.blogspot.com
>>>
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>> Nuwan Dias
>>
>> Technical Lead - WSO2, Inc. http://wso2.com
>> email : nuw...@wso2.com
>> Phone : +94 777 775 729
>>
>
>
>
> --
> *Regards,*
>
> *Aparna Karunarathna.*
>
>
> *Associate Technical Lead - QAWSO2 Inc.Mobile: 0714002533*
>



-- 
Nuwan Dias

Technical Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC 2016]Proposal 03: [ML]Visual(Deep) Neural Network Builder -Project Progress

2016-05-02 Thread Supun Sethunga
Hi Lakini,

Sorry for the delay in getting back to you. While you are reading about
DL4J, you can setup your dev environment and get familiarized with the
Machine Learner source code. For that, you can fork the following two
repos [1] [2] and try to build from the source (when you do some code
change to [1], you have to build the two repos in order). Implementations
of the existing algorithms can be found at [3]. You can refer those to get
an idea on the code conventions and the implementation patterns used.
Please feel free o ask if you have any questions.

Meantime, Upul will give you the steps on how to proceed with the project.

[1] https://github.com/wso2/carbon-ml
[2] https://github.com/wso2/product-ml
[3]
https://github.com/wso2/carbon-ml/tree/master/components/ml/org.wso2.carbon.ml.core/src/main/java/org/wso2/carbon/ml/core/spark/algorithms

Regards,
Supun

On Mon, May 2, 2016 at 8:26 AM, Lakini Senanayaka <
lakinisenanayak...@gmail.com> wrote:

> Hi,
>
> Thank you very much for accepting my project proposal and all the
> comments,feedback and help, you did to prepare a good proposal.
>
> I have started the project as in my project time line.
> These days I am reading DL4J concepts and it's documentation and started
> to learn Jaggery as it will be useful in front end development.As well as I
> have started learning REST APIs.
>
> I like to know WSO2 coding conventions and other information related to my
> project.I'm looking forward for further guidance.
>
>
> --
> Thank you.
>
> Sincerely,
> *Lakini Senanayaka.*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
http://wso2.com/
lean | enterprise | middleware
Mobile : +94 716546324
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] java.lang.NoClassDefFoundError: org/wso2/caching/CachingConstants

2016-05-02 Thread Manoj Kumara
Hi Bhathiya,

On which products you get this error. Ideally packages on carbon should be
as org.wso2.carbon.*

However Nira found this on code [1] which is before carbon era.

[1]
https://svn.wso2.org/repos/wso2/branches/carbon/2.0.3/commons/caching/modules/core/src/main/java/org/wso2/caching/CachingConstants.java


*Manoj Kumara*
WSO2 Inc. *| **lean. enterprise. middleware.*
*Mobile:* +94 713 448188

On Tue, May 3, 2016 at 12:18 AM, Bhathiya Jayasekara 
wrote:

> Hi all,
>
> I'm trying to figure out which feature I need to install to get the class
> in $subject? Any help?
>
> Thanks,
> --
> *Bhathiya Jayasekara*
> *Senior Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC2016: [ML][CEP] Predictive analytic with online data for WSO2 Machine Learner

2016-05-02 Thread Maheshakya Wijewardena
Hi Mahesh,

The earlier error you have mentioned may occur due to the incompatible
Siddhi versions in ML p2-repo and CEP, when you add the p2-repo from
prodcut-ml you built.
Current siddhi version in product-cep is 3.0.6-SNAPSHOT[1], but in ML it's
3.0.2.

Can you try changing the siddhi.version in carbon-ml/pom.xml to
3.0.6-SNAPSHOT, build carbon-ml, then build product-ml again. After this,
add p2-repo as a local repository again to fresh CEP pack and try it out.

Best regards.

On Mon, May 2, 2016 at 7:02 PM, Mahesh Dananjaya 
wrote:

> Hi Maheshakya,
> now i remotely debug the CEP extension for ML Prediction. What i did was,
> i have all the pre-build version of CEP and ML. Therefore i used that built
> CEP and did the same thing that i was doing with the source code. I think
> the only change i did was install those packages from remote p2 repo. This
> was work fine and i debugged the carbon-ml
> org.wso2.carbon.ml.siddhi.extension as described in the [1]. So now i have
> to try same thing with the build by source content.thank you.
>
> [1]
> https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions#WSO2CEPExtensionforMLPredictions-Siddhisyntaxfortheextension
>
> BR,
> Mahesh
>
> On Mon, Apr 25, 2016 at 5:49 PM, Maheshakya Wijewardena <
> mahesha...@wso2.com> wrote:
>
>> Hi Mahesh,
>>
>> Congratulations and welcome to GSoC 2016. You did a great job in
>> preparing the proposal. Now it's time to dig deep and get started with the
>> project.
>>
>> First of all you need to familiarize with the code base. We have agreed
>> to implement this with CEP event streams. We already have a CEP extension
>> for predictions [1][2]. Go through this implementation and familiarize your
>> self with that. You need to understand how:
>>
>>1. Even streams are consumed
>>2. predictions are made from individual event
>>3. Results are sent back
>>
>> Get WSO2 ML and CEP sources (You may use latest released version of CEP)
>> and build the products. Get both carbon-ml[3] and product-ml[4] masters and
>> create new branches for your work from masters.
>>
>> After you build the products, you may need to do remote debugging[5] to
>> understand the flow. So please follow an example of real time prediction
>> with ML with debugging and get some idea. The component you need to debug
>> is org.wso2.carbon.ml.siddhi.extension.
>>
>> Next tasks would be implementing online learning algorithms in plain java
>> with spark ml lib and integrating those to ML. We also need to come up with
>> a proper and detailed architecture to employ those algorithms in ML.
>> Getting familiar with the aforementioned sections would give you some
>> insight on how this should be implemented.
>>
>> So please try to get a quick grasp then you can start the implementation.
>> Let us know if you have any questions or you get stuck somewhere.
>>
>> Also, please always add WSO2 developer's list as well when you
>> communicate with us regarding the project so that you can get opinions and
>> feedback from others as well.
>>
>> Best regards.
>>
>> [1]
>> https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions#WSO2CEPExtensionforMLPredictions-Siddhisyntaxfortheextension
>>
>> [2]
>> https://github.com/wso2/carbon-ml/tree/master/components/extensions/org.wso2.carbon.ml.siddhi.extension
>>
>> [3] https://github.com/wso2/carbon-ml
>>
>> [4] https://github.com/wso2/product-ml
>>
>> [5] https://dzone.com/articles/how-debug-wso2-carbon-kernel
>>
>>
>> On Mon, Apr 25, 2016 at 3:33 PM, Mahesh Dananjaya <
>> dananjayamah...@gmail.com> wrote:
>>
>>> Hi,
>>> thank you for accepting my GSOC 2016 proposal and i am looking forward
>>> for the further instruction and project continuation. thank you very much.
>>> regards,
>>> Mahesh.
>>>
>>> --
>> Pruthuvi Maheshakya Wijewardena
>> mahesha...@wso2.com
>> +94711228855
>>
>>
>>
>


-- 
Pruthuvi Maheshakya Wijewardena
mahesha...@wso2.com
+94711228855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM Automations tests are disabled

2016-05-02 Thread Yasassri Ratnayake
Hi Nuwan,

I raised a JIRA to track this at [1]. Also, when it comes to
CopyNewVersionTestCase  I believe this scenario is covered under test cases
at [2]. This is another issue we observed, You guys have to take this into
consideration when writing test cases to avoid duplication of test cases.

[1] - https://wso2.org/jira/browse/APIMANAGER-4727
[2] -
https://github.com/wso2/product-apim/tree/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/version

Regards,

On Mon, May 2, 2016 at 10:44 PM, Aparna Karunarathna 
wrote:

> Hi Nuwan,
>
> We have seen a lot of discrepancies in the automation test, so it would be
> good if you guys can fix those before the release.
>
> Regards,
> Aparna
>
> On Mon, May 2, 2016 at 6:36 PM, Nuwan Dias  wrote:
>
>> Not sure why this was disabled. Maybe its because it uses the deprecated
>> YouTube API (it no longer works). These are very old tests coming even
>> before the wso2-dev repo days. So can't recall its entire history.
>>
>> However, there is a new test case called CopyNewVersionTestCase that
>> covers this scenario. So we haven't lost on coverage by disabling it.
>>
>> We have ~500 tests in the product now. And some of these are pretty old.
>> Yes, we need to refine and remove obsolete ones and we do that as we
>> encounter them. We will do this refining as priorities allow us to.
>>
>> Thanks,
>> NuwanD.
>>
>> On Mon, May 2, 2016 at 5:59 PM, Dharshana Warusavitharana <
>> dharsha...@wso2.com> wrote:
>>
>>> Hi APIM team,
>>>
>>> Please add comments when you are disabling tests like this. Or remove
>>> test completely if they are obsolete please remove them from the suite.
>>> And i see invalid test method description here.
>>>
>>> Please fix these ASAP.
>>>
>>> Thank you,
>>> Dharshana.
>>>
>>> On Mon, May 2, 2016 at 5:19 PM, Yasassri Ratnayake 
>>> wrote:
>>>
 Hi APIM Team,

 Observed the following test case at [1]. As shown below most test
 mrethods are disabled except for 2  in this test class and I couldn't find
 any comment explaining why these tests were disabled. Can we look into
 these and get them enabled?


 @Test(groups = {"wso2.am"}, description = "API visibility", enabled =
 false)
 public void copyAPILifeCycleTestCase() throws Exception {


 [1] -
 https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/other/APIApplicationLifeCycleTestCase.java#L363


 With Regards,
 --
 Yasassri Ratnayake
 Software Engineer - QA
 WSO2 Inc ; http://wso2.com
 lean.enterprise.middleware
 *Mobile : +94715933168 <%2B94715933168>*
 *Blogs : http://yasassriratnayake.blogspot.com
 *
 *http://wso2logs.blogspot.com
 *

>>>
>>>
>>>
>>> --
>>>
>>> Dharshana Warusavitharana
>>> Senior Software Engineer , Test Automation
>>> WSO2 Inc. http://wso2.com
>>> email : dharsha...@wso2.com 
>>> Tel  : +94 11 214 5345
>>> Fax :+94 11 2145300
>>> cell : +94770342233
>>> blog : http://dharshanaw.blogspot.com
>>>
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>> Nuwan Dias
>>
>> Technical Lead - WSO2, Inc. http://wso2.com
>> email : nuw...@wso2.com
>> Phone : +94 777 775 729
>>
>
>
>
> --
> *Regards,*
>
> *Aparna Karunarathna.*
>
>
> *Associate Technical Lead - QAWSO2 Inc.Mobile: 0714002533*
>



-- 
Yasassri Ratnayake
Software Engineer - QA
WSO2 Inc ; http://wso2.com
lean.enterprise.middleware
*Mobile : +94715933168*
*Blogs : http://yasassriratnayake.blogspot.com
*
*http://wso2logs.blogspot.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [Pet Project] Velocity Template Mediator for ESB

2016-05-02 Thread Asanka Dissanayake
Hi Chanaka,
is this the correct place to put the mediator. Wanted to double check ..
wso2-synapse/modules/core/src/main/java/org/apache/synapse/mediators/builtin

Thanks,
Asanka D

On Wed, Mar 16, 2016 at 10:41 PM, Chanaka Fernando 
wrote:

> Hi Asanka,
>
> you can send your PR to master branch.
>
> On Thu, Mar 17, 2016 at 8:06 AM, Asanka Dissanayake 
> wrote:
>
>> Thanks Chanaka, will do.
>> What is the branch I should send the pull request ?
>>
>> Thanks,
>> Asanka D
>>
>> On Wed, Mar 16, 2016 at 12:21 AM, Chanaka Fernando 
>> wrote:
>>
>>> Hi Asanka,
>>>
>>> I had a look into the feature set and it looks really useful. Please
>>> send us a PR and we will include this in a future ESB release.
>>>
>>> On Wed, Mar 16, 2016 at 9:05 AM, Asanka Dissanayake 
>>> wrote:
>>>
 Hi All,
 I am developing a new Mediator for ESB as a pet project. After noticing
 some draw backs in Payload Factory I thought of writing this one.

 Code can be found at :
 https://github.com/asanka88/VelocityTemplateMediator

 @ESB Team:
 If this make any sense, I am more than happy to contribute this with
 more improvements. This is still under development. I will upload samples
 soon. Your feedback is highly appreciated.
 Why Velocity Template Mediator ?

 Currently synapse comes with built in payloadFactory mediator. But
 there are several drawbacks in it.

 1 Doesn’t support arrays : You cannot iterate though an
 array/collection and add those elements to the payload.

 2 Doesn’t support conditional expressions: In case you want to add
 elements based on conditions payloadFactory doesn’t support it.

 3 Readability is less since numbered placeholders like $1,$2 are used

 How
 Velocity Template Mediator solve them?

 Velocity template mediator uses well known Apache Velocity as the
 template engine. You can do whatever you can do with Velocity in side this.
 Iterate through collections, check conditions etc. In addition to that
 since we are using place holders like $name,$age for the variables ,so it
 improves the readability as well.

 On the other hand, there was no such a thing in Synapse to create a
 property out of a template.

 For Example: When you call a soap back end, suppose you have to send a
 user name token in SOAP Header. Suppose there are several back end calls
 you need to make and in every call you need to pass the user name token.

 With the payload factory , you will have to create that part every
 time. Instead if you can create a property one time using a template and
 save it in the message context , you can reuse it without generating again
 and again.

 With the Velocity Template Mediator , it supports body,property,soap
 header,envelope as the targets. You can put the generated output to anyof
 these. And it supports both xml and json formats

 Sample Syntax

 

   
  $name
  $age
   


   
   

>>> property-type="string|om" scope="synapse|axis2|operation" />
 


 Thanks,
 Asanka D

 --


 *Asanka DissanayakeSoftware Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com
 *

 *email: asan...@wso2.com ,   blog:
 cyberwaadiya.blogspot.com
 , asankastechtalks.wordpress.com
   mobile: +94 71 8373821*

 ___
 Architecture mailing list
 architect...@wso2.org
 https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture


>>>
>>>
>>> --
>>> Thank you and Best Regards,
>>> Chanaka Fernando
>>> Senior Technical Lead
>>> WSO2, Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 773337238
>>> Blog : http://soatutorials.blogspot.com
>>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
>>> Twitter:https://twitter.com/chanakaudaya
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>>
>> *Asanka DissanayakeSoftware Engineer*
>> *WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>> *
>>
>> *email: asan...@wso2.com ,   blog:
>> cyberwaadiya.blogspot.com
>> , asankastechtalks.wordpress.com
>>   mobile: +94 71 8373821*
>>
>
>
>
> --
> Thank you and Best Regards,
> Chanaka Fernando
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:

Re: [Dev] [ESB Tooling][Mediation Debugger] Debugging inbound endpoints

2016-05-02 Thread Dilshani Subasinghe
Hi all,

This looks like an bug. Reported a jira [1].

[1] - https://wso2.org/jira/browse/DEVTOOLESB-192


Regards,
Dilshani


On Friday, 29 April 2016, Dilshani Subasinghe  wrote:

> Hi ESB Team,
>
> It seems like debugging point may not catch up when added debug point in
> sequence which is referring from inbound endpoint. Is that obvious case for
> a reason or a bug?
>
> Configuration:
>
>- Added HTTP inbound endpoint which is listen at port 8000
>and using a sequence
>- Added debug point at sequence mediator in inbound endpoint
>- Added debug points to mediators in sequence
>
> Result:
>
>- Debug point of sequence mediator in inbound endpoint may not
>identify by debugging process
>
> Any clarifications on this will be highly appreciated.
>
> Thank you.
>
> --
> Best Regards,
>
> Dilshani Subasinghe
> Software Engineer - QA
> WSO2, Inc.;http://wso2.com/
> 
> lean.enterprise.middleware
>
> Mobile: +94773375185
>
> Blog: dilshanilive.blogspot.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-05-02 Thread Asantha Thilina
Hi Tharindu,

i have done some coding in my new mongodb user store and i shared my code
here [1]  i will be developing it by referring JDBC user store in here[2]
,is their any wso2 coding conventions i should follow ?can you review my
code and give me a feedback is their any improvement to be done

[1] https://github.com/asanthamax/mongodbuserstore
[2]
https://svn.wso2.org/repos/wso2/branches/carbon/3.2.0/core/org.wso2.carbon.user.core/3.2.3/src/main/java/org/wso2/carbon/user/core/jdbc/JDBCUserStoreManager.java

Thanks,
Asantha

On Mon, May 2, 2016 at 12:46 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> as you adviced i started creating corresponding mongodb database structure
> for IS user store i done the user store database script and share it in
> here [1] and identity script still writing  before further progress on
> identity script i would be very thankful if i can get your comment about my
> user store script whether it correct or need to improve while i mapping
> mysql script to mongodb i faced on following issue
> MongoDB is not supporting to multikey hashed indexes according to their
> documentation in here [2] therefore i create one hash index per document
> which are need hash indexes
> for mapping foreign keys i used the manual way than db refs or embeded
> documents to avoid data repition for that i refer their documentation in
> here [3]
> For storage engine i used the default engine called wired tiger according
> to their documentation in here [4]
> waiting for your feedback about my works,
> [1].
> https://github.com/asanthamax/mongodbuserstore/blob/master/identity_server.js
> [2]. https://docs.mongodb.org/v3.0/tutorial/create-a-hashed-index/
> [3]. https://docs.mongodb.org/manual/reference/database-references/
> [4]. https://docs.mongodb.org/manual/core/wiredtiger/
>
> Thanks,
> Asantha
>
> On Sat, Apr 30, 2016 at 4:02 AM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>>
>> thanks for the guidance sure i'll do that way and update you as i progress
>>
>> Thanks,
>> Asantha
>>
>> On Fri, Apr 29, 2016 at 10:00 PM, Tharindu Edirisinghe <
>> tharin...@wso2.com> wrote:
>>
>>> Hi Asantha,
>>>
>>> Great work ! Yes, you will have to manually create the database with the
>>> tables. Then once you create the userstore in Identity Server and point to
>>> the particular database, it should work properly.
>>>
>>> Then what you can do here is converting the relational db schema to
>>> collections in mongodb. You can refer the IS_5.1.0_HOME/dbscripts/ location
>>> where all the database scripts are stored. You need to look at only 2 sql
>>> files for the moment. They are the IS_5.1.0_HOME/dbscripts/mysql.sql and
>>> IS_5.1.0_HOME/dbscripts/identity/mysql.sql . Referring these two files, you
>>> can write 2 sql files for mongodb.
>>>
>>> Later we can do some modifications to automatically create the database
>>> (if the mongodb userstore is selected to be the PRIMARY userstore)
>>> referring the schema in above 2 files.
>>>
>>> Regards,
>>> TharinduE
>>>
>>> On Fri, Apr 29, 2016 at 10:22 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
 Hi Tharindu,

 Thanks for the instructions As you described in mail i followed all the
 steps and i  have been now able to see my new user store service is started
 and shown in IS as you suggested i have changed the username and password
 fields to mandatory and updated code i shared in here [1] after adding new
 mongodb user store under new user store section in IS it gives the success
 message but nothing showing at the user store list in admin console here i
 attached screenshots of my IS console ,would i need to create database with
 all the necessary tables to add new user store?

 [1]. https://github.com/asanthamax/mongodbuserstore

 Thanks,
 Asantha

 On Thu, Apr 28, 2016 at 7:48 PM, Asantha Thilina <
 asanthathil...@gmail.com> wrote:

> Hi Tharindu,
>
> Thanks for the reply ,i will follow the instructions and update you
>
> Thanks,
> Asantha
>
> On Fri, Apr 29, 2016 at 8:10 AM, Tharindu Edirisinghe <
> tharin...@wso2.com> wrote:
>
>> Hi Asantha,
>>
>> Can you try out the following steps in a fresh (new) Identity Server
>> 5.1.0 pack.
>>
>> 1. Put the MongoDB JDBC driver in repository/components/lib directory.
>> 2. Build the mongodb userstore manager and copy the built jar file to
>> repository/components/dropins directory.
>> 3. Connect to the mongodb shell and create an admin user.
>>
>> *> use admin*
>> switched to db admin
>> *> db.createUser({user:"admin", pwd:"admin123", roles:[{role:"root",
>> db:"admin"}]})*
>> Successfully added user: {
>> "user" : "admin",
>> "roles" : [
>> {
>> "role" : "root",
>> "db" : "admin"
>> }
>> ]
>> }
>>
>> 4. Start the Identity Server with OSGI conso

Re: [Dev] Migrating ESB artifacts from 4.8.1 to 4.9.0

2016-05-02 Thread Manuranga Perera
Thanks Buddhima and Chanaka.

On Mon, May 2, 2016 at 2:32 PM, Buddhima Wijeweera 
wrote:

> Hi,
>
> There's no such changes. Still you can use those in 4.8.1 as it is. There
> are notable changes in message processors. But not in proxy services/ APIs.
>
> Thanks,
>
> - sent via my phone
> On May 2, 2016 11:54 PM, "Manuranga Perera"  wrote:
>
> I have some proxies and APIs and I have to migrate them them form 4.8.1 to
> 4.9.0 . Are there any recommended changes that I need to do, eg: changing
> send mediators to call out ect?
>
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@wso2.com
>
>


-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] java.lang.NoClassDefFoundError: org/wso2/caching/CachingConstants

2016-05-02 Thread Bhathiya Jayasekara
Hi all,

I'm trying to figure out which feature I need to install to get the class
in $subject? Any help?

Thanks,
-- 
*Bhathiya Jayasekara*
*Senior Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Migrating ESB artifacts from 4.8.1 to 4.9.0

2016-05-02 Thread Buddhima Wijeweera
Hi,

There's no such changes. Still you can use those in 4.8.1 as it is. There
are notable changes in message processors. But not in proxy services/ APIs.

Thanks,

- sent via my phone
On May 2, 2016 11:54 PM, "Manuranga Perera"  wrote:

I have some proxies and APIs and I have to migrate them them form 4.8.1 to
4.9.0 . Are there any recommended changes that I need to do, eg: changing
send mediators to call out ect?


-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Migrating ESB artifacts from 4.8.1 to 4.9.0

2016-05-02 Thread Chanaka Fernando
Hi Manu,

You don't need to change any mediator when migrating from ESB 481 to 490.

On Mon, May 2, 2016 at 11:54 PM, Manuranga Perera  wrote:

> I have some proxies and APIs and I have to migrate them them form 4.8.1 to
> 4.9.0 . Are there any recommended changes that I need to do, eg: changing
> send mediators to call out ect?
>
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@wso2.com
>



-- 
Thank you and Best Regards,
Chanaka Fernando
Senior Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Migrating ESB artifacts from 4.8.1 to 4.9.0

2016-05-02 Thread Manuranga Perera
I have some proxies and APIs and I have to migrate them them form 4.8.1 to
4.9.0 . Are there any recommended changes that I need to do, eg: changing
send mediators to call out ect?


-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while implementing the Integration test for salesforce(SOAP API) connector

2016-05-02 Thread Chanaka Fernando
Hi Hariprasath,

ESB 5.0.0 - Alpha has been released with the axis2 version 1.6.1.wso2v17
(kernel 4.4.5) and it should have this fix included. Please double check
this on the correct alpha pack.

On Mon, May 2, 2016 at 12:12 PM, Malaka Silva  wrote:

> Thx
>
> On Mon, May 2, 2016 at 12:11 PM, Hariprasath Thanarajah <
> haripras...@wso2.com> wrote:
>
>> Hi Malaka,
>>
>> I have created the jira[1] with highest priority,
>>
>> [1]
>> https://wso2.org/jira/browse/ESBJAVA-4582
>>
>> On Mon, May 2, 2016 at 11:31 AM, Malaka Silva  wrote:
>>
>>> Hi Hariprasath,
>>>
>>> Ideally fix should go with latest ESB. If you find the same issue with
>>> ESB 5 Alpha, please report a jira with highest priority.
>>>
>>> On Mon, May 2, 2016 at 11:25 AM, Hariprasath Thanarajah <
>>> haripras...@wso2.com> wrote:
>>>
 Hi Malaka,

 I have changed the code in wso2-axis2 according to [1] and put it as a
 patch. Now it's working perfectly. Thank you everyone for your suggestions.

 [1]
 https://github.com/wso2-support/wso2-axis2/pull/1/files
 

 On Thu, Apr 21, 2016 at 6:36 PM, Hariprasath Thanarajah <
 haripras...@wso2.com> wrote:

> Noted malaka.
>
> On Thursday, April 21, 2016, Malaka Silva  wrote:
>
>> Hi Hariprasath,
>>
>> Best is start debugging fresh pack with the release tag and apply the
>> fix and check [1].
>>
>> Did you check this with esb 5 alpha alread? If not do so.
>>
>> [1]
>> https://docs.wso2.com/display/TA430/Debugging+Product+Integration+Tests
>>
>> On Thu, Apr 21, 2016 at 2:53 AM, Hariprasath Thanarajah <
>> haripras...@wso2.com> wrote:
>>
>>> As malaka said this is slightly different from the usual way and
>>> Malaka, I copied the patch to the folder and put the zip to the 
>>> repository.
>>> Need to investigate further.
>>>
>>>
>>> On Wednesday, April 20, 2016, Malaka Silva  wrote:
>>>
 Hariprasath is doing this for connectors. It is slightly different
 than running esb integration tests. We need to copy the zip file
 to repository folder. Hope you have updated the zip file with patch in 
 that
 case.

 On Wed, Apr 20, 2016 at 10:08 PM, Thusitha Thilina Dayaratne <
 thusit...@wso2.com> wrote:

> Hi Hariprasath,
>
> Did you apply the patch manually  to the pack when you run the
> integration test? AFAIK when you run integration tests it will use the
> already built default pack. It will not contains the patch.
>
> Thanks
> Thusitha
>
> On Wed, Apr 20, 2016 at 9:32 AM, Malaka Silva 
> wrote:
>
>> Hi Hariprasath,
>>
>> You need to debug and investigate this further. Find details on
>> debugging integration test in [1]
>>
>> [1]
>> https://docs.wso2.com/display/TA430/Debugging+Product+Integration+Tests
>>
>> On Wed, Apr 20, 2016 at 6:18 PM, Hariprasath Thanarajah <
>> haripras...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I have apply the patch to ESB 4.9.0 have mentioned above in [1],
>>> but I  got the same error. If I create the test case for another
>>> method(describeSObject) also show the same error. I have attached 
>>> the wire
>>> log for this method also,
>>>
>>> Can anyone give any suggestion on this?
>>>
>>> On Tue, Apr 19, 2016 at 1:36 PM, Hariprasath Thanarajah <
>>> haripras...@wso2.com> wrote:
>>>
 Noted Malaka,

 I will check and update on this.

 On Tue, Apr 19, 2016 at 1:11 PM, Malaka Silva 
 wrote:

> Hi Hariprasath,
>
> Seems like a issue is mentioned in [1]. Ideally this should be
> fixed in ESB alpha release. Please check.
>
> If not apply the fix and see if that works. If works add a
> jira for esb 5.
>
> [1] https://wso2.org/jira/browse/ESBJAVA-4388
>
> On Thu, Apr 7, 2016 at 3:59 PM, Hariprasath Thanarajah <
> haripras...@wso2.com> wrote:
>
>> Hi All,
>>
>> I am working on to create integration test for salesforce
>> connector. When I create the testcase for a particular 
>> method(getUserInfo)
>> I got the response via the ESB call but after that I get the 
>> following
>> error in [1].
>>
>> I have added the proxy[2] and soap request[3] as well.
>>
>> Can anyone sug

Re: [Dev] APIM Automations tests are disabled

2016-05-02 Thread Aparna Karunarathna
Hi Nuwan,

We have seen a lot of discrepancies in the automation test, so it would be
good if you guys can fix those before the release.

Regards,
Aparna

On Mon, May 2, 2016 at 6:36 PM, Nuwan Dias  wrote:

> Not sure why this was disabled. Maybe its because it uses the deprecated
> YouTube API (it no longer works). These are very old tests coming even
> before the wso2-dev repo days. So can't recall its entire history.
>
> However, there is a new test case called CopyNewVersionTestCase that
> covers this scenario. So we haven't lost on coverage by disabling it.
>
> We have ~500 tests in the product now. And some of these are pretty old.
> Yes, we need to refine and remove obsolete ones and we do that as we
> encounter them. We will do this refining as priorities allow us to.
>
> Thanks,
> NuwanD.
>
> On Mon, May 2, 2016 at 5:59 PM, Dharshana Warusavitharana <
> dharsha...@wso2.com> wrote:
>
>> Hi APIM team,
>>
>> Please add comments when you are disabling tests like this. Or remove
>> test completely if they are obsolete please remove them from the suite.
>> And i see invalid test method description here.
>>
>> Please fix these ASAP.
>>
>> Thank you,
>> Dharshana.
>>
>> On Mon, May 2, 2016 at 5:19 PM, Yasassri Ratnayake 
>> wrote:
>>
>>> Hi APIM Team,
>>>
>>> Observed the following test case at [1]. As shown below most test
>>> mrethods are disabled except for 2  in this test class and I couldn't find
>>> any comment explaining why these tests were disabled. Can we look into
>>> these and get them enabled?
>>>
>>>
>>> @Test(groups = {"wso2.am"}, description = "API visibility", enabled =
>>> false)
>>> public void copyAPILifeCycleTestCase() throws Exception {
>>>
>>>
>>> [1] -
>>> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/other/APIApplicationLifeCycleTestCase.java#L363
>>>
>>>
>>> With Regards,
>>> --
>>> Yasassri Ratnayake
>>> Software Engineer - QA
>>> WSO2 Inc ; http://wso2.com
>>> lean.enterprise.middleware
>>> *Mobile : +94715933168 <%2B94715933168>*
>>> *Blogs : http://yasassriratnayake.blogspot.com
>>> *
>>> *http://wso2logs.blogspot.com *
>>>
>>
>>
>>
>> --
>>
>> Dharshana Warusavitharana
>> Senior Software Engineer , Test Automation
>> WSO2 Inc. http://wso2.com
>> email : dharsha...@wso2.com 
>> Tel  : +94 11 214 5345
>> Fax :+94 11 2145300
>> cell : +94770342233
>> blog : http://dharshanaw.blogspot.com
>>
>> lean . enterprise . middleware
>>
>
>
>
> --
> Nuwan Dias
>
> Technical Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 
*Regards,*

*Aparna Karunarathna.*


*Associate Technical Lead - QAWSO2 Inc.Mobile: 0714002533*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 DAS 3.1.0- M1 Released

2016-05-02 Thread Gokul Balakrishnan
Hi Devs,

The WSO2 DAS team is pleased to announce the first milestone release of
WSO2 DAS 3.1.0.

This version introduces the following changes over WSO2 DAS 3.0.1:

- Cross-tenant analytics support for the super tenant
- Ability to use any data type as a facet field
- Various bug fixes and improvements

Please feel free to download this milestone release here
, and give it a
try!

Issues/bugs could be reported at the WSO2 DAS JIRA
, and we will be pleased to answer any
questions that you may have at the WSO2 Developers mailing list
.

As always, your comments/suggestions are most welcome.

- WSO2 DAS Team.

[#] Downloads: https://svn.wso2.org/repos/wso2/people/gokul/das/3.1.0-M1/
[#] Issue reporting: https://wso2.org/jira/browse/DAS
[#] WSO2 Developers List: dev@wso2.org

-- 
Gokul Balakrishnan
Senior Software Engineer,
WSO2, Inc. http://wso2.com
M +94 77 5935 789 | +44 7563 570502
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Support to provide gadget load order in Dashboard Server

2016-05-02 Thread Manuranga Perera
Note that, you can't use parent.finishedLoading() due to cross domain
reasons, you have to use something like
gadget.somthing.fireFinishedLoading() which internally uses RPC. Please
talk with Lasantha, he has done similar work. Before implementing this, can
you please check if this is already there. There might be an already
exiting callback form navigate gadget API in container library.

On Mon, May 2, 2016 at 7:40 AM, Nisala Nanayakkara  wrote:

> Hi All,
>
> I am currently on the process of implementing the support to provide
> gadget load order in Dashboard Server. Currently the gadgets are loaded
> asynchronously without any order. But the gadget authors should be able to
> provide the gadgets load order so that some dependent gadgets will be
> loaded before the publisher gadgets.
>
> For example : all the subscriber gadgets needs to be loaded before the
> publisher gadget is loaded.
>
> I think it would be easier,if we can introduce an event trigger which will
> be triggered at the completion of loading of each gadget, into the CDATA
> section of gadget definition file in the store as follows.
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> So shall i introduce an event trigger as above or do you have any other
> opinions regarding this issue?
>
> Thanks,
> Nisala
>
> --
> *Nisala Niroshana Nanayakkara,*
> Software Engineer
> Mobile:(+94)717600022
> WSO2 Inc., http://wso2.com/
>



-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [appcloud] setTimeout method does not work as expected

2016-05-02 Thread Kasun De Silva
Hi Sabra,

Please find my comments inline.

On Sun, May 1, 2016 at 8:39 PM, Sabra Ossen  wrote:

> Hi Kasun,
>
> I understand what you said earlier. What happens is that the Application
> Progress window and Application Creation page are both displayed in
> parallel. Therefore by setting the notification timeout as follows I will
> be able to keep the notification displayed for 3.5 seconds.
>

​Yes you got it correct. ​


> jagg.message({content: "Displayed Message", type: 'info', timeout: 3500});
>
> And I can postpone redirecting to the application home page by increasing
> the time out at [1] to 4500 ms. The setTimeout() method after displaying
> the notification is unnecessary.
>
> ​What is the purpose of displaying this message? Can you point me to the
JIRA or explain what are we trying to achieve here ?

Although I have a question as to how both elements are rendered in
> parallel. Is it done from the method
> ​​
> executeAsync as in [2].?
>

​Yes, parallel thread starts from
​
executeAsync​ method. Check the implementation of executeAsync, it will
call drawProgressWindow() method parallely from the main thread.

>
> Thanks for your help.
>
> [1]
> https://github.com/wso2/app-cloud/blob/master/modules/jaggeryapps/appmgt/src/site/themes/default/templates/application/template.jag#L360
> [2]
> https://github.com/wso2/app-cloud/blob/master/modules/jaggeryapps/appmgt/src/site/themes/default/templates/application/template.jag#L186
>
> Regards.
>
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC - Dockerfiles

2016-05-02 Thread Vishanth Balasubramaniam
Hi Abhishek,

Provide the call notes here.

Regards,
Vishanth

On Mon, May 2, 2016 at 10:44 AM, Vishanth Balasubramaniam <
vishan...@wso2.com> wrote:

> Hi,
>
> Yes the time is fine with both myself and Chamila. We can go ahead.
>
> Regards,
> Vishanth
>
> On Fri, Apr 29, 2016 at 11:16 AM, Abhishek Tiwari <
> abhishek.tiwari0...@gmail.com> wrote:
>
>> Does 6pm IST work?
>>
>> On Apr 28, 2016, at 10:30 PM, Vishanth Balasubramaniam <
>> vishan...@wso2.com> wrote:
>>
>> Hi Abhishek,
>>
>> That's great. We can have the call on Monday (2nd May), preferably in the
>> evening.
>>
>> Regards,
>> Vishanth
>>
>> On Fri, Apr 29, 2016 at 9:37 AM, Abhishek Tiwari <
>> abhishek.tiwari0...@gmail.com> wrote:
>>
>>> Hi Mentors,
>>>
>>> I have the local build setup and have started going through the current
>>> codebase of Dockerfiles project. It would be very helpful to get a code
>>> walk-through to understand the current design and architecture of the
>>> system. Please let me know your availability for the next week and I will
>>> send a meeting invite.
>>>
>>> Thanks
>>> Abhishek
>>>
>>
>>
>>
>> --
>> *Vishanth Balasubramaniam*
>> Committer & PMC Member, Apache Stratos,
>> Software Engineer, WSO2 Inc.; http://wso2.com
>>
>> mobile: *+94 77 17 377 18*
>> about me: *http://about.me/vishanth *
>>
>>
>>
>
>
> --
> *Vishanth Balasubramaniam*
> Committer & PMC Member, Apache Stratos,
> Software Engineer, WSO2 Inc.; http://wso2.com
>
> mobile: *+94 77 17 377 18*
> about me: *http://about.me/vishanth *
>



-- 
*Vishanth Balasubramaniam*
Committer & PMC Member, Apache Stratos,
Software Engineer, WSO2 Inc.; http://wso2.com

mobile: *+94 77 17 377 18*
about me: *http://about.me/vishanth *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC2016: [ML][CEP] Predictive analytic with online data for WSO2 Machine Learner

2016-05-02 Thread Mahesh Dananjaya
Hi Maheshakya,
now i remotely debug the CEP extension for ML Prediction. What i did was, i
have all the pre-build version of CEP and ML. Therefore i used that built
CEP and did the same thing that i was doing with the source code. I think
the only change i did was install those packages from remote p2 repo. This
was work fine and i debugged the carbon-ml
org.wso2.carbon.ml.siddhi.extension as described in the [1]. So now i have
to try same thing with the build by source content.thank you.

[1]
https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions#WSO2CEPExtensionforMLPredictions-Siddhisyntaxfortheextension

BR,
Mahesh

On Mon, Apr 25, 2016 at 5:49 PM, Maheshakya Wijewardena  wrote:

> Hi Mahesh,
>
> Congratulations and welcome to GSoC 2016. You did a great job in preparing
> the proposal. Now it's time to dig deep and get started with the project.
>
> First of all you need to familiarize with the code base. We have agreed to
> implement this with CEP event streams. We already have a CEP extension for
> predictions [1][2]. Go through this implementation and familiarize your
> self with that. You need to understand how:
>
>1. Even streams are consumed
>2. predictions are made from individual event
>3. Results are sent back
>
> Get WSO2 ML and CEP sources (You may use latest released version of CEP)
> and build the products. Get both carbon-ml[3] and product-ml[4] masters and
> create new branches for your work from masters.
>
> After you build the products, you may need to do remote debugging[5] to
> understand the flow. So please follow an example of real time prediction
> with ML with debugging and get some idea. The component you need to debug
> is org.wso2.carbon.ml.siddhi.extension.
>
> Next tasks would be implementing online learning algorithms in plain java
> with spark ml lib and integrating those to ML. We also need to come up with
> a proper and detailed architecture to employ those algorithms in ML.
> Getting familiar with the aforementioned sections would give you some
> insight on how this should be implemented.
>
> So please try to get a quick grasp then you can start the implementation.
> Let us know if you have any questions or you get stuck somewhere.
>
> Also, please always add WSO2 developer's list as well when you communicate
> with us regarding the project so that you can get opinions and feedback
> from others as well.
>
> Best regards.
>
> [1]
> https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions#WSO2CEPExtensionforMLPredictions-Siddhisyntaxfortheextension
>
> [2]
> https://github.com/wso2/carbon-ml/tree/master/components/extensions/org.wso2.carbon.ml.siddhi.extension
>
> [3] https://github.com/wso2/carbon-ml
>
> [4] https://github.com/wso2/product-ml
>
> [5] https://dzone.com/articles/how-debug-wso2-carbon-kernel
>
>
> On Mon, Apr 25, 2016 at 3:33 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi,
>> thank you for accepting my GSOC 2016 proposal and i am looking forward
>> for the further instruction and project continuation. thank you very much.
>> regards,
>> Mahesh.
>>
>> --
> Pruthuvi Maheshakya Wijewardena
> mahesha...@wso2.com
> +94711228855
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: GSOC2016: [ML][CEP] Predictive analytic with online data for WSO2 Machine Learner

2016-05-02 Thread Mahesh Dananjaya
-- Forwarded message --
From: Mahesh Dananjaya 
Date: Mon, May 2, 2016 at 5:30 PM
Subject: Re: [Dev] GSOC2016: [ML][CEP] Predictive analytic with online data
for WSO2 Machine Learner
To: Maheshakya Wijewardena 


Hi maheshakya,
may i try with remote p2 repo rather than my local one?can you send me the
url for relevant one. When i was building cep by source there was a error
in testing phase. it was built successfully. But for the time i forget that
one and use that built version after.
BR,
Mahesh.

On Mon, May 2, 2016 at 5:27 PM, Mahesh Dananjaya 
wrote:

> Hi Maheshakya,
> I did several changes. i generated the ml model and then start the cep.and
> also i changed the expression to relevant location of the model as,
>
> from
> InputStream#ml:predict('registry:/home/mahesh/GSOC/WSO2/product-ml/modules/distribution/target/wso2ml-2.0.0-SNAPSHOT/models/PimaIndian.Model.2016-05-02_16-40-12','double')
>
> But still when i click the "Validate Query Expression" the error is
> popping up."No extension exist for StreamFunctionExtension{namespace='ml'}
> in execution plan "ExecutionPlan"".
>
> the only source is [1]that mentioned about this kind of error as i
> mentioned. is that expression is correct now?
> BR,
> mahesh.
>
> [1]https://wso2.org/jira/browse/CEP-1400
>
> On Mon, May 2, 2016 at 3:49 PM, Maheshakya Wijewardena <
> mahesha...@wso2.com> wrote:
>
>> You can first train a model then shut down the ML server. For prediction
>> with CEP, you need only the file persisted file in the {ML_HOME}/models/.
>>
>> But in your actual implementation, you will have to have a running ML
>> server as well because training should be done continuously.
>>
>> On Mon, May 2, 2016 at 3:33 PM, Mahesh Dananjaya <
>> dananjayamah...@gmail.com> wrote:
>>
>>> Hi maheshakya,
>>> are both ML should be running simultaneously with cep for this to
>>> happen.an prior to cep execution we should generate the model? then i
>>> think i made a mistake there.i shut down the ml server and start the cep.So
>>> is that wy tis error is there.
>>> BR,
>>> Mahesh.
>>>
>>> On Mon, May 2, 2016 at 3:27 PM, Mahesh Dananjaya <
>>> dananjayamah...@gmail.com> wrote:
>>>

 Hi maheshakya,
 I have installed them correctly.now I am trying to debug the siddhi
 extention with the cep as the [1] describes. But when i created an input
 stream and a predictionStream (output stream). when i was trying to create
 new execution plan with above streams i got error when i clicked "Validate
 Query Expression".Error was,
 Error:
 No extension exist for StreamFunctionExtension{namespace='ml'} in
 execution plan "ExecutionPlan"

 and my expression is like a

 /* Enter a unique ExecutionPlan */
 @Plan:name('ExecutionPlan')

 /* Enter a unique description for ExecutionPlan */
 -- @Plan:description('ExecutionPlan')

 /* define streams/tables and write queries here ... */

 @Import('InputStream:1.0.0')
 define stream InputStream (NumPregnancies double, TSFT double, DPF
 double, BMI double, DBP double, PG2 double, Age double, SI2 double);

 @Export('PredictionStream:1.0.0')
 define stream PredictionSTream (NumPregnancies double, TSFT double, DPF
 double, BMI double, DBP double, PG2 double, Age double, SI2 double, Class
 double);

 from
 InputStream#ml:predict('file:///home/mahesh/GSOC/WSO2/data-set/pima-indian-diabetes.data','double')
 select *
 insert into PredictionStream


 i used file instead of registry. And i referred to the [2] and there
 they mention that solution for fixing CEP is running on distributed mode
 with apache Storm cluster.

 1. Is that CEP i built is originally run as distributed mode?
 2. Is this cuased by an not having sudo privilleges in current user
 when installing ML features onto CEP?
 3.Is this the correct way to give file to CEP.

 [1]
 https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions#WSO2CEPExtensionforMLPredictions-Siddhisyntaxfortheextension

 [2]https://wso2.org/jira/browse/CEP-1400

 BR,
 Mahesh.


 On Mon, May 2, 2016 at 12:35 PM, Maheshakya Wijewardena <
 mahesha...@wso2.com> wrote:

> Hi Mahesh,
>
> If you have built product-ml, you can find the P2-repo at
> product-ml/modules/p2-profile/target/p2-repo
> Add this folder as a local repository.
> After that, you should be able to see the ML features.
>
> Best regards.
>
> On Mon, May 2, 2016 at 12:24 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi Maheshakya,
>> Since i already have carbon-ml built in my pc can i use my local
>> repository to install those features in to CEP.is that correct.thank you.
>> regards,
>> Mahesh.
>>
>> On Mon, May 2, 2016 at 12:20 PM, Mahesh Dananjaya <
>> dananjayamah...@gmail.com> wrote:
>>
>>>

Re: [Dev] Is streaming input & output support working in MSF4J?

2016-05-02 Thread Afkham Azeez
The problem is, we can't do the next MSF4J release because we can't lose a
feature in a release. This is a blocker for us. We have plans to release in
the next 2 weeks.

On Mon, May 2, 2016 at 4:56 PM, Isuru Ranawaka  wrote:

> Hi Azeez,
>
> Currently streaming works if we used both sender side and listener side
> only . But since MSF4J is using only listener side if we did not spawn
> separate thread from engine level for writing response  it will not work
> because request reading and writing happens through same thread. But with
> the next release we will fix that. currently we are finalizing on removing
> engine level thread model from transport.
>
>
> thanks
> IsuruR
>
> On Mon, May 2, 2016 at 3:50 PM, Afkham Azeez  wrote:
>
>> Is this working after moving to the new transport framework?
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> 
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards
> Isuru Ranawaka
> M: +94714629880
> Blog : http://isurur.blogspot.com/
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] SVNDeploymentSynchronizerComponent is not raising errors if it is not activated

2016-05-02 Thread KasunG Gajasinghe
On Mon, May 2, 2016 at 5:14 PM, Imesh Gunaratne  wrote:

> Hi Devs,
>
> I just noticed subject [1], is there any reason to log errors as debug
> logs?
>
> [1]
> https://github.com/wso2/carbon-commons/blob/master/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/src/main/java/org/wso2/carbon/deployment/synchronizer/subversion/SVNDeploymentSynchronizerComponent.java
>
>
This component checks for three possible alternatives of svn
implementations. We only need to print an error if none of the
implementations can be found AND DepSync is enabled in that server.

So, line #79 should actually be an error log (after doing an additional
depsync enabled check). Can you raise a jira?


> Thanks
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.io TW: @imesh
> Lean . Enterprise . Middleware
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM Automations tests are disabled

2016-05-02 Thread Nuwan Dias
Not sure why this was disabled. Maybe its because it uses the deprecated
YouTube API (it no longer works). These are very old tests coming even
before the wso2-dev repo days. So can't recall its entire history.

However, there is a new test case called CopyNewVersionTestCase that covers
this scenario. So we haven't lost on coverage by disabling it.

We have ~500 tests in the product now. And some of these are pretty old.
Yes, we need to refine and remove obsolete ones and we do that as we
encounter them. We will do this refining as priorities allow us to.

Thanks,
NuwanD.

On Mon, May 2, 2016 at 5:59 PM, Dharshana Warusavitharana <
dharsha...@wso2.com> wrote:

> Hi APIM team,
>
> Please add comments when you are disabling tests like this. Or remove test
> completely if they are obsolete please remove them from the suite.
> And i see invalid test method description here.
>
> Please fix these ASAP.
>
> Thank you,
> Dharshana.
>
> On Mon, May 2, 2016 at 5:19 PM, Yasassri Ratnayake 
> wrote:
>
>> Hi APIM Team,
>>
>> Observed the following test case at [1]. As shown below most test
>> mrethods are disabled except for 2  in this test class and I couldn't find
>> any comment explaining why these tests were disabled. Can we look into
>> these and get them enabled?
>>
>>
>> @Test(groups = {"wso2.am"}, description = "API visibility", enabled =
>> false)
>> public void copyAPILifeCycleTestCase() throws Exception {
>>
>>
>> [1] -
>> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/other/APIApplicationLifeCycleTestCase.java#L363
>>
>>
>> With Regards,
>> --
>> Yasassri Ratnayake
>> Software Engineer - QA
>> WSO2 Inc ; http://wso2.com
>> lean.enterprise.middleware
>> *Mobile : +94715933168 <%2B94715933168>*
>> *Blogs : http://yasassriratnayake.blogspot.com
>> *
>> *http://wso2logs.blogspot.com *
>>
>
>
>
> --
>
> Dharshana Warusavitharana
> Senior Software Engineer , Test Automation
> WSO2 Inc. http://wso2.com
> email : dharsha...@wso2.com 
> Tel  : +94 11 214 5345
> Fax :+94 11 2145300
> cell : +94770342233
> blog : http://dharshanaw.blogspot.com
>
> lean . enterprise . middleware
>



-- 
Nuwan Dias

Technical Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Dockerfiles 1.1.0 RC1

2016-05-02 Thread Abhishek Tiwari
+1.

Have tested Dockerfiles with Message Broker.

- Abhishek

On Mon, May 2, 2016 at 5:12 AM, Vishanth Balasubramaniam  wrote:

> Hi Devs,
>
>
> This is the first release candidate (RC1) of WSO2 Dockerfiles 1.1.0
> release.
>
> Tag to be voted upon:
>
> https://github.com/wso2/dockerfiles/tree/v1.1.0-rc1
>
> Source and distribution packages:
>
> https://github.com/wso2/dockerfiles/releases/tag/v1.1.0-rc1
>
> Please download, test, and vote. The README file under the distribution
> contains guide and instructions on how to try it out locally.
>
> [ ] Broken - Do not release (explain why)
>
> [ ] Stable - Go ahead and release
>
> This vote will be open for 72 hours or as needed.
>
> Regards,
> Vishanth
> --
> *Vishanth Balasubramaniam*
> Committer & PMC Member, Apache Stratos,
> Software Engineer, WSO2 Inc.; http://wso2.com
>
> mobile: *+94 77 17 377 18*
> about me: *http://about.me/vishanth *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM Automations tests are disabled

2016-05-02 Thread Dharshana Warusavitharana
Hi APIM team,

Please add comments when you are disabling tests like this. Or remove test
completely if they are obsolete please remove them from the suite.
And i see invalid test method description here.

Please fix these ASAP.

Thank you,
Dharshana.

On Mon, May 2, 2016 at 5:19 PM, Yasassri Ratnayake 
wrote:

> Hi APIM Team,
>
> Observed the following test case at [1]. As shown below most test mrethods
> are disabled except for 2  in this test class and I couldn't find any
> comment explaining why these tests were disabled. Can we look into these
> and get them enabled?
>
>
> @Test(groups = {"wso2.am"}, description = "API visibility", enabled =
> false)
> public void copyAPILifeCycleTestCase() throws Exception {
>
>
> [1] -
> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/other/APIApplicationLifeCycleTestCase.java#L363
>
>
> With Regards,
> --
> Yasassri Ratnayake
> Software Engineer - QA
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
> *Mobile : +94715933168 <%2B94715933168>*
> *Blogs : http://yasassriratnayake.blogspot.com
> *
> *http://wso2logs.blogspot.com *
>



-- 

Dharshana Warusavitharana
Senior Software Engineer , Test Automation
WSO2 Inc. http://wso2.com
email : dharsha...@wso2.com 
Tel  : +94 11 214 5345
Fax :+94 11 2145300
cell : +94770342233
blog : http://dharshanaw.blogspot.com

lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [G-Reg] What would be the purpose of CurrentDBConfig in registry.xml

2016-05-02 Thread Shazni Nazir
Hi Imesh,

I think, it is used to refer to the local database configuration, out of
the the three registry spaces; local, config and governance, in case where
mounts have been configured.

Shazni Nazeer
Mob : +94 37331
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com

On Mon, May 2, 2016 at 5:15 PM, Imesh Gunaratne  wrote:

> Hi Chandana,
>
> What would be the purpose of CurrentDBConfig parameter in registry.xml if
> multiple data sources are used for registry mounts?
>
> Thanks
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.io TW: @imesh
> Lean . Enterprise . Middleware
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 Dockerfiles 1.1.0 RC1

2016-05-02 Thread Vishanth Balasubramaniam
Hi Devs,


This is the first release candidate (RC1) of WSO2 Dockerfiles 1.1.0 release.


Tag to be voted upon:

https://github.com/wso2/dockerfiles/tree/v1.1.0-rc1

Source and distribution packages:

https://github.com/wso2/dockerfiles/releases/tag/v1.1.0-rc1

Please download, test, and vote. The README file under the distribution
contains guide and instructions on how to try it out locally.

[ ] Broken - Do not release (explain why)

[ ] Stable - Go ahead and release

This vote will be open for 72 hours or as needed.

Regards,
Vishanth
-- 
*Vishanth Balasubramaniam*
Committer & PMC Member, Apache Stratos,
Software Engineer, WSO2 Inc.; http://wso2.com

mobile: *+94 77 17 377 18*
about me: *http://about.me/vishanth *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DS] UI Design - Hierarchical page support for dashboards (Designer View)

2016-05-02 Thread Udara Rathnayake
Hi,

This is to start a conversation on the $subject. We are in the process of
adding hierarchical structured page support for dashboards. At the moment
we have flat structured(one level) pages.

Eg:-


​
Following is the proposed side bar. We are planning not to limit the number
of levels from DS side, So the dashboard designer has flexibility to go up
to n numbers.


​​
​Details:

- By pressing the create page link on the top, designer can add a root
level page. By pressing the + icon next to the page name user can add a
subordinate page related to the particular parent page.

- Settings icon will expand the page settings (Title, URL configs etc...)

- Arrow head will expand the list of subordinates. (Page 0, subordinate 1
Level 1 pages are expanded in above image)

We need to provide a horizontal scroll-bar as we are to support n levels.


*Navigation between pages*

​We need to update current navigation into something similar to the
following.​
​
​ (At the moment we have arrow heads to switch between previous and next
pages)​

​
We can update the Page name placeholder ​once designer selected a
particular page (root, subordinate etc..)



​

​Appreciate your feedback on this.​

-- 
Regards,
UdaraR
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC2016: [ML][CEP] Predictive analytic with online data for WSO2 Machine Learner

2016-05-02 Thread Mahesh Dananjaya
Hi Maheshakya,
I did several changes. i generated the ml model and then start the cep.and
also i changed the expression to relevant location of the model as,

from
InputStream#ml:predict('registry:/home/mahesh/GSOC/WSO2/product-ml/modules/distribution/target/wso2ml-2.0.0-SNAPSHOT/models/PimaIndian.Model.2016-05-02_16-40-12','double')

But still when i click the "Validate Query Expression" the error is popping
up."No extension exist for StreamFunctionExtension{namespace='ml'} in
execution plan "ExecutionPlan"".

the only source is [1]that mentioned about this kind of error as i
mentioned. is that expression is correct now?
BR,
mahesh.

[1]https://wso2.org/jira/browse/CEP-1400

On Mon, May 2, 2016 at 3:49 PM, Maheshakya Wijewardena 
wrote:

> You can first train a model then shut down the ML server. For prediction
> with CEP, you need only the file persisted file in the {ML_HOME}/models/.
>
> But in your actual implementation, you will have to have a running ML
> server as well because training should be done continuously.
>
> On Mon, May 2, 2016 at 3:33 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi maheshakya,
>> are both ML should be running simultaneously with cep for this to
>> happen.an prior to cep execution we should generate the model? then i
>> think i made a mistake there.i shut down the ml server and start the cep.So
>> is that wy tis error is there.
>> BR,
>> Mahesh.
>>
>> On Mon, May 2, 2016 at 3:27 PM, Mahesh Dananjaya <
>> dananjayamah...@gmail.com> wrote:
>>
>>>
>>> Hi maheshakya,
>>> I have installed them correctly.now I am trying to debug the siddhi
>>> extention with the cep as the [1] describes. But when i created an input
>>> stream and a predictionStream (output stream). when i was trying to create
>>> new execution plan with above streams i got error when i clicked "Validate
>>> Query Expression".Error was,
>>> Error:
>>> No extension exist for StreamFunctionExtension{namespace='ml'} in
>>> execution plan "ExecutionPlan"
>>>
>>> and my expression is like a
>>>
>>> /* Enter a unique ExecutionPlan */
>>> @Plan:name('ExecutionPlan')
>>>
>>> /* Enter a unique description for ExecutionPlan */
>>> -- @Plan:description('ExecutionPlan')
>>>
>>> /* define streams/tables and write queries here ... */
>>>
>>> @Import('InputStream:1.0.0')
>>> define stream InputStream (NumPregnancies double, TSFT double, DPF
>>> double, BMI double, DBP double, PG2 double, Age double, SI2 double);
>>>
>>> @Export('PredictionStream:1.0.0')
>>> define stream PredictionSTream (NumPregnancies double, TSFT double, DPF
>>> double, BMI double, DBP double, PG2 double, Age double, SI2 double, Class
>>> double);
>>>
>>> from
>>> InputStream#ml:predict('file:///home/mahesh/GSOC/WSO2/data-set/pima-indian-diabetes.data','double')
>>> select *
>>> insert into PredictionStream
>>>
>>>
>>> i used file instead of registry. And i referred to the [2] and there
>>> they mention that solution for fixing CEP is running on distributed mode
>>> with apache Storm cluster.
>>>
>>> 1. Is that CEP i built is originally run as distributed mode?
>>> 2. Is this cuased by an not having sudo privilleges in current user when
>>> installing ML features onto CEP?
>>> 3.Is this the correct way to give file to CEP.
>>>
>>> [1]
>>> https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions#WSO2CEPExtensionforMLPredictions-Siddhisyntaxfortheextension
>>>
>>> [2]https://wso2.org/jira/browse/CEP-1400
>>>
>>> BR,
>>> Mahesh.
>>>
>>>
>>> On Mon, May 2, 2016 at 12:35 PM, Maheshakya Wijewardena <
>>> mahesha...@wso2.com> wrote:
>>>
 Hi Mahesh,

 If you have built product-ml, you can find the P2-repo at
 product-ml/modules/p2-profile/target/p2-repo
 Add this folder as a local repository.
 After that, you should be able to see the ML features.

 Best regards.

 On Mon, May 2, 2016 at 12:24 PM, Mahesh Dananjaya <
 dananjayamah...@gmail.com> wrote:

> Hi Maheshakya,
> Since i already have carbon-ml built in my pc can i use my local
> repository to install those features in to CEP.is that correct.thank you.
> regards,
> Mahesh.
>
> On Mon, May 2, 2016 at 12:20 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi Maheshakya,
>> Can you please tell me how to find the most recent p2 repository URL
>> to add machine learner Core, Machine learner commons, Machine learner
>> database service and ML Siddhi extension to add as features in CEP as
>> describes in the [1]. When i use
>> http://product-dist.wso2.com/p2/carbon/releases/4.2.0/ URL those
>> features are not visible in the CEP.Is that not he most recent one.
>> BR,
>> Mahesh.
>>
>> [1]
>> https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions#WSO2CEPExtensionforMLPredictions-Siddhisyntaxfortheextension
>>
>> On Mon, May 2, 2016 at 11:28 AM, Mahesh Dananjaya <
>> dananjayamah...@gmail.com> wrote:
>>
>>

[Dev] APIM Automations tests are disabled

2016-05-02 Thread Yasassri Ratnayake
Hi APIM Team,

Observed the following test case at [1]. As shown below most test mrethods
are disabled except for 2  in this test class and I couldn't find any
comment explaining why these tests were disabled. Can we look into these
and get them enabled?


@Test(groups = {"wso2.am"}, description = "API visibility", enabled = false)
public void copyAPILifeCycleTestCase() throws Exception {


[1] -
https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/other/APIApplicationLifeCycleTestCase.java#L363


With Regards,
-- 
Yasassri Ratnayake
Software Engineer - QA
WSO2 Inc ; http://wso2.com
lean.enterprise.middleware
*Mobile : +94715933168 <%2B94715933168>*
*Blogs : http://yasassriratnayake.blogspot.com
*
*http://wso2logs.blogspot.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [G-Reg] What would be the purpose of CurrentDBConfig in registry.xml

2016-05-02 Thread Imesh Gunaratne
Hi Chandana,

What would be the purpose of CurrentDBConfig parameter in registry.xml if
multiple data sources are used for registry mounts?

Thanks
-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.io TW: @imesh
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] SVNDeploymentSynchronizerComponent is not raising errors if it is not activated

2016-05-02 Thread Imesh Gunaratne
Hi Devs,

I just noticed subject [1], is there any reason to log errors as debug logs?

[1]
https://github.com/wso2/carbon-commons/blob/master/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/src/main/java/org/wso2/carbon/deployment/synchronizer/subversion/SVNDeploymentSynchronizerComponent.java

Thanks

-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.io TW: @imesh
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Support to provide gadget load order in Dashboard Server

2016-05-02 Thread Nisala Nanayakkara
Hi All,

I am currently on the process of implementing the support to provide gadget
load order in Dashboard Server. Currently the gadgets are loaded
asynchronously without any order. But the gadget authors should be able to
provide the gadgets load order so that some dependent gadgets will be
loaded before the publisher gadgets.

For example : all the subscriber gadgets needs to be loaded before the
publisher gadget is loaded.

I think it would be easier,if we can introduce an event trigger which will
be triggered at the completion of loading of each gadget, into the CDATA
section of gadget definition file in the store as follows.












So shall i introduce an event trigger as above or do you have any other
opinions regarding this issue?

Thanks,
Nisala

-- 
*Nisala Niroshana Nanayakkara,*
Software Engineer
Mobile:(+94)717600022
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM Getting SSLPeerUnverifiedException after upgrading to kernel 4.4.4

2016-05-02 Thread Dulanja Liyanage
@IS Team, I think IS will also fail in the back channel SLO flow?

IMO, we could set that system property in the startup script, but there
should be a Production Guideline in our docs to remove that at the
production time. WDYT?



On Mon, Apr 11, 2016 at 1:41 PM, Dinusha Senanayaka 
wrote:

> Hi All,
>
> Getting same exception in App Manager also after updating to kernel-4.4.5.
> What is the resolution for this, can we continue with
> "-Dorg.opensaml.httpclient.https.disableHostnameVerification=true \" system
> property in startup script as Harsha suggested ?
>
> Regards,
> Dinusha.
>
> On Tue, Apr 5, 2016 at 7:18 PM, Harsha Kumara  wrote:
>
>> Hi IS Team,
>>
>> It seems that the issue got resolved with the system property. We will
>> needed to add it to our startup scripts. Any concerns on doing that?
>>
>> Thanks,
>> Harsha
>>
>> On Tue, Apr 5, 2016 at 6:26 PM, Harsha Kumara  wrote:
>>
>>> Boolean.getBoolean perform system property lookup. I'll try that
>>> solution and update.
>>>
>>> On Tue, Apr 5, 2016 at 6:20 PM, Harsha Kumara  wrote:
>>>
 I have done some analysis on this. In API Manager initial functionality
 works fine. When the access token is generated SAML2BearerGrantHandler
 doing DefaultBootstrap.bootstrap(); in opensaml library. With the new
 version of the opensaml library they have
 perform initializeHttpClient();[1] during the bootstrap. So the underline
 commons http client library socket factory has changed
 from SSLProtocolSocketFactory to TLSProtocolSocketFactory.
 In TLSProtocolSocketFactory it's perform host name verification which cause
 this exception. When go through their code, they have tried to disable this
 from System property. But implementation is doing Boolean.getBoolean
 instead of looking from System.getPropety[2] which seems bug. If this has
 worked, we could have set a system property.

 [1]
 /**
  *  Initializes the Apache Commons HttpClient library.
  */
 protected static void initializeHttpClient() {
 if
 (!Boolean.getBoolean(SYSPROP_HTTPCLIENT_HTTPS_DISABLE_HOSTNAME_VERIFICATION))
 {
 ProtocolSocketFactory socketFactory =
 new TLSProtocolSocketFactory(null, null, new
 StrictHostnameVerifier());
 Protocol.registerProtocol("https", new Protocol("https",
 socketFactory, 443));
 }
 }

 [2]
 /** System property used to disable global default HTTPS hostname
 verification in Apache Commons HttpClient. */
 public static final String
 SYSPROP_HTTPCLIENT_HTTPS_DISABLE_HOSTNAME_VERIFICATION =
 "org.opensaml.httpclient.https.disableHostnameVerification";

 Thanks,
 Harsha


 On Tue, Apr 5, 2016 at 5:48 PM, Nuwan Dias  wrote:

> IS Team,
>
> It looks like the TLSProtocolSocketFactory isn't honouring the
> HostName verification parameter. It always tries to do the hostname
> verification. Looks like a buggy behaviour to me.
>
> This causes problems for API Manager and any other product which has a
> distributed deployment (App Manager, DAS, etc) because it prevents http
> clients within our code from accessing Admin Services of remote nodes. The
> http clients fail since the server cert is by default for localhost and
> whenever we try to access through IPs it fails. The only way to overcome
> this is to create the proper certs and deploy on the server. Which is a
> huge hassle for simple test scenarios.
>
> The TLSProtocolSocketFactory is being set when the SAMLBearerGrant is
> being initialized. Until then things work fine. We either have to stop it
> being set or use a version of opensaml which supports skipping the host
> name verification (like our transports allow). Otherwise this is going to
> be a huge blocker for our releases.
>
> Thanks,
> NuwanD.
>
> On Thu, Mar 17, 2016 at 7:09 PM, Sam Sivayogam  wrote:
>
>> HI All,
>>
>> Had a offline chat with Pulasthi and got to know that in IS 5.0.8
>> there was opensaml upgrade from 2.4.1 to 2.6.4. After going through [1] 
>> got
>> to know that there is a hostname verification introduced in opensaml 
>> 2.6.4
>> which is not there in opensaml 2.4.1 and this is why we are getting the
>> above issue after moving to carbon identity 5.0.8.
>>
>> We are using *CommonsHTTPTransportSender * to call key
>> manager internally and from what I understood if we set the 
>> *HostnameVerifier
>> *parameter to *AllowAll *we should be able to get rid of this issue,
>> But still we are getting this issue. Does anyone know why 
>> HostnameVerifier
>> prameter is not working as expected with CommonsHTTPTransportSender ?
>>
>> [1]
>> http://grepcode.com/file_/repo1.maven.org/maven2/org.apache.servicemix.bundles/org.apache.servicemix.bundles.opensaml/2.4.1_2/org/ope

Re: [Dev] Best way to get the message size of a incoming request from a handler

2016-05-02 Thread Isuru Ranawaka
Hi Harsha,

I think we can read the InputStream without consuming and write it to
OutputStream.  There you can can calculate the length.No need to build in
to Object model . Refer [1]

[1]
https://github.com/wso2/wso2-synapse/blob/master/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/passthru/PassThroughHttpSender.java


On Mon, May 2, 2016 at 4:52 PM, Harsha Kumara  wrote:

> Hi All,
>
> We have requirement to get the message size of request coming to APIM
> Gateway to throttled based on bandwidth. To get the message size we have
> following below approach
>
> 1) First check the Content-Length transport header is coming with the
> request. If it present message length will be pick from the transport header
> 2) If the Content-Length is not present, we are proceed with building the
> message using RelayUtils and get the soapBody message size which is pretty
> expensive method.
>
> Is this the best way to calculate the message length. Or do we have any
> alternatives such as read the length from input stream?
>
> Thanks,
> Harsha
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>



-- 
Best Regards
Isuru Ranawaka
M: +94714629880
Blog : http://isurur.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Is streaming input & output support working in MSF4J?

2016-05-02 Thread Isuru Ranawaka
Hi Azeez,

Currently streaming works if we used both sender side and listener side
only . But since MSF4J is using only listener side if we did not spawn
separate thread from engine level for writing response  it will not work
because request reading and writing happens through same thread. But with
the next release we will fix that. currently we are finalizing on removing
engine level thread model from transport.


thanks
IsuruR

On Mon, May 2, 2016 at 3:50 PM, Afkham Azeez  wrote:

> Is this working after moving to the new transport framework?
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards
Isuru Ranawaka
M: +94714629880
Blog : http://isurur.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Best way to get the message size of a incoming request from a handler

2016-05-02 Thread Harsha Kumara
Hi All,

We have requirement to get the message size of request coming to APIM
Gateway to throttled based on bandwidth. To get the message size we have
following below approach

1) First check the Content-Length transport header is coming with the
request. If it present message length will be pick from the transport header
2) If the Content-Length is not present, we are proceed with building the
message using RelayUtils and get the soapBody message size which is pretty
expensive method.

Is this the best way to calculate the message length. Or do we have any
alternatives such as read the length from input stream?

Thanks,
Harsha

-- 
Harsha Kumara
Software Engineer, WSO2 Inc.
Mobile: +94775505618
Blog:harshcreationz.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Obtain objects from a list returned by java method, using a jaggery app

2016-05-02 Thread Sabra Ossen
Hi All,

I tried the method mentioned by Sameera which resulted in the following
log, indicating the functionalities of the list returned, which contains
"get".

[2016-05-02 16:34:24,140]  INFO {module/runtimeLogs/runtimeLogs.jag} -
 ["remove", "set", "containsAll", "trimToSize", "hashCode", "contains",
"indexOf", "wait", "add", "clear", "isEmpty", "notify", "empty",
"ensureCapacity", "retainAll", "subList", "removeAll", "notifyAll",
"getClass", "clone", "toArray", "iterator", "addAll", "get", "equals",
"listIterator", "class", "lastIndexOf", "size", "toString"]

I also tried the method mentioned by Pirinthapan, which works. Similar to
what is done in java we can get the object from the list and get the values
for the necessary fields.

Thank you both.

Regards.

On Mon, May 2, 2016 at 1:17 PM, Sameera Medagammaddegedara <
samee...@wso2.com> wrote:

> Hi,
>
>
> For future reference you can use the following approach to explore the
> returned object:
>
> log.info(Object.keys(versionList));
>
> The above statement will print the list of available functions and
> properties in the versionList object.
>
> Thanks,
> Sameera
>
>
>
> On Thu, Apr 28, 2016 at 4:23 PM, Pirinthapan Mahendran <
> pirintha...@wso2.com> wrote:
>
>> Hi Sabra,
>>
>> You can find the similar use case in [1].
>>
>> 1.
>> https://github.com/wso2/app-cloud/blob/master/modules/jaggeryapps/appmgt/src/modules/application/application.jag#L868
>>
>> Thanks.
>>
>>
>>
>> Mahendran Pirinthapan
>> Software Engineer | WSO2 Inc.
>> Mobile +94772378732.
>>
>> On Thu, Apr 28, 2016 at 1:52 PM, Sabra Ossen  wrote:
>>
>>> Hi All,
>>>
>>> How do I obtain the objects from a list, returned by a java method,
>>> using a jaggery app. Following "getAllVersionsOfApplication()" is the
>>> static java method that returns the version objects list and a version
>>> object contains the fields versionName and status.
>>>
>>> var versionList = 
>>> ApplicationManager.getAllVersionsOfApplication(applicationKey);
>>>
>>> I have added the jar containing the Application Manager class to
>>> AS_HOME/repository/components/dropins. Now from the jaggery app deployed in
>>> WSO2 AS I need to obtain the values for variables of each of the version
>>> object. Can someone help me on how to start with this issue.
>>>
>>> Thanks and Regards.
>>>
>>> --
>>> *Sabra Ossen*
>>> *Software Engineer*
>>> Email: sa...@wso2.com
>>> Mobile: +94 767 837356
>>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sameera Medagammaddegedara
> Software Engineer
>
> Contact:
> Email: samee...@wso2.com
> Mobile: + 94 077 255 3005
>



-- 
*Sabra Ossen*
*Software Engineer*
Email: sa...@wso2.com
Mobile: +94 767 837356
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Is streaming input & output support working in MSF4J?

2016-05-02 Thread Afkham Azeez
Is this working after moving to the new transport framework?

-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] C5 based esb product build fails due to a missing dependancy in msf4j-core

2016-05-02 Thread Afkham Azeez
If you don't build it locally, you will have to wait until the snapshot
gets published to the Nexus repo.

On Mon, May 2, 2016 at 3:36 PM, Himasha Guruge  wrote:

>  Missing requirement: swagger-core 1.5.8 (io.swagger.core 1.5.8) requires
> 'package com.fasterxml.jackson.dataformat.yaml [2.4.0,3.0.0)' but it could
> not be found
>
>  Cannot satisfy dependency:
>
>   From: msf4j-analytics 1.1.0.SNAPSHOT (msf4j-analytics 1.1.0.SNAPSHOT)
>
>   To: package org.wso2.msf4j [1.1.0,2.0.0)
>
>  Cannot satisfy dependency:
>
>   From: msf4j-core 1.1.0.SNAPSHOT (msf4j-core 1.1.0.SNAPSHOT)
>
>   To: package io.swagger.util [1.5.0,2.0.0)
>
>  Cannot satisfy dependency:
>
>   From: WSO2 MSF4J Feature 1.1.0.SNAPSHOT (org.wso2.msf4j.feature.group
> 1.1.0.SNAPSHOT)
>
>   To: msf4j-analytics [1.1.0.SNAPSHOT]
>
> On Mon, May 2, 2016 at 3:34 PM, Afkham Azeez  wrote:
>
>> What is the error?
>>
>> On Mon, May 2, 2016 at 3:34 PM, Himasha Guruge  wrote:
>>
>>> Hi Azeez,
>>>
>>> Tried to build BPS branch, and the build is still failing.
>>>
>>>
>>> Thanks,
>>> Himasha
>>>
>>> On Mon, May 2, 2016 at 2:33 PM, Afkham Azeez  wrote:
>>>
 We'll add a test

 On Mon, May 2, 2016 at 1:48 PM, Sameera Jayasoma 
 wrote:

> Hi Azeez/Samiyuru/Aruna,
>
> Can we add OSGi tests to avoid such failures in future?
>
> Thanks,
> Sameera.
>
> On Mon, May 2, 2016 at 10:06 AM, Vinod Kavinda  wrote:
>
>> Hi team,
>>
>> I'm getting the following error. It seems that "package
>> io.swagger.util" is missing. Please resolve this.
>>
>> Installation failed.
>>
>> Cannot complete the install because one or more required items could
>> not be found.
>>
>>  Software being installed: WSO2 MSF4J Feature 1.1.0.SNAPSHOT
>> (org.wso2.msf4j.feature.group 1.1.0.SNAPSHOT)
>>
>>  Missing requirement: swagger-core 1.5.8 (io.swagger.core 1.5.8)
>> requires 'package com.fasterxml.jackson.dataformat.yaml [2.4.0,3.0.0)' 
>> but
>> it could not be found
>>
>>  Cannot satisfy dependency:
>>
>>   From: msf4j-analytics 1.1.0.SNAPSHOT (msf4j-analytics
>> 1.1.0.SNAPSHOT)
>>
>>   To: package org.wso2.msf4j [1.1.0,2.0.0)
>>
>>  Cannot satisfy dependency:
>>
>>   From: msf4j-core 1.1.0.SNAPSHOT (msf4j-core 1.1.0.SNAPSHOT)
>>
>>   To: package io.swagger.util [1.5.0,2.0.0)
>>
>>  Cannot satisfy dependency:
>>
>>   From: WSO2 MSF4J Feature 1.1.0.SNAPSHOT
>> (org.wso2.msf4j.feature.group 1.1.0.SNAPSHOT)
>>
>>   To: msf4j-analytics [1.1.0.SNAPSHOT]
>>
>>
>> Regards,
>>
>> Vinod
>> --
>> Vinod Kavinda
>> Software Engineer
>> *WSO2 Inc. - lean . enterprise . middleware .*
>> Mobile : +94 (0) 712 415544
>> Blog : http://soatechflicks.blogspot.com/
>>
>>
>
>
> --
> 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
>
>


 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * *
 *email: **az...@wso2.com* 
 * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
 *http://blog.afkham.org* 
 *twitter: **http://twitter.com/afkham_azeez*
 
 *linked-in: **http://lk.linkedin.com/in/afkhamazeez
 *

 *Lean . Enterprise . Middleware*

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Himasha Guruge
>>> *Software Engineer*
>>> WS*O2* *Inc.*
>>> Mobile: +94 777459299
>>> himas...@wso2.com
>>>
>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> 
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> himas...@wso2.com
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3

[Dev] Deploying a single OSGI bundle with multiple microservices

2016-05-02 Thread Himasha Guruge
Hi Azeez/Sameera,

Is $subject possible with msf4j?  I have tried adding two microservices
within a single bundle, however when deployed it waits for the following
capabilities.

WARN
{org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
- Waiting on pending capability registration. Capability:
org.wso2.msf4j.Interceptor

[2016-05-02 14:10:30,937]  WARN
{org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
- Waiting on pending capability registration. Capability:
org.wso2.msf4j.Microservice

[2016-05-02 14:10:30,937]  WARN
{org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
- Waiting on pending capability registration. Capability:
org.wso2.msf4j.internal.MicroservicesServerSC

[2016-05-02 14:10:30,937]  WARN
{org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
- Waiting on pending capability registration. Capability:
org.wso2.carbon.kernel.transports.CarbonTransport

[2016-05-02 14:10:30,937]  WARN
{org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
- Waiting on pending capability registration. Capability:
org.wso2.carbon.kernel.deployment.DeploymentService

[2016-05-02 14:10:30,938]  WARN
{org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
- Waiting on pending capability registration. Capability:
org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent
Thanks,

Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC2016: [ML][CEP] Predictive analytic with online data for WSO2 Machine Learner

2016-05-02 Thread Maheshakya Wijewardena
>
> from
> InputStream#ml:predict('file:///home/mahesh/GSOC/WSO2/data-set/pima-indian-diabetes.data','double')
>

Moreover, you have to point to the trained model, not the dataset. You can
find the trained models in {ML_HOME}/models/ folder.

On Mon, May 2, 2016 at 3:33 PM, Maheshakya Wijewardena 
wrote:

> Hi Mahesh,
>
> You don't have to concern about the distributed mode in CEP at this
> moment. CEP, by default does not run in distributed mode. In the
> documentation, please ignore the sections about distributed CEP and Storm
> for now.
>
> Are you able to see ML commons, ML core, ML data services and ML siddhi
> extension in the installed features section of CEP?
>
> On Mon, May 2, 2016 at 3:27 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>>
>> Hi maheshakya,
>> I have installed them correctly.now I am trying to debug the siddhi
>> extention with the cep as the [1] describes. But when i created an input
>> stream and a predictionStream (output stream). when i was trying to create
>> new execution plan with above streams i got error when i clicked "Validate
>> Query Expression".Error was,
>> Error:
>> No extension exist for StreamFunctionExtension{namespace='ml'} in
>> execution plan "ExecutionPlan"
>>
>> and my expression is like a
>>
>> /* Enter a unique ExecutionPlan */
>> @Plan:name('ExecutionPlan')
>>
>> /* Enter a unique description for ExecutionPlan */
>> -- @Plan:description('ExecutionPlan')
>>
>> /* define streams/tables and write queries here ... */
>>
>> @Import('InputStream:1.0.0')
>> define stream InputStream (NumPregnancies double, TSFT double, DPF
>> double, BMI double, DBP double, PG2 double, Age double, SI2 double);
>>
>> @Export('PredictionStream:1.0.0')
>> define stream PredictionSTream (NumPregnancies double, TSFT double, DPF
>> double, BMI double, DBP double, PG2 double, Age double, SI2 double, Class
>> double);
>>
>> from
>> InputStream#ml:predict('file:///home/mahesh/GSOC/WSO2/data-set/pima-indian-diabetes.data','double')
>> select *
>> insert into PredictionStream
>>
>>
>> i used file instead of registry. And i referred to the [2] and there they
>> mention that solution for fixing CEP is running on distributed mode with
>> apache Storm cluster.
>>
>> 1. Is that CEP i built is originally run as distributed mode?
>> 2. Is this cuased by an not having sudo privilleges in current user when
>> installing ML features onto CEP?
>> 3.Is this the correct way to give file to CEP.
>>
>> [1]
>> https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions#WSO2CEPExtensionforMLPredictions-Siddhisyntaxfortheextension
>>
>> [2]https://wso2.org/jira/browse/CEP-1400
>>
>> BR,
>> Mahesh.
>>
>>
>> On Mon, May 2, 2016 at 12:35 PM, Maheshakya Wijewardena <
>> mahesha...@wso2.com> wrote:
>>
>>> Hi Mahesh,
>>>
>>> If you have built product-ml, you can find the P2-repo at
>>> product-ml/modules/p2-profile/target/p2-repo
>>> Add this folder as a local repository.
>>> After that, you should be able to see the ML features.
>>>
>>> Best regards.
>>>
>>> On Mon, May 2, 2016 at 12:24 PM, Mahesh Dananjaya <
>>> dananjayamah...@gmail.com> wrote:
>>>
 Hi Maheshakya,
 Since i already have carbon-ml built in my pc can i use my local
 repository to install those features in to CEP.is that correct.thank you.
 regards,
 Mahesh.

 On Mon, May 2, 2016 at 12:20 PM, Mahesh Dananjaya <
 dananjayamah...@gmail.com> wrote:

> Hi Maheshakya,
> Can you please tell me how to find the most recent p2 repository URL
> to add machine learner Core, Machine learner commons, Machine learner
> database service and ML Siddhi extension to add as features in CEP as
> describes in the [1]. When i use
> http://product-dist.wso2.com/p2/carbon/releases/4.2.0/ URL those
> features are not visible in the CEP.Is that not he most recent one.
> BR,
> Mahesh.
>
> [1]
> https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions#WSO2CEPExtensionforMLPredictions-Siddhisyntaxfortheextension
>
> On Mon, May 2, 2016 at 11:28 AM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi Maheshakya,
>> sorry for the incomplete message.I have set up the dev environment
>> and now i am trying to remotely debug. The following steps were done.
>> 1. build product-cep, carbon-ml and product-ml by source.
>> 2. go through their code bases and trying to understand the way and
>> the flow you developed.
>> 3. i have set up break point in org.wso2.carbon.ml.siddhi.extension
>> in carbon-ml
>> 4. start the ./wso2server.sh debug 5005 in the SNAPSHOT directory of
>> product-ml
>> 5. trying to trigger the break points with the [1] reference.break
>> points are placed in the PredictStreamProcessor.java file within the
>> extention.
>>
>> This is the way i followed. I was trying to remotely debug the ML
>> core by putting break-points in ml core.(org.wso2.carbon.

Re: [Dev] C5 based esb product build fails due to a missing dependancy in msf4j-core

2016-05-02 Thread Afkham Azeez
Did you locally build MSF4J?

On Mon, May 2, 2016 at 3:34 PM, Afkham Azeez  wrote:

> What is the error?
>
> On Mon, May 2, 2016 at 3:34 PM, Himasha Guruge  wrote:
>
>> Hi Azeez,
>>
>> Tried to build BPS branch, and the build is still failing.
>>
>>
>> Thanks,
>> Himasha
>>
>> On Mon, May 2, 2016 at 2:33 PM, Afkham Azeez  wrote:
>>
>>> We'll add a test
>>>
>>> On Mon, May 2, 2016 at 1:48 PM, Sameera Jayasoma 
>>> wrote:
>>>
 Hi Azeez/Samiyuru/Aruna,

 Can we add OSGi tests to avoid such failures in future?

 Thanks,
 Sameera.

 On Mon, May 2, 2016 at 10:06 AM, Vinod Kavinda  wrote:

> Hi team,
>
> I'm getting the following error. It seems that "package
> io.swagger.util" is missing. Please resolve this.
>
> Installation failed.
>
> Cannot complete the install because one or more required items could
> not be found.
>
>  Software being installed: WSO2 MSF4J Feature 1.1.0.SNAPSHOT
> (org.wso2.msf4j.feature.group 1.1.0.SNAPSHOT)
>
>  Missing requirement: swagger-core 1.5.8 (io.swagger.core 1.5.8)
> requires 'package com.fasterxml.jackson.dataformat.yaml [2.4.0,3.0.0)' but
> it could not be found
>
>  Cannot satisfy dependency:
>
>   From: msf4j-analytics 1.1.0.SNAPSHOT (msf4j-analytics 1.1.0.SNAPSHOT)
>
>   To: package org.wso2.msf4j [1.1.0,2.0.0)
>
>  Cannot satisfy dependency:
>
>   From: msf4j-core 1.1.0.SNAPSHOT (msf4j-core 1.1.0.SNAPSHOT)
>
>   To: package io.swagger.util [1.5.0,2.0.0)
>
>  Cannot satisfy dependency:
>
>   From: WSO2 MSF4J Feature 1.1.0.SNAPSHOT
> (org.wso2.msf4j.feature.group 1.1.0.SNAPSHOT)
>
>   To: msf4j-analytics [1.1.0.SNAPSHOT]
>
>
> Regards,
>
> Vinod
> --
> Vinod Kavinda
> Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware .*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
>
>


 --
 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


>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * *
>>> *email: **az...@wso2.com* 
>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: **http://twitter.com/afkham_azeez*
>>> 
>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Himasha Guruge
>> *Software Engineer*
>> WS*O2* *Inc.*
>> Mobile: +94 777459299
>> himas...@wso2.com
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] C5 based esb product build fails due to a missing dependancy in msf4j-core

2016-05-02 Thread Afkham Azeez
We will need to wait for the Carbon kernel release because we require the
utils for writing OSGi tests. We have plans to release MSF4J in two weeks
time.

On Mon, May 2, 2016 at 2:33 PM, Afkham Azeez  wrote:

> We'll add a test
>
> On Mon, May 2, 2016 at 1:48 PM, Sameera Jayasoma  wrote:
>
>> Hi Azeez/Samiyuru/Aruna,
>>
>> Can we add OSGi tests to avoid such failures in future?
>>
>> Thanks,
>> Sameera.
>>
>> On Mon, May 2, 2016 at 10:06 AM, Vinod Kavinda  wrote:
>>
>>> Hi team,
>>>
>>> I'm getting the following error. It seems that "package io.swagger.util"
>>> is missing. Please resolve this.
>>>
>>> Installation failed.
>>>
>>> Cannot complete the install because one or more required items could not
>>> be found.
>>>
>>>  Software being installed: WSO2 MSF4J Feature 1.1.0.SNAPSHOT
>>> (org.wso2.msf4j.feature.group 1.1.0.SNAPSHOT)
>>>
>>>  Missing requirement: swagger-core 1.5.8 (io.swagger.core 1.5.8)
>>> requires 'package com.fasterxml.jackson.dataformat.yaml [2.4.0,3.0.0)' but
>>> it could not be found
>>>
>>>  Cannot satisfy dependency:
>>>
>>>   From: msf4j-analytics 1.1.0.SNAPSHOT (msf4j-analytics 1.1.0.SNAPSHOT)
>>>
>>>   To: package org.wso2.msf4j [1.1.0,2.0.0)
>>>
>>>  Cannot satisfy dependency:
>>>
>>>   From: msf4j-core 1.1.0.SNAPSHOT (msf4j-core 1.1.0.SNAPSHOT)
>>>
>>>   To: package io.swagger.util [1.5.0,2.0.0)
>>>
>>>  Cannot satisfy dependency:
>>>
>>>   From: WSO2 MSF4J Feature 1.1.0.SNAPSHOT (org.wso2.msf4j.feature.group
>>> 1.1.0.SNAPSHOT)
>>>
>>>   To: msf4j-analytics [1.1.0.SNAPSHOT]
>>>
>>>
>>> Regards,
>>>
>>> Vinod
>>> --
>>> Vinod Kavinda
>>> Software Engineer
>>> *WSO2 Inc. - lean . enterprise . middleware .*
>>> Mobile : +94 (0) 712 415544
>>> Blog : http://soatechflicks.blogspot.com/
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] C5 based esb product build fails due to a missing dependancy in msf4j-core

2016-05-02 Thread Himasha Guruge
 Missing requirement: swagger-core 1.5.8 (io.swagger.core 1.5.8) requires
'package com.fasterxml.jackson.dataformat.yaml [2.4.0,3.0.0)' but it could
not be found

 Cannot satisfy dependency:

  From: msf4j-analytics 1.1.0.SNAPSHOT (msf4j-analytics 1.1.0.SNAPSHOT)

  To: package org.wso2.msf4j [1.1.0,2.0.0)

 Cannot satisfy dependency:

  From: msf4j-core 1.1.0.SNAPSHOT (msf4j-core 1.1.0.SNAPSHOT)

  To: package io.swagger.util [1.5.0,2.0.0)

 Cannot satisfy dependency:

  From: WSO2 MSF4J Feature 1.1.0.SNAPSHOT (org.wso2.msf4j.feature.group
1.1.0.SNAPSHOT)

  To: msf4j-analytics [1.1.0.SNAPSHOT]

On Mon, May 2, 2016 at 3:34 PM, Afkham Azeez  wrote:

> What is the error?
>
> On Mon, May 2, 2016 at 3:34 PM, Himasha Guruge  wrote:
>
>> Hi Azeez,
>>
>> Tried to build BPS branch, and the build is still failing.
>>
>>
>> Thanks,
>> Himasha
>>
>> On Mon, May 2, 2016 at 2:33 PM, Afkham Azeez  wrote:
>>
>>> We'll add a test
>>>
>>> On Mon, May 2, 2016 at 1:48 PM, Sameera Jayasoma 
>>> wrote:
>>>
 Hi Azeez/Samiyuru/Aruna,

 Can we add OSGi tests to avoid such failures in future?

 Thanks,
 Sameera.

 On Mon, May 2, 2016 at 10:06 AM, Vinod Kavinda  wrote:

> Hi team,
>
> I'm getting the following error. It seems that "package
> io.swagger.util" is missing. Please resolve this.
>
> Installation failed.
>
> Cannot complete the install because one or more required items could
> not be found.
>
>  Software being installed: WSO2 MSF4J Feature 1.1.0.SNAPSHOT
> (org.wso2.msf4j.feature.group 1.1.0.SNAPSHOT)
>
>  Missing requirement: swagger-core 1.5.8 (io.swagger.core 1.5.8)
> requires 'package com.fasterxml.jackson.dataformat.yaml [2.4.0,3.0.0)' but
> it could not be found
>
>  Cannot satisfy dependency:
>
>   From: msf4j-analytics 1.1.0.SNAPSHOT (msf4j-analytics 1.1.0.SNAPSHOT)
>
>   To: package org.wso2.msf4j [1.1.0,2.0.0)
>
>  Cannot satisfy dependency:
>
>   From: msf4j-core 1.1.0.SNAPSHOT (msf4j-core 1.1.0.SNAPSHOT)
>
>   To: package io.swagger.util [1.5.0,2.0.0)
>
>  Cannot satisfy dependency:
>
>   From: WSO2 MSF4J Feature 1.1.0.SNAPSHOT
> (org.wso2.msf4j.feature.group 1.1.0.SNAPSHOT)
>
>   To: msf4j-analytics [1.1.0.SNAPSHOT]
>
>
> Regards,
>
> Vinod
> --
> Vinod Kavinda
> Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware .*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
>
>


 --
 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


>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * *
>>> *email: **az...@wso2.com* 
>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: **http://twitter.com/afkham_azeez*
>>> 
>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Himasha Guruge
>> *Software Engineer*
>> WS*O2* *Inc.*
>> Mobile: +94 777459299
>> himas...@wso2.com
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] C5 based esb product build fails due to a missing dependancy in msf4j-core

2016-05-02 Thread Afkham Azeez
What is the error?

On Mon, May 2, 2016 at 3:34 PM, Himasha Guruge  wrote:

> Hi Azeez,
>
> Tried to build BPS branch, and the build is still failing.
>
>
> Thanks,
> Himasha
>
> On Mon, May 2, 2016 at 2:33 PM, Afkham Azeez  wrote:
>
>> We'll add a test
>>
>> On Mon, May 2, 2016 at 1:48 PM, Sameera Jayasoma 
>> wrote:
>>
>>> Hi Azeez/Samiyuru/Aruna,
>>>
>>> Can we add OSGi tests to avoid such failures in future?
>>>
>>> Thanks,
>>> Sameera.
>>>
>>> On Mon, May 2, 2016 at 10:06 AM, Vinod Kavinda  wrote:
>>>
 Hi team,

 I'm getting the following error. It seems that "package
 io.swagger.util" is missing. Please resolve this.

 Installation failed.

 Cannot complete the install because one or more required items could
 not be found.

  Software being installed: WSO2 MSF4J Feature 1.1.0.SNAPSHOT
 (org.wso2.msf4j.feature.group 1.1.0.SNAPSHOT)

  Missing requirement: swagger-core 1.5.8 (io.swagger.core 1.5.8)
 requires 'package com.fasterxml.jackson.dataformat.yaml [2.4.0,3.0.0)' but
 it could not be found

  Cannot satisfy dependency:

   From: msf4j-analytics 1.1.0.SNAPSHOT (msf4j-analytics 1.1.0.SNAPSHOT)

   To: package org.wso2.msf4j [1.1.0,2.0.0)

  Cannot satisfy dependency:

   From: msf4j-core 1.1.0.SNAPSHOT (msf4j-core 1.1.0.SNAPSHOT)

   To: package io.swagger.util [1.5.0,2.0.0)

  Cannot satisfy dependency:

   From: WSO2 MSF4J Feature 1.1.0.SNAPSHOT (org.wso2.msf4j.feature.group
 1.1.0.SNAPSHOT)

   To: msf4j-analytics [1.1.0.SNAPSHOT]


 Regards,

 Vinod
 --
 Vinod Kavinda
 Software Engineer
 *WSO2 Inc. - lean . enterprise . middleware .*
 Mobile : +94 (0) 712 415544
 Blog : http://soatechflicks.blogspot.com/


>>>
>>>
>>> --
>>> 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
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> 
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> himas...@wso2.com
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC2016: [ML][CEP] Predictive analytic with online data for WSO2 Machine Learner

2016-05-02 Thread Maheshakya Wijewardena
Hi Mahesh,

You don't have to concern about the distributed mode in CEP at this moment.
CEP, by default does not run in distributed mode. In the documentation,
please ignore the sections about distributed CEP and Storm for now.

Are you able to see ML commons, ML core, ML data services and ML siddhi
extension in the installed features section of CEP?

On Mon, May 2, 2016 at 3:27 PM, Mahesh Dananjaya 
wrote:

>
> Hi maheshakya,
> I have installed them correctly.now I am trying to debug the siddhi
> extention with the cep as the [1] describes. But when i created an input
> stream and a predictionStream (output stream). when i was trying to create
> new execution plan with above streams i got error when i clicked "Validate
> Query Expression".Error was,
> Error:
> No extension exist for StreamFunctionExtension{namespace='ml'} in
> execution plan "ExecutionPlan"
>
> and my expression is like a
>
> /* Enter a unique ExecutionPlan */
> @Plan:name('ExecutionPlan')
>
> /* Enter a unique description for ExecutionPlan */
> -- @Plan:description('ExecutionPlan')
>
> /* define streams/tables and write queries here ... */
>
> @Import('InputStream:1.0.0')
> define stream InputStream (NumPregnancies double, TSFT double, DPF double,
> BMI double, DBP double, PG2 double, Age double, SI2 double);
>
> @Export('PredictionStream:1.0.0')
> define stream PredictionSTream (NumPregnancies double, TSFT double, DPF
> double, BMI double, DBP double, PG2 double, Age double, SI2 double, Class
> double);
>
> from
> InputStream#ml:predict('file:///home/mahesh/GSOC/WSO2/data-set/pima-indian-diabetes.data','double')
> select *
> insert into PredictionStream
>
>
> i used file instead of registry. And i referred to the [2] and there they
> mention that solution for fixing CEP is running on distributed mode with
> apache Storm cluster.
>
> 1. Is that CEP i built is originally run as distributed mode?
> 2. Is this cuased by an not having sudo privilleges in current user when
> installing ML features onto CEP?
> 3.Is this the correct way to give file to CEP.
>
> [1]
> https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions#WSO2CEPExtensionforMLPredictions-Siddhisyntaxfortheextension
>
> [2]https://wso2.org/jira/browse/CEP-1400
>
> BR,
> Mahesh.
>
>
> On Mon, May 2, 2016 at 12:35 PM, Maheshakya Wijewardena <
> mahesha...@wso2.com> wrote:
>
>> Hi Mahesh,
>>
>> If you have built product-ml, you can find the P2-repo at
>> product-ml/modules/p2-profile/target/p2-repo
>> Add this folder as a local repository.
>> After that, you should be able to see the ML features.
>>
>> Best regards.
>>
>> On Mon, May 2, 2016 at 12:24 PM, Mahesh Dananjaya <
>> dananjayamah...@gmail.com> wrote:
>>
>>> Hi Maheshakya,
>>> Since i already have carbon-ml built in my pc can i use my local
>>> repository to install those features in to CEP.is that correct.thank you.
>>> regards,
>>> Mahesh.
>>>
>>> On Mon, May 2, 2016 at 12:20 PM, Mahesh Dananjaya <
>>> dananjayamah...@gmail.com> wrote:
>>>
 Hi Maheshakya,
 Can you please tell me how to find the most recent p2 repository URL to
 add machine learner Core, Machine learner commons, Machine learner database
 service and ML Siddhi extension to add as features in CEP as describes in
 the [1]. When i use
 http://product-dist.wso2.com/p2/carbon/releases/4.2.0/ URL those
 features are not visible in the CEP.Is that not he most recent one.
 BR,
 Mahesh.

 [1]
 https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions#WSO2CEPExtensionforMLPredictions-Siddhisyntaxfortheextension

 On Mon, May 2, 2016 at 11:28 AM, Mahesh Dananjaya <
 dananjayamah...@gmail.com> wrote:

> Hi Maheshakya,
> sorry for the incomplete message.I have set up the dev environment and
> now i am trying to remotely debug. The following steps were done.
> 1. build product-cep, carbon-ml and product-ml by source.
> 2. go through their code bases and trying to understand the way and
> the flow you developed.
> 3. i have set up break point in org.wso2.carbon.ml.siddhi.extension in
> carbon-ml
> 4. start the ./wso2server.sh debug 5005 in the SNAPSHOT directory of
> product-ml
> 5. trying to trigger the break points with the [1] reference.break
> points are placed in the PredictStreamProcessor.java file within the
> extention.
>
> This is the way i followed. I was trying to remotely debug the ML core
> by putting break-points in ml core.(org.wso2.carbon.ml.core) in spark java
> files. Is this the right way to do those things.
>
> [1]
> https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions#WSO2CEPExtensionforMLPredictions-Siddhisyntaxfortheextension
>
> On Mon, May 2, 2016 at 11:19 AM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi maheshakya,
>> I have set up the dev environment and now i am trying to remotely
>> debug. The following

Re: [Dev] C5 based esb product build fails due to a missing dependancy in msf4j-core

2016-05-02 Thread Himasha Guruge
Hi Azeez,

Tried to build BPS branch, and the build is still failing.


Thanks,
Himasha

On Mon, May 2, 2016 at 2:33 PM, Afkham Azeez  wrote:

> We'll add a test
>
> On Mon, May 2, 2016 at 1:48 PM, Sameera Jayasoma  wrote:
>
>> Hi Azeez/Samiyuru/Aruna,
>>
>> Can we add OSGi tests to avoid such failures in future?
>>
>> Thanks,
>> Sameera.
>>
>> On Mon, May 2, 2016 at 10:06 AM, Vinod Kavinda  wrote:
>>
>>> Hi team,
>>>
>>> I'm getting the following error. It seems that "package io.swagger.util"
>>> is missing. Please resolve this.
>>>
>>> Installation failed.
>>>
>>> Cannot complete the install because one or more required items could not
>>> be found.
>>>
>>>  Software being installed: WSO2 MSF4J Feature 1.1.0.SNAPSHOT
>>> (org.wso2.msf4j.feature.group 1.1.0.SNAPSHOT)
>>>
>>>  Missing requirement: swagger-core 1.5.8 (io.swagger.core 1.5.8)
>>> requires 'package com.fasterxml.jackson.dataformat.yaml [2.4.0,3.0.0)' but
>>> it could not be found
>>>
>>>  Cannot satisfy dependency:
>>>
>>>   From: msf4j-analytics 1.1.0.SNAPSHOT (msf4j-analytics 1.1.0.SNAPSHOT)
>>>
>>>   To: package org.wso2.msf4j [1.1.0,2.0.0)
>>>
>>>  Cannot satisfy dependency:
>>>
>>>   From: msf4j-core 1.1.0.SNAPSHOT (msf4j-core 1.1.0.SNAPSHOT)
>>>
>>>   To: package io.swagger.util [1.5.0,2.0.0)
>>>
>>>  Cannot satisfy dependency:
>>>
>>>   From: WSO2 MSF4J Feature 1.1.0.SNAPSHOT (org.wso2.msf4j.feature.group
>>> 1.1.0.SNAPSHOT)
>>>
>>>   To: msf4j-analytics [1.1.0.SNAPSHOT]
>>>
>>>
>>> Regards,
>>>
>>> Vinod
>>> --
>>> Vinod Kavinda
>>> Software Engineer
>>> *WSO2 Inc. - lean . enterprise . middleware .*
>>> Mobile : +94 (0) 712 415544
>>> Blog : http://soatechflicks.blogspot.com/
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: GSOC2016: [ML][CEP] Predictive analytic with online data for WSO2 Machine Learner

2016-05-02 Thread Mahesh Dananjaya
Hi maheshakya,
I have installed them correctly.now I am trying to debug the siddhi
extention with the cep as the [1] describes. But when i created an input
stream and a predictionStream (output stream). when i was trying to create
new execution plan with above streams i got error when i clicked "Validate
Query Expression".Error was,
Error:
No extension exist for StreamFunctionExtension{namespace='ml'} in execution
plan "ExecutionPlan"

and my expression is like a

/* Enter a unique ExecutionPlan */
@Plan:name('ExecutionPlan')

/* Enter a unique description for ExecutionPlan */
-- @Plan:description('ExecutionPlan')

/* define streams/tables and write queries here ... */

@Import('InputStream:1.0.0')
define stream InputStream (NumPregnancies double, TSFT double, DPF double,
BMI double, DBP double, PG2 double, Age double, SI2 double);

@Export('PredictionStream:1.0.0')
define stream PredictionSTream (NumPregnancies double, TSFT double, DPF
double, BMI double, DBP double, PG2 double, Age double, SI2 double, Class
double);

from
InputStream#ml:predict('file:///home/mahesh/GSOC/WSO2/data-set/pima-indian-diabetes.data','double')
select *
insert into PredictionStream


i used file instead of registry. And i referred to the [2] and there they
mention that solution for fixing CEP is running on distributed mode with
apache Storm cluster.

1. Is that CEP i built is originally run as distributed mode?
2. Is this cuased by an not having sudo privilleges in current user when
installing ML features onto CEP?
3.Is this the correct way to give file to CEP.

[1]
https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions#WSO2CEPExtensionforMLPredictions-Siddhisyntaxfortheextension

[2]https://wso2.org/jira/browse/CEP-1400

BR,
Mahesh.


On Mon, May 2, 2016 at 12:35 PM, Maheshakya Wijewardena  wrote:

> Hi Mahesh,
>
> If you have built product-ml, you can find the P2-repo at
> product-ml/modules/p2-profile/target/p2-repo
> Add this folder as a local repository.
> After that, you should be able to see the ML features.
>
> Best regards.
>
> On Mon, May 2, 2016 at 12:24 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi Maheshakya,
>> Since i already have carbon-ml built in my pc can i use my local
>> repository to install those features in to CEP.is that correct.thank you.
>> regards,
>> Mahesh.
>>
>> On Mon, May 2, 2016 at 12:20 PM, Mahesh Dananjaya <
>> dananjayamah...@gmail.com> wrote:
>>
>>> Hi Maheshakya,
>>> Can you please tell me how to find the most recent p2 repository URL to
>>> add machine learner Core, Machine learner commons, Machine learner database
>>> service and ML Siddhi extension to add as features in CEP as describes in
>>> the [1]. When i use
>>> http://product-dist.wso2.com/p2/carbon/releases/4.2.0/ URL those
>>> features are not visible in the CEP.Is that not he most recent one.
>>> BR,
>>> Mahesh.
>>>
>>> [1]
>>> https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions#WSO2CEPExtensionforMLPredictions-Siddhisyntaxfortheextension
>>>
>>> On Mon, May 2, 2016 at 11:28 AM, Mahesh Dananjaya <
>>> dananjayamah...@gmail.com> wrote:
>>>
 Hi Maheshakya,
 sorry for the incomplete message.I have set up the dev environment and
 now i am trying to remotely debug. The following steps were done.
 1. build product-cep, carbon-ml and product-ml by source.
 2. go through their code bases and trying to understand the way and the
 flow you developed.
 3. i have set up break point in org.wso2.carbon.ml.siddhi.extension in
 carbon-ml
 4. start the ./wso2server.sh debug 5005 in the SNAPSHOT directory of
 product-ml
 5. trying to trigger the break points with the [1] reference.break
 points are placed in the PredictStreamProcessor.java file within the
 extention.

 This is the way i followed. I was trying to remotely debug the ML core
 by putting break-points in ml core.(org.wso2.carbon.ml.core) in spark java
 files. Is this the right way to do those things.

 [1]
 https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions#WSO2CEPExtensionforMLPredictions-Siddhisyntaxfortheextension

 On Mon, May 2, 2016 at 11:19 AM, Mahesh Dananjaya <
 dananjayamah...@gmail.com> wrote:

> Hi maheshakya,
> I have set up the dev environment and now i am trying to remotely
> debug. The following steps were done.
> 1. build product-cep, carbon-ml and product-ml by source.
> 2. go through their code bases and trying to understand the way and
> the flow you developed.
> 3. i have set up break point in
>
>
> On Thu, Apr 28, 2016 at 7:05 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi Maheshakya,
>> ok.i got it.thank you.
>> regards,
>> Mahesh.
>>
>> On Thu, Apr 28, 2016 at 6:56 PM, Maheshakya Wijewardena <
>> mahesha...@wso2.com> wrote:
>>
>>> Hi Mahesh,
>>>
>>> The links was an example

Re: [Dev] C5 based esb product build fails due to a missing dependancy in msf4j-core

2016-05-02 Thread Afkham Azeez
We'll add a test

On Mon, May 2, 2016 at 1:48 PM, Sameera Jayasoma  wrote:

> Hi Azeez/Samiyuru/Aruna,
>
> Can we add OSGi tests to avoid such failures in future?
>
> Thanks,
> Sameera.
>
> On Mon, May 2, 2016 at 10:06 AM, Vinod Kavinda  wrote:
>
>> Hi team,
>>
>> I'm getting the following error. It seems that "package io.swagger.util"
>> is missing. Please resolve this.
>>
>> Installation failed.
>>
>> Cannot complete the install because one or more required items could not
>> be found.
>>
>>  Software being installed: WSO2 MSF4J Feature 1.1.0.SNAPSHOT
>> (org.wso2.msf4j.feature.group 1.1.0.SNAPSHOT)
>>
>>  Missing requirement: swagger-core 1.5.8 (io.swagger.core 1.5.8) requires
>> 'package com.fasterxml.jackson.dataformat.yaml [2.4.0,3.0.0)' but it could
>> not be found
>>
>>  Cannot satisfy dependency:
>>
>>   From: msf4j-analytics 1.1.0.SNAPSHOT (msf4j-analytics 1.1.0.SNAPSHOT)
>>
>>   To: package org.wso2.msf4j [1.1.0,2.0.0)
>>
>>  Cannot satisfy dependency:
>>
>>   From: msf4j-core 1.1.0.SNAPSHOT (msf4j-core 1.1.0.SNAPSHOT)
>>
>>   To: package io.swagger.util [1.5.0,2.0.0)
>>
>>  Cannot satisfy dependency:
>>
>>   From: WSO2 MSF4J Feature 1.1.0.SNAPSHOT (org.wso2.msf4j.feature.group
>> 1.1.0.SNAPSHOT)
>>
>>   To: msf4j-analytics [1.1.0.SNAPSHOT]
>>
>>
>> Regards,
>>
>> Vinod
>> --
>> Vinod Kavinda
>> Software Engineer
>> *WSO2 Inc. - lean . enterprise . middleware .*
>> Mobile : +94 (0) 712 415544
>> Blog : http://soatechflicks.blogspot.com/
>>
>>
>
>
> --
> 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
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] C5 based esb product build fails due to a missing dependancy in msf4j-core

2016-05-02 Thread Afkham Azeez
On Mon, May 2, 2016 at 10:06 AM, Vinod Kavinda  wrote:

> com.fasterxml.jackson.dataform


Can you check now? This is still work in progress.


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Carbon Security CAAS 1.0.0-M1 Released

2016-05-02 Thread Thanuja Jayasinghe
*WSO2 Carbon Security CAAS 1.0.0-M1 Released*

The Identity Server team is pleased to announce the release of Carbon Security
CAAS 1.0.0-M1. It is now available to download from here
.

*Features*

*https://wso2.org/jira/issues/?filter=13052
*

*Installing as a Carbon Feature*

You may install carbon-security-caas feature to your product with:


  org.wso2.carbon.security.caas
  org.wso2.carbon.security.caas.feature
  1.0.0-m1
  zip


*How to Contribute*

   - WSO2 Carbon Security CAAS code is hosted in github.
   - The Git repository is *https://github.com/wso2/carbon-security
   *
   - Carbon Security CAAS 1.0.0-m1 release tag is
*https://github.com/wso2/carbon-security/releases/tag/v1.0.0-m1
   *
   - Please report issues at Carbon Security Jira,
*https://wso2.org/jira/browse/CSECURITY
   *


*Contact Us *

​WSO2 Carbon developers​ can be contacted via following mailing lists:

   - WSO2 Developers List: dev@wso2.org
   - WSO2 Architecture List: architect...@wso2.org


​Thank you for your interest in WSO2 Carbon Security CAAS​.

Best Regards
Identity Server Team

-- 
*Thanuja Lakmal*
Senior Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94715979891 +94758009992
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] C5 based esb product build fails due to a missing dependancy in msf4j-core

2016-05-02 Thread Sameera Jayasoma
Hi Azeez/Samiyuru/Aruna,

Can we add OSGi tests to avoid such failures in future?

Thanks,
Sameera.

On Mon, May 2, 2016 at 10:06 AM, Vinod Kavinda  wrote:

> Hi team,
>
> I'm getting the following error. It seems that "package io.swagger.util"
> is missing. Please resolve this.
>
> Installation failed.
>
> Cannot complete the install because one or more required items could not
> be found.
>
>  Software being installed: WSO2 MSF4J Feature 1.1.0.SNAPSHOT
> (org.wso2.msf4j.feature.group 1.1.0.SNAPSHOT)
>
>  Missing requirement: swagger-core 1.5.8 (io.swagger.core 1.5.8) requires
> 'package com.fasterxml.jackson.dataformat.yaml [2.4.0,3.0.0)' but it could
> not be found
>
>  Cannot satisfy dependency:
>
>   From: msf4j-analytics 1.1.0.SNAPSHOT (msf4j-analytics 1.1.0.SNAPSHOT)
>
>   To: package org.wso2.msf4j [1.1.0,2.0.0)
>
>  Cannot satisfy dependency:
>
>   From: msf4j-core 1.1.0.SNAPSHOT (msf4j-core 1.1.0.SNAPSHOT)
>
>   To: package io.swagger.util [1.5.0,2.0.0)
>
>  Cannot satisfy dependency:
>
>   From: WSO2 MSF4J Feature 1.1.0.SNAPSHOT (org.wso2.msf4j.feature.group
> 1.1.0.SNAPSHOT)
>
>   To: msf4j-analytics [1.1.0.SNAPSHOT]
>
>
> Regards,
>
> Vinod
> --
> Vinod Kavinda
> Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware .*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
>
>


-- 
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


Re: [Dev] Usage of Update Interval in DS 2.0

2016-05-02 Thread Dunith Dhanushka
Hi Sinthuja,
Yes, currently there's no use of user preference 'updateInterval'.

Initial plan was to read refresh interval as a user preference. Due some
diffuculties we moved the gadget refreshing logic to gadget level. So we
left property definition there so that it could be used in the future.
Anyway we'll remove it from index.xml since there's no current usage and
it'll make confusion.

Nirodha,

I believe your requirement can be achieved using something like below.

var REFRESH_INTERVAL = 5000;

setInterval(function() {
renderGadget();
},REFRESH_INTERVAL);

This code needs to be inside your gadget.

On Mon, May 2, 2016 at 12:46 PM, Sinthuja Ragendran 
wrote:

> Hi Dunith,
>
> If we don't use the the update interval at all, then it should not be in
> the user pref element. :) We need to correct this behaviour.
>
> Thanks,
> Sinthuja.
>
> On Mon, May 2, 2016 at 12:36 PM, Nirodha Gallage  wrote:
>
>> Hi Dunith,
>>
>> Then I guess the term "Update Interval" is a bit confusing. Even sinthuja
>> understood it the same way.
>>
>>
>>
>>
>> On Mon, May 2, 2016 at 12:24 PM, Dunith Dhanushka 
>> wrote:
>>
>>> Hi Nirodha,
>>>
>>> I assume you are referring to the gadget user preference called 'Update
>>> Interval'. In fact, that was just a placeholder property which has no
>>> effect on gadget's polling interval.
>>>
>>> For wizard generated gadget, polling interval is configured in
>>> js/main.js file as follows.
>>>
>>> var REFRESH_INTERVAL = 5000;
>>>
>>>
>>> Thanks,
>>> Dunith
>>>
>>> On Mon, May 2, 2016 at 12:14 PM, Sinthuja Ragendran 
>>> wrote:
>>>
 Hi Nirodha,

 Yeah, AFAIU it'll fetch the data from the DAS based on the time
 interval provided here and reload the gadget. @Dunith, please confirm.

 Thanks,
 Sinthuja.

 On Mon, May 2, 2016 at 11:47 AM, Nirodha Gallage 
 wrote:

> Hi,
>
> What's the usage of 'update interval' option given for gadgets in
> Dashboard server. Is it that gadget should be reloaded automatically in 
> the
> given intervals?
>
> Thanks,
> Nirodha
>
> --
>
> *Nirodha Gallage*
> Associate Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94716429078
>



 --
 *Sinthuja Rajendran*
 Associate Technical Lead
 WSO2, Inc.:http://wso2.com

 Blog: http://sinthu-rajan.blogspot.com/
 Mobile: +94774273955



>>>
>>>
>>> --
>>> Regards,
>>>
>>> Dunith Dhanushka,
>>> Senior Software Engineer
>>> WSO2 Inc,
>>>
>>> Mobile - +94 71 8615744
>>> Blog - dunithd.wordpress.com 
>>> Twitter - @dunithd 
>>>
>>
>>
>>
>> --
>>
>> *Nirodha Gallage*
>> Associate Technical Lead
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94716429078
>>
>
>
>
> --
> *Sinthuja Rajendran*
> Associate Technical Lead
> WSO2, Inc.:http://wso2.com
>
> Blog: http://sinthu-rajan.blogspot.com/
> Mobile: +94774273955
>
>
>


-- 
Regards,

Dunith Dhanushka,
Senior Software Engineer
WSO2 Inc,

Mobile - +94 71 8615744
Blog - dunithd.wordpress.com 
Twitter - @dunithd 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-05-02 Thread Asantha Thilina
Hi Tharindu,

as you adviced i started creating corresponding mongodb database structure
for IS user store i done the user store database script and share it in
here [1] and identity script still writing  before further progress on
identity script i would be very thankful if i can get your comment about my
user store script whether it correct or need to improve while i mapping
mysql script to mongodb i faced on following issue
MongoDB is not supporting to multikey hashed indexes according to their
documentation in here [2] therefore i create one hash index per document
which are need hash indexes
for mapping foreign keys i used the manual way than db refs or embeded
documents to avoid data repition for that i refer their documentation in
here [3]
For storage engine i used the default engine called wired tiger according
to their documentation in here [4]
waiting for your feedback about my works,
[1].
https://github.com/asanthamax/mongodbuserstore/blob/master/identity_server.js
[2]. https://docs.mongodb.org/v3.0/tutorial/create-a-hashed-index/
[3]. https://docs.mongodb.org/manual/reference/database-references/
[4]. https://docs.mongodb.org/manual/core/wiredtiger/

Thanks,
Asantha

On Sat, Apr 30, 2016 at 4:02 AM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> thanks for the guidance sure i'll do that way and update you as i progress
>
> Thanks,
> Asantha
>
> On Fri, Apr 29, 2016 at 10:00 PM, Tharindu Edirisinghe  > wrote:
>
>> Hi Asantha,
>>
>> Great work ! Yes, you will have to manually create the database with the
>> tables. Then once you create the userstore in Identity Server and point to
>> the particular database, it should work properly.
>>
>> Then what you can do here is converting the relational db schema to
>> collections in mongodb. You can refer the IS_5.1.0_HOME/dbscripts/ location
>> where all the database scripts are stored. You need to look at only 2 sql
>> files for the moment. They are the IS_5.1.0_HOME/dbscripts/mysql.sql and
>> IS_5.1.0_HOME/dbscripts/identity/mysql.sql . Referring these two files, you
>> can write 2 sql files for mongodb.
>>
>> Later we can do some modifications to automatically create the database
>> (if the mongodb userstore is selected to be the PRIMARY userstore)
>> referring the schema in above 2 files.
>>
>> Regards,
>> TharinduE
>>
>> On Fri, Apr 29, 2016 at 10:22 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> Thanks for the instructions As you described in mail i followed all the
>>> steps and i  have been now able to see my new user store service is started
>>> and shown in IS as you suggested i have changed the username and password
>>> fields to mandatory and updated code i shared in here [1] after adding new
>>> mongodb user store under new user store section in IS it gives the success
>>> message but nothing showing at the user store list in admin console here i
>>> attached screenshots of my IS console ,would i need to create database with
>>> all the necessary tables to add new user store?
>>>
>>> [1]. https://github.com/asanthamax/mongodbuserstore
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Thu, Apr 28, 2016 at 7:48 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
 Hi Tharindu,

 Thanks for the reply ,i will follow the instructions and update you

 Thanks,
 Asantha

 On Fri, Apr 29, 2016 at 8:10 AM, Tharindu Edirisinghe <
 tharin...@wso2.com> wrote:

> Hi Asantha,
>
> Can you try out the following steps in a fresh (new) Identity Server
> 5.1.0 pack.
>
> 1. Put the MongoDB JDBC driver in repository/components/lib directory.
> 2. Build the mongodb userstore manager and copy the built jar file to
> repository/components/dropins directory.
> 3. Connect to the mongodb shell and create an admin user.
>
> *> use admin*
> switched to db admin
> *> db.createUser({user:"admin", pwd:"admin123", roles:[{role:"root",
> db:"admin"}]})*
> Successfully added user: {
> "user" : "admin",
> "roles" : [
> {
> "role" : "root",
> "db" : "admin"
> }
> ]
> }
>
> 4. Start the Identity Server with OSGI console (sh wso2server.sh
> -DOsgiConsole)
>
> 5. Once the server is up, check if the userstore manager bundle and
> the jdbc driver are active.
>
> osgi> *ss mongo*
>
> idState   Bundle
> 86ACTIVE  mongodb.userstoremanager_0.0.1.SNAPSHOT
> 87ACTIVE  mongodb_driver_3.2.2_1.0.0
>
> 6. Access the Management Console and add a new usrestore.
>
> 5. In the available userstore managers dropdown, you should be able to
> see following.
>
>
>
>
> *org.wso2.carbon.mongodb.userstoremanager.MongoDBUserStoreManager*
> 6. Add the userstore manager providing the connection details. You can
> use the credentials of the user you created previously on mongod

Re: [Dev] Obtain objects from a list returned by java method, using a jaggery app

2016-05-02 Thread Sameera Medagammaddegedara
Hi,


For future reference you can use the following approach to explore the
returned object:

log.info(Object.keys(versionList));

The above statement will print the list of available functions and
properties in the versionList object.

Thanks,
Sameera



On Thu, Apr 28, 2016 at 4:23 PM, Pirinthapan Mahendran  wrote:

> Hi Sabra,
>
> You can find the similar use case in [1].
>
> 1.
> https://github.com/wso2/app-cloud/blob/master/modules/jaggeryapps/appmgt/src/modules/application/application.jag#L868
>
> Thanks.
>
>
>
> Mahendran Pirinthapan
> Software Engineer | WSO2 Inc.
> Mobile +94772378732.
>
> On Thu, Apr 28, 2016 at 1:52 PM, Sabra Ossen  wrote:
>
>> Hi All,
>>
>> How do I obtain the objects from a list, returned by a java method, using
>> a jaggery app. Following "getAllVersionsOfApplication()" is the static java
>> method that returns the version objects list and a version object contains
>> the fields versionName and status.
>>
>> var versionList = 
>> ApplicationManager.getAllVersionsOfApplication(applicationKey);
>>
>> I have added the jar containing the Application Manager class to
>> AS_HOME/repository/components/dropins. Now from the jaggery app deployed in
>> WSO2 AS I need to obtain the values for variables of each of the version
>> object. Can someone help me on how to start with this issue.
>>
>> Thanks and Regards.
>>
>> --
>> *Sabra Ossen*
>> *Software Engineer*
>> Email: sa...@wso2.com
>> Mobile: +94 767 837356
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sameera Medagammaddegedara
Software Engineer

Contact:
Email: samee...@wso2.com
Mobile: + 94 077 255 3005
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Usage of Update Interval in DS 2.0

2016-05-02 Thread Sinthuja Ragendran
Hi Dunith,

If we don't use the the update interval at all, then it should not be in
the user pref element. :) We need to correct this behaviour.

Thanks,
Sinthuja.

On Mon, May 2, 2016 at 12:36 PM, Nirodha Gallage  wrote:

> Hi Dunith,
>
> Then I guess the term "Update Interval" is a bit confusing. Even sinthuja
> understood it the same way.
>
>
>
>
> On Mon, May 2, 2016 at 12:24 PM, Dunith Dhanushka  wrote:
>
>> Hi Nirodha,
>>
>> I assume you are referring to the gadget user preference called 'Update
>> Interval'. In fact, that was just a placeholder property which has no
>> effect on gadget's polling interval.
>>
>> For wizard generated gadget, polling interval is configured in js/main.js
>> file as follows.
>>
>> var REFRESH_INTERVAL = 5000;
>>
>>
>> Thanks,
>> Dunith
>>
>> On Mon, May 2, 2016 at 12:14 PM, Sinthuja Ragendran 
>> wrote:
>>
>>> Hi Nirodha,
>>>
>>> Yeah, AFAIU it'll fetch the data from the DAS based on the time interval
>>> provided here and reload the gadget. @Dunith, please confirm.
>>>
>>> Thanks,
>>> Sinthuja.
>>>
>>> On Mon, May 2, 2016 at 11:47 AM, Nirodha Gallage 
>>> wrote:
>>>
 Hi,

 What's the usage of 'update interval' option given for gadgets in
 Dashboard server. Is it that gadget should be reloaded automatically in the
 given intervals?

 Thanks,
 Nirodha

 --

 *Nirodha Gallage*
 Associate Technical Lead
 WSO2 Inc.: http://wso2.com/
 Mobile: +94716429078

>>>
>>>
>>>
>>> --
>>> *Sinthuja Rajendran*
>>> Associate Technical Lead
>>> WSO2, Inc.:http://wso2.com
>>>
>>> Blog: http://sinthu-rajan.blogspot.com/
>>> Mobile: +94774273955
>>>
>>>
>>>
>>
>>
>> --
>> Regards,
>>
>> Dunith Dhanushka,
>> Senior Software Engineer
>> WSO2 Inc,
>>
>> Mobile - +94 71 8615744
>> Blog - dunithd.wordpress.com 
>> Twitter - @dunithd 
>>
>
>
>
> --
>
> *Nirodha Gallage*
> Associate Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94716429078
>



-- 
*Sinthuja Rajendran*
Associate Technical Lead
WSO2, Inc.:http://wso2.com

Blog: http://sinthu-rajan.blogspot.com/
Mobile: +94774273955
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Usage of Update Interval in DS 2.0

2016-05-02 Thread Nirodha Gallage
Hi Dunith,

Then I guess the term "Update Interval" is a bit confusing. Even sinthuja
understood it the same way.




On Mon, May 2, 2016 at 12:24 PM, Dunith Dhanushka  wrote:

> Hi Nirodha,
>
> I assume you are referring to the gadget user preference called 'Update
> Interval'. In fact, that was just a placeholder property which has no
> effect on gadget's polling interval.
>
> For wizard generated gadget, polling interval is configured in js/main.js
> file as follows.
>
> var REFRESH_INTERVAL = 5000;
>
>
> Thanks,
> Dunith
>
> On Mon, May 2, 2016 at 12:14 PM, Sinthuja Ragendran 
> wrote:
>
>> Hi Nirodha,
>>
>> Yeah, AFAIU it'll fetch the data from the DAS based on the time interval
>> provided here and reload the gadget. @Dunith, please confirm.
>>
>> Thanks,
>> Sinthuja.
>>
>> On Mon, May 2, 2016 at 11:47 AM, Nirodha Gallage 
>> wrote:
>>
>>> Hi,
>>>
>>> What's the usage of 'update interval' option given for gadgets in
>>> Dashboard server. Is it that gadget should be reloaded automatically in the
>>> given intervals?
>>>
>>> Thanks,
>>> Nirodha
>>>
>>> --
>>>
>>> *Nirodha Gallage*
>>> Associate Technical Lead
>>> WSO2 Inc.: http://wso2.com/
>>> Mobile: +94716429078
>>>
>>
>>
>>
>> --
>> *Sinthuja Rajendran*
>> Associate Technical Lead
>> WSO2, Inc.:http://wso2.com
>>
>> Blog: http://sinthu-rajan.blogspot.com/
>> Mobile: +94774273955
>>
>>
>>
>
>
> --
> Regards,
>
> Dunith Dhanushka,
> Senior Software Engineer
> WSO2 Inc,
>
> Mobile - +94 71 8615744
> Blog - dunithd.wordpress.com 
> Twitter - @dunithd 
>



-- 

*Nirodha Gallage*
Associate Technical Lead
WSO2 Inc.: http://wso2.com/
Mobile: +94716429078
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC2016: [ML][CEP] Predictive analytic with online data for WSO2 Machine Learner

2016-05-02 Thread Maheshakya Wijewardena
Hi Mahesh,

If you have built product-ml, you can find the P2-repo at
product-ml/modules/p2-profile/target/p2-repo
Add this folder as a local repository.
After that, you should be able to see the ML features.

Best regards.

On Mon, May 2, 2016 at 12:24 PM, Mahesh Dananjaya  wrote:

> Hi Maheshakya,
> Since i already have carbon-ml built in my pc can i use my local
> repository to install those features in to CEP.is that correct.thank you.
> regards,
> Mahesh.
>
> On Mon, May 2, 2016 at 12:20 PM, Mahesh Dananjaya <
> dananjayamah...@gmail.com> wrote:
>
>> Hi Maheshakya,
>> Can you please tell me how to find the most recent p2 repository URL to
>> add machine learner Core, Machine learner commons, Machine learner database
>> service and ML Siddhi extension to add as features in CEP as describes in
>> the [1]. When i use
>> http://product-dist.wso2.com/p2/carbon/releases/4.2.0/ URL those
>> features are not visible in the CEP.Is that not he most recent one.
>> BR,
>> Mahesh.
>>
>> [1]
>> https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions#WSO2CEPExtensionforMLPredictions-Siddhisyntaxfortheextension
>>
>> On Mon, May 2, 2016 at 11:28 AM, Mahesh Dananjaya <
>> dananjayamah...@gmail.com> wrote:
>>
>>> Hi Maheshakya,
>>> sorry for the incomplete message.I have set up the dev environment and
>>> now i am trying to remotely debug. The following steps were done.
>>> 1. build product-cep, carbon-ml and product-ml by source.
>>> 2. go through their code bases and trying to understand the way and the
>>> flow you developed.
>>> 3. i have set up break point in org.wso2.carbon.ml.siddhi.extension in
>>> carbon-ml
>>> 4. start the ./wso2server.sh debug 5005 in the SNAPSHOT directory of
>>> product-ml
>>> 5. trying to trigger the break points with the [1] reference.break
>>> points are placed in the PredictStreamProcessor.java file within the
>>> extention.
>>>
>>> This is the way i followed. I was trying to remotely debug the ML core
>>> by putting break-points in ml core.(org.wso2.carbon.ml.core) in spark java
>>> files. Is this the right way to do those things.
>>>
>>> [1]
>>> https://docs.wso2.com/display/ML110/WSO2+CEP+Extension+for+ML+Predictions#WSO2CEPExtensionforMLPredictions-Siddhisyntaxfortheextension
>>>
>>> On Mon, May 2, 2016 at 11:19 AM, Mahesh Dananjaya <
>>> dananjayamah...@gmail.com> wrote:
>>>
 Hi maheshakya,
 I have set up the dev environment and now i am trying to remotely
 debug. The following steps were done.
 1. build product-cep, carbon-ml and product-ml by source.
 2. go through their code bases and trying to understand the way and the
 flow you developed.
 3. i have set up break point in


 On Thu, Apr 28, 2016 at 7:05 PM, Mahesh Dananjaya <
 dananjayamah...@gmail.com> wrote:

> Hi Maheshakya,
> ok.i got it.thank you.
> regards,
> Mahesh.
>
> On Thu, Apr 28, 2016 at 6:56 PM, Maheshakya Wijewardena <
> mahesha...@wso2.com> wrote:
>
>> Hi Mahesh,
>>
>> The links was an example of remote debugging WSO2 server. What you
>> need to debug is org.wso2.carbon.ml.siddhi.extension in carbon-ml.
>>
>> Best regards.
>>
>> On Thu, Apr 28, 2016 at 4:52 PM, Mahesh Dananjaya <
>> dananjayamah...@gmail.com> wrote:
>>
>>> Hi Maheshakya,
>>> thank you for your help.i have already built all three sources and
>>> now i am trying to get familiar with your code base. i even build the
>>> carbon-kernel by source.
>>>  As you mentioned [1] is related to debug the kernel, do i really
>>> need to debug the carbon kernel in my case. I am trying to remotely 
>>> debug
>>> ml and as i got it correct it is the same way as reference[1, but not 
>>> the
>>> kernel.I can go with others.
>>> BR,
>>> mahesh.
>>>
>>> [1] https://dzone.com/articles/how-debug-wso2-carbon-kernel
>>>
>>> On Mon, Apr 25, 2016 at 5:49 PM, Maheshakya Wijewardena <
>>> mahesha...@wso2.com> wrote:
>>>
 Hi Mahesh,

 Congratulations and welcome to GSoC 2016. You did a great job in
 preparing the proposal. Now it's time to dig deep and get started with 
 the
 project.

 First of all you need to familiarize with the code base. We have
 agreed to implement this with CEP event streams. We already have a CEP
 extension for predictions [1][2]. Go through this implementation and
 familiarize your self with that. You need to understand how:

1. Even streams are consumed
2. predictions are made from individual event
3. Results are sent back

 Get WSO2 ML and CEP sources (You may use latest released version of
 CEP) and build the products. Get both carbon-ml[3] and product-ml[4]
 masters and create new branches for your work from masters.

 After you build the products, you may need