[Dev] [WUM] wum diff copying file to the current relative path except for .wum-wso2 directory

2017-11-28 Thread Malith Munasinghe
Hi All,

While using WUM diff command to compare two updates it was noted that both
the Diff archive and Diff summary is getting created in the current working
directory.

IMO it would be better if we created those diff files in ~/.wum-wso2/ as
well since this will increase the user experience by limiting wum related
activities within the wum home directory.

WDYT ?

Regards,
Malith

-- 
Malith Munasinghe | Senior Software Engineer
M: +94 (71) 9401122
E: mali...@wso2.com
W: http://wso2.com
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Enterprise Integrator 6.0.0 RC2

2017-02-20 Thread Malith Munasinghe
Tested.

- Analytics for EI
- Web application deployment
- Sample deployment
- Startup scripts

[x] Stable - go ahead and release

On Mon, Feb 20, 2017 at 7:01 PM, Afkham Azeez  wrote:

>
> On Mon, Feb 20, 2017 at 6:57 PM, Malith Munasinghe 
> wrote:
>
>> [ ] Stable - go ahead and release
>
>
> [x ] Stable - go ahead and release
>
>
> --
> *Afkham Azeez*
> Senior Director, Platform Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>*
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <+94%2077%20332%200919>blog: *
> *http://blog.afkham.org* <http://blog.afkham.org>
> *twitter: **http://twitter.com/afkham_azeez*
> <http://twitter.com/afkham_azeez>
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> <http://lk.linkedin.com/in/afkhamazeez>*
>
> *Lean . Enterprise . Middleware*
>



-- 
Malith Munasinghe | Software Engineer
M: +94 (71) 9401122
E: mali...@wso2.com
W: http://wso2.com
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Enterprise Integrator 6.0.0 RC2

2017-02-20 Thread Malith Munasinghe
On Mon, Feb 20, 2017 at 6:53 PM, Madhawa Gunasekara 
wrote:

> Hi Devs, This is the second release candidate of WSO2 Enterprise
> Integrator 6.0.0.
>
> The vote will be open for 24 hours or as needed. Please download, test the
> product and vote. ​​This release fixes the following issues:
> https://github.com/wso2/product-ei/issues?utf8=%E2%9C%93&q=i
> s%3Aissue%20is%3Aclosed%20 ​​*Source & binary distribution files*: ​
> https://svn.wso2.org/repos/wso2/scratch/EI-6.0.0/
> <https://github.com/wso2/product-ei/releases/tag/v6.0.0-rc2>
>
>
>
Please find the corrected url for the binary distribution
https://svn.wso2.org/repos/wso2/scratch/EI-6.0.0/


> *Maven staging repo:*
> https://maven.wso2.org/nexus/content/repositories/orgwso2ei-1002 *​​The
> tag to be voted upon*:
> https://github.com/wso2/product-ei/releases/tag/v6.0.0-rc2
>
>
> <https://github.com/wso2/product-ei/releases/tag/v6.0.0-rc2>
>
> *Documentation*: https://docs.wso2.com/display/
> EI600/WSO2+Enterprise+Integrator+Documentation [ ] Broken - do not
> release (explain why) [ ] Stable - go ahead and release Thanks, Integration
> Team
>
>
>
> --
> *Madhawa Gunasekara*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 719411002 <+94+719411002>
> blog: *http://madhawa-gunasekara.blogspot.com
> <http://madhawa-gunasekara.blogspot.com>*
> linkedin: *http://lk.linkedin.com/in/mgunasekara
> <http://lk.linkedin.com/in/mgunasekara>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (71) 9401122
E: mali...@wso2.com
W: http://wso2.com
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] carbon-mediation 4.6.12 released

2017-02-09 Thread Malith Munasinghe
Hi All,

Carbon-mediation 4.6.12 released.

org.wso2.carbon.mediation
carbon-mediation
4.6.12

Regards,
Malith
-- 
Malith Munasinghe | Software Engineer
M: +94 (71) 9401122
E: mali...@wso2.com
W: http://wso2.com
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] wso2-synapse-2.1.7-wso2v11 Released

2017-02-09 Thread Malith Munasinghe
Hi All,

Synapse version 2.1.7-wso2v11 Released

org.apache.synapse
Apache-Synapse
2.1.7-wso2v10

Regards,
Malith

-- 
Malith Munasinghe | Software Engineer
M: +94 (71) 9401122 <+94%2071%20940%201122>
E: mali...@wso2.com
W: http://wso2.com
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Enterprise Integrator 6.0.0 Milestone 2 Released !

2017-01-31 Thread Malith Munasinghe
Hi Kasun,

On Wed, Feb 1, 2017 at 1:39 AM, KasunG Gajasinghe  wrote:

> Hi Malith,
>
> Have we prepared the vision docs for EI? Since this is a new product
> created by merging multiple products together, I'd like to know how we are
> positioning this.
>

>
> Also, please provide the link to the documentation.
>

The documentation for the product EI will be available EOD today.


>
> Thanks,
> KasunG
>
>
> On Tue, Jan 31, 2017 at 10:34 PM, Malith Munasinghe 
> wrote:
>
>> Hi All,
>>
>> The WSO2 Integration team is pleased to announce the 2nd Milestone
>> release of WSO2 Enterprise Integrator (EI)  6.0.0.
>>
>> Source & binary distribution files of WSO2 Enterprise Integrator 6.0.0
>>
>> Distribution :  https://github.com/wso2/produ
>> ct-ei/releases/tag/v6.0.0-m2
>> Known Issues : https://github.com/wso2/product-ei/issues
>>
>> Thanks
>> ~Integration Team~
>> --
>> Malith Munasinghe | Software Engineer
>> M: +94 (71) 9401122 <+94%2071%20940%201122>
>> E: mali...@wso2.com
>> W: http://wso2.com
>> <http://wso2.com/signature>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
> phone: +1 650-745-4499 <(650)%20745-4499>, 77 678 0813
>
>



-- 
Malith Munasinghe | Software Engineer
M: +94 (71) 9401122
E: mali...@wso2.com
W: http://wso2.com
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Enterprise Integrator 6.0.0 Milestone 2 Released !

2017-01-31 Thread Malith Munasinghe
Hi All,

The WSO2 Integration team is pleased to announce the 2nd Milestone release
of WSO2 Enterprise Integrator (EI)  6.0.0.

Source & binary distribution files of WSO2 Enterprise Integrator 6.0.0

Distribution :
https://github.com/wso2/product-ei/releases/tag/v6.0.0-m2
Known Issues : https://github.com/wso2/product-ei/issues

Thanks
~Integration Team~
-- 
Malith Munasinghe | Software Engineer
M: +94 (71) 9401122 <+94%2071%20940%201122>
E: mali...@wso2.com
W: http://wso2.com
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge

2017-01-19 Thread Malith Munasinghe
Fixed.

On Thu, Jan 19, 2017 at 5:39 PM, Kishanthan Thangarajah  wrote:

> There is a formatting issue in the PR, please fix it.
>
> On Thu, Jan 19, 2017 at 2:22 PM, Malith Munasinghe 
> wrote:
>
>> Hi All,
>>
>> Please review and merge [1]. This is used to fix [2].
>>
>> [1] https://github.com/wso2/carbon-deployment/pull/247
>> [2] https://github.com/wso2/carbon-deployment/issues/248
>>
>> Regards,
>> Malith
>>
>> --
>> Malith Munasinghe | Software Engineer
>> M: +94 (71) 9401122 <+94%2071%20940%201122>
>> E: mali...@wso2.com
>> W: http://wso2.com
>> <http://wso2.com/signature>
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635 <+94%2077%20342%206635>
> Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>*
> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>



-- 
Malith Munasinghe | Software Engineer
M: +94 (71) 9401122
E: mali...@wso2.com
W: http://wso2.com
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge

2017-01-19 Thread Malith Munasinghe
Hi All,

Please review and merge [1]. This is used to fix [2].

[1] https://github.com/wso2/carbon-deployment/pull/247
[2] https://github.com/wso2/carbon-deployment/issues/248

Regards,
Malith

-- 
Malith Munasinghe | Software Engineer
M: +94 (71) 9401122
E: mali...@wso2.com
W: http://wso2.com
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS][310] Errors while running APIM_INCREMENTAL_PROCESSING_SCRIPT

2016-09-21 Thread Malith Munasinghe
Thank you Supun for that information.

Regards,
Malith

On Thu, Sep 22, 2016 at 11:41 AM, Supun Sethunga  wrote:

> BTW, This issue has already been fixed in the analytics-apim master branch.
>
> Regards,
> Supun
>
> On Wed, Sep 21, 2016 at 3:04 PM, Malith Munasinghe 
> wrote:
>
>> Hi All,
>>
>> Thanks for the prompt responses we will do the needful.
>>
>> Regards,
>> Malith
>>
>> On Wed, Sep 21, 2016 at 2:54 PM, Rukshan Premathunga 
>> wrote:
>>
>>> Hi Malith,
>>>
>>> cApp we provided to Analytics APIM will not work for the DAS because of
>>> the changes happen to the DAS 3.1.0. Because of that we need to use
>>> Analytics APIM or have to update capp with the above changes.
>>>
>>> Thanks and Regards.
>>>
>>> On Wed, Sep 21, 2016 at 2:48 PM, Niranda Perera 
>>> wrote:
>>>
>>>> Hi Malith,
>>>>
>>>> Yes, correct! you need to change the script.
>>>>
>>>> Additionally, there are some changes in the carbonJdbc connector as
>>>> well... so, you might need to watch out for it!
>>>>
>>>> Please check with the APIM team and ESB team whether we are doing a
>>>> feature release with the DAS 310 changes?
>>>>
>>>> cheers
>>>>
>>>> On Wed, Sep 21, 2016 at 5:11 AM, Malith Munasinghe 
>>>> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> While preparing a DAS 3.1.0 to run APIM Analytics I have added
>>>>> features as in [1]
>>>>> <https://docs.wso2.com/display/AM200/Installing+WSO2+APIM+Analytics+Features>.
>>>>> After deploying the CApp for APIM Analytics I run in to below error.
>>>>> According to the error that *incrementalProcessing *is not a valid
>>>>> option. Also according to [2]
>>>>> <https://docs.wso2.com/display/DAS310/Incremental+Processing> the
>>>>> syntax to parse this option is *incrementalParams. *In order to get
>>>>> DAS 3.1.0 to process APIM Analytics
>>>>> do we have to change the scripts with this option as well ?
>>>>>
>>>>>
>>>>> TID: [-1234] [] [2016-09-21 08:54:00,019] ERROR
>>>>> {org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService}
>>>>> -  Error while executing query : CREATE TEMPORARY TABLE
>>>>> APIMGT_PERMINUTE_REQUEST_DATA USING CarbonAnalytics OPTIONS(tableName
>>>>> "ORG_WSO2_APIMGT_STATISTICS_PERMINUTEREQUEST", schema "year INT
>>>>> -i, month INT -i, day INT -i, hour INT -i, minute INT -i,consumerKey
>>>>> STRING, context STRING, api_version STRING, api STRING, version STRING,
>>>>> requestTime LONG, userId STRING, hostName STRING,apiPublisher STRING,
>>>>> total_request_count LONG, resourceTemplate STRING, method STRING,
>>>>> applicationName STRING, tenantDomain STRING,userAgent STRING,
>>>>> resourcePath STRING, request INT, applicationId STRING, tier STRING,
>>>>> throttledOut BOOLEAN, clientIp STRING,applicationOwner STRING,
>>>>> _timestamp LONG -i",primaryKeys "year, month, day, hour, minute,
>>>>> consumerKey, context, api_version, userId, hostName, apiPublisher,
>>>>> resourceTemplate, method, userAgent, clientIp",incrementalProcessing
>>>>> "APIMGT_PERMINUTE_REQUEST_DATA, HOUR",mergeSchema "false")
>>>>> {org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService}
>>>>> org.wso2.carbon.analytics.spark.core.exception.AnalyticsExecutionException:
>>>>> Exception in executing query CREATE TEMPORARY TABLE
>>>>> APIMGT_PERMINUTE_REQUEST_DATA USING CarbonAnalytics OPTIONS(tableName
>>>>> "ORG_WSO2_APIMGT_STATISTICS_PERMINUTEREQUEST", schema "year INT
>>>>> -i, month INT -i, day INT -i, hour INT -i, minute INT -i,consumerKey
>>>>> STRING, context STRING, api_version STRING, api STRING, version STRING,
>>>>> requestTime LONG, userId STRING, hostName STRING,apiPublisher STRING,
>>>>> total_request_count LONG, resourceTemplate STRING, method STRING,
>>>>> applicationName STRING, tenantDomain STRING,userAgent STRING,
>>>>> resourcePath STRING, request INT, applicationId STRING, tier STRING,
>>>>> throttledOut BOOLEAN, clientIp STRING,applicationO

Re: [Dev] [DAS][310] Errors while running APIM_INCREMENTAL_PROCESSING_SCRIPT

2016-09-21 Thread Malith Munasinghe
Hi All,

Thanks for the prompt responses we will do the needful.

Regards,
Malith

On Wed, Sep 21, 2016 at 2:54 PM, Rukshan Premathunga 
wrote:

> Hi Malith,
>
> cApp we provided to Analytics APIM will not work for the DAS because of
> the changes happen to the DAS 3.1.0. Because of that we need to use
> Analytics APIM or have to update capp with the above changes.
>
> Thanks and Regards.
>
> On Wed, Sep 21, 2016 at 2:48 PM, Niranda Perera  wrote:
>
>> Hi Malith,
>>
>> Yes, correct! you need to change the script.
>>
>> Additionally, there are some changes in the carbonJdbc connector as
>> well... so, you might need to watch out for it!
>>
>> Please check with the APIM team and ESB team whether we are doing a
>> feature release with the DAS 310 changes?
>>
>> cheers
>>
>> On Wed, Sep 21, 2016 at 5:11 AM, Malith Munasinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> While preparing a DAS 3.1.0 to run APIM Analytics I have added features
>>> as in [1]
>>> <https://docs.wso2.com/display/AM200/Installing+WSO2+APIM+Analytics+Features>.
>>> After deploying the CApp for APIM Analytics I run in to below error.
>>> According to the error that *incrementalProcessing *is not a valid
>>> option. Also according to [2]
>>> <https://docs.wso2.com/display/DAS310/Incremental+Processing> the
>>> syntax to parse this option is *incrementalParams. *In order to get DAS
>>> 3.1.0 to process APIM Analytics
>>> do we have to change the scripts with this option as well ?
>>>
>>>
>>> TID: [-1234] [] [2016-09-21 08:54:00,019] ERROR
>>> {org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService}
>>> -  Error while executing query : CREATE TEMPORARY TABLE
>>> APIMGT_PERMINUTE_REQUEST_DATA USING CarbonAnalytics OPTIONS(tableName
>>> "ORG_WSO2_APIMGT_STATISTICS_PERMINUTEREQUEST", schema "year INT -i,
>>> month INT -i, day INT -i, hour INT -i, minute INT -i,consumerKey
>>> STRING, context STRING, api_version STRING, api STRING, version STRING,
>>> requestTime LONG, userId STRING, hostName STRING,apiPublisher STRING,
>>> total_request_count LONG, resourceTemplate STRING, method STRING,
>>> applicationName STRING, tenantDomain STRING,userAgent STRING,
>>> resourcePath STRING, request INT, applicationId STRING, tier STRING,
>>> throttledOut BOOLEAN, clientIp STRING,applicationOwner STRING,
>>> _timestamp LONG -i",primaryKeys "year, month, day, hour, minute,
>>> consumerKey, context, api_version, userId, hostName, apiPublisher,
>>> resourceTemplate, method, userAgent, clientIp",incrementalProcessing
>>> "APIMGT_PERMINUTE_REQUEST_DATA, HOUR",mergeSchema "false")
>>> {org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService}
>>> org.wso2.carbon.analytics.spark.core.exception.AnalyticsExecutionException:
>>> Exception in executing query CREATE TEMPORARY TABLE
>>> APIMGT_PERMINUTE_REQUEST_DATA USING CarbonAnalytics OPTIONS(tableName
>>> "ORG_WSO2_APIMGT_STATISTICS_PERMINUTEREQUEST", schema "year INT -i,
>>> month INT -i, day INT -i, hour INT -i, minute INT -i,consumerKey
>>> STRING, context STRING, api_version STRING, api STRING, version STRING,
>>> requestTime LONG, userId STRING, hostName STRING,apiPublisher STRING,
>>> total_request_count LONG, resourceTemplate STRING, method STRING,
>>> applicationName STRING, tenantDomain STRING,userAgent STRING,
>>> resourcePath STRING, request INT, applicationId STRING, tier STRING,
>>> throttledOut BOOLEAN, clientIp STRING,applicationOwner STRING,
>>> _timestamp LONG -i",primaryKeys "year, month, day, hour, minute,
>>> consumerKey, context, api_version, userId, hostName, apiPublisher,
>>> resourceTemplate, method, userAgent, clientIp",incrementalProcessing
>>> "APIMGT_PERMINUTE_REQUEST_DATA, HOUR",mergeSchema "false")
>>> at org.wso2.carbon.analytics.spark.core.internal.SparkAnalytics
>>> Executor.executeQueryLocal(SparkAnalyticsExecutor.java:764)
>>> at org.wso2.carbon.analytics.spark.core.internal.SparkAnalytics
>>> Executor.executeQuery(SparkAnalyticsExecutor.java:721)
>>> at org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcesso
>>> rService.executeQuery(CarbonAnalyticsProcessorService.java:201)
>>> at org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcesso
>>> rService.executeScript(CarbonAnalyticsPr

[Dev] [DAS][310] Errors while running APIM_INCREMENTAL_PROCESSING_SCRIPT

2016-09-21 Thread Malith Munasinghe
at
org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQueryLocal(SparkAnalyticsExecutor.java:760)
... 11 more


[1]
https://docs.wso2.com/display/AM200/Installing+WSO2+APIM+Analytics+Features
[2] https://docs.wso2.com/display/DAS310/Incremental+Processing

Regards,
Malith
-- 
Malith Munasinghe | Software Engineer
M: +94 (71) 9401122
E: mali...@wso2.com
W: http://wso2.com
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Query about the SSO in the WSO

2016-09-18 Thread Malith Munasinghe
Hi Wenxing,

In order to provide SSO based authentication for your applications. You can
use SAMLSSOValve in WSO2 AS to integrate with WSO2 IS as in the
documentation provided in [1]

[1] https://docs.wso2.com/display/AS530/Using+SSO+with+Web+Applications

Regards,
Malith

On Mon, Sep 19, 2016 at 7:13 AM, wenxzhen  wrote:

> Appreciated if anyone can shed some light on my question.
>
> Thanks,
> Wenxing
>
>
> -- Original --
> *From: * "wenxzhen";;
> *Date: * Sep 18, 2016
> *To: * "dev";
> *Subject: * [Dev] Query about the SSO in the WSO
>
> Dear gurus,
>
> Would like to know more details on the Single Sign On implemented in the
> WSO2? How it's being implemented?
>
> And if I wanna use this feature with the example architecture diagram
> below, what I have to do?
>
>
> Thanks for the advice
> Regards, Wenxing
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (71) 9401122
E: mali...@wso2.com
W: http://wso2.com
<http://wso2.com/signature>


BB8720D7@0EECF03F.DB42DF57
Description: Binary data
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [WSO2-Puppet] APIM Analytics configurations not parameterized in puppet templates

2016-09-15 Thread Malith Munasinghe
Hi Pubudu,

I sent a PR [1] based on the modifications I've done for the APIM 2.0.0
configurations.

[1] https://github.com/wso2/puppet-modules/pull/89

Regards,
Malith

On Thu, Sep 15, 2016 at 10:32 AM, Pubudu Gunatilaka 
wrote:

> Hi Malith,
>
> Actually, we didn't consider any integration scenarios when creating
> puppet modules. Will add the analytics configurations for the latest API
> Manager puppet module as this is useful.
>
> Thank you!
>
> On Thu, Sep 15, 2016 at 9:59 AM, Malith Munasinghe 
> wrote:
>
>> Hi All,
>>
>> While using WSO2 Puppet modules for APIM 2.0.0 I have noticed that API
>> Manager Analytics configurations is not included in puppet
>> api-manager.xml.erb. Is there a specific reason to not include these as
>> parameterized values since it is better if we can maintain DAS receiver
>> related information via hiera as well.
>>
>> Regards,
>> Malith
>>
>> --
>> Malith Munasinghe | Software Engineer
>> M: +94 (71) 9401122
>> E: mali...@wso2.com
>> W: http://wso2.com
>> <http://wso2.com/signature>
>>
>
>
>
> --
> *Pubudu Gunatilaka*
> Committer and PMC Member - Apache Stratos
> Software Engineer
> WSO2, Inc.: http://wso2.com
> mobile : +94774078049 <%2B94772207163>
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (71) 9401122
E: mali...@wso2.com
W: http://wso2.com
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [WSO2-Puppet] APIM Analytics configurations not parameterized in puppet templates

2016-09-14 Thread Malith Munasinghe
Hi All,

While using WSO2 Puppet modules for APIM 2.0.0 I have noticed that API
Manager Analytics configurations is not included in puppet
api-manager.xml.erb. Is there a specific reason to not include these as
parameterized values since it is better if we can maintain DAS receiver
related information via hiera as well.

Regards,
Malith

-- 
Malith Munasinghe | Software Engineer
M: +94 (71) 9401122
E: mali...@wso2.com
W: http://wso2.com
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][BPS][320] Undeploying BPEL packages for tenants

2016-08-03 Thread Malith Munasinghe
Hi All,

Thank you for the directions I will look in to this approach and get back
with my findings.

Regards,
Malith

On Wed, Aug 3, 2016 at 4:43 PM, Amal Gunatilake  wrote:

> Hi Hasitha,
>
> In the readme configurations[1][2] we have given the configurations that
> support for tenant context.
> Since there have been many updates over the time. I can't remember the
> exact results on tests done with tenants.
>
> [1] #tenat context eg: tenant mode 
> tenant.context=https://localhost:9443/t/abc.com
>
> [2]
> https://github.com/wso2/product-bps/blob/master/modules/samples/product/process-tools/readme
>
> Best regards,
> Amal
>
> On Wed, Aug 3, 2016 at 4:27 PM, Hasitha Aravinda  wrote:
>
>> Hi Amal,
>>
>> Have we tested this for a Unloaded tenant. ? I think we will face same
>> issue because tenant space is not loaded at the time we try to remove
>> artifacts from registry.
>>
>> Thanks,
>> Hasitha.
>>
>>
>> On Wed, Aug 3, 2016 at 4:06 PM, Amal Gunatilake  wrote:
>>
>>> Hi Malith,
>>>
>>> There is an inbuilt tool packaged with BPS for process instance cleanup.
>>> The same tool can be used to clean packages as well.
>>> While the server is running you can run the cleanup script
>>> \bin\processcleanuptool.sh side by side.
>>> You will have to do the configurations specific to tenant which is
>>> similar to example[2].
>>> Once you run the tool, it will list down all the packages according to
>>> given filter configurations. Then you can select what packages to delete.
>>>
>>> [1]
>>> https://github.com/wso2/product-bps/tree/master/modules/samples/product/process-tools
>>> [2]
>>> https://github.com/wso2/product-bps/blob/master/modules/samples/product/process-tools/src/main/resources/process-cleanup.properties
>>>
>>> Best regards,
>>> Amal.
>>>
>>>
>>> On Wed, Aug 3, 2016 at 3:40 PM, Nandika Jayawardana 
>>> wrote:
>>>
>>>> Hi Malith,
>>>>
>>>> Can you have a look into the process instance cleanup tool. It has the
>>>> capability to delete bpel packages as well.
>>>>
>>>> Regards
>>>> Nandika
>>>>
>>>> On Wed, Aug 3, 2016 at 3:28 PM, Malith Munasinghe 
>>>> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> While writing a Package undeployer tool for BPES 3.2.0 for several
>>>>> tenants I did the following to undeploy a BPEL package. While starting the
>>>>> tenant flow with super tenant I was able to successfully undeploy the
>>>>> releveant package. Starting the tenant flow with a tenant I get the below
>>>>> warning with the undeployed result as SUCCESS.
>>>>>
>>>>> WARN
>>>>> {org.wso2.carbon.bpel.core.ode.integration.store.TenantProcessStoreImpl} -
>>>>>  Cannot find BPEL package with name
>>>>> ApplicationRegistrationWorkflowProcess_1.0.0 in the repository. If the 
>>>>> bpel
>>>>> package is un-deployed through the management console or if this node is a
>>>>> member of a cluster, please ignore this warning.
>>>>>
>>>>> When I check the artifact though carbon console I still find the
>>>>> Package and the undeployment is not successful.
>>>>>
>>>>> While debugging I found even though the tenant flow is started the
>>>>> tenantProcessStore returns a null because the tenant specific process 
>>>>> store
>>>>> is not set. So is there a specific method that I should call to load this
>>>>> process store before undeploying the package for the specific user.
>>>>>
>>>>> Attached below is the code snippet used to undeploy the package.
>>>>>
>>>>> try {
>>>>> PrivilegedCarbonContext.startTenantFlow();
>>>>> PrivilegedCarbonContext privilegedCarbonContext =
>>>>> PrivilegedCarbonContext.getThreadLocalCarbonContext();
>>>>> privilegedCarbonContext.setTenantId(1);
>>>>> privilegedCarbonContext.setTenantDomain("abc.com");
>>>>> packageManagementServiceSkeleton = new
>>>>> BPELPackageManagementServiceSkeleton();
>>>>>
>>>>> packageManagementServiceSkeleton.undeployBPELPackage("ApplicationRegistrationWorkflowProcess_1.0.0");
>>>>> } finally {
>>>>>

[Dev] [DEV][BPS][320] Undeploying BPEL packages for tenants

2016-08-03 Thread Malith Munasinghe
Hi All,

While writing a Package undeployer tool for BPES 3.2.0 for several tenants
I did the following to undeploy a BPEL package. While starting the tenant
flow with super tenant I was able to successfully undeploy the releveant
package. Starting the tenant flow with a tenant I get the below warning
with the undeployed result as SUCCESS.

WARN
{org.wso2.carbon.bpel.core.ode.integration.store.TenantProcessStoreImpl} -
 Cannot find BPEL package with name
ApplicationRegistrationWorkflowProcess_1.0.0 in the repository. If the bpel
package is un-deployed through the management console or if this node is a
member of a cluster, please ignore this warning.

When I check the artifact though carbon console I still find the Package
and the undeployment is not successful.

While debugging I found even though the tenant flow is started the
tenantProcessStore returns a null because the tenant specific process store
is not set. So is there a specific method that I should call to load this
process store before undeploying the package for the specific user.

Attached below is the code snippet used to undeploy the package.

try {
PrivilegedCarbonContext.startTenantFlow();
PrivilegedCarbonContext privilegedCarbonContext =
PrivilegedCarbonContext.getThreadLocalCarbonContext();
privilegedCarbonContext.setTenantId(1);
privilegedCarbonContext.setTenantDomain("abc.com");
packageManagementServiceSkeleton = new
BPELPackageManagementServiceSkeleton();

packageManagementServiceSkeleton.undeployBPELPackage("ApplicationRegistrationWorkflowProcess_1.0.0");
} finally {
PrivilegedCarbonContext.endTenantFlow();
}


Regards,
Malith


-- 
Malith Munasinghe | Software Engineer
M: +94 (71) 9401122
E: mali...@wso2.com
W: http://wso2.com
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] FILE UPLOAD FROM ESB

2016-07-07 Thread Malith Munasinghe
Hi John,

You can try using VFS Transport [1] to achieve your requirement.

[1] https://docs.wso2.com/display/ESB490/VFS+Transport

Regards,
Malith

On Tue, Jul 5, 2016 at 8:12 PM, John Q  wrote:

> Hello folks,
> can any body tell me hot to upload a file from a sequence in the ESB? I
> mean, there's an HTTP endpoint waiting for a multipart/form-data request
> coming with a file, just the same way we do from an HTTP form, but I need
> to do it from the ESB.
>
> thanks in advance.
> John
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (71) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] [1.9.1] Tenant specific handler

2015-12-25 Thread Malith Munasinghe
Hi Sanjeewa,

Thank you for your help. I managed to get it done using apiContext to check
whether it contains the tenant domain.

Regards,
Malith
On Dec 23, 2015 10:55, "Sanjeewa Malalgoda"  wrote:

> If need you can write logic to check user name and fetch tenant domain
> from that.
> Then you may add if check to check tenant name before adding your handler.
> There are samples available and you may try that.
> But we normally do not recommend to do this kind of modifications unless
> its special tenant(some thing like organization tenant).
>
> Thanks,
> sanjeewa.
>
> On Wed, Dec 23, 2015 at 10:37 AM, Malith Munasinghe 
> wrote:
>
>> Removing [support-dev]
>>
>> On Wed, Dec 23, 2015 at 10:32 AM, Malith Munasinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> I am writing a custom handler. This handler needs to be added only to a
>>> specific tenant only. When I add it to the velocity_template.xml it gets
>>> applied to all the tenants.
>>>
>>> Is there a way to achieve this through velocity_template.xml itself ?
>>>
>>> Regards,
>>> Malith
>>>
>>> --
>>> Malith Munasinghe | Software Engineer
>>> M: +94 (71) 9401122
>>> E: mali...@wso2.com
>>> W: http://wso2.com
>>>
>>
>>
>>
>> --
>> Malith Munasinghe | Software Engineer
>> M: +94 (71) 9401122
>> E: mali...@wso2.com
>> W: http://wso2.com
>>
>
>
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
> <http://sanjeewamalalgoda.blogspot.com/>blog
> :http://sanjeewamalalgoda.blogspot.com/
> <http://sanjeewamalalgoda.blogspot.com/>
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] [1.9.1] Tenant specific handler

2015-12-22 Thread Malith Munasinghe
Removing [support-dev]

On Wed, Dec 23, 2015 at 10:32 AM, Malith Munasinghe 
wrote:

> Hi All,
>
> I am writing a custom handler. This handler needs to be added only to a
> specific tenant only. When I add it to the velocity_template.xml it gets
> applied to all the tenants.
>
> Is there a way to achieve this through velocity_template.xml itself ?
>
> Regards,
> Malith
>
> --
> Malith Munasinghe | Software Engineer
> M: +94 (71) 9401122
> E: mali...@wso2.com
> W: http://wso2.com
>



-- 
Malith Munasinghe | Software Engineer
M: +94 (71) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] [1.9.1] Tenant specific handler

2015-12-22 Thread Malith Munasinghe
Hi All,

I am writing a custom handler. This handler needs to be added only to a
specific tenant only. When I add it to the velocity_template.xml it gets
applied to all the tenants.

Is there a way to achieve this through velocity_template.xml itself ?

Regards,
Malith

-- 
Malith Munasinghe | Software Engineer
M: +94 (71) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Apim] Reason for endpoint suspension

2015-10-12 Thread Malith Munasinghe
Hi Harsha,

Thanks for the information and resources shared. I managed to figure out
that this is occurred due to a connection failure between gateway and the
endpoint.

Regards,
Malith.

On Mon, Oct 12, 2015 at 11:20 PM, Harsha Kumara  wrote:

> Hi Malith,
>
> AFAIK endpoint suspension occurs when there is a fault occur upon a
> endpoint. Request sent to endpoint may result in a fault either endpoint
> down, timeout and etc. Resources in [1] should be helpful.
> Using advanced configs which Tharindu mentioned above will be useful to
> handle it.
>
> [1] - https://docs.wso2.com/display/ESB470/Endpoint+Error+Handling
>
> Thanks,
> Harsha
>
> On Mon, Oct 12, 2015 at 9:57 PM, Malith Munasinghe 
> wrote:
>
>> Hi Tharindu,
>>
>> Actually this is an api we are using to test the availability of api
>> gateway. Disabling the suspension will not be helpful in this scenario. Is
>> there any idea on which occurrences an endpoint suspension can occur ?
>>
>> Regards,
>> Malith
>>
>> On Mon, Oct 12, 2015 at 5:00 PM, Tharindu Dharmarathna <
>> tharin...@wso2.com> wrote:
>>
>>> Hi Malith,
>>>
>>> Can you check the API definition of that under synapse configuration you
>>> can set it to never suspended by advanced configuration in Implement section
>>>
>>> Thanks
>>> Tharindu
>>> ​
>>>
>>>
>>> On Mon, Oct 12, 2015 at 3:56 PM, Malith Munasinghe 
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> Recently we faced an endpoint suspension from api gateway. Can I know
>>>> the possible reasons to get an endpoint suspended. Went through the gateway
>>>> logs but it doesn't provide much information of the possible cause apart
>>>> from saying the endpoint failed.
>>>>
>>>> Regards,
>>>> Malith
>>>>
>>>> --
>>>> Malith Munasinghe | Software Engineer
>>>> M: +94 (071) 9401122
>>>> E: mali...@wso2.com
>>>> W: http://wso2.com
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> *Tharindu Dharmarathna*Associate Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94779109091 <%2B94779109091>*
>>>
>>
>>
>>
>> --
>> Malith Munasinghe | Software Engineer
>> M: +94 (071) 9401122
>> E: mali...@wso2.com
>> W: http://wso2.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
>



-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Apim] Reason for endpoint suspension

2015-10-12 Thread Malith Munasinghe
Hi Tharindu,

Actually this is an api we are using to test the availability of api
gateway. Disabling the suspension will not be helpful in this scenario. Is
there any idea on which occurrences an endpoint suspension can occur ?

Regards,
Malith

On Mon, Oct 12, 2015 at 5:00 PM, Tharindu Dharmarathna 
wrote:

> Hi Malith,
>
> Can you check the API definition of that under synapse configuration you
> can set it to never suspended by advanced configuration in Implement section
>
> Thanks
> Tharindu
> ​
>
>
> On Mon, Oct 12, 2015 at 3:56 PM, Malith Munasinghe 
> wrote:
>
>> Hi All,
>>
>> Recently we faced an endpoint suspension from api gateway. Can I know the
>> possible reasons to get an endpoint suspended. Went through the gateway
>> logs but it doesn't provide much information of the possible cause apart
>> from saying the endpoint failed.
>>
>> Regards,
>> Malith
>>
>> --
>> Malith Munasinghe | Software Engineer
>> M: +94 (071) 9401122
>> E: mali...@wso2.com
>> W: http://wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Tharindu Dharmarathna*Associate Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94779109091 <%2B94779109091>*
>



-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Apim] Reason for endpoint suspension

2015-10-12 Thread Malith Munasinghe
Hi All,

Recently we faced an endpoint suspension from api gateway. Can I know the
possible reasons to get an endpoint suspended. Went through the gateway
logs but it doesn't provide much information of the possible cause apart
from saying the endpoint failed.

Regards,
Malith

-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com


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


Re: [Dev] [Registry] Registry java.sql.SQLException: Lock wait timeout exceeded

2015-10-03 Thread Malith Munasinghe
Hi Isuruwan,

Thanks for the suggestion I will look at mysql logs for this.

Regards,
Malith

On Sat, Oct 3, 2015 at 7:29 PM, Isuruwan Herath  wrote:

> Hi Malith,
>
> From the log it seems some thread is holding a table lock, which prevents
> to acquire the lock when the executing the update command to the resource
> content id. Check the process list from mysql and identify the thread which
> is holding the lock. If that is a legitimate concurrent operation in app
> cloud which is taking a long time to execute, then try increasing the
> innodb lock wait time out.
>
> HTH,
> Isuruwan
>
> On Thu, Oct 1, 2015 at 11:17 AM, Malith Munasinghe 
> wrote:
>
>> Hi All,
>>
>> Recently on app cloud we faced an locked timeout exceeded issue on
>> registry. This kept application creation down for a while. Is there any
>> suggestions on how to keep these kind of issues from occurring.
>>
>> Attached is the error log that was observed.
>>
>> Regards,
>> Malith.
>>
>> --
>> Malith Munasinghe | Software Engineer
>> M: +94 (071) 9401122
>> E: mali...@wso2.com
>> W: http://wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Isuruwan Herath
> Technical Lead
>
> Contact: +94 776 273 296
>



-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Registry] Registry java.sql.SQLException: Lock wait timeout exceeded

2015-09-30 Thread Malith Munasinghe
Hi All,

Recently on app cloud we faced an locked timeout exceeded issue on
registry. This kept application creation down for a while. Is there any
suggestions on how to keep these kind of issues from occurring.

Attached is the error log that was observed.

Regards,
Malith.

-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com


TID: [0] [AF] [2015-09-30 18:54:48,271] ERROR {org
Description: Binary data
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Passing a JSP variable to pagination function of carbon:resourcePaginator

2015-07-06 Thread Malith Munasinghe
Hi Rajith,

Try assigning the value to a String beforehand
<%String paginationAction = "submitForm({0},"+order+")";%>

Then parse it to the paginationFunction

paginationFunction="<%=paginationAction%>"


Regards,

Malith


On Mon, Jul 6, 2015 at 6:37 PM, Rajith Roshan  wrote:

> Hi Vinod,
>
> I tried it without ' '. But then, it wont invokes the JavaScript function.
>
> Thanks.
>
> On Mon, Jul 6, 2015 at 6:32 PM, Vinod Kavinda  wrote:
>
>> Hi Rajith,
>>
>> Have you tried,
>> paginationFunction="submitForm({0},<%=order%>)".
>> ' ' may force to have a string.
>>
>> Thanks,
>> Vinod.
>>
>> On Mon, Jul 6, 2015 at 6:19 PM, Rajith Roshan  wrote:
>>
>>> Hi Devs,
>>>
>>> In most WSO2 products, following  code snippet is used to show paginated
>>> results.
>>>
>>> >> numberOfPages="<%=numberOfPages%>"
>>>   
>>> resourceBundle="org.wso2.carbon.--.--.ui.i18n.Resources"
>>>   nextKey="next" prevKey="prev"
>>>   paginationFunction="submitForm({0})" />
>>>
>>>
>>>
>>> According to above example, when a user clicks on a particular page
>>> number "submitForm()" JavaScript method will be invoked.
>>> Lets say if i have a JSP String variable called "order" and wants to
>>> pass it when a user clicks on the page number, then I need to change
>>> pagination function as follows.
>>>
>>> paginationFunction="submitForm({0},'<%=order%>')"
>>>
>>>
>>> But this method passes the value to the JavaScript function as a raw string.
>>>
>>> So the retrieved value will be a string which equals to "<%=order%>" .
>>>
>>> So how to pass a JSP variable inside this pagination function?
>>>
>>> Any help on this matter is highly appreciated
>>>
>>>
>>> Thanks,
>>> Rajith
>>>
>>>
>>> Rajith Roshan
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-72-642-8350 <%2B94-71-554-8430>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Vinod Kavinda
>> Software Engineer
>> *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
>> Mobile : +94 (0) 712 415544
>> Blog : http://soatechflicks.blogspot.com/
>>
>>
>
>
> --
> Rajith Roshan
> Software Engineer, WSO2 Inc.
> Mobile: +94-72-642-8350 <%2B94-71-554-8430>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Saneth Dharmakeerthi

2015-06-08 Thread Malith Munasinghe
Congratulations Saneth!!

On Tue, Jun 9, 2015 at 11:38 AM, Madhuranga Bandara 
wrote:

> Congratulations Saneth !!!
>
> *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 Tue, Jun 9, 2015 at 11:31 AM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Congratulation...!!
>>
>> ___
>> 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
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Himasha Guruge

2015-05-28 Thread Malith Munasinghe
Congratulations Himasha!

On Thu, May 28, 2015 at 12:20 PM, Dakshika Jayathilaka 
wrote:

> Congratulations Himasha!!
>
> *Dakshika Jayathilaka*
> PMC Member & Committer of Apache Stratos
> Senior Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
> On Thu, May 28, 2015 at 12:16 PM, Harsha Kumara  wrote:
>
>> Congratulations Himasha!
>>
>> On Thu, May 28, 2015 at 10:13 AM, Nuwandi Wickramasinghe <
>> nuwan...@wso2.com> wrote:
>>
>>> Congratz Himasha :)
>>>
>>> On Wed, May 27, 2015 at 5:29 PM, Indunil Upeksha Rathnayake <
>>> indu...@wso2.com> wrote:
>>>
>>>> Congratz Himasha.!!!
>>>>
>>>> --
>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> Best Regards,
>>>
>>> Nuwandi Wickramasinghe
>>>
>>> Software Engineer
>>>
>>> WSO2 Inc.
>>>
>>> Web : http://wso2.com
>>>
>>> Mobile : 0719214873
>>>
>>> ___
>>> 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
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Vishanth Balasubramaniam

2015-05-17 Thread Malith Munasinghe
Congratulations Vishanth!

On Sat, May 16, 2015 at 5:43 PM, Chamalee De Silva 
wrote:

> Congrats Vishanth..!! :)
>
> On Sat, May 16, 2015 at 8:07 AM, Viraj Senevirathne 
> wrote:
>
>> Congratulations  Vishanth ...!
>>
>> On Sat, May 16, 2015 at 5:31 AM, Dakshika Jayathilaka 
>> wrote:
>>
>>> Congratualtions Vishanth...!!
>>>
>>> *Dakshika Jayathilaka*
>>> PMC Member & Committer of Apache Stratos
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>> 0771100911
>>>
>>> On Sat, May 16, 2015 at 12:13 AM, Prasanna Dangalla 
>>> wrote:
>>>
>>>> Congratulations
>>>>
>>>> On Fri, May 15, 2015 at 11:12 PM, Damith Wickramasinghe <
>>>> dami...@wso2.com> wrote:
>>>>
>>>>> Congrats Vishanth !!!
>>>>>
>>>>> On Fri, May 15, 2015 at 10:58 PM, Harsha Kumara 
>>>>> wrote:
>>>>>
>>>>>> Congratulation Vishanth!
>>>>>>
>>>>>> On Fri, May 15, 2015 at 10:37 PM, Thusitha Thilina Dayaratne <
>>>>>> thusit...@wso2.com> wrote:
>>>>>>
>>>>>>> Congratulations...!
>>>>>>>
>>>>>>> On Fri, May 15, 2015 at 7:10 PM, Madhuranga Bandara <
>>>>>>> madhura...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Congratulations Vishanth !!!
>>>>>>>> Madhuranga Sampath Bandara
>>>>>>>> Software Engineer
>>>>>>>>
>>>>>>>> WSO2, Inc.;http://wso2.com/
>>>>>>>> lean.enterprise.middleware
>>>>>>>> Mobile: +94722241065
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, May 15, 2015 at 6:58 PM, Imesh Gunaratne 
>>>>>>>> wrote:
>>>>>>>> > Hi Devs,
>>>>>>>> >
>>>>>>>> > It's my pleasure to welcome Vishanth Balasubramaniam as a WSO2
>>>>>>>> Committer.
>>>>>>>> > Vishanth, welcome aboard and keep up the good work!
>>>>>>>> >
>>>>>>>> > Thanks
>>>>>>>> >
>>>>>>>> > --
>>>>>>>> > Imesh Gunaratne
>>>>>>>> > Senior 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
>>>>>>>> >
>>>>>>>> ___
>>>>>>>> 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
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> 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
>>>
>>>
>>
>>
>> --
>> Viraj Senevirathne
>> Software Engineer; WSO2, Inc.
>>
>> Mobile : +94 71 818 4742 <%2B94%20%280%29%20773%20451194>
>> Email : vir...@wso2.com 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks & Regards,
>
> *Chamalee De Silva*
> Software Engineer
> *WS**O2* Inc. .:http://wso2.com
> lean *.* enterprise *.* middleware
>
> Office   :- *+94 11 2145345 <%2B94%2011%202145345>*
> mobile  :- *+94 7 <%2B94%2077%202782039>1 1540738*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Vinuri Perera

2015-04-27 Thread Malith Munasinghe
Congratulations Vinuri !!

On Mon, Apr 27, 2015 at 2:19 PM, Amila Maha Arachchi 
wrote:

> Hi all,
>
> Its my pleasure to welcome Vinuri Perera as a WSO2 Committer. Vinuri is a
> member of WSO2 Cloud team and she has done a great contribution to WSO2
> Cloud and has shown great enthusiasm in her work both in development and
> other cloud related work. In recognition of her contribution, she has been
> voted as a WSO2 Committer.
>
> Vinuri, welcome aboard and keep up the good work..
>
> Regards,
> Amila.
>
> --
> *Amila Maharachchi*
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
>
> Blog: http://maharachchi.blogspot.com
> Mobile: +94719371446
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] File Uploading using a REST service (JAX-RS) - Uploaded file contains empty content.

2015-04-23 Thread Malith Munasinghe
Links for the above

[1]
http://stackoverflow.com/questions/10801122/handling-multipart-attachments-in-cxf-apis


On Fri, Apr 24, 2015 at 10:40 AM, Malith Munasinghe 
wrote:

> Hi Supun,
>
> As discussed in [1] for CXF 2.6.x api file uploading using multipart
> content type can be done using Attachement Argument type instead of
> InputStream. Can you try using
>
> @Multipart(value = "file") @NotNull Attachment attachment
> Then use
>
> InputStream inputStream = attcehment.getObject(InputStream.class);
>
> to get the InputStream.
>
> Thank you,
> Regards
>
>
> On Fri, Apr 24, 2015 at 9:26 AM, Supun Sethunga  wrote:
>
>> Hi Malith,
>>
>> Using the latest Chrome/Firefox versions. This isn't working when called
>> from a java-client either.
>>
>> Catch here is, rest of the form data get submitted correctly. AFAIU
>> problem is in the way the file is streamed to the server (the way it gets
>> attached to the request).
>>
>> Thanks,
>> Supun
>>
>> On Fri, Apr 24, 2015 at 9:14 AM, Malith Munasinghe 
>> wrote:
>>
>>> Hi Supun,
>>>
>>> Can you check the browser version of yours ? As of [1] FormData
>>> emulation for older browser (Below Safari 5 / Firefox 4) you might have to
>>> change it to the way mentioned in top Ranked answer.
>>>
>>> [1]
>>> http://stackoverflow.com/questions/5392344/sending-multipart-formdata-with-jquery-ajax
>>>
>>> On Fri, Apr 24, 2015 at 9:02 AM, Supun Sethunga  wrote:
>>>
>>>> Hi Malith/Thilini,
>>>>
>>>> Thanks for the suggestion. I had tried that. Didn't work :/
>>>>
>>>> Regards,
>>>> Supun
>>>>
>>>> On Fri, Apr 24, 2015 at 8:45 AM, Thilini Cooray 
>>>> wrote:
>>>>
>>>>> Hi Supun,
>>>>>
>>>>> [1] also suggests to make contentType false.
>>>>>
>>>>> [1]
>>>>> http://stackoverflow.com/questions/12831680/jquery-ajax-multipart-form-data-not-sending-data
>>>>>
>>>>> Thanks.
>>>>>
>>>>> On Fri, Apr 24, 2015 at 8:44 AM, Malith Munasinghe 
>>>>> wrote:
>>>>>
>>>>>> Hi Supun!
>>>>>>
>>>>>> Try Making contentType: false,
>>>>>>
>>>>>> Regards,
>>>>>> Malith.
>>>>>>
>>>>>> On Thu, Apr 23, 2015 at 5:20 PM, Supun Sethunga 
>>>>>> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> Requirement was to let a user upload a data file from a UI
>>>>>>> (html/jaggery), and the backend which handles file uploading is exposed 
>>>>>>> as
>>>>>>> a REST service. Backend service method I wrote looks as follows:
>>>>>>>
>>>>>>> @POST
>>>>>>>> @Produces(MediaType.APPLICATION_JSON)
>>>>>>>> @Consumes(MediaType.MULTIPART_FORM_DATA)
>>>>>>>> public Response uploadDataset(@Multipart("datasetName") String
>>>>>>>> datasetName,
>>>>>>>>   @Multipart("version") String
>>>>>>>> version,
>>>>>>>>   @Multipart("description") String
>>>>>>>> description,
>>>>>>>>   @Multipart("sourceType") String
>>>>>>>> sourceType,
>>>>>>>>   @Multipart("destination") String
>>>>>>>> destination,
>>>>>>>>   @Multipart("sourcePath") String
>>>>>>>> sourcePath,
>>>>>>>>   @Multipart("dataFormat") String
>>>>>>>> dataFormat,
>>>>>>>>   @Multipart("file") InputStream
>>>>>>>> inputStream) {
>>>>>>>> . . .
>>>>>>>> . . .
>>>>>>>> }
>>>>>>>
>>>>>>>
>>>>>>> The InputStream is then written to a file at the server side. This
>>>>>>> method wo

Re: [Dev] File Uploading using a REST service (JAX-RS) - Uploaded file contains empty content.

2015-04-23 Thread Malith Munasinghe
Hi Supun,

As discussed in [1] for CXF 2.6.x api file uploading using multipart
content type can be done using Attachement Argument type instead of
InputStream. Can you try using

@Multipart(value = "file") @NotNull Attachment attachment
Then use

InputStream inputStream = attcehment.getObject(InputStream.class);

to get the InputStream.

Thank you,
Regards


On Fri, Apr 24, 2015 at 9:26 AM, Supun Sethunga  wrote:

> Hi Malith,
>
> Using the latest Chrome/Firefox versions. This isn't working when called
> from a java-client either.
>
> Catch here is, rest of the form data get submitted correctly. AFAIU
> problem is in the way the file is streamed to the server (the way it gets
> attached to the request).
>
> Thanks,
> Supun
>
> On Fri, Apr 24, 2015 at 9:14 AM, Malith Munasinghe 
> wrote:
>
>> Hi Supun,
>>
>> Can you check the browser version of yours ? As of [1] FormData emulation
>> for older browser (Below Safari 5 / Firefox 4) you might have to change it
>> to the way mentioned in top Ranked answer.
>>
>> [1]
>> http://stackoverflow.com/questions/5392344/sending-multipart-formdata-with-jquery-ajax
>>
>> On Fri, Apr 24, 2015 at 9:02 AM, Supun Sethunga  wrote:
>>
>>> Hi Malith/Thilini,
>>>
>>> Thanks for the suggestion. I had tried that. Didn't work :/
>>>
>>> Regards,
>>> Supun
>>>
>>> On Fri, Apr 24, 2015 at 8:45 AM, Thilini Cooray 
>>> wrote:
>>>
>>>> Hi Supun,
>>>>
>>>> [1] also suggests to make contentType false.
>>>>
>>>> [1]
>>>> http://stackoverflow.com/questions/12831680/jquery-ajax-multipart-form-data-not-sending-data
>>>>
>>>> Thanks.
>>>>
>>>> On Fri, Apr 24, 2015 at 8:44 AM, Malith Munasinghe 
>>>> wrote:
>>>>
>>>>> Hi Supun!
>>>>>
>>>>> Try Making contentType: false,
>>>>>
>>>>> Regards,
>>>>> Malith.
>>>>>
>>>>> On Thu, Apr 23, 2015 at 5:20 PM, Supun Sethunga 
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Requirement was to let a user upload a data file from a UI
>>>>>> (html/jaggery), and the backend which handles file uploading is exposed 
>>>>>> as
>>>>>> a REST service. Backend service method I wrote looks as follows:
>>>>>>
>>>>>> @POST
>>>>>>> @Produces(MediaType.APPLICATION_JSON)
>>>>>>> @Consumes(MediaType.MULTIPART_FORM_DATA)
>>>>>>> public Response uploadDataset(@Multipart("datasetName") String
>>>>>>> datasetName,
>>>>>>>   @Multipart("version") String
>>>>>>> version,
>>>>>>>   @Multipart("description") String
>>>>>>> description,
>>>>>>>   @Multipart("sourceType") String
>>>>>>> sourceType,
>>>>>>>   @Multipart("destination") String
>>>>>>> destination,
>>>>>>>   @Multipart("sourcePath") String
>>>>>>> sourcePath,
>>>>>>>   @Multipart("dataFormat") String
>>>>>>> dataFormat,
>>>>>>>   @Multipart("file") InputStream
>>>>>>> inputStream) {
>>>>>>> . . .
>>>>>>> . . .
>>>>>>> }
>>>>>>
>>>>>>
>>>>>> The InputStream is then written to a file at the server side. This
>>>>>> method works fine when I call this with CURL using:
>>>>>>
>>>>>> *curl -X POST -b cookies  http://localhost:9763/api/datasets
>>>>>>> <http://localhost:9763/api/datasets> -H "Authorization: Basic
>>>>>>> YWRtaW46YWRtaW4=" -H "Content-Type: multipart/form-data" --form
>>>>>>> datasetName=TestDataset --form version=1.0.0 --form
>>>>>>> description=TestDescription --form sourceType=file --form 
>>>>>>> destination=file
>>>>&g

Re: [Dev] File Uploading using a REST service (JAX-RS) - Uploaded file contains empty content.

2015-04-23 Thread Malith Munasinghe
Hi Supun,

Can you check the browser version of yours ? As of [1] FormData emulation
for older browser (Below Safari 5 / Firefox 4) you might have to change it
to the way mentioned in top Ranked answer.

[1]
http://stackoverflow.com/questions/5392344/sending-multipart-formdata-with-jquery-ajax

On Fri, Apr 24, 2015 at 9:02 AM, Supun Sethunga  wrote:

> Hi Malith/Thilini,
>
> Thanks for the suggestion. I had tried that. Didn't work :/
>
> Regards,
> Supun
>
> On Fri, Apr 24, 2015 at 8:45 AM, Thilini Cooray  wrote:
>
>> Hi Supun,
>>
>> [1] also suggests to make contentType false.
>>
>> [1]
>> http://stackoverflow.com/questions/12831680/jquery-ajax-multipart-form-data-not-sending-data
>>
>> Thanks.
>>
>> On Fri, Apr 24, 2015 at 8:44 AM, Malith Munasinghe 
>> wrote:
>>
>>> Hi Supun!
>>>
>>> Try Making contentType: false,
>>>
>>> Regards,
>>> Malith.
>>>
>>> On Thu, Apr 23, 2015 at 5:20 PM, Supun Sethunga  wrote:
>>>
>>>> Hi,
>>>>
>>>> Requirement was to let a user upload a data file from a UI
>>>> (html/jaggery), and the backend which handles file uploading is exposed as
>>>> a REST service. Backend service method I wrote looks as follows:
>>>>
>>>> @POST
>>>>> @Produces(MediaType.APPLICATION_JSON)
>>>>> @Consumes(MediaType.MULTIPART_FORM_DATA)
>>>>> public Response uploadDataset(@Multipart("datasetName") String
>>>>> datasetName,
>>>>>   @Multipart("version") String version,
>>>>>   @Multipart("description") String
>>>>> description,
>>>>>   @Multipart("sourceType") String
>>>>> sourceType,
>>>>>   @Multipart("destination") String
>>>>> destination,
>>>>>   @Multipart("sourcePath") String
>>>>> sourcePath,
>>>>>   @Multipart("dataFormat") String
>>>>> dataFormat,
>>>>>   @Multipart("file") InputStream
>>>>> inputStream) {
>>>>> . . .
>>>>> . . .
>>>>> }
>>>>
>>>>
>>>> The InputStream is then written to a file at the server side. This
>>>> method works fine when I call this with CURL using:
>>>>
>>>> *curl -X POST -b cookies  http://localhost:9763/api/datasets
>>>>> <http://localhost:9763/api/datasets> -H "Authorization: Basic
>>>>> YWRtaW46YWRtaW4=" -H "Content-Type: multipart/form-data" --form
>>>>> datasetName=TestDataset --form version=1.0.0 --form
>>>>> description=TestDescription --form sourceType=file --form destination=file
>>>>> --form dataFormat=CSV --form
>>>>> file=@/home/supun/Supun/MachineLearning/data/IndiansDiabetes.csv --form
>>>>> sourcePath=/temp*
>>>>
>>>>
>>>> Also works fine when I used Chrome's REST client.
>>>>
>>>> However,  when I call the same service, using AJAX, the file is written
>>>> with empty content. Follow is the sample snippet.
>>>>
>>>>
>>>>> *var formData = new FormData();*
>>>>> *  formData.append("file", fileInput[0]['files'][0],
>>>>> 'IndiansDiabetes.csv');*
>>>>> * formData.append("datasetName", name);*
>>>>> * formData.append("version", version);*
>>>>> * formData.append("description", comments);*
>>>>> * formData.append("sourceType", dataSourceType);*
>>>>> * formData.append("sourcePath", null);*
>>>>> * formData.append("destination", dataTargetType);**
>>>>> formData.append("dataFormat", dataType);*
>>>>
>>>>
>>>>
>>>>
>>>>> *   var baseUrl = getBaseUrl(window.location.href);*
>>>>> *   $.ajax({*
>>>>> *   type: 'POST',*
>>>>> *   url: baseUrl + '/api/datasets', *
>>>>> *   contentType: "multipart/form-data",*
>>>>> *pr

Re: [Dev] File Uploading using a REST service (JAX-RS) - Uploaded file contains empty content.

2015-04-23 Thread Malith Munasinghe
Hi Supun!

Try Making contentType: false,

Regards,
Malith.

On Thu, Apr 23, 2015 at 5:20 PM, Supun Sethunga  wrote:

> Hi,
>
> Requirement was to let a user upload a data file from a UI (html/jaggery),
> and the backend which handles file uploading is exposed as a REST service.
> Backend service method I wrote looks as follows:
>
> @POST
>> @Produces(MediaType.APPLICATION_JSON)
>> @Consumes(MediaType.MULTIPART_FORM_DATA)
>> public Response uploadDataset(@Multipart("datasetName") String
>> datasetName,
>>   @Multipart("version") String version,
>>   @Multipart("description") String
>> description,
>>   @Multipart("sourceType") String
>> sourceType,
>>   @Multipart("destination") String
>> destination,
>>   @Multipart("sourcePath") String
>> sourcePath,
>>   @Multipart("dataFormat") String
>> dataFormat,
>>   @Multipart("file") InputStream
>> inputStream) {
>> . . .
>> . . .
>> }
>
>
> The InputStream is then written to a file at the server side. This method
> works fine when I call this with CURL using:
>
> *curl -X POST -b cookies  http://localhost:9763/api/datasets
>> <http://localhost:9763/api/datasets> -H "Authorization: Basic
>> YWRtaW46YWRtaW4=" -H "Content-Type: multipart/form-data" --form
>> datasetName=TestDataset --form version=1.0.0 --form
>> description=TestDescription --form sourceType=file --form destination=file
>> --form dataFormat=CSV --form
>> file=@/home/supun/Supun/MachineLearning/data/IndiansDiabetes.csv --form
>> sourcePath=/temp*
>
>
> Also works fine when I used Chrome's REST client.
>
> However,  when I call the same service, using AJAX, the file is written
> with empty content. Follow is the sample snippet.
>
>
>> *var formData = new FormData();*
>> *  formData.append("file", fileInput[0]['files'][0],
>> 'IndiansDiabetes.csv');*
>> * formData.append("datasetName", name);*
>> * formData.append("version", version);*
>> * formData.append("description", comments);*
>> * formData.append("sourceType", dataSourceType);*
>> * formData.append("sourcePath", null);*
>> * formData.append("destination", dataTargetType);**
>> formData.append("dataFormat", dataType);*
>
>
>
>
>> *   var baseUrl = getBaseUrl(window.location.href);*
>> *   $.ajax({*
>> *   type: 'POST',*
>> *   url: baseUrl + '/api/datasets', *
>> *   contentType: "multipart/form-data",*
>> *processData: false,*
>> *   data: formData,**   beforeSend : function(xhr) {*
>>
>> *xhr.setRequestHeader("Authorization", "Basic " +
>> "YWRtaW46YWRtaW4=");*
>> *},*
>> *success : function(res){*
>> *   console.log('success');*
>> *},*
>> *error :  function(res){*
>> *   console.log('failed');*
>> *}   *
>> *});** })*
>
>
> One thing I noticed was, When calling the service using CURL and
> REST-Client, the *@Multipart("file") InputStream inputStream* binds to
> a "LoadingByteArrayOutputStream", but when calling from AJAX (or even with
> a java client) it binds to a
> "org.apache.cxf.attachment.DelegatingInputStream", and hence writing an
> empty content to the server.
>
> Any idea on how to overcome this?
>
> Thanks,
> Supun
>
> --
> *Supun Sethunga*
> Software Engineer
> WSO2, Inc.
> http://wso2.com/
> lean | enterprise | middleware
> Mobile : +94 716546324
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Dilan Ariyaratne

2015-04-11 Thread Malith Munasinghe
Congrats Dilan!!

On Sat, Apr 11, 2015 at 1:01 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Congratulations ...!
>
> On Fri, Apr 10, 2015 at 3:44 PM, Prabath Abeysekera 
> wrote:
>
>> Hi Everyone,
>>
>> It's my pleasure to welcome Dilan Ariyaratne as a WSO2 Committer. Dilan
>> has been part of some key development efforts of MDM as well as EMM over
>> the last couple of months. In recognition of all his contributions, he's
>> been voted as a WSO2 comitter.
>>
>> Dilan, Welcome aboard and keep up the good work!
>>
>>
>> Cheers,
>> Prabath
>>
>>
>> --
>> Prabath Abeysekara
>> Associate Technical Lead, Data TG.
>> WSO2 Inc.
>> Email: praba...@wso2.com
>> Mobile: +94774171471
>>
>>
>> ___
>> 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
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Prasanna Dangalla

2015-04-08 Thread Malith Munasinghe
Congratulations Prasanna!

On Thu, Apr 9, 2015 at 8:08 AM, Tharindu Edirisinghe 
wrote:

> Congratulations Prasanna !!!
>
> On Thu, Apr 9, 2015 at 8:06 AM, Sagara Gunathunga  wrote:
>
>> It's my pleasure to welcome Prasanna Dangalla as a WSO2 committer.
>> Prasanna, welcome aboard and keep up the good work.
>>
>>
>> Thanks !
>> --
>> Sagara Gunathunga
>>
>> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Tharindu Edirisinghe
> Software Engineer | WSO2 Inc
> Identity Server Team
> mobile : +94 775 181586
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Making a web socket to the same page

2015-03-27 Thread Malith Munasinghe
Hi Tanya,

according to my understanding this is not an issue with Jaggery but the web
socket specification. Since it is intended to provide two-way communication
with a remote host the connection should be persistent.

According to [1] "WebSocket connections do not, however, persist across
loading of new pages from the same domain, or page reloads. A WebSocket
connection only persists as long as the page is still open (not navigated
away from)."

The initial code snippet call the same page this might be the issue that
breaks the code.

[1] http://tavendo.com/blog/post/websocket-persistent-connections/

Regards,
Malith

On Fri, Mar 27, 2015 at 6:52 PM, Tanya Madurapperuma  wrote:

> Hi all,
>
> Do we allow $ Subject?
> I tried the below snippet in a file called index.jag. But it breaks
> silently.
>
> 
> <%
> var log = new Log();
> WebSocket.ontext = function (data) {
>  log.info('data sent '+ data)
> };
> %>
> 
> 
> 
> Jaggery WebSocket
> 
>  var ws = new WebSocket(
>"ws://localhost:9763/web/index.jag");
>
>  function sendMessage() {
>   ws.send(messageText.value);
>   messageText.value = "";
>  }
> 
> 
> 
> 
>   
>   
>   
> 
> 
> 
>
> But if I move the below snippet to a different file called server.jag and
> change the web socket url to ws://localhost:9763/web/server.jag, it works
> fine.
>
> <%
> var log = new Log();
> webSocket.ontext = function (data) {
>  log.info('data sent '+ data)
> };
> %>
>
> I understand it doesn't make sense to call the same page. But just asking
> :)
>
> Thanks,
> Tanya
>
> --
> Tanya Madurapperuma
>
> Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94718184439
> Blog : http://tanyamadurapperuma.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [dev]Accessing cookies of a different domain using iFrames

2015-03-26 Thread Malith Munasinghe
Hi Hasanthi,

As of my understanding this requires setting up cross domain cookies.
Porthole as Tharik mentioned is good for this. If you need to look more
into how this works and how to implement custom cross domain cookie
sharing. You can look in to [1] [2].

[1] http://www.slideshare.net/VictorWelling/crossdomain-cookies
[2] http://stackoverflow.com/questions/3342140/cross-domain-cookies

Regards,
Malith.

On Thu, Mar 26, 2015 at 4:52 PM, Hasanthi Purnima Dissanayake <
hasan...@wso2.com> wrote:

> Hi Tharik,
> Thanks for the response. I will refer it.
>
>
>
> Hasanthi Dissanayake
>
> Software Engineer | WSO2
>
> E: hasan...@wso2.com 
> M :0718407133| http://wso2.com <http://wso2.com/>
>
> On Thu, Mar 26, 2015 at 4:48 PM, Tharik Kanaka  wrote:
>
>> I saw similar kind of mail thread sometime ago [1]. Porthole was
>> suggested [2] for secure cross-domain iFrame communication.
>>
>> [1] https://www.marc.info/?l=esb-java-dev&m=142596203617332&w=4
>>
>> [2] https://github.com/ternarylabs/porthole
>>
>> On Thu, Mar 26, 2015 at 3:03 PM, Hasanthi Purnima Dissanayake <
>> hasan...@wso2.com> wrote:
>>
>>> I have two applications running in two servers(First web app is hosted
>>> in tomcat and second web app is hosted in IS). I need to access browser
>>> cookies of the second web application(IS) from the first web
>>> application(Tomcat). For that I'm going to implement an iFrame of the
>>> second application in my first web application. Is it able to access
>>> cookies of a web app from a different domain?
>>>
>>> Thanks and regards,
>>>
>>> Hasanthi Dissanayake
>>>
>>> Software Engineer | WSO2
>>>
>>> E: hasan...@wso2.com 
>>> M :0718407133| http://wso2.com <http://wso2.com/>
>>>
>>> ___
>>> 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
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Irham Iqbal

2015-03-10 Thread Malith Munasinghe
Congratulation Irham!!

On Tue, Mar 10, 2015 at 1:53 PM, Milan Perera  wrote:

> Congratz Irham..!
>
> On Tue, Mar 10, 2015 at 1:45 PM, Tharik Kanaka  wrote:
>
>> congratulations Irham
>>
>> On Tue, Mar 10, 2015 at 1:40 PM, Harsha Kumara  wrote:
>>
>>> Congratulation Irham.
>>>
>>> On Tue, Mar 10, 2015 at 1:38 PM, Pirinthapan Mahendran <
>>> pirintha...@wso2.com> wrote:
>>>
>>>> Congratulation Irham.
>>>>
>>>>
>>>>
>>>> Mahendran Pirinthapan
>>>> Software Engineer | WSO2 Inc.
>>>> Mobile +94772378732.
>>>>
>>>> On Tue, Mar 10, 2015 at 1:35 PM, Jagath Sisirakumara Ariyarathne <
>>>> jaga...@wso2.com> wrote:
>>>>
>>>>> Congratulations Irham
>>>>>
>>>>> On Tue, Mar 10, 2015 at 1:29 PM, Dimuthu De Lanerolle <
>>>>> dimut...@wso2.com> wrote:
>>>>>
>>>>>> Congratz Irham !!!
>>>>>>
>>>>>> On Tue, Mar 10, 2015 at 1:27 PM, Saneth Dharmakeerthi <
>>>>>> sane...@wso2.com> wrote:
>>>>>>
>>>>>>> Congratulations Irham...
>>>>>>>
>>>>>>> Thanks and Best Regards,
>>>>>>>
>>>>>>> Saneth Dharmakeerthi
>>>>>>> Senior Software Engineer
>>>>>>> WSO2, Inc.
>>>>>>> Mobile: +94772325511
>>>>>>>
>>>>>>> On Tue, Mar 10, 2015 at 1:23 PM, Malintha Adikari >>>>>> > wrote:
>>>>>>>
>>>>>>>> Congratulations Irham!
>>>>>>>>
>>>>>>>> On Tue, Mar 10, 2015 at 7:51 AM, Krishantha Samaraweera <
>>>>>>>> krishan...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> Hi all,
>>>>>>>>>
>>>>>>>>> It's my pleasure to welcome Irham Iqbal as a WSO2 Committer.
>>>>>>>>>
>>>>>>>>> Irham, welcome aboard and keep up the good work!
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Krishantha.
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Krishantha Samaraweera
>>>>>>>>> Senior Technical Lead - Test Automation
>>>>>>>>> Mobile: +94 77 7759918
>>>>>>>>> WSO2, Inc.; http://wso2.com/
>>>>>>>>> lean . enterprise . middlewear.
>>>>>>>>>
>>>>>>>>> ___
>>>>>>>>> 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
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> ___
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Dimuthu De Lanerolle
>>>>>> Software Engineer
>>>>>> WSO2 Inc.
>>>>>> lean . enterprise . middlewear.
>>>>>> http://wso2.com/
>>>>>> Tel. : +94 11 2145345  Fax : +94 11 2145300  email :
>>>>>> dimut...@wso2.com
>>>>>>
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Jagath Ariyarathne
>>>>> Technical Lead
>>>>> WSO2 Inc.  http://wso2.com/
>>>>> Email: jaga...@wso2.com
>>>>> Mob  : +94 77 386 7048
>>>>>
>>>>>
>>>>> ___
>>>>> 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
>>>>
>>>>
>>>
>>>
>>> --
>>> 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
>>>
>>>
>>
>>
>> --
>>
>> *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
>>
>>
>
>
> --
> Milan Harindu Perera
> Software Engineer
> *WSO2, Inc*
> (+94) 77 309 7088
> lean . enterprise . middleware
> <http://lk.linkedin.com/in/milanharinduperera>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Announce] WSO2 Committers += Asok Perera

2015-03-09 Thread Malith Munasinghe
Congratulations Asok!!

On Tue, Mar 10, 2015 at 10:36 AM, Inosh Perera  wrote:

> Congrats Asok!!
>
> On Tue, Mar 10, 2015 at 9:27 AM, Tharik Kanaka  wrote:
>
>> Congratulations Asok.
>>
>> On Tue, Mar 10, 2015 at 9:25 AM, Lahiru Cooray  wrote:
>>
>>> Congratz Asok...
>>>
>>> On Tue, Mar 10, 2015 at 9:23 AM, Sameera Perera 
>>> wrote:
>>>
>>>> Hi all,
>>>>
>>>> It is with great pleasure that WSO2 welcomes Asok Perera as a WSO2
>>>> committer!
>>>>
>>>> Congratulations!
>>>>
>>>> --
>>>>
>>>> --
>>>>
>>>> *Sameera Perera*
>>>> Director of Engineering
>>>> gtalk: samee...@wso2.com
>>>> Tel : 94 11 214 5345
>>>> Fax :94 11 2145300
>>>> *WSO2, Inc.* <http://wso2.com/>
>>>> lean.enterprise.middleware
>>>>
>>>>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Lahiru Cooray*
>>> Software Engineer
>>> WSO2, Inc.;http://wso2.com/
>>> lean.enterprise.middleware
>>>
>>> Mobile: +94 715 654154
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> Inosh Perera
> Software Engineer, WSO2 Inc.
> Tel: 0785293686
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][Carbon] Opening port 9443 from inside RHEL environment

2015-03-09 Thread Malith Munasinghe
Hi Chamila,

While giving the INPUT rule I think the command might have been mistakenly
typed as

-A INPUT -m state --state NEW -m tcp -p tcp --sport 9443 -j ACCEPT

because the iptables shows the port 9443 as a source port.

ACCEPT tcp -- 0.0.0.0/0  0.0.0.0/0   state NEW tcp spt:9443

try entering the INPUT rule again. As of my knowledge in order to allow
access from outside the port should be a destination port.

Thanks,

On Mon, Mar 9, 2015 at 8:19 PM, Chamila De Alwis  wrote:

> Hi,
>
> It seems I'm missing a small detail here. I'm running a BAM 2.4.1 server
> on a RHEL 6.4 setup. I've added the following rules in the iptables config
> and restarted the iptables and networking services. However the port 9443
> is not open to the outside.
>
> -A INPUT -m state --state NEW -m tcp -p tcp --dport 9443 -j ACCEPT
> -A OUTPUT -m state --state NEW -m tcp -p tcp --dport 9443 -j ACCEPT
>
> The iptables output is as follows.
>
> [root@wso2bam ~]# iptables -L -n
> Chain INPUT (policy ACCEPT)
> target prot opt source   destination
> ACCEPT all  --  0.0.0.0/00.0.0.0/0   state
> RELATED,ESTABLISHED
> ACCEPT icmp --  0.0.0.0/00.0.0.0/0
> ACCEPT all  --  0.0.0.0/00.0.0.0/0
> ACCEPT tcp  --  0.0.0.0/00.0.0.0/0   state NEW
> tcp dpt:22
> REJECT all  --  0.0.0.0/00.0.0.0/0   reject-with
> icmp-host-prohibited
> ACCEPT tcp  --  0.0.0.0/00.0.0.0/0   state NEW
> tcp spt:9443
>
> Chain FORWARD (policy ACCEPT)
> target prot opt source   destination
> REJECT all  --  0.0.0.0/00.0.0.0/0   reject-with
> icmp-host-prohibited
>
> Chain OUTPUT (policy ACCEPT)
> target prot opt source   destination
> ACCEPT tcp  --  0.0.0.0/00.0.0.0/0   state NEW
> tcp dpt:9443
>
>
> I can ssh in to the setup without any issue.
>
> Regards,
> Chamila de Alwis
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Senduran Balasubramaniyam

2015-03-08 Thread Malith Munasinghe
Congratulations Senthuran!

On Mon, Mar 9, 2015 at 9:05 AM, Elilmatha Sivanesan 
wrote:

> Congratulations Senduran .
>
>
> On Mon, Mar 9, 2015 at 8:47 AM, Jerad Rutnam  wrote:
>
>> Congratulations Senduran! :)
>>
>> On Mon, Mar 9, 2015 at 7:01 AM, Dilan Udara Ariyaratne 
>> wrote:
>>
>>> Congratulations, Senduran!!!
>>>
>>>
>>> *Dilan U. Ariyaratne*
>>> Software Engineer
>>> WSO2 Inc. <http://wso2.com/>
>>> Mobile: +94775149066
>>> lean . enterprise . middleware
>>>
>>> On Sun, Mar 8, 2015 at 6:43 PM, Indunil Upeksha Rathnayake <
>>> indu...@wso2.com> wrote:
>>>
>>>> Congratulations.
>>>>
>>>> Best 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
>>>>
>>>>
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> *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
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Announce] WSO2 Committers += Dulitha Wijewantha

2015-03-08 Thread Malith Munasinghe
Congrats Dulitha!

On Mon, Mar 9, 2015 at 8:53 AM, Harsha Kumara  wrote:

> Congratulations Dulitha!
>
> On Mon, Mar 9, 2015 at 7:36 AM, Gayan Gunawardana  wrote:
>
>> Congratulations, Dulitha...!
>>
>> On Mon, Mar 9, 2015 at 6:49 AM, Dilan Udara Ariyaratne 
>> wrote:
>>
>>> Congratulations, Dulitha!!!
>>>
>>>
>>> *Dilan U. Ariyaratne*
>>> Software Engineer
>>> WSO2 Inc. <http://wso2.com/>
>>> Mobile: +94775149066
>>> lean . enterprise . middleware
>>>
>>> On Mon, Mar 9, 2015 at 5:23 AM, Dakshika Jayathilaka 
>>> wrote:
>>>
>>>> Congratulations Dulitha...!
>>>>
>>>> *Dakshika Jayathilaka*
>>>> Software Engineer
>>>> WSO2, Inc.
>>>> lean.enterprise.middleware
>>>> 0771100911
>>>>
>>>> On Sun, Mar 8, 2015 at 8:27 PM, Sameera Perera 
>>>> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> It is with great pleasure that WSO2 welcomes Dulitha Wijewantha as a
>>>>> WSO2 committer!
>>>>>
>>>>> Congratulations!
>>>>>
>>>>>
>>>>> --
>>>>> ​​
>>>>>
>>>>> --
>>>>>
>>>>> *Sameera Perera*
>>>>> Director of Engineering
>>>>> gtalk: samee...@wso2.com
>>>>> Tel : 94 11 214 5345
>>>>> Fax :94 11 2145300
>>>>> *WSO2, Inc.* <http://wso2.com/>
>>>>> lean.enterprise.middleware
>>>>>
>>>>>
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>> ___
>>> Dev 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
>>
>>
>
>
> --
> 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
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Ashan Manathunga

2015-03-08 Thread Malith Munasinghe
Congratulations Ashan!!!

On Mon, Mar 9, 2015 at 9:08 AM, Niranda Perera  wrote:

> Congrats Ashan! :-)
>
> On Mon, Mar 9, 2015 at 9:06 AM, Vinod Kavinda  wrote:
>
>> Congratulations Ashan!!
>>
>> On Mon, Mar 9, 2015 at 8:33 AM, Thilini Cooray  wrote:
>>
>>> Congrats, Ashan !
>>>
>>> On Sun, Mar 8, 2015 at 10:26 PM, Jagath Ariyananda 
>>> wrote:
>>>
>>>> Congratulations Ashan.
>>>>
>>>> On Fri, Mar 6, 2015 at 4:53 PM, Srisunmugaraja Paraparan <
>>>> parapa...@wso2.com> wrote:
>>>>
>>>>> Congratz Ashan.
>>>>>
>>>>> On Fri, Mar 6, 2015 at 4:45 PM, Samisa Abeysinghe 
>>>>> wrote:
>>>>>
>>>>>> Hi All
>>>>>> It's my pleasure to welcome Ashan as a WSO2 Committer.
>>>>>>
>>>>>> Ashan, welcome aboard and keep up the good work!
>>>>>>
>>>>>> Thanks,
>>>>>> Samisa...
>>>>>>
>>>>>>
>>>>>> Samisa Abeysinghe
>>>>>>
>>>>>> Vice President Delivery
>>>>>>
>>>>>> WSO2 Inc.
>>>>>> http://wso2.com
>>>>>>
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Thanks & Regards
>>>>> --
>>>>> Srisunmugaraja Paraparan
>>>>> Software Engineer,
>>>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>>>
>>>>> email : parapa...@wso2.com, mobile : +94 77 0362151
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Jagath Ariyananda
>>>> Director - Support
>>>> WSO2, Inc.
>>>> Mobile:+94 714887531
>>>>
>>>> Disclaimer: 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, retransmit, 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.
>>>>
>>>> ___
>>>> 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
>>>
>>>
>>
>>
>> --
>> Vinod Kavinda
>> Software Engineer, *WSO2, Inc <http://www.wso2.com>.*
>> Mobile : +94 (0) 712 415544
>> vi...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 <https://twitter.com/N1R44>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2015-03-04 Thread Malith Munasinghe
Congratulations Chamila!!!

On Thu, Mar 5, 2015 at 12:14 PM, Harsha Kumara  wrote:

> Congratulations Chamila!
>
> On Thu, Mar 5, 2015 at 11:22 AM, Shashika Karunatilaka  > wrote:
>
>> Congrats Chamila
>>
>> On Thu, Mar 5, 2015 at 11:19 AM, Vijitha Ekanayake 
>> wrote:
>>
>>> Congratulations Chamila !!!
>>>
>>> On Thu, Mar 5, 2015 at 11:12 AM, Aiyadurai Rajeevan 
>>> wrote:
>>>
>>>> Congrats Chamila :)
>>>>
>>>> Thanks & Regards,
>>>> S.A.Rajeevan
>>>> Software Engineer WSO2 Inc
>>>> E-Mail: rajeev...@wso2.com | Mobile : +94776411636
>>>>
>>>> On Thu, Mar 5, 2015 at 11:10 AM, Jerad Rutnam  wrote:
>>>>
>>>>> Congratulations Chamila! :)
>>>>>
>>>>> On Thu, Mar 5, 2015 at 11:07 AM, Dakshika Jayathilaka <
>>>>> daksh...@wso2.com> wrote:
>>>>>
>>>>>> Congratz Chamilad...!
>>>>>>
>>>>>> *Dakshika Jayathilaka*
>>>>>> Software Engineer
>>>>>> WSO2, Inc.
>>>>>> lean.enterprise.middleware
>>>>>> 0771100911
>>>>>>
>>>>>> On Thu, Mar 5, 2015 at 10:22 AM, Shiva Balachandran 
>>>>>> wrote:
>>>>>>
>>>>>>> Congrats Chamila. :)
>>>>>>>
>>>>>>> Good job! ^_^
>>>>>>>
>>>>>>> On Thu, Mar 5, 2015 at 10:14 AM, Kasun De Silva 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Congratz Chamila !!!
>>>>>>>>
>>>>>>>> *Kasun de Silva*
>>>>>>>> Software Engineer | *WSO2 Inc.*; http://wso2.com
>>>>>>>> lean.enterprise.middleware
>>>>>>>>
>>>>>>>> email   : kas...@wso2.com
>>>>>>>> mobile : +94 77 794 4260
>>>>>>>>
>>>>>>>>
>>>>>>>> On Thu, Mar 5, 2015 at 10:08 AM, Prasanna Dangalla <
>>>>>>>> prasa...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> Congratulations Chamilad
>>>>>>>>>
>>>>>>>>> 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
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> 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
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>> 

Re: [Dev] [DEV][AS] JAX-WS Samples NoClassDefFoundError for SAAJMetaFactoryImpl

2015-03-03 Thread Malith Munasinghe
Hi Kasun,

Thanks Kasun.

Regards,

On Tue, Mar 3, 2015 at 10:00 PM, Kasun De Silva  wrote:

> Hi Malith,
>
> I had the same issue with the same sample with running on jdk 1.7. Adding
> saaj-impl-1.3.1.jar" into /lib/endorsed/ folder solved the problem
> for me.
>
> Thanks,
> Kasun
>
> *Kasun de Silva*
> Software Engineer | *WSO2 Inc.*; http://wso2.com
> lean.enterprise.middleware
>
> email   : kas...@wso2.com
> mobile : +94 77 794 4260
>
>
> On Mon, Feb 16, 2015 at 12:00 PM, Malith Munasinghe 
> wrote:
>
>> Hi Kasun,
>>
>> Thanks for the prompt response.
>> I'm using jdk1.7.0_75
>>
>>
>> On Mon, Feb 16, 2015 at 11:53 AM, KasunG Gajasinghe 
>> wrote:
>>
>>> What's the JDK you are running this on?
>>>
>>> On Mon, Feb 16, 2015 at 11:28 AM, Malith Munasinghe 
>>> wrote:
>>>
>>>> When running client using ./run-client in sample [1] a
>>>> noClassDefFoundError occurs as [2] on the server. Any resolutions for this 
>>>> ?
>>>>
>>>> Thanks,
>>>>
>>>> [1]
>>>> https://docs.wso2.com/display/AS521/WS-Security+Sample+on+Signature+and+Encryption
>>>>
>>>> [2]
>>>> [2015-02-16 10:33:41,849] ERROR
>>>> {org.apache.catalina.core.StandardWrapperValve} -  Servlet.service() for
>>>> servlet [JAXServlet] in context with path [/sign_encrypt_jaxws] threw
>>>> exception [Servlet execution threw an exception] with root cause
>>>>
>>>> java.lang.NoClassDefFoundError: Could not initialize class
>>>> com.sun.xml.internal.messaging.saaj.soap.SAAJMetaFactoryImpl
>>>>
>>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>>>
>>>> at
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>>>>
>>>> at
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>>>
>>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>>>>
>>>> at java.lang.Class.newInstance(Class.java:379)
>>>>
>>>> at javax.xml.soap.FactoryFinder.newInstance(FactoryFinder.java:47)
>>>>
>>>> at javax.xml.soap.FactoryFinder.find(FactoryFinder.java:194)
>>>>
>>>> at javax.xml.soap.FactoryFinder.find(FactoryFinder.java:98)
>>>>
>>>> at javax.xml.soap.SAAJMetaFactory.getInstance(SAAJMetaFactory.java:73)
>>>>
>>>> at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:146)
>>>>
>>>> at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:111)
>>>>
>>>> at
>>>> org.apache.cxf.binding.soap.saaj.SAAJFactoryResolver.createMessageFactory(SAAJFactoryResolver.java:56)
>>>>
>>>> at
>>>> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.getFactory(SAAJInInterceptor.java:146)
>>>>
>>>> at
>>>> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.handleMessage(SAAJInInterceptor.java:128)
>>>>
>>>> at
>>>> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.handleMessage(SAAJInInterceptor.java:102)
>>>>
>>>> at
>>>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
>>>>
>>>> at
>>>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>>>>
>>>> at
>>>> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
>>>>
>>>> at
>>>> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
>>>>
>>>> at
>>>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
>>>>
>>>> at
>>>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
>>>>
>>>> at
>>>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
>>>>
>>>> at
>>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
>>>>
>>>> at
>>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPSer

Re: [Dev] [DEV] Problem in dynamically changing image reference

2015-02-27 Thread Malith Munasinghe
Hi Ishara,

To get the second list item try[1] with replacing n with intended item
number.

[1]
$( ".list1 li img:nth-child(n)" );

Also add the class name into  tag as .

For further reference you can try [2] for JQuery :nth-child() selector.

[2] http://api.jquery.com/nth-child-selector/

Regards,

On Fri, Feb 27, 2015 at 3:22 PM, Ishara Cooray  wrote:

> Hi,
> I have an img tag inside a unordered list item as follows.
>
> 
>  "img-list2">UPPERCASE,
>  "img-list3">lowercase,
>  "img-list4">digits,
>  "img-list5">Special characters.
> 
> I want to change this image dynamically. There fore i was trying to get
> the img reference by
> var image = $('.list1 li img:first');
> image.attr("src", v);
> But this does not update the image as i expected.
> How can i get this working?
>
> Also, i can get the first   as above. But how can i get the  of
> second list item?
>
> Thanks
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][API-M] Error in WikipediaAPI sample

2015-02-23 Thread Malith Munasinghe
Hi Kavinda,

Thank You for the heads up! I also met with this error. Changing the curl
script helped me to handle that error.

Also I tried ignoring the error as well. The sample worked despite the
error.

Thanks,

On Mon, Feb 23, 2015 at 5:51 PM, Vinod Kavinda  wrote:

> hi,
> When following the [1], it gives the following error,
>
> 'org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:
> Resource does not exist at path
> /_system/governance/apimgt/applicationdata/provider/admin/admin/1.0.0/api'
>
> when doing the step 2.
>
> Reason for this is a wrong argument in the third curl script,
> in APIPopulator.sh file. value for the attribute 'name' should be changed
> from "admin" to  "WikipediaAPI".
>
> I did the change and it worked perfectly. It is better if someone could
> update the codebase.
>
> [1] -
> https://docs.wso2.com/display/AM180/Deploying+and+Testing+a+Wikipedia+API
>
> Regards,
> Vinod Kavinda
>
>
> --
> Vinod Kavinda
> *Software Engineer, **WSO2, Inc <http://www.wso2.com>.*
> Mobile : +94 (0) 712 415544
> vi...@wso2.com
>
> ___________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DSS] IOException: Server returned HTTP response code: 500 when running FileService Sample in DSS

2015-02-17 Thread Malith Munasinghe
gt;>>  [java] at
>>>> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
>>>>  [java] at
>>>> java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
>>>>  [java] at
>>>> java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
>>>>  [java] at
>>>> java.awt.Container.dispatchEventImpl(Container.java:2273)
>>>>  [java] at java.awt.Component.dispatchEvent(Component.java:4687)
>>>>  [java] at
>>>> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:723)
>>>>  [java] at java.awt.EventQueue.access$200(EventQueue.java:103)
>>>>  [java] at java.awt.EventQueue$3.run(EventQueue.java:682)
>>>>  [java] at java.awt.EventQueue$3.run(EventQueue.java:680)
>>>>  [java] at java.security.AccessController.doPrivileged(Native
>>>> Method)
>>>>  [java] at
>>>> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>>>>  [java] at
>>>> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
>>>>  [java] at java.awt.EventQueue$4.run(EventQueue.java:696)
>>>>  [java] at java.awt.EventQueue$4.run(EventQueue.java:694)
>>>>  [java] at java.security.AccessController.doPrivileged(Native
>>>> Method)
>>>>  [java] at
>>>> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>>>>  [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
>>>>  [java] at
>>>> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
>>>>  [java] at
>>>> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
>>>>  [java] at
>>>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
>>>>  [java] at
>>>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
>>>>  [java] at
>>>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
>>>>  [java] at
>>>> java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
>>>
>>>
>>> Any help to solve this would be nice.
>>>
>>> Thanks and Best Regards
>>> --
>>> Thusitha Dayaratne
>>> Software Engineer | WSO2 Inc
>>>
>>> Emailthusit...@wso2.com
>>> Mobile  +94712756809
>>> Blog  alokayasoya.blogspot.com
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Chathura Priyankara
>> Software Engineer | WSO2 Inc.
>> Mobile : +94718795340
>> Blog : www.codeoncloud.blogspot.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vinod Kavinda
> *Software Engineer*
> *WSO2, Inc <http://www.wso2.com>.*
> Mobile : +94 (0) 712 415544
> vi...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DSS] Google spreadsheet sample documentation - wrong operation name

2015-02-17 Thread Malith Munasinghe
In the Google spreadsheet sample documentation [1] under running the sample
<https://docs.wso2.com/display/DSS322/Google+Spreadsheet+Sample#GoogleSpreadsheetSample-Runningthesample>
[2]
operation name to execute is mentioned as "getProducts". Actually the
operation name should be corrected as getCustomers.

[1] https://docs.wso2.com/display/DSS322/Google+Spreadsheet+Sample

[2]
[image: Inline image 1]

Thank you,

-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][AS] JAX-WS Samples NoClassDefFoundError for SAAJMetaFactoryImpl

2015-02-15 Thread Malith Munasinghe
Hi Kasun,

Thanks for the prompt response.
I'm using jdk1.7.0_75


On Mon, Feb 16, 2015 at 11:53 AM, KasunG Gajasinghe  wrote:

> What's the JDK you are running this on?
>
> On Mon, Feb 16, 2015 at 11:28 AM, Malith Munasinghe 
> wrote:
>
>> When running client using ./run-client in sample [1] a
>> noClassDefFoundError occurs as [2] on the server. Any resolutions for this ?
>>
>> Thanks,
>>
>> [1]
>> https://docs.wso2.com/display/AS521/WS-Security+Sample+on+Signature+and+Encryption
>>
>> [2]
>> [2015-02-16 10:33:41,849] ERROR
>> {org.apache.catalina.core.StandardWrapperValve} -  Servlet.service() for
>> servlet [JAXServlet] in context with path [/sign_encrypt_jaxws] threw
>> exception [Servlet execution threw an exception] with root cause
>>
>> java.lang.NoClassDefFoundError: Could not initialize class
>> com.sun.xml.internal.messaging.saaj.soap.SAAJMetaFactoryImpl
>>
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>>
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>>
>> at java.lang.Class.newInstance(Class.java:379)
>>
>> at javax.xml.soap.FactoryFinder.newInstance(FactoryFinder.java:47)
>>
>> at javax.xml.soap.FactoryFinder.find(FactoryFinder.java:194)
>>
>> at javax.xml.soap.FactoryFinder.find(FactoryFinder.java:98)
>>
>> at javax.xml.soap.SAAJMetaFactory.getInstance(SAAJMetaFactory.java:73)
>>
>> at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:146)
>>
>> at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:111)
>>
>> at
>> org.apache.cxf.binding.soap.saaj.SAAJFactoryResolver.createMessageFactory(SAAJFactoryResolver.java:56)
>>
>> at
>> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.getFactory(SAAJInInterceptor.java:146)
>>
>> at
>> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.handleMessage(SAAJInInterceptor.java:128)
>>
>> at
>> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.handleMessage(SAAJInInterceptor.java:102)
>>
>> at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
>>
>> at
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>>
>> at
>> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
>>
>> at
>> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
>>
>> at
>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
>>
>> at
>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
>>
>> at
>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
>>
>> at
>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
>>
>> at
>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)
>>
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>>
>> at
>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
>>
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>>
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>>
>> at
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>>
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>>
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>>
>> at
>> org.wso2.carbon.statistics.webapp.RequestIntercepterValve.invoke(RequestIntercepterValve.java:43)
>>
>> at
>> org.wso2.carbon.bam.webapp.stat.publisher.WebAppStatisticPublisherValve.invoke(WebAppStatisticPublisherValve.java:104)
>>
>> at
>> org.wso2.carbon.tom

[Dev] [DEV][AS] JAX-WS Samples NoClassDefFoundError for SAAJMetaFactoryImpl

2015-02-15 Thread Malith Munasinghe
(ThreadPoolExecutor.java:1145)

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

at java.lang.Thread.run(Thread.java:745)
-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Install and run ActiveMQ broker on an EC2 instance

2015-02-13 Thread Malith Munasinghe
Hi Farasath,

Try Checking for ActiveMQ package repo as in answer in [1]. If not try
creating it as mentioned.

Also you can try [2] for any further fails by creating a config file.

[1]
http://stackoverflow.com/questions/17189053/how-to-start-activemq-on-an-ec2-machine

[2]
http://stackoverflow.com/questions/11231640/activemq-will-not-start-on-my-ubuntu-vm

On Sat, Feb 14, 2015 at 9:15 AM, Shavantha Weerasinghe 
wrote:

> Hi Farasath
>
> Try export ACTIVEMQ_OPTS_MEMORY="-Xmx512M -Xms512M" . This forum[1] should
> have the answer to the issue
>
> [1]
> http://activemq.2283324.n4.nabble.com/Activemq-on-amazon-ec2-td4667506.html
>
> Regards,
> Shavantha Weerasinghe
> Senior Software Engineer QA
> WSO2, Inc.
> lean.enterprise.middleware.
> http://wso2.com
> http://wso2.org
> Tel : 94 11 214 5345
> Fax :94 11 2145300
>
>
> On Fri, Feb 13, 2015 at 11:32 PM, Farasath Ahamed 
> wrote:
>
>> I am trying to do $subject.
>>
>> I tried to do this in two ways
>>
>> 1. installing using apt-get after ssh into ec2
>> 2. copying tar.gz using scp client
>>
>> in both ways when i run the broker using
>> bin/activemq start
>>
>> which gives me,
>>
>> *INFO: Loading '/etc/default/activemq'*
>> *INFO: Loading '/home/ubuntu/.activemqrc'*
>> *INFO: Using java '/usr/bin/java'*
>> *INFO: Starting - inspect logfiles specified in logging.properties and
>> log4j.properties to get details*
>> *INFO: pidfile created :
>> '/home/ubuntu/apache-activemq-5.10.0/data/activemq-ip-172-31-20-55.pid'
>> (pid '18284')*
>>
>> it creates a pid file, but a subsequent
>>
>> bin/activemq status reveals
>>
>> *INFO: Loading '/etc/default/activemq'*
>> *INFO: Loading '/home/ubuntu/.activemqrc'*
>> *INFO: Using java '/usr/bin/java'*
>> *ActiveMQ not running*
>>
>>
>> am I missing something here?
>> Can someone point me to the correct way of getting this done?
>>
>>
>>
>> --
>> *Farasath Ahamed*
>> Software Engineering Intern
>> WSO2 Inc.; http://wso2.com
>>
>> Mobile: +94 777 603 866
>> E-Mail:  farasath <http://goog_1999535192>a...@wso2.com
>> Blog: http://thepseudocode.blogspot.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
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Jaggery] Unzipping an uploaded .zip file

2015-02-13 Thread Malith Munasinghe
Hi Dulakdhi,

I found a previous thread [1] which has discussed a similar issue. I think
you can refer to it there are some other solutions as well.

[1] http://marc.info/?l=wsf-c-dev&m=140672406402585&w=2

Thank you,

On Fri, Feb 13, 2015 at 3:05 PM, Dulakshi Vihanga 
wrote:

> Hi,
>
> I'm in the process of developing store-admin jaggery application. I need
> to allow a user to upload a zip file through the application and once
> uploaded that needs to be unzipped and stored in a folder at serverside. I
> came across zip4j <http://www.lingala.net/zip4j/download.php> library
> which does the required process. But I'd like to know what is the standard
> way to do this and which library to use. Appreciate any help on this.
>
> [1] zip4j <http://www.lingala.net/zip4j/download.php>
>
> Thank You!!
> --
> W.G. Dulakshi Vihanga
> Software Engineer Intern
> WSO2
> Mob : +94715511497
> Email: dulaks...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [FYI] - For folks who are new to ESB

2015-02-12 Thread Malith Munasinghe
Thank you for the share!

On Fri, Feb 13, 2015 at 9:18 AM, Shamin Goonetileke  wrote:

> thank you :D
>
> On Fri, Feb 13, 2015 at 8:19 AM, Kala Weerawardana  wrote:
>
>> Thank you Sew :)
>>
>> On Fri, Feb 13, 2015 at 7:00 AM, Sewmini Jayaweera 
>> wrote:
>>
>>> Hi,
>>>
>>> When I was going through the ESB I found this article very helpful to
>>> understand how mediators work. Hope this will help for who ever who is
>>> interested in leaning ESB :)
>>>
>>>
>>> http://wso2.com/library/articles/2011/01/wso2-esb-by-example-service-chaining/#scenario
>>>
>>>
>>> Thanks & Regards
>>> Sewmini Jayaweera
>>> *Software Engineer - QA Team*
>>> Mobile: +94 (0) 773 381 250
>>> sewm...@wso2.com
>>>
>>
>>
>>
>> --
>> Kala C. Weerawardana
>> *Software Engineer - QA Team*
>> *WSO2 Inc. *
>> Mobile :  +94 (0) 716189886 +94 (0) 772877683
>> Blog : http://castakai.blogspot.com
>> k...@wso2.com
>>
>
>
>
> --
> Intern - Software Engineer
>  WSO2, Inc.http://wso2.com/ <http://wso2.com/>
> Mobile :- +94 71 6290133
> Email :- sha...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Esb] Sample 250 ActiveMQ-core module name change since release 5.8.0

2015-02-09 Thread Malith Munasinghe
Thanks Thayalan.

On Mon, Feb 9, 2015 at 3:03 PM, Thayalan  wrote:

> It has been clearly mention here in [1]. We may point to the sample as
> well for clarity.
>
> 1. https://docs.wso2.com/display/ESB481/Configure+with+ActiveMQ
>
> On Mon, Feb 9, 2015 at 2:18 PM, Malith Munasinghe 
> wrote:
>
>> In sample 250 [1] for ActiveMQ 5.7 a file to be copied from 
>> /lib
>> to /repository/components/lib is mentioned as `
>> activemq-core-5.7.0.jar`.
>>
>> According to [2] since ActiveMQ 5.8.0 `activemq-core-5.7.0.jar` is
>> replaced by `activemq-client-.jar`
>>
>> I think the sample document should be updated with this information.
>>
>> [1]
>> https://docs.wso2.com/display/ESB481/Sample+250%3A+Introduction+to+Switching+Transports
>> [2] http://activemq.apache.org/activemq-580-release.html
>>
>> --
>> Malith Munasinghe | Software Engineer
>> M: +94 (071) 9401122
>> E: mali...@wso2.com
>> W: http://wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Regards,
> Thayalan Sivapaleswararajah
> Associate Technical Lead - QA
> Mob: +94(0)777872485
> Tel : +94(0)(11)2145345
> Fax : +94(0)(11)2145300
> Email: thaya...@wso2.com
>
>
> *Disclaimer*: *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, retransmit, 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.*
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Esb] Sample 250 ActiveMQ-core module name change since release 5.8.0

2015-02-09 Thread Malith Munasinghe
In sample 250 [1] for ActiveMQ 5.7 a file to be copied from /lib
to /repository/components/lib is mentioned as `
activemq-core-5.7.0.jar`.

According to [2] since ActiveMQ 5.8.0 `activemq-core-5.7.0.jar` is replaced
by `activemq-client-.jar`

I think the sample document should be updated with this information.

[1]
https://docs.wso2.com/display/ESB481/Sample+250%3A+Introduction+to+Switching+Transports
[2] http://activemq.apache.org/activemq-580-release.html

-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] InvalidSecurity exception on using WS-Security

2015-02-08 Thread Malith Munasinghe
Thank you guys got the issue resolved by replacing the bouncy castle jar as
in [1].

[1].
http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-Exception-occurs-when-running-ESB-sample-200-td89572.html

On Mon, Feb 9, 2015 at 12:07 PM, Chathura Priyankara 
wrote:

> Hi Malith,
>
> I got the same issue when I'm having both JDK 1.7 and 1.8 installed in my
> computer. However I was able to solve the problem and run the ESB sample
> 100 successfully after making JDK 1.7 as the default Java version in my
> machine.
>
> Thanks!
> Best regards,
>
> On Mon, Feb 9, 2015 at 11:11 AM, Chathura Priyankara 
> wrote:
>
>> Hi Malith,
>>
>> I got the same issue when I'm having both java 1.7 and 1.8 installed in
>> my computer. How ever I was able to solve the problem and run the ESB
>> sample 100 successfully after making Java 1.7 as the default Java version
>> in my machine.
>>
>> Thanks!
>> Best regrads,
>>
>> On Mon, Feb 9, 2015 at 11:03 AM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Hi Malith,
>>>
>>> I got the same error when I tried with JDK 1.7u7. I was able to fix that
>>> using [1]
>>> [1] -
>>> http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html
>>>
>>> Thanks
>>>
>>> On Mon, Feb 9, 2015 at 10:33 AM, Malith Munasinghe 
>>> wrote:
>>>
>>>>
>>>> While doing ESB 4.8.1 sample #100 Using WS-Security for Outgoing
>>>> Messages I encountered the following error [1] on ESB.  Also the
>>>> axis2Server threw the error [2].  JDK 1.7u75 is used with necessary
>>>> prerequisites mentioned on the documentation.
>>>>
>>>> Also I referred to [3], [4] links for a resolution as well but the
>>>> error continues.
>>>>
>>>> When I ran the same sample using JDK 1.8 expected results were
>>>> achieved.
>>>>
>>>> Is there anything that I have to do to get it working on JDK 1.7 as
>>>> well ?
>>>>
>>>>
>>>> *[1] ESB Error*
>>>>
>>>> [2015-02-09 09:45:38,191] ERROR - AxisEngine InvalidSecurity
>>>> org.apache.axis2.AxisFault: InvalidSecurity
>>>> at
>>>> org.apache.rampart.handler.PostDispatchVerificationHandler.invoke(PostDispatchVerificationHandler.java:164)
>>>> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
>>>> at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
>>>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
>>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
>>>> at
>>>> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
>>>> at
>>>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>>>> 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)
>>>> [2015-02-09 09:45:38,193] ERROR - ClientWorker Fault processing
>>>> response message through Axis2
>>>> org.apache.axis2.AxisFault: InvalidSecurity
>>>> at
>>>> org.apache.rampart.handler.PostDispatchVerificationHandler.invoke(PostDispatchVerificationHandler.java:164)
>>>> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
>>>> at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
>>>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
>>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
>>>> at
>>>> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
>>>> at
>>>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>>>> 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)
>>>>
>>>>
>>>>
>>>> *[2] axis2Server error*
>>>>
>>>> 15/02/09 09:45:37 ERROR engine.AxisEngine: An unsupported signature or
>>>> encryption algorithm was used (unsupported key transport encryption
>>>> algorithm: No 

[Dev] [ESB] InvalidSecurity exception on using WS-Security

2015-02-08 Thread Malith Munasinghe
(RampartReceiver.java:92)
... 11 more
Caused by: java.security.NoSuchAlgorithmException: Cannot find any provider
supporting RSA/ECB/OAEPPadding
at javax.crypto.Cipher.getInstance(Cipher.java:524)
at
org.apache.ws.security.util.WSSecurityUtil.getCipherInstance(WSSecurityUtil.java:777)
... 18 more
15/02/09 09:45:37 ERROR nhttp.ServerWorker: Error processing POST request
org.apache.axis2.AxisFault: An unsupported signature or encryption
algorithm was used (unsupported key transport encryption algorithm: No such
algorithm: http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p); nested
exception is:
java.security.NoSuchAlgorithmException: Cannot find any provider supporting
RSA/ECB/OAEPPadding
at
org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
at
org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at
org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:459)
at
org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:279)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
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)
Caused by: org.apache.ws.security.WSSecurityException: An unsupported
signature or encryption algorithm was used (unsupported key transport
encryption algorithm: No such algorithm:
http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p); nested exception is:
java.security.NoSuchAlgorithmException: Cannot find any provider supporting
RSA/ECB/OAEPPadding
at
org.apache.ws.security.util.WSSecurityUtil.getCipherInstance(WSSecurityUtil.java:785)
at
org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:156)
at
org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:119)
at
org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:95)
at
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:332)
at
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:249)
at org.apache.rampart.RampartEngine.process(RampartEngine.java:214)
at
org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
... 11 more
Caused by: java.security.NoSuchAlgorithmException: Cannot find any provider
supporting RSA/ECB/OAEPPadding
at javax.crypto.Cipher.getInstance(Cipher.java:524)
at
org.apache.ws.security.util.WSSecurityUtil.getCipherInstance(WSSecurityUtil.java:777)
... 18 more

[3]
http://evanthika.blogspot.com/2014/02/solving-orgapachewssecuritywssecurityex.html

[4]
http://stackoverflow.com/questions/20182314/error-engine-axisengine-an-unsupported-signature-or-encryption-algorithm-was-us


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev