Re: [Dev] Create stand-alone testing tool using JMeter

2017-11-09 Thread Anuruddha Liyanarachchi
Hi Kausn,

This blog [1] explains how to run JMeter scripts using a standalone java
program using JMeter jars.

[1]
https://www.blazemeter.com/blog/5-ways-launch-jmeter-test-without-using-jmeter-gui

On Fri, Nov 10, 2017 at 7:38 AM, Irham Iqbal  wrote:

> Hi Kasun,
>
> As I understood you are trying to run Jmeter scripts from your standalone
> application. This is an example[1] for running Jmeter scripts using
> jmeter-maven-plugin
>
> [1] https://github.com/jmeter-maven-plugin/jmeter-maven-plugin-example
>
> Thanks,
> Iqbal
>
> On Wed, Nov 8, 2017 at 11:17 AM, Kasun Bandara  wrote:
>
>> Hi All,
>>
>> I'm recently working on developing *Scenario Testing Framework *as a
>> stand-alone application. The problem encountered to me was, even though I
>> use JMeter API to run test suites it still requires JMeter home path in
>> the local installation. Is there a workaround to run JMeter tests only
>> using JMeter jars?
>>
>> There is one alternative exists that run the tests using maven, but here
>> I'm interested in executing the test using JMeter APIs as I have to get
>> back test results for further analysis.
>>
>> Thanks and Regards,
>> --
>> *Kasun Bandara*
>> Software Engineer | WSO2
>>
>> Mobile: +94715787004 <+94%2071%20578%207004>
>> 
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Irham Iqbal
> Software Engineer
> WSO2
> phone: +94 777888452
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Thanks and Regards,*
Anuruddha Lanka Liyanarachchi
Software Engineer - WSO2
Mobile : +94 (0) 712762611
Tel  : +94 112 145 345
a nurudd...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Usage of "sticky cookie JSESSIONID" parameter.

2017-11-09 Thread Senuwan Withana
Hi Pubudu,

Thanks for information, I will try out ip_hash;

*Senuwan Withana*
Software Engineer - Support Team | WSO2

Email : senu...@wso2.com
Mobile: 94773212853
Web: http://www.wso2.com



On Fri, Nov 10, 2017 at 9:52 AM, Pubudu Gunatilaka  wrote:

> Hi Senuwan,
>
> For session persistence, you can use ip_hash instead of sticky sessions
> [1]. Nginx community version does not support sticky sessions.
>
> [1] - https://docs.wso2.com/display/CLUSTER44x/Configuring+NGINX
>
> Thank you!
>
> On Thu, Nov 9, 2017 at 4:38 PM, Senuwan Withana  wrote:
>
>> Hi Abimaran,
>>
>> No, I have not installed it. I just follow the documentation steps.
>>
>> *Senuwan Withana*
>> Software Engineer - Support Team | WSO2
>>
>> Email : senu...@wso2.com
>> Mobile: 94773212853
>> Web: http://www.wso2.com
>>
>>
>>
>> On Thu, Nov 9, 2017 at 4:34 PM, Abimaran Kugathasan 
>> wrote:
>>
>>> Hi Senuwan,
>>>
>>> Have you installed sticky module on your Nginx?
>>>
>>> [1]: https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/overview
>>>
>>> On Thu, Nov 9, 2017 at 2:29 PM, Senuwan Withana 
>>> wrote:
>>>
 Hi Team,

 I would like to know what is the usage of below parameter, in the NGINX
 configuring file which located on [1] document.


 sticky cookie JSESSIONID;


 I got following error message when restarts my NGINX service, but when
 I removed above parameter no issue came.


 -- Unit nginx.service has begun starting up.
 Nov 09 14:15:11 senuwan-ThinkPad nginx[3869]: nginx: [emerg] unknown
 directive "sticky" in /etc/nginx/conf.d/am.https.conf:2
 Nov 09 14:15:11 senuwan-ThinkPad nginx[3869]: nginx: configuration file
 /etc/nginx/nginx.conf test failed
 Nov 09 14:15:11 senuwan-ThinkPad systemd[1]: nginx.service: Control
 process exited, code=exited status=1
 Nov 09 14:15:11 senuwan-ThinkPad systemd[1]: Failed to start A high
 performance web server and a reverse proxy server.


 [1] https://docs.wso2.com/display/CLUSTER44x/Clustering+the+
 Gateway#ClusteringtheGateway-Configuringtheloadbalancer

 Regards,

 *Senuwan Withana*
 Software Engineer - Support Team | WSO2

 Email : senu...@wso2.com
 Mobile: 94773212853
 Web: http://www.wso2.com



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


>>>
>>>
>>> --
>>> Thanks
>>> Abimaran Kugathasan
>>> Senior Software Engineer - API Technologies
>>>
>>> Email : abima...@wso2.com
>>> Mobile : +94 773922820 <+94%2077%20392%202820>
>>>
>>> 
>>> 
>>>   
>>> 
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Pubudu Gunatilaka*
> Committer and PMC Member - Apache Stratos
> Senior Software Engineer
> WSO2, Inc.: http://wso2.com
> mobile : +94774078049 <%2B94772207163>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] TensorFlow Stream Processor Extension

2017-11-09 Thread Niruhan Viswarupan
I could get the extension to make predictions from the KMeans saved model I
prepared. Please find the extension here

and
the test case here


Regards,


*Niruhan Viswarupan*
Engineering Intern | WSO2
Phone: +94776468013

On Fri, Nov 10, 2017 at 10:42 AM, Niruhan Viswarupan 
wrote:

> [-Analytics-group, -engineering-group, + dev]
>
> The output tensor can be a single scalar value or a multidimensional
> array. It totally *depends on the model* and how its output is configured.
>
> For example,
>
>1. if we have a model for classification and its prediction is
>configured to send a string of the class name then we will get a *scalar
>(A Tensor of 0 dimension)* string tensor.
>2. If we have a clustering model it can output the coordinates of the
>closest centroid as a tensor which can be a *vector (A tensor of 1
>dimension) *with any length (For example vector length will be 2 in
>the case of Cartesian plane, 3 in the case of 3D coordinate system etc).
>
> *(Note:* The above examples have only a few values in output Tensors. But
> it is possible for someone to build a TensorFlow model that sends out a
> Tensor with thousands of dimensions and thousands of length per dimension.)
>
> *Terminology:*
> eg. Consider a 3x4 *matrix (a tensor of 2 dimensions)* as below,
>
> 1 2 3 4
> 5 6 7 8
> 9 1 2 3
> This has 2 dimensions and length of 1st dimension is 3 and the 2nd
> dimension is 4.
>
> Also *problems identified in sending out multidimensional arrays in the
> output stream* are,
>
>1. Its a *challenge to create primitive type multidimensional arrays*
>(This is the type supported by Tensors copying method) whose *dimensions
>are unknown at compile time* in Java (I welcome any suggestion as to
>how this could be done)
>2. As pointed out by Tishan *other extensions of Siddhi are not
>configured to handle arrays*. So cannot process the output arrays of
>this extension further in Siddhi
>
> Considering the above issues we decided to flatten the Tensor and send all
> the values in a tensor one by one in primitive type. *In most cases
> output Tensor will have a small number of values*.
>
> Regards,
>
> *Niruhan Viswarupan*
> Engineering Intern | WSO2
> Phone: +94776468013 <+94%2077%20646%208013>
>
> On Thu, Nov 9, 2017 at 11:41 PM, Sriskandarajah Suhothayan 
> wrote:
>
>> Does Tensor always output multidimensional array or only for some cases?
>> If it returns a multidimensional array what sort of processing the user
>> should be doing to get sense out of it?
>>
>> My doubt is having a way to send multidimensional array out will solve
>> the user's problem.
>>
>> Regards
>> Suho
>>
>> On Thu, Nov 9, 2017 at 8:45 AM, Niruhan Viswarupan 
>> wrote:
>>
>>> Hi,
>>>
>>> This is regarding supporting predictions from TensorFlow saved models
>>> using stream processor.
>>>
>>> The *predictions (outputs) from a TensorFlow model in Java API will be
>>> a Tensor
>>> 
>>> object*. This can have any number of dimensions and any shape. This
>>> means that *we will not know the shape of the output multidimensional
>>> array in the compile time*. This will only come to light in the run
>>> time when the user input model is loaded. I was stuck with creating
>>> multidimensional arrays of run time specified shape. It is solvable for
>>> object arrays since they can be recursively built. But the copyTo()
>>> 
>>>  method
>>> of Tensor works only for primitive type arrays.
>>>
>>> So after a discussion with Tishan we *decided to flatten the
>>> multidimensional Tensor* and output them as one-by-one primitive types
>>> that Siddhi handles. For example a 2x3 matrix Tensor [ [1,2,3], [4,5,6] ]
>>> will be output as 6 separate int into the event.
>>>
>>> Please find the *user story here
>>> *
>>>  and
>>> the preliminary *coding works here
>>> *
>>> .
>>>
>>> Regards,
>>>
>>> *Niruhan Viswarupan*
>>> Engineering Intern | WSO2
>>> Phone: +94776468013 <077%20646%208013>
>>>
>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Associate Director / Architect
>> *WSO2 Inc. *http://wso2.com
>> * *
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | 

Re: [Dev] Usage of "sticky cookie JSESSIONID" parameter.

2017-11-09 Thread Pubudu Gunatilaka
Hi Abimaran,

Yes, that is also possible.

Thank you!

On Fri, Nov 10, 2017 at 10:21 AM, Abimaran Kugathasan 
wrote:

> Hi Pubudu,
>
> We can recompile and install sticky module on community version.
>
> On Fri, Nov 10, 2017 at 9:55 AM, Senuwan Withana  wrote:
>
>> Hi Pubudu,
>>
>> Thanks for information, I will try out ip_hash;
>>
>> *Senuwan Withana*
>> Software Engineer - Support Team | WSO2
>>
>> Email : senu...@wso2.com
>> Mobile: 94773212853
>> Web: http://www.wso2.com
>>
>>
>>
>> On Fri, Nov 10, 2017 at 9:52 AM, Pubudu Gunatilaka 
>> wrote:
>>
>>> Hi Senuwan,
>>>
>>> For session persistence, you can use ip_hash instead of sticky sessions
>>> [1]. Nginx community version does not support sticky sessions.
>>>
>>> [1] - https://docs.wso2.com/display/CLUSTER44x/Configuring+NGINX
>>>
>>> Thank you!
>>>
>>> On Thu, Nov 9, 2017 at 4:38 PM, Senuwan Withana 
>>> wrote:
>>>
 Hi Abimaran,

 No, I have not installed it. I just follow the documentation steps.

 *Senuwan Withana*
 Software Engineer - Support Team | WSO2

 Email : senu...@wso2.com
 Mobile: 94773212853
 Web: http://www.wso2.com



 On Thu, Nov 9, 2017 at 4:34 PM, Abimaran Kugathasan 
 wrote:

> Hi Senuwan,
>
> Have you installed sticky module on your Nginx?
>
> [1]: https://bitbucket.org/nginx-goodies/nginx-sticky-module
> -ng/overview
>
> On Thu, Nov 9, 2017 at 2:29 PM, Senuwan Withana 
> wrote:
>
>> Hi Team,
>>
>> I would like to know what is the usage of below parameter, in the
>> NGINX configuring file which located on [1] document.
>>
>>
>> sticky cookie JSESSIONID;
>>
>>
>> I got following error message when restarts my NGINX service, but
>> when I removed above parameter no issue came.
>>
>>
>> -- Unit nginx.service has begun starting up.
>> Nov 09 14:15:11 senuwan-ThinkPad nginx[3869]: nginx: [emerg] unknown
>> directive "sticky" in /etc/nginx/conf.d/am.https.conf:2
>> Nov 09 14:15:11 senuwan-ThinkPad nginx[3869]: nginx: configuration
>> file /etc/nginx/nginx.conf test failed
>> Nov 09 14:15:11 senuwan-ThinkPad systemd[1]: nginx.service: Control
>> process exited, code=exited status=1
>> Nov 09 14:15:11 senuwan-ThinkPad systemd[1]: Failed to start A high
>> performance web server and a reverse proxy server.
>>
>>
>> [1] https://docs.wso2.com/display/CLUSTER44x/Clustering+the+
>> Gateway#ClusteringtheGateway-Configuringtheloadbalancer
>>
>> Regards,
>>
>> *Senuwan Withana*
>> Software Engineer - Support Team | WSO2
>>
>> Email : senu...@wso2.com
>> Mobile: 94773212853
>> Web: http://www.wso2.com
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820 <+94%2077%20392%202820>
>
> 
> 
>   
> 
>
>

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


>>>
>>>
>>> --
>>> *Pubudu Gunatilaka*
>>> Committer and PMC Member - Apache Stratos
>>> Senior Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> mobile : +94774078049 <%2B94772207163>
>>>
>>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820 <+94%2077%20392%202820>
>
> 
> 
>   
> 
>
>


-- 
*Pubudu Gunatilaka*
Committer and PMC Member - Apache Stratos
Senior Software Engineer
WSO2, Inc.: http://wso2.com
mobile : +94774078049 <%2B94772207163>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Usage of "sticky cookie JSESSIONID" parameter.

2017-11-09 Thread Abimaran Kugathasan
Hi Pubudu,

We can recompile and install sticky module on community version.

On Fri, Nov 10, 2017 at 9:55 AM, Senuwan Withana  wrote:

> Hi Pubudu,
>
> Thanks for information, I will try out ip_hash;
>
> *Senuwan Withana*
> Software Engineer - Support Team | WSO2
>
> Email : senu...@wso2.com
> Mobile: 94773212853
> Web: http://www.wso2.com
>
>
>
> On Fri, Nov 10, 2017 at 9:52 AM, Pubudu Gunatilaka 
> wrote:
>
>> Hi Senuwan,
>>
>> For session persistence, you can use ip_hash instead of sticky sessions
>> [1]. Nginx community version does not support sticky sessions.
>>
>> [1] - https://docs.wso2.com/display/CLUSTER44x/Configuring+NGINX
>>
>> Thank you!
>>
>> On Thu, Nov 9, 2017 at 4:38 PM, Senuwan Withana  wrote:
>>
>>> Hi Abimaran,
>>>
>>> No, I have not installed it. I just follow the documentation steps.
>>>
>>> *Senuwan Withana*
>>> Software Engineer - Support Team | WSO2
>>>
>>> Email : senu...@wso2.com
>>> Mobile: 94773212853
>>> Web: http://www.wso2.com
>>>
>>>
>>>
>>> On Thu, Nov 9, 2017 at 4:34 PM, Abimaran Kugathasan 
>>> wrote:
>>>
 Hi Senuwan,

 Have you installed sticky module on your Nginx?

 [1]: https://bitbucket.org/nginx-goodies/nginx-sticky-module
 -ng/overview

 On Thu, Nov 9, 2017 at 2:29 PM, Senuwan Withana 
 wrote:

> Hi Team,
>
> I would like to know what is the usage of below parameter, in the
> NGINX configuring file which located on [1] document.
>
>
> sticky cookie JSESSIONID;
>
>
> I got following error message when restarts my NGINX service, but when
> I removed above parameter no issue came.
>
>
> -- Unit nginx.service has begun starting up.
> Nov 09 14:15:11 senuwan-ThinkPad nginx[3869]: nginx: [emerg] unknown
> directive "sticky" in /etc/nginx/conf.d/am.https.conf:2
> Nov 09 14:15:11 senuwan-ThinkPad nginx[3869]: nginx: configuration
> file /etc/nginx/nginx.conf test failed
> Nov 09 14:15:11 senuwan-ThinkPad systemd[1]: nginx.service: Control
> process exited, code=exited status=1
> Nov 09 14:15:11 senuwan-ThinkPad systemd[1]: Failed to start A high
> performance web server and a reverse proxy server.
>
>
> [1] https://docs.wso2.com/display/CLUSTER44x/Clustering+the+
> Gateway#ClusteringtheGateway-Configuringtheloadbalancer
>
> Regards,
>
> *Senuwan Withana*
> Software Engineer - Support Team | WSO2
>
> Email : senu...@wso2.com
> Mobile: 94773212853
> Web: http://www.wso2.com
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Thanks
 Abimaran Kugathasan
 Senior Software Engineer - API Technologies

 Email : abima...@wso2.com
 Mobile : +94 773922820 <+94%2077%20392%202820>

 
 
   
 


>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Pubudu Gunatilaka*
>> Committer and PMC Member - Apache Stratos
>> Senior Software Engineer
>> WSO2, Inc.: http://wso2.com
>> mobile : +94774078049 <%2B94772207163>
>>
>>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820


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


Re: [Dev] [EI 6.1.1] [update-1510032522941] UI Synapse editor is extremely slow

2017-11-09 Thread Lahiru Sandaruwan
Hi Nandika,

I just tried with Chrome and Firefox again. This time it doesn't show any
lagging. Looks like it was an intermittent issue.

Thanks.

On Thu, Nov 9, 2017 at 8:21 PM, Nandika Jayawardana 
wrote:

> Hi Lahiru,
>
> Can you try with Chome also and let us know. This is not a known behaviour.
>
> Regards
> Nandika
>
> On Fri, Nov 10, 2017 at 5:32 AM, Lahiru Sandaruwan 
> wrote:
>
>> Just noticed $subject.
>>
>> I'm using Firefox. Created a simple Rest API with a send mediator. Known
>> behavior?
>>
>> Thanks.
>>
>> --
>> --
>>
>> Lahiru Sandaruwan
>> Associate Technical Lead,
>> WSO2 Inc., http://wso2.com
>>
>> lean.enterprise.middleware
>>
>> m: +1 408 667 8686 <+1%20408-667-8686>
>> e: lahi...@wso2.com b: https://medium.com/@lahirugmg
>> in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
>
>
> --
> Nandika Jayawardana
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
>



-- 
--

Lahiru Sandaruwan
Associate Technical Lead,
WSO2 Inc., http://wso2.com

lean.enterprise.middleware

m: +1 408 667 8686
e: lahi...@wso2.com b: https://medium.com/@lahirugmg
in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] TensorFlow Stream Processor Extension

2017-11-09 Thread Niruhan Viswarupan
[-Analytics-group, -engineering-group, + dev]

The output tensor can be a single scalar value or a multidimensional array.
It totally *depends on the model* and how its output is configured.

For example,

   1. if we have a model for classification and its prediction is
   configured to send a string of the class name then we will get a *scalar
   (A Tensor of 0 dimension)* string tensor.
   2. If we have a clustering model it can output the coordinates of the
   closest centroid as a tensor which can be a *vector (A tensor of 1
   dimension) *with any length (For example vector length will be 2 in the
   case of Cartesian plane, 3 in the case of 3D coordinate system etc).

*(Note:* The above examples have only a few values in output Tensors. But
it is possible for someone to build a TensorFlow model that sends out a
Tensor with thousands of dimensions and thousands of length per dimension.)

*Terminology:*
eg. Consider a 3x4 *matrix (a tensor of 2 dimensions)* as below,

1 2 3 4
5 6 7 8
9 1 2 3
This has 2 dimensions and length of 1st dimension is 3 and the 2nd
dimension is 4.

Also *problems identified in sending out multidimensional arrays in the
output stream* are,

   1. Its a *challenge to create primitive type multidimensional arrays*
   (This is the type supported by Tensors copying method) whose *dimensions
   are unknown at compile time* in Java (I welcome any suggestion as to how
   this could be done)
   2. As pointed out by Tishan *other extensions of Siddhi are not
   configured to handle arrays*. So cannot process the output arrays of
   this extension further in Siddhi

Considering the above issues we decided to flatten the Tensor and send all
the values in a tensor one by one in primitive type. *In most cases output
Tensor will have a small number of values*.

Regards,

*Niruhan Viswarupan*
Engineering Intern | WSO2
Phone: +94776468013

On Thu, Nov 9, 2017 at 11:41 PM, Sriskandarajah Suhothayan 
wrote:

> Does Tensor always output multidimensional array or only for some cases?
> If it returns a multidimensional array what sort of processing the user
> should be doing to get sense out of it?
>
> My doubt is having a way to send multidimensional array out will solve the
> user's problem.
>
> Regards
> Suho
>
> On Thu, Nov 9, 2017 at 8:45 AM, Niruhan Viswarupan 
> wrote:
>
>> Hi,
>>
>> This is regarding supporting predictions from TensorFlow saved models
>> using stream processor.
>>
>> The *predictions (outputs) from a TensorFlow model in Java API will be a
>> Tensor
>> 
>> object*. This can have any number of dimensions and any shape. This
>> means that *we will not know the shape of the output multidimensional
>> array in the compile time*. This will only come to light in the run time
>> when the user input model is loaded. I was stuck with creating
>> multidimensional arrays of run time specified shape. It is solvable for
>> object arrays since they can be recursively built. But the copyTo()
>> 
>>  method
>> of Tensor works only for primitive type arrays.
>>
>> So after a discussion with Tishan we *decided to flatten the
>> multidimensional Tensor* and output them as one-by-one primitive types
>> that Siddhi handles. For example a 2x3 matrix Tensor [ [1,2,3], [4,5,6] ]
>> will be output as 6 separate int into the event.
>>
>> Please find the *user story here
>> *
>>  and
>> the preliminary *coding works here
>> *
>> .
>>
>> Regards,
>>
>> *Niruhan Viswarupan*
>> Engineering Intern | WSO2
>> Phone: +94776468013 <077%20646%208013>
>>
>
>
>
> --
>
> *S. Suhothayan*
> Associate Director / Architect
> *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan *
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Usage of "sticky cookie JSESSIONID" parameter.

2017-11-09 Thread Pubudu Gunatilaka
Hi Senuwan,

For session persistence, you can use ip_hash instead of sticky sessions
[1]. Nginx community version does not support sticky sessions.

[1] - https://docs.wso2.com/display/CLUSTER44x/Configuring+NGINX

Thank you!

On Thu, Nov 9, 2017 at 4:38 PM, Senuwan Withana  wrote:

> Hi Abimaran,
>
> No, I have not installed it. I just follow the documentation steps.
>
> *Senuwan Withana*
> Software Engineer - Support Team | WSO2
>
> Email : senu...@wso2.com
> Mobile: 94773212853
> Web: http://www.wso2.com
>
>
>
> On Thu, Nov 9, 2017 at 4:34 PM, Abimaran Kugathasan 
> wrote:
>
>> Hi Senuwan,
>>
>> Have you installed sticky module on your Nginx?
>>
>> [1]: https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/overview
>>
>> On Thu, Nov 9, 2017 at 2:29 PM, Senuwan Withana  wrote:
>>
>>> Hi Team,
>>>
>>> I would like to know what is the usage of below parameter, in the NGINX
>>> configuring file which located on [1] document.
>>>
>>>
>>> sticky cookie JSESSIONID;
>>>
>>>
>>> I got following error message when restarts my NGINX service, but when I
>>> removed above parameter no issue came.
>>>
>>>
>>> -- Unit nginx.service has begun starting up.
>>> Nov 09 14:15:11 senuwan-ThinkPad nginx[3869]: nginx: [emerg] unknown
>>> directive "sticky" in /etc/nginx/conf.d/am.https.conf:2
>>> Nov 09 14:15:11 senuwan-ThinkPad nginx[3869]: nginx: configuration file
>>> /etc/nginx/nginx.conf test failed
>>> Nov 09 14:15:11 senuwan-ThinkPad systemd[1]: nginx.service: Control
>>> process exited, code=exited status=1
>>> Nov 09 14:15:11 senuwan-ThinkPad systemd[1]: Failed to start A high
>>> performance web server and a reverse proxy server.
>>>
>>>
>>> [1] https://docs.wso2.com/display/CLUSTER44x/Clustering+the+
>>> Gateway#ClusteringtheGateway-Configuringtheloadbalancer
>>>
>>> Regards,
>>>
>>> *Senuwan Withana*
>>> Software Engineer - Support Team | WSO2
>>>
>>> Email : senu...@wso2.com
>>> Mobile: 94773212853
>>> Web: http://www.wso2.com
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer - API Technologies
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820 <+94%2077%20392%202820>
>>
>> 
>> 
>>   
>> 
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Pubudu Gunatilaka*
Committer and PMC Member - Apache Stratos
Senior Software Engineer
WSO2, Inc.: http://wso2.com
mobile : +94774078049 <%2B94772207163>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Create stand-alone testing tool using JMeter

2017-11-09 Thread Kasun Bandara
@Irham, Thanks for the resource. Actually, I tried JMeter Maven Plugin. The
problem occurred to me was that I want to generate the test result in
runtime as I have to use this results to generate a summary. I'm
interested in executing the test case by a JAVA API.

@Anurada, Thanks for the resource. I also tried this approach. But the
problem was that we have to provide the JMeter HOME path to execute the
test case. (JMeter should be locally installed.)

JMeterUtils.setJMeterHome("/path/to/your/jmeter");

JMeterUtils.loadJMeterProperties("/path/to/your/jmeter/bin/jmeter.properties");n

Thanks and Regards,

On Fri, Nov 10, 2017 at 9:59 AM, Anuruddha Liyanarachchi <
anurudd...@wso2.com> wrote:

> Hi Kausn,
>
> This blog [1] explains how to run JMeter scripts using a standalone java
> program using JMeter jars.
>
> [1] https://www.blazemeter.com/blog/5-ways-launch-jmeter-
> test-without-using-jmeter-gui
>
> On Fri, Nov 10, 2017 at 7:38 AM, Irham Iqbal  wrote:
>
>> Hi Kasun,
>>
>> As I understood you are trying to run Jmeter scripts from your standalone
>> application. This is an example[1] for running Jmeter scripts using
>> jmeter-maven-plugin
>>
>> [1] https://github.com/jmeter-maven-plugin/jmeter-maven-plugin-example
>>
>> Thanks,
>> Iqbal
>>
>> On Wed, Nov 8, 2017 at 11:17 AM, Kasun Bandara  wrote:
>>
>>> Hi All,
>>>
>>> I'm recently working on developing *Scenario Testing Framework *as a
>>> stand-alone application. The problem encountered to me was, even though I
>>> use JMeter API to run test suites it still requires JMeter home path in
>>> the local installation. Is there a workaround to run JMeter tests only
>>> using JMeter jars?
>>>
>>> There is one alternative exists that run the tests using maven, but here
>>> I'm interested in executing the test using JMeter APIs as I have to get
>>> back test results for further analysis.
>>>
>>> Thanks and Regards,
>>> --
>>> *Kasun Bandara*
>>> Software Engineer | WSO2
>>>
>>> Mobile: +94715787004 <+94%2071%20578%207004>
>>> 
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Irham Iqbal
>> Software Engineer
>> WSO2
>> phone: +94 777888452
>> 
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Thanks and Regards,*
> Anuruddha Lanka Liyanarachchi
> Software Engineer - WSO2
> Mobile : +94 (0) 712762611
> Tel  : +94 112 145 345
> a nurudd...@wso2.com
>



-- 
*Kasun Bandara*
Software Engineer | WSO2

Mobile: +94715787004

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


Re: [Dev] EI 6.0.0 and HL7 transport activation

2017-11-09 Thread Vinod Kavinda
[Adding few more people]

On Thu, Nov 9, 2017 at 9:27 PM, Thomas LEGRAND  wrote:

> Hello again!
>
> That works nicely after I installed the thingy. But, I am behind a proxy
> which causes problems so I had to download the whole Wilkes repository and
> modify the elements metadataRepository & artifactRepository to point to it
> (something like file:///to/my/local/repo). And I am disappointed because it
> installs directly in the components directory which make the installation
> on production a more painful. I think this is overkill to deploy a 2 Gb
> repository to install jar (And I don't think I am the only person who think
> that :))).
>
> Is there a way to extract the jars that was installed to install them
> "manually" on another platform? Except by making a diff of the directory
> /wso2/components? And if I copy/paster them manually, will that
> work or P2 make some hidden configuration on the EI too?
>
> Regards,
>
> Thomas
>
> 2017-11-09 16:08 GMT+01:00 Thomas LEGRAND :
>
>> Hello Vinod,
>>
>> This is embarrassing... :$
>>
>> I did not "see" this paragraph thinking that it was just a *boring*
>> introduction (like we have in every tutorial on the net) so I jumped
>> directly to the "Enabling the transport" part via the summary. :$
>>
>> Regards,
>>
>> Thomas
>>
>> 2017-11-09 16:04 GMT+01:00 Vinod Kavinda :
>>
>>> Hi Thomas,
>>> The HL7 feature is not shipped with EI 6 by default, due to the
>>> licensing issues. Did you install the HL7 feature as mentioned in the first
>>> paragraph of the doc [1]?
>>>
>>> [1] https://docs.wso2.com/display/EI600/HL7+Transport
>>>
>>> Regards,
>>> Vinod
>>>
>>> On Thu, Nov 9, 2017 at 4:07 PM, Thomas LEGRAND <
>>> thomas.legr...@versusmind.eu> wrote:
>>>
 Hello,

 I have a use case where I have a directory in which are dropped HL7
 messages in the ER7 format (the pipe one). So I created an inbound endpoint
 which monitors this directory and eat every .hl7 file it founds. But, it
 does not know how to parse them correctly because it displays some error
 about a mistake in the file prolog (expecting a < and found a M). OK, so it
 tries to read my HL7 file like if it was an XML one.

 So I check the doc and found that [1]. Nice! Let's try this!

 And... BOOM:

 Caused by: org.apache.axis2.deployment.DeploymentException:
 org.wso2.carbon.business.messaging.hl7.transport.HL7TransportListener
 cannot be found by axis2_1.6.1.wso2v20
 at org.apache.axis2.deployment.AxisConfigBuilder.processTranspo
 rtReceivers(AxisConfigBuilder.java:639)
 at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig
 (AxisConfigBuilder.java:130)
 at org.wso2.carbon.core.CarbonAxisConfigurator.populateAxisConf
 iguration(CarbonAxisConfigurator.java:341)
 at org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfigura
 tion(CarbonAxisConfigurator.java:192)
 ... 41 more
 Caused by: java.lang.ClassNotFoundException:
 org.wso2.carbon.business.messaging.hl7.transport.HL7TransportListener
 cannot be found by axis2_1.6.1.wso2v20

 I searched a little and I found a class [2] which seems to be in a
 business-adaptors component which I can't find in my distribution.

 Where can I have it, please?

 Regards,

 Thomas

 [1] https://docs.wso2.com/display/EI600/HL7+Transport
 [2] https://github.com/wso2/carbon-mediation/blob/master/compone
 nts/business-adaptors/hl7/org.wso2.carbon.business.messaging
 .hl7.transport/src/main/java/org/wso2/carbon/business/messag
 ing/hl7/transport/HL7TransportListener.java

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


>>>
>>>
>>> --
>>> Vinod Kavinda
>>> Senior Software Engineer
>>> *WSO2 Inc. - lean . enterprise . middleware .*
>>> Mobile : +94 (0) 712 415544
>>> Blog : http://soatechflicks.blogspot.com/
>>> [image: http://wso2.com/signature]
>>> 
>>>
>>>
>>
>


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

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


Re: [Dev] Deperecated sign methods in JWT generation flows.

2017-11-09 Thread Danushka Fernando
We can do it if we implement it in the way I suggested.
In first step we can call Utill method from signJWTWithRSA and deprecate
it. But we don't touch signJWT method.
Then later we remove signJWTWithRSA method and signJWT will call util
method. Still we can use signJWT for extendibility. WDYT?

Thanks & Regards
Danushka Fernando
Associate Tech Lead
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Thu, Nov 9, 2017 at 4:10 PM, Ruwan Abeykoon  wrote:

> HI All,
> We should not remove extensibility.
> We need to look for an alternative way on this do any improvement while
> keeping extensibility.
>
> Cheers,
> Ruwan
>
> On Thu, Nov 9, 2017 at 3:28 PM, Danushka Fernando 
> wrote:
>
>> Hi All
>> In released IS 5.3.0 we have capability of extending the signing
>> mechanism of JWT in JWTTokenGenerator and IDTokenBuilder. But in the latest
>> code base [1] [2] we have deprecated all the protected methods and removed
>> the usage of them as well. With this, we have removed the capability of
>> extending signing mechanism.
>>
>> Previously we had following method structure.
>>
>> generateToken
>>
>> |
>>
>>  -> signJWT (protected)
>>
>>  |
>>-> signJWTWithRSA (protected)
>>
>>
>> Generate token method calls signJWT method and it calls sign JWT with RSA
>> method. So simply by overriding signJWTWithRSA method we can override the
>> JWT signing behavior. Currently we have deprecated both these methods and
>> also removed the usage of the signJWT method and replaced its occurrence in
>> generateToken method with OAuth2Util method. Which means we have removed
>> the capability of extending signing.
>>
>> IMO what we should do here is deprecate signJWTWithRSA method and call
>> utll method from signJWTWithRSA method and then in a future release we can
>> remove that method and call util method directly from signJWT method. In
>> that way we will remove duplicated code while not removing our
>> extensibility.
>>
>> WDYT? Is there a reason for removing the current extensibility?
>>
>> [1] https://github.com/wso2-extensions/identity-inbound-auth-
>> oauth/blob/master/components/org.wso2.carbon.identity.
>> oauth/src/main/java/org/wso2/carbon/identity/oauth2/
>> authcontext/JWTTokenGenerator.java
>> [2] https://github.com/wso2-extensions/identity-inbound-auth
>> -oauth/blob/master/components/org.wso2.carbon.identity.
>> oauth/src/main/java/org/wso2/carbon/identity/openidconnect/
>> DefaultIDTokenBuilder.java
>>
>> Thanks & Regards
>> Danushka Fernando
>> Associate Tech Lead
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729 <+94%2071%20633%202729>
>>
>
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI 6.1.1] [update-1510032522941] UI Synapse editor is extremely slow

2017-11-09 Thread Nandika Jayawardana
Hi Lahiru,

Can you try with Chome also and let us know. This is not a known behaviour.

Regards
Nandika

On Fri, Nov 10, 2017 at 5:32 AM, Lahiru Sandaruwan  wrote:

> Just noticed $subject.
>
> I'm using Firefox. Created a simple Rest API with a send mediator. Known
> behavior?
>
> Thanks.
>
> --
> --
>
> Lahiru Sandaruwan
> Associate Technical Lead,
> WSO2 Inc., http://wso2.com
>
> lean.enterprise.middleware
>
> m: +1 408 667 8686 <+1%20408-667-8686>
> e: lahi...@wso2.com b: https://medium.com/@lahirugmg
> in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>


-- 
Nandika Jayawardana
WSO2 Inc ; http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Extending BCJSSE for Token binding

2017-11-09 Thread KasunG Gajasinghe
Hi Indra,

Can you find out exactly what issues we faced before? I'm assuming it has
something to do with jar signing.

The work we are doing is not specific to wso2 but applies to entire Java
community and bouncycastle users. So, our end goal should be get this
merged into bouncycastle project.

Please start a dialogue with BC developers asap. They are on GitHub now I
suppose.

Bouncycastle just added a new tls extension last month, and the community
quite active.

@Prabath, please share your thoughts.

Thanks,
KasunG

On Thu, Nov 9, 2017 at 2:10 PM Inthirakumaaran Tharmakulasingham <
inthirakumaa...@wso2.com> wrote:

> Hi,
> I am trying to create a Token binding library for TLS layer.One option for
> this to extend BCJSSE and write the implementations on top of it.But in the
> past, there have been some issues in making changes in Bouncy Castle.How
> can I proceed with this?OR any better way to write the library?
>
> Basically, our intention is to make a token binding library so that anyone
> can create HTTP client which can support token binding.Thus we hope to send
> a PR to BC after completing the implementation.
>
>
> --
> Inthirakumaaran
> Software Engineering - Intern | WSO2
>
> Email: inthirakumaa...@wso2.com
> Mobile:0766598050
>
> --

*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, 77 678 0813
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Shouldn't we have an admin service method to delete set of users at once?

2017-11-09 Thread Godwin Shrimal
I guess using SCIM API, create a group of required users and delete the
group is not a right approach. What Ushani want to is to delete selected
set of users. As Isuru mentioned current C4 version doesn't support
deleting bulk users. So you have following options.

1. Call deletUser method in admin service and iterately delete required
users.
2. Since #1 have multiple network calls, you can create a custom service
with *deleteUsers *method, that method calls *deleteUser *method in User
core and delete required users.


Thanks
Godwin

On Thu, Nov 9, 2017 at 9:56 AM, Ushani Balasooriya  wrote:

> Thanks Isura and Irham,
>
> I think still I need to create a group in SCIM call more like a role. Then
> I can even use *addRemoveUsersOfRole *in admin services*. *My requirement
> was to delete selected users belong to different roles.
>
> I think what Isura has mentioned is an option to proceed. But doesnt it
> make multiple service calls?
>
> On Thu, Nov 9, 2017 at 9:53 AM, Isura Karunaratne  wrote:
>
>> Hi Ushani,
>>
>>
>>
>> On Thu, Nov 9, 2017 at 9:10 AM, Ushani Balasooriya 
>> wrote:
>>
>>> Hi IAM Team,
>>>
>>> During the implementation of a third party web app to manage users, I
>>> wanted to have a feature where I can select few users and delete them at
>>> once.
>>>
>>> Then I noticed in our admin services we have only below methods to
>>> delete users in our *UserAdmin* service.
>>>
>>> - *addRemoveUsersOfRole* - Delete users only in a particular role
>>> - *deleteUser* - Delete one selected user
>>>
>>> In *deleteUser* method allow only one user to delete.
>>>
>>> Can you please advice whether this is designed and implemented due to
>>> any particular reason or is it a lacking feature in our system? Or is there
>>> any other mechanism for me to delete set of users at once?
>>>
>>
>> C4 user core APIs does not support delete multiple users at once. You can
>> loop the deleteUser API to delete set of users.
>>
>> Thanks
>> Isura.
>>
>>>
>>> Appreciate your quick response.
>>>
>>> Thanks,
>>> --
>>> *Ushani Balasooriya*
>>> Associate Technical Lead - EE;
>>> WSO2 Inc; http://www.wso2.com/.
>>> Mobile; +94772636796
>>>
>>>
>>
>>
>> --
>>
>> *Isura Dilhara Karunaratne*
>> Associate Technical Lead | WSO2
>> Email: is...@wso2.com
>> Mob : +94 772 254 810 <+94%2077%20225%204810>
>> Blog : http://isurad.blogspot.com/
>>
>>
>>
>>
>
>
> --
> *Ushani Balasooriya*
> Associate Technical Lead - EE;
> WSO2 Inc; http://www.wso2.com/.
> Mobile; +94772636796
>
>


-- 
*Godwin Amila Shrimal*
Associate Technical Lead
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
*
twitter: https://twitter.com/godwinamila

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


Re: [Dev] Create stand-alone testing tool using JMeter

2017-11-09 Thread Irham Iqbal
Hi Kasun,

As I understood you are trying to run Jmeter scripts from your standalone
application. This is an example[1] for running Jmeter scripts using
jmeter-maven-plugin

[1] https://github.com/jmeter-maven-plugin/jmeter-maven-plugin-example

Thanks,
Iqbal

On Wed, Nov 8, 2017 at 11:17 AM, Kasun Bandara  wrote:

> Hi All,
>
> I'm recently working on developing *Scenario Testing Framework *as a
> stand-alone application. The problem encountered to me was, even though I
> use JMeter API to run test suites it still requires JMeter home path in
> the local installation. Is there a workaround to run JMeter tests only
> using JMeter jars?
>
> There is one alternative exists that run the tests using maven, but here
> I'm interested in executing the test using JMeter APIs as I have to get
> back test results for further analysis.
>
> Thanks and Regards,
> --
> *Kasun Bandara*
> Software Engineer | WSO2
>
> Mobile: +94715787004 <+94%2071%20578%207004>
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Irham Iqbal
Software Engineer
WSO2
phone: +94 777888452

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


Re: [Dev] Bulk user deletion using SCIM in WSO2 Identity server

2017-11-09 Thread Irham Iqbal
Hi Nilasini,

There is a another mail thread[1] regarding delete bulk users.

[1] "Shouldn't we have an admin service method to delete set of users at
once"

Thanks,
Iqbal

On Thu, Nov 9, 2017 at 1:00 PM, Nilasini Thirunavukkarasu  wrote:

> Same way for scim2 also we have the code[1] for bulk user deletion but it
> doesn't work.Found the bulk user creation curl request from[2] since there
> is no bulk user delete request change the request as[3] and tried, it is
> not working.
>
> Any help on this is highly appreciated.
>
> [1] https://github.com/wso2/charon/blob/master/modules/charon-
> core/src/main/java/org/wso2/charon3/core/protocol/BulkRequ
> estProcessor.java
> [2]https://docs.wso2.com/display/ISCONNECTORS/Configuring+
> SCIM+2.0+Provisioning+Connector#ConfiguringSCIM2.0Pr
> ovisioningConnector-/BulkEndpoint
> [3]
> curl -v -k --user admin:admin --data '{"failOnErrors":1,"schemas":[
> "urn:ietf:params:scim:api:messages:2.0:BulkRequest"],"Operations":[{"method":
> "DELETE","path": "/Users","bulkId": "qwerty","data":{"schemas":["
> urn:ietf:params:scim:schemas:core:2.0:User"],"userName":
> "Kris","password":"krispass"}},{"method": "DELETE","path":
> "/Users","bulkId":"ytrewq","data":{"schemas":["urn:ietf:
> params:scim:schemas:core:2.0:User","urn:ietf:params:scim:
> schemas:extension:enterprise:2.0:User"],"userName":"Jesse",
> "password":"jessepass","urn:ietf:params:scim:schemas:
> extension:enterprise:2.0:User":{"employeeNumber": "11250","manager":
> {"value": "bulkId:qwerty"]}' --header "Content-Type:application/json"
> https://localhost:9443/scim2/Bulk
>
> On Thu, Aug 31, 2017 at 10:51 AM, Nilasini Thirunavukkarasu <
> nilas...@wso2.com> wrote:
>
>> Hi,
>>
>> I have tried to use bulk user deletion according to the blog[1] since we
>> don't have documentation on it yet. I couldn't get the response as we
>> expect. The bulk user deletion request is not working. It seems we didn't
>> implement the bulk user deletion part according to [2]. Is there any way to
>> get this confirmed? Does anybody have any idea how did this work previously?
>>
>>
>> [1] https://malalanayake.wordpress.com/2013/05/28/scim-bulk-endp
>> oint-operations-in-wso2-identity-server/
>>
>> [2] https://github.com/wso2/charon/blob/v2.1.0/modules/charon-co
>> re/src/main/java/org/wso2/charon/core/protocol/BulkRequestPr
>> ocessor.java#L110-L127
>>
>>
>> Thanks,
>> T.Nila.
>> --
>> Nilasini Thirunavukkarasu
>> Software Engineer - WSO2
>>
>> Email : nilas...@wso2.com
>> Mobile : +94775241823 <+94%2077%20524%201823>
>> Web : http://wso2.com/
>>
>>
>> 
>>
>
>
>
> --
> Nilasini Thirunavukkarasu
> Software Engineer - WSO2
>
> Email : nilas...@wso2.com
> Mobile : +94775241823 <+94%2077%20524%201823>
> Web : http://wso2.com/
>
>
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Irham Iqbal
Software Engineer
WSO2
phone: +94 777888452

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


[Dev] [EI 6.1.1] [update-1510032522941] UI Synapse editor is extremely slow

2017-11-09 Thread Lahiru Sandaruwan
Just noticed $subject.

I'm using Firefox. Created a simple Rest API with a send mediator. Known
behavior?

Thanks.

-- 
--

Lahiru Sandaruwan
Associate Technical Lead,
WSO2 Inc., http://wso2.com

lean.enterprise.middleware

m: +1 408 667 8686
e: lahi...@wso2.com b: https://medium.com/@lahirugmg
in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Usage of "sticky cookie JSESSIONID" parameter.

2017-11-09 Thread Senuwan Withana
Hi Abimaran,

No, I have not installed it. I just follow the documentation steps.

*Senuwan Withana*
Software Engineer - Support Team | WSO2

Email : senu...@wso2.com
Mobile: 94773212853
Web: http://www.wso2.com



On Thu, Nov 9, 2017 at 4:34 PM, Abimaran Kugathasan 
wrote:

> Hi Senuwan,
>
> Have you installed sticky module on your Nginx?
>
> [1]: https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/overview
>
> On Thu, Nov 9, 2017 at 2:29 PM, Senuwan Withana  wrote:
>
>> Hi Team,
>>
>> I would like to know what is the usage of below parameter, in the NGINX
>> configuring file which located on [1] document.
>>
>>
>> sticky cookie JSESSIONID;
>>
>>
>> I got following error message when restarts my NGINX service, but when I
>> removed above parameter no issue came.
>>
>>
>> -- Unit nginx.service has begun starting up.
>> Nov 09 14:15:11 senuwan-ThinkPad nginx[3869]: nginx: [emerg] unknown
>> directive "sticky" in /etc/nginx/conf.d/am.https.conf:2
>> Nov 09 14:15:11 senuwan-ThinkPad nginx[3869]: nginx: configuration file
>> /etc/nginx/nginx.conf test failed
>> Nov 09 14:15:11 senuwan-ThinkPad systemd[1]: nginx.service: Control
>> process exited, code=exited status=1
>> Nov 09 14:15:11 senuwan-ThinkPad systemd[1]: Failed to start A high
>> performance web server and a reverse proxy server.
>>
>>
>> [1] https://docs.wso2.com/display/CLUSTER44x/Clustering+the+
>> Gateway#ClusteringtheGateway-Configuringtheloadbalancer
>>
>> Regards,
>>
>> *Senuwan Withana*
>> Software Engineer - Support Team | WSO2
>>
>> Email : senu...@wso2.com
>> Mobile: 94773212853
>> Web: http://www.wso2.com
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820 <+94%2077%20392%202820>
>
> 
> 
>   
> 
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Shouldn't we have an admin service method to delete set of users at once?

2017-11-09 Thread Isura Karunaratne
Hi Ushani,



On Thu, Nov 9, 2017 at 9:10 AM, Ushani Balasooriya  wrote:

> Hi IAM Team,
>
> During the implementation of a third party web app to manage users, I
> wanted to have a feature where I can select few users and delete them at
> once.
>
> Then I noticed in our admin services we have only below methods to delete
> users in our *UserAdmin* service.
>
> - *addRemoveUsersOfRole* - Delete users only in a particular role
> - *deleteUser* - Delete one selected user
>
> In *deleteUser* method allow only one user to delete.
>
> Can you please advice whether this is designed and implemented due to any
> particular reason or is it a lacking feature in our system? Or is there any
> other mechanism for me to delete set of users at once?
>

C4 user core APIs does not support delete multiple users at once. You can
loop the deleteUser API to delete set of users.

Thanks
Isura.

>
> Appreciate your quick response.
>
> Thanks,
> --
> *Ushani Balasooriya*
> Associate Technical Lead - EE;
> WSO2 Inc; http://www.wso2.com/.
> Mobile; +94772636796
>
>


-- 

*Isura Dilhara Karunaratne*
Associate Technical Lead | WSO2
Email: is...@wso2.com
Mob : +94 772 254 810 <+94%2077%20225%204810>
Blog : http://isurad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] EI 6.0.0 and HL7 transport activation

2017-11-09 Thread Thomas LEGRAND
Hello Vinod,

This is embarrassing... :$

I did not "see" this paragraph thinking that it was just a *boring*
introduction (like we have in every tutorial on the net) so I jumped
directly to the "Enabling the transport" part via the summary. :$

Regards,

Thomas

2017-11-09 16:04 GMT+01:00 Vinod Kavinda :

> Hi Thomas,
> The HL7 feature is not shipped with EI 6 by default, due to the licensing
> issues. Did you install the HL7 feature as mentioned in the first paragraph
> of the doc [1]?
>
> [1] https://docs.wso2.com/display/EI600/HL7+Transport
>
> Regards,
> Vinod
>
> On Thu, Nov 9, 2017 at 4:07 PM, Thomas LEGRAND <
> thomas.legr...@versusmind.eu> wrote:
>
>> Hello,
>>
>> I have a use case where I have a directory in which are dropped HL7
>> messages in the ER7 format (the pipe one). So I created an inbound endpoint
>> which monitors this directory and eat every .hl7 file it founds. But, it
>> does not know how to parse them correctly because it displays some error
>> about a mistake in the file prolog (expecting a < and found a M). OK, so it
>> tries to read my HL7 file like if it was an XML one.
>>
>> So I check the doc and found that [1]. Nice! Let's try this!
>>
>> And... BOOM:
>>
>> Caused by: org.apache.axis2.deployment.DeploymentException:
>> org.wso2.carbon.business.messaging.hl7.transport.HL7TransportListener
>> cannot be found by axis2_1.6.1.wso2v20
>> at org.apache.axis2.deployment.AxisConfigBuilder.processTranspo
>> rtReceivers(AxisConfigBuilder.java:639)
>> at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig
>> (AxisConfigBuilder.java:130)
>> at org.wso2.carbon.core.CarbonAxisConfigurator.populateAxisConf
>> iguration(CarbonAxisConfigurator.java:341)
>> at org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfigura
>> tion(CarbonAxisConfigurator.java:192)
>> ... 41 more
>> Caused by: java.lang.ClassNotFoundException:
>> org.wso2.carbon.business.messaging.hl7.transport.HL7TransportListener
>> cannot be found by axis2_1.6.1.wso2v20
>>
>> I searched a little and I found a class [2] which seems to be in a
>> business-adaptors component which I can't find in my distribution.
>>
>> Where can I have it, please?
>>
>> Regards,
>>
>> Thomas
>>
>> [1] https://docs.wso2.com/display/EI600/HL7+Transport
>> [2] https://github.com/wso2/carbon-mediation/blob/master/compone
>> nts/business-adaptors/hl7/org.wso2.carbon.business.messaging
>> .hl7.transport/src/main/java/org/wso2/carbon/business/
>> messaging/hl7/transport/HL7TransportListener.java
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vinod Kavinda
> Senior Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware .*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
> [image: http://wso2.com/signature]
> 
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Bulk user deletion using SCIM in WSO2 Identity server

2017-11-09 Thread Nilasini Thirunavukkarasu
Same way for scim2 also we have the code[1] for bulk user deletion but it
doesn't work.Found the bulk user creation curl request from[2] since there
is no bulk user delete request change the request as[3] and tried, it is
not working.

Any help on this is highly appreciated.

[1] https://github.com/wso2/charon/blob/master/modules/
charon-core/src/main/java/org/wso2/charon3/core/protocol/
BulkRequestProcessor.java
[2]https://docs.wso2.com/display/ISCONNECTORS/Configuring+SCIM+2.0+
Provisioning+Connector#ConfiguringSCIM2.0ProvisioningConnector-/BulkEndpoint
[3]
curl -v -k --user admin:admin --data
'{"failOnErrors":1,"schemas":["urn:ietf:params:scim:api:messages:2.0:BulkRequest"],"Operations":[{"method":
"DELETE","path": "/Users","bulkId":
"qwerty","data":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User"],"userName":
"Kris","password":"krispass"}},{"method": "DELETE","path":
"/Users","bulkId":"ytrewq","data":{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"userName":"Jesse","password":"jessepass","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"employeeNumber":
"11250","manager": {"value": "bulkId:qwerty"]}' --header
"Content-Type:application/json" https://localhost:9443/scim2/Bulk

On Thu, Aug 31, 2017 at 10:51 AM, Nilasini Thirunavukkarasu <
nilas...@wso2.com> wrote:

> Hi,
>
> I have tried to use bulk user deletion according to the blog[1] since we
> don't have documentation on it yet. I couldn't get the response as we
> expect. The bulk user deletion request is not working. It seems we didn't
> implement the bulk user deletion part according to [2]. Is there any way to
> get this confirmed? Does anybody have any idea how did this work previously?
>
>
> [1] https://malalanayake.wordpress.com/2013/05/28/scim-bulk-
> endpoint-operations-in-wso2-identity-server/
>
> [2] https://github.com/wso2/charon/blob/v2.1.0/modules/charon-
> core/src/main/java/org/wso2/charon/core/protocol/BulkReque
> stProcessor.java#L110-L127
>
>
> Thanks,
> T.Nila.
> --
> Nilasini Thirunavukkarasu
> Software Engineer - WSO2
>
> Email : nilas...@wso2.com
> Mobile : +94775241823 <+94%2077%20524%201823>
> Web : http://wso2.com/
>
>
> 
>



-- 
Nilasini Thirunavukkarasu
Software Engineer - WSO2

Email : nilas...@wso2.com
Mobile : +94775241823 <+94%2077%20524%201823>
Web : http://wso2.com/



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


[Dev] WSO2 Identity Server 5.4.0 Alpha 8 Released !!!

2017-11-09 Thread Jayanga Kaushalya
The WSO2 Identity and Access Management team is pleased to announce the
release of WSO2 Identity Server 5.4.0 Alpha 8.

You can build the distribution from the source tag
https://github.com/wso2/product-is/releases/tag/v5.4.0-alpha8 following the
steps below.


*Building from the source*

   1. Install Java8 or above
   2. Install Apache Maven 3.x.x(https://maven.apache.org/download.cgi#)
   3. Get a clone from https://github.com/wso2/product-is.git and checkout
   to v5.4.0-alpha8 tag or you can directly download the source for the tag
   from https://github.com/wso2/product-is/releases/tag/v5.4.0-alpha8
   4. Run the one of the below maven commands from product-is directory,
  - *mvn** clean install* (To build the binary and source distributions
  with the tests)
  - *mvn** clean install -Dmaven.test.skip=true* (To build the binary
  and source distributions, without running any of the
unit/integration tests)
   5. You can find the wso2is-5.4.0-alpha8.zip binary distribution in
   product-is/modules/distribution/target directory.

The following list contains all the features, improvements, and bug fixes
available with the WSO2 Identity Server 5.4.0 Alpha 8 release.
Patch

   - [IDENTITY-6883 ] -
   MalformedURLException when wreply urls has a improper url value.

Bug

   - [IDENTITY-6307 ] -
   Auth_time is changing to session updated time
   - [IDENTITY-6875 ] - role
   claim is missing with request path authentication for saml sp configuration

Improvement

   - [IDENTITY-6239 ] - Improve
   Facebook\Google authenticators to handle claim transformation using a
   dedicated claim dialect


*Contribute to WSO2 Identity Server*

*Mailing Lists*

Join our mailing lists and correspond with the developers directly. We also
encourage you to take part in discussions related to the product in the
architecture mailing list. If you have any questions regarding the product
you can use our StackOverflow forum to raise them as well.

   - Developer List: dev@wso2.org
   - Architecture List: architect...@wso2.org
   - User Forum: StackOverflow
   

Reporting Issues
We encourage you to report issues, improvements, and feature requests
regarding WSO2 Identity Server through our public WSO2 Identity Server JIRA
.

~ The WSO2 Identity and Access Management Team ~

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


[Dev] Extending BCJSSE for Token binding

2017-11-09 Thread Inthirakumaaran Tharmakulasingham
Hi,
I am trying to create a Token binding library for TLS layer.One option for
this to extend BCJSSE and write the implementations on top of it.But in the
past, there have been some issues in making changes in Bouncy Castle.How
can I proceed with this?OR any better way to write the library?

Basically, our intention is to make a token binding library so that anyone
can create HTTP client which can support token binding.Thus we hope to send
a PR to BC after completing the implementation.

-- 
Inthirakumaaran
Software Engineering - Intern | WSO2

Email: inthirakumaa...@wso2.com
Mobile:0766598050
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: Accessing secured back-end using the WSO2 ESB API.

2017-11-09 Thread Senuwan Withana
Hi Team,

Today I have tested how to access secured back-end using the API which
created from the WSO2 ESB.

Basically, I have followed the steps,[1] document. I want to know how do I
configure password using the Dev Studio. As per my research I found below
[2] document related to creating password call back class. Is there any way
to configure password without writing the callback class?


[1] - https://docs.wso2.com/display/ESB500/Applying+
Security+to+a+Proxy+Service
[2] - http://pathberiya.blogspot.com/2010/02/how-to-create-
password-callback-class.html


Regards,

*Senuwan Withana*
Software Engineer - Support Team | WSO2

Email : senu...@wso2.com
Mobile: 94773212853
Web: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Deperecated sign methods in JWT generation flows.

2017-11-09 Thread Danushka Fernando
Hi All
In released IS 5.3.0 we have capability of extending the signing mechanism
of JWT in JWTTokenGenerator and IDTokenBuilder. But in the latest code base
[1] [2] we have deprecated all the protected methods and removed the usage
of them as well. With this, we have removed the capability of extending
signing mechanism.

Previously we had following method structure.

generateToken

|

 -> signJWT (protected)

 |
   -> signJWTWithRSA (protected)


Generate token method calls signJWT method and it calls sign JWT with RSA
method. So simply by overriding signJWTWithRSA method we can override the
JWT signing behavior. Currently we have deprecated both these methods and
also removed the usage of the signJWT method and replaced its occurrence in
generateToken method with OAuth2Util method. Which means we have removed
the capability of extending signing.

IMO what we should do here is deprecate signJWTWithRSA method and call utll
method from signJWTWithRSA method and then in a future release we can
remove that method and call util method directly from signJWT method. In
that way we will remove duplicated code while not removing our
extensibility.

WDYT? Is there a reason for removing the current extensibility?

[1]
https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/master/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/authcontext/JWTTokenGenerator.java
[2]
https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/master/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/openidconnect/DefaultIDTokenBuilder.java

Thanks & Regards
Danushka Fernando
Associate Tech Lead
WSO2 inc. http://wso2.com/
Mobile : +94716332729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Shouldn't we have an admin service method to delete set of users at once?

2017-11-09 Thread Ushani Balasooriya
Hi IAM Team,

During the implementation of a third party web app to manage users, I
wanted to have a feature where I can select few users and delete them at
once.

Then I noticed in our admin services we have only below methods to delete
users in our *UserAdmin* service.

- *addRemoveUsersOfRole* - Delete users only in a particular role
- *deleteUser* - Delete one selected user

In *deleteUser* method allow only one user to delete.

Can you please advice whether this is designed and implemented due to any
particular reason or is it a lacking feature in our system? Or is there any
other mechanism for me to delete set of users at once?

Appreciate your quick response.

Thanks,
-- 
*Ushani Balasooriya*
Associate Technical Lead - EE;
WSO2 Inc; http://www.wso2.com/.
Mobile; +94772636796
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] EI 6.0.0 and HL7 transport activation

2017-11-09 Thread Thomas LEGRAND
Hello again!

That works nicely after I installed the thingy. But, I am behind a proxy
which causes problems so I had to download the whole Wilkes repository and
modify the elements metadataRepository & artifactRepository to point to it
(something like file:///to/my/local/repo). And I am disappointed because it
installs directly in the components directory which make the installation
on production a more painful. I think this is overkill to deploy a 2 Gb
repository to install jar (And I don't think I am the only person who think
that :))).

Is there a way to extract the jars that was installed to install them
"manually" on another platform? Except by making a diff of the directory
/wso2/components? And if I copy/paster them manually, will that
work or P2 make some hidden configuration on the EI too?

Regards,

Thomas

2017-11-09 16:08 GMT+01:00 Thomas LEGRAND :

> Hello Vinod,
>
> This is embarrassing... :$
>
> I did not "see" this paragraph thinking that it was just a *boring*
> introduction (like we have in every tutorial on the net) so I jumped
> directly to the "Enabling the transport" part via the summary. :$
>
> Regards,
>
> Thomas
>
> 2017-11-09 16:04 GMT+01:00 Vinod Kavinda :
>
>> Hi Thomas,
>> The HL7 feature is not shipped with EI 6 by default, due to the licensing
>> issues. Did you install the HL7 feature as mentioned in the first paragraph
>> of the doc [1]?
>>
>> [1] https://docs.wso2.com/display/EI600/HL7+Transport
>>
>> Regards,
>> Vinod
>>
>> On Thu, Nov 9, 2017 at 4:07 PM, Thomas LEGRAND <
>> thomas.legr...@versusmind.eu> wrote:
>>
>>> Hello,
>>>
>>> I have a use case where I have a directory in which are dropped HL7
>>> messages in the ER7 format (the pipe one). So I created an inbound endpoint
>>> which monitors this directory and eat every .hl7 file it founds. But, it
>>> does not know how to parse them correctly because it displays some error
>>> about a mistake in the file prolog (expecting a < and found a M). OK, so it
>>> tries to read my HL7 file like if it was an XML one.
>>>
>>> So I check the doc and found that [1]. Nice! Let's try this!
>>>
>>> And... BOOM:
>>>
>>> Caused by: org.apache.axis2.deployment.DeploymentException:
>>> org.wso2.carbon.business.messaging.hl7.transport.HL7TransportListener
>>> cannot be found by axis2_1.6.1.wso2v20
>>> at org.apache.axis2.deployment.AxisConfigBuilder.processTranspo
>>> rtReceivers(AxisConfigBuilder.java:639)
>>> at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig
>>> (AxisConfigBuilder.java:130)
>>> at org.wso2.carbon.core.CarbonAxisConfigurator.populateAxisConf
>>> iguration(CarbonAxisConfigurator.java:341)
>>> at org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfigura
>>> tion(CarbonAxisConfigurator.java:192)
>>> ... 41 more
>>> Caused by: java.lang.ClassNotFoundException:
>>> org.wso2.carbon.business.messaging.hl7.transport.HL7TransportListener
>>> cannot be found by axis2_1.6.1.wso2v20
>>>
>>> I searched a little and I found a class [2] which seems to be in a
>>> business-adaptors component which I can't find in my distribution.
>>>
>>> Where can I have it, please?
>>>
>>> Regards,
>>>
>>> Thomas
>>>
>>> [1] https://docs.wso2.com/display/EI600/HL7+Transport
>>> [2] https://github.com/wso2/carbon-mediation/blob/master/compone
>>> nts/business-adaptors/hl7/org.wso2.carbon.business.messaging
>>> .hl7.transport/src/main/java/org/wso2/carbon/business/messag
>>> ing/hl7/transport/HL7TransportListener.java
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Vinod Kavinda
>> Senior Software Engineer
>> *WSO2 Inc. - lean . enterprise . middleware .*
>> Mobile : +94 (0) 712 415544
>> Blog : http://soatechflicks.blogspot.com/
>> [image: http://wso2.com/signature]
>> 
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS as Key Manager] Error when generating keys for application

2017-11-09 Thread Saneth Dharmakeerthi
Hi APIM Team,

Docent this a limitation of Store UI?

Customer who is using SAML or authorization code grant,  Why he needs to
enable client_credential? Inst this a security risk? The only thing he
needs to do is getting the  Client ID and Client Secret, But in Store UI it
only shows those after click Generate Key button.



Thanks and Best Regards,

Saneth Dharmakeerthi
*Associate Technical Lead*
WSO2, Inc.
Mobile: +94772325511



On Thu, Nov 9, 2017 at 9:37 AM, Dilshani Subasinghe 
wrote:

> Hi Fazlan,
>
> Ok, now I got it. Thanks for explaining it.
>
> Regards,
> Dilshani
>
> On Thu, Nov 9, 2017 at 9:21 AM, Fazlan Nazeem  wrote:
>
>> Hi Dilshani,
>>
>> SAML grant does not depend on client_credentials grant being enabled, but
>> in store UI when we generate keys using the Generate Keys button,
>> client_credentials grant is used to generate the token. Therefore you have
>> to enable client_credentials grant if you are generating keys via UI. I
>> think this is what Hrasha meant.
>>
>> On Thu, Nov 9, 2017 at 12:20 AM, Dilshani Subasinghe 
>> wrote:
>>
>>> Hi Harsha,
>>>
>>> Thanks for prompt reply. Will follow that. Hope we need to specify that
>>> client_credentials grant need for enabling SAML grant in the documentation.
>>>
>>> Regards,
>>> Dilshani
>>>
>>> On Thu, Nov 9, 2017 at 12:08 AM, Harsha Kumara  wrote:
>>>
 Hi Dilshani,

 If you need to generate a token using SAML2 grant you may follow [1].
 In store, you need to select client_credentials grant as we used it in the
 store to generate the token for an application.

 [1] https://docs.wso2.com/display/AM1100/Exchanging+SAML2+Be
 arer+Tokens+with+OAuth2+-+SAML+Extension+Grant+Type

 On Thu, Nov 9, 2017 at 12:01 AM, Dilshani Subasinghe  wrote:

> Hi APIM/IS Team,
>
> I'm working with IS as Key manager setup. (APIM 2.1.0 and
> wso2is-km-5.3.0). In APIM, while generating keys for Applications with
> "SAML" as grant type, it may give an error as follows [1]:
>
> [2017-11-08 23:51:34,102] ERROR - APIUtil Error occurred while
> executing SubscriberKeyMgtClient.
> java.lang.RuntimeException: Error occurred while calling token
> endpoint: HTTP error code : 400
> at org.wso2.carbon.apimgt.impl.AMDefaultKeyManagerImpl.getNewAp
> plicationAccessToken(AMDefaultKeyManagerImpl.java:367)
> at org.wso2.carbon.apimgt.impl.workflow.AbstractApplicationRegi
> strationWorkflowExecutor.dogenerateKeysForApplication(Abstra
> ctApplicationRegistrationWorkflowExecutor.java:151)
> at org.wso2.carbon.apimgt.impl.workflow.AbstractApplicationRegi
> strationWorkflowExecutor.generateKeysForApplication(Abstract
> ApplicationRegistrationWorkflowExecutor.java:118)
> at org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistration
> SimpleWorkflowExecutor.complete(ApplicationRegistrationSimpl
> eWorkflowExecutor.java:78)
> at org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistration
> SimpleWorkflowExecutor.execute(ApplicationRegistrationSimple
> WorkflowExecutor.java:54)
> at org.wso2.carbon.apimgt.impl.APIConsumerImpl.requestApprovalF
> orApplicationRegistration(APIConsumerImpl.java:2789)
> at org.wso2.carbon.apimgt.impl.UserAwareAPIConsumer.requestAppr
> ovalForApplicationRegistration(UserAwareAPIConsumer.java:36)
> at org.wso2.carbon.apimgt.hostobjects.APIStoreHostObject.jsFunc
> tion_getApplicationKey(APIStoreHostObject.java:385)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorIm
>
> Any idea on the issue?
>
> [1] error.png
>
> Thanks,
> Dilshani
>
> --
>
> Dilshani Subasinghe
> Software Engineer - QA *|* WSO2
> lean *|* enterprise *|* middleware
>
> Mobile : +94773375185 <+94%2077%20337%205185>
> Blog: dilshani.me
>
> 
>



 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618 <+94%2077%20550%205618>
 Blog:harshcreationz.blogspot.com

>>>
>>>
>>>
>>> --
>>>
>>> Dilshani Subasinghe
>>> Software Engineer - QA *|* WSO2
>>> lean *|* enterprise *|* middleware
>>>
>>> Mobile : +94773375185 <+94%2077%20337%205185>
>>> Blog: dilshani.me
>>>
>>> 
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> *Fazlan Nazeem*
>> Senior Software Engineer
>> WSO2 Inc
>> Mobile : +94772338839
>> <%2B94%20%280%29%20773%20451194>
>> fazl...@wso2.com
>>
>
>
>
> --
>
> Dilshani Subasinghe
> Software Engineer - QA *|* WSO2
> lean *|* enterprise *|* middleware
>
> Mobile : +94773375185 <+94%2077%20337%205185>
> Blog: dilshani.me
>
> 
>
___
Dev mailing list
Dev@wso2.org

Re: [Dev] EI 6.0.0 and HL7 transport activation

2017-11-09 Thread Vinod Kavinda
Hi Thomas,
The HL7 feature is not shipped with EI 6 by default, due to the licensing
issues. Did you install the HL7 feature as mentioned in the first paragraph
of the doc [1]?

[1] https://docs.wso2.com/display/EI600/HL7+Transport

Regards,
Vinod

On Thu, Nov 9, 2017 at 4:07 PM, Thomas LEGRAND  wrote:

> Hello,
>
> I have a use case where I have a directory in which are dropped HL7
> messages in the ER7 format (the pipe one). So I created an inbound endpoint
> which monitors this directory and eat every .hl7 file it founds. But, it
> does not know how to parse them correctly because it displays some error
> about a mistake in the file prolog (expecting a < and found a M). OK, so it
> tries to read my HL7 file like if it was an XML one.
>
> So I check the doc and found that [1]. Nice! Let's try this!
>
> And... BOOM:
>
> Caused by: org.apache.axis2.deployment.DeploymentException:
> org.wso2.carbon.business.messaging.hl7.transport.HL7TransportListener
> cannot be found by axis2_1.6.1.wso2v20
> at org.apache.axis2.deployment.AxisConfigBuilder.
> processTransportReceivers(AxisConfigBuilder.java:639)
> at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(
> AxisConfigBuilder.java:130)
> at org.wso2.carbon.core.CarbonAxisConfigurator.
> populateAxisConfiguration(CarbonAxisConfigurator.java:341)
> at org.wso2.carbon.core.CarbonAxisConfigurator.
> getAxisConfiguration(CarbonAxisConfigurator.java:192)
> ... 41 more
> Caused by: java.lang.ClassNotFoundException: org.wso2.carbon.business.
> messaging.hl7.transport.HL7TransportListener cannot be found by
> axis2_1.6.1.wso2v20
>
> I searched a little and I found a class [2] which seems to be in a
> business-adaptors component which I can't find in my distribution.
>
> Where can I have it, please?
>
> Regards,
>
> Thomas
>
> [1] https://docs.wso2.com/display/EI600/HL7+Transport
> [2] https://github.com/wso2/carbon-mediation/blob/master/
> components/business-adaptors/hl7/org.wso2.carbon.business.
> messaging.hl7.transport/src/main/java/org/wso2/carbon/
> business/messaging/hl7/transport/HL7TransportListener.java
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


[Dev] EI 6.0.0 and HL7 transport activation

2017-11-09 Thread Thomas LEGRAND
Hello,

I have a use case where I have a directory in which are dropped HL7
messages in the ER7 format (the pipe one). So I created an inbound endpoint
which monitors this directory and eat every .hl7 file it founds. But, it
does not know how to parse them correctly because it displays some error
about a mistake in the file prolog (expecting a < and found a M). OK, so it
tries to read my HL7 file like if it was an XML one.

So I check the doc and found that [1]. Nice! Let's try this!

And... BOOM:

Caused by: org.apache.axis2.deployment.DeploymentException:
org.wso2.carbon.business.messaging.hl7.transport.HL7TransportListener
cannot be found by axis2_1.6.1.wso2v20
at
org.apache.axis2.deployment.AxisConfigBuilder.processTransportReceivers(AxisConfigBuilder.java:639)
at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:130)
at
org.wso2.carbon.core.CarbonAxisConfigurator.populateAxisConfiguration(CarbonAxisConfigurator.java:341)
at
org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfiguration(CarbonAxisConfigurator.java:192)
... 41 more
Caused by: java.lang.ClassNotFoundException:
org.wso2.carbon.business.messaging.hl7.transport.HL7TransportListener
cannot be found by axis2_1.6.1.wso2v20

I searched a little and I found a class [2] which seems to be in a
business-adaptors component which I can't find in my distribution.

Where can I have it, please?

Regards,

Thomas

[1] https://docs.wso2.com/display/EI600/HL7+Transport
[2]
https://github.com/wso2/carbon-mediation/blob/master/components/business-adaptors/hl7/org.wso2.carbon.business.messaging.hl7.transport/src/main/java/org/wso2/carbon/business/messaging/hl7/transport/HL7TransportListener.java
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when building connectors from source in wso2 extensions

2017-11-09 Thread Keerthika Mahendralingam
Hi Arunan,

In my case, it builds fine without any changes because the
maven-assembly-plugin is of version 2.2-beta-5. But according to your log
maven-assembly-plugin version 2.4.1 and it doesn't support assemblies
without id. pom.xml doesn't force any version hence causing such problems.
We will fix this.

Thanks,
Keerthika.

On Thu, Nov 9, 2017 at 5:43 PM, Keerthika Mahendralingam  wrote:

> Hi Arunan,
>
> I tried the twitter connector as well. I was able to build it
> successfully. Anyhow, we will check into this further.
>
> Environment:
> Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
> 2015-11-10T22:11:47+05:30)
> Maven home: /usr/local/Cellar/maven@3.3/3.3.9/libexec
> Java version: 1.8.0_121, vendor: Oracle Corporation
> Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_
> 121.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"
>
> Thanks,
> Keerthika.
>
> On Thu, Nov 9, 2017 at 5:35 PM, Arunan Sugunakumar 
> wrote:
>
>> Hi,
>>
>> I cloned esb-connector-github[1] and esb-connector-twitter[2] and tried
>> "mvn clean install" inside the directory.
>>
>> I have attached the terminal logs with this mail.
>>
>> Environment :
>> Apache Maven 3.3.9
>> Maven home: /usr/share/maven
>> Java version: 1.8.0_151, vendor: Oracle Corporation
>> Java home: /usr/lib/jvm/java-8-oracle/jre
>> Default locale: en_US, platform encoding: UTF-8
>> OS name: "linux", version: "4.4.0-98-generic", arch: "amd64", family:
>> "unix"
>>
>>
>> [1] https://github.com/wso2-extensions/esb-connector-github
>> 
>> [2] https://github.com/wso2-extensions/esb-connector-twitter
>>
>>
>> Thank you
>>
>> On Thu, Nov 9, 2017 at 4:53 PM, Keerthika Mahendralingam <
>> keerth...@wso2.com> wrote:
>>
>>> Hi Arunan,
>>>
>>> We were able to build the connectors successfully with maven latest
>>> versions(checked with 3.2.2, 3.3.9, 3.5.0 and 3.5.2). Could you please let
>>> us know what are the connectors that you tried? And what is the error you
>>> got?
>>>
>>> Thanks,
>>> Keerthika.
>>>
>>> On Thu, Nov 9, 2017 at 11:55 AM, Keerthika Mahendralingam <
>>> keerth...@wso2.com> wrote:
>>>
 Hi Arun,

 We will check and let you know.

 Thanks,
 Keerthika.

 On Thu, Nov 9, 2017 at 11:22 AM, Godwin Shrimal 
 wrote:

> Adding @Malaka.
>
>
>
> Thanks
> Godwin
>
> On Wed, Nov 8, 2017 at 3:54 PM, Arunan Sugunakumar 
> wrote:
>
>> Hi,
>>
>> Almost all the ESB connectors in wso2 extensions github organisation
>> fails when you are building them with mvn 3.3.9 which is the latest
>> version. But they are building fine when you are using mvn 3.0.5. There 
>> is
>> nothing about this mentioned in github readme files.
>>
>> IMHO it is better to include them in the readme files because it
>> saves a lot of time for the developer when he tries to contribute the
>> repositories. Or else he would have to go through all the documentation 
>> to
>> find the one place
>> 
>> where it says about it.
>>
>> The readme file just says run mvn clean install for now.
>>
>> Thanks
>>
>> --
>> *Sugunakumar Arunan*
>> Sofware Engineering - Intern | WSO2
>>
>> Email : aru...@wso2.com
>> Mobile : 0766016272
>> Web : http://wso2.com
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> *
> twitter: https://twitter.com/godwinamila
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 
 Keerthika Mahendralingam
 Software Engineer
 Mobile :+94 (0) 776 121144 <+94%2077%20612%201144>
 keerth...@wso2.com
 WSO2, Inc.
 lean . enterprise . middleware

>>>
>>>
>>>
>>> --
>>> 
>>> Keerthika Mahendralingam
>>> Software Engineer
>>> Mobile :+94 (0) 776 121144 <+94%2077%20612%201144>
>>> keerth...@wso2.com
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>> *Sugunakumar Arunan*
>> Sofware Engineering - Intern | WSO2
>>
>> Email : aru...@wso2.com
>> Mobile : 

Re: [Dev] Error when building connectors from source in wso2 extensions

2017-11-09 Thread Keerthika Mahendralingam
Hi Arunan,

I tried the twitter connector as well. I was able to build it successfully.
Anyhow, we will check into this further.

Environment:
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
2015-11-10T22:11:47+05:30)
Maven home: /usr/local/Cellar/maven@3.3/3.3.9/libexec
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home:
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"

Thanks,
Keerthika.

On Thu, Nov 9, 2017 at 5:35 PM, Arunan Sugunakumar  wrote:

> Hi,
>
> I cloned esb-connector-github[1] and esb-connector-twitter[2] and tried
> "mvn clean install" inside the directory.
>
> I have attached the terminal logs with this mail.
>
> Environment :
> Apache Maven 3.3.9
> Maven home: /usr/share/maven
> Java version: 1.8.0_151, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-8-oracle/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "4.4.0-98-generic", arch: "amd64", family:
> "unix"
>
>
> [1] https://github.com/wso2-extensions/esb-connector-github
> 
> [2] https://github.com/wso2-extensions/esb-connector-twitter
>
>
> Thank you
>
> On Thu, Nov 9, 2017 at 4:53 PM, Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Hi Arunan,
>>
>> We were able to build the connectors successfully with maven latest
>> versions(checked with 3.2.2, 3.3.9, 3.5.0 and 3.5.2). Could you please let
>> us know what are the connectors that you tried? And what is the error you
>> got?
>>
>> Thanks,
>> Keerthika.
>>
>> On Thu, Nov 9, 2017 at 11:55 AM, Keerthika Mahendralingam <
>> keerth...@wso2.com> wrote:
>>
>>> Hi Arun,
>>>
>>> We will check and let you know.
>>>
>>> Thanks,
>>> Keerthika.
>>>
>>> On Thu, Nov 9, 2017 at 11:22 AM, Godwin Shrimal  wrote:
>>>
 Adding @Malaka.



 Thanks
 Godwin

 On Wed, Nov 8, 2017 at 3:54 PM, Arunan Sugunakumar 
 wrote:

> Hi,
>
> Almost all the ESB connectors in wso2 extensions github organisation
> fails when you are building them with mvn 3.3.9 which is the latest
> version. But they are building fine when you are using mvn 3.0.5. There is
> nothing about this mentioned in github readme files.
>
> IMHO it is better to include them in the readme files because it saves
> a lot of time for the developer when he tries to contribute the
> repositories. Or else he would have to go through all the documentation to
> find the one place
> 
> where it says about it.
>
> The readme file just says run mvn clean install for now.
>
> Thanks
>
> --
> *Sugunakumar Arunan*
> Sofware Engineering - Intern | WSO2
>
> Email : aru...@wso2.com
> Mobile : 0766016272
> Web : http://wso2.com
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Godwin Amila Shrimal*
 Associate Technical Lead
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94772264165*
 linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
 *
 twitter: https://twitter.com/godwinamila
 

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


>>>
>>>
>>> --
>>> 
>>> Keerthika Mahendralingam
>>> Software Engineer
>>> Mobile :+94 (0) 776 121144 <+94%2077%20612%201144>
>>> keerth...@wso2.com
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>> 
>> Keerthika Mahendralingam
>> Software Engineer
>> Mobile :+94 (0) 776 121144 <+94%2077%20612%201144>
>> keerth...@wso2.com
>> WSO2, Inc.
>> lean . enterprise . middleware
>>
>
>
>
> --
> *Sugunakumar Arunan*
> Sofware Engineering - Intern | WSO2
>
> Email : aru...@wso2.com
> Mobile : 0766016272
> Web : http://wso2.com
> 
>



-- 

Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for 
org.wso2.carbon.connector:org.wso2.carbon.connector.twitter:jar:2.0.7-SNAPSHOT
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found 
duplicate declaration of plugin 
org.apache.maven.plugins:maven-dependency-plugin @ line 275, column 21

Re: [Dev] Error when building connectors from source in wso2 extensions

2017-11-09 Thread Arunan Sugunakumar
Hi,

I cloned esb-connector-github[1] and esb-connector-twitter[2] and tried
"mvn clean install" inside the directory.

I have attached the terminal logs with this mail.

Environment :
Apache Maven 3.3.9
Maven home: /usr/share/maven
Java version: 1.8.0_151, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-98-generic", arch: "amd64", family: "unix"


[1] https://github.com/wso2-extensions/esb-connector-github

[2] https://github.com/wso2-extensions/esb-connector-twitter


Thank you

On Thu, Nov 9, 2017 at 4:53 PM, Keerthika Mahendralingam  wrote:

> Hi Arunan,
>
> We were able to build the connectors successfully with maven latest
> versions(checked with 3.2.2, 3.3.9, 3.5.0 and 3.5.2). Could you please let
> us know what are the connectors that you tried? And what is the error you
> got?
>
> Thanks,
> Keerthika.
>
> On Thu, Nov 9, 2017 at 11:55 AM, Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Hi Arun,
>>
>> We will check and let you know.
>>
>> Thanks,
>> Keerthika.
>>
>> On Thu, Nov 9, 2017 at 11:22 AM, Godwin Shrimal  wrote:
>>
>>> Adding @Malaka.
>>>
>>>
>>>
>>> Thanks
>>> Godwin
>>>
>>> On Wed, Nov 8, 2017 at 3:54 PM, Arunan Sugunakumar 
>>> wrote:
>>>
 Hi,

 Almost all the ESB connectors in wso2 extensions github organisation
 fails when you are building them with mvn 3.3.9 which is the latest
 version. But they are building fine when you are using mvn 3.0.5. There is
 nothing about this mentioned in github readme files.

 IMHO it is better to include them in the readme files because it saves
 a lot of time for the developer when he tries to contribute the
 repositories. Or else he would have to go through all the documentation to
 find the one place
 
 where it says about it.

 The readme file just says run mvn clean install for now.

 Thanks

 --
 *Sugunakumar Arunan*
 Sofware Engineering - Intern | WSO2

 Email : aru...@wso2.com
 Mobile : 0766016272
 Web : http://wso2.com
 

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


>>>
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Associate Technical Lead
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>>> *
>>> twitter: https://twitter.com/godwinamila
>>> 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> 
>> Keerthika Mahendralingam
>> Software Engineer
>> Mobile :+94 (0) 776 121144 <+94%2077%20612%201144>
>> keerth...@wso2.com
>> WSO2, Inc.
>> lean . enterprise . middleware
>>
>
>
>
> --
> 
> Keerthika Mahendralingam
> Software Engineer
> Mobile :+94 (0) 776 121144 <+94%2077%20612%201144>
> keerth...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
>



-- 
*Sugunakumar Arunan*
Sofware Engineering - Intern | WSO2

Email : aru...@wso2.com
Mobile : 0766016272
Web : http://wso2.com

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for 
org.wso2.carbon.connector:org.wso2.carbon.connector.twitter:jar:2.0.7-SNAPSHOT
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found 
duplicate declaration of plugin 
org.apache.maven.plugins:maven-dependency-plugin @ line 275, column 21
[WARNING] The expression ${version} is deprecated. Please use 
${project.version} instead.
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten 
the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support 
building such malformed projects.
[WARNING] 
[INFO] 
[INFO] 
[INFO] Building WSO2 Carbon - Mediation Library Connector For Twitter 
2.0.7-SNAPSHOT
[INFO] 
[WARNING] The POM for org.apache.bsf:bsf-all:jar:3.0 is missing, no dependency 
information available
[WARNING] The POM for 
org.eclipse.equinox:org.eclipse.equinox.http.servlet:jar:1.0.200.v20090520-1800 
is invalid, transitive dependencies (if any) will not be available, enable 
debug logging for more 

Re: [Dev] Deperecated sign methods in JWT generation flows.

2017-11-09 Thread Ruwan Abeykoon
HI All,
We should not remove extensibility.
We need to look for an alternative way on this do any improvement while
keeping extensibility.

Cheers,
Ruwan

On Thu, Nov 9, 2017 at 3:28 PM, Danushka Fernando 
wrote:

> Hi All
> In released IS 5.3.0 we have capability of extending the signing mechanism
> of JWT in JWTTokenGenerator and IDTokenBuilder. But in the latest code base
> [1] [2] we have deprecated all the protected methods and removed the usage
> of them as well. With this, we have removed the capability of extending
> signing mechanism.
>
> Previously we had following method structure.
>
> generateToken
>
> |
>
>  -> signJWT (protected)
>
>  |
>-> signJWTWithRSA (protected)
>
>
> Generate token method calls signJWT method and it calls sign JWT with RSA
> method. So simply by overriding signJWTWithRSA method we can override the
> JWT signing behavior. Currently we have deprecated both these methods and
> also removed the usage of the signJWT method and replaced its occurrence in
> generateToken method with OAuth2Util method. Which means we have removed
> the capability of extending signing.
>
> IMO what we should do here is deprecate signJWTWithRSA method and call
> utll method from signJWTWithRSA method and then in a future release we can
> remove that method and call util method directly from signJWT method. In
> that way we will remove duplicated code while not removing our
> extensibility.
>
> WDYT? Is there a reason for removing the current extensibility?
>
> [1] https://github.com/wso2-extensions/identity-inbound-
> auth-oauth/blob/master/components/org.wso2.carbon.
> identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/authcontext/
> JWTTokenGenerator.java
> [2] https://github.com/wso2-extensions/identity-inbound-
> auth-oauth/blob/master/components/org.wso2.carbon.
> identity.oauth/src/main/java/org/wso2/carbon/identity/openidconnect/
> DefaultIDTokenBuilder.java
>
> Thanks & Regards
> Danushka Fernando
> Associate Tech Lead
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729 <+94%2071%20633%202729>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB ]Error : AxisEngine InvalidSecurity popup.

2017-11-09 Thread Senuwan Withana
Hi Team,

When i tried to access secured back-end using the soap ui I got following
error message on ESB management console.

I would like to know, why is this error popups,


[2017-11-09 16:04:58,032] 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:261)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
[2017-11-09 16:04:58,037] 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:261)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)

Regards,


*Senuwan Withana*
Software Engineer - Support Team | WSO2

Email : senu...@wso2.com
Mobile: 94773212853
Web: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when building connectors from source in wso2 extensions

2017-11-09 Thread Keerthika Mahendralingam
Hi Arunan,

We were able to build the connectors successfully with maven latest
versions(checked with 3.2.2, 3.3.9, 3.5.0 and 3.5.2). Could you please let
us know what are the connectors that you tried? And what is the error you
got?

Thanks,
Keerthika.

On Thu, Nov 9, 2017 at 11:55 AM, Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Hi Arun,
>
> We will check and let you know.
>
> Thanks,
> Keerthika.
>
> On Thu, Nov 9, 2017 at 11:22 AM, Godwin Shrimal  wrote:
>
>> Adding @Malaka.
>>
>>
>>
>> Thanks
>> Godwin
>>
>> On Wed, Nov 8, 2017 at 3:54 PM, Arunan Sugunakumar 
>> wrote:
>>
>>> Hi,
>>>
>>> Almost all the ESB connectors in wso2 extensions github organisation
>>> fails when you are building them with mvn 3.3.9 which is the latest
>>> version. But they are building fine when you are using mvn 3.0.5. There is
>>> nothing about this mentioned in github readme files.
>>>
>>> IMHO it is better to include them in the readme files because it saves a
>>> lot of time for the developer when he tries to contribute the repositories.
>>> Or else he would have to go through all the documentation to find the one
>>> place
>>> 
>>> where it says about it.
>>>
>>> The readme file just says run mvn clean install for now.
>>>
>>> Thanks
>>>
>>> --
>>> *Sugunakumar Arunan*
>>> Sofware Engineering - Intern | WSO2
>>>
>>> Email : aru...@wso2.com
>>> Mobile : 0766016272
>>> Web : http://wso2.com
>>> 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Associate Technical Lead
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>> *
>> twitter: https://twitter.com/godwinamila
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> 
> Keerthika Mahendralingam
> Software Engineer
> Mobile :+94 (0) 776 121144 <+94%2077%20612%201144>
> keerth...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
>



-- 

Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Charon] Charon 3 missing password setter method for User

2017-11-09 Thread Isuranga Perera
Hi All,

Even though Charon 2 User class has setter methods for password and other
attributes Charon 3 doesn't provide most of those setter methods. So is
there any other way I can set the password and other attributes without
editing the encoded user object. Appreciate any help.

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


Re: [Dev] Usage of "sticky cookie JSESSIONID" parameter.

2017-11-09 Thread Senuwan Withana
Hi Team,

I have added the documentation jira  to update documentation.

[1] - https://support.wso2.com/jira/browse/WSODOCINTERNAL-892

*Senuwan Withana*
Software Engineer - Support Team | WSO2

Email : senu...@wso2.com
Mobile: 94773212853
Web: http://www.wso2.com



On Thu, Nov 9, 2017 at 4:38 PM, Senuwan Withana  wrote:

> Hi Abimaran,
>
> No, I have not installed it. I just follow the documentation steps.
>
> *Senuwan Withana*
> Software Engineer - Support Team | WSO2
>
> Email : senu...@wso2.com
> Mobile: 94773212853
> Web: http://www.wso2.com
>
>
>
> On Thu, Nov 9, 2017 at 4:34 PM, Abimaran Kugathasan 
> wrote:
>
>> Hi Senuwan,
>>
>> Have you installed sticky module on your Nginx?
>>
>> [1]: https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/overview
>>
>> On Thu, Nov 9, 2017 at 2:29 PM, Senuwan Withana  wrote:
>>
>>> Hi Team,
>>>
>>> I would like to know what is the usage of below parameter, in the NGINX
>>> configuring file which located on [1] document.
>>>
>>>
>>> sticky cookie JSESSIONID;
>>>
>>>
>>> I got following error message when restarts my NGINX service, but when I
>>> removed above parameter no issue came.
>>>
>>>
>>> -- Unit nginx.service has begun starting up.
>>> Nov 09 14:15:11 senuwan-ThinkPad nginx[3869]: nginx: [emerg] unknown
>>> directive "sticky" in /etc/nginx/conf.d/am.https.conf:2
>>> Nov 09 14:15:11 senuwan-ThinkPad nginx[3869]: nginx: configuration file
>>> /etc/nginx/nginx.conf test failed
>>> Nov 09 14:15:11 senuwan-ThinkPad systemd[1]: nginx.service: Control
>>> process exited, code=exited status=1
>>> Nov 09 14:15:11 senuwan-ThinkPad systemd[1]: Failed to start A high
>>> performance web server and a reverse proxy server.
>>>
>>>
>>> [1] https://docs.wso2.com/display/CLUSTER44x/Clustering+the+
>>> Gateway#ClusteringtheGateway-Configuringtheloadbalancer
>>>
>>> Regards,
>>>
>>> *Senuwan Withana*
>>> Software Engineer - Support Team | WSO2
>>>
>>> Email : senu...@wso2.com
>>> Mobile: 94773212853
>>> Web: http://www.wso2.com
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer - API Technologies
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820 <+94%2077%20392%202820>
>>
>> 
>> 
>>   
>> 
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: LDAP socket closed error.

2017-11-09 Thread Senuwan Withana
Hi Godwin,

I was able to figure out, why that error happened. It was happening because
bellow parameter was not configured properly.

 ldap://localhost:10389

Regards,
*Senuwan Withana*
Software Engineer - Support Team | WSO2

Email : senu...@wso2.com
Mobile: 94773212853
Web: http://www.wso2.com



On Thu, Nov 9, 2017 at 11:21 AM, Godwin Shrimal  wrote:

> Hi Senuwan,
>
> Can you attach the user-mgt.xml and wso2carbon.log in APIM node?
>
>
> Thanks
> Godwin
>
> On Thu, Nov 9, 2017 at 10:44 AM, Senuwan Withana  wrote:
>
>> Hi Team,
>>
>> I have created cluster, IS as key manager (5.3.0)  and  API manager as
>> Pub/Store/TM (2.1.0) by referring [1] document.  Step 4 I have pointed out
>> LDAP server port number into the APi Mananger as mentioned or document.  I
>> was able to up IS server without no issues. but  When I up API manager
>>
>> bellow error message pop up
>>
>> *LDAPConnectionContext Error obtaining connection for the second
>> timelocalhost:9443; socket closed*
>>
>> *Caused by: java.lang.reflect.InvocationTargetException*
>>
>>
>>
>> Please help to resolve this issue..
>>
>>
>>
>> [1] - https://docs.wso2.com/display/AM210/Configuring+WSO2+Ident
>> ity+Server+as+a+Key+Manager#ConfiguringWSO2IdentityServerasa
>> KeyManager-Step5-ConfiguretheAPIManager
>>
>>
>> Regards,
>>
>> *Senuwan Withana*
>> Software Engineer - Support Team | WSO2
>>
>> Email : senu...@wso2.com
>> Mobile: 94773212853
>> Web: http://www.wso2.com
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> *
> twitter: https://twitter.com/godwinamila
> 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Usage of "sticky cookie JSESSIONID" parameter.

2017-11-09 Thread Abimaran Kugathasan
Hi Senuwan,

Have you installed sticky module on your Nginx?

[1]: https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/overview

On Thu, Nov 9, 2017 at 2:29 PM, Senuwan Withana  wrote:

> Hi Team,
>
> I would like to know what is the usage of below parameter, in the NGINX
> configuring file which located on [1] document.
>
>
> sticky cookie JSESSIONID;
>
>
> I got following error message when restarts my NGINX service, but when I
> removed above parameter no issue came.
>
>
> -- Unit nginx.service has begun starting up.
> Nov 09 14:15:11 senuwan-ThinkPad nginx[3869]: nginx: [emerg] unknown
> directive "sticky" in /etc/nginx/conf.d/am.https.conf:2
> Nov 09 14:15:11 senuwan-ThinkPad nginx[3869]: nginx: configuration file
> /etc/nginx/nginx.conf test failed
> Nov 09 14:15:11 senuwan-ThinkPad systemd[1]: nginx.service: Control
> process exited, code=exited status=1
> Nov 09 14:15:11 senuwan-ThinkPad systemd[1]: Failed to start A high
> performance web server and a reverse proxy server.
>
>
> [1] https://docs.wso2.com/display/CLUSTER44x/Clustering+the+Gateway#
> ClusteringtheGateway-Configuringtheloadbalancer
>
> Regards,
>
> *Senuwan Withana*
> Software Engineer - Support Team | WSO2
>
> Email : senu...@wso2.com
> Mobile: 94773212853
> Web: http://www.wso2.com
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820


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


[Dev] Usage of "sticky cookie JSESSIONID" parameter.

2017-11-09 Thread Senuwan Withana
Hi Team,

I would like to know what is the usage of below parameter, in the NGINX
configuring file which located on [1] document.


sticky cookie JSESSIONID;


I got following error message when restarts my NGINX service, but when I
removed above parameter no issue came.


-- Unit nginx.service has begun starting up.
Nov 09 14:15:11 senuwan-ThinkPad nginx[3869]: nginx: [emerg] unknown
directive "sticky" in /etc/nginx/conf.d/am.https.conf:2
Nov 09 14:15:11 senuwan-ThinkPad nginx[3869]: nginx: configuration file
/etc/nginx/nginx.conf test failed
Nov 09 14:15:11 senuwan-ThinkPad systemd[1]: nginx.service: Control process
exited, code=exited status=1
Nov 09 14:15:11 senuwan-ThinkPad systemd[1]: Failed to start A high
performance web server and a reverse proxy server.


[1]
https://docs.wso2.com/display/CLUSTER44x/Clustering+the+Gateway#ClusteringtheGateway-Configuringtheloadbalancer

Regards,

*Senuwan Withana*
Software Engineer - Support Team | WSO2

Email : senu...@wso2.com
Mobile: 94773212853
Web: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS]Code Refactoring in Response Type Handlers.

2017-11-09 Thread Hasini Witharana
Hi all,

In the TokenResponseTypeHandler[1] class we handle both token and id_token
response types. When refactoring the code I have separated the logic into
two classes where one class handle the creation of access token and other
class handle the creation of id_token.

There is a concern, if a customer has extended the TokenResponseTypeHandler
class and done some modifications to id_token, after this refactoring that
customer will fail to continue the work as before. How should I proceed?

[1] -
https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/master/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/authz/handlers/TokenResponseTypeHandler.java

Thank you.

-- 

*Hasini Witharana*
Software Engineering Intern | WSO2


*Email : hasi...@wso2.com *

*Mobile : +94713850143[image: http://wso2.com/signature]
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Charon] Charon 3 missing password setter method for User

2017-11-09 Thread Johann Nallathamby
*[+IAM Team]*

On Thu, Nov 9, 2017 at 2:11 PM, Isuranga Perera 
wrote:

> Hi All,
>
> Even though Charon 2 User class has setter methods for password and other
> attributes Charon 3 doesn't provide most of those setter methods. So is
> there any other way I can set the password and other attributes without
> editing the encoded user object. Appreciate any help.
>
> Best Regards
> Isuranga Perera
>



-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Senior Lead Solutions Engineer
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Shouldn't we have an admin service method to delete set of users at once?

2017-11-09 Thread Ushani Balasooriya
Thanks Isura and Irham,

I think still I need to create a group in SCIM call more like a role. Then
I can even use *addRemoveUsersOfRole *in admin services*. *My requirement
was to delete selected users belong to different roles.

I think what Isura has mentioned is an option to proceed. But doesnt it
make multiple service calls?

On Thu, Nov 9, 2017 at 9:53 AM, Isura Karunaratne  wrote:

> Hi Ushani,
>
>
>
> On Thu, Nov 9, 2017 at 9:10 AM, Ushani Balasooriya 
> wrote:
>
>> Hi IAM Team,
>>
>> During the implementation of a third party web app to manage users, I
>> wanted to have a feature where I can select few users and delete them at
>> once.
>>
>> Then I noticed in our admin services we have only below methods to delete
>> users in our *UserAdmin* service.
>>
>> - *addRemoveUsersOfRole* - Delete users only in a particular role
>> - *deleteUser* - Delete one selected user
>>
>> In *deleteUser* method allow only one user to delete.
>>
>> Can you please advice whether this is designed and implemented due to any
>> particular reason or is it a lacking feature in our system? Or is there any
>> other mechanism for me to delete set of users at once?
>>
>
> C4 user core APIs does not support delete multiple users at once. You can
> loop the deleteUser API to delete set of users.
>
> Thanks
> Isura.
>
>>
>> Appreciate your quick response.
>>
>> Thanks,
>> --
>> *Ushani Balasooriya*
>> Associate Technical Lead - EE;
>> WSO2 Inc; http://www.wso2.com/.
>> Mobile; +94772636796
>>
>>
>
>
> --
>
> *Isura Dilhara Karunaratne*
> Associate Technical Lead | WSO2
> Email: is...@wso2.com
> Mob : +94 772 254 810 <+94%2077%20225%204810>
> Blog : http://isurad.blogspot.com/
>
>
>
>


-- 
*Ushani Balasooriya*
Associate Technical Lead - EE;
WSO2 Inc; http://www.wso2.com/.
Mobile; +94772636796
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev