[Dev] APIM product link leads to 404 not found page

2016-09-27 Thread Madusanka Premaratne
Hi all,
Please note that the link [1] is broken and the telco site[2] linked to it.
The new url of the API Manager is [3] and we can do a simple http redirect
from [1] to [3].

Can someone forward this mail to the relevant parties to fix the issue.

[1] - http://wso2.com/products/api-management/
[2] - http://wso2telco.com/hub
<http://www.google.com/url?q=http%3A%2F%2Fwso2telco.com%2Fhub&sa=D&sntz=1&usg=AFQjCNGInkHT2ldwpBg0zmz7Kq6rxBKl3w>
[3] - http://wso2.com/products/api-manager/


Thanka,
Madusanka
-- 

Madusanka Premaratne / Entrepreneur
+94 71 835 7073

[image: Twitter] <https://twitter.com/rmmpremaratne>   [image: Facebook]
<https://www.facebook.com/maduzanka> [image: Google +]
<https://plus.google.com/117489472225470379381/posts> [image: LinkedIn]
<https://lk.linkedin.com/in/madusanka>  [image: Instagram]
<https://instagram.com/madusankapremaratne/>

This e-mail message may contain confidential or legally privileged
information and is intended only for the use of the intended recipient(s).
Any unauthorized disclosure, dissemination, distribution, copying or the
taking of any action in reliance on the information herein is prohibited.
E-mails are not secure and cannot be guaranteed to be error free as they
can be intercepted, amended, or contain viruses. Anyone who communicates
with us by e-mail is deemed to have accepted these risks. Company Name is
not responsible for errors or omissions in this message and denies any
responsibility for any damage arising from the use of e-mail. Any opinion
and other statement contained in this message and any attachment are solely
those of the author and do not necessarily represent those of the company.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] APIM 1.10.X Build failure

2015-12-07 Thread Madusanka Premaratne
ifact:
> org.wso2.carbon.apimgt:org.wso2.carbon.forum.server.feature:2.0.1-SNAPSHOT:
> ERROR: Could not find artifact
> org.wso2.carbon.apimgt:org.wso2.carbon.forum.server.feature:zip:2.0.1-SNAPSHOT
> in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/)
>
>
> Regards,
> Malintha
>
>
> On Mon, Sep 21, 2015 at 2:10 PM, Irham Iqbal  wrote:
>
>> Hi All,
>>
>> It solved by building  repo carbon-apimgt branch release-1.10.x
>> <https://github.com/wso2/carbon-apimgt/tree/release-1.10.x>
>>
>> Thanks,
>> Iqbal
>>
>> On Mon, Sep 21, 2015 at 1:40 PM, Madusanka Premaratne <
>> madusan...@wso2.com> wrote:
>>
>>> Hi Iqbal,
>>> As Udara mentioned you need to build, carbon-apimgt[1] first. The
>>> mentioned product-apim needs components and features of the version
>>> 4.3.0-SNAPSHOT, which are not released yet. So please build carbon-apimgt
>>> first.
>>>
>>> [1] - https://github.com/wso2/carbon-apimgt/tree/release-1.10.x
>>>
>>> Thanks,
>>> Madusanka
>>>
>>> On Mon, Sep 21, 2015 at 1:20 PM, Udara Rathnayake 
>>> wrote:
>>>
>>>> try building https://github.com/wso2/carbon-apimgt/ repository first.
>>>> I think release-1.10.x is the branch you have to build.
>>>> This is where we have apim related components/features.
>>>>
>>>> On Mon, Sep 21, 2015 at 1:12 PM, Irham Iqbal  wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> When I am trying to build apim git repo[1] 1.10.x branch I am getting
>>>>> the following exception. Any ideas on this ?
>>>>>
>>>>> [INFO] WSO2 Stratos  API Manager - Deployment Features ... SUCCESS
>>>>> [0.431s]
>>>>>
>>>>> [INFO] WSO2 API Manager - P2 Profile Generation Parent ... SUCCESS
>>>>> [0.028s]
>>>>>
>>>>> [INFO] WSO2 API Manager - P2 Profile Generation .. FAILURE
>>>>> [53.228s]
>>>>>
>>>>> [INFO] WSO2 API Manager - BAM Toolbox  SKIPPED
>>>>>
>>>>> [INFO] WSO2 API Manager - Distribution Parent  SKIPPED
>>>>>
>>>>> [INFO] WSO2 API Manager - Distribution ... SKIPPED
>>>>>
>>>>> [INFO] WSO2 API Manager - Integration Tests .. SKIPPED
>>>>>
>>>>> [INFO] WSO2 API Manager - Integration Test Common Module . SKIPPED
>>>>>
>>>>> [INFO] WSO2 API Manager - Integration Admin Clients Module  SKIPPED
>>>>>
>>>>> [INFO] WSO2 API Manager - Integration Common Test Module . SKIPPED
>>>>>
>>>>> [INFO] WSO2 API Manager - RestFul Backend Module for Integration
>>>>> Tests  SKIPPED
>>>>>
>>>>> [INFO] WSO2 API Manager - Integration Extensions Module .. SKIPPED
>>>>>
>>>>> [INFO] WSO2 API Manager - Integration UI Pages Module  SKIPPED
>>>>>
>>>>> [INFO] WSO2 API Manager - Integration New Test Module  SKIPPED
>>>>>
>>>>> [INFO] WSO2 API Manager - Based on product backend Test Module  SKIPPED
>>>>>
>>>>> [INFO]
>>>>> 
>>>>>
>>>>> [INFO] BUILD FAILURE
>>>>>
>>>>> [INFO]
>>>>> 
>>>>>
>>>>> [INFO] Total time: 1:08.412s
>>>>>
>>>>> [INFO] Finished at: Mon Sep 21 13:04:12 IST 2015
>>>>>
>>>>> [INFO] Final Memory: 35M/94M
>>>>>
>>>>> [INFO]
>>>>> 
>>>>>
>>>>> [ERROR] Failed to execute goal
>>>>> org.wso2.maven:carbon-p2-plugin:1.5.4:p2-repo-gen (2-p2-repo-generation) 
>>>>> on
>>>>> project am-p2-profile: Error occured when processing the Feature Artifact:
>>>>> org.wso2.carbon.apimgt:org.wso2.carbon.forum.server.feature:4.3.0-SNAPSHOT:
>>>>> ERROR: Could not find artifact
>>>>> org.wso2.carbon.apimgt:org.wso2.carbon.forum.server.feature:zip:4.3.0-SNAPSHOT
>>>>> in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/
>>>>> )
>>>>>
>>&g

[Dev] [IS] [SP01][H2] install_sp.sh script copies h2 database into a wrong location

2015-11-03 Thread Madusanka Premaratne
Hi IS Team,
I have installed sp1 to IS 5.0.0 in my local machine with local H2 db. And
found the script install_sp.sh copies new database to /wso2is-5.0.0
/repository/. The correct location is /wso2is-5.0.0/repository/database/.

In the readme you have guided to start the server with -Dsetup which
creates a new database in correct location but the copied databases also
exists in a wrong location.

I have attached the corrected script herewith.

Thanks,
Madusanka

-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>


install_sp.sh
Description: Bourne shell script
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Default Weather API sample no longer work

2015-10-30 Thread Madusanka Premaratne
Thanks KasunG. I also noticed that the issue disappears after adding the
mentioned query param. I commented on the jira to make it easy for team.

Thanks,
Madusanka

On Fri, Oct 30, 2015 at 1:47 PM, KasunG Gajasinghe  wrote:

>
> Looks like this can be fixed by adding another query parameter called
> APPID. You need to get the APPID from OpenWeatherMap by signing-in.
>
> On Fri, Oct 30, 2015 at 1:44 PM, Madusanka Premaratne  > wrote:
>
>> Hi Kasun,
>> There is a JIRA reported [1] for this. The issue will be fixed in 1.10.0
>>
>> [1] - https://wso2.org/jira/browse/APIMANAGER-4173
>>
>> Thanks,
>> Madusanka
>>
>> On Fri, Oct 30, 2015 at 1:39 PM, KasunG Gajasinghe 
>> wrote:
>>
>>>
>>> -- Forwarded message --
>>> From: KasunG Gajasinghe 
>>> Date: Fri, Oct 30, 2015 at 1:38 PM
>>> Subject: [APIM] Default Weather API sample no longer work
>>> To: DEV , Nuwan Dias 
>>>
>>>
>>> Hi,
>>>
>>> When invoking the default weather api in AM 1.9.1, I'm getting a 401
>>> error from the back-end. It seems that starting from 9 October 2015,
>>> openweathermap requires a APPID to access their API. [1]
>>>
>>> We'll need to document this since this affects the already released
>>> products, and this probably need to be fixed for the next release!
>>>
>>> [1] http://openweathermap.org/faq#error401
>>>
>>> Thanks,
>>> KasunG
>>>
>>> --
>>>
>>> *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
>>>
>>>
>>>
>>>
>>>
>>> --
>>>
>>> *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
>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "WSO2 Documentation Group" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to documentation+unsubscr...@wso2.com.
>>> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>>>
>>
>>
>>
>> --
>> *Madusanka Premaratne* | Associate Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 835 70 73| Work: +94 112 145 345
>> Email: madusan...@wso2.com | Web: www.wso2.com
>>
>> [image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
>> <https://twitter.com/rmmpremaratne> [image: Google Plus]
>> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
>> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
>> <http://instagram.com/madusankapremaratne> [image: Skype]
>> <http://@rmmpremaratne>
>>
>>
>
>
> --
>
> *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
>
>
>



-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Default Weather API sample no longer work

2015-10-30 Thread Madusanka Premaratne
Hi Kasun,
There is a JIRA reported [1] for this. The issue will be fixed in 1.10.0

[1] - https://wso2.org/jira/browse/APIMANAGER-4173

Thanks,
Madusanka

On Fri, Oct 30, 2015 at 1:39 PM, KasunG Gajasinghe  wrote:

>
> -- Forwarded message --
> From: KasunG Gajasinghe 
> Date: Fri, Oct 30, 2015 at 1:38 PM
> Subject: [APIM] Default Weather API sample no longer work
> To: DEV , Nuwan Dias 
>
>
> Hi,
>
> When invoking the default weather api in AM 1.9.1, I'm getting a 401 error
> from the back-end. It seems that starting from 9 October 2015,
> openweathermap requires a APPID to access their API. [1]
>
> We'll need to document this since this affects the already released
> products, and this probably need to be fixed for the next release!
>
> [1] http://openweathermap.org/faq#error401
>
> Thanks,
> KasunG
>
> --
>
> *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
>
>
>
>
>
> --
>
> *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
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "WSO2 Documentation Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to documentation+unsubscr...@wso2.com.
> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>



-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] ScriptEngine Error after updating jaggery to 0.10.0

2015-10-27 Thread Madusanka Premaratne
Hi Viral,
You can find carbon-apimgt[1] and product-apim[2]. But please note that
these two branches are not fully tested and released yet. Also make sure
that you build carbon-apimgt before building product-apim.

[1] - https://github.com/wso2/carbon-apimgt/tree/release-1.10.x
[2] - https://github.com/wso2/product-apim/tree/1.10.x

Thanks,
Madusanka

On Wed, Oct 28, 2015 at 8:34 AM, Viral Shah 
wrote:

> Hi Madusanka,
>
>
>
> Thanks for the quick response, I have tried restarting wso2server a bunch
> of times, with no avail. Is it possible for me to get my hands on 1.10?
>
>
>
> Thanks,
>
> Viral Shah
>
> (c): +1 312 375 2629
>
> AIM: budmiller75
>
> Yahoo/Skype: virals3
>
>
>
> *From:* Madusanka Premaratne [mailto:madusan...@wso2.com]
> *Sent:* Tuesday, October 27, 2015 10:02 PM
> *To:* WSO2 Developers' List ; Viral Shah <
> vs...@turnberrysolutions.com>
> *Subject:* Re: [Dev] [APIM] ScriptEngine Error after updating jaggery to
> 0.10.0
>
>
>
> [Adding Dev]
>
> Hi Viral,
>
> This is due to a package exported by multiple bundles. The error occurs
> when OSGI picks wrong bundle while starting the server. As a quick
> workaround try restating WSO2 API manager, if OSGI picks the correct one it
> will work. Also please note that the issue is fixed in APIM 1.10.0 which is
> the next version of WSO2 API Manager.
>
>
>
> Thanks,
>
> Madusanka
>
>
>
> On Wed, Oct 28, 2015 at 7:45 AM, Viral Shah 
> wrote:
>
> Hi Madusanka,
>
>
>
> I just downloaded WSO2 API manager 1.9.1 and am running it on linux as is.
> For the most part it works fine, but when I go to the store and assign the
> API to the application, I see a bunch of errors in wso2carbon.log as
> follows:
>
>
>
> TID: [0] [AM] [2015-10-27 20:19:24,544] ERROR
> {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
> org.mozilla.javascript.EcmaError: TypeError: Cannot call property
> replaceEmailDomain in object [JavaPackage
> org.wso2.carbon.apimgt.impl.utils.APIUtil]. It is not a function, it is
> "object". (/store/site/themes/fancy/templates/api/swagger/template.jag#36)
> {org.jaggeryjs.jaggery.core.manager.WebAppManager}
>
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.EcmaError: TypeError: Cannot call property
> replaceEmailDomain in object [JavaPackage
> org.wso2.carbon.apimgt.impl.utils.APIUtil]. It is not a function, it is
> "object". (/store/site/themes/fancy/templates/api/swagger/template.jag#36)
>
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
>
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
>
> at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)
>
>
>
> Here are the physical box specs:
>
> Machine: 14.04.1-Ubuntu
>
> JVM: java full version "1.7.0_79-b14"
>
> root:/usr/local/Wso2/wso2am-1.9.1/repository/logs# uname -a
>
> Linux itchil110 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15
> 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
>
>
>
> Any guidance is much appreciated.
>
>
>
> Thanks,
>
> Viral Shah
>
> (c): +1 312 375 2629
>
> AIM: budmiller75
>
> Yahoo/Skype: virals3
>
>
>
>
>
>
>
> --
>
> *Madusanka Premaratne* | Associate Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 835 70 73| Work: +94 112 145 345
>
> Email: madusan...@wso2.com | Web: www.wso2.com
>
>
>
> [image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
> <https://twitter.com/rmmpremaratne> [image: Google Plus]
> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
> <http://instagram.com/madusankapremaratne> [image: Skype]
> <http://@rmmpremaratne>
>
>
>



-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] ScriptEngine Error after updating jaggery to 0.10.0

2015-10-27 Thread Madusanka Premaratne
[Adding Dev]
Hi Viral,
This is due to a package exported by multiple bundles. The error occurs
when OSGI picks wrong bundle while starting the server. As a quick
workaround try restating WSO2 API manager, if OSGI picks the correct one it
will work. Also please note that the issue is fixed in APIM 1.10.0 which is
the next version of WSO2 API Manager.

Thanks,
Madusanka

On Wed, Oct 28, 2015 at 7:45 AM, Viral Shah 
wrote:

> Hi Madusanka,
>
>
>
> I just downloaded WSO2 API manager 1.9.1 and am running it on linux as is.
> For the most part it works fine, but when I go to the store and assign the
> API to the application, I see a bunch of errors in wso2carbon.log as
> follows:
>
>
>
> TID: [0] [AM] [2015-10-27 20:19:24,544] ERROR
> {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
> org.mozilla.javascript.EcmaError: TypeError: Cannot call property
> replaceEmailDomain in object [JavaPackage
> org.wso2.carbon.apimgt.impl.utils.APIUtil]. It is not a function, it is
> "object". (/store/site/themes/fancy/templates/api/swagger/template.jag#36)
> {org.jaggeryjs.jaggery.core.manager.WebAppManager}
>
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.EcmaError: TypeError: Cannot call property
> replaceEmailDomain in object [JavaPackage
> org.wso2.carbon.apimgt.impl.utils.APIUtil]. It is not a function, it is
> "object". (/store/site/themes/fancy/templates/api/swagger/template.jag#36)
>
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
>
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
>
> at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)
>
>
>
> Here are the physical box specs:
>
> Machine: 14.04.1-Ubuntu
>
> JVM: java full version "1.7.0_79-b14"
>
> root:/usr/local/Wso2/wso2am-1.9.1/repository/logs# uname -a
>
> Linux itchil110 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15
> 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
>
>
>
> Any guidance is much appreciated.
>
>
>
> Thanks,
>
> Viral Shah
>
> (c): +1 312 375 2629
>
> AIM: budmiller75
>
> Yahoo/Skype: virals3
>
>
>



-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] POST message payload from Swagger UI [API M]

2015-10-19 Thread Madusanka Premaratne
Hi Nadeesha,
You can do this in APIM 1.9.0 and up. In order to post, you need to create
a model/definition from the API Publisher. Please refer the petstore
sample[1]

When defining you need to set the parameter type as  in: body and you need
to set the schema. Refer to the attached yaml for schema definition.

[1] - http://petstore.swagger.io/​​


Thanks,
Madusanka

On Tue, Oct 20, 2015 at 8:15 AM, Nadeesha Gamage  wrote:

> API M 1.9.1
>
> On Mon, Oct 19, 2015 at 5:42 PM, Malintha Amarasinghe 
> wrote:
>
>> Hi,
>>
>> What is the APIM version you are using? AFAIK this is supported in APIM
>> 1.9.1 version.
>>
>> Thank you.
>> Malintha
>>
>> On Tue, Oct 20, 2015 at 5:13 AM, Nadeesha Gamage 
>> wrote:
>>
>>> Hi Devs,
>>> Is it possible to POST a message payload from the Swagger UI in the API
>>> Store. The current API Manager version doesnt have a 'Body' parameter type
>>> available to do this. Is there any other way to send a message payload from
>>> Swagger UI.
>>>
>>>
>>> Thank you,
>>>
>>>
>>> --
>>> Nadeesha Gamage
>>> Associate Technical Lead - Solutions Engineering
>>> T : +94 77 394 5706
>>> B : https://nadeesha678.wordpress.com/
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Malintha Amarasinghe
>> Software Engineer
>> *WSO2, Inc. - lean | enterprise | middleware*
>> http://wso2.com/
>>
>> Mobile : +94 712383306
>>
>
>
>
> --
> Nadeesha Gamage
> Associate Technical Lead - Solutions Engineering
> T : +94 77 394 5706
> B : https://nadeesha678.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>


swagger.yaml
Description: Binary data
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][Automation] - How to automate the Drag-Drop Action in Test-case Using selenium

2015-10-08 Thread Madusanka Premaratne
Hi Rajinthini,
It seems like you have to change the test case. Did you record the test
case using selenium plugin? The best approach is write is yourself in this
kind of scenarios. You can refer to the links[1] and [2] to get an idea.
[1] -
http://stackoverflow.com/questions/14210051/how-to-automate-drag-drop-functionality-using-selenium-web-driver
[2] - http://www.toolsqa.com/selenium-webdriver/drag-drop/

Thanks,
Madusanka

On Thu, Oct 8, 2015 at 3:48 PM, Rajeenthini Satkunam 
wrote:

> Hi All,
>
> I am currently working on writing UI test-cases using selenium for
> Dashboard Server(DS)/User Engagement Server.I have a test Case which needs
> to do a action that drag one element to a place and drop it in that
> place(drag and drop).So I have tried the below approach to do this task.
>
> public void testAddGadgetToDashboard() throws Exception {
> webElement = getDriver().findElement(By.id(dashboardTitle));
> webElement.findElement(By.cssSelector("a[href=\"dashboards/" + 
> dashboardTitle + "?editor=true\"]")).click();
> WebElement draggable = getDriver().findElement(By.id("g1"));
> WebElement to = getDriver().findElement(By.id("a"));
> Actions builder = new Actions(getDriver());
> Action dragAndDrop = builder.clickAndHold(draggable)
> .moveToElement(to)
> .release(to)
> .build();
> dragAndDrop.perform();
>
> }
>
> But I am getting an exception when running the test-case,
>
> FAILED: testAddGadgetToDashboard
> Adding gadgets to existing dashboard from dashboard server
> java.lang.ClassCastException:
> org.wso2.ues.ui.integration.util.UESWebDriver cannot be cast to
> org.openqa.selenium.interactions.HasInputDevices
> at org.openqa.selenium.interactions.Actions.(Actions.java:41)
> at
> org.wso2.ues.ui.integration.test.dashboard.AddgadgetToDashboardtest.testAddGadgetToDashboard(AddgadgetToDashboardtest.java:86)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at
> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
> at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
> at
> org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
> at org.testng.TestRunner.privateRun(TestRunner.java:767)
> at org.testng.TestRunner.run(TestRunner.java:617)
> at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
> at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
> at org.testng.SuiteRunner.run(SuiteRunner.java:240)
> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
> at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
> at org.testng.TestNG.run(TestNG.java:1057)
> at
> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:177)
> at
> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
> at
> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:105)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at
> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> at
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> at
> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
>
> Can anyone please advice me on how this has gone wrong and Is selenium
> version or Firefox version are depends on this error thrown?
>
> Note: I am using Firefox version 27 and selenium version is automation
> selenium version.
> --
>
> *Thank You.*
>
> *Rajeenthini Satkunam*
>
> *Associate Software Engineer | 

Re: [Dev] Web app class loading issue

2015-10-05 Thread Madusanka Premaratne
Hi Charitha,
As per our findings, multiple versions from same bundle does not cause this
issue. Usually this happens due to multiple jars which exports same package
/ incorrectly designed orbit bundles. Please find out those and exclude
those.

In APIM we have removed some jars to resolve the issue. Please refer [1]

[1] -
https://github.com/wso2/product-apim/blob/1.10.x/modules/distribution/product/src/main/assembly/bin.xml#L66

Thanks,
Madusanka

On Mon, Oct 5, 2015 at 2:17 PM, Charitha Goonetilleke 
wrote:

> Hi Manoj,
>
> Thanks for the response. Actually, we can't eliminate one bundle version
> from above since, both of them have their own dependencies. Actually we
> tried to do that by removing *json_3.0.0.wso2v1.* But without that
> bundle, org.wso2.carbon.event.simulator.core and
> org.wso2.carbon.device.mgt.iot.common bundles throwing class not founds.
> BTW, I can change json version dependency for 
> org.wso2.carbon.device.mgt.iot.common
> bundle. But still we need to change version for  
> org.wso2.carbon.event.simulator.core
> in that scenario.
>
> Anyway I think it would be better if we cloud upgrade
> v2.0.0 dependent bundles to v3.0.0. WDYT?
>
> On Mon, Oct 5, 2015 at 1:34 PM, Manoj Kumara  wrote:
>
>> Hi Charitha,
>>
>> The reason here is that you have packed two versions of the same bundle.
>> Please check the features they get added and remove unnecessary one.
>>
>> Regards,
>> Manoj
>>
>> *Manoj Kumara*
>> WSO2 Inc. *| **lean. enterprise. middleware.*
>> *Mobile:* +94 713 448188
>>
>> On Mon, Oct 5, 2015 at 12:46 PM, Charitha Goonetilleke <
>> charit...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> In IoT server we have the same issue, which occurred to Geeth initially.
>>> Thanks to RuwanA's tool, I figured out the conflicting bundles.
>>>
>>> Packages
>>> org.json
>>>   Exported By
>>> json_2.0.0.wso2v1.jar at the location
>>> /repository/components/plugins/json_2.0.0.wso2v1.jar
>>> json_3.0.0.wso2v1.jar at the location
>>> /repository/components/plugins/json_3.0.0.wso2v1.jar
>>>
>>> When issue is occurred, tomcat imports org.json from
>>> json_3.0.0.wso2v1.jar as follows:
>>>
>>> osgi> p org.json
>>> org.json; version="2.0.0.wso2v1"<*json_2.0.0.wso2v1* [102]>
>>>   oltu_1.0.0.wso2v2 [123] imports
>>>   org.wso2.carbon.apimgt.impl_4.3.0.SNAPSHOT [264] imports
>>>   org.wso2.carbon.apimgt.keymgt_4.3.0.SNAPSHOT [265] imports
>>>   org.wso2.carbon.databridge.commons_4.4.7 [299] imports
>>>   org.wso2.carbon.databridge.commons_5.0.2 [300] imports
>>>   org.wso2.carbon.event.receiver.core_5.0.2 [379] imports
>>>   org.wso2.carbon.event.simulator.admin_2.0.5 [382] imports
>>>   org.wso2.carbon.registry.core_4.4.1 [534] imports
>>>   org.wso2.carbon.social.core_2.3.9.SNAPSHOT [584] imports
>>>   org.wso2.carbon.tenant.mgt.ui_4.5.0.m1 [603] imports
>>> org.json; version="3.0.0.wso2v1"<*json_3.0.0.wso2v1* [103]>
>>>   org.wso2.carbon.device.mgt.iot.common_1.0.0.SNAPSHOT [315] imports
>>>   org.wso2.carbon.event.simulator.core_2.0.5 [383] imports
>>>   *tomcat_7.0.59.wso2v3* [692] imports
>>>
>>> If issue doesn't appear, tomcat imports org.json from json_2.0.0.wso2v1
>>> as follows:
>>>
>>> osgi> p org.json
>>> org.json; version="2.0.0.wso2v1"<*json_2.0.0.wso2v1* [102]>
>>>   oltu_1.0.0.wso2v2 [123] imports
>>>   org.wso2.carbon.apimgt.impl_4.3.0.SNAPSHOT [264] imports
>>>   org.wso2.carbon.apimgt.keymgt_4.3.0.SNAPSHOT [265] imports
>>>   org.wso2.carbon.databridge.commons_4.4.7 [299] imports
>>>   org.wso2.carbon.databridge.commons_5.0.2 [300] imports
>>>   org.wso2.carbon.event.receiver.core_5.0.2 [379] imports
>>>   org.wso2.carbon.event.simulator.admin_2.0.5 [382] imports
>>>   org.wso2.carbon.registry.core_4.4.1 [534] imports
>>>   org.wso2.carbon.social.core_2.3.9.SNAPSHOT [584] imports
>>>   org.wso2.carbon.tenant.mgt.ui_4.5.0.m1 [603] imports
>>>   *tomcat_7.0.59.wso2v3* [692] imports
>>> org.json; version="3.0.0.wso2v1"<*json_3.0.0.wso2v1* [103]>
>>>   org.wso2.carbon.device.mgt.iot.common_1.0.0.SNAPSHOT [315] imports
>>>   org.wso2.carbon.event.simulator.core_2.0.5 [383] imports
>>>
>>> Is there any known workaround to fix this issue?
>>>
>>>
>>> On Wed, Aug 5, 2015 at 8:10 PM, Ruwan Abeykoon  wrote:
>>>
>>>> Hi Madushank

Re: [Dev] [APIM] ScriptEngine Error after updating jaggery to 0.10.0

2015-10-01 Thread Madusanka Premaratne
Hi All,
The issue is due to incorrectly designed orbit bundles and solved by
excluding those from bin.xml

Thanks,
Madusanka

On Wed, Sep 16, 2015 at 9:45 AM, Madusanka Premaratne 
wrote:

> Hi UES team,
> I am getting following error intermittently. Which pops out from
> org.wso2.carbon.forum.registry.RegistryForumManager. As per my observations
> the particular package is visible to osgi.
>
> The OSGI outputs as follows.
>
> osgi> p org.wso2.carbon.forum.registry
> org.wso2.carbon.forum.registry;
> version="0.0.0"
>
> osgi> b 227
> org.wso2.carbon.forum_4.3.0.SNAPSHOT [227]
>   Id=227, Status=ACTIVE  Data
> Root=/Users/Maduz/Documents/API-MANAGER/Github/madusankapremaratne/product-apim/modules/distribution/product/target/wso2am-1.10.0-SNAPSHOT/repository/components/default/configuration/org.eclipse.osgi/bundles/227/data
>   "Registered Services"
> {org.wso2.carbon.utils.Axis2ConfigurationContextObserver}={service.id
> =152}
>   Services in use:
> {org.wso2.carbon.registry.core.service.RegistryService,
> org.wso2.carbon.registry.api.RegistryService}={service.id=149}
> {org.wso2.carbon.user.core.service.RealmService,
> org.wso2.carbon.user.api.UserRealmService}={service.id=143}
>   Exported packages
> org.wso2.carbon.forum; version="0.0.0"[exported]
> org.wso2.carbon.forum.dto; version="0.0.0"[exported]
> org.wso2.carbon.forum.registry; version="0.0.0"[exported]
>   Imported packages
> javax.xml.namespace;
> version="0.0.0"
> org.apache.axis2.context; version="1.6.1.wso2v14" [14]>
> org.apache.commons.logging;
> version="1.2.0"
> org.osgi.framework;
> version="1.7.0"
> org.osgi.service.component;
> version="1.2.0"
> org.wso2.carbon.context; version="4.4.1" [456]>
> org.wso2.carbon.governance.api.exception;
> version="0.0.0"
> org.wso2.carbon.governance.api.generic;
> version="0.0.0"
> org.wso2.carbon.governance.api.generic.dataobjects;
> version="0.0.0"
> org.wso2.carbon.governance.api.util;
> version="0.0.0"
> org.wso2.carbon.registry.core;
> version="1.0.1"
> org.wso2.carbon.registry.core.config;
> version="1.0.1"
> org.wso2.carbon.registry.core.exceptions;
> version="1.0.1"
> org.wso2.carbon.registry.core.jdbc.realm;
> version="1.0.1"
> org.wso2.carbon.registry.core.pagination;
> version="1.0.1"
> org.wso2.carbon.registry.core.service;
> version="1.0.1"
> org.wso2.carbon.registry.core.session;
> version="1.0.1"
> org.wso2.carbon.registry.core.utils;
> version="1.0.1"
> org.wso2.carbon.user.api;
> version="1.0.1"
> org.wso2.carbon.user.core;
> version="4.4.1"
> org.wso2.carbon.user.core.service;
> version="4.4.1"
> org.wso2.carbon.user.core.tenant;
> version="4.4.1"
> org.wso2.carbon.utils; version="4.4.1" [456]>
> org.wso2.carbon.utils.multitenancy;
> version="4.4.1"
>   No fragment bundles
>   Named class space
> org.wso2.carbon.forum; bundle-version="4.3.0.SNAPSHOT"[provided]
>   No required bundles
>
>
> The error I am getting is,
> [2015-09-16 09:29:17,190] ERROR - WebAppManager
> org.mozilla.javascript.EcmaError: TypeError: [JavaPackage
> org.wso2.carbon.forum.registry.RegistryForumManager] is not a function, it
> is object. (/store/site/blocks/forum/controller/topics.jag#45)
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.EcmaError: TypeError: [JavaPackage
> org.wso2.carbon.forum.registry.RegistryForumManager] is not a function, it
> is object. (/store/site/blocks/forum/controller/topics.jag#45)
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
> at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
> at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:587)
> at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:507)
> at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
&

Re: [Dev] Starting server in debug mode when running tests

2015-10-01 Thread Madusanka Premaratne
​Hi Gothami,​
​If y​
ou
​need
 to
​ debug test cases,​
 enable maven surefire debug by using
​ the command​
 -Dmaven.surefire.debug

Thanks,
Madusanka

On Fri, Oct 2, 2015 at 11:41 AM, Gothami Abayawickrama 
wrote:

> Hi all,
> I need to start the server in debug mode when running tests. Can somebody
> help me with this.
>
> Thanks,
> Gothami
> --
> *Gothami Abayawickrama*
> Software Engineer Intern, WSO2, Inc
> Mobile : +(94)717537697
> goth...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Removing Google Spread Sheet Connector

2015-09-23 Thread Madusanka Premaratne
The real reason to worry about Google Plus Connector is MySelf + TharinduA
developed it as one of our training work sometimes back.
Anyway thanks for the response.

Madusanka

On Wed, Sep 23, 2015 at 2:10 PM, Malaka Silva  wrote:

> Yes we have done some of those and will do in future as well.
>
> We will not be doing google plus since it not widely used anymore.
>
> On Wed, Sep 23, 2015 at 1:55 PM, Madusanka Premaratne  > wrote:
>
>> Hi Malaka,
>> AFAIK most of the google APIs got changed with that particular update
>> mentioned by Rajjaz. We might need to change GooglePlus and other Google
>> connectors also.
>>
>> Thanks,
>> Madusanka
>>
>> On Wed, Sep 23, 2015 at 11:12 AM, Rajjaz Mohammed 
>> wrote:
>>
>>> +1
>>> some methods(Create Spreadsheet) are still not changed to OAuth 2.0 so
>>> there are not working.  since Spreadsheet one of important Connector better
>>> if we can rewrite quickly.
>>>
>>> On Wed, Sep 23, 2015 at 10:44 AM, Malaka Silva  wrote:
>>>
>>>> Hi,
>>>>
>>>> We will be removing this connector, since the api this connector was
>>>> written is deprecated by google. Only some of the methods are currently
>>>> working.
>>>>
>>>> Will add a new version soon.
>>>>
>>>> https://store.wso2.com/store/
>>>>
>>>> Best Regards,
>>>>
>>>> Malaka Silva
>>>> Senior Tech Lead
>>>> M: +94 777 219 791
>>>> Tel : 94 11 214 5345
>>>> Fax :94 11 2145300
>>>> Skype : malaka.sampath.silva
>>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>>> Blog : http://mrmalakasilva.blogspot.com/
>>>>
>>>> WSO2, Inc.
>>>> lean . enterprise . middleware
>>>> http://www.wso2.com/
>>>> http://www.wso2.com/about/team/malaka-silva/
>>>> <http://wso2.com/about/team/malaka-silva/>
>>>>
>>>> Save a tree -Conserve nature & Save the world for your future. Print
>>>> this email only if it is absolutely necessary.
>>>>
>>>
>>>
>>>
>>> --
>>> Thank you
>>> Best Regards
>>>
>>> *Rajjaz HM*
>>> Associate Software Engineer
>>> WSO2 Inc. <http://wso2.com/>
>>> lean | enterprise | middleware
>>> Mobile | +94752833834
>>> Email   | raj...@wso2.com
>>> LinkedIn | Blogger | WSO2 Profile
>>> <http://wso2.com/about/team/mohammer_rajjaz/>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Madusanka Premaratne* | Associate Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 835 70 73| Work: +94 112 145 345
>> Email: madusan...@wso2.com | Web: www.wso2.com
>>
>> [image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
>> <https://twitter.com/rmmpremaratne> [image: Google Plus]
>> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
>> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
>> <http://instagram.com/madusankapremaratne> [image: Skype]
>> <http://@rmmpremaratne>
>>
>>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> <http://wso2.com/about/team/malaka-silva/>
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Removing Google Spread Sheet Connector

2015-09-23 Thread Madusanka Premaratne
Hi Malaka,
AFAIK most of the google APIs got changed with that particular update
mentioned by Rajjaz. We might need to change GooglePlus and other Google
connectors also.

Thanks,
Madusanka

On Wed, Sep 23, 2015 at 11:12 AM, Rajjaz Mohammed  wrote:

> +1
> some methods(Create Spreadsheet) are still not changed to OAuth 2.0 so
> there are not working.  since Spreadsheet one of important Connector better
> if we can rewrite quickly.
>
> On Wed, Sep 23, 2015 at 10:44 AM, Malaka Silva  wrote:
>
>> Hi,
>>
>> We will be removing this connector, since the api this connector was
>> written is deprecated by google. Only some of the methods are currently
>> working.
>>
>> Will add a new version soon.
>>
>> https://store.wso2.com/store/
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech Lead
>> M: +94 777 219 791
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>> http://www.wso2.com/about/team/malaka-silva/
>> <http://wso2.com/about/team/malaka-silva/>
>>
>> Save a tree -Conserve nature & Save the world for your future. Print this
>> email only if it is absolutely necessary.
>>
>
>
>
> --
> Thank you
> Best Regards
>
> *Rajjaz HM*
> Associate Software Engineer
> WSO2 Inc. <http://wso2.com/>
> lean | enterprise | middleware
> Mobile | +94752833834
> Email   | raj...@wso2.com
> LinkedIn | Blogger | WSO2 Profile
> <http://wso2.com/about/team/mohammer_rajjaz/>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Writing binary data to a file with Jaggery

2015-09-21 Thread Madusanka Premaratne
Hi Dhanushka,
In APIM we used FileReader[1] to read imported file from file system. I
think you can use the file writer[2] in your case.

[1] -
https://github.com/wso2/carbon-apimgt/blob/carbon-apimgt-v1.9.0/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/site/themes/default/templates/item-design/js/api-design.js#L681
[2] - http://www.w3.org/TR/file-writer-api/

Thanks,
Madusanka

On Tue, Sep 22, 2015 at 11:55 AM, Danushka Fernando 
wrote:

> BTW I tried using Blob and Uint8Array interfaces but jaggery says they are
> not identified.
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Tue, Sep 22, 2015 at 11:50 AM, Danushka Fernando 
> wrote:
>
>> Hi All
>> How we can do $subject? Any ideas would be appreciated.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] APIM 1.10.X Build failure

2015-09-21 Thread Madusanka Premaratne
RROR] Re-run Maven using the -X switch to enable full debug logging.
>>
>> [ERROR]
>>
>> [ERROR] For more information about the errors and possible solutions,
>> please read the following articles:
>>
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>>
>> [ERROR]
>>
>> [ERROR] After correcting the problems, you can resume the build with the
>> command
>>
>> [ERROR]   mvn  -rf :am-p2-profile
>> [1] https://github.com/wso2/product-apim/
>>
>> Thanks,
>> Iqbal
>> --
>> Irham Iqbal
>> Software Engineer - Test Automation
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>> phone: +94 777888452
>>
>> ___
>> 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
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Jaggery] ConcurrentModificationException after upgrading jaggery version to 0.11.0

2015-09-16 Thread Madusanka Premaratne
 org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at
org.jaggeryjs.rhino.store.site.blocks.api_doc.ajax.c0.call(/store/site/blocks/api-doc/ajax/get.jag)
at
org.jaggeryjs.rhino.store.site.blocks.api_doc.ajax.c0.exec(/store/site/blocks/api-doc/ajax/get.jag)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
... 41 more

​Thanks,
Madusanka​

-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] org.h2.jdbc.JdbcSQLException: File corrupted while reading record

2015-09-16 Thread Madusanka Premaratne
Hi Bimali,
Did you try removing true as Harsha suggested in other
thread?

Thanks,
Madusanka

On Thu, Sep 17, 2015 at 11:20 AM, Bimali Dayananda  wrote:

> Hi Madusanka,
>
> I restarted the setup with -DSetup after deleting h2 dbs. But still the
> problem is there.
>
>
> Thanks.
>
> On Thu, Sep 17, 2015 at 10:51 AM, Madusanka Premaratne <
> madusan...@wso2.com> wrote:
>
>> Hi Bimali,
>> H2 databases corrupt sometimes since it stores as a file. Please refer to
>> the mail thread[1] for more details.
>>
>> [1] - [Dev] org.h2.jdbc.JdbcSQLException: File corrupted while reading
>> record excception is throwing APIM GIT build while adding a new API.
>>
>> Thanks,
>> Madusanka
>>
>> On Thu, Sep 17, 2015 at 10:38 AM, Bimali Dayananda 
>> wrote:
>>
>>> Hi,
>>>
>>> I get the following error message when I run a setup locally. It says a
>>> file is corrupted but couldn't find the corrupted file.
>>>
>>> org.h2.jdbc.JdbcSQLException: File corrupted while reading record: "234
>>> of 233". Possible solution: use the recovery tool [90030-140]
>>> at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
>>> at org.h2.message.DbException.get(DbException.java:167)
>>> at org.h2.message.DbException.get(DbException.java:144)
>>> at org.h2.store.PageStore.readPage(PageStore.java:1094)
>>> at org.h2.store.PageStore.getPage(PageStore.java:561)
>>> at org.h2.index.PageDataIndex.getPage(PageDataIndex.java:218)
>>> at org.h2.index.PageDataNode.getLastKey(PageDataNode.java:221)
>>> at org.h2.index.PageDataIndex.(PageDataIndex.java:74)
>>> at org.h2.table.RegularTable.(RegularTable.java:75)
>>> at org.h2.store.PageStore.addMeta(PageStore.java:1443)
>>> at org.h2.store.PageStore.readMetaData(PageStore.java:1380)
>>> at org.h2.store.PageStore.recover(PageStore.java:1178)
>>> at org.h2.store.PageStore.openExisting(PageStore.java:317)
>>> at org.h2.store.PageStore.open(PageStore.java:271)
>>> at org.h2.engine.Database.getPageStore(Database.java:2059)
>>> at org.h2.engine.Database.open(Database.java:534)
>>> at org.h2.engine.Database.openDatabase(Database.java:207)
>>> at org.h2.engine.Database.(Database.java:202)
>>> at org.h2.engine.Engine.openSession(Engine.java:56)
>>> at org.h2.engine.Engine.openSession(Engine.java:146)
>>> at org.h2.engine.Engine.getSession(Engine.java:125)
>>> at org.h2.engine.Session.createSession(Session.java:122)
>>> at
>>> org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241)
>>> at org.h2.engine.SessionRemote.createSession(SessionRemote.java:219)
>>> at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:111)
>>> at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:95)
>>> at org.h2.Driver.connect(Driver.java:73)
>>> at
>>> org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278)
>>> at
>>> org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182)
>>> at
>>> org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701)
>>> at
>>> org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635)
>>> at
>>> org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188)
>>> at
>>> org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:127)
>>> at
>>> org.wso2.carbon.registry.core.config.RegistryConfigurationProcessor.populateRegistryConfig(RegistryConfigurationProcessor.java:149)
>>> at
>>> org.wso2.carbon.registry.core.config.RegistryContext.(RegistryContext.java:461)
>>> at
>>> org.wso2.carbon.registry.core.config.RegistryContext.(RegistryContext.java:442)
>>> at
>>> org.wso2.carbon.registry.core.config.RegistryContext.getBaseInstance(RegistryContext.java:321)
>>> at
>>> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.getEmbeddedRegistryService(RegistryCoreServiceComponent.java:627)
>>> at
>>> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.buildRegistryService(RegistryCoreServiceComponent.java:563)
>>> at
>>> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.activate(RegistryCoreServiceComponent.java:117)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> at
>>>

Re: [Dev] org.h2.jdbc.JdbcSQLException: File corrupted while reading record

2015-09-16 Thread Madusanka Premaratne
:127)
> at
> org.wso2.carbon.registry.core.config.RegistryConfigurationProcessor.populateRegistryConfig(RegistryConfigurationProcessor.java:149)
> ... 43 more
> [2015-09-17 10:09:14,403] ERROR
> {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} -
>  Failed to activate Registry Core bundle
> java.lang.NullPointerException
> at
> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.getEmbeddedRegistryService(RegistryCoreServiceComponent.java:629)
> at
> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.buildRegistryService(RegistryCoreServiceComponent.java:563)
> at
> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.activate(RegistryCoreServiceComponent.java:117)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
> at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
> at
> org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:70)
> at
> org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
> at
> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
>
> What could be the cause for this?
>
> Thanks.
> --
> Bimali Dayananda
> Intern-Software Engineering
> Mobile : +94(77) 571 6618
> bim...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] - Required parameters for add documentation to an API with the source type File

2015-09-16 Thread Madusanka Premaratne
servers.utils.ServerLogReader]
> - at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
>
>
> INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
>
> INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
>
>
> INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
>
>
> INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
>
> INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
>
>
> INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
>
>
> INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1736)
>
>
> INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1695)
>
>
> INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>
>
> INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>
>
> INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>
>
> INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - at java.lang.Thread.run(Thread.java:662)
>
> INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
> - [2015-09-16 11:24:34,200] ERROR - docs:jag
> org.wso2.carbon.apimgt.api.APIManagementException: Error while creating an
> attachment for Document- APIM622PublisherTestHowTo-File-summary-1.0.0.
> Empty File Attachment.
>
> --
> Thanks & Regards,
> Bhagya
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] ScriptEngine Error after updating jaggery to 0.10.0

2015-09-15 Thread Madusanka Premaratne
ter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.mozilla.javascript.EcmaError: TypeError: [JavaPackage
org.wso2.carbon.forum.registry.RegistryForumManager] is not a function, it
is object. (/store/site/blocks/forum/controller/topics.jag#45)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3665)
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3693)
at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3712)
at
org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3767)
at
org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3755)
at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2346)
at
org.jaggeryjs.rhino.store.site.blocks.forum.controller.c0._c_script_0(/store/site/blocks/forum/controller/topics.jag:45)
at
org.jaggeryjs.rhino.store.site.blocks.forum.controller.c0.call(/store/site/blocks/forum/controller/topics.jag)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at
org.jaggeryjs.rhino.store.site.blocks.forum.controller.c0.call(/store/site/blocks/forum/controller/topics.jag)
at
org.jaggeryjs.rhino.store.site.blocks.forum.controller.c0.exec(/store/site/blocks/forum/controller/topics.jag)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
... 41 more

Any advices to resolve this issue?

Thanks in advance for the responses.
Madusanka

On Wed, Jul 29, 2015 at 5:52 PM, Manuranga Perera  wrote:

> Next step is to take a look at OSGi console to see if
> org.wso2.carbon.apimgt.impl.utils package is exposed.sure we can take a
> look tomorrow.
>
> On Wed, Jul 29, 2015 at 5:33 PM, Madusanka Premaratne  > wrote:
>
>> Hi Manuranga,
>> It does not recognise the class. I will come and talk to you tomorrow.
>>
>> Thanks for the help
>>
>> On Wed, Jul 29, 2015 at 3:04 PM, Manuranga Perera  wrote:
>>
>>> Hi Madusanka,
>>> it seems this org.wso2.carbon.apimgt.impl.utils.APIUtil class is not
>>> visible for jaggery for some reason. if you put a java brake point at
>>>
>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)and
>>> try Class.forName to see if the class is visible we can narrow this down
>>>
>>> if you have any issues doing above, meet me.
>>>
>>> On Wed, Jul 29, 2015 at 2:19 PM, Harsha Kumara  wrote:
>>>
>>>> Hi Madusanka,
>>>>
>>>> What the value passing for the method argument? If all in place, it
>>>> should be work. We have used same in 2.0.0.
>>>>
>>>> [1] -
>>>> https://github

Re: [Dev] APIM showing subscription details even after subscription is removed

2015-09-15 Thread Madusanka Premaratne
Hi Udara,
The consumer key secret pair is generated against the oauth app you select
while subscribing. After removing the subscription, only the subscribed api
wii be removed from subscribed APIs (at the bottom of the screenshot)
You may see the drop down "Applications with Subscriptions" in the top of
the subscription page. When you change the app there, the consumer_key,
consumer_secret and access_token changes accordingly. If you delete the
particular app only you will be able to delete those info.

Thanks,
Madusanka


On Wed, Sep 16, 2015 at 12:08 AM, Udara Liyanage  wrote:

> Hi,
>
> 1) Create an API in publisher
> 2) Subscribe to the API
> 3) Generate keys - UI will show the generated keys
> 4) Now remove the subscription - Still the earlier subscription
> details(including) keys are shown. I guess it should n't ?
>
> Attached a screenshot.
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM][Mediator] CNF while publishing APIs

2015-09-03 Thread Madusanka Premaratne
.carbon.apimgt.impl.utils.RESTAPIAdminClient.addApi(RESTAPIAdminClient.java:58)
... 69 more

Thanks in advance for your responses.

-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Web app class loading issue

2015-08-04 Thread Madusanka Premaratne
Thanks Aruna for the response. I will try with that.

On Tue, Aug 4, 2015 at 4:22 PM, Aruna Karunarathna  wrote:

> See thread [1]
>
> [1]. [Dev] Duplicate OSGI class inspector for Carbon based products
>
> On Tue, Aug 4, 2015 at 4:20 PM, Madusanka Premaratne 
> wrote:
>
>> Hi Aruna,
>> No I did not try with that. Where can I find the tool?
>>
>> On Tue, Aug 4, 2015 at 3:42 PM, Aruna Karunarathna 
>> wrote:
>>
>>>
>>>
>>> On Tue, Aug 4, 2015 at 3:14 PM, Madusanka Premaratne <
>>> madusan...@wso2.com> wrote:
>>>
>>>> Hi all,
>>>> As in the conversation I understood that the issue happens due to
>>>> multiple exports of same package. I face the same scenario in APIM 1.10.0
>>>> (1.9.0 upgration to carbon 4.4.0).
>>>> I checked the APIM related ones and could not find any wrong export.
>>>>
>>>> I can see some of the packages like *net.minidev.json, *
>>>> *com.nimbusds.jwt*
>>>>  are duplicated with multiple versions.
>>>>
>>>> And
>>>> *com.jayway.jsonpath *exported as follows.
>>>>
>>>> osgi> p com.jayway.jsonpath
>>>> com.jayway.jsonpath; version="0.8.1">>> [22]>
>>>>   synapse-core_2.1.3.wso2v5 [488] imports
>>>>   tomcat_7.0.59.wso2v1 [494] imports
>>>>
>>>> Can someone guide me to remove the unwanted ones?
>>>> Thanks in advance for your responses.
>>>>
>>>
>>> Have you tried the tool written by RuwanA?.
>>>
>>>>
>>>> Madusanka
>>>>
>>>> On Thu, May 21, 2015 at 11:59 AM, Sameera Jayasoma 
>>>> wrote:
>>>>
>>>>> Hello Geeth,
>>>>>
>>>>> We've encountered many similar issues in the past. The main cause of
>>>>> these issues is the existence of multiple versions of some packages. OSGi
>>>>> is designed to support this scenario. But in some cases, OSGi resolution
>>>>> algorithm fails wire dynamical imported packages due multiple versions of
>>>>> some packages. This is indeed a wired observation.
>>>>>
>>>>> We've removed some duplicated bundles in CDM pack (e.g. httpclient,
>>>>> httpmime, httpcore). But we could still reproduce the issue, then we found
>>>>> out that one of the fixes introduced in Carbon 4.4.0 was not available in
>>>>> MDM distribution. I believe MDM or other components pack a custom
>>>>> launch.ini file. Let me explain.
>>>>>
>>>>> Carbon kernel used to export *"javax.xml.soap"* package from the JDK,
>>>>> hence this package was specified in the *launch.ini* file.
>>>>> Geronimo-saaj bundle exports this package as well. Now there are two
>>>>> versions of "javax.xml.soap" package available in the OSGi runtime. The
>>>>> strange thing is, tomcat bundle dynamically wire to both of the soap
>>>>> package versions time to time. This behavior is not predictable. When the
>>>>> tomcat bundle get wired to javax.xml.soap 0.0.0, above mentioned issue
>>>>> occurs. But when the tomcat is wired to 1.0.0 version of the package this
>>>>> issue does not occur. We still don't know why this happens.
>>>>>
>>>>> Working
>>>>> osgi> p javax.xml.soap
>>>>> *javax.xml.soap*;
>>>>> version="0.0.0"
>>>>>   org.eclipse.core.expressions_3.4.500.v20130515-1343 [78] imports
>>>>>   org.eclipse.core.runtime_3.9.0.v20130326-1255 [80] imports
>>>>>   org.wso2.carbon.p2.touchpoint_4.4.0 [277] imports
>>>>> *javax.xml.soap*; version="1.0.0">>>> [38]>
>>>>>   axis2_1.6.1.wso2v12 [14] imports
>>>>>   org.wso2.carbon.apimgt.core_1.4.0 [154] imports
>>>>>   spring.framework_3.2.9.wso2v1 [372] imports
>>>>>
>>>>> *  tomcat_7.0.59.wso2v1 [375] imports*  wss4j_1.5.11.wso2v10 [386]
>>>>> imports
>>>>>   wss4j_1.5.11.wso2v9 [387] imports
>>>>>
>>>>>
>>>>> Not Working
>>>>> osgi> p javax.xml.soap
>>>>> *javax.xml.soap*;
>>>>> version="0.0.0"
>>>>>   org.eclipse.core.expressions_3.4.500.v20130515-1343 [78] imports
>>>

Re: [Dev] Web app class loading issue

2015-08-04 Thread Madusanka Premaratne
Hi Aruna,
No I did not try with that. Where can I find the tool?

On Tue, Aug 4, 2015 at 3:42 PM, Aruna Karunarathna  wrote:

>
>
> On Tue, Aug 4, 2015 at 3:14 PM, Madusanka Premaratne 
> wrote:
>
>> Hi all,
>> As in the conversation I understood that the issue happens due to
>> multiple exports of same package. I face the same scenario in APIM 1.10.0
>> (1.9.0 upgration to carbon 4.4.0).
>> I checked the APIM related ones and could not find any wrong export.
>>
>> I can see some of the packages like *net.minidev.json, *
>> *com.nimbusds.jwt*
>>  are duplicated with multiple versions.
>>
>> And
>> *com.jayway.jsonpath *exported as follows.
>>
>> osgi> p com.jayway.jsonpath
>> com.jayway.jsonpath; version="0.8.1"> [22]>
>>   synapse-core_2.1.3.wso2v5 [488] imports
>>   tomcat_7.0.59.wso2v1 [494] imports
>>
>> Can someone guide me to remove the unwanted ones?
>> Thanks in advance for your responses.
>>
>
> Have you tried the tool written by RuwanA?.
>
>>
>> Madusanka
>>
>> On Thu, May 21, 2015 at 11:59 AM, Sameera Jayasoma 
>> wrote:
>>
>>> Hello Geeth,
>>>
>>> We've encountered many similar issues in the past. The main cause of
>>> these issues is the existence of multiple versions of some packages. OSGi
>>> is designed to support this scenario. But in some cases, OSGi resolution
>>> algorithm fails wire dynamical imported packages due multiple versions of
>>> some packages. This is indeed a wired observation.
>>>
>>> We've removed some duplicated bundles in CDM pack (e.g. httpclient,
>>> httpmime, httpcore). But we could still reproduce the issue, then we found
>>> out that one of the fixes introduced in Carbon 4.4.0 was not available in
>>> MDM distribution. I believe MDM or other components pack a custom
>>> launch.ini file. Let me explain.
>>>
>>> Carbon kernel used to export *"javax.xml.soap"* package from the JDK,
>>> hence this package was specified in the *launch.ini* file.
>>> Geronimo-saaj bundle exports this package as well. Now there are two
>>> versions of "javax.xml.soap" package available in the OSGi runtime. The
>>> strange thing is, tomcat bundle dynamically wire to both of the soap
>>> package versions time to time. This behavior is not predictable. When the
>>> tomcat bundle get wired to javax.xml.soap 0.0.0, above mentioned issue
>>> occurs. But when the tomcat is wired to 1.0.0 version of the package this
>>> issue does not occur. We still don't know why this happens.
>>>
>>> Working
>>> osgi> p javax.xml.soap
>>> *javax.xml.soap*; version="0.0.0">> [0]>
>>>   org.eclipse.core.expressions_3.4.500.v20130515-1343 [78] imports
>>>   org.eclipse.core.runtime_3.9.0.v20130326-1255 [80] imports
>>>   org.wso2.carbon.p2.touchpoint_4.4.0 [277] imports
>>> *javax.xml.soap*; version="1.0.0">> [38]>
>>>   axis2_1.6.1.wso2v12 [14] imports
>>>   org.wso2.carbon.apimgt.core_1.4.0 [154] imports
>>>   spring.framework_3.2.9.wso2v1 [372] imports
>>>
>>> *  tomcat_7.0.59.wso2v1 [375] imports*  wss4j_1.5.11.wso2v10 [386]
>>> imports
>>>   wss4j_1.5.11.wso2v9 [387] imports
>>>
>>>
>>> Not Working
>>> osgi> p javax.xml.soap
>>> *javax.xml.soap*; version="0.0.0">> [0]>
>>>   org.eclipse.core.expressions_3.4.500.v20130515-1343 [78] imports
>>>   org.eclipse.core.runtime_3.9.0.v20130326-1255 [80] imports
>>>   org.wso2.carbon.p2.touchpoint_4.4.0 [277] imports
>>>
>>> *  tomcat_7.0.59.wso2v1 [375] importsjavax.xml.soap;*
>>> version="1.0.0"
>>>   axis2_1.6.1.wso2v12 [14] imports
>>>   org.wso2.carbon.apimgt.core_1.4.0 [154] imports
>>>   spring.framework_3.2.9.wso2v1 [372] imports
>>>   wss4j_1.5.11.wso2v10 [386] imports
>>>   wss4j_1.5.11.wso2v9 [387] imports
>>>
>>> Anyway his issue has been fixed in Carbon Kernel 4.4.0 by removing the
>>> export of 0.0.0 version of this package.
>>>
>>> MDM team, please remove the custom launch.ini file if possible and try
>>> to use the one packed with the Kernel.
>>>
>>> Thanks,
>>> Sameera.
>>>
>>> On Tue, May 19, 2015 at 3:50 PM, Geeth Munasinghe 
>>> wrote:
>>>
>>>> Hi all,
>>>>
>>>> I am getting the following CNF error inter

Re: [Dev] Web app class loading issue

2015-08-04 Thread Madusanka Premaratne
5)
>>
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
>>
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
>>
>> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
>>
>> at
>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
>>
>> at
>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
>>
>> at
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>
>> at
>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
>>
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
>>
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
>>
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
>>
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
>>
>> at
>> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:517)
>>
>> at
>> org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)
>>
>> at
>> org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:91)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>
>> at java.lang.reflect.Method.invoke(Method.java:606)
>>
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
>>
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
>>
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
>>
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
>>
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
>>
>> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
>>
>> at
>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
>>
>> at
>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
>>
>> at
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>
>> at
>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
>>
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
>>
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
>>
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
>>
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
>>
>> at
>> org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81)
>>
>> at
>> org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:60)
>>
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:40)
>>
>> at
>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(DelegationServlet.java:38)
>>
>> at
>> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
>>
>> at
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
>>
>> at
>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
>>
>> at
>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5262)
>>
>> at
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5550)
>>
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>>
>> at
>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
>>
>> at
>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
>>
>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>
>> at java.lang.Thread.run(Thread.java:745)
>>
>>
>> Thanks
>> Geeth
>>
>>
>> *G. K. S. Munasinghe*
>> *Senior Software Engineer,*
>> *WSO2, Inc. http://wso2.com <http://wso2.com/> *
>> *lean.enterprise.middleware.*
>>
>> email: ge...@wso2.com
>> phone:(+94) 777911226
>>
>
>
>
> --
> 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
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] ScriptEngine Error after updating jaggery to 0.10.0

2015-07-29 Thread Madusanka Premaratne
Hi Manuranga,
It does not recognise the class. I will come and talk to you tomorrow.

Thanks for the help

On Wed, Jul 29, 2015 at 3:04 PM, Manuranga Perera  wrote:

> Hi Madusanka,
> it seems this org.wso2.carbon.apimgt.impl.utils.APIUtil class is not
> visible for jaggery for some reason. if you put a java brake point at
>
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)and
> try Class.forName to see if the class is visible we can narrow this down
>
> if you have any issues doing above, meet me.
>
> On Wed, Jul 29, 2015 at 2:19 PM, Harsha Kumara  wrote:
>
>> Hi Madusanka,
>>
>> What the value passing for the method argument? If all in place, it
>> should be work. We have used same in 2.0.0.
>>
>> [1] -
>> https://github.com/wso2/carbon-apimgt/blob/master/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/apipublisher/scripts/provider.js#L586
>>
>> Thanks,
>> Harsha
>>
>> On Wed, Jul 29, 2015 at 2:01 PM, Madusanka Premaratne <
>> madusan...@wso2.com> wrote:
>>
>>> Hi Tanya,
>>> The particular .jar exists in the classpath and I use the same java
>>> version (1.7.0_80) for both operations.
>>>
>>> For you to understand the problem, I added the jaggery code snippet
>>> which gives the error.
>>>
>>> var APIUtil = Packages.org.wso2.carbon.apimgt.impl.utils.APIUtil;
>>> providerValUe = APIUtil.replaceEmailDomain(providerValUe);
>>>
>>>
>>> Thanks,
>>> Madusanka
>>>
>>> On Wed, Jul 29, 2015 at 11:09 AM, Tanya Madurapperuma 
>>> wrote:
>>>
>>>> - Check whether the org.wso2.carbon.apimgt.impl.utils.APIUtil jar is
>>>> available in the classpath.
>>>> - Check whether the compiled java version of above jar and the java
>>>> version you started the server are the same
>>>>
>>>> Thanks,
>>>> Tanya
>>>>
>>>> On Wed, Jul 29, 2015 at 10:53 AM, Madusanka Premaratne <
>>>> madusan...@wso2.com> wrote:
>>>>
>>>>> Hi all,
>>>>> I have recently updated jaggery version of APIM from 0.9.0 to 0.10.0
>>>>> and API Store gives the following error. I checked that the method
>>>>> *raplaceEmailDomain* exists in *APIUtil* and I was not able to find
>>>>> out an issue.
>>>>>
>>>>> [2015-07-29 10:39:34,309] ERROR - WebAppManager
>>>>> org.mozilla.javascript.EcmaError: TypeError: Cannot call property
>>>>> replaceEmailDomain in object [JavaPackage
>>>>> org.wso2.carbon.apimgt.impl.utils.APIUtil]. It is not a function, it is
>>>>> "object". (/store/site/themes/fancy/templates/api/swagger/template.jag#36)
>>>>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>>>>> org.mozilla.javascript.EcmaError: TypeError: Cannot call property
>>>>> replaceEmailDomain in object [JavaPackage
>>>>> org.wso2.carbon.apimgt.impl.utils.APIUtil]. It is not a function, it is
>>>>> "object". (/store/site/themes/fancy/templates/api/swagger/template.jag#36)
>>>>> at
>>>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
>>>>> at
>>>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
>>>>> at
>>>>> org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:587)
>>>>> at
>>>>> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:507)
>>>>> at
>>>>> org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>>>> at
>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>>>>> at
>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>>>> at
>>>>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
>>>>> at
>>>>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
>>>>> at
>>>>> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
>>>>

Re: [Dev] [APIM] ScriptEngine Error after updating jaggery to 0.10.0

2015-07-29 Thread Madusanka Premaratne
Hi Bhathiya,
It is a static method. And when I try to instantiate it gives me the
following error.

2015-07-29 14:14:23,818] ERROR - WebAppManager
org.mozilla.javascript.EcmaError: TypeError: [JavaPackage
org.wso2.carbon.apimgt.impl.utils.APIUtil] is not a function, it is object.
(/store/site/themes/fancy/templates/api/swagger/template.jag#35)
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EcmaError: TypeError: [JavaPackage
org.wso2.carbon.apimgt.impl.utils.APIUtil] is not a function, it is object.
(/store/site/themes/fancy/templates/api/swagger/template.jag#35)

On Wed, Jul 29, 2015 at 2:14 PM, Bhathiya Jayasekara 
wrote:

> If the method is static yours should work I think.
>
> On Wed, Jul 29, 2015 at 2:09 PM, Bhathiya Jayasekara 
> wrote:
>
>> Hi Madusanka,
>>
>> Can you try this?
>>
>> var APIUtil = new Packages.org.wso2.carbon.apimgt.impl.utils.APIUtil();
>> // or new org.wso2.carbon.apimgt.impl.utils.APIUtil();
>> providerValUe = APIUtil.replaceEmailDomain(providerValUe);
>>
>> Thanks,
>> Bhathiya
>>
>> On Wed, Jul 29, 2015 at 2:01 PM, Madusanka Premaratne <
>> madusan...@wso2.com> wrote:
>>
>>> Hi Tanya,
>>> The particular .jar exists in the classpath and I use the same java
>>> version (1.7.0_80) for both operations.
>>>
>>> For you to understand the problem, I added the jaggery code snippet
>>> which gives the error.
>>>
>>> var APIUtil = Packages.org.wso2.carbon.apimgt.impl.utils.APIUtil;
>>> providerValUe = APIUtil.replaceEmailDomain(providerValUe);
>>>
>>>
>>> Thanks,
>>> Madusanka
>>>
>>> On Wed, Jul 29, 2015 at 11:09 AM, Tanya Madurapperuma 
>>> wrote:
>>>
>>>> - Check whether the org.wso2.carbon.apimgt.impl.utils.APIUtil jar is
>>>> available in the classpath.
>>>> - Check whether the compiled java version of above jar and the java
>>>> version you started the server are the same
>>>>
>>>> Thanks,
>>>> Tanya
>>>>
>>>> On Wed, Jul 29, 2015 at 10:53 AM, Madusanka Premaratne <
>>>> madusan...@wso2.com> wrote:
>>>>
>>>>> Hi all,
>>>>> I have recently updated jaggery version of APIM from 0.9.0 to 0.10.0
>>>>> and API Store gives the following error. I checked that the method
>>>>> *raplaceEmailDomain* exists in *APIUtil* and I was not able to find
>>>>> out an issue.
>>>>>
>>>>> [2015-07-29 10:39:34,309] ERROR - WebAppManager
>>>>> org.mozilla.javascript.EcmaError: TypeError: Cannot call property
>>>>> replaceEmailDomain in object [JavaPackage
>>>>> org.wso2.carbon.apimgt.impl.utils.APIUtil]. It is not a function, it is
>>>>> "object". (/store/site/themes/fancy/templates/api/swagger/template.jag#36)
>>>>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>>>>> org.mozilla.javascript.EcmaError: TypeError: Cannot call property
>>>>> replaceEmailDomain in object [JavaPackage
>>>>> org.wso2.carbon.apimgt.impl.utils.APIUtil]. It is not a function, it is
>>>>> "object". (/store/site/themes/fancy/templates/api/swagger/template.jag#36)
>>>>> at
>>>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
>>>>> at
>>>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
>>>>> at
>>>>> org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:587)
>>>>> at
>>>>> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:507)
>>>>> at
>>>>> org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>>>> at
>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>>>>> at
>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>>>> at
>>>>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
>>>>> at
>>>>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
>>>>> at
>>>>> org.apache.catalina.c

Re: [Dev] [APIM] ScriptEngine Error after updating jaggery to 0.10.0

2015-07-29 Thread Madusanka Premaratne
Hi Tanya,
The particular .jar exists in the classpath and I use the same java version
(1.7.0_80) for both operations.

For you to understand the problem, I added the jaggery code snippet which
gives the error.

var APIUtil = Packages.org.wso2.carbon.apimgt.impl.utils.APIUtil;
providerValUe = APIUtil.replaceEmailDomain(providerValUe);


Thanks,
Madusanka

On Wed, Jul 29, 2015 at 11:09 AM, Tanya Madurapperuma 
wrote:

> - Check whether the org.wso2.carbon.apimgt.impl.utils.APIUtil jar is
> available in the classpath.
> - Check whether the compiled java version of above jar and the java
> version you started the server are the same
>
> Thanks,
> Tanya
>
> On Wed, Jul 29, 2015 at 10:53 AM, Madusanka Premaratne <
> madusan...@wso2.com> wrote:
>
>> Hi all,
>> I have recently updated jaggery version of APIM from 0.9.0 to 0.10.0 and
>> API Store gives the following error. I checked that the method
>> *raplaceEmailDomain* exists in *APIUtil* and I was not able to find out
>> an issue.
>>
>> [2015-07-29 10:39:34,309] ERROR - WebAppManager
>> org.mozilla.javascript.EcmaError: TypeError: Cannot call property
>> replaceEmailDomain in object [JavaPackage
>> org.wso2.carbon.apimgt.impl.utils.APIUtil]. It is not a function, it is
>> "object". (/store/site/themes/fancy/templates/api/swagger/template.jag#36)
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> org.mozilla.javascript.EcmaError: TypeError: Cannot call property
>> replaceEmailDomain in object [JavaPackage
>> org.wso2.carbon.apimgt.impl.utils.APIUtil]. It is not a function, it is
>> "object". (/store/site/themes/fancy/templates/api/swagger/template.jag#36)
>> at
>> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
>> at
>> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
>> at
>> org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:587)
>> at
>> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:507)
>> at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
>> at
>> org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
>> at
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>> at
>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
>> at
>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
>> at
>> org.apache.catalina.valves.AccessLog

[Dev] [APIM] ScriptEngine Error after updating jaggery to 0.10.0

2015-07-28 Thread Madusanka Premaratne
lter(JaggeryFilter.java:21)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)


Anyone faced same kind of issue before? Any Idea on resolving this issue?

Thanks in advance for your responses
Madusanka

-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Dependancy could not resolve in smartbear plugni

2015-07-14 Thread Madusanka Premaratne
Hi all,
I am getting the following error while building wso2-ready-api-plugin[1]. I
searched the plugin in the location [2] and the required jar is not there.
May I know where to find it?

[1] - https://github.com/wso2/wso2-api-manager-plugins
[2] - http://smartbearsoftware.com/repository/maven2/com/smartbear/

[INFO]


[INFO] Building SoapUI Action Plugin 1.0.0

[INFO]


Downloading:
http://www.eviware.com/repository/maven2/eviware/reports/1.0/reports-1.0.pom

Downloading:
http://repo1.maven.org/maven2/eviware/reports/1.0/reports-1.0.pom

[WARNING] The POM for eviware:reports:jar:1.0 is missing, no dependency
information available

Downloading:
http://www.eviware.com/repository/maven2/com/smartbear/soapui-swagger-plugin/2.1/soapui-swagger-plugin-2.1.pom

Downloading:
http://repo1.maven.org/maven2/com/smartbear/soapui-swagger-plugin/2.1/soapui-swagger-plugin-2.1.pom

[WARNING] The POM for com.smartbear:soapui-swagger-plugin:jar:2.1 is
missing, no dependency information available

Downloading:
http://www.eviware.com/repository/maven2/com/smartbear/soapui-swagger-plugin/2.1/soapui-swagger-plugin-2.1.jar

Downloading:
http://repo1.maven.org/maven2/com/smartbear/soapui-swagger-plugin/2.1/soapui-swagger-plugin-2.1.jar

[INFO]


[INFO] BUILD FAILURE

[INFO]


[INFO] Total time: 11.598s

[INFO] Finished at: Tue Jul 14 12:41:14 IST 2015

[INFO] Final Memory: 20M/982M

[INFO]


[ERROR] Failed to execute goal on project apiManager-plugin: Could not
resolve dependencies for project org.wso2:apiManager-plugin:jar:1.0.0:
Could not find artifact com.smartbear:soapui-swagger-plugin:jar:2.1 in
eviware (http://www.eviware.com/repository/maven2) -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions,
please read the following articles:

[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error occurs in carbon-registry feature when building product-cep after updating to kernel 4.4.0

2015-07-08 Thread Madusanka Premaratne
Hi all,
I got the same error while building product-apim with carbon4 kernal. Any
idea on this? How did you guys resolve this?

The actual error is,
Cannot complete the install because one or more required items could not be
found.
 Software being installed: WSO2 Carbon - Forum Server Feature 1.3.0
(org.wso2.carbon.forum.server.feature.group 1.3.0)
 Missing requirement: WSO2 Carbon - Forum Server Feature 1.3.0
(org.wso2.carbon.forum.server.feature.group 1.3.0) requires
'org.wso2.carbon.core.server.feature.group [4.3.0,4.4.0)' but it could not
be found.

Thanks,
Madusanka


On Thu, Apr 2, 2015 at 8:15 AM, Tharik Kanaka  wrote:

> Hi All,
>
> I am updating product-cep to support carbon4 kernel 4.4.0. First i got the
> following error on several modules when building product-cep.
>
> * requires 'org.wso2.carbon.core.server.feature.group [4.3.0,4.4.0)' but
> it could not be found*
>
>
> I have resolved that by building dependency modules on java8support
> branch. Finally i got following error  when building product-cep. (before
> that i have built the carbon-registry on java8support branch and updated
> the product-cep reference version of carbon-registry accordingly)
>
>
> *Installation failed.*
> *Cannot complete the install because one or more required items could not
> be found.*
> * Software being installed: WSO2 Carbon - Registry Resource Properties
> Feature 4.3.2.SNAPSHOT
> (org.wso2.carbon.registry.resource.properties.feature.group 4.3.2.SNAPSHOT)*
> * Missing requirement: org.wso2.carbon.registry.resource 4.3.2.SNAPSHOT
> (org.wso2.carbon.registry.resource 4.3.2.SNAPSHOT) requires 'package
> org.apache.commons.io <http://org.apache.commons.io> 2.4.0' but it could
> not be found*
> * Cannot satisfy dependency:*
> *  From: WSO2 Carbon - Registry Core Server Feature 4.3.2.SNAPSHOT
> (org.wso2.carbon.registry.core.server.feature.group 4.3.2.SNAPSHOT)*
> *  To: org.wso2.carbon.registry.resource [4.3.2.SNAPSHOT]*
> * Cannot satisfy dependency:*
> *  From: WSO2 Carbon - Registry Resource Properties Feature 4.3.2.SNAPSHOT
> (org.wso2.carbon.registry.resource.properties.feature.group 4.3.2.SNAPSHOT)*
> *  To: org.wso2.carbon.registry.core.server.feature.group
> [4.3.2.SNAPSHOT,4.4.0)*
> *Application failed, log file location:
> /Users/tharik/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1427941663867.log*
>
>
>
> Any idea to resolving this issue?
>
> Thanks,
>
> --
>
> *Tharik Kanaka* | Associate Software Engineer
>
> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>
> Email: tha...@wso2.com | Web: www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] AM 1.9.0 nightly build pack-15-06-2015

2015-06-15 Thread Madusanka Premaratne
Please find my inline comments

On Tue, Jun 16, 2015 at 9:55 AM, Shamin Goonetileke  wrote:

> Hi,
>
> Due to the jira reported at [1] we are not able to test API migration
> 1.8.0 to 1.9.0. So make sure to attach the working client before the
> release.
>
​I updated the doc[2] with the correct client. Please use that for the
migrations.
[2] -
https://docs.wso2.com/display/AM190/Upgrading+from+the+Previous+Release
​

>
> [1] https://wso2.org/jira/browse/APIMANAGER-3854
>
> Regards,
> Shamin
>
>
> On Tue, Jun 16, 2015 at 6:21 AM, Evanthika Amarasiri 
> wrote:
>
>> Kindly host the p2 repo as well
>>
>> Regards,
>> Evanthika
>>
>>
>> On Monday, June 15, 2015, Tharindu Dharmarathna 
>> wrote:
>>
>>> Hi,
>>> Please find $subject from [1].
>>>
>>> [1] - http://builder1.us1.wso2.org/~apim/15-06-2015/
>>> <http://www.google.com/url?q=http%3A%2F%2Fbuilder1.us1.wso2.org%2F~apim%2F15-06-2015%2F&sa=D&sntz=1&usg=AFQjCNFxtdjt3XoPcmD6yEg-0sipm1RXjQ>
>>>
>>> Thanks
>>>
>>> *Tharindu Dharmarathna*Associate Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94779109091 <%2B94779109091>*
>>>
>>
>>
>> --
>> Regards,
>> Evanthika Amarasiri
>> Senior Technical Lead  - Quality Assurance
>> Mobile: +94773125935
>> Blog: evanthika.blogspot.com
>>
>> wso2.com lean.enterprise.middleware
>>
>>
>
>
> --
> Software Engineer - Intern
>  WSO2, Inc.http://wso2.com/ <http://wso2.com/>
> Mobile :- +94 71 6290133
> Email :- sha...@wso2.com
>



-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Delete an unnamed FK from H2, MYSQL, MSSQL, Oracle and PostgreSQL

2015-05-19 Thread Madusanka Premaratne
Hi all,
Finally I cam up with the following solution for H2, because it is not
possible to retrieve and in a single query/sub query.

SELECT DISTINCT constraint_name FROM information_schema.constraints WHERE
table_name = 'YOUR_TABLE_NAME';
then use the  constraint_name and build the query to alter the table as
follows
ALTER TABLE AM_APP_KEY_DOMAIN_MAPPING DROP CONSTRAINT
;

In H2 all the constraints are in information_schema.constraints, but in
mysql those are in information_schema.REFERENTIAL_CONSTRAINTS

Thanks,
Madusanka

On Tue, May 19, 2015 at 9:45 AM, Madusanka Premaratne 
wrote:

> Hi Thusitha,
> I tried the subquery approach before but it does not get the identifier
> properly from the sub query. When I run the subquery only, it shows me the
> constraint name. But when it comes to the main query, it does not get the
> identifier.
>
> Hi Madhuranga,
> Thanks for the reply, but the approach has a few problems. When the table
> contains large number of record sets, this operation will take time and if
> one query fails I may lose all my data.
>
> Regards,
> Madusanka
>
> On Mon, May 18, 2015 at 6:18 PM, Madhuranga Bandara 
> wrote:
>
>> Hi Madushanka,
>>
>> This article [1] provides the step by step explanation on how to solve
>> this kind of issue.
>> Hope this is helpful.
>>
>> [1] http://www.briskbee.com/posts/changing_unnamed_constraints_in_play_
>>
>>
>> *Madhuranga Sampath Bandara*
>> Software Engineer
>>
>> WSO2, Inc.;http://wso2.com/
>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ>
>> lean.enterprise.middleware
>> Mobile: +94722241065
>>
>> On Mon, May 18, 2015 at 5:52 PM, Madusanka Premaratne <
>> madusan...@wso2.com> wrote:
>>
>>> Hi Devs,
>>> I need to perform a SQL table alteration to remove a foreign key which
>>> is unnamed. As per my findings it is possible to find the automatically
>>> assigned constraint name in mysql by using *information_schema* table
>>> [1]
>>>
>>> Also it is possible in mssql[2] and oracle[3]
>>>
>>> [1] -
>>> http://stackoverflow.com/questions/13856946/drop-unnamed-foreign-key-in-mysql
>>> [2] - http://www.intergr8it.net/?p=19
>>> [3] -
>>> http://stackoverflow.com/questions/9008445/drop-index-or-constraint-without-knowing-its-name-for-oracle
>>>
>>> I tried to add a name to the existing constraint by altering the table,
>>> but it adds a new constraint with the given name.
>>>
>>> Is there a way to do the same in H2/ any other way to delete
>>> the constraint?
>>>
>>> Can someone advice me to do this.?
>>>
>>> Thanks in advance.
>>> Madusanka
>>>
>>>
>>>
>>> --
>>> *Madusanka Premaratne* | Associate Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 835 70 73| Work: +94 112 145 345
>>> Email: madusan...@wso2.com | Web: www.wso2.com
>>>
>>> [image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
>>> <https://twitter.com/rmmpremaratne> [image: Google Plus]
>>> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
>>> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
>>> <http://instagram.com/madusankapremaratne> [image: Skype]
>>> <http://@rmmpremaratne>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> *Madusanka Premaratne* | Associate Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 835 70 73| Work: +94 112 145 345
> Email: madusan...@wso2.com | Web: www.wso2.com
>
> [image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
> <https://twitter.com/rmmpremaratne> [image: Google Plus]
> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
> <http://instagram.com/madusankapremaratne> [image: Skype]
> <http://@rmmpremaratne>
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Delete an unnamed FK from H2, MYSQL, MSSQL, Oracle and PostgreSQL

2015-05-18 Thread Madusanka Premaratne
Hi Thusitha,
I tried the subquery approach before but it does not get the identifier
properly from the sub query. When I run the subquery only, it shows me the
constraint name. But when it comes to the main query, it does not get the
identifier.

Hi Madhuranga,
Thanks for the reply, but the approach has a few problems. When the table
contains large number of record sets, this operation will take time and if
one query fails I may lose all my data.

Regards,
Madusanka

On Mon, May 18, 2015 at 6:18 PM, Madhuranga Bandara 
wrote:

> Hi Madushanka,
>
> This article [1] provides the step by step explanation on how to solve
> this kind of issue.
> Hope this is helpful.
>
> [1] http://www.briskbee.com/posts/changing_unnamed_constraints_in_play_
>
>
> *Madhuranga Sampath Bandara*
> Software Engineer
>
> WSO2, Inc.;http://wso2.com/
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ>
> lean.enterprise.middleware
> Mobile: +94722241065
>
> On Mon, May 18, 2015 at 5:52 PM, Madusanka Premaratne  > wrote:
>
>> Hi Devs,
>> I need to perform a SQL table alteration to remove a foreign key which is
>> unnamed. As per my findings it is possible to find the automatically
>> assigned constraint name in mysql by using *information_schema* table [1]
>>
>> Also it is possible in mssql[2] and oracle[3]
>>
>> [1] -
>> http://stackoverflow.com/questions/13856946/drop-unnamed-foreign-key-in-mysql
>> [2] - http://www.intergr8it.net/?p=19
>> [3] -
>> http://stackoverflow.com/questions/9008445/drop-index-or-constraint-without-knowing-its-name-for-oracle
>>
>> I tried to add a name to the existing constraint by altering the table,
>> but it adds a new constraint with the given name.
>>
>> Is there a way to do the same in H2/ any other way to delete
>> the constraint?
>>
>> Can someone advice me to do this.?
>>
>> Thanks in advance.
>> Madusanka
>>
>>
>>
>> --
>> *Madusanka Premaratne* | Associate Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 835 70 73| Work: +94 112 145 345
>> Email: madusan...@wso2.com | Web: www.wso2.com
>>
>> [image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
>> <https://twitter.com/rmmpremaratne> [image: Google Plus]
>> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
>> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
>> <http://instagram.com/madusankapremaratne> [image: Skype]
>> <http://@rmmpremaratne>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Delete an unnamed FK from H2, MYSQL, MSSQL, Oracle and PostgreSQL

2015-05-18 Thread Madusanka Premaratne
Hi Devs,
I need to perform a SQL table alteration to remove a foreign key which is
unnamed. As per my findings it is possible to find the automatically
assigned constraint name in mysql by using *information_schema* table [1]

Also it is possible in mssql[2] and oracle[3]

[1] -
http://stackoverflow.com/questions/13856946/drop-unnamed-foreign-key-in-mysql
[2] - http://www.intergr8it.net/?p=19
[3] -
http://stackoverflow.com/questions/9008445/drop-index-or-constraint-without-knowing-its-name-for-oracle

I tried to add a name to the existing constraint by altering the table, but
it adds a new constraint with the given name.

Is there a way to do the same in H2/ any other way to delete the constraint?

Can someone advice me to do this.?

Thanks in advance.
Madusanka



-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM]Error when update the resource throttling of a API which was created using curl command in APIM 1.9.0 SNAPSHOT

2015-05-08 Thread Madusanka Premaratne
Hi Saneth,
Error says that it is a casting error in JSONObject/JSONArray. When you
create APIs with the jaggery APIs(using curl) APIM gets the API object and
create the swagger manually. I will look into this issue and update the
JIRA.

Thanks,
Madusanka

On Fri, May 8, 2015 at 3:41 PM, Saneth Dharmakeerthi 
wrote:

> Hi APIM Team,
>
> I am getting error [1] when update  the resource throttling of a API which
> was created using curl command [2] in APIM 1.9.0 SNAPSHOT.
> I have reported JIRA [3] to track this issue.
>
> [1]
> ​
>  Screen Shot 2015-05-08 at 2.57.56 PM.png
> <https://docs.google.com/a/wso2.com/file/d/0B2mfjA37km5USWJ3SDdIWGRCU1U/edit?usp=drive_web>
> ​​
> [2]
>  curl -X POST -b cookies
> http://localhost:9763/publisher/site/blocks/item-add/ajax/add.jag -d
> "action=addAPI&name=YoutubeFeeds&visibility=public&version=1.0.0&description=Youtube
> Live
> Feeds&endpointType=nonsecured&http_checked=http&https_checked=https&&wsdl=&tags=youtube,gdata,multimedia&tier=Silver&thumbUrl=
> http://www.10bigideas.com.au/www/573/files/pf-thumbnail-youtube_logo.jpg&context=/youtube&tiersCollection=Gold&resourceCount=0&resourceMethod-0=GET&resourceMethodAuthType-0=Application&resourceMethodThrottlingTier-0=Unlimited&uriTemplate-0=/*";
>  -d'endpoint_config={"production_endpoints":{"url":"
> http://gdata.youtube.com/feeds/api/standardfeeds
> ","config":null},"endpoint_type":"http"}';
>
> [3] https://wso2.org/jira/browse/APIMANAGER-3530
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>



-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Password conditions of secure endpoints in API Manager

2015-04-28 Thread Madusanka Premaratne
Hi Saneth
There are no such restrictions/conditions.
As I said before the given username and password use only to generate basic
HTTP Authorization header.

Thanks,
Madusanka

On Wed, Apr 29, 2015 at 11:14 AM, Saneth Dharmakeerthi 
wrote:

> HI Madusanka/Swmini,
>
> Thanks for your response,
>
> But actually what I want to know is , whether there is any condition
> regarding the format of the password like what characters it can have or
> what characters it can't?
>
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> On Wed, Apr 29, 2015 at 10:49 AM, Sewmini Jayaweera 
> wrote:
>
>> Hi Saneth,
>>
>> As per my knowledge this is used once we have a backend which is secured.
>>
>> For an example;
>> say you have hello service hosted in WSO2 application server which is
>> secured using UsernameToken and your API is pointing to that service. In an
>> intense like that you need to give user credentials which you used to
>> secure back end (It will be a user's credentials registered in AS).
>>
>> When a client is accessing this service through the API, he should be
>> invoke the API as usual. (Since we have given user credentials of the
>> secured backend when creating the API )
>>
>> Cheers!
>> Sewmini
>>
>> Sewmini Jayaweera
>> *Software Engineer - QA Team*
>> Mobile: +94 (0) 773 381 250
>> sewm...@wso2.com
>>
>> On Wed, Apr 29, 2015 at 9:03 AM, Saneth Dharmakeerthi 
>> wrote:
>>
>>> Hi APIM team,
>>>
>>> When we configure a API endpoint as a secure endpoint,Is there any
>>> conditions regarding the password?
>>>
>>>
>>> Thanks and Best Regards,
>>>
>>> Saneth Dharmakeerthi
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> Mobile: +94772325511
>>>
>>> ___
>>> 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
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Password conditions of secure endpoints in API Manager

2015-04-28 Thread Madusanka Premaratne
Hi Saneth,
What do you mean by condition? You have to provide the basic authentication
username and password to the two text boxes.
When calling to the endpoint you have to use basic auth header by using the
given user name and password.

Thanks,
Madusanka

On Wed, Apr 29, 2015 at 9:03 AM, Saneth Dharmakeerthi 
wrote:

> Hi APIM team,
>
> When we configure a API endpoint as a secure endpoint,Is there any
> conditions regarding the password?
>
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Methods to migrate database from MySQL to MSSQL

2015-04-27 Thread Madusanka Premaratne
Hi Shani,
I used a tool called SQL Server Migration Client. But I did this a few
years back and I think it only works with windows.
Have a look at [1]

[1] - http://blogs.msdn.com/b/ssma/p/mysql.aspx

Thanks,
Madusanka

On Mon, Apr 27, 2015 at 4:44 PM, Dhanuka Ranasinghe 
wrote:

> I haven't done such thing before but you can try out something like this.
>
> Write some sql scripts which has some select insert statements (select
> form mysql insert into mssql). Hope this is not much complex since column
> names and table names are equal. You may need to write simple Java program
> to select queries and map them to insert statements which use both jdbc
> drivers. If you can use JPA this can be done easily.
>
> Cheers,
> Dhanuka
>
> *Dhanuka Ranasinghe*
>
> Senior Software Engineer
> WSO2 Inc. ; http://wso2.com
> lean . enterprise . middleware
>
> phone : +94 715381915
>
> On Mon, Apr 27, 2015 at 4:08 PM, Shani Ranasinghe  wrote:
>
>>
>> Hi,
>>
>> I have come across a situation  where I need to migrate my MySQL db to
>> MSSQL in wso2 api manager. I have so far tried the following.
>>
>> 1) Using the ODBC connector and creating linked databases in MSSQL
>> In this approach, when importing the database, the schema seems to
>> change, for e.g. for tables that have Auto increment  has been disappeared
>> when converting to a MSSQL schema, also the not null, null definitions have
>> been swapped at certain instances.
>>
>> 2) Used ODBC connector to import data to an existing database
>> I kept getting the error ": The Source - am_api_comments was unable
>> to retrieve column information for the SQL command. The following error
>> occurred: ERROR [42000] [MySQL][ODBC 5.3(a)
>> Driver][mysqld-5.1.73-community]You have an error in your SQL syntax; check
>> the manual that corresponds to your MySQL server version for the right
>> syntax to use near '"am_api_comments"' at line 1" for every table.
>>
>> 3) Tried some online tools
>>This too brought the errors in not converting the schema's properly as
>> step 1.
>>
>> 4) Exporting MySQL table by table as csv and importing them to MSSQL
>> This is the only way I could get it working. It is a very tedious way
>> of getting it done :(
>> i.e. 1) Export the data in MySQL data as csv file. When importing
>> must have a IFNULL check done for every varchar and not null column so that
>> the csv value is at the end correct so that the SQL can import it. An
>> example for this is that, when the MySQL column's have null values, when
>> exporting to csv, in the csv file it is needed to have a blank value, for
>> this we need to do the check. Once the csv's are ready from table to table,
>> we can import them to the MSSQL database, where we have already created the
>> schema.
>>
>>
>> I am not sure if I did step 1 & 2 correct or if there was any issue in
>> it. I followed some online article and blog but could not succeed. If
>> anyone has any experience on this or knows of any other ways I could try
>> please do let me know.
>>
>> --
>> Thanks and Regards
>> *,Shani Ranasinghe*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 77 2273555
>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Any available module for jaggery to get oAuth tokens?

2015-04-24 Thread Madusanka Premaratne
Hi Dulitha,
You can call to https://localhost:8243/token to get both refresh_token and
access_token
Have a look at the following curl command
curl -k -d "grant_type=password&username=admin&password=admin" -H
"Authorization: Basic
bmU5X015dDNKWGxuTDRNWjhrbnlFdDM3cGRvYTpTSEtCOTZoX0RjeGVlMnQ0eG9JZlhMUERRRHdh,
Content-Type: application/x-www-form-urlencoded"
https://localhost:8243/token

Thanks,
Madusanka

On Fri, Apr 24, 2015 at 5:14 PM, Dulitha Wijewantha 
wrote:

> Hi guys,
> Is there are any available module for jaggery (or Java) that can be called
> to obtain oAuth 2 tokens from API Manager? I looked into the oauth module
> [1] in jaggery but it doesn't seem to return refresh tokens.
>
> My use-case is to obtain access/refresh tokens for Password/SAML Grant
> Type from a Jaggery app.
>
> [1] -
> https://github.com/wso2/jaggery-extensions/blob/master/oauth/resources/org.jaggeryjs.modules.oauth/src/main/java/org/jaggeryjs/modules/oauth/OAuthHostObject.java
>
> Cheers~
>
> --
> Dulitha Wijewantha (Chan)
> Software Engineer - Mobile Development
> WSO2 Inc
> Lean.Enterprise.Middleware
>  * ~Email   duli...@wso2.com *
> *  ~Mobile +94712112165 <%2B94712112165>*
> *  ~Website   dulitha.me <http://dulitha.me>*
> *  ~Twitter @dulitharw <https://twitter.com/dulitharw>*
>   *~Github @dulichan <https://github.com/dulichan>*
>   *~SO @chan <http://stackoverflow.com/users/813471/chan>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error adding API in 1.9.0 pack

2015-04-08 Thread Madusanka Premaratne
oke(MemberBox.java:126)
> ... 56 more
> Caused by: org.wso2.carbon.apimgt.api.APIManagementException: Error while
> adding the API: admin-ww-1.0.0 to the database
> at
> org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.handleException(ApiMgtDAO.java:6954)
> at org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.addAPI(ApiMgtDAO.java:6097)
> at
> org.wso2.carbon.apimgt.impl.APIProviderImpl.addAPI(APIProviderImpl.java:391)
> ... 64 more
> Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key
> violation: "CONSTRAINT_INDEX_73 ON PUBLIC.AM_API(API_PROVIDER, API_NAME,
> API_VERSION)"; SQL statement:
> INSERT INTO AM_API (API_PROVIDER, API_NAME, API_VERSION, CONTEXT) VALUES
> (?,?,?,?) [23001-140]
> at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
> at org.h2.message.DbException.get(DbException.java:167)
> at org.h2.message.DbException.get(DbException.java:144)
> at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:157)
> at org.h2.index.PageBtree.find(PageBtree.java:121)
> at org.h2.index.PageBtreeLeaf.addRow(PageBtreeLeaf.java:138)
> at org.h2.index.PageBtreeLeaf.addRowTry(PageBtreeLeaf.java:93)
> at org.h2.index.PageBtreeIndex.addRow(PageBtreeIndex.java:90)
> at org.h2.index.PageBtreeIndex.add(PageBtreeIndex.java:81)
> at org.h2.table.RegularTable.addRow(RegularTable.java:116)
> at org.h2.command.dml.Insert.insertRows(Insert.java:120)
> at org.h2.command.dml.Insert.update(Insert.java:82)
> at org.h2.command.CommandContainer.update(CommandContainer.java:70)
> at org.h2.command.Command.executeUpdate(Command.java:199)
> at
> org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:179)
> at org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.addAPI(ApiMgtDAO.java:6075)
> ... 65 more
>
>
> --
> Waruna Perera
> Senior Software Engineer - Test Automation
> Mobile: +94 77 3867037
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Adding sequence to a API to log In-flow messages not working. API Manager 1.9.0 SNAPSHOT

2015-04-01 Thread Madusanka Premaratne
Hi Saneth,
I have gone through the process and it works fine for me in 1.9.0 SNAPSHOT.
Did you do any additional configuration?

Thanks,
Madusanka

On Wed, Apr 1, 2015 at 5:26 PM, Saneth Dharmakeerthi 
wrote:

> HI All,
>
> I try to add LogMediator  to In-Flow in a API and noted following things.
>
>- I add sequence to the In-flow to log the messages as [1]. But no
>massage was logged.
>- I did the same thing with APIM 1.8.0, the LogMediator works fine but
>with 1.8.0 the added custom handlers get removed from the synapse
>configuration all the time  when we click "save and publish" button after
>the sequences is changed.
>
> Is there any reason for this behaviour, Did i miss any steps in here.
>
>
>
> [1]​
>  Screen Shot 2015-04-01 at 4.40.00 PM.png
> <https://docs.google.com/a/wso2.com/file/d/0B2mfjA37km5Uem9MSDFHLXBNQWc/edit?usp=drive_web>
> ​
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Hemika Kodikara

2015-03-28 Thread Madusanka Premaratne
Congrats Hemika..!!

On Sat, Mar 28, 2015 at 8:18 PM, Shiroshica Kulatilake 
wrote:

> Congrats !!
>
> Shiroshica Kulatilake
>
> WSO2, Inc. http://wso2.com/
> Phone: +94 776523867
>
> On Mon, Mar 23, 2015 at 11:38 AM, Shiva Balachandran 
> wrote:
>
>> Congrats Bro! :)
>>
>>
>>
>> On Mon, Mar 23, 2015 at 10:34 AM, Indunil Upeksha Rathnayake
>>  wrote:
>> > Congratz Hemika!!! :)
>> >
>> > Regards
>> > --
>> > Indunil Upeksha Rathnayake
>> > Software Engineer | WSO2 Inc
>> > Emailindu...@wso2.com
>> > Mobile  +94713695179
>> >
>> > ___
>> > Dev mailing list
>> > Dev@wso2.org
>> > http://wso2.org/cgi-bin/mailman/listinfo/dev
>> >
>>
>>
>>
>> --
>> Shiva Balachandran
>> Software Engineer
>> WSO2 Inc.
>>
>> Mobile - +94 774445788
>> Blog - https://shivabalachandran.wordpress.com/
>> _______
>> 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
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Amila Godwin Shrimal

2015-03-20 Thread Madusanka Premaratne
Congrats Godwin.

On Fri, Mar 20, 2015 at 5:04 PM, Dinithi De Silva  wrote:

> Congratz Godwin...
>
> On Fri, Mar 20, 2015 at 4:20 PM, Inshaf Mahath  wrote:
>
>> Congrats Godwin!!!
>>
>> On Fri, Mar 20, 2015 at 3:57 PM, Hemika Kodikara  wrote:
>>
>>> Congratz Godwin!
>>>
>>> Hemika Kodikara
>>> Software Engineer
>>> WSO2 Inc.
>>> lean . enterprise . middleware
>>> http://wso2.com
>>>
>>> Mobile : +9477762
>>>
>>> On Fri, Mar 20, 2015 at 3:54 PM, Thanuja Jayasinghe 
>>> wrote:
>>>
>>>> Congratz Godwin...
>>>>
>>>> On Fri, Mar 20, 2015 at 3:04 PM, Johann Nallathamby 
>>>> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> It's my pleasure to announce Amila Godwin Shrimal as a WSO2 Committer
>>>>> . Godwin has been a valuable contributor for WSO2 Identity Server
>>>>> product, and in recognition of his contribution to WSO2, he has been voted
>>>>> as a WSO2 Committer.
>>>>>
>>>>> Godwin, congratulations and keep up the good work!
>>>>>
>>>>> Thanks & Regards.
>>>>>
>>>>> --
>>>>>
>>>>> *Johann Dilantha Nallathamby*
>>>>> Associate Technical Lead & Product Lead of WSO2 Identity Server
>>>>> Integration Technologies Team
>>>>> WSO2, Inc.
>>>>> lean.enterprise.middleware
>>>>>
>>>>> Mobile - *+9476950*
>>>>> Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Thanuja Lakmal*
>>>> 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
>>>>
>>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Inshaf Mahath
>> Associate Software Engineer
>> Mobile: +94775907181
>> WSO2 Inc.
>> Lean . Enterprise . Middleware
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Dinithi De Silva*
> Associate Software Engineer, WSO2 Inc.
> m:+94716667655 | e:dinit...@wso2.com | w: www.wso2.com
> | a: #20, Palm Grove, Colombo 03
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Malithi Edirisinghe

2015-03-20 Thread Madusanka Premaratne
Congrats Malithi.!!!

On Fri, Mar 20, 2015 at 5:03 PM, Dinithi De Silva  wrote:

> Congratz Malithi...
>
> On Fri, Mar 20, 2015 at 3:57 PM, Himasha Guruge  wrote:
>
>> Congrats Malithi!!
>>
>> On Fri, Mar 20, 2015 at 3:54 PM, Thanuja Jayasinghe 
>> wrote:
>>
>>> Congratz Malithi...
>>>
>>> On Fri, Mar 20, 2015 at 3:04 PM, Johann Nallathamby 
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> It's my pleasure to announce Malithi Edirisinghe as a WSO2 Committer.
>>>> Malithi has been a valuable contributor for WSO2 Identity Server
>>>> product, and in recognition of her contribution to WSO2, she has been voted
>>>> as a WSO2 Committer.
>>>>
>>>> Malithi, congratulations and keep up the good work!
>>>>
>>>> Thanks & Regards.
>>>>
>>>> --
>>>>
>>>> *Johann Dilantha Nallathamby*
>>>> Associate Technical Lead & Product Lead of WSO2 Identity Server
>>>> Integration Technologies Team
>>>> WSO2, Inc.
>>>> lean.enterprise.middleware
>>>>
>>>> Mobile - *+9476950*
>>>> Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Thanuja Lakmal*
>>> 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
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>
>
> --
> *Dinithi De Silva*
> Associate Software Engineer, WSO2 Inc.
> m:+94716667655 | e:dinit...@wso2.com | w: www.wso2.com
> | a: #20, Palm Grove, Colombo 03
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture][APIM] Swagger validation

2015-03-20 Thread Madusanka Premaratne
Hi Vishanth,
Thanks for the response. I did a research on fge/json-schema-validator and
seems like it is not maintaining.
Anyhow I will apply it and check whether it is functioning as expected.
Thanks,

On Fri, Mar 20, 2015 at 2:46 PM, Vishanth Balasubramaniam <
vishan...@wso2.com> wrote:

> Hi Madusanka,
>
> I too think the right approach is to validate at the backend.
>
> I came across this json schema validator project [1] sometime back, check
> if this is useful for you in some way.
>
> [1] - https://github.com/fge/json-schema-validator
>
> Regards,
> Vishanth
>
> On Fri, Mar 20, 2015 at 12:36 PM, Madusanka Premaratne <
> madusan...@wso2.com> wrote:
>
>> Hi all,
>> As you all know APIM uses YAML and Swagger. We have already done YAML
>> validation part and will be there as real time yaml syntax validator in the
>> upcoming release.
>>
>> ​In the validation of swagger we can either validate swagger at the
>> front-end using javascript or validate at the backend using json schema
>> validator.
>> According to the offline discussions I had with Colin and Jo, it is more
>> suitable to validate it at the backend, because there are two
>> ways(write/import) to feed a swagger doc.
>>
>> Does anyone worked with a json schema validator which can be used to
>> fulfil our need?
>>
>> Feedbacks and suggestions for this improvement would be appreciated.
>>
>> ​Thanks,​
>>
>> --
>> *Madusanka Premaratne* | Associate Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 835 70 73| Work: +94 112 145 345
>> Email: madusan...@wso2.com | Web: www.wso2.com
>>
>> [image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
>> <https://twitter.com/rmmpremaratne> [image: Google Plus]
>> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
>> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
>> <http://instagram.com/madusankapremaratne> [image: Skype]
>> <http://@rmmpremaratne>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Vishanth Balasubramaniam*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94771737718*
> about me: *http://about.me/vishanth <http://about.me/vishanth>*
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Architecture][APIM] Swagger validation

2015-03-20 Thread Madusanka Premaratne
Hi all,
As you all know APIM uses YAML and Swagger. We have already done YAML
validation part and will be there as real time yaml syntax validator in the
upcoming release.

​In the validation of swagger we can either validate swagger at the
front-end using javascript or validate at the backend using json schema
validator.
According to the offline discussions I had with Colin and Jo, it is more
suitable to validate it at the backend, because there are two
ways(write/import) to feed a swagger doc.

Does anyone worked with a json schema validator which can be used to fulfil
our need?

Feedbacks and suggestions for this improvement would be appreciated.

​Thanks,​

-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge PR for APIMANAGER-3291

2015-03-18 Thread Madusanka Premaratne
Hi Abimaran,
Find the PR[1] for the issue[2]
[1] - https://github.com/wso2/carbon-apimgt/pull/88
[2] - https://wso2.org/jira/browse/APIMANAGER-3291

​Thanks,​

-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge

2015-03-13 Thread Madusanka Premaratne
Hi Abimaran,
Please $subject [1] for the issue [2]
[1] - https://github.com/wso2/carbon-apimgt/pull/71
[2] - https://wso2.org/jira/browse/APIMANAGER-3307

​Thanks,​

-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Dinesh J Weerakkody

2015-03-11 Thread Madusanka Premaratne
;>>> Dev@wso2.org
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Ravindra Ranwala
>>>>>>> Software Engineer
>>>>>>> WSO2, Inc: http://wso2.com
>>>>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>>>>>>> Mobile: +94714198770
>>>>>>>
>>>>>>>
>>>>>>> ___
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> *Tharik Kanaka* | Associate Software Engineer
>>>>>>
>>>>>> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka
>>>>>>
>>>>>> Email: tha...@wso2.com | Web: www.wso2.com
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Vijitha Ekanayake
>>>>> Software Engineer*, *WSO2, Inc.; http://wso2.com/
>>>>> Mobile : +94 777 24 73 39 | +94 718 74 44 08
>>>>> lean.enterprise.middleware
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Lasitha Wattaladeniya
>>>> Software Engineer
>>>> WSO2, Inc. | http://wso2.com
>>>> lean. enterprise. middleware
>>>>
>>>> Mobile : +94719397528
>>>> Blog : techreadme.blogspot.com
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Thusitha Dayaratne
>>> Software Engineer
>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>
>>> Mobile  +94712756809
>>> Blog  alokayasoya.blogspot.com
>>> Abouthttp://about.me/thusithathilina
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Chanuka Dissanayake
>> *Software Engineer | **WSO2 Inc.*; http://wso2.com
>>
>> Mobile: +94 71 33 63 596
>> Email: chan...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards,
>
> *Thilini Cooray*
> Software Engineer
> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
> E-mail : thili...@wso2.com
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/rmmpremaratne> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Review and merge

2015-03-08 Thread Madusanka Premaratne
Hi Abimaran,
Please $subject for the PR[1] for the issue[2]
[1] - https://github.com/wso2/carbon-apimgt/pull/54/
[2] - https://wso2.org/jira/browse/APIMANAGER-3281

​Thanks,​

-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/rmmpremaratne> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Chamila de Alwis

2015-03-05 Thread Madusanka Premaratne
Congrats Chamila..!!!

On Fri, Mar 6, 2015 at 9:41 AM, Rajkumar Rajaratnam 
wrote:

> Congrats Chamila !!
>
> On Fri, Mar 6, 2015 at 9:38 AM, Inshaf Mahath  wrote:
>
>> Congrats Chamila.
>>
>> On Fri, Mar 6, 2015 at 8:34 AM, Roshan Deniyage  wrote:
>>
>>> Congrats Chamila!!
>>>
>>> Roshan Deniyage
>>> Associate Technical Lead
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile:  +94 777636406
>>> Twitter:  *https://twitter.com/roshku <https://twitter.com/roshku>*
>>> LinkedIn :  https://www.linkedin.com/in/roshandeniyage
>>>
>>>
>>> On Fri, Mar 6, 2015 at 8:33 AM, Thilini Cooray 
>>> wrote:
>>>
>>>> Congratulations, Chamila
>>>>
>>>> On Fri, Mar 6, 2015 at 8:32 AM, Rasika Perera  wrote:
>>>>
>>>>> Congratz Chamila !!!
>>>>>
>>>>> On Thu, Mar 5, 2015 at 10:01 AM, Imesh Gunaratne 
>>>>> wrote:
>>>>>
>>>>>> Hi Devs,
>>>>>>
>>>>>> It's my pleasure to welcome Chamila de Alwis as a WSO2 Committer.
>>>>>> Chamila, welcome aboard and keep up the good work!
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> --
>>>>>> *Imesh Gunaratne*
>>>>>> Technical Lead
>>>>>> WSO2 Inc: http://wso2.com
>>>>>> T: +94 11 214 5345 M: +94 77 374 2057
>>>>>> W: http://imesh.gunaratne.org
>>>>>> Lean . Enterprise . Middleware
>>>>>>
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> With Regards,
>>>>>
>>>>> *Rasika Perera*
>>>>> Software Engineer
>>>>> M: +94 71 680 9060 E: rasi...@wso2.com
>>>>> LinkedIn: http://lk.linkedin.com/in/rasika90
>>>>>
>>>>> WSO2 Inc. www.wso2.com
>>>>> lean.enterprise.middleware
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Best Regards,
>>>>
>>>> Thilini Cooray
>>>> Software Engineer
>>>> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
>>>> E-mail : thili...@wso2.com
>>>>
>>>> ___
>>>> 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
>>>
>>>
>>
>>
>> --
>> Inshaf Mahath
>> Associate Software Engineer
>> Mobile: +94775907181
>> WSO2 Inc.
>> Lean . Enterprise . Middleware
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rajkumar Rajaratnam
> Committer & PMC Member, Apache Stratos
> Software Engineer, WSO2
>
> Mobile : +94777568639
> Blog : rajkumarr.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/rmmpremaratne> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge

2015-03-05 Thread Madusanka Premaratne
Hi,
Please review and merge the PR[1] for APIM issue[2]
[1] - https://github.com/wso2/carbon-apimgt/pull/51
[2] - https://wso2.org/jira/browse/APIMANAGER-3275

Thanks,

-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/rmmpremaratne> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Googleplus ESB connector review

2015-03-04 Thread Madusanka Premaratne
Hi Elilmatha,
Done as requested. Please find the Jira[1] and the PR[2]

[1] - https://wso2.org/jira/browse/ESBCONNECT-30
[2] - https://github.com/wso2-dev/esb-connectors/pull/172

Thanks,

On Wed, Feb 25, 2015 at 10:27 AM, Madusanka Premaratne 
wrote:

> Hi Vanji,
> Both of us engaged in creating support patches. We will do this ASAP and
> send a PR.
> Thanks,
>
> On Wed, Feb 25, 2015 at 10:10 AM, Vanjikumaran Sivajothy 
> wrote:
>
>> @Thaindu and Madusanka,
>>
>> Any idea on this ?
>>
>> On Fri, Feb 20, 2015 at 5:53 PM, Elilmatha Sivanesan 
>> wrote:
>>
>>> Hi Madusanka and Tharindu
>>>
>>> Please find the feedbacks regarding Google plus connector.
>>>
>>>
>>>1. Please modify the pom to run the test cases in a single build.
>>>2. four test cases failed because of the api change they have
>>>removed 'fields' from the optional parameters [
>>>
>>>Failed tests:
>>>
>>> testListActivityWithOneOptionalParam2(org.wso2.carbon.connector.integration.test.gplus.GooglePlusActivitiesTest):
>>>JSONObject["kind"] not found.
>>>
>>>
>>>
>>> testListActivityWithOptionalParams(org.wso2.carbon.connector.integration.test.gplus.GooglePlusActivitiesTest):
>>>JSONObject["kind"] not found.
>>>
>>>
>>>
>>> testListActivityWithTwoOptionalParam1(org.wso2.carbon.connector.integration.test.gplus.GooglePlusActivitiesTest):
>>>JSONObject["kind"] not found.
>>>
>>>
>>>
>>> testListActivityWithTwoOptionalParam2(org.wso2.carbon.connector.integration.test.gplus.GooglePlusActivitiesTest):
>>>JSONObject["kind"] not found.]
>>>3.
>>>
>>>so please do the above rework and give the pull request to
>>>https://github.com/wso2/esb-connectors.
>>>
>>> Thank you.
>>> --
>>> *S.Elilmatha*
>>> Associate  Software Engineer,
>>>
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> Mobile 0779842221.
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sivajothy Vanjikumaran
>> *Senior Software Engineer*
>> *Integration Technologies Team*
>> *WSO2 Inc. http://wso2.com <http://wso2.com/>*
>> *Mobile:(+94)777219209*
>> [image: Facebook] <https://www.facebook.com/vanjikumaran> [image:
>> Twitter] <https://twitter.com/vanjikumaran> [image: LinkedIn]
>> <http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293> [image:
>> Blogger] <http://vanjikumaran.blogspot.com/> [image: SlideShare]
>> <http://www.slideshare.net/vanjikumaran>
>>
>> This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may
>> have received this communication in error, please reply to the
>> sender indicating that fact and delete the copy you received and in
>> addition, you should not print, copy, re-transmit, disseminate, or
>> otherwise use the information contained in this communication.
>> Internet communications cannot be guaranteed to be timely, secure, error
>> or virus-free. The sender does not accept liability for any errors
>> or omissions
>>
>
>
>
> --
> *Madusanka Premaratne* | Associate Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 835 70 73| Work: +94 112 145 345
> Email: madusan...@wso2.com | Web: www.wso2.com
>
> [image: Facebook] <https://www.facebook.com/rmmpremaratne> [image:
> Twitter] <https://twitter.com/rmmpremaratne> [image: Google Plus]
> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
> <http://instagram.com/madusankapremaratne> [image: Skype]
> <http://@rmmpremaratne>
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/rmmpremaratne> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Problem while encrypting config file passwords using cipher-tool

2015-03-01 Thread Madusanka Premaratne
Hi all,
I found the problem with it. The ciphertool.sh comes with APIM has a known
issue.
We have to use [1] as the replacement for ciphertool.sh
[1] -
https://docs.wso2.com/download/attachments/41747153/ciphertool.sh?version=1&modificationDate=1423230134000&api=v2

For more read, https://docs.wso2.com/display/AM180/Encrypting+Passwords

Thanks,

On Mon, Feb 23, 2015 at 1:02 PM, Irham Iqbal  wrote:

> Hi Madusanka,
>
> I have written test cases[1] for encrypt H2DB password using ciphertool.sh
> on AS.
> I used the blog[2] which might help you to solve your issue.
>
> [1]
> https://github.com/wso2/product-as/blob/master/modules/integration/tests-integration/tests/src/test/java/org/wso2/appserver/integration/tests/ciphertool/H2DBPasswordEncryptionTestCase.java
> [2]
> http://charithaka.blogspot.com/2013/06/how-to-use-securevault-when-wso2-carbon.html
>
> Thanks,
> Iqbal
>
> On Mon, Feb 23, 2015 at 12:28 PM, Madusanka Premaratne <
> madusan...@wso2.com> wrote:
>
>> Hi all,
>> I tried to encrypt two passwords in api-manager.xml using the
>> cipher-tool. But when I try with the command sh ciphertool.sh -Dconfigure,
>> the entries in cipher-text.properties dissappers.
>>
>> I uncommented following two lines in cipher-tool.properties file,
>>
>> AuthManager.Password=api-manager.xml//APIManager/AuthManager/Password,true
>>
>> APIKeyManager.Password=api-manager.xml//APIManager/APIKeyManager/Password,true
>>
>>
>> And added following two lines to the cipher-text.properties file,
>>
>> AuthManager.Password=[admin]
>> APIKeyManager.Password=[admin]
>>
>>
>> Also I changed  to true in api-manager.xml
>>
>> Can anyone point out what I missed here?
>>
>> Thanks,
>>
>> --
>> *Madusanka Premaratne* | Associate Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 835 70 73| Work: +94 112 145 345
>> Email: madusan...@wso2.com | Web: www.wso2.com
>>
>> [image: Facebook] <https://www.facebook.com/rmmpremaratne> [image:
>> Twitter] <https://twitter.com/rmmpremaratne> [image: Google Plus]
>> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
>> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
>> <http://instagram.com/madusankapremaratne> [image: Skype]
>> <http://@rmmpremaratne>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Irham Iqbal
> Software Engineer - Test Automation
>  WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
> phone: +94 777888452
>



-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/rmmpremaratne> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Googleplus ESB connector review

2015-02-24 Thread Madusanka Premaratne
Hi Vanji,
Both of us engaged in creating support patches. We will do this ASAP and
send a PR.
Thanks,

On Wed, Feb 25, 2015 at 10:10 AM, Vanjikumaran Sivajothy 
wrote:

> @Thaindu and Madusanka,
>
> Any idea on this ?
>
> On Fri, Feb 20, 2015 at 5:53 PM, Elilmatha Sivanesan 
> wrote:
>
>> Hi Madusanka and Tharindu
>>
>> Please find the feedbacks regarding Google plus connector.
>>
>>
>>1. Please modify the pom to run the test cases in a single build.
>>2. four test cases failed because of the api change they have removed
>>'fields' from the optional parameters [
>>
>>Failed tests:
>>
>> testListActivityWithOneOptionalParam2(org.wso2.carbon.connector.integration.test.gplus.GooglePlusActivitiesTest):
>>JSONObject["kind"] not found.
>>
>>
>>
>> testListActivityWithOptionalParams(org.wso2.carbon.connector.integration.test.gplus.GooglePlusActivitiesTest):
>>JSONObject["kind"] not found.
>>
>>
>>
>> testListActivityWithTwoOptionalParam1(org.wso2.carbon.connector.integration.test.gplus.GooglePlusActivitiesTest):
>>JSONObject["kind"] not found.
>>
>>
>>
>> testListActivityWithTwoOptionalParam2(org.wso2.carbon.connector.integration.test.gplus.GooglePlusActivitiesTest):
>>JSONObject["kind"] not found.]
>>3.
>>
>>so please do the above rework and give the pull request to
>>https://github.com/wso2/esb-connectors.
>>
>> Thank you.
>> --
>> *S.Elilmatha*
>> Associate  Software Engineer,
>>
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> Mobile 0779842221.
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sivajothy Vanjikumaran
> *Senior Software Engineer*
> *Integration Technologies Team*
> *WSO2 Inc. http://wso2.com <http://wso2.com/>*
> *Mobile:(+94)777219209*
> [image: Facebook] <https://www.facebook.com/vanjikumaran> [image: Twitter]
> <https://twitter.com/vanjikumaran> [image: LinkedIn]
> <http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293> [image:
> Blogger] <http://vanjikumaran.blogspot.com/> [image: SlideShare]
> <http://www.slideshare.net/vanjikumaran>
>
> This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may
> have received this communication in error, please reply to the
> sender indicating that fact and delete the copy you received and in
> addition, you should not print, copy, re-transmit, disseminate, or
> otherwise use the information contained in this communication.
> Internet communications cannot be guaranteed to be timely, secure, error
> or virus-free. The sender does not accept liability for any errors
> or omissions
>



-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/rmmpremaratne> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Problem while encrypting config file passwords using cipher-tool

2015-02-22 Thread Madusanka Premaratne
Hi all,
I tried to encrypt two passwords in api-manager.xml using the cipher-tool.
But when I try with the command sh ciphertool.sh -Dconfigure, the entries
in cipher-text.properties dissappers.

I uncommented following two lines in cipher-tool.properties file,

AuthManager.Password=api-manager.xml//APIManager/AuthManager/Password,true
APIKeyManager.Password=api-manager.xml//APIManager/APIKeyManager/Password,true


And added following two lines to the cipher-text.properties file,

AuthManager.Password=[admin]
APIKeyManager.Password=[admin]


Also I changed  to true in api-manager.xml

Can anyone point out what I missed here?

Thanks,

-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/rmmpremaratne> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Pulasthi Mahawithana

2015-02-19 Thread Madusanka Premaratne
>>>>>>>>>>>>>>>>>>>> Dev mailing list
>>>>>>>>>>>>>>>>>>>> Dev@wso2.org
>>>>>>>>>>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>>> *Jerad Rutnam*
>>>>>>>>>>>>>>>>>>> *Software Engineer*
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> WSO2 Inc.
>>>>>>>>>>>>>>>>>>> lean | enterprise | middleware
>>>>>>>>>>>>>>>>>>> M : +94 77 959 1609 | E : je...@wso2.com | W :
>>>>>>>>>>>>>>>>>>> www.wso2.com
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> ___
>>>>>>>>>>>>>>>>>>> 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
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>> Milinda Perera
>>>>>>>>>>>>>>>>> Software Engineer;
>>>>>>>>>>>>>>>>> WSO2 Inc. http://wso2.com ,
>>>>>>>>>>>>>>>>> Mobile: (+94) 714 115 032
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> ___
>>>>>>>>>>>>>>>>> Dev mailing list
>>>>>>>>>>>>>>>>> Dev@wso2.org
>>>>>>>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>> Best Regards,
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Kalpa Welivitigoda
>>>>>>>>>>>>>>>> Software Engineer, WSO2 Inc. http://wso2.com
>>>>>>>>>>>>>>>> Email: kal...@wso2.com
>>>>>>>>>>>>>>>> Mobile: +94776509215
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> ___
>>>>>>>>>>>>>>>> Dev mailing list
>>>>>>>>>>>>>>>> Dev@wso2.org
>>>>>>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>> Buddhima Wijeweera
>>>>>>>>>>>>>>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Mobile: +94 71 427 9966
>>>>>>>>>>>>>>> Email: buddh...@wso2.com
>>>>>>>>>>>>>>> Blog:   https://buddhimawijeweera.wordpress.com
>>>>>>>>>>>>>>> GitHub Profile: https://github.com/Buddhima
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> ___
>>>>>>>>>>>>>>> Dev mailing list
>>>>>>>>>>>>>>> Dev@wso2.org
>>>>>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --
>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> *Darshana Gunawardana*Software Engineer
>>>>>>>>>>>>>> WSO2 Inc.; http://wso2.com
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> *E-mail: darsh...@wso2.com *
>>>>>>>>>>>>>> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise .
>>>>>>>>>>>>>> Middleware
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ___
>>>>>>>>>>>>>> Dev mailing list
>>>>>>>>>>>>>> Dev@wso2.org
>>>>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> *Supun Sethunga*
>>>>>>>>>>>>> Software Engineer
>>>>>>>>>>>>> WSO2, Inc.
>>>>>>>>>>>>> lean | enterprise | middleware
>>>>>>>>>>>>> Mobile : +94 716546324
>>>>>>>>>>>>>
>>>>>>>>>>>>> ___
>>>>>>>>>>>>> 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
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Prasanna Dangalla
>>>>>>>>>>> Software Engineer, WSO2, Inc.; http://wso2.com/
>>>>>>>>>>> lean.enterprise.middleware
>>>>>>>>>>>
>>>>>>>>>>> cell: +94 777 55 80 30 | +94 718 11 27 51
>>>>>>>>>>> twitter: @prasa77
>>>>>>>>>>>
>>>>>>>>>>> ___
>>>>>>>>>>> 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
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> *Thanuja Lakmal*
>>>>>>>>> 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
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Vijitha Ekanayake
>>>>>>>> Software Engineer*, *WSO2, Inc.; http://wso2.com/
>>>>>>>> Mobile : +94 777 24 73 39 | +94 718 74 44 08
>>>>>>>> lean.enterprise.middleware
>>>>>>>>
>>>>>>>> ___
>>>>>>>> Dev mailing list
>>>>>>>> Dev@wso2.org
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Gayan Gunawardana
>>>>>>> Software Engineer; WSO2 Inc.; http://wso2.com/
>>>>>>> Email: ga...@wso2.com
>>>>>>> Mobile: +94 (71) 8020933
>>>>>>>
>>>>>>> ___
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Anuja Herath
>>>>>> *Software Engineer*
>>>>>> *WSO2, Inc.*
>>>>>> Mobile : +94 (0)71 429 8861
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Lasitha Wattaladeniya
>>>>> Software Engineer
>>>>> WSO2, Inc. | http://wso2.com
>>>>> lean. enterprise. middleware
>>>>>
>>>>> Mobile : +94719397528
>>>>> Blog : techreadme.blogspot.com
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>> Rajith Vitharana
>>>
>>> Software Engineer,
>>> WSO2 Inc. : wso2.com
>>> Mobile : +94715883223
>>> Blog : http://lankavitharana.blogspot.com/
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> Software Engineer
> WSO2 Inc.; http://wso2.com
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
> lean.enterprise.middleware
>
> mobile: *+94728671315 <%2B94728671315>*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/rmmpremaratne> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while trying to install DSS feature 3.2.1 to ESB 4.8.1

2015-02-19 Thread Madusanka Premaratne
Hi Sajith,
This usually happens when you have these features already installed in the
product. You can go back and remove the already installed features.(not the
feature groups, but you can un-tick only the feature from the tree)
In your case you have to remove New Datasource Management UI Feature, Data
Service Hosting Feature, Data Service Hosting UI Feature etc..

Or else you can try with the provinstall osgi command. This will ignore
the already installed features and install only the new ones.
Eg : provinstall org.wso2.carbon.patch.feature.group

Hope this[1] will help you to do more things with the osgi console.
[1] - https://wiki.eclipse.org/Equinox/p2/Console_Users_Guide

Thanks,

On Wed, Feb 18, 2015 at 6:45 PM, Sajith Ravindra  wrote:

> Hi all,
>
> Following error is shown when trying to do the $subjuect from
> http://dist.wso2.org/p2/carbon/releases/turing/.
>
> Your original install request has been modified.
> org.wso2.carbon.ndatasource.feature.group-4.2.0 is already installed, so an
> update will be performed instead.
> org.wso2.carbon.ndatasource.ui.feature.group-4.2.0 is already installed, so
> an update will be performed instead. Cannot complete the install because of
> a conflicting dependency. Software being installed: Data Service Hosting
> Feature 4.2.4 (org.wso2.carbon.dataservices.feature.group 4.2.4) Software
> being installed: WSO2 Carbon - New Datasource Management UI Feature 4.2.2
> (org.wso2.carbon.ndatasource.ui.feature.group 4.2.2) Only one of the
> following can be installed at once: WSO2 Carbon - New Datasource Management
> UI Feature 4.2.3 (org.wso2.carbon.ndatasource.ui.feature.jar 4.2.3) WSO2
> Carbon - New Datasource Management UI Feature 4.2.2
> (org.wso2.carbon.ndatasource.ui.feature.jar 4.2.2) Cannot satisfy
> dependency: From: Data Service Hosting Feature 4.2.4
> (org.wso2.carbon.dataservices.feature.group 4.2.4) To:
> org.wso2.carbon.dataservices.ui.feature.group [4.2.4] Cannot satisfy
> dependency: From: Data Service Hosting UI Feature 4.2.4
> (org.wso2.carbon.dataservices.ui.feature.group 4.2.4) To:
> org.wso2.carbon.ndatasource.ui.feature.group [4.2.3,4.3.0) Cannot satisfy
> dependency: From: WSO2 Carbon - New Datasource Management UI Feature 4.2.2
> (org.wso2.carbon.ndatasource.ui.feature.group 4.2.2) To:
> org.wso2.carbon.ndatasource.ui.feature.jar [4.2.2] Cannot satisfy
> dependency: From: WSO2 Carbon - New Datasource Management UI Feature 4.2.3
> (org.wso2.carbon.ndatasource.ui.feature.group 4.2.3) To:
> org.wso2.carbon.ndatasource.ui.feature.jar [4.2.3]
>
> But, I had a backed up  repo of truing branch and when I tried installing
> the same feature from the backed up feature and it worked.
>
> Any advice on the cause of this?
>
> Thanks,
> *Sajith Ravindra*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273550
> blog: http://sajithr.blogspot.com/
> <http://lk.linkedin.com/pub/shani-ranasinghe/34/111/ab>
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/rmmpremaratne> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] [IS] Securing an endpoint using WSO2 ESB and IS

2015-02-11 Thread Madusanka Premaratne
Hi Shiva,
I will go through the doc you shared.

Thanks,

On Wed, Feb 11, 2015 at 4:17 PM, Shiva Balachandran  wrote:

> Hi Madushanka,
>
> Please check if the user credentials are present by logging in directly to
> the IS Admin Panel. Also try recreating another set of credentials with
> admin privileges and testing. Check document [1] for more information on
> how to securing the rest service using the ESB OAuth Mediator.
>
> [1] -
> https://docs.wso2.com/display/IS500/2-legged+OAuth+for+Securing+a+RESTful+Service
>
> Thank you.
>
> Regards,
>
> On Wed, Feb 11, 2015 at 3:08 PM, Madusanka Premaratne  > wrote:
>
>> Hi Shiva,
>> Thanks for the response.
>> When I debug the code, it points me that I use wrong credentials, but I
>> provided the credentials given by IS.
>> I am still confused why this goes wrong.
>>
>> Thanks,
>>
>> On Wed, Feb 11, 2015 at 2:00 PM, Shiva Balachandran 
>> wrote:
>>
>>> Hi,
>>>
>>> Please check the credentials again, might be an errornous credentials.
>>>
>>> Thank you.
>>>
>>> Regards,
>>>
>>> On Tue, Feb 10, 2015 at 2:39 PM, Madusanka Premaratne <
>>> madusan...@wso2.com> wrote:
>>>
>>>> Hi all,
>>>> I am trying to secure a rest service using ESB OAuth Mediator[1] with
>>>> the help of WSO2 Identity Server. I created a service provider in WSO2 IS
>>>> and used the OAuth credentials as username and password in ESB's OAuth
>>>> mediator. When I call the proxy service it gives me an error saying
>>>> "Connection Refused"
>>>>
>>>> Can somebody tell me What I am missing here?
>>>>
>>>>  My proxy service looks like below,
>>>> 
>>>> http://ws.apache.org/ns/synapse";
>>>>name="App"
>>>>transports="https,http"
>>>>statistics="disable"
>>>>trace="disable"
>>>>startOnLoad="true">
>>>>
>>>>   
>>>>  https://10.100.5.179:9444/services/";
>>>>username="erbO9h_cBgwQQ45fGmQ88RqpbMAa"
>>>>password="JU_G6DayJpYMBn8vVU7JGNab0Fga"/>
>>>>   
>>>>   
>>>>  
>>>>   
>>>>   
>>>>  http://10.100.5.179:9763/services/Version/getVersion"/>
>>>>   
>>>>
>>>>
>>>> 
>>>>
>>>> ​[1] - https://docs.wso2.com/display/ESB480/OAuth+Mediator​
>>>>
>>>> ​Thank You,​
>>>>
>>>> --
>>>> *Madusanka Premaratne* | Associate Software Engineer
>>>> WSO2, Inc | lean. enterprise. middleware.
>>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>>> Mobile: +94 71 835 70 73| Work: +94 112 145 345
>>>> Email: madusan...@wso2.com | Web: www.wso2.com
>>>>
>>>> [image: Facebook] <https://www.facebook.com/rmmpremaratne> [image:
>>>> Twitter] <https://twitter.com/rmmpremaratne> [image: Google Plus]
>>>> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
>>>> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
>>>> <http://instagram.com/madusankapremaratne> [image: Skype]
>>>> <http://@rmmpremaratne>
>>>>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Shiva Balachandran
>>> Software Engineer
>>> WSO2 Inc.
>>>
>>> Mobile - +94 774445788
>>> Blog - https://shivabalachandran.wordpress.com/
>>>
>>
>>
>>
>> --
>> *Madusanka Premaratne* | Associate Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 835 70 73| Work: +94 112 145 345
>> Email: madusan...@wso2.com | Web: www.wso2.com
>>
>> [image: Facebook] <https://www.facebook.com/rmmpremaratne> [image:
>> Twitter] <https://twitter.com/rmmpremaratne> [image: Google Plus]
>> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
>> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
>> <http://instagram.com/madusankapremaratne> [image: Skype]
>> <http://@rmmpremaratne>
>>
>>
>
>
> --
> Shiva Balachandran
> Software Engineer
> WSO2 Inc.
>
> Mobile - +94 774445788
> Blog - https://shivabalachandran.wordpress.com/
>



-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/rmmpremaratne> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] [IS] Securing an endpoint using WSO2 ESB and IS

2015-02-11 Thread Madusanka Premaratne
Hi Shiva,
Thanks for the response.
When I debug the code, it points me that I use wrong credentials, but I
provided the credentials given by IS.
I am still confused why this goes wrong.

Thanks,

On Wed, Feb 11, 2015 at 2:00 PM, Shiva Balachandran  wrote:

> Hi,
>
> Please check the credentials again, might be an errornous credentials.
>
> Thank you.
>
> Regards,
>
> On Tue, Feb 10, 2015 at 2:39 PM, Madusanka Premaratne  > wrote:
>
>> Hi all,
>> I am trying to secure a rest service using ESB OAuth Mediator[1] with the
>> help of WSO2 Identity Server. I created a service provider in WSO2 IS and
>> used the OAuth credentials as username and password in ESB's OAuth
>> mediator. When I call the proxy service it gives me an error saying
>> "Connection Refused"
>>
>> Can somebody tell me What I am missing here?
>>
>>  My proxy service looks like below,
>> 
>> http://ws.apache.org/ns/synapse";
>>name="App"
>>transports="https,http"
>>statistics="disable"
>>trace="disable"
>>startOnLoad="true">
>>
>>   
>>  https://10.100.5.179:9444/services/";
>>username="erbO9h_cBgwQQ45fGmQ88RqpbMAa"
>>password="JU_G6DayJpYMBn8vVU7JGNab0Fga"/>
>>   
>>   
>>  
>>   
>>   
>>  http://10.100.5.179:9763/services/Version/getVersion"/>
>>   
>>
>>
>> 
>>
>> ​[1] - https://docs.wso2.com/display/ESB480/OAuth+Mediator​
>>
>> ​Thank You,​
>>
>> --
>> *Madusanka Premaratne* | Associate Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 835 70 73| Work: +94 112 145 345
>> Email: madusan...@wso2.com | Web: www.wso2.com
>>
>> [image: Facebook] <https://www.facebook.com/rmmpremaratne> [image:
>> Twitter] <https://twitter.com/rmmpremaratne> [image: Google Plus]
>> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
>> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
>> <http://instagram.com/madusankapremaratne> [image: Skype]
>> <http://@rmmpremaratne>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Shiva Balachandran
> Software Engineer
> WSO2 Inc.
>
> Mobile - +94 774445788
> Blog - https://shivabalachandran.wordpress.com/
>



-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/rmmpremaratne> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] [IS] Securing an endpoint using WSO2 ESB and IS

2015-02-10 Thread Madusanka Premaratne
Hi all,
I am trying to secure a rest service using ESB OAuth Mediator[1] with the
help of WSO2 Identity Server. I created a service provider in WSO2 IS and
used the OAuth credentials as username and password in ESB's OAuth
mediator. When I call the proxy service it gives me an error saying
"Connection Refused"

Can somebody tell me What I am missing here?

 My proxy service looks like below,

http://ws.apache.org/ns/synapse";
   name="App"
   transports="https,http"
   statistics="disable"
   trace="disable"
   startOnLoad="true">
   
  
 https://10.100.5.179:9444/services/
"
   username="erbO9h_cBgwQQ45fGmQ88RqpbMAa"
   password="JU_G6DayJpYMBn8vVU7JGNab0Fga"/>
  
  
 
  
  
 http://10.100.5.179:9763/services/Version/getVersion
"/>
  
   
   


​[1] - https://docs.wso2.com/display/ESB480/OAuth+Mediator​

​Thank You,​

-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/rmmpremaratne> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Akalanka Darshana Pagoda Arachchi

2015-01-05 Thread Madusanka Premaratne
Congrats Aka..!! :)

On Mon, Jan 5, 2015 at 2:58 PM, Hasitha Amal De Silva 
wrote:

> Congrats Akalanka ! :)
>
> On Mon, Jan 5, 2015 at 2:51 PM, Harsha Kumara  wrote:
>
>> Congratulations Akalanka!
>>
>> On Mon, Jan 5, 2015 at 2:47 PM, Abimaran Kugathasan 
>> wrote:
>>
>>> Congrats!
>>>
>>> On Mon, Jan 5, 2015 at 2:39 PM, Kalpa Welivitigoda 
>>> wrote:
>>>
>>>> Congratulations Akalanka !
>>>>
>>>> On Mon, Jan 5, 2015 at 2:38 PM, Pranavan Theivendram <
>>>> pranav...@wso2.com> wrote:
>>>>
>>>>> Congratz Akalanka :)
>>>>>
>>>>> On Mon, Jan 5, 2015 at 2:34 PM, Lasitha Wattaladeniya <
>>>>> lasit...@wso2.com> wrote:
>>>>>
>>>>>> Congratulations Akalanka :)
>>>>>>
>>>>>> On Mon, Jan 5, 2015 at 2:32 PM, Ramith Jayasinghe 
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Akalanka,
>>>>>>> Congratulations!
>>>>>>> It is with great pleasure that we welcome you as a WSO2 committer.
>>>>>>> Keep up the good work!
>>>>>>> regards
>>>>>>> --
>>>>>>> Ramith Jayasinghe
>>>>>>> Technical Lead
>>>>>>> WSO2 Inc., http://wso2.com
>>>>>>> lean.enterprise.middleware
>>>>>>>
>>>>>>> E: ram...@wso2.com
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ___
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Lasitha Wattaladeniya
>>>>>> Software Engineer
>>>>>> WSO2, Inc. | http://wso2.com
>>>>>> lean. enterprise. middleware
>>>>>>
>>>>>> Mobile : +94719397528
>>>>>> Blog : techreadme.blogspot.com
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> *Regards,*
>>>>>
>>>>> *T.Pranavan*
>>>>>
>>>>> *Software Engineering intern, WSO2*
>>>>> *Mobile - +94775136836 <%2B94775136836>*
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Best Regards,
>>>>
>>>> Kalpa Welivitigoda
>>>> Software Engineer, WSO2 Inc. http://wso2.com
>>>> Email: kal...@wso2.com
>>>> Mobile: +94776509215
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Thanks
>>> Abimaran Kugathasan
>>>
>>> Software Engineer | WSO2 Inc
>>> Data & APIs Technologies Team
>>> Mobile : +94 773922820
>>>
>>> <http://stackoverflow.com/users/515034>
>>> <http://lk.linkedin.com/in/abimaran>
>>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimaran>
>>> <https://twitter.com/abimaran>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>
>
> --
> Cheers,
>
> Hasitha Amal De Silva
>  Software Engineer
> Mobile : 0772037426
> Blog: http://devnutshell.tumblr.com/
> WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/rmmpremaratne> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] API Manager OSGI services unsatisfied on DSS

2014-12-12 Thread Madusanka Premaratne
Forwarding to Dev.

Thanks,

On Fri, Dec 12, 2014 at 1:54 PM, Madusanka Premaratne 
wrote:
>
> Hi Lakshman,
>
> In the API Manager registy.xml there are configurations to define *index
> configuration which is used in meta data search feature of the registry*
> and to *enable JMX management.*
> Basically I added following configurations additionally to the dss's
> registy.xml
>
> 
> 
> 60
> 2
> 
> 50
> 
> 10
> 
>
> /_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime
> 
> 
> 
> 
>  class="org.wso2.carbon.governance.registry.extensions.indexers.RXTIndexer"
> mediaTypeRegEx="application/vnd.(.)+\+xml" profiles
> ="default,api-store,api-publisher"/>
> 
>  class="org.wso2.carbon.apimgt.impl.indexing.indexer.PlainTextIndexer"
> mediaTypeRegEx="text/plain+" profiles ="default,api-store,api-publisher"/>
>  class="org.wso2.carbon.apimgt.impl.indexing.indexer.PDFIndexer"
> mediaTypeRegEx="application/pdf" profiles
> ="default,api-store,api-publisher"/>
>  class="org.wso2.carbon.apimgt.impl.indexing.indexer.MSWordIndexer"
> mediaTypeRegEx="application/msword" profiles
> ="default,api-store,api-publisher"/>
>  class="org.wso2.carbon.apimgt.impl.indexing.indexer.MSPowerpointIndexer"
> mediaTypeRegEx="application/vnd.ms-powerpoint" profiles
> ="default,api-store,api-publisher"/>
>  class="org.wso2.carbon.apimgt.impl.indexing.indexer.MSExcelIndexer"
> mediaTypeRegEx="application/vnd.ms-excel" profiles
> ="default,api-store,api-publisher"/>
>  class="org.wso2.carbon.apimgt.impl.indexing.indexer.XMLIndexer"
> mediaTypeRegEx="application/xml" profiles
> ="default,api-store,api-publisher"/>
> 
> 
>  pathRegEx="/_system/config/repository/dashboards/gadgets/swfobject1-5/.*[.]html"/>
>  pathRegEx="/_system/local/repository/components/org[.]wso2[.]carbon[.]registry/mount/.*"/>
> 
> 
>
> true
>
> 
> 
> true
> true
> true
>     true
> 
>
> 
> 
> 
> 
> 
> 
> 
> 
>
>
> We will document with the configurations and will ask them to document.
> Thanks,
>
> On Fri, Dec 12, 2014 at 1:48 PM, Lakshman Udayakantha 
> wrote:
>>
>> Hi Madushanka,
>>
>> Could you post the configuration changes done? should they go to
>> documentation?
>>
>> Thanks
>> Lakshman
>>
>> On Fri, Dec 12, 2014 at 1:25 PM, Madusanka Premaratne <
>> madusan...@wso2.com> wrote:
>>>
>>> I figured out the error. It was a configuration problem with the
>>> configurations in registry.xml
>>>
>>> Thanks,
>>>
>>> On Fri, Dec 12, 2014 at 10:07 AM, Madusanka Premaratne <
>>> madusan...@wso2.com> wrote:
>>>>
>>>> Hi All/Kishanthan,
>>>> I tried to debug this in OSGI level and some of the components saying "No
>>>> unresolved constraints" and some pop out "Missing optionally imported
>>>> packages".
>>>> When I try diag 19, I can see the following.
>>>>
>>>> osgi> diag 19
>>>>
>>>> reference:file:../plugins/bsf-all_3.0.0.wso2v2.jar [19]
>>>>
>>>>   Direct constraints which are unresolved:
>>>>
>>>> Missing optionally imported package com.judoscript_0.0.0.
>>>>
>>>> Missing optionally imported package com.judoscript.bio_0.0.0.
>>>>
>>>> Missing optionally imported package com.judoscript.parser_0.0.0.
>>>>
>>>> Missing optionally imported package com.judoscript.util_0.0.0.
>>>>
>>>> Missing optionally imported package
>>>> com.rc.retroweaver.runtime_0.0.0.
>>>>
>>>> Missing optionally imported package de.odysseus.el.util_0.0.0.
>>>>
>>>> Missing optionally imported package freemarker.template_0.0.0.
>>>>
>>>> Missing optionally imported package groovy.lang_0.0.0.
>>>>
>>>> Missing optionally imported package javax.tools_0.0.0.
>>>>
>>>> Missing optionally i

Re: [Dev] API Manager OSGI services unsatisfied on DSS

2014-12-11 Thread Madusanka Premaratne
I figured out the error. It was a configuration problem with the
configurations in registry.xml

Thanks,

On Fri, Dec 12, 2014 at 10:07 AM, Madusanka Premaratne 
wrote:
>
> Hi All/Kishanthan,
> I tried to debug this in OSGI level and some of the components saying "No
> unresolved constraints" and some pop out "Missing optionally imported
> packages".
> When I try diag 19, I can see the following.
>
> osgi> diag 19
>
> reference:file:../plugins/bsf-all_3.0.0.wso2v2.jar [19]
>
>   Direct constraints which are unresolved:
>
> Missing optionally imported package com.judoscript_0.0.0.
>
> Missing optionally imported package com.judoscript.bio_0.0.0.
>
> Missing optionally imported package com.judoscript.parser_0.0.0.
>
> Missing optionally imported package com.judoscript.util_0.0.0.
>
> Missing optionally imported package com.rc.retroweaver.runtime_0.0.0.
>
> Missing optionally imported package de.odysseus.el.util_0.0.0.
>
> Missing optionally imported package freemarker.template_0.0.0.
>
> Missing optionally imported package groovy.lang_0.0.0.
>
> Missing optionally imported package javax.tools_0.0.0.
>
> Missing optionally imported package jfun.jaskell_0.0.0.
>
> Missing optionally imported package jfun.jaskell.ast_0.0.0.
>
> Missing optionally imported package jfun.jaskell.function_0.0.0.
>
> Missing optionally imported package jfun.parsec_0.0.0.
>
> Missing optionally imported package jfun.util_0.0.0.
>
> Missing optionally imported package ognl_0.0.0.
>
> Missing optionally imported package org.apache.commons.jelly_0.0.0.
>
> Missing optionally imported package
> org.apache.commons.jelly.expression_0.0.0.
>
> Missing optionally imported package
> org.apache.commons.jelly.impl_0.0.0.
>
> Missing optionally imported package
> org.apache.commons.jelly.parser_0.0.0.
>
> Missing optionally imported package
> org.apache.commons.jelly.tags.core_0.0.0.
>
> Missing optionally imported package org.apache.commons.jexl_0.0.0.
>
> Missing optionally imported package org.codehaus.groovy.control_0.0.0.
>
> Missing optionally imported package org.codehaus.groovy.runtime_0.0.0.
>
> Missing optionally imported package org.codehaus.groovy.syntax_0.0.0.
>
> Missing optionally imported package org.jawk_0.0.0.
>
> Missing optionally imported package org.jruby_0.0.0.
>
> Missing optionally imported package org.jruby.ast_0.0.0.
>
> Missing optionally imported package org.jruby.exceptions_0.0.0.
>
> Missing optionally imported package org.jruby.internal.runtime_0.0.0.
>
> Missing optionally imported package org.jruby.javasupport_0.0.0.
>
> Missing optionally imported package org.jruby.runtime_0.0.0.
>
> Missing optionally imported package org.jruby.runtime.builtin_0.0.0.
>
> Missing optionally imported package org.jruby.runtime.load_0.0.0.
>
> Missing optionally imported package org.jruby.util_0.0.0.
>
> Missing optionally imported package org.jruby.util.io_0.0.0.
>
> Missing optionally imported package org.lsmp.djep.groupJep_0.0.0.
>
> Missing optionally imported package
> org.lsmp.djep.groupJep.groups_0.0.0.
>
> Missing optionally imported package org.lsmp.djep.vectorJep_0.0.0.
>
> Missing optionally imported package org.nfunk.jep_0.0.0.
>
> Missing optionally imported package org.nfunk.jep.function_0.0.0.
>
> Missing optionally imported package org.pnuts.lang_0.0.0.
>
> Missing optionally imported package org.pnuts.util_0.0.0.
>
> Missing optionally imported package org.python.core_0.0.0.
>
> Missing optionally imported package pnuts.compiler_0.0.0.
>
> Missing optionally imported package pnuts.lang_0.0.0.
>
> Missing optionally imported package sisc.data_0.0.0.
>
> Missing optionally imported package sisc.interpreter_0.0.0.
>
> Missing optionally imported package sisc.modules.s2j_0.0.0.
>
> Missing optionally imported package sisc.nativefun_0.0.0.
>
> Missing optionally imported package sisc.reader_0.0.0.
>
> Missing optionally imported package sisc.ser_0.0.0.
>
> Missing optionally imported package tcl.lang_0.0.0.
>
> What can I do to resolve this?
> Thanks,
>
> On Mon, Dec 8, 2014 at 5:07 PM, Madusanka Premaratne 
> wrote:
>>
>> Hi All,
>> I recently installed APIM 1.7.0 on top of Data Services Server. After the
>> installation I check the "apimgt" OSGI bundles (using ss apimgt) and
>> those are in "ACTIVE" state. But when I list the services  using *list*
>&

Re: [Dev] API Manager OSGI services unsatisfied on DSS

2014-12-11 Thread Madusanka Premaratne
Hi All/Kishanthan,
I tried to debug this in OSGI level and some of the components saying "No
unresolved constraints" and some pop out "Missing optionally imported
packages".
When I try diag 19, I can see the following.

osgi> diag 19

reference:file:../plugins/bsf-all_3.0.0.wso2v2.jar [19]

  Direct constraints which are unresolved:

Missing optionally imported package com.judoscript_0.0.0.

Missing optionally imported package com.judoscript.bio_0.0.0.

Missing optionally imported package com.judoscript.parser_0.0.0.

Missing optionally imported package com.judoscript.util_0.0.0.

Missing optionally imported package com.rc.retroweaver.runtime_0.0.0.

Missing optionally imported package de.odysseus.el.util_0.0.0.

Missing optionally imported package freemarker.template_0.0.0.

Missing optionally imported package groovy.lang_0.0.0.

Missing optionally imported package javax.tools_0.0.0.

Missing optionally imported package jfun.jaskell_0.0.0.

Missing optionally imported package jfun.jaskell.ast_0.0.0.

Missing optionally imported package jfun.jaskell.function_0.0.0.

Missing optionally imported package jfun.parsec_0.0.0.

Missing optionally imported package jfun.util_0.0.0.

Missing optionally imported package ognl_0.0.0.

Missing optionally imported package org.apache.commons.jelly_0.0.0.

Missing optionally imported package
org.apache.commons.jelly.expression_0.0.0.

Missing optionally imported package org.apache.commons.jelly.impl_0.0.0.

Missing optionally imported package
org.apache.commons.jelly.parser_0.0.0.

Missing optionally imported package
org.apache.commons.jelly.tags.core_0.0.0.

Missing optionally imported package org.apache.commons.jexl_0.0.0.

Missing optionally imported package org.codehaus.groovy.control_0.0.0.

Missing optionally imported package org.codehaus.groovy.runtime_0.0.0.

Missing optionally imported package org.codehaus.groovy.syntax_0.0.0.

Missing optionally imported package org.jawk_0.0.0.

Missing optionally imported package org.jruby_0.0.0.

Missing optionally imported package org.jruby.ast_0.0.0.

Missing optionally imported package org.jruby.exceptions_0.0.0.

Missing optionally imported package org.jruby.internal.runtime_0.0.0.

Missing optionally imported package org.jruby.javasupport_0.0.0.

Missing optionally imported package org.jruby.runtime_0.0.0.

Missing optionally imported package org.jruby.runtime.builtin_0.0.0.

Missing optionally imported package org.jruby.runtime.load_0.0.0.

Missing optionally imported package org.jruby.util_0.0.0.

Missing optionally imported package org.jruby.util.io_0.0.0.

Missing optionally imported package org.lsmp.djep.groupJep_0.0.0.

Missing optionally imported package org.lsmp.djep.groupJep.groups_0.0.0.

Missing optionally imported package org.lsmp.djep.vectorJep_0.0.0.

Missing optionally imported package org.nfunk.jep_0.0.0.

Missing optionally imported package org.nfunk.jep.function_0.0.0.

Missing optionally imported package org.pnuts.lang_0.0.0.

Missing optionally imported package org.pnuts.util_0.0.0.

Missing optionally imported package org.python.core_0.0.0.

Missing optionally imported package pnuts.compiler_0.0.0.

Missing optionally imported package pnuts.lang_0.0.0.

Missing optionally imported package sisc.data_0.0.0.

Missing optionally imported package sisc.interpreter_0.0.0.

Missing optionally imported package sisc.modules.s2j_0.0.0.

Missing optionally imported package sisc.nativefun_0.0.0.

Missing optionally imported package sisc.reader_0.0.0.

Missing optionally imported package sisc.ser_0.0.0.

Missing optionally imported package tcl.lang_0.0.0.

What can I do to resolve this?
Thanks,

On Mon, Dec 8, 2014 at 5:07 PM, Madusanka Premaratne 
wrote:
>
> Hi All,
> I recently installed APIM 1.7.0 on top of Data Services Server. After the
> installation I check the "apimgt" OSGI bundles (using ss apimgt) and
> those are in "ACTIVE" state. But when I list the services  using *list*
> command, I can see the services are unsatisfied as below.
>
> 19 Unsatisfied org.wso2.apimgt.core.services org.wso2.carbon.apimgt.core(
> bid=189)
>
> 20 Unsatisfied org.wso2.carbon.apimgt.handlers org.wso2.carbon.apimgt.
> gateway(bid=190)
>
> 21 Unsatisfied org.wso2.apimgt.hostobjects org.wso2.carbon.apimgt.
> hostobjects(bid=192)
>
> 22 Unsatisfied org.wso2.apimgt.impl.services org.wso2.carbon.apimgt.impl(
> bid=193)
>
> 23 Unsatisfied api.keymgt.component org.wso2.carbon.apimgt.keymgt(bid=194)
>
> 24 Unsatisfied org.wso2.apimgt.usage.client
> org.wso2.carbon.apimgt.usage.client(bid=197)
>
> 25 Unsatisfied api.mgt.usage.component
> org.wso2.carbon.apimgt.usage.publisher(bid=198)
>
> When I check th

[Dev] API Manager OSGI services unsatisfied on DSS

2014-12-08 Thread Madusanka Premaratne
Hi All,
I recently installed APIM 1.7.0 on top of Data Services Server. After the
installation I check the "apimgt" OSGI bundles (using ss apimgt) and those
are in "ACTIVE" state. But when I list the services  using *list* command,
I can see the services are unsatisfied as below.

19 Unsatisfied org.wso2.apimgt.core.services org.wso2.carbon.apimgt.core(
bid=189)

20 Unsatisfied org.wso2.carbon.apimgt.handlers org.wso2.carbon.apimgt.
gateway(bid=190)

21 Unsatisfied org.wso2.apimgt.hostobjects org.wso2.carbon.apimgt.
hostobjects(bid=192)

22 Unsatisfied org.wso2.apimgt.impl.services org.wso2.carbon.apimgt.impl(
bid=193)

23 Unsatisfied api.keymgt.component org.wso2.carbon.apimgt.keymgt(bid=194)

24 Unsatisfied org.wso2.apimgt.usage.client
org.wso2.carbon.apimgt.usage.client(bid=197)

25 Unsatisfied api.mgt.usage.component
org.wso2.carbon.apimgt.usage.publisher(bid=198)

When I check the component using *osgi -c bundle_id*, it gives me the
following output

osgi> ls -c 189

Components in bundle org.wso2.carbon.apimgt.core:

ID Component details

19 Component[

name = org.wso2.apimgt.core.services

factory = null

autoenable = true

immediate = true

implementation = org.wso2.carbon.apimgt.core.internal.
APPManagerCoreComponent

state = Unsatisfied

properties = {service.pid=org.wso2.apimgt.core.services}

serviceFactory = false

serviceInterface = null

references = {

Reference[name = api.manager.config.service, interface = org.wso2.carbon.
apimgt.impl.APIManagerConfigurationService, policy = dynamic, cardinality =
1..1, target = null, bind = setAPIManagerConfigurationService, unbind =
unsetAPIManagerConfigurationService]

}

located in bundle = org.wso2.carbon.apimgt.core_1.2.2 [189]

]

Dynamic information :

  *The component is NOT satisfied

  The following references are not satisfied:

Reference[name = api.manager.config.service, interface = org.wso2.carbon
.apimgt.impl.APIManagerConfigurationService, policy = dynamic, cardinality
= 1..1, target = null, bind = setAPIManagerConfigurationService, unbind =
unsetAPIManagerConfigurationService]

  Component configurations :

Configuration properties:

  service.pid = org.wso2.apimgt.core.services

  component.name = org.wso2.apimgt.core.services

  component.id = 18

Instances:


Did anybody try same scenarios before or anyone knows how to resolve this
issue?

Thanks,

-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/rmmpremaratne> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to extend carbon/service-Mgt/service_info.jsp and add a custom ui component

2014-12-02 Thread Madusanka Premaratne
Hi all,
I am currently engaged in the project [1] and to enable/disable API for DSS
service, I need to add a custom component to
carbon/service-Mgt/service_info.jsp in DSS without editing the original. Is
there a way to do this?
[1] - https://redmine.wso2.com/issues/3431

Thank you,

-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/rmmpremaratne> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] API Manager Features not working with DSS

2014-11-19 Thread Madusanka Premaratne
Hi All,
I installed API Manager core, publisher and store in DSS. When starting the
server, it deploys both apipublisher and apistore apps and I can access the
apipublisher login page. But when I try to login it gives me a null pointer
exception in /productapipublisher/modules/user/login.jag#18
The line which gives me an error in the jaggery file is result = provider.
login (username, password);
​It seems like I missed the provider and I am not aware of how to fix this
issue. Can someone suggest me a way to resolve this?

​Thanks and Regards,​
-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/rmmpremaratne> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sajini De Silva

2014-11-18 Thread Madusanka Premaratne
Congratulations Sajini.!!!

On Tue, Nov 18, 2014 at 2:45 PM, Milinda Perera  wrote:

> Congratulations Sajini ..
>
> On Tue, Nov 18, 2014 at 2:43 PM, Suhan Dharmasuriya 
> wrote:
>
>> Congrats Sajini!!!
>>
>> On Tue, Nov 18, 2014 at 2:41 PM, Damith Wickramasinghe 
>> wrote:
>>
>>> Congratzz... !!! :)
>>>
>>> On Tue, Nov 18, 2014 at 2:37 PM, Shashika Karunatilaka <
>>> shashi...@wso2.com> wrote:
>>>
>>>> Congrats Sajini
>>>>
>>>> On Tue, Nov 18, 2014 at 2:17 PM, Supun Malinga  wrote:
>>>>
>>>>> Congrats Sajini! :)
>>>>>
>>>>> On Tue, Nov 18, 2014 at 2:13 PM, Godwin Amila Shrimal >>>> > wrote:
>>>>>
>>>>>> Congratulations Sajini !!!
>>>>>>
>>>>>> On Tue, Nov 18, 2014 at 2:08 PM, Malintha Adikari 
>>>>>> wrote:
>>>>>>
>>>>>>> Congratulations Sajini !!!
>>>>>>>
>>>>>>> On Tue, Nov 18, 2014 at 8:13 AM, Ashan Dhananjaya 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> congratzz sajini. all da very best!! happy for u.
>>>>>>>>
>>>>>>>> On Tue, Nov 18, 2014 at 1:26 PM, Ramith Jayasinghe >>>>>>> > wrote:
>>>>>>>>
>>>>>>>>> Hi Sajini,
>>>>>>>>> Congratulations!
>>>>>>>>> It is with great pleasure that we welcome you as a WSO2 committer.
>>>>>>>>> Keep up the good work!
>>>>>>>>>
>>>>>>>>> thanks and best regards
>>>>>>>>>
>>>>>>>>> Ramith Jayasinghe
>>>>>>>>> Technical Lead
>>>>>>>>> WSO2 Inc., http://wso2.com
>>>>>>>>> lean.enterprise.middleware
>>>>>>>>>
>>>>>>>>> E: ram...@wso2.com
>>>>>>>>>
>>>>>>>>> ___
>>>>>>>>> Dev mailing list
>>>>>>>>> Dev@wso2.org
>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Ashan Dhananjaya Kumara
>>>>>>>> Trainee Software Engineer, WSO2 Inc.
>>>>>>>> Inc: *WSO2 Inc. *
>>>>>>>> Phone : +94715547461
>>>>>>>> Blog : http://ashandhananjaya.blogspot.com/
>>>>>>>> Twitter  : https://twitter.com/Dhananjaya92
>>>>>>>> Say ello :https://ello.co/ashandk
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> ___
>>>>>>>> Dev mailing list
>>>>>>>> Dev@wso2.org
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Malintha Adikari*
>>>>>>>  Software Engineer
>>>>>>> WSO2 Inc.; http://wso2.com
>>>>>>> lean.enterprise.middleware
>>>>>>>
>>>>>>> Mobile: +94 71 2312958
>>>>>>> Blog:http://malinthas.blogspot.com
>>>>>>> Page:   http://about.me/malintha
>>>>>>>
>>>>>>> ___
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Godwin Amila Shrimal*
>>>>>> Senior Software Engineer
>>>>>> WSO2 Inc.; http://wso2.com
>>>>>> lean.enterprise.middleware
>>>>>>
>>>>>> mobile: *+94772264165*
>>>>>> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
>>>>>&g

Re: [Dev] Class not found exception while deploying jax-rs in WSO2 App Server

2014-10-05 Thread Madusanka Premaratne
Hi Bhathiya,
As I mentioned there was a error in structure. I have pull the code from
git and edited using eclipse. When I open it using IDEA, I found the error.
Thanks,


On Mon, Oct 6, 2014 at 11:09 AM, Bhathiya Jayasekara 
wrote:

> Hi Madusanka,
>
> On Mon, Oct 6, 2014 at 9:59 AM, Madusanka Premaratne 
> wrote:
>
>> Hi all,
>> I got the following error while deploying my .war file in Application
>> Server.
>>
>> [2014-10-06 09:47:55,271] ERROR
>> {org.apache.catalina.core.ApplicationContext} -  StandardWrapper.Throwable
>>
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]:
>> Initialization of bean failed; nested exception is
>> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
>> class [org.wso2.projecttracker.services.ProjectServices] for bean with name
>> 'serviceBean' defined in URL
>> [jndi:/localhost/projecttracker/WEB-INF/cxf-servlet.xml]; nested exception
>> is java.lang.ClassNotFoundException:
>> org.wso2.projecttracker.services.ProjectServices
>>
>> Related cause:
>> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
>> class [org.wso2.projecttracker.services.ProjectServices] for bean with name
>> 'serviceBean' defined in URL
>> [jndi:/localhost/projecttracker/WEB-INF/cxf-servlet.xml]; nested exception
>> is java.lang.ClassNotFoundException:
>> org.wso2.projecttracker.services.ProjectServices
>>
>> Related cause:
>> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
>> class [org.wso2.projecttracker.services.ProjectServices] for bean with name
>> 'serviceBean' defined in URL
>> [jndi:/localhost/projecttracker/WEB-INF/cxf-servlet.xml]; nested exception
>> is java.lang.ClassNotFoundException:
>> org.wso2.projecttracker.services.ProjectServices
>>
>> Related cause:
>> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
>> class [org.wso2.projecttracker.services.ProjectServices] for bean with name
>> 'serviceBean' defined in URL
>> [jndi:/localhost/projecttracker/WEB-INF/cxf-servlet.xml]; nested exception
>> is java.lang.ClassNotFoundException:
>> org.wso2.projecttracker.services.ProjectServices
>>
>> Related cause:
>> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
>> class [org.wso2.projecttracker.services.ProjectServices] for bean with name
>> 'serviceBean' defined in URL
>> [jndi:/localhost/projecttracker/WEB-INF/cxf-servlet.xml]; nested exception
>> is java.lang.ClassNotFoundException:
>> org.wso2.projecttracker.services.ProjectServices
>>
>> Related cause:
>> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
>> class [org.wso2.projecttracker.services.ProjectServices] for bean with name
>> 'serviceBean' defined in URL
>> [jndi:/localhost/projecttracker/WEB-INF/cxf-servlet.xml]; nested exception
>> is java.lang.ClassNotFoundException:
>> org.wso2.projecttracker.services.ProjectServices
>>
>> Related cause:
>> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
>> class [org.wso2.projecttracker.services.ProjectServices] for bean with name
>> 'serviceBean' defined in URL
>> [jndi:/localhost/projecttracker/WEB-INF/cxf-servlet.xml]; nested exception
>> is java.lang.ClassNotFoundException:
>> org.wso2.projecttracker.services.ProjectServices
>>
>> at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:526)
>>
>> at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
>>
>> at
>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
>>
>> at
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>>
>> at
>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
>>
>> at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
>>
>> at
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
>>
>> at
>> org.springframework.context.support.AbstractApplicationContext

Re: [Dev] Class not found exception while deploying jax-rs in WSO2 App Server

2014-10-05 Thread Madusanka Premaratne
I resolved the issue. There was a problem in project structure.
Thanks,

On Mon, Oct 6, 2014 at 9:59 AM, Madusanka Premaratne 
wrote:

> Hi all,
> I got the following error while deploying my .war file in Application
> Server.
>
> [2014-10-06 09:47:55,271] ERROR
> {org.apache.catalina.core.ApplicationContext} -  StandardWrapper.Throwable
>
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]:
> Initialization of bean failed; nested exception is
> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
> class [org.wso2.projecttracker.services.ProjectServices] for bean with name
> 'serviceBean' defined in URL
> [jndi:/localhost/projecttracker/WEB-INF/cxf-servlet.xml]; nested exception
> is java.lang.ClassNotFoundException:
> org.wso2.projecttracker.services.ProjectServices
>
> Related cause:
> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
> class [org.wso2.projecttracker.services.ProjectServices] for bean with name
> 'serviceBean' defined in URL
> [jndi:/localhost/projecttracker/WEB-INF/cxf-servlet.xml]; nested exception
> is java.lang.ClassNotFoundException:
> org.wso2.projecttracker.services.ProjectServices
>
> Related cause:
> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
> class [org.wso2.projecttracker.services.ProjectServices] for bean with name
> 'serviceBean' defined in URL
> [jndi:/localhost/projecttracker/WEB-INF/cxf-servlet.xml]; nested exception
> is java.lang.ClassNotFoundException:
> org.wso2.projecttracker.services.ProjectServices
>
> Related cause:
> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
> class [org.wso2.projecttracker.services.ProjectServices] for bean with name
> 'serviceBean' defined in URL
> [jndi:/localhost/projecttracker/WEB-INF/cxf-servlet.xml]; nested exception
> is java.lang.ClassNotFoundException:
> org.wso2.projecttracker.services.ProjectServices
>
> Related cause:
> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
> class [org.wso2.projecttracker.services.ProjectServices] for bean with name
> 'serviceBean' defined in URL
> [jndi:/localhost/projecttracker/WEB-INF/cxf-servlet.xml]; nested exception
> is java.lang.ClassNotFoundException:
> org.wso2.projecttracker.services.ProjectServices
>
> Related cause:
> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
> class [org.wso2.projecttracker.services.ProjectServices] for bean with name
> 'serviceBean' defined in URL
> [jndi:/localhost/projecttracker/WEB-INF/cxf-servlet.xml]; nested exception
> is java.lang.ClassNotFoundException:
> org.wso2.projecttracker.services.ProjectServices
>
> Related cause:
> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
> class [org.wso2.projecttracker.services.ProjectServices] for bean with name
> 'serviceBean' defined in URL
> [jndi:/localhost/projecttracker/WEB-INF/cxf-servlet.xml]; nested exception
> is java.lang.ClassNotFoundException:
> org.wso2.projecttracker.services.ProjectServices
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:526)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
>
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
>
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
>
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
>
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
>
> at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
>
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
>
> at
> org.apache.cxf.transport.servlet.CXFServlet.createSpringContext(CXFServlet.java:160)
>
> at org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:74)
>
> at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:71)
>
> at
> org.apache.catalina.core.StandardWrapper.in

[Dev] Class not found exception while deploying jax-rs in WSO2 App Server

2014-10-05 Thread Madusanka Premaratne
g.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)

at
org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:280)

at
org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:177)

at
org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleWebappDeployment(TomcatGenericWebappsDeployer.java:222)

at
org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleWarWebappDeployment(TomcatGenericWebappsDeployer.java:174)

at
org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:141)

at
org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.deploy(TomcatGenericWebappsDeployer.java:116)

at
org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deployThisWebApp(AbstractWebappDeployer.java:140)

at
org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deploy(AbstractWebappDeployer.java:90)

at
org.wso2.carbon.webapp.deployer.WebappDeployer.deploy(WebappDeployer.java:42)

at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)

at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)

at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)

at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)

at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)

at
org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)

at
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)

at
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)

at
org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:79)

at
org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:124)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)

at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)

at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)

at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)

at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)

at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)

at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

at java.lang.Thread.run(Thread.java:695)


My cxf-servlet.xml looks like below and I am sure the expected class is
available.


 




​​What could be the reason for the above error?

​Thanks​,
-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] DSS and Jaggery App creation error

2014-09-30 Thread Madusanka Premaratne
Hi Amila,
Is it possible to delete these applications?

On Mon, Sep 29, 2014 at 5:30 PM, Madusanka Premaratne 
wrote:

> Hi all,
> I have created three apps on WSO2 app cloud and two of them gave me errors
> while creating. But when I log into the app cloud after 2,3 hours, it says
> the two apps which gave me errors are still in the creation process as in
> the screenshot[1] below.
>
> I tried with a different account and got the same problem while creating
> DSS and Jaggery apps.
>
> What could be the reason?
> Is it possible to delete these apps.?
>
> Thanks in advance.!!
>
> [1] - ​​
> https://drive.google.com/file/d/0B_GFPdT3tgXQTFlwRTRlUUdaVkk/edit?usp=sharing
>
> --
> *Madusanka Premaratne* | Associate Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 835 70 73| Work: +94 112 145 345
> Email: madusan...@wso2.com | Web: www.wso2.com
>
>


-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] DSS and Jaggery App creation error

2014-09-29 Thread Madusanka Premaratne
Hi all,
I have created three apps on WSO2 app cloud and two of them gave me errors
while creating. But when I log into the app cloud after 2,3 hours, it says
the two apps which gave me errors are still in the creation process as in
the screenshot[1] below.

I tried with a different account and got the same problem while creating
DSS and Jaggery apps.

What could be the reason?
Is it possible to delete these apps.?

Thanks in advance.!!

[1] - ​​
https://drive.google.com/file/d/0B_GFPdT3tgXQTFlwRTRlUUdaVkk/edit?usp=sharing

-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to write tests for dynamically changing contents?

2014-09-08 Thread Madusanka Premaratne
Hi all,
We are currently developing an ESB connector for Google+ and we need to
write some tests for Google+ comments list. But the comment list changes
dynamically when a user puts a comment. How can we do a unit test for this.?
According to my knowledge, I know that we can use mock concept. Is that the
way we need to proceed.?

Thank You,
Madusanka

-- 
*Madusanka Premaratne,*
Associate Software Engineer,
WSO2 Inc. | http://wso2.com | lean.enterprise.middleware
Mobile : +94 71 835 70 73
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev