[Dev] [BPS] Pull request: UI fixes

2015-07-20 Thread Sharon David
Hi,

Changes made to the BPMN and Humantask Explorer is in the bellow mentioned
PR
Let me know if there is anything else thats needs to be done.

Please check and merge the PR [1
]

1. https://github.com/wso2/carbon-business-process/pull/107


-- 
Sharon David
Software Engineer - UI/UX  |   WSO2 Inc

+94 777 668 411  |  shar...@wso2.com  |   http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] how to register an event in user signup for ES extension

2015-07-20 Thread Lalaji Sureshika
Hi Udara,

On Mon, Jul 20, 2015 at 11:01 PM, Udara Rathnayake  wrote:

> Hi All,
>
> Self sign-up handles within SSO app on our side not through the store or
> publisher. Above approach will work if we are to use the OOTB provided
> setup(store/publishred SSOed with sso app). But will break once configured
> with an external IDP.
>

 I think keeping self signup component in SSO app is not correct.It has to
be part of Store/Publisher/common..For example,consider how current APIM
Store and Publisher works in both SSO enabled/disabled scenarios with
having self signup feature.IMO,same behaviour has to be support from ES
store and publisher as well.

Our requirement is to set an asset specific permission
['API'->'Subscribe'],when a user signup to store either SSO
enabled/disabled.So from ES side there has to be a signup component which
works in both SSO enabled/disabled mode and which is able to set asset
specific permissions in to the signup user.

Thanks;



> Regards,
> UdaraR
>
> On Tue, Jul 21, 2015 at 6:49 AM, Lalaji Sureshika  wrote:
>
>> Hi Sameera,
>>
>> On Jul 20, 2015 9:32 PM, "Sameera Medagammaddegedara" 
>> wrote:
>> >
>> > Hi Lakshman,
>> >
>> >
>> > Could we not do this in the onUserLoggedIn callback itself after
>> checking if the logged in user already has the subscriber role or not?
>>
>> We can't use this approach,because then for any user tries to login to
>> store,we are setting the subscriber role,which is incorrect..
>>
> Shouldn't all store sign-up users have the subscriber role? Can there be
> store logged-in users without having the subscriber role?
>

>> >
>> >
>> > Thank You,
>> > Sameera
>> >
>> > On Mon, Jul 20, 2015 at 6:10 AM, Lakshman Udayakantha <
>> lakshm...@wso2.com> wrote:
>> >>
>> >> Couldn't add onLogin function is used in extension in previous mail.
>> sorry for that. find it below.
>> >>
>> >> onUserLoggedIn : function(){
>> >> var userName=ctx.username;
>> >> var apistore =
>> require('apistore').apistore.instance(userName);
>> >> var subscriber=apistore.getSubscriber(userName);
>> >> if(!subscriber){
>> >> apistore.addSubscriber(userName,ctx.tenantId);
>> >> }
>> >> },
>> >>
>> >> additionally, found below function
>> >>
>> >>  event.on('userRegister', function (tenantId, user) {
>> >> log.info("user
>> registering...");
>> >> configs(tenantId).userRoles.forEach(function (role) {
>> >> if (user.hasRoles([role])) {
>> >> return;
>> >> }
>> >> user.addRoles([role]);
>> >> });
>> >> });
>> >>
>> >> It should be call on user signup. But it calls on first login for the
>> users who signed up. Any way I can't change that function to add subscriber
>> role to users because this function found in store/module/store.js file
>> which is not in extension directory. simply this function reside in ES code
>> and adding subscriber role to users should happen in extension because that
>> functionality is specific to API store.
>> >>
>> >> Thanks
>> >>
>> >> On Mon, Jul 20, 2015 at 3:05 PM, Lakshman Udayakantha <
>> lakshm...@wso2.com> wrote:
>> >>>
>> >>> Hi Sameera/ES Team,
>> >>>
>> >>> I am working on [1]. I want to add to users who sign up in store, the
>> subscriber role.
>> >>> Below function is used to add users as subscribers in their first
>> login to subscriber tables in asset.js function in store extension. similar
>> requirement needs for signup as well. how do I achieve this?
>> >>>
>> >>> [1] https://wso2.org/jira/browse/REGISTRY-2683
>> >>>
>> >>> Thanks
>> >>> --
>> >>> Lakshman Udayakantha
>> >>> WSO2 Inc. www.wso2.com
>> >>> lean.enterprise.middleware
>> >>> Mobile: 0711241005
>> >>>
>> >>
>> >>
>> >>
>> >> --
>> >> Lakshman Udayakantha
>> >> WSO2 Inc. www.wso2.com
>> >> lean.enterprise.middleware
>> >> Mobile: 0711241005
>> >>
>> >
>> >
>> >
>> > --
>> > Sameera Medagammaddegedara
>> > Software Engineer
>> >
>> > Contact:
>> > Email: samee...@wso2.com
>> > Mobile: + 94 077 255 3005
>>
>>
>


-- 
Lalaji Sureshika
WSO2, Inc.;  http://wso2.com/
email: lal...@wso2.com; cell: +94 71 608 6811
blog: http://lalajisureshika.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Error in using WSO2 OAuth2 Playground with APIM 1.9.0

2015-07-20 Thread Priyadarssini Kishokumar
Hi,

I gave the url when the time of creating the application. The same way I
tested with AM 1.7.0.

On Tue, Jul 21, 2015 at 11:44 AM, Nuwan Dias  wrote:

> Did you provide the call back url of the Application at the time of
> creating the Application or did you provide it by updating the Application
> after you generated keys?
>
> Thanks,
> NuwanD.
>
> On Tue, Jul 21, 2015 at 11:38 AM, Priyadarssini Kishokumar <
> priyadarss...@wso2.com> wrote:
>
>> Hi,
>>
>> I created an api & application with callback url "
>> http://localhost:8080/playground2.0/oauth2client";.
>> I'm using playground2.0 with tomcat. When I tried to authorize with the
>> needed parameters in playground, I'm getting below error.
>>  *invalid_callback*Registered callback does not match with the provided
>> url.
>> I enabled debug logs & noticed the callback url is null in registered App
>> as below.
>>
>>
>>
>> *[2015-07-21 11:27:35,055] DEBUG - OAuth2Service Validate Client
>> information request for client_id : dKwiXdK4OpFMzYbcBMshiSHquIYa and
>> callback_uri http://localhost:8080/playground2.0/oauth2client
>> *
>>
>>
>> *[2015-07-21 11:27:35,057] DEBUG - OAuthServerConfiguration An instance
>> of
>> org.wso2.carbon.identity.oauth.tokenprocessor.PlainTextPersistenceProcessor
>> is created for OAuthServerConfiguration.*
>> *[2015-07-21 11:27:35,059] DEBUG - OAuth2Service Registered App found for
>> the given Client Id : dKwiXdK4OpFMzYbcBMshiSHquIYa ,App Name :
>> admin_aaa_PRODUCTION, Callback URL :*
>>
>>
>> I tried the same in AM 1.7.0 & it is working fine. Is it a bug in AM
>> 1.9.0 or do we need any additional configuration?
>>
>>
>>
>> --
>> Priya Kishok
>> Software Engineer
>> WSO2, Inc : http://wso2.com
>> Mob : +94774457404
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Nuwan Dias
>
> Technical Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 
Priya Kishok
Software Engineer
WSO2, Inc : http://wso2.com
Mob : +94774457404
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Failover Endpoint function is not working in APIM 1.9.0

2015-07-20 Thread Saneth Dharmakeerthi
Thanks Kishanthan for the information.

Lasitha,

Please try this out with given instruction.(Try it manually and see). If it
success, You can continue with the failover test case.

Thanks and Best Regards,

Saneth Dharmakeerthi
Senior Software Engineer
WSO2, Inc.
Mobile: +94772325511

On Tue, Jul 21, 2015 at 10:18 AM, Kishanthan Thangarajah <
kishant...@wso2.com> wrote:

>
>
> On Thu, Jul 9, 2015 at 5:36 PM, Evanthika Amarasiri 
> wrote:
>
>> Hi Saneth,
>>
>> On Thu, Jul 9, 2015 at 7:48 AM, Saneth Dharmakeerthi 
>> wrote:
>>
>>> Hi Evanthika,
>>>
>>> Why is service is deactivation is not a failover scenario?, The
>>> main problem here is the server return HTTP 200 for a URL which is not
>>> there. Here there might not be problem in Failover function, but as i see
>>> there is issue with web application deployment function.
>>>
>>
>> I had an offline chat with Kicha and he explained the reason for this. So
>> when we ‘Stop’ a service, it removes the relevant service context from
>> Tomcat. And when you invoke this service, it would respond with a HTTP 302
>> redirection to Carbon (The same behaviour can be observed when you undeploy
>> services too he explained). So the way Carbon is written is that when a
>> context is not available, it redirects to the default /carbon ctx. Hence
>> the reason for this behaviour.
>>
>
> Adding more to the above.
>
> We could change this behaviour by configuring the default value of root
> context to a different value, if we expect to have 404 for non existing
> contexts (webapps). Else this will always return a 302 with the redirection
> to /carbon webapp.
>
>
>> Regards,
>> Evanthika
>>
>>
>>> After web application un-deploy if we access the web application why it
>>> navigate to carbon login page ? we can't expect all the time client side to
>>> use a web browser to  assess a web application. In our case the web app is
>>> a REST web service where it is accessed by a Java client or CURL.
>>>
>>>
>>>
>>> Thanks and Best Regards,
>>>
>>> Saneth Dharmakeerthi
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> Mobile: +94772325511
>>>
>>> On Wed, Jul 8, 2015 at 6:54 PM, Lasitha Deergawansa 
>>> wrote:
>>>
 I have tried this with different servers as backends  and failover
 endpoint function is working fine.

 On Wed, Jul 8, 2015 at 5:55 PM, Evanthika Amarasiri >>> > wrote:

> I got Lasitha's web apps and tried to recreate the issue.
>
> In his scenario, he's deactivating the service from the UI. Once the
> service is deactivated, when you send a request to that endpoint, it
> redirects you to the Carbon login page with a HTTP 200 OK.
>
> Response headers:
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=BF80113B54C712FAA4810A027BA1CB03; Path=/;
> Secure; HttpOnly
> X-FRAME-OPTIONS: DENY
> Content-Type: text/html;charset=UTF-8
> Content-Language: en-US
> Transfer-Encoding: chunked
> Vary: Accept-Encoding
> Date: Wed, 08 Jul 2015 12:18:01 GMT
> Server: WSO2 Carbon Server
>
> So it actually does not consider it as a failed scenario. That is why
> it's not failing over.
>
> @Lasith, could you kindly try with an actual scenario where the
> endpoint fails?
>
> Regards,
> Evanthika
>
> On Wed, Jul 8, 2015 at 2:03 PM, Lasitha Deergawansa 
> wrote:
>
>> Hi All,
>>
>> I'm in process of automating Failover end point function test case -
>> APIM-45  [1] and figured out the Failover Endpoint function is not 
>> working
>> in APIM 1.9.0. This is a blocker for the completion of the test case.
>> Tracking purpose I have created a JIRA  APIMANAGER-3967  [2]
>>
>> Steps to recreate:
>> 1. Create, Publish and Subscribe a API with "Endpoint Type=Failover
>> Endpoint" with a production endpoint and multiple production failover
>> endpoints.
>> 2. Send a request to the API and it will correctly invoked the
>> production end point.
>> 3. Make the production end point unavailable and send the request
>> again
>> 4. No response from the API.
>>
>>
>>
>>
>> [1]
>> https://testlink.wso2.com/linkto.php?tprojectPrefix=APIM&item=testcase&id=APIM-45
>> [2] https://wso2.org/jira/browse/APIMANAGER-3967
>>
>>
>>
>> Thanks & Best Regards,
>> Lasitha.
>>
>
>

>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Error in using WSO2 OAuth2 Playground with APIM 1.9.0

2015-07-20 Thread Nuwan Dias
Did you provide the call back url of the Application at the time of
creating the Application or did you provide it by updating the Application
after you generated keys?

Thanks,
NuwanD.

On Tue, Jul 21, 2015 at 11:38 AM, Priyadarssini Kishokumar <
priyadarss...@wso2.com> wrote:

> Hi,
>
> I created an api & application with callback url "
> http://localhost:8080/playground2.0/oauth2client";.
> I'm using playground2.0 with tomcat. When I tried to authorize with the
> needed parameters in playground, I'm getting below error.
>  *invalid_callback*Registered callback does not match with the provided
> url.
> I enabled debug logs & noticed the callback url is null in registered App
> as below.
>
>
>
> *[2015-07-21 11:27:35,055] DEBUG - OAuth2Service Validate Client
> information request for client_id : dKwiXdK4OpFMzYbcBMshiSHquIYa and
> callback_uri http://localhost:8080/playground2.0/oauth2client
> *
>
>
> *[2015-07-21 11:27:35,057] DEBUG - OAuthServerConfiguration An instance of
> org.wso2.carbon.identity.oauth.tokenprocessor.PlainTextPersistenceProcessor
> is created for OAuthServerConfiguration.*
> *[2015-07-21 11:27:35,059] DEBUG - OAuth2Service Registered App found for
> the given Client Id : dKwiXdK4OpFMzYbcBMshiSHquIYa ,App Name :
> admin_aaa_PRODUCTION, Callback URL :*
>
>
> I tried the same in AM 1.7.0 & it is working fine. Is it a bug in AM 1.9.0
> or do we need any additional configuration?
>
>
>
> --
> Priya Kishok
> Software Engineer
> WSO2, Inc : http://wso2.com
> Mob : +94774457404
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nuwan Dias

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


[Dev] [APIM] Error in using WSO2 OAuth2 Playground with APIM 1.9.0

2015-07-20 Thread Priyadarssini Kishokumar
Hi,

I created an api & application with callback url "
http://localhost:8080/playground2.0/oauth2client";.
I'm using playground2.0 with tomcat. When I tried to authorize with the
needed parameters in playground, I'm getting below error.
 *invalid_callback*Registered callback does not match with the provided url.
I enabled debug logs & noticed the callback url is null in registered App
as below.



*[2015-07-21 11:27:35,055] DEBUG - OAuth2Service Validate Client
information request for client_id : dKwiXdK4OpFMzYbcBMshiSHquIYa and
callback_uri http://localhost:8080/playground2.0/oauth2client
*


*[2015-07-21 11:27:35,057] DEBUG - OAuthServerConfiguration An instance of
org.wso2.carbon.identity.oauth.tokenprocessor.PlainTextPersistenceProcessor
is created for OAuthServerConfiguration.*
*[2015-07-21 11:27:35,059] DEBUG - OAuth2Service Registered App found for
the given Client Id : dKwiXdK4OpFMzYbcBMshiSHquIYa ,App Name :
admin_aaa_PRODUCTION, Callback URL :*


I tried the same in AM 1.7.0 & it is working fine. Is it a bug in AM 1.9.0
or do we need any additional configuration?



-- 
Priya Kishok
Software Engineer
WSO2, Inc : http://wso2.com
Mob : +94774457404
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge the pull request

2015-07-20 Thread Rajith Vitharana
Hi Madhawa,

Merged the changes,

Thanks,

On Mon, Jul 20, 2015 at 3:58 PM, Madhawa Gunasekara 
wrote:

> Hi,
>
> Please review and merge the pull request, [1] fix for issue [2].
>
> [1] https://github.com/wso2/carbon-data/pull/10
> [2] https://wso2.org/jira/browse/DS-1036
>
> --
> *Madhawa Gunasekara*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 719411002 <+94+719411002>
> blog: *http://madhawa-gunasekara.blogspot.com
> *
> linkedin: *http://lk.linkedin.com/in/mgunasekara
> *
>



-- 
Rajith Vitharana

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


Re: [Dev] [AS] Running multiple instances in a single host

2015-07-20 Thread Sabra Ossen
Hi,

Thank you all for your help.

Regards.

On Tue, Jul 21, 2015 at 11:03 AM, Chathura Priyankara 
wrote:

> Hi Sabra,
>
> You can change  value in carbon.xml or else the port offset can be
> passed to the server during startup
> using following command ./wso2server.sh -DportOffset=3. Using the either
> way you can start multiple AS instances in a single host.
>
> Thanks,
> Chathura.
>
> On Tue, Jul 21, 2015 at 10:46 AM, Danushka Fernando 
> wrote:
>
>> You can set port offset in carbon.xml. Refer [1].
>>
>> [1] https://docs.wso2.com/pages/viewpage.action?pageId=43977215
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> On Tue, Jul 21, 2015 at 10:43 AM, Sabra Ossen  wrote:
>>
>>> Hi,
>>>
>>> Can someone give me some input on $subject. The AS version is 5.3.0
>>> alpha. Thank you in advance.
>>>
>>> Regards.
>>> --
>>> Sabra Ossen 
>>> Undergraduate | Department of Computer Science and Engineering
>>> University of Moratuwa
>>> Sri Lanka
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Chathura Priyankara
> Software Engineer | WSO2 Inc.
> Mobile : +94718795340
> Blog : www.codeoncloud.blogspot.com
>



-- 
Sabra Ossen 
Undergraduate | Department of Computer Science and Engineering
University of Moratuwa
Sri Lanka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] Running multiple instances in a single host

2015-07-20 Thread Chathura Priyankara
Hi Sabra,

You can change  value in carbon.xml or else the port offset can be
passed to the server during startup
using following command ./wso2server.sh -DportOffset=3. Using the either
way you can start multiple AS instances in a single host.

Thanks,
Chathura.

On Tue, Jul 21, 2015 at 10:46 AM, Danushka Fernando 
wrote:

> You can set port offset in carbon.xml. Refer [1].
>
> [1] https://docs.wso2.com/pages/viewpage.action?pageId=43977215
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Tue, Jul 21, 2015 at 10:43 AM, Sabra Ossen  wrote:
>
>> Hi,
>>
>> Can someone give me some input on $subject. The AS version is 5.3.0
>> alpha. Thank you in advance.
>>
>> Regards.
>> --
>> Sabra Ossen 
>> Undergraduate | Department of Computer Science and Engineering
>> University of Moratuwa
>> Sri Lanka
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] Running multiple instances in a single host

2015-07-20 Thread Irham Iqbal
Hi,

Also you can set the port offset as a system-property when starting the
server as below.

./wso2server.sh -DportOffset=

Thanks,
Iqbal

On Tue, Jul 21, 2015 at 10:46 AM, Danushka Fernando 
wrote:

> You can set port offset in carbon.xml. Refer [1].
>
> [1] https://docs.wso2.com/pages/viewpage.action?pageId=43977215
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Tue, Jul 21, 2015 at 10:43 AM, Sabra Ossen  wrote:
>
>> Hi,
>>
>> Can someone give me some input on $subject. The AS version is 5.3.0
>> alpha. Thank you in advance.
>>
>> Regards.
>> --
>> Sabra Ossen 
>> Undergraduate | Department of Computer Science and Engineering
>> University of Moratuwa
>> Sri Lanka
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Irham Iqbal
Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
phone: +94 777888452
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] Running multiple instances in a single host

2015-07-20 Thread Danushka Fernando
You can set port offset in carbon.xml. Refer [1].

[1] https://docs.wso2.com/pages/viewpage.action?pageId=43977215

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Tue, Jul 21, 2015 at 10:43 AM, Sabra Ossen  wrote:

> Hi,
>
> Can someone give me some input on $subject. The AS version is 5.3.0 alpha.
> Thank you in advance.
>
> Regards.
> --
> Sabra Ossen 
> Undergraduate | Department of Computer Science and Engineering
> University of Moratuwa
> Sri Lanka
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AS] Running multiple instances in a single host

2015-07-20 Thread Sabra Ossen
Hi,

Can someone give me some input on $subject. The AS version is 5.3.0 alpha.
Thank you in advance.

Regards.
-- 
Sabra Ossen 
Undergraduate | Department of Computer Science and Engineering
University of Moratuwa
Sri Lanka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BAM] Minimom Memory for BAM

2015-07-20 Thread Charitha Goonetilleke
Hi all,

We found another possible reason to occur low memory space. Since opentack
node creation does not create swap space automatically for nodes, there is
no way to allocate additional memory for functionalities if required. So we
added swap space to instance and it also solves the problem. We only used
file for swap area.

Steps: (as root)

1. Create a 4GB file called /swapfile. This will be our swap file.
fallocate -l 4096M /swapfile

2. Set the right permissions (because a world-readable swap file is a huge
local vulnerability):
chmod 600 /swapfile

3. After creating the correctly sized file, format it to swap:
mkswap /swapfile

4. Activate the swap file:
swapon /swapfile

5. Edit /etc/fstab and add an entry for the swap file:
/swapfile none swap defaults 0 0



On Sun, Jul 19, 2015 at 11:49 AM, Ayyoob Hamza  wrote:

> Found the reason for bam not able to execute the summarisation script. this 
> was
> due to less disk space on server. Even though there was 7GB disk space
> available on the server, it had only 700 inode for filesystem. I deleted
> the files that not needed.
>
> This solved the issue.
>
> *Ayyoob Hamza*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>
> On Sun, Jul 19, 2015 at 10:37 AM, Ayyoob Hamza  wrote:
>
>> Hi,
>> We are working on pushing sensor data into the BAM. Suddenly bam
>> summarisation stopped working after a while, however still the sensor
>> events are being pushed into Cassandra. I just wanted to know, if the
>> number of data points increases then does it requires more of a reasonable
>> amount of memory(RAM) to summarise. is that the default behaviour of BAM ?.
>> If that is the case, what is the minimum requirement for the memory needed
>> for an instance to be run on a production environment.
>>
>> Or wanted to know having a machine more than the pre requisite[1] is
>> sufficient ?
>>
>> https://docs.wso2.com/display/BAM250/Installation+Prerequisites
>>
>> Thanks,
>> *Ayyoob Hamza*
>> *Software Engineer*
>> WSO2 Inc.; http://wso2.com
>> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Charitha Goonetilleke*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 751 3669 <%2B94777513669>
Twitter:@CharithaWs , fb: charithag
, linkedin: charithag

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


Re: [Dev] Failover Endpoint function is not working in APIM 1.9.0

2015-07-20 Thread Kishanthan Thangarajah
On Thu, Jul 9, 2015 at 5:36 PM, Evanthika Amarasiri 
wrote:

> Hi Saneth,
>
> On Thu, Jul 9, 2015 at 7:48 AM, Saneth Dharmakeerthi 
> wrote:
>
>> Hi Evanthika,
>>
>> Why is service is deactivation is not a failover scenario?, The
>> main problem here is the server return HTTP 200 for a URL which is not
>> there. Here there might not be problem in Failover function, but as i see
>> there is issue with web application deployment function.
>>
>
> I had an offline chat with Kicha and he explained the reason for this. So
> when we ‘Stop’ a service, it removes the relevant service context from
> Tomcat. And when you invoke this service, it would respond with a HTTP 302
> redirection to Carbon (The same behaviour can be observed when you undeploy
> services too he explained). So the way Carbon is written is that when a
> context is not available, it redirects to the default /carbon ctx. Hence
> the reason for this behaviour.
>

Adding more to the above.

We could change this behaviour by configuring the default value of root
context to a different value, if we expect to have 404 for non existing
contexts (webapps). Else this will always return a 302 with the redirection
to /carbon webapp.


> Regards,
> Evanthika
>
>
>> After web application un-deploy if we access the web application why it
>> navigate to carbon login page ? we can't expect all the time client side to
>> use a web browser to  assess a web application. In our case the web app is
>> a REST web service where it is accessed by a Java client or CURL.
>>
>>
>>
>> Thanks and Best Regards,
>>
>> Saneth Dharmakeerthi
>> Senior Software Engineer
>> WSO2, Inc.
>> Mobile: +94772325511
>>
>> On Wed, Jul 8, 2015 at 6:54 PM, Lasitha Deergawansa 
>> wrote:
>>
>>> I have tried this with different servers as backends  and failover
>>> endpoint function is working fine.
>>>
>>> On Wed, Jul 8, 2015 at 5:55 PM, Evanthika Amarasiri 
>>> wrote:
>>>
 I got Lasitha's web apps and tried to recreate the issue.

 In his scenario, he's deactivating the service from the UI. Once the
 service is deactivated, when you send a request to that endpoint, it
 redirects you to the Carbon login page with a HTTP 200 OK.

 Response headers:
 HTTP/1.1 200 OK
 Set-Cookie: JSESSIONID=BF80113B54C712FAA4810A027BA1CB03; Path=/;
 Secure; HttpOnly
 X-FRAME-OPTIONS: DENY
 Content-Type: text/html;charset=UTF-8
 Content-Language: en-US
 Transfer-Encoding: chunked
 Vary: Accept-Encoding
 Date: Wed, 08 Jul 2015 12:18:01 GMT
 Server: WSO2 Carbon Server

 So it actually does not consider it as a failed scenario. That is why
 it's not failing over.

 @Lasith, could you kindly try with an actual scenario where the
 endpoint fails?

 Regards,
 Evanthika

 On Wed, Jul 8, 2015 at 2:03 PM, Lasitha Deergawansa 
 wrote:

> Hi All,
>
> I'm in process of automating Failover end point function test case -
> APIM-45  [1] and figured out the Failover Endpoint function is not working
> in APIM 1.9.0. This is a blocker for the completion of the test case.
> Tracking purpose I have created a JIRA  APIMANAGER-3967  [2]
>
> Steps to recreate:
> 1. Create, Publish and Subscribe a API with "Endpoint Type=Failover
> Endpoint" with a production endpoint and multiple production failover
> endpoints.
> 2. Send a request to the API and it will correctly invoked the
> production end point.
> 3. Make the production end point unavailable and send the request again
> 4. No response from the API.
>
>
>
>
> [1]
> https://testlink.wso2.com/linkto.php?tprojectPrefix=APIM&item=testcase&id=APIM-45
> [2] https://wso2.org/jira/browse/APIMANAGER-3967
>
>
>
> Thanks & Best Regards,
> Lasitha.
>


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


-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] kafka UI improvement (ESBJAVA-3915)

2015-07-20 Thread Shakila Sivagnanarajah
Thanks Vanjikumaran, Now I have removed the file.


On Tue, Jul 21, 2015 at 1:43 AM, Vanjikumaran Sivajothy 
wrote:

> in your pull request i can see unwanted binary file (.DS_Store) . Please
> remove it from the PR
>
> On Mon, Jul 20, 2015 at 11:23 AM, Kathees Rajendram 
> wrote:
>
>> Hi Shakila,
>>
>> You can run the ESB Kafka Inbound sample 904 and make sure other Kafka
>> functionality is not affected.
>>
>> Thanks,
>> Kathees
>>
>> On Mon, Jul 20, 2015 at 9:51 PM, Shakila Sivagnanarajah > > wrote:
>>
>>> Yes Malaka, I have tested with this change. This does not affect others.
>>>
>>>
>>> On Mon, Jul 20, 2015 at 5:47 PM, Malaka Silva  wrote:
>>>
 Have you tested the other inbound type after the change?

 On Mon, Jul 20, 2015 at 10:50 AM, Shakila Sivagnanarajah <
 shak...@wso2.com> wrote:

> Hi Malaka,
>
> I have modified the code according to your comment. Please find the PR
> [1].
> [1] https://github.com/wso2/carbon-mediation/pull/294
>
> Thank you
>
> On Fri, Jul 17, 2015 at 5:21 PM, Malaka Silva  wrote:
>
>> Hi Shakila,
>>
>> Added some comments.
>>
>> Did you check other inbound protocols with this change?
>>
>> Don't we need to apply the same for update page as well?
>>
>> On Fri, Jul 17, 2015 at 4:55 PM, Shakila Sivagnanarajah <
>> shak...@wso2.com> wrote:
>>
>>> Hi Malaka,
>>>
>>> Please review and merge PR[1] for $subject.
>>>
>>> [1] https://github.com/wso2/carbon-mediation/pull/294
>>>
>>>
>>> Thank you
>>> --
>>> Shakila Sivagnanarajah
>>> Associate Software Engineer
>>> Mobile :+94 (0) 770 760240
>>> shak...@wso2.com
>>>
>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech Lead
>> M: +94 777 219 791
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>> http://www.wso2.com/about/team/malaka-silva/
>> 
>>
>> Save a tree -Conserve nature & Save the world for your future. Print
>> this email only if it is absolutely necessary.
>>
>
>
>
> --
> Shakila Sivagnanarajah
> Associate Software Engineer
> Mobile :+94 (0) 770 760240
> shak...@wso2.com
>



 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 

 Save a tree -Conserve nature & Save the world for your future. Print
 this email only if it is absolutely necessary.

>>>
>>>
>>>
>>> --
>>> Shakila Sivagnanarajah
>>> Associate Software Engineer
>>> Mobile :+94 (0) 770 760240
>>> shak...@wso2.com
>>>
>>
>>
>>
>> --
>> Kathees
>> Software Engineer,
>> email: kath...@wso2.com
>> mobile: +94772596173
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vanjikumaran Sivajothy
> *Associate Technical Lead*
> *WSO2 Inc. http://wso2.com *
> *USA Mobile **+1-812-361-1286*
> *Srilanka Mobile:+94-777-219-209*
> [image: Facebook]  [image: Twitter]
>  [image: LinkedIn]
>  [image:
> Blogger]  [image: SlideShare]
> 
>
> This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may
> have received this communication in error, please reply to the
> sender indicating that fact and delete the copy you received and in
> addition, you should not print, copy, re-transmit, disseminate, or
> otherwise use the information contained in this communication.
> Internet communications cannot be guaranteed to be timely, secure, error
> or virus-free. The sender does not accept liability for any errors
> or omissions
>



-- 
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :+94 (0) 770 760240
shak...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge

2015-07-20 Thread Elilmatha Sivanesan
Hi Malaka,

Please review and merge PR [1]

[1]
https://github.com/wso2/esb-connectors/pull/240

Thank you.


-- 
*S.Elilmatha*
Associate  Software Engineer,

WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] [Architecture] Enabling flow control in Message Broker based on channel size in Bytes

2015-07-20 Thread Asitha Nanayakkara
Ok got it. Thanks.

On Tue, Jul 21, 2015 at 12:25 PM, Sasikala Kottegoda 
wrote:

> Hi Asitha,
>
> The problem here is that we cannot convert the bytes value into the chunk
> count.
>
> For example when the bytes value is configured to 1MB,
>
>- If the user publishes messages of size 10K, 100 chunks will be
>allowed
>- If the user publishes messages of size 1K, 1000 chunks will be
>allowed
>
> The smaller the message size gets, the larger the number of allowed
> chunks. Therefore, it's unpredictable at the time of configuration.
>
> Thank you
>
> On Tue, Jul 21, 2015 at 4:43 AM, Asitha Nanayakkara 
> wrote:
>
>> Hi all,
>>
>> Can't we use the bytes value in configuration (broker.xml) and convert
>> into chunk count when reading the configuration value and use it. That way
>> internally nothing is changed plus the user has a better idea on sizes as
>> well.
>> A win win situation IMO. Anyway if the global chunk count is greater
>> than 4/5 (or some reasonable fraction)  of the Disruptor ring size we can
>> throw an exception and stop the server at startup.
>>
>> Am I missing something here in that approach?
>>
>> Regards,
>> Asitha
>>
>> On Thu, Jul 16, 2015 at 6:12 PM, Sasikala Kottegoda 
>> wrote:
>>
>>> Hi all,
>>>
>>> Currently Message Broker enables flow controlling based on the content
>>> chunk count. The configuration as shown below.
>>>
>>> 
>>> 
>>> 800
>>> 8000
>>> 
>>>
>>> 
>>> 100
>>> 1000
>>> 
>>> 
>>>
>>> Flow controlling is enabled when the chunk count that is read from the
>>> buffer is higher than the specified number.
>>>
>>> Since this is misleading for a user, we decided to set the above limits
>>> for buffer sizes in Bytes.
>>>
>>> With the new implementation, we face many problems since we cannot not
>>> relate between the number of messages and the total space occupied by
>>> messages at the configuration time (Messages with different sizes could be
>>> published). Following are the problems faced due to this:
>>>
>>>- Flow controlling buffer limits are set for sizes in bytes.
>>>- Mina buffer accepts all the messages until we enable flow
>>>   controlling. (It is enabled when the total size of the messages read 
>>> by *the
>>>   broker* is higher than the specified limit.)
>>>   - For the given limit, the number of messages that could be taken
>>>   in is high for small messages.
>>>   - More time is taken to read and process a large number of small
>>>   messages.
>>>   - Therefore, by the time the broker enables flow controlling, the
>>>   Mina buffer would have overflowed.
>>>
>>>   - The ring buffer in the disruptor is initialized with a
>>>specified buffer size with a given number of elements.
>>>   - If the publisher sends messages with smaller sizes, a large
>>>   number of messages will be taken in before flow controlling is 
>>> enabled, and
>>>   the disruptor will overflow.
>>>- The user cannot relate between the number of messages that are
>>>published before flow controlling is enabled (By having a count specified
>>>as in the existing approach, the number of messages that are taken in is
>>>constant whatever the message size is).
>>>
>>> Therefore, we decided to leave the configuration as it is. Any comments
>>> are highly appreciated.
>>>
>>> Thank you
>>> --
>>> Sasikala Kottegoda
>>> *Software Engineer*
>>> WSO2 Inc., http://wso2.com/
>>> lean. enterprise. middleware
>>> Mobile: +94 774835928/712792401
>>>
>>> ___
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>>
>> --
>> *Asitha Nanayakkara*
>> Software Engineer
>> WSO2, Inc. http://wso2.com/
>> Mob: + 94 77 85 30 682
>>
>>
>
>
> --
> Sasikala Kottegoda
> *Software Engineer*
> WSO2 Inc., http://wso2.com/
> lean. enterprise. middleware
> Mobile: +94 774835928/712792401
>



-- 
*Asitha Nanayakkara*
Software Engineer
WSO2, Inc. http://wso2.com/
Mob: + 94 77 85 30 682
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [WS-Trust] KeyType

2015-07-20 Thread Harsha Thirimanna
http://travisspencer.com/blog/2009/02/what-is-a-proof-key.html
On Jul 20, 2015 8:52 PM, "Godwin Amila Shrimal"  wrote:

> Kind reminder on this..!
>
> On Thu, Jul 2, 2015 at 3:21 PM, Gayan Gunawardana  wrote:
>
>> Hi Devs,
>>
>> What is the subject conformation method we can use for NoProofKey (
>> 
>> http://schemas.xmlsoap.org/ws/2005/05/identity/NoProofKey).
>> According to
>> [1] "9.2 Key and Encryption Requirements" they mentioned about three key
>> types
>>
>> 1. http://docs.oasis-open.org/ws-sx/ws-trust/200512/PublicKey
>> 2. http://docs.oasis-open.org/ws-sx/ws-trust/200512/SymmetricKey
>> 3. http://docs.oasis-open.org/ws-sx/ws-trust/200512/Bearer
>>
>> AFAIK
>> If the KeyType contains the value PublicKey or SymmetricKey, the subject
>> confirmation method is Holder-Of-Key. If the KeyType contains the value
>> Bearer, the subject confirmation method is Bearer.
>> Is NoProofKey equal to Bearer type ?
>> [1] http://docs.oasis-open.org/ws-sx/ws-trust/v1.4/ws-trust.html
>>
>> Thanks,
>> Gayan
>> 
>>
>> --
>> Gayan Gunawardana
>> Software Engineer; WSO2 Inc.; http://wso2.com/
>> Email: ga...@wso2.com
>> Mobile: +94 (71) 8020933
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Input parameter values are not assigning in the server side (using SoapUI)

2015-07-20 Thread Bimali Dayananda
Hi,

Problem solved. It was with the media type.

Thanks all.

On Mon, Jul 20, 2015 at 12:31 PM, Lakshani Gamage  wrote:

> Hi Bimali,
>
> Can you please attach the wadl file and a screen shot soapUI request?
>
> Thank You.
>
> On Mon, Jul 20, 2015 at 11:34 AM, Bimali Dayananda 
> wrote:
>
>> Hi,
>>
>> I'm testing a jax-rs web service (GET method) using SoapUI. I set
>> parameter values in the request.
>> But from the server side it always takes null values as parameter values.
>>
>> Any idea about this problem?
>>
>> Thanks.
>>
>> --
>> Bimali Dayananda
>> Intern-Software Engineering
>> Mobile : +94(77) 571 6618
>> bim...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Lakshani Gamage
>
> *Software Engineer*
> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>



-- 
Bimali Dayananda
Intern-Software Engineering
Mobile : +94(77) 571 6618
bim...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] how to register an event in user signup for ES extension

2015-07-20 Thread Udara Rathnayake
Hi All,

Self sign-up handles within SSO app on our side not through the store or
publisher. Above approach will work if we are to use the OOTB provided
setup(store/publishred SSOed with sso app). But will break once configured
with an external IDP.

Regards,
UdaraR

On Tue, Jul 21, 2015 at 6:49 AM, Lalaji Sureshika  wrote:

> Hi Sameera,
>
> On Jul 20, 2015 9:32 PM, "Sameera Medagammaddegedara" 
> wrote:
> >
> > Hi Lakshman,
> >
> >
> > Could we not do this in the onUserLoggedIn callback itself after
> checking if the logged in user already has the subscriber role or not?
>
> We can't use this approach,because then for any user tries to login to
> store,we are setting the subscriber role,which is incorrect..
>
Shouldn't all store sign-up users have the subscriber role? Can there be
store logged-in users without having the subscriber role?

> What we want is setting the subscriber role for store sign-up users.Isn't
> there a sign-up hook available as for login..?
>
> Thanks:
>
> >
> >
> > Thank You,
> > Sameera
> >
> > On Mon, Jul 20, 2015 at 6:10 AM, Lakshman Udayakantha <
> lakshm...@wso2.com> wrote:
> >>
> >> Couldn't add onLogin function is used in extension in previous mail.
> sorry for that. find it below.
> >>
> >> onUserLoggedIn : function(){
> >> var userName=ctx.username;
> >> var apistore =
> require('apistore').apistore.instance(userName);
> >> var subscriber=apistore.getSubscriber(userName);
> >> if(!subscriber){
> >> apistore.addSubscriber(userName,ctx.tenantId);
> >> }
> >> },
> >>
> >> additionally, found below function
> >>
> >>  event.on('userRegister', function (tenantId, user) {
> >> log.info("user
> registering...");
> >> configs(tenantId).userRoles.forEach(function (role) {
> >> if (user.hasRoles([role])) {
> >> return;
> >> }
> >> user.addRoles([role]);
> >> });
> >> });
> >>
> >> It should be call on user signup. But it calls on first login for the
> users who signed up. Any way I can't change that function to add subscriber
> role to users because this function found in store/module/store.js file
> which is not in extension directory. simply this function reside in ES code
> and adding subscriber role to users should happen in extension because that
> functionality is specific to API store.
> >>
> >> Thanks
> >>
> >> On Mon, Jul 20, 2015 at 3:05 PM, Lakshman Udayakantha <
> lakshm...@wso2.com> wrote:
> >>>
> >>> Hi Sameera/ES Team,
> >>>
> >>> I am working on [1]. I want to add to users who sign up in store, the
> subscriber role.
> >>> Below function is used to add users as subscribers in their first
> login to subscriber tables in asset.js function in store extension. similar
> requirement needs for signup as well. how do I achieve this?
> >>>
> >>> [1] https://wso2.org/jira/browse/REGISTRY-2683
> >>>
> >>> Thanks
> >>> --
> >>> Lakshman Udayakantha
> >>> WSO2 Inc. www.wso2.com
> >>> lean.enterprise.middleware
> >>> Mobile: 0711241005
> >>>
> >>
> >>
> >>
> >> --
> >> Lakshman Udayakantha
> >> WSO2 Inc. www.wso2.com
> >> lean.enterprise.middleware
> >> Mobile: 0711241005
> >>
> >
> >
> >
> > --
> > Sameera Medagammaddegedara
> > Software Engineer
> >
> > Contact:
> > Email: samee...@wso2.com
> > Mobile: + 94 077 255 3005
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Enabling flow control in Message Broker based on channel size in Bytes

2015-07-20 Thread Sasikala Kottegoda
Hi Asitha,

The problem here is that we cannot convert the bytes value into the chunk
count.

For example when the bytes value is configured to 1MB,

   - If the user publishes messages of size 10K, 100 chunks will be allowed
   - If the user publishes messages of size 1K, 1000 chunks will be allowed

The smaller the message size gets, the larger the number of allowed chunks.
Therefore, it's unpredictable at the time of configuration.

Thank you

On Tue, Jul 21, 2015 at 4:43 AM, Asitha Nanayakkara  wrote:

> Hi all,
>
> Can't we use the bytes value in configuration (broker.xml) and convert
> into chunk count when reading the configuration value and use it. That way
> internally nothing is changed plus the user has a better idea on sizes as
> well.
> A win win situation IMO. Anyway if the global chunk count is greater
> than 4/5 (or some reasonable fraction)  of the Disruptor ring size we can
> throw an exception and stop the server at startup.
>
> Am I missing something here in that approach?
>
> Regards,
> Asitha
>
> On Thu, Jul 16, 2015 at 6:12 PM, Sasikala Kottegoda 
> wrote:
>
>> Hi all,
>>
>> Currently Message Broker enables flow controlling based on the content
>> chunk count. The configuration as shown below.
>>
>> 
>> 
>> 800
>> 8000
>> 
>>
>> 
>> 100
>> 1000
>> 
>> 
>>
>> Flow controlling is enabled when the chunk count that is read from the
>> buffer is higher than the specified number.
>>
>> Since this is misleading for a user, we decided to set the above limits
>> for buffer sizes in Bytes.
>>
>> With the new implementation, we face many problems since we cannot not
>> relate between the number of messages and the total space occupied by
>> messages at the configuration time (Messages with different sizes could be
>> published). Following are the problems faced due to this:
>>
>>- Flow controlling buffer limits are set for sizes in bytes.
>>- Mina buffer accepts all the messages until we enable flow
>>   controlling. (It is enabled when the total size of the messages read 
>> by *the
>>   broker* is higher than the specified limit.)
>>   - For the given limit, the number of messages that could be taken
>>   in is high for small messages.
>>   - More time is taken to read and process a large number of small
>>   messages.
>>   - Therefore, by the time the broker enables flow controlling, the
>>   Mina buffer would have overflowed.
>>
>>   - The ring buffer in the disruptor is initialized with a specified
>>buffer size with a given number of elements.
>>   - If the publisher sends messages with smaller sizes, a large
>>   number of messages will be taken in before flow controlling is 
>> enabled, and
>>   the disruptor will overflow.
>>- The user cannot relate between the number of messages that are
>>published before flow controlling is enabled (By having a count specified
>>as in the existing approach, the number of messages that are taken in is
>>constant whatever the message size is).
>>
>> Therefore, we decided to leave the configuration as it is. Any comments
>> are highly appreciated.
>>
>> Thank you
>> --
>> Sasikala Kottegoda
>> *Software Engineer*
>> WSO2 Inc., http://wso2.com/
>> lean. enterprise. middleware
>> Mobile: +94 774835928/712792401
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> *Asitha Nanayakkara*
> Software Engineer
> WSO2, Inc. http://wso2.com/
> Mob: + 94 77 85 30 682
>
>


-- 
Sasikala Kottegoda
*Software Engineer*
WSO2 Inc., http://wso2.com/
lean. enterprise. middleware
Mobile: +94 774835928/712792401
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] how to register an event in user signup for ES extension

2015-07-20 Thread Lalaji Sureshika
Hi Sameera,

On Jul 20, 2015 9:32 PM, "Sameera Medagammaddegedara" 
wrote:
>
> Hi Lakshman,
>
>
> Could we not do this in the onUserLoggedIn callback itself after checking
if the logged in user already has the subscriber role or not?

We can't use this approach,because then for any user tries to login to
store,we are setting the subscriber role,which is incorrect..
What we want is setting the subscriber role for store sign-up users.Isn't
there a sign-up hook available as for login..?

Thanks:
>
>
> Thank You,
> Sameera
>
> On Mon, Jul 20, 2015 at 6:10 AM, Lakshman Udayakantha 
wrote:
>>
>> Couldn't add onLogin function is used in extension in previous mail.
sorry for that. find it below.
>>
>> onUserLoggedIn : function(){
>> var userName=ctx.username;
>> var apistore =
require('apistore').apistore.instance(userName);
>> var subscriber=apistore.getSubscriber(userName);
>> if(!subscriber){
>> apistore.addSubscriber(userName,ctx.tenantId);
>> }
>> },
>>
>> additionally, found below function
>>
>>  event.on('userRegister', function (tenantId, user) {
>> log.info("user registering...");
>> configs(tenantId).userRoles.forEach(function (role) {
>> if (user.hasRoles([role])) {
>> return;
>> }
>> user.addRoles([role]);
>> });
>> });
>>
>> It should be call on user signup. But it calls on first login for the
users who signed up. Any way I can't change that function to add subscriber
role to users because this function found in store/module/store.js file
which is not in extension directory. simply this function reside in ES code
and adding subscriber role to users should happen in extension because that
functionality is specific to API store.
>>
>> Thanks
>>
>> On Mon, Jul 20, 2015 at 3:05 PM, Lakshman Udayakantha 
wrote:
>>>
>>> Hi Sameera/ES Team,
>>>
>>> I am working on [1]. I want to add to users who sign up in store, the
subscriber role.
>>> Below function is used to add users as subscribers in their first login
to subscriber tables in asset.js function in store extension. similar
requirement needs for signup as well. how do I achieve this?
>>>
>>> [1] https://wso2.org/jira/browse/REGISTRY-2683
>>>
>>> Thanks
>>> --
>>> Lakshman Udayakantha
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>> Mobile: 0711241005
>>>
>>
>>
>>
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: 0711241005
>>
>
>
>
> --
> Sameera Medagammaddegedara
> Software Engineer
>
> Contact:
> Email: samee...@wso2.com
> Mobile: + 94 077 255 3005
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Enabling flow control in Message Broker based on channel size in Bytes

2015-07-20 Thread Asitha Nanayakkara
Hi all,

Can't we use the bytes value in configuration (broker.xml) and convert into
chunk count when reading the configuration value and use it. That way
internally nothing is changed plus the user has a better idea on sizes as
well.
A win win situation IMO. Anyway if the global chunk count is greater
than 4/5 (or some reasonable fraction)  of the Disruptor ring size we can
throw an exception and stop the server at startup.

Am I missing something here in that approach?

Regards,
Asitha

On Thu, Jul 16, 2015 at 6:12 PM, Sasikala Kottegoda 
wrote:

> Hi all,
>
> Currently Message Broker enables flow controlling based on the content
> chunk count. The configuration as shown below.
>
> 
> 
> 800
> 8000
> 
>
> 
> 100
> 1000
> 
> 
>
> Flow controlling is enabled when the chunk count that is read from the
> buffer is higher than the specified number.
>
> Since this is misleading for a user, we decided to set the above limits
> for buffer sizes in Bytes.
>
> With the new implementation, we face many problems since we cannot not
> relate between the number of messages and the total space occupied by
> messages at the configuration time (Messages with different sizes could be
> published). Following are the problems faced due to this:
>
>- Flow controlling buffer limits are set for sizes in bytes.
>- Mina buffer accepts all the messages until we enable flow
>   controlling. (It is enabled when the total size of the messages read by 
> *the
>   broker* is higher than the specified limit.)
>   - For the given limit, the number of messages that could be taken
>   in is high for small messages.
>   - More time is taken to read and process a large number of small
>   messages.
>   - Therefore, by the time the broker enables flow controlling, the
>   Mina buffer would have overflowed.
>
>   - The ring buffer in the disruptor is initialized with a specified
>buffer size with a given number of elements.
>   - If the publisher sends messages with smaller sizes, a large
>   number of messages will be taken in before flow controlling is enabled, 
> and
>   the disruptor will overflow.
>- The user cannot relate between the number of messages that are
>published before flow controlling is enabled (By having a count specified
>as in the existing approach, the number of messages that are taken in is
>constant whatever the message size is).
>
> Therefore, we decided to leave the configuration as it is. Any comments
> are highly appreciated.
>
> Thank you
> --
> Sasikala Kottegoda
> *Software Engineer*
> WSO2 Inc., http://wso2.com/
> lean. enterprise. middleware
> Mobile: +94 774835928/712792401
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
*Asitha Nanayakkara*
Software Engineer
WSO2, Inc. http://wso2.com/
Mob: + 94 77 85 30 682
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] kafka UI improvement (ESBJAVA-3915)

2015-07-20 Thread Vanjikumaran Sivajothy
in your pull request i can see unwanted binary file (.DS_Store) . Please
remove it from the PR

On Mon, Jul 20, 2015 at 11:23 AM, Kathees Rajendram 
wrote:

> Hi Shakila,
>
> You can run the ESB Kafka Inbound sample 904 and make sure other Kafka
> functionality is not affected.
>
> Thanks,
> Kathees
>
> On Mon, Jul 20, 2015 at 9:51 PM, Shakila Sivagnanarajah 
> wrote:
>
>> Yes Malaka, I have tested with this change. This does not affect others.
>>
>> On Mon, Jul 20, 2015 at 5:47 PM, Malaka Silva  wrote:
>>
>>> Have you tested the other inbound type after the change?
>>>
>>> On Mon, Jul 20, 2015 at 10:50 AM, Shakila Sivagnanarajah <
>>> shak...@wso2.com> wrote:
>>>
 Hi Malaka,

 I have modified the code according to your comment. Please find the PR
 [1].
 [1] https://github.com/wso2/carbon-mediation/pull/294

 Thank you

 On Fri, Jul 17, 2015 at 5:21 PM, Malaka Silva  wrote:

> Hi Shakila,
>
> Added some comments.
>
> Did you check other inbound protocols with this change?
>
> Don't we need to apply the same for update page as well?
>
> On Fri, Jul 17, 2015 at 4:55 PM, Shakila Sivagnanarajah <
> shak...@wso2.com> wrote:
>
>> Hi Malaka,
>>
>> Please review and merge PR[1] for $subject.
>>
>> [1] https://github.com/wso2/carbon-mediation/pull/294
>>
>>
>> Thank you
>> --
>> Shakila Sivagnanarajah
>> Associate Software Engineer
>> Mobile :+94 (0) 770 760240
>> shak...@wso2.com
>>
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
>
> Save a tree -Conserve nature & Save the world for your future. Print
> this email only if it is absolutely necessary.
>



 --
 Shakila Sivagnanarajah
 Associate Software Engineer
 Mobile :+94 (0) 770 760240
 shak...@wso2.com

>>>
>>>
>>>
>>> --
>>>
>>> Best Regards,
>>>
>>> Malaka Silva
>>> Senior Tech Lead
>>> M: +94 777 219 791
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>> Skype : malaka.sampath.silva
>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>> Blog : http://mrmalakasilva.blogspot.com/
>>>
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> http://www.wso2.com/
>>> http://www.wso2.com/about/team/malaka-silva/
>>> 
>>>
>>> Save a tree -Conserve nature & Save the world for your future. Print
>>> this email only if it is absolutely necessary.
>>>
>>
>>
>>
>> --
>> Shakila Sivagnanarajah
>> Associate Software Engineer
>> Mobile :+94 (0) 770 760240
>> shak...@wso2.com
>>
>
>
>
> --
> Kathees
> Software Engineer,
> email: kath...@wso2.com
> mobile: +94772596173
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vanjikumaran Sivajothy
*Associate Technical Lead*
*WSO2 Inc. http://wso2.com *
*USA Mobile **+1-812-361-1286*
*Srilanka Mobile:+94-777-219-209*
[image: Facebook]  [image: Twitter]
 [image: LinkedIn]
 [image:
Blogger]  [image: SlideShare]


This communication may contain privileged or other confidential information
and is intended exclusively for the addressee/s. If you are not the
intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print,
copy, re-transmit, disseminate, or otherwise use the information contained
in this communication. Internet communications cannot be guaranteed to be
timely, secure, error or virus-free. The sender does not accept liability
for any errors or omissions
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue while creating custom Inbound

2015-07-20 Thread Kathees Rajendram
Hi Malaka,Senduran,

I was able to resolve As you suggested.

Thanks,
Kathees

On Fri, Jul 17, 2015 at 5:39 PM, Senduran Balasubramaniyam <
sendu...@wso2.com> wrote:

> Hi Kathees,
>
> I think you are not exporting the twitter4j related jars
> Can you please try the following
>
> 
> org.wso2.carbon.inbound.custom.poll.*,
>
> org.twitter4j.*
>
> 
>
>
> Regards
> Senduran
>
>
> On Fri, Jul 17, 2015 at 12:54 AM, Kathees Rajendram 
> wrote:
>
>> Hi Lakshani,
>>
>> Thank you the reply.
>> I added and tried the jars to the component/lib also.I am getting the
>> sample error. Am I missing in the pom while bundling?
>>
>> bundle
>>
>> 
>> org.twitter4j
>> twitter4j-core
>> 4.0.4
>> 
>> 
>> org.twitter4j
>> twitter4j-stream
>> 4.0.4
>> 
>>
>> 
>> org.apache.felix
>> maven-bundle-plugin
>> 1.4.0
>> true
>> 
>> 
>> ${pom.artifactId}
>> 
>> org.wso2.carbon.inbound.custom.poll.*,
>> 
>> 
>> !javax.xml.namespace,
>> javax.xml.namespace;
>> version=0.0.0,
>> *;resolution:=optional,
>> 
>> *
>> 
>> 
>> 
>>
>> Thanks,
>> Kathees
>>
>>
>> On Fri, Jul 17, 2015 at 9:54 AM, Lakshani Gamage 
>> wrote:
>>
>>> Hi Kathees,
>>>
>>> Seems your class has not been exported properly. Please see the error
>>> log.
>>> *Caused by: java.lang.**NoClassDefFoundError: twitter4j/StreamListener*
>>>
>>> May be you haven't created the osgi bundle properly. You can put the jar
>>> to component/lib directory. It will make the jar osgi and export all
>>> classes.
>>>
>>> Thank you,
>>> Lakshani.
>>>
>>> On Fri, Jul 17, 2015 at 8:50 AM, Kathees Rajendram 
>>> wrote:
>>>
 Hi,

 While creating a custom inbound Endpoint I am getting the following
 error. In the custom endpoint,i used the twitter4j-stream dependency,
 bundled and added the dropins in the ESB.
 Can you suggest how to solve the issue?


 [2015-07-17 08:32:43,741]  INFO - GenericProcessor Inbound listener
 class for class org.wso2.carbon.inbound.custom.poll.SamplePollingClient
 starting ...
 [2015-07-17 08:30:47,846] ERROR - RPCMessageReceiver
 twitter4j/StreamListener
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
 at
 org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
 at
 org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
 at
 org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at
 org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
 at
 org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
 at
 org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
 at
 org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.wso2.carbon.mediation.configadmin.stub.ConfigServiceAdminStub.updateConfiguration(ConfigServiceAdminStub.java:1340)
 at
 org.wso2.carbon.mediation.configadmin.ui.ConfigManagementClient.updateConfiguration(ConfigManagementClient.java:98)
 at
 org.apache.jsp.configadmin.saveconfig_jsp._jspService(saveconfig_jsp.java:169)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at org.wso2.carbon.ui.JspSe

Re: [Dev] kafka UI improvement (ESBJAVA-3915)

2015-07-20 Thread Kathees Rajendram
Hi Shakila,

You can run the ESB Kafka Inbound sample 904 and make sure other Kafka
functionality is not affected.

Thanks,
Kathees

On Mon, Jul 20, 2015 at 9:51 PM, Shakila Sivagnanarajah 
wrote:

> Yes Malaka, I have tested with this change. This does not affect others.
>
> On Mon, Jul 20, 2015 at 5:47 PM, Malaka Silva  wrote:
>
>> Have you tested the other inbound type after the change?
>>
>> On Mon, Jul 20, 2015 at 10:50 AM, Shakila Sivagnanarajah <
>> shak...@wso2.com> wrote:
>>
>>> Hi Malaka,
>>>
>>> I have modified the code according to your comment. Please find the PR
>>> [1].
>>> [1] https://github.com/wso2/carbon-mediation/pull/294
>>>
>>> Thank you
>>>
>>> On Fri, Jul 17, 2015 at 5:21 PM, Malaka Silva  wrote:
>>>
 Hi Shakila,

 Added some comments.

 Did you check other inbound protocols with this change?

 Don't we need to apply the same for update page as well?

 On Fri, Jul 17, 2015 at 4:55 PM, Shakila Sivagnanarajah <
 shak...@wso2.com> wrote:

> Hi Malaka,
>
> Please review and merge PR[1] for $subject.
>
> [1] https://github.com/wso2/carbon-mediation/pull/294
>
>
> Thank you
> --
> Shakila Sivagnanarajah
> Associate Software Engineer
> Mobile :+94 (0) 770 760240
> shak...@wso2.com
>



 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 

 Save a tree -Conserve nature & Save the world for your future. Print
 this email only if it is absolutely necessary.

>>>
>>>
>>>
>>> --
>>> Shakila Sivagnanarajah
>>> Associate Software Engineer
>>> Mobile :+94 (0) 770 760240
>>> shak...@wso2.com
>>>
>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech Lead
>> M: +94 777 219 791
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>> http://www.wso2.com/about/team/malaka-silva/
>> 
>>
>> Save a tree -Conserve nature & Save the world for your future. Print this
>> email only if it is absolutely necessary.
>>
>
>
>
> --
> Shakila Sivagnanarajah
> Associate Software Engineer
> Mobile :+94 (0) 770 760240
> shak...@wso2.com
>



-- 
Kathees
Software Engineer,
email: kath...@wso2.com
mobile: +94772596173
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Automation Test coverage of ESB 4.9.0 new features

2015-07-20 Thread Ravi Undupitiya
For HTTP HEAD Method support for REST API's you can find the integration
test at:
https://github.com/wso2/product-esb/blob/master/modules/integration/tests-integration/tests-service/src/test/java/org/wso2/carbon/esb/rest/test/api/APIHeadMethod.java

On Fri, Jul 10, 2015 at 10:12 AM, Asanthi Kulasinghe 
wrote:

> Hi  ESB Team,
>
> We are currently in the process of analyzing gaps between ESB 4.9.0
> manually executed and automated test cases.
> As a start we are looking into to the automation test case coverage of
> 4.9.0 specific new features.
> Out of the feature list from [1] we couldn't find automation tests for
> some of the features mentioned below.
>
> *Features with automation tests*
>
>- Add RabbitMQ transport receiver/sender
>- Persisting Messages from ESB Message Store {jdbc storage to work
>with MSSQL}
>- Supporting Class mediators in Stratos
>- OCSP/CRL Validation at Transport Listener
>- Enabling HTTP Cache Control headers (Etag, etc)
>- Coordination support for Message Stores and Processors
>- For-each mediator
>- Inbound Endpoints :
>
>- Inbound HL7 Endpoint
>- HTTP Inbound Endpoint
>- HTTPS Inbound Endpoint
>- HTTPS Inbound Endpoint
>- CXF WS-RM Inbound Endpoint
>- JMS
>- File
>- Custom
>
> *Features without automation tests*
>
>- Dynamic SSL Profiles for sender and listener
>- Support HTTP Patch
>- HTTP HEAD Method support for REST API's
>- Inbound Endpoints:
>
>   - Kafka support in ESB
>   - MQTT Inbound transport
>
> To my understanding there are tests for some of the above features that
> are yet to be merged.
> Could you please confirm the accuracy of the above lists (automation test
> availability)  and reason for the absence of automation tests for certain
> features  (Eg:  Not yet merged,  Automation is not possible  etc)
>
> [1] https://redmine.wso2.com/versions/43
>
>
> Thanks & Regards
> *Asanthi Kulasinghe*
> WSO2 Inc; http://www.wso2.com/.
> Mobile: +94777355522
>
>
>


-- 
*Ravi Undupitiya*
Senior Software Engineer; WSO2 http://wso2.com


*E-mail: r...@wso2.com **M: **+94 772 930 712*

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


Re: [Dev] [AppM] App manager-1.1.0 with Carbon 4.4.0 upgrade status

2015-07-20 Thread Prabath Abeysekera
Great! Hope the changes can be committed soon so that the CDM team can then
fully integrate Mobile App Management features and start testing things out
end-to-end.

Cheers,
Prabath

On Mon, Jul 20, 2015 at 9:56 AM, Ruwan Abeykoon  wrote:

> Hi Prabath,
> The problem is isolated. Issue is having wadl and jaxb jars as bundles.
> Removing one of the bundles causes the problem disappear.
> I will work with governance/carbon teams to get a resolution.
>
> Cheers,
> Ruwan
>
>
>
> On Sat, Jul 18, 2015 at 11:18 AM, Prabath Abeysekera 
> wrote:
>
>> Hi Ruwan,
>>
>> Did we manage to fix this?
>>
>> Cheers,
>> Prabath
>>
>> On Wed, Jul 15, 2015 at 7:54 PM, Ruwan Abeykoon  wrote:
>>
>>> Hi All,
>>> Yet another update on $subject
>>> The intermittent classloader issue could not be resolved yet. Here are
>>> few observations.
>>>
>>> The jaggery application calls the CarbonWebappClassloader to lookup a
>>> class in governance API bundle. This fails.
>>> However the same class is properly loaded via different bundle (Say
>>> WebappManagment) classloader which is not initially loaded via
>>> Tomcat/Jaggary app.
>>> No issue found in "launch.ini". No apparent conflicting bundles or
>>> unsatisfied dependencies. There were few duplicate packaged exported by
>>> different bundles, but seems they are not causing the issue.
>>>
>>> I am working with Sameera  to find the underlying cause.
>>>
>>> I am unable to create a PR with the version change due to above issue.
>>>
>>> Cheers,
>>> Ruwan
>>>
>>> On Wed, Jul 8, 2015 at 11:28 AM, Ruwan Abeykoon  wrote:
>>>
 Hi Team,
 I would like to update you on $subject

 1. All the module versions are bumped up to 1.1.0-SNAPSHOT
 2. Removed all the carbon 4.2.0 and related features which depend on C
 4.2.0 and added Carbon 4.4.0 kernel and other features compatible with
 Carbon 4.4.0 (registry, governance, mediation, Jaggery, etc).
 3. Forked ES for C 4.4.0 version bump up, upgraded the dependencies,
 Had to change few classes in ES to be able to get it compatible with
 governance 4.5.1.
 4. Changed few classes and jaggery files which needed to be changed due
 to method signature changes in registry
 (e.g. GenericArtifact.invokeAction(...)).

 Current Status with Carbon 4.4.0
 1. AppM builds and starts successfully
 2. Can create web applications, publish and subscribe.

 Present Issues which I am working on.
 1. Intermittent, Classloader or similar issue in loading
 org.wso2.carbon.governance.api.generic [1]
 2. Need to test most of other areas(mobile apps, policy, throttling)
 3. At the moment, update synapse config to the gateway is failing.
 4. Clean up the code which had experimental/debug code
 5. Remove unwanted/duplicate jaggery modules [2]

 None of the changes are committed to any public repository yet.


 [1] Mail thread "[Dev]Class Loading issue in Jaggery, Carbon 4.4.0"
 [2] Mail thread  "[Dev][AppM] Removing multiple "modules" directories"

 --

 *Ruwan Abeykoon*
 *Architect,*
 *WSO2, Inc. http://wso2.com  *
 *lean.enterprise.middleware.*

 email: ruw...@wso2.com
 phone:(+94) 39736

>>>
>>>
>>>
>>> --
>>>
>>> *Ruwan Abeykoon*
>>> *Architect,*
>>> *WSO2, Inc. http://wso2.com  *
>>> *lean.enterprise.middleware.*
>>>
>>> email: ruw...@wso2.com
>>> phone:(+94) 39736
>>>
>>
>>
>>
>> --
>> Prabath Abeysekara
>> Technical Lead
>> WSO2 Inc.
>> Email: praba...@wso2.com
>> Mobile: +94774171471
>>
>
>
>
> --
>
> *Ruwan Abeykoon*
> *Architect,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ruw...@wso2.com
> phone:(+94) 39736
>



-- 
Prabath Abeysekara
Technical Lead
WSO2 Inc.
Email: praba...@wso2.com
Mobile: +94774171471
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] kafka UI improvement (ESBJAVA-3915)

2015-07-20 Thread Shakila Sivagnanarajah
Yes Malaka, I have tested with this change. This does not affect others.

On Mon, Jul 20, 2015 at 5:47 PM, Malaka Silva  wrote:

> Have you tested the other inbound type after the change?
>
> On Mon, Jul 20, 2015 at 10:50 AM, Shakila Sivagnanarajah  > wrote:
>
>> Hi Malaka,
>>
>> I have modified the code according to your comment. Please find the PR
>> [1].
>> [1] https://github.com/wso2/carbon-mediation/pull/294
>>
>> Thank you
>>
>> On Fri, Jul 17, 2015 at 5:21 PM, Malaka Silva  wrote:
>>
>>> Hi Shakila,
>>>
>>> Added some comments.
>>>
>>> Did you check other inbound protocols with this change?
>>>
>>> Don't we need to apply the same for update page as well?
>>>
>>> On Fri, Jul 17, 2015 at 4:55 PM, Shakila Sivagnanarajah <
>>> shak...@wso2.com> wrote:
>>>
 Hi Malaka,

 Please review and merge PR[1] for $subject.

 [1] https://github.com/wso2/carbon-mediation/pull/294


 Thank you
 --
 Shakila Sivagnanarajah
 Associate Software Engineer
 Mobile :+94 (0) 770 760240
 shak...@wso2.com

>>>
>>>
>>>
>>> --
>>>
>>> Best Regards,
>>>
>>> Malaka Silva
>>> Senior Tech Lead
>>> M: +94 777 219 791
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>> Skype : malaka.sampath.silva
>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>> Blog : http://mrmalakasilva.blogspot.com/
>>>
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> http://www.wso2.com/
>>> http://www.wso2.com/about/team/malaka-silva/
>>> 
>>>
>>> Save a tree -Conserve nature & Save the world for your future. Print
>>> this email only if it is absolutely necessary.
>>>
>>
>>
>>
>> --
>> Shakila Sivagnanarajah
>> Associate Software Engineer
>> Mobile :+94 (0) 770 760240
>> shak...@wso2.com
>>
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :+94 (0) 770 760240
shak...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] how to register an event in user signup for ES extension

2015-07-20 Thread Sameera Medagammaddegedara
EDIT:

Did you require this for the following scenario:

1. User registers
2. User logs in and receives the subscriber role
3. Admin removes the subscriber role from the user
4. User logs in and receives the subscriber role since he does not have the
role

Is this a valid use case? If not can we not do this with the above
suggestion?


On Mon, Jul 20, 2015 at 12:02 PM, Sameera Medagammaddegedara <
samee...@wso2.com> wrote:

> Hi Lakshman,
>
>
> Could we not do this in the onUserLoggedIn callback itself after checking
> if the logged in user already has the subscriber role or not?
>
>
> Thank You,
> Sameera
>
> On Mon, Jul 20, 2015 at 6:10 AM, Lakshman Udayakantha 
> wrote:
>
>> Couldn't add onLogin function is used in extension in previous mail.
>> sorry for that. find it below.
>>
>> onUserLoggedIn : function(){
>> var userName=ctx.username;
>> var apistore =
>> require('apistore').apistore.instance(userName);
>> var subscriber=apistore.getSubscriber(userName);
>> if(!subscriber){
>> apistore.addSubscriber(userName,ctx.tenantId);
>> }
>> },
>>
>> additionally, found below function
>>
>>  event.on('userRegister', function (tenantId, user) {
>> log.info("user registering...");
>> configs(tenantId).userRoles.forEach(function (role) {
>> if (user.hasRoles([role])) {
>> return;
>> }
>> user.addRoles([role]);
>> });
>> });
>>
>> It should be call on user signup. But it calls on first login for the
>> users who signed up. Any way I can't change that function to add subscriber
>> role to users because this function found in store/module/store.js file
>> which is not in extension directory. simply this function reside in ES code
>> and adding subscriber role to users should happen in extension because that
>> functionality is specific to API store.
>>
>> Thanks
>>
>> On Mon, Jul 20, 2015 at 3:05 PM, Lakshman Udayakantha > > wrote:
>>
>>> Hi Sameera/ES Team,
>>>
>>> I am working on [1]. I want to add to users who sign up in store, the
>>> subscriber role.
>>> Below function is used to add users as subscribers in their first login
>>> to subscriber tables in asset.js function in store extension. similar
>>> requirement needs for signup as well. how do I achieve this?
>>>
>>> [1] https://wso2.org/jira/browse/REGISTRY-2683
>>>
>>> Thanks
>>> --
>>> Lakshman Udayakantha
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>> Mobile: *0711241005*
>>>
>>>
>>
>>
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0711241005*
>>
>>
>
>
> --
> Sameera Medagammaddegedara
> Software Engineer
>
> Contact:
> Email: samee...@wso2.com
> Mobile: + 94 077 255 3005
>



-- 
Sameera Medagammaddegedara
Software Engineer

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


Re: [Dev] how to register an event in user signup for ES extension

2015-07-20 Thread Sameera Medagammaddegedara
Hi Lakshman,


Could we not do this in the onUserLoggedIn callback itself after checking
if the logged in user already has the subscriber role or not?


Thank You,
Sameera

On Mon, Jul 20, 2015 at 6:10 AM, Lakshman Udayakantha 
wrote:

> Couldn't add onLogin function is used in extension in previous mail. sorry
> for that. find it below.
>
> onUserLoggedIn : function(){
> var userName=ctx.username;
> var apistore = require('apistore').apistore.instance(userName);
> var subscriber=apistore.getSubscriber(userName);
> if(!subscriber){
> apistore.addSubscriber(userName,ctx.tenantId);
> }
> },
>
> additionally, found below function
>
>  event.on('userRegister', function (tenantId, user) {
> log.info("user registering...");
> configs(tenantId).userRoles.forEach(function (role) {
> if (user.hasRoles([role])) {
> return;
> }
> user.addRoles([role]);
> });
> });
>
> It should be call on user signup. But it calls on first login for the
> users who signed up. Any way I can't change that function to add subscriber
> role to users because this function found in store/module/store.js file
> which is not in extension directory. simply this function reside in ES code
> and adding subscriber role to users should happen in extension because that
> functionality is specific to API store.
>
> Thanks
>
> On Mon, Jul 20, 2015 at 3:05 PM, Lakshman Udayakantha 
> wrote:
>
>> Hi Sameera/ES Team,
>>
>> I am working on [1]. I want to add to users who sign up in store, the
>> subscriber role.
>> Below function is used to add users as subscribers in their first login
>> to subscriber tables in asset.js function in store extension. similar
>> requirement needs for signup as well. how do I achieve this?
>>
>> [1] https://wso2.org/jira/browse/REGISTRY-2683
>>
>> Thanks
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0711241005*
>>
>>
>
>
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0711241005*
>
>


-- 
Sameera Medagammaddegedara
Software Engineer

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


Re: [Dev] [WS-Trust] KeyType

2015-07-20 Thread Godwin Amila Shrimal
Kind reminder on this..!

On Thu, Jul 2, 2015 at 3:21 PM, Gayan Gunawardana  wrote:

> Hi Devs,
>
> What is the subject conformation method we can use for NoProofKey (
> 
> http://schemas.xmlsoap.org/ws/2005/05/identity/NoProofKey).
> According to
> [1] "9.2 Key and Encryption Requirements" they mentioned about three key
> types
>
> 1. http://docs.oasis-open.org/ws-sx/ws-trust/200512/PublicKey
> 2. http://docs.oasis-open.org/ws-sx/ws-trust/200512/SymmetricKey
> 3. http://docs.oasis-open.org/ws-sx/ws-trust/200512/Bearer
>
> AFAIK
> If the KeyType contains the value PublicKey or SymmetricKey, the subject
> confirmation method is Holder-Of-Key. If the KeyType contains the value
> Bearer, the subject confirmation method is Bearer.
> Is NoProofKey equal to Bearer type ?
> [1] http://docs.oasis-open.org/ws-sx/ws-trust/v1.4/ws-trust.html
>
> Thanks,
> Gayan
> 
>
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Error while starting the ESB-4.9.0-Alpha

2015-07-20 Thread Chathura Priyankara
Hi,

The exception says org.bouncycastle.asn1.DEREncodableVector class is
causing for a cyclic dependency. There may be two bcprov-jdk15.jars in your
class path.
So remove the unwanted bcprov jar from the class path. (I was able to
reproduce the same error by coping the bcprov-jdk15.jar in to the
ESB_HOME/bin directory)

Thanks,
Chathura.

On Mon, Jul 20, 2015 at 5:57 PM, Malaka Silva  wrote:

> It seems to be an issue with the java version you are using. Try and use
> a newer version of jdk 1.7. (i.e It worked with 1.7.0_60-b19 for me)
>
> On Mon, Jul 20, 2015 at 2:38 PM, Rajjaz Mohammed  wrote:
>
>> Hi thulasi,
>> i thing that was problem in your tomcat refer [1], [2]. it will help to
>> you.
>>
>> [1]
>> http://stackoverflow.com/questions/28102134/a-child-container-failed-during-start-java-util-concurrent-executionexception
>> [2]
>> http://stackoverflow.com/questions/10556201/tomcat-7-0-27-not-starting
>>
>> On Mon, Jul 20, 2015 at 2:14 PM, Thulasika Vijayanathan <
>> thulas...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> I am getting the following error when I start the ESB-4.9.0-Alpha.I am
>>> able to start the ESB-4.8.1 without any issue. what could be the reason for
>>> this?
>>>
>>>
>>> thulasi@thulasi-ThinkPad-T540p
>>> :~/Documents/ESB_4.9.0_Alpha/wso2esb-4.9.0-ALPHA/bin$ ./wso2server.sh
>>> JAVA_HOME environment variable is set to /usr/local/java/jdk1.7.0_79
>>> CARBON_HOME environment variable is set to
>>> /home/thulasi/Documents/ESB_4.9.0_Alpha/wso2esb-4.9.0-ALPHA
>>> [2015-07-20 13:24:47,260]  INFO - CarbonCoreActivator Starting WSO2
>>> Carbon...
>>> [2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Operating System :
>>> Linux 3.13.0-24-generic, amd64
>>> [2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Java Home:
>>> /usr/local/java/jdk1.7.0_79/jre
>>> [2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Java Version :
>>> 1.7.0_79
>>> [2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Java VM  :
>>> Java HotSpot(TM) 64-Bit Server VM 24.79-b02,Oracle Corporation
>>> [2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Carbon Home  :
>>> /home/thulasi/Documents/ESB_4.9.0_Alpha/wso2esb-4.9.0-ALPHA
>>> [2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Java Temp Dir:
>>> /home/thulasi/Documents/ESB_4.9.0_Alpha/wso2esb-4.9.0-ALPHA/tmp
>>> [2015-07-20 13:24:47,264]  INFO - CarbonCoreActivator User :
>>> thulasi, en-US, Asia/Colombo
>>> [2015-07-20 13:24:47,334]  WARN - ValidationResultPrinter Carbon is
>>> configured to use the default keystore (wso2carbon.jks). To maximize
>>> security when deploying to a production environment, configure a new
>>> keystore with a unique password in the production server profile.
>>> [2015-07-20 13:24:47,335]  WARN - ValidationResultPrinter Swap Memory
>>> size (MB): 0 of the system is below the recommended minimum size :2047
>>> [2015-07-20 13:24:47,342]  INFO - AgentHolder Agent created !
>>> [2015-07-20 13:24:47,356]  INFO - AgentDS Successfully deployed Agent
>>> Client
>>> [2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
>>> blueprint namespace handler for http://cxf.apache.org/blueprint/core
>>> [2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
>>> blueprint namespace handler for
>>> http://cxf.apache.org/configuration/beans
>>> [2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
>>> blueprint namespace handler for
>>> http://cxf.apache.org/configuration/parameterized-types
>>> [2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
>>> blueprint namespace handler for
>>> http://cxf.apache.org/configuration/security
>>> [2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
>>> blueprint namespace handler for http://schemas.xmlsoap.org/wsdl/
>>> [2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
>>> blueprint namespace handler for http://www.w3.org/2005/08/addressing
>>> [2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
>>> blueprint namespace handler for
>>> http://schemas.xmlsoap.org/ws/2004/08/addressing
>>> [2015-07-20 13:24:49,122] ERROR - ContainerBase A child container failed
>>> during start
>>> java.util.concurrent.ExecutionException:
>>> org.apache.catalina.LifecycleException: Failed to start component
>>> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/]]
>>> at java.util.concurrent.FutureTask.report(FutureTask.java:122)
>>> at java.util.concurrent.FutureTask.get(FutureTask.java:188)
>>> at
>>> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
>>> at
>>> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816)
>>> at
>>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>>> at
>>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
>>> at
>>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:156

Re: [Dev] Pull request for Payloadfactory Improvement

2015-07-20 Thread Malaka Silva
Merged. Thx for getting this done before ESB beta.

On Mon, Jul 20, 2015 at 3:40 PM, Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Hi Malaka,
> Please find the pull request[1] for integration test cases for
> payloadfactory improvement.
>
> [1]. https://github.com/wso2/product-esb/pull/238
> 
>
>
> Thanks,
>
> On Fri, Jul 17, 2015 at 11:14 AM, Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Hi Malaka,
>> I have made some changes in the pull request. Please check now.
>>
>> https://github.com/wso2/wso2-synapse/pull/261
>>
>> Thanks,
>>
>> On Thu, Jul 16, 2015 at 8:35 PM, Malaka Silva  wrote:
>>
>>> Added some comments. Please check.
>>>
>>> On Thu, Jul 16, 2015 at 5:19 PM, Keerthika Mahendralingam <
>>> keerth...@wso2.com> wrote:
>>>
 Hi Malaka,
 Please find the pull request for $subject [1].

 The pull request includes the changes for payloadfactory mediator to
 provide the facility to provide the expressions inline rather than via
 arguments. And it has the backward compatibility also.


 [1]. https://github.com/wso2/wso2-synapse/pull/261

 Thanks,
 --
 
 Keerthika Mahendralingam
 Associate Software Engineer
 Mobile :+94 (0) 776 121144
 keerth...@wso2.com
 WSO2, Inc.
 lean . enterprise . middleware

>>>
>>>
>>>
>>> --
>>>
>>> Best Regards,
>>>
>>> Malaka Silva
>>> Senior Tech Lead
>>> M: +94 777 219 791
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>> Skype : malaka.sampath.silva
>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>> Blog : http://mrmalakasilva.blogspot.com/
>>>
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> http://www.wso2.com/
>>> http://www.wso2.com/about/team/malaka-silva/
>>> 
>>>
>>> Save a tree -Conserve nature & Save the world for your future. Print
>>> this email only if it is absolutely necessary.
>>>
>>
>>
>>
>> --
>> 
>> Keerthika Mahendralingam
>> Associate Software Engineer
>> Mobile :+94 (0) 776 121144
>> keerth...@wso2.com
>> WSO2, Inc.
>> lean . enterprise . middleware
>>
>
>
>
> --
> 
> Keerthika Mahendralingam
> Associate Software Engineer
> Mobile :+94 (0) 776 121144
> keerth...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
>



-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/


Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pull Requests for Deploying ESB connector from CApp

2015-07-20 Thread Malaka Silva
Hi Shakila,

Merged. Thx for doing before the alpha release. We also need to follow this
from DEVS side as well.

On Mon, Jul 20, 2015 at 4:47 PM, Shakila Sivagnanarajah 
wrote:

> Hi Malaka,
>
> I have modified the code according to the comments and implemented to
> support for another scenario [1]. Please find the pull requests [2] and [3].
>
> [1] If the included connector (in CApp) is already deployed in ESB, the
> connector deployment should be skipped.
> [2] https://github.com/wso2/carbon-mediation/pull/280
> [3] https://github.com/wso2/wso2-synapse/pull/254
>
> Thank you
>
>
> On Mon, Jul 13, 2015 at 11:05 AM, Malaka Silva  wrote:
>
>> Added some comments please check
>>
>> On Mon, Jul 13, 2015 at 9:46 AM, Shakila Sivagnanarajah > > wrote:
>>
>>> Hi Malaka,
>>>
>>> Please review and merge PRs [1] and [2].
>>>
>>> Description:
>>> [1] - The main functionality is written here.
>>> [2] - undeploy method is modified to delete synapse library from
>>> temporary directory wile un-deploying the connector.
>>>
>>> [1] https://github.com/wso2/carbon-mediation/pull/280
>>> [2] https://github.com/wso2/wso2-synapse/pull/254
>>>
>>> Thank you
>>> --
>>> Shakila Sivagnanarajah
>>> Associate Software Engineer
>>> Mobile :+94 (0) 770 760240
>>> shak...@wso2.com
>>>
>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech Lead
>> M: +94 777 219 791
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>> http://www.wso2.com/about/team/malaka-silva/
>> 
>>
>> Save a tree -Conserve nature & Save the world for your future. Print this
>> email only if it is absolutely necessary.
>>
>
>
>
> --
> Shakila Sivagnanarajah
> Associate Software Engineer
> Mobile :+94 (0) 770 760240
> shak...@wso2.com
>



-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/


Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV][DevStudio] Please review and merge the PR for Fixing Tools-2981

2015-07-20 Thread Nuwan Pallewela
Hi ,
Please review and merge PR [1] and [2]-
 Tools-2981 : Inbound Endpoints folder in ESB Config project, doesn't
contain new Inbound End point option in it's menu
[1] https://github.com/wso2/developer-studio/pull/76
[2] https://github.com/wso2/developer-studio/pull/77

Thanks,
Nuwan

-- 
--

*Nuwan Chamara Pallewela*


*Software Engineer*

*WSO2, Inc. *
*lean . enterprise . middleware*

Email   *nuw...@wso2.com *
Mobile  *+94719079739*
*+94767100087*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] carbon-identity 4.5.3 released to staging

2015-07-20 Thread KasunG Gajasinghe
Released.

On Mon, Jul 20, 2015 at 6:47 PM, Prasad Tissera  wrote:

> carbon-identity 4.5.3 released to staging and verified [1]. Please review
> and move to public. Thanks.
>
> [1].
> http://maven.wso2.org/nexus/content/repositories/orgwso2carbonidentity-007/
>
> --
> Prasad Tissera
> Software Engineer.
> Mobile : +94777223444
>



-- 

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


[Dev] carbon-identity 4.5.3 released to staging

2015-07-20 Thread Prasad Tissera
carbon-identity 4.5.3 released to staging and verified [1]. Please review
and move to public. Thanks.

[1].
http://maven.wso2.org/nexus/content/repositories/orgwso2carbonidentity-007/

-- 
Prasad Tissera
Software Engineer.
Mobile : +94777223444
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] When Will be the Greg 5.0.0 new features are available in the Documentation

2015-07-20 Thread Chalitha Waldeniyage
Hi,

Currently we are following the [1] and [2] for Greg 5.0.0  Alpha testing
and Need to have new features in Greg 5.0.0 documentation for testing.Can
you please confirm the  $subject in order to continue the testing with new
features.

[1]
https://docs.wso2.com/display/Governance500/WSO2+Governance+Registry+Documentation

[2] https://redmine.wso2.com/milestones/20


Thank you,
Chalitha.


-- 
*Chalitha Maheshwari*
Software Engineer-QA,
WSO2 Inc.

*E-mail:* chali...@wso2.com
*Mobile: *+94710 411 112
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Error while starting the ESB-4.9.0-Alpha

2015-07-20 Thread Malaka Silva
It seems to be an issue with the java version you are using. Try and use a
newer version of jdk 1.7. (i.e It worked with 1.7.0_60-b19 for me)

On Mon, Jul 20, 2015 at 2:38 PM, Rajjaz Mohammed  wrote:

> Hi thulasi,
> i thing that was problem in your tomcat refer [1], [2]. it will help to
> you.
>
> [1]
> http://stackoverflow.com/questions/28102134/a-child-container-failed-during-start-java-util-concurrent-executionexception
> [2] http://stackoverflow.com/questions/10556201/tomcat-7-0-27-not-starting
>
> On Mon, Jul 20, 2015 at 2:14 PM, Thulasika Vijayanathan <
> thulas...@wso2.com> wrote:
>
>> Hi,
>>
>> I am getting the following error when I start the ESB-4.9.0-Alpha.I am
>> able to start the ESB-4.8.1 without any issue. what could be the reason for
>> this?
>>
>>
>> thulasi@thulasi-ThinkPad-T540p
>> :~/Documents/ESB_4.9.0_Alpha/wso2esb-4.9.0-ALPHA/bin$ ./wso2server.sh
>> JAVA_HOME environment variable is set to /usr/local/java/jdk1.7.0_79
>> CARBON_HOME environment variable is set to
>> /home/thulasi/Documents/ESB_4.9.0_Alpha/wso2esb-4.9.0-ALPHA
>> [2015-07-20 13:24:47,260]  INFO - CarbonCoreActivator Starting WSO2
>> Carbon...
>> [2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Operating System :
>> Linux 3.13.0-24-generic, amd64
>> [2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Java Home:
>> /usr/local/java/jdk1.7.0_79/jre
>> [2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Java Version :
>> 1.7.0_79
>> [2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Java VM  :
>> Java HotSpot(TM) 64-Bit Server VM 24.79-b02,Oracle Corporation
>> [2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Carbon Home  :
>> /home/thulasi/Documents/ESB_4.9.0_Alpha/wso2esb-4.9.0-ALPHA
>> [2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Java Temp Dir:
>> /home/thulasi/Documents/ESB_4.9.0_Alpha/wso2esb-4.9.0-ALPHA/tmp
>> [2015-07-20 13:24:47,264]  INFO - CarbonCoreActivator User :
>> thulasi, en-US, Asia/Colombo
>> [2015-07-20 13:24:47,334]  WARN - ValidationResultPrinter Carbon is
>> configured to use the default keystore (wso2carbon.jks). To maximize
>> security when deploying to a production environment, configure a new
>> keystore with a unique password in the production server profile.
>> [2015-07-20 13:24:47,335]  WARN - ValidationResultPrinter Swap Memory
>> size (MB): 0 of the system is below the recommended minimum size :2047
>> [2015-07-20 13:24:47,342]  INFO - AgentHolder Agent created !
>> [2015-07-20 13:24:47,356]  INFO - AgentDS Successfully deployed Agent
>> Client
>> [2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
>> blueprint namespace handler for http://cxf.apache.org/blueprint/core
>> [2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
>> blueprint namespace handler for http://cxf.apache.org/configuration/beans
>> [2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
>> blueprint namespace handler for
>> http://cxf.apache.org/configuration/parameterized-types
>> [2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
>> blueprint namespace handler for
>> http://cxf.apache.org/configuration/security
>> [2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
>> blueprint namespace handler for http://schemas.xmlsoap.org/wsdl/
>> [2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
>> blueprint namespace handler for http://www.w3.org/2005/08/addressing
>> [2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
>> blueprint namespace handler for
>> http://schemas.xmlsoap.org/ws/2004/08/addressing
>> [2015-07-20 13:24:49,122] ERROR - ContainerBase A child container failed
>> during start
>> java.util.concurrent.ExecutionException:
>> org.apache.catalina.LifecycleException: Failed to start component
>> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/]]
>> at java.util.concurrent.FutureTask.report(FutureTask.java:122)
>> at java.util.concurrent.FutureTask.get(FutureTask.java:188)
>> at
>> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
>> at
>> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816)
>> at
>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>> at
>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
>> at
>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: org.apache.catalina.LifecycleException: Failed to start
>> component
>> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/]]
>> at
>> org.apache.catalina.u

Re: [Dev] kafka UI improvement (ESBJAVA-3915)

2015-07-20 Thread Malaka Silva
Have you tested the other inbound type after the change?

On Mon, Jul 20, 2015 at 10:50 AM, Shakila Sivagnanarajah 
wrote:

> Hi Malaka,
>
> I have modified the code according to your comment. Please find the PR [1].
> [1] https://github.com/wso2/carbon-mediation/pull/294
>
> Thank you
>
> On Fri, Jul 17, 2015 at 5:21 PM, Malaka Silva  wrote:
>
>> Hi Shakila,
>>
>> Added some comments.
>>
>> Did you check other inbound protocols with this change?
>>
>> Don't we need to apply the same for update page as well?
>>
>> On Fri, Jul 17, 2015 at 4:55 PM, Shakila Sivagnanarajah > > wrote:
>>
>>> Hi Malaka,
>>>
>>> Please review and merge PR[1] for $subject.
>>>
>>> [1] https://github.com/wso2/carbon-mediation/pull/294
>>>
>>>
>>> Thank you
>>> --
>>> Shakila Sivagnanarajah
>>> Associate Software Engineer
>>> Mobile :+94 (0) 770 760240
>>> shak...@wso2.com
>>>
>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech Lead
>> M: +94 777 219 791
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>> http://www.wso2.com/about/team/malaka-silva/
>> 
>>
>> Save a tree -Conserve nature & Save the world for your future. Print this
>> email only if it is absolutely necessary.
>>
>
>
>
> --
> Shakila Sivagnanarajah
> Associate Software Engineer
> Mobile :+94 (0) 770 760240
> shak...@wso2.com
>



-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/


Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge

2015-07-20 Thread Maduranga Siriwardena
Hi all,

Please review and merge PR [1] that fixes public jira [2]

[1] https://github.com/wso2/carbon-identity/pull/646
[2] https://wso2.org/jira/browse/IDENTITY-3413

Thank you.

-- 
Maduranga Siriwardena
Software Engineer
WSO2 Inc.

email: madura...@wso2.com
mobile: +94718990591
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pull Requests for Deploying ESB connector from CApp

2015-07-20 Thread Shakila Sivagnanarajah
Hi Malaka,

I have modified the code according to the comments and implemented to
support for another scenario [1]. Please find the pull requests [2] and [3].

[1] If the included connector (in CApp) is already deployed in ESB, the
connector deployment should be skipped.
[2] https://github.com/wso2/carbon-mediation/pull/280
[3] https://github.com/wso2/wso2-synapse/pull/254

Thank you


On Mon, Jul 13, 2015 at 11:05 AM, Malaka Silva  wrote:

> Added some comments please check
>
> On Mon, Jul 13, 2015 at 9:46 AM, Shakila Sivagnanarajah 
> wrote:
>
>> Hi Malaka,
>>
>> Please review and merge PRs [1] and [2].
>>
>> Description:
>> [1] - The main functionality is written here.
>> [2] - undeploy method is modified to delete synapse library from
>> temporary directory wile un-deploying the connector.
>>
>> [1] https://github.com/wso2/carbon-mediation/pull/280
>> [2] https://github.com/wso2/wso2-synapse/pull/254
>>
>> Thank you
>> --
>> Shakila Sivagnanarajah
>> Associate Software Engineer
>> Mobile :+94 (0) 770 760240
>> shak...@wso2.com
>>
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :+94 (0) 770 760240
shak...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][DevStudio] Please review and merge the PR for Fixing Tools-2869

2015-07-20 Thread Nuwan Pallewela
Thanks,
Nuwan

On Mon, Jul 20, 2015 at 4:26 PM, Rajeevan Vimalanathan 
wrote:

> Merged!
>
> Thanks,
> Rajeevan
>
> On Mon, Jul 20, 2015 at 3:08 PM, Nuwan Pallewela  wrote:
>
>> Hi ,
>> Please review and merge PR [1] and [2]-
>>  Tools-2869-When a CAR file is generated, artifacts with dependencies
>> comes up in order than its dependancies
>> [1] https://github.com/wso2/developer-studio/pull/75
>> [2] https://github.com/wso2/developer-studio/pull/74
>>
>> --
>> --
>>
>> *Nuwan Chamara Pallewela*
>>
>>
>> *Software Engineer*
>>
>> *WSO2, Inc. *
>> *lean . enterprise . middleware*
>>
>> Email   *nuw...@wso2.com *
>> Mobile  *+94719079739 <%2B94719079739>*
>> *+94767100087 <%2B94767100087>*
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vimalanathan Rajeevan
> Software Engineer,
> WSO2, Inc. *http://wso2.com* 
> Lean.Enterprise.Middleware
>
> Mobile:
> *+94 773090875 <%2B94%20773090875>*
> LinkedIn:
> *https://www.linkedin.com/in/RajeevanVimalanathan
> *
>



-- 
--

*Nuwan Chamara Pallewela*


*Software Engineer*

*WSO2, Inc. *
*lean . enterprise . middleware*

Email   *nuw...@wso2.com *
Mobile  *+94719079739*
*+94767100087*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][DevStudio] Please review and merge the PR for Fixing Tools-2869

2015-07-20 Thread Rajeevan Vimalanathan
Merged!

Thanks,
Rajeevan

On Mon, Jul 20, 2015 at 3:08 PM, Nuwan Pallewela  wrote:

> Hi ,
> Please review and merge PR [1] and [2]-
>  Tools-2869-When a CAR file is generated, artifacts with dependencies
> comes up in order than its dependancies
> [1] https://github.com/wso2/developer-studio/pull/75
> [2] https://github.com/wso2/developer-studio/pull/74
>
> --
> --
>
> *Nuwan Chamara Pallewela*
>
>
> *Software Engineer*
>
> *WSO2, Inc. *
> *lean . enterprise . middleware*
>
> Email   *nuw...@wso2.com *
> Mobile  *+94719079739 <%2B94719079739>*
> *+94767100087 <%2B94767100087>*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vimalanathan Rajeevan
Software Engineer,
WSO2, Inc. *http://wso2.com* 
Lean.Enterprise.Middleware

Mobile:
*+94 773090875*
LinkedIn:
*https://www.linkedin.com/in/RajeevanVimalanathan
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge

2015-07-20 Thread Prabath Ariyarathna
Hi Ramith & MB team.

Please review and merge PR[1] for public Jira[2].

[1] = https://github.com/wso2/andes/pull/222
[2] = https://wso2.org/jira/browse/MB-1161


Thanks.

-- 

*Prabath Ariyarathna*

*Associate Technical Lead*

*WSO2, Inc. *

*lean . enterprise . middleware *


*Email: prabat...@wso2.com *

*Blog: http://prabu-lk.blogspot.com *

*Flicker : https://www.flickr.com/photos/47759189@N08
*

*Mobile: +94 77 699 4730 *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fetch Email Id from Wso2 Store user signup section

2015-07-20 Thread Chamalee De Silva
Hi Rohit,

At the current implementation of WSO2 API Manager we are not using the
email address of the user for sending approval email notifications.

However if you want to add that functionality, you can add the *email ID of
the user *who is signing up, as a class member in *WorkFlowExecutor.java *

Inside *jsFunction_addUser() *method in *APIStoreHostObject.java *it calls
the UserSignUp workflow.

So there we get the object array (args) from the front end which contain
the email ID of the user in the third element. (line number 3696 in [1])
and then it is further split into a String array and then added into an
array of UserDTO.

P.S. This third element contains a set of field values including the email
address.

According to the front end implementations, the sixth element of the String
array contains the value of email ID.

So that you can take it from the UserDTO array as follows.

*userDTO.getUserFields()[5].toString()*


You can set this value to the variable you defined in *WorkFlowExecutor.java *

When in execution if you have enabled the workflows for the UserSignUp
it will select the UserSignUpWSWorkflowExecutor class for the
execution. In the complete method of that class you can implement your
email sending code after calling *updateRolesOfUser *the following
method in UserSignUpWSWorkflowExecutor if the request is approved by
the admin.

Hope this will solve your problem.


[1]
https://github.com/wso2/carbon-apimgt/blob/release-1.9.0/components/apimgt/org.wso2.carbon.apimgt.hostobjects/src/main/java/org/wso2/carbon/apimgt/hostobjects/APIStoreHostObject.java



On Mon, Jul 20, 2015 at 3:47 AM, rohit  wrote:

> Hello All,
> Can anyone please guide me on how to fetch the email id from the Wso2 Store
> user sign up section. A generic way so that every time user signs up that
> id
> can be captured and can be provided in the workflow-extensions.xml in wso2
> API Manager.
> Thanks in advance!
>
>
>
> --
> View this message in context:
> http://wso2-oxygen-tank.10903.n7.nabble.com/Fetch-Email-Id-from-Wso2-Store-b-user-signup-section-b-tp121955.html
> Sent from the WSO2 Development mailing list archive at Nabble.com.
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Thanks & Regards,

*Chamalee De Silva*
Software Engineer
*WS**O2* Inc. .:http://wso2.com

Office   :- *+94 11 2145345 <%2B94%2011%202145345>*
mobile  :- *+94 7 <%2B94%2077%202782039>1 4315942*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge the pull request

2015-07-20 Thread Madhawa Gunasekara
Hi,

Please review and merge the pull request, [1] fix for issue [2].

[1] https://github.com/wso2/carbon-data/pull/10
[2] https://wso2.org/jira/browse/DS-1036

-- 
*Madhawa Gunasekara*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 719411002 <+94+719411002>
blog: *http://madhawa-gunasekara.blogspot.com
*
linkedin: *http://lk.linkedin.com/in/mgunasekara
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pull request for Payloadfactory Improvement

2015-07-20 Thread Keerthika Mahendralingam
Hi Malaka,
Please find the pull request[1] for integration test cases for
payloadfactory improvement.

[1]. https://github.com/wso2/product-esb/pull/238



Thanks,

On Fri, Jul 17, 2015 at 11:14 AM, Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Hi Malaka,
> I have made some changes in the pull request. Please check now.
>
> https://github.com/wso2/wso2-synapse/pull/261
>
> Thanks,
>
> On Thu, Jul 16, 2015 at 8:35 PM, Malaka Silva  wrote:
>
>> Added some comments. Please check.
>>
>> On Thu, Jul 16, 2015 at 5:19 PM, Keerthika Mahendralingam <
>> keerth...@wso2.com> wrote:
>>
>>> Hi Malaka,
>>> Please find the pull request for $subject [1].
>>>
>>> The pull request includes the changes for payloadfactory mediator to
>>> provide the facility to provide the expressions inline rather than via
>>> arguments. And it has the backward compatibility also.
>>>
>>>
>>> [1]. https://github.com/wso2/wso2-synapse/pull/261
>>>
>>> Thanks,
>>> --
>>> 
>>> Keerthika Mahendralingam
>>> Associate Software Engineer
>>> Mobile :+94 (0) 776 121144
>>> keerth...@wso2.com
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech Lead
>> M: +94 777 219 791
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>> http://www.wso2.com/about/team/malaka-silva/
>> 
>>
>> Save a tree -Conserve nature & Save the world for your future. Print this
>> email only if it is absolutely necessary.
>>
>
>
>
> --
> 
> Keerthika Mahendralingam
> Associate Software Engineer
> Mobile :+94 (0) 776 121144
> keerth...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
>



-- 

Keerthika Mahendralingam
Associate 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


Re: [Dev] how to register an event in user signup for ES extension

2015-07-20 Thread Lakshman Udayakantha
Couldn't add onLogin function is used in extension in previous mail. sorry
for that. find it below.

onUserLoggedIn : function(){
var userName=ctx.username;
var apistore = require('apistore').apistore.instance(userName);
var subscriber=apistore.getSubscriber(userName);
if(!subscriber){
apistore.addSubscriber(userName,ctx.tenantId);
}
},

additionally, found below function

 event.on('userRegister', function (tenantId, user) {
log.info("user registering...");
configs(tenantId).userRoles.forEach(function (role) {
if (user.hasRoles([role])) {
return;
}
user.addRoles([role]);
});
});

It should be call on user signup. But it calls on first login for the users
who signed up. Any way I can't change that function to add subscriber role
to users because this function found in store/module/store.js file which is
not in extension directory. simply this function reside in ES code and
adding subscriber role to users should happen in extension because that
functionality is specific to API store.

Thanks

On Mon, Jul 20, 2015 at 3:05 PM, Lakshman Udayakantha 
wrote:

> Hi Sameera/ES Team,
>
> I am working on [1]. I want to add to users who sign up in store, the
> subscriber role.
> Below function is used to add users as subscribers in their first login to
> subscriber tables in asset.js function in store extension. similar
> requirement needs for signup as well. how do I achieve this?
>
> [1] https://wso2.org/jira/browse/REGISTRY-2683
>
> Thanks
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0711241005*
>
>


-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV][DevStudio] Please review and merge the PR for Fixing Tools-2869

2015-07-20 Thread Nuwan Pallewela
Hi ,
Please review and merge PR [1] and [2]-
 Tools-2869-When a CAR file is generated, artifacts with dependencies comes
up in order than its dependancies
[1] https://github.com/wso2/developer-studio/pull/75
[2] https://github.com/wso2/developer-studio/pull/74

-- 
--

*Nuwan Chamara Pallewela*


*Software Engineer*

*WSO2, Inc. *
*lean . enterprise . middleware*

Email   *nuw...@wso2.com *
Mobile  *+94719079739*
*+94767100087*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] how to register an event in user signup for ES extension

2015-07-20 Thread Lakshman Udayakantha
Hi Sameera/ES Team,

I am working on [1]. I want to add to users who sign up in store, the
subscriber role.
Below function is used to add users as subscribers in their first login to
subscriber tables in asset.js function in store extension. similar
requirement needs for signup as well. how do I achieve this?

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

Thanks
-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Registry search doesn't return the expected results with combinations of space and *

2015-07-20 Thread Chanaka Jayasena
Hi Shazni,

Thanks for the fix. I have tested the fix against the SNAPSHOT version and
it fixes the given scenarios. Hope we can get the component released, since
we need this for the RC.

thanks,
Chanaka

On Fri, Jul 17, 2015 at 3:00 PM, Shazni Nazeer  wrote:

> Hi Tanya,
>
> The issue is fixed now. You can check this against 4.5.2-SNAPSHOT
> carbon-governance.
>
> Shazni Nazeer
> Mob : +94 37331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
> Blog : http://shazninazeer.blogspot.com
>
> On Thu, Jul 16, 2015 at 12:18 PM, Tanya Madurapperuma 
> wrote:
>
>> Reopened [1]
>>
>> [1] https://wso2.org/jira/browse/REGISTRY-2596
>>
>> Thanks,
>> Tanya
>>
>> On Thu, Jul 16, 2015 at 12:01 PM, Tanya Madurapperuma 
>> wrote:
>>
>>> Hi Greg team,
>>>
>>> In the management console if we perform an advanced search (Advance
>>> Filter) with * and space in the search text, it doesn't return the expected
>>> results.
>>>
>>> Please see the following observations.
>>>
>>> *pie chart*   - returns nothing
>>> *pie chart- returns nothing
>>> pie chart*- returns nothing
>>> *pie - returns nothing
>>> *pie cha* - returns nothing
>>> pie cha*  - returns nothing
>>>
>>> *ie* - works
>>> *pie* - works
>>>
>>> Appreciate if you could fix this since we need this feature for the ES
>>> release.
>>>
>>> Thanks,
>>> Tanya
>>>
>>> --
>>> Tanya Madurapperuma
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc. : wso2.com
>>> Mobile : +94718184439
>>> Blog : http://tanyamadurapperuma.blogspot.com
>>>
>>
>>
>>
>> --
>> Tanya Madurapperuma
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94718184439
>> Blog : http://tanyamadurapperuma.blogspot.com
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Chanaka Jayasena
Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
email: chan...@wso2.com; cell: +94 77 785 5565
blog: http://chanaka3d.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge the pull requests

2015-07-20 Thread Rajith Vitharana
Hi Madhawa,

Merged both requests,

Thanks,

On Mon, Jul 20, 2015 at 2:54 PM, Madhawa Gunasekara 
wrote:

> Hi,
>
> Please review and merge the two pull requests.
> [1] fix for issue [2] and [3] fix for issue [4].
>
> [1] https://github.com/wso2/carbon-data/pull/9
> [2] https://wso2.org/jira/browse/DS-1039
>
> [3] https://github.com/wso2/carbon-data/pull/12
> [4] https://wso2.org/jira/browse/DS-1040
>
> Thanks,
> Madhawa
>
> --
> *Madhawa Gunasekara*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 719411002 <+94+719411002>
> blog: *http://madhawa-gunasekara.blogspot.com
> *
> linkedin: *http://lk.linkedin.com/in/mgunasekara
> *
>



-- 
Rajith Vitharana

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


[Dev] Please review and merge the pull requests

2015-07-20 Thread Madhawa Gunasekara
Hi,

Please review and merge the two pull requests.
[1] fix for issue [2] and [3] fix for issue [4].

[1] https://github.com/wso2/carbon-data/pull/9
[2] https://wso2.org/jira/browse/DS-1039

[3] https://github.com/wso2/carbon-data/pull/12
[4] https://wso2.org/jira/browse/DS-1040

Thanks,
Madhawa

-- 
*Madhawa Gunasekara*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 719411002 <+94+719411002>
blog: *http://madhawa-gunasekara.blogspot.com
*
linkedin: *http://lk.linkedin.com/in/mgunasekara
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Error while starting the ESB-4.9.0-Alpha

2015-07-20 Thread Rajjaz Mohammed
Hi thulasi,
i thing that was problem in your tomcat refer [1], [2]. it will help to you.

[1]
http://stackoverflow.com/questions/28102134/a-child-container-failed-during-start-java-util-concurrent-executionexception
[2] http://stackoverflow.com/questions/10556201/tomcat-7-0-27-not-starting

On Mon, Jul 20, 2015 at 2:14 PM, Thulasika Vijayanathan 
wrote:

> Hi,
>
> I am getting the following error when I start the ESB-4.9.0-Alpha.I am
> able to start the ESB-4.8.1 without any issue. what could be the reason for
> this?
>
>
> thulasi@thulasi-ThinkPad-T540p
> :~/Documents/ESB_4.9.0_Alpha/wso2esb-4.9.0-ALPHA/bin$ ./wso2server.sh
> JAVA_HOME environment variable is set to /usr/local/java/jdk1.7.0_79
> CARBON_HOME environment variable is set to
> /home/thulasi/Documents/ESB_4.9.0_Alpha/wso2esb-4.9.0-ALPHA
> [2015-07-20 13:24:47,260]  INFO - CarbonCoreActivator Starting WSO2
> Carbon...
> [2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Operating System :
> Linux 3.13.0-24-generic, amd64
> [2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Java Home:
> /usr/local/java/jdk1.7.0_79/jre
> [2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Java Version :
> 1.7.0_79
> [2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Java VM  :
> Java HotSpot(TM) 64-Bit Server VM 24.79-b02,Oracle Corporation
> [2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Carbon Home  :
> /home/thulasi/Documents/ESB_4.9.0_Alpha/wso2esb-4.9.0-ALPHA
> [2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Java Temp Dir:
> /home/thulasi/Documents/ESB_4.9.0_Alpha/wso2esb-4.9.0-ALPHA/tmp
> [2015-07-20 13:24:47,264]  INFO - CarbonCoreActivator User :
> thulasi, en-US, Asia/Colombo
> [2015-07-20 13:24:47,334]  WARN - ValidationResultPrinter Carbon is
> configured to use the default keystore (wso2carbon.jks). To maximize
> security when deploying to a production environment, configure a new
> keystore with a unique password in the production server profile.
> [2015-07-20 13:24:47,335]  WARN - ValidationResultPrinter Swap Memory size
> (MB): 0 of the system is below the recommended minimum size :2047
> [2015-07-20 13:24:47,342]  INFO - AgentHolder Agent created !
> [2015-07-20 13:24:47,356]  INFO - AgentDS Successfully deployed Agent
> Client
> [2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
> blueprint namespace handler for http://cxf.apache.org/blueprint/core
> [2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
> blueprint namespace handler for http://cxf.apache.org/configuration/beans
> [2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
> blueprint namespace handler for
> http://cxf.apache.org/configuration/parameterized-types
> [2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
> blueprint namespace handler for
> http://cxf.apache.org/configuration/security
> [2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
> blueprint namespace handler for http://schemas.xmlsoap.org/wsdl/
> [2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
> blueprint namespace handler for http://www.w3.org/2005/08/addressing
> [2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
> blueprint namespace handler for
> http://schemas.xmlsoap.org/ws/2004/08/addressing
> [2015-07-20 13:24:49,122] ERROR - ContainerBase A child container failed
> during start
> java.util.concurrent.ExecutionException:
> org.apache.catalina.LifecycleException: Failed to start component
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/]]
> at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> at java.util.concurrent.FutureTask.get(FutureTask.java:188)
> at
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
> at
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
> at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.catalina.LifecycleException: Failed to start
> component
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/]]
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> ... 6 more
> Caused by: java.lang.IllegalStateException: Unable to complete the scan
> for annotations for web application [/] due to a StackOverflowError.
> Possible root causes include a too low setting for -Xss and illegal cyclic
> inheritance dependencies. The class hi

Re: [Dev] Extract SSL certificate information from org.apache.http.nio.reactor.ssl.SSLIOSession

2015-07-20 Thread Jagath Sisirakumara Ariyarathne
Thanks Asela. I will proceed with the change.


On Mon, Jul 20, 2015 at 1:20 PM, Asela Pathberiya  wrote:

> On Mon, Jul 20, 2015 at 12:44 PM, Jagath Sisirakumara Ariyarathne
>  wrote:
> > Hi,
> >
> > I am working on JIRA issue[1] and need to extract SSL session's
> certificate
> > from SSLIOSession and set it to Axis2MessageContext. With the patch done
> > in[2], we can obtain this from "ssl.client.auth.cert.X509" attribute in
> > httpcore-nio_4.2.3.
> >
> > But the latest ESB 4.9.0 is using httpcore-nio_4.3.3. Rather than
> updating
> > in httpcore-nio, we can get this information directly from SSLIOSession
> at
> > ServerWorker level and set it to message context. Is there any problem
> with
> > this approach?
>
> Yes. It would be fine.. If it is available for Axis2 handlers.. AFAIK,
> this property is read by Axis2 handlers (rampart)..
>
> Thanks,
> Asela.
>
> >
> > [1] - https://wso2.org/jira/browse/ESBJAVA-3857
> > [2] - https://wso2.org/jira/browse/ESBJAVA-2390
> >
> > Thanks.
> > --
> > Jagath Ariyarathne
> > Technical Lead
> > WSO2 Inc.  http://wso2.com/
> > Email: jaga...@wso2.com
> > Mob  : +94 77 386 7048
> >
>
>
>
> --
> Thanks & Regards,
> Asela
>
> ATL
> Mobile : +94 777 625 933
>  +358 449 228 979
>
> http://soasecurity.org/
> http://xacmlinfo.org/
>



-- 
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/
Email: jaga...@wso2.com
Mob  : +94 77 386 7048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Renaming carbon-store related features

2015-07-20 Thread Udara Rathnayake
Hi All,

Right now we have following artifact ID's,

es-feature : org.wso2.es.feature
store-feature : org.wso2.store.feature

We had a discussion during the previous carbon-store component release to
rename these to the standard way and correct this mistake.

eg:- org.wso2.es.feature > org.wso2.carbon.es.feature

We need to update people, who depend on es/store features before moving to
v 2.3.1.
Let us know if you have any concerns about this change.

[1]
https://github.com/wso2/carbon-store/tree/master/features/org.wso2.store.feature
[2]
https://github.com/wso2/carbon-store/tree/master/features/org.wso2.store.feature

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


[Dev] [ESB] Error while starting the ESB-4.9.0-Alpha

2015-07-20 Thread Thulasika Vijayanathan
Hi,

I am getting the following error when I start the ESB-4.9.0-Alpha.I am able
to start the ESB-4.8.1 without any issue. what could be the reason for this?


thulasi@thulasi-ThinkPad-T540p
:~/Documents/ESB_4.9.0_Alpha/wso2esb-4.9.0-ALPHA/bin$ ./wso2server.sh
JAVA_HOME environment variable is set to /usr/local/java/jdk1.7.0_79
CARBON_HOME environment variable is set to
/home/thulasi/Documents/ESB_4.9.0_Alpha/wso2esb-4.9.0-ALPHA
[2015-07-20 13:24:47,260]  INFO - CarbonCoreActivator Starting WSO2
Carbon...
[2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Operating System :
Linux 3.13.0-24-generic, amd64
[2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Java Home:
/usr/local/java/jdk1.7.0_79/jre
[2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Java Version :
1.7.0_79
[2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Java VM  :
Java HotSpot(TM) 64-Bit Server VM 24.79-b02,Oracle Corporation
[2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Carbon Home  :
/home/thulasi/Documents/ESB_4.9.0_Alpha/wso2esb-4.9.0-ALPHA
[2015-07-20 13:24:47,263]  INFO - CarbonCoreActivator Java Temp Dir:
/home/thulasi/Documents/ESB_4.9.0_Alpha/wso2esb-4.9.0-ALPHA/tmp
[2015-07-20 13:24:47,264]  INFO - CarbonCoreActivator User :
thulasi, en-US, Asia/Colombo
[2015-07-20 13:24:47,334]  WARN - ValidationResultPrinter Carbon is
configured to use the default keystore (wso2carbon.jks). To maximize
security when deploying to a production environment, configure a new
keystore with a unique password in the production server profile.
[2015-07-20 13:24:47,335]  WARN - ValidationResultPrinter Swap Memory size
(MB): 0 of the system is below the recommended minimum size :2047
[2015-07-20 13:24:47,342]  INFO - AgentHolder Agent created !
[2015-07-20 13:24:47,356]  INFO - AgentDS Successfully deployed Agent Client
[2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
blueprint namespace handler for http://cxf.apache.org/blueprint/core
[2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
blueprint namespace handler for http://cxf.apache.org/configuration/beans
[2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
blueprint namespace handler for
http://cxf.apache.org/configuration/parameterized-types
[2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
blueprint namespace handler for http://cxf.apache.org/configuration/security
[2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
blueprint namespace handler for http://schemas.xmlsoap.org/wsdl/
[2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
blueprint namespace handler for http://www.w3.org/2005/08/addressing
[2015-07-20 13:24:47,527]  INFO - NamespaceHandlerRegisterer Registered
blueprint namespace handler for
http://schemas.xmlsoap.org/ws/2004/08/addressing
[2015-07-20 13:24:49,122] ERROR - ContainerBase A child container failed
during start
java.util.concurrent.ExecutionException:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:188)
at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: Failed to start
component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
... 6 more
Caused by: java.lang.IllegalStateException: Unable to complete the scan for
annotations for web application [/] due to a StackOverflowError. Possible
root causes include a too low setting for -Xss and illegal cyclic
inheritance dependencies. The class hierarchy being processed was
[org.bouncycastle.asn1.ASN1EncodableVector->org.bouncycastle.asn1.DEREncodableVector->org.bouncycastle.asn1.ASN1EncodableVector]
at
org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:2144)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2090)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1965)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextCo

Re: [Dev] [ES] UX team feedback on social UI

2015-07-20 Thread Udara Rathnayake
Since we can't do any code changes after the RC, ll try to do this minimum
fix before RC.

On Mon, Jul 20, 2015 at 1:09 PM, Udara Rathnayake  wrote:

>
>
> On Mon, Jul 20, 2015 at 12:48 PM, Jerad Rutnam  wrote:
>
>> Hi Nadeesha,
>>
>> Yes, I captured it from YouTube. :)
>>
>> @Udara: As for the offline chat we had, I think using light grey color
>> for both rating and thumb icons will gives a clean look. And we can
>> highlight the selected using dark grey/blue. :)
>>
> +1 I'll update accordingly (before GA not for the RC)
>
>>
>> Regards,
>> Jerad
>>
>> On Mon, Jul 20, 2015 at 11:03 AM, Nadeesha Meegoda 
>> wrote:
>>
>>> Hi Jerad/Udara,
>>>
>>> I agree with the colors Jerad suggested, Regarding the tooltip thing I
>>> prefer what Jerad suggested. Anyway the thumbs up is for "I like this"
>>> that's obvious. But the tooltip makes it more clear and looks more
>>> clickable/descriptive as per my view. Just saw the exact thing in YouTube
>>> videos.
>>>
>>>
>>> [image: Inline image 1]
>>>
>>> Regards,
>>> Nadeesha
>>>
>>>
>>> On Mon, Jul 20, 2015 at 10:03 AM, Jerad Rutnam  wrote:
>>>
 Hi Udara,

 Then it's ok. We can just have blue (theme color) for "like" active
 state and red/black etc ... color for "dislike" state. :)

 Cheers,
 Jerad

 --
 *Jerad Rutnam*
 *Software Engineer*

 WSO2 Inc.
 lean | enterprise | middleware
 M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com

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


>>>
>>>
>>> --
>>> *Nadeesha Meegoda*
>>> Software Engineer - QA
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> email : nadees...@wso2.com
>>> mobile: +94783639540
>>> <%2B94%2077%202273555>
>>>
>>
>>
>>
>> --
>> *Jerad Rutnam*
>> *Software Engineer*
>>
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Extract SSL certificate information from org.apache.http.nio.reactor.ssl.SSLIOSession

2015-07-20 Thread Asela Pathberiya
On Mon, Jul 20, 2015 at 12:44 PM, Jagath Sisirakumara Ariyarathne
 wrote:
> Hi,
>
> I am working on JIRA issue[1] and need to extract SSL session's certificate
> from SSLIOSession and set it to Axis2MessageContext. With the patch done
> in[2], we can obtain this from "ssl.client.auth.cert.X509" attribute in
> httpcore-nio_4.2.3.
>
> But the latest ESB 4.9.0 is using httpcore-nio_4.3.3. Rather than updating
> in httpcore-nio, we can get this information directly from SSLIOSession at
> ServerWorker level and set it to message context. Is there any problem with
> this approach?

Yes. It would be fine.. If it is available for Axis2 handlers.. AFAIK,
this property is read by Axis2 handlers (rampart)..

Thanks,
Asela.

>
> [1] - https://wso2.org/jira/browse/ESBJAVA-3857
> [2] - https://wso2.org/jira/browse/ESBJAVA-2390
>
> Thanks.
> --
> Jagath Ariyarathne
> Technical Lead
> WSO2 Inc.  http://wso2.com/
> Email: jaga...@wso2.com
> Mob  : +94 77 386 7048
>



-- 
Thanks & Regards,
Asela

ATL
Mobile : +94 777 625 933
 +358 449 228 979

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


Re: [Dev] [ES] UX team feedback on social UI

2015-07-20 Thread Udara Rathnayake
On Mon, Jul 20, 2015 at 12:48 PM, Jerad Rutnam  wrote:

> Hi Nadeesha,
>
> Yes, I captured it from YouTube. :)
>
> @Udara: As for the offline chat we had, I think using light grey color for
> both rating and thumb icons will gives a clean look. And we can highlight
> the selected using dark grey/blue. :)
>
+1 I'll update accordingly (before GA not for the RC)

>
> Regards,
> Jerad
>
> On Mon, Jul 20, 2015 at 11:03 AM, Nadeesha Meegoda 
> wrote:
>
>> Hi Jerad/Udara,
>>
>> I agree with the colors Jerad suggested, Regarding the tooltip thing I
>> prefer what Jerad suggested. Anyway the thumbs up is for "I like this"
>> that's obvious. But the tooltip makes it more clear and looks more
>> clickable/descriptive as per my view. Just saw the exact thing in YouTube
>> videos.
>>
>>
>> [image: Inline image 1]
>>
>> Regards,
>> Nadeesha
>>
>>
>> On Mon, Jul 20, 2015 at 10:03 AM, Jerad Rutnam  wrote:
>>
>>> Hi Udara,
>>>
>>> Then it's ok. We can just have blue (theme color) for "like" active
>>> state and red/black etc ... color for "dislike" state. :)
>>>
>>> Cheers,
>>> Jerad
>>>
>>> --
>>> *Jerad Rutnam*
>>> *Software Engineer*
>>>
>>> WSO2 Inc.
>>> lean | enterprise | middleware
>>> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Nadeesha Meegoda*
>> Software Engineer - QA
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> email : nadees...@wso2.com
>> mobile: +94783639540
>> <%2B94%2077%202273555>
>>
>
>
>
> --
> *Jerad Rutnam*
> *Software Engineer*
>
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Overriding the order of menu items in management console in a product

2015-07-20 Thread Kalpa Welivitigoda
Hi,

I am working on [1] where we want to have the "Manage" menu (in the Main
section) as the first in the list (currently "Identity" is the first). In
there own components, Identity menu [2] has the order 1 while manage menu
has the order 10. Both are in region 1. Is there a possibility to arrange
the menu items in a customized order in product level?

[1] https://wso2.org/jira/browse/WSAS-2018
[2]
https://github.com/wso2/carbon-identity/blob/master/components/identity-core/org.wso2.carbon.identity.menu.ui/src/main/resources/META-INF/component.xml#L20
[3]
https://github.com/wso2/carbon4-kernel/blob/master/core/org.wso2.carbon.ui.menu/org.wso2.carbon.ui.menu.general/src/main/resources/META-INF/component.xml#L31

-- 
Best Regards,

Kalpa Welivitigoda
Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] UX team feedback on social UI

2015-07-20 Thread Jerad Rutnam
Hi Nadeesha,

Yes, I captured it from YouTube. :)

@Udara: As for the offline chat we had, I think using light grey color for
both rating and thumb icons will gives a clean look. And we can highlight
the selected using dark grey/blue. :)

Regards,
Jerad

On Mon, Jul 20, 2015 at 11:03 AM, Nadeesha Meegoda 
wrote:

> Hi Jerad/Udara,
>
> I agree with the colors Jerad suggested, Regarding the tooltip thing I
> prefer what Jerad suggested. Anyway the thumbs up is for "I like this"
> that's obvious. But the tooltip makes it more clear and looks more
> clickable/descriptive as per my view. Just saw the exact thing in YouTube
> videos.
>
>
> [image: Inline image 1]
>
> Regards,
> Nadeesha
>
>
> On Mon, Jul 20, 2015 at 10:03 AM, Jerad Rutnam  wrote:
>
>> Hi Udara,
>>
>> Then it's ok. We can just have blue (theme color) for "like" active state
>> and red/black etc ... color for "dislike" state. :)
>>
>> Cheers,
>> Jerad
>>
>> --
>> *Jerad Rutnam*
>> *Software Engineer*
>>
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Nadeesha Meegoda*
> Software Engineer - QA
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> email : nadees...@wso2.com
> mobile: +94783639540
> <%2B94%2077%202273555>
>



-- 
*Jerad Rutnam*
*Software Engineer*

WSO2 Inc.
lean | enterprise | middleware
M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Extract SSL certificate information from org.apache.http.nio.reactor.ssl.SSLIOSession

2015-07-20 Thread Jagath Sisirakumara Ariyarathne
Hi,

I am working on JIRA issue[1] and need to extract SSL session's
certificate from
SSLIOSession and set it to Axis2MessageContext. With the patch done in[2],
we can obtain this from "ssl.client.auth.cert.X509" attribute in
httpcore-nio_4.2.3.


But the latest ESB 4.9.0 is using httpcore-nio_4.3.3. Rather than updating
in httpcore-nio, we can get this information directly from SSLIOSession at
ServerWorker level and set it to message context. Is there any problem with
this approach?

[1] - https://wso2.org/jira/browse/ESBJAVA-3857
[2] - https://wso2.org/jira/browse/ESBJAVA-2390

Thanks.
-- 
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/
Email: jaga...@wso2.com
Mob  : +94 77 386 7048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Input parameter values are not assigning in the server side (using SoapUI)

2015-07-20 Thread Lakshani Gamage
Hi Bimali,

Can you please attach the wadl file and a screen shot soapUI request?

Thank You.

On Mon, Jul 20, 2015 at 11:34 AM, Bimali Dayananda  wrote:

> Hi,
>
> I'm testing a jax-rs web service (GET method) using SoapUI. I set
> parameter values in the request.
> But from the server side it always takes null values as parameter values.
>
> Any idea about this problem?
>
> Thanks.
>
> --
> Bimali Dayananda
> Intern-Software Engineering
> Mobile : +94(77) 571 6618
> bim...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Lakshani Gamage

*Software Engineer*
Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev