[Dev] APIM integration with GReg

2013-07-31 Thread Shelan Perera
Hi Lakmali, Could you please update us with the current status. Thanks -- *Shelan Perera* Senior Software Engineer ** Integration Technology Group *WSO2, Inc. : wso2.com* lean.enterprise.middleware. *Blog* : blog.shelan.org *Linked-i*n :

[Dev] java.nio.channels.ClosedChannelException thrown time to time on ELB console

2013-07-31 Thread Evanthika Amarasiri
Hi, We see a java.nio.channels.ClosedChannelException on the ELB node of a worker manager separated setup time to time. [1] TID: [0] [ELB] [2013-07-31 11:23:07,866] WARN {org.apache.synapse.transport.passthru.SourceHandler} - Illegal incoming connection state: REQUEST_DONE . Possibly two send

Re: [Dev] APIM integration with GReg

2013-07-31 Thread Lakmali Baminiwatta
Hi Shelan, On 31 July 2013 11:37, Shelan Perera she...@wso2.com wrote: Hi Lakmali, Could you please update us with the current status. The current status had been discussed in *[DEV]Publishing GREG Rest API*and *[DEV] OSGI bundles startup order* . I am going forward with the approach

Re: [Dev] [Blocker] Massive Increase in Distribution Size after including CXF war files and AM Jaggery Apps

2013-07-31 Thread Sagara Gunathunga
On Wed, Jul 31, 2013 at 11:26 AM, Senaka Fernando sen...@wso2.com wrote: Hi all, There is a massive increase in distribution size (~60MB) with the inclusion of some AM-related Jaggery Apps. Most of this is due to unwanted duplicates. For instance the ZIP file has 72 copies of gregorian.js.

Re: [Dev] ELB - Exposing Admin services (AuthenticationAdmin)

2013-07-31 Thread Geeth Munasinghe
Cause of this problem is following code being executed in class - org.apache.synapse.transport.nhttp.util.RESTUtil, method prepareMessageContext RequestURIBasedDispatcher requestDispatcher = new RequestURIBasedDispatcher(); AxisService axisService = requestDispatcher.findService(msgContext);

Re: [Dev] [Blocker] Massive Increase in Distribution Size after including CXF war files and AM Jaggery Apps

2013-07-31 Thread Kasun Gajasinghe
For CXF, the increase in war files happens mainly due to inclusions of libraries in WEB-INF/lib. It seems that in greg, these wars pack most of the cxf, and other related libraries that is already included in lib/runtimes/cxf. You can simply remove these libraries from war. cxf-* jars are bundled

[Dev] OAuth and My Authorized Apps menu items in G-Reg

2013-07-31 Thread Senaka Fernando
Hi all, What are these used for? I don't see any operations for My Authorized Apps even when logged in as admin. Thanks, Senaka. -- * http://us13.wso2con.com/ * * * *Senaka Fernando* Senior Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org

Re: [Dev] [Blocker] Massive Increase in Distribution Size after including CXF war files and AM Jaggery Apps

2013-07-31 Thread Senaka Fernando
Hi Sagara, Kasun, Thanks for the heads-up we'll fix the CXF apps. AM team, any updates? Thanks, Senaka. On Wed, Jul 31, 2013 at 12:23 PM, Kasun Gajasinghe kas...@wso2.com wrote: For CXF, the increase in war files happens mainly due to inclusions of libraries in WEB-INF/lib. It seems that in

Re: [Dev] ELB - Exposing Admin services (AuthenticationAdmin)

2013-07-31 Thread Kasun Gajasinghe
Yes, this is wrong. Seems Dispatchers have been manually invoked, and these dispatchers have set the axis2service and axis2operation in the message context. So, ELB invokes those instead of passing to back-end service! On Wed, Jul 31, 2013 at 12:02 PM, Geeth Munasinghe ge...@wso2.com wrote:

Re: [Dev] ELB - Exposing Admin services (AuthenticationAdmin)

2013-07-31 Thread Afkham Azeez
Let's introduce a System property called reverseProxyMode if that is true, we don't do any dispatching internally. In an ELB component, let's set this System property. -- Afkham Azeez Sent from my phone On Jul 31, 2013 12:02 PM, Geeth Munasinghe ge...@wso2.com wrote: Cause of this problem is

Re: [Dev] ELB - Exposing Admin services (AuthenticationAdmin)

2013-07-31 Thread Nirmal Fernando
Kasun/Miyuru/Dushan, Can you please fix this code correctly? On Wed, Jul 31, 2013 at 12:02 PM, Geeth Munasinghe ge...@wso2.com wrote: Cause of this problem is following code being executed in class - org.apache.synapse.transport.nhttp.util.RESTUtil, method prepareMessageContext

Re: [Dev] [Blocker] Massive Increase in Distribution Size after including CXF war files and AM Jaggery Apps

2013-07-31 Thread Lalaji Sureshika
Hi Senaka, We are checking on this.Your mentioned duplicate js files has introduced after adding dojo library related files with API Statistics page improvements which was discussed on [API Manager 1.4.0 pack for testing]. We'll check any possibility of removing them and reducing the size more.

Re: [Dev] ELB - Exposing Admin services (AuthenticationAdmin)

2013-07-31 Thread Afkham Azeez
Another possible implementation is to say whether internal dispatching or external dispatching needs to be given preference. -- Afkham Azeez Sent from my phone On Jul 31, 2013 12:48 PM, Afkham Azeez az...@wso2.com wrote: Let's introduce a System property called reverseProxyMode if that is

Re: [Dev] ELB - Exposing Admin services (AuthenticationAdmin)

2013-07-31 Thread Kasun Indrasiri
On Wed, Jul 31, 2013 at 12:48 PM, Afkham Azeez az...@wso2.com wrote: Let's introduce a System property called reverseProxyMode if that is true, we don't do any dispatching internally. In an ELB component, let's set this System property. +1 We have used a similar approach when handling MT

Re: [Dev] ELB - Exposing Admin services (AuthenticationAdmin)

2013-07-31 Thread Nirmal Fernando
So, Azeez, this won't work in the case of a LB endpoint of ESB, right? On Wed, Jul 31, 2013 at 12:48 PM, Afkham Azeez az...@wso2.com wrote: Let's introduce a System property called reverseProxyMode if that is true, we don't do any dispatching internally. In an ELB component, let's set this

[Dev] Application Version management in Greg

2013-07-31 Thread Chan
Hi all, I would like to know what is the best way to handle version management inside of greg. Our usecase is this - We have an application and we store that application instance in greg. The developer updates the application - we are going to store the changes in the greg. One way of doing this

[Dev] Publish AS web statistics to BAM configurations have too much configuration steps

2013-07-31 Thread Asanka Vithanage
HI All, I have try to configure AS to publish web statistcs to BAM.But it seems (on user perspective) there are so many configuration steps need to follow to achieve this task. Steps required: 1. Need to enable WebappDataPublishingdisable/WebappDataPublishing on {AS_HOME}/repository/conf/etc/

Re: [Dev] Initiating Identity Server Test Automation

2013-07-31 Thread Krishantha Samaraweera
Hi all, We are going to provide sample tests for each IS high level scenarios. Please update the doc or reply to this mail to fill up any missing scenarios. We expect IS team to cover the cases around each high level scenario and build up the test suite. You can start adding more tests for SCIM

Re: [Dev] Publish AS web statistics to BAM configurations have too much configuration steps

2013-07-31 Thread Kasun Gajasinghe
We need step 2 since there must be a way to enable/disable webapp stats tenant-wide. And, that's where we configure the BAM stream definition, BAM Receiver URL, and credentials. So, we can't remove this one. I do not know the rationale behind having to enable/disable stat publishing globally via

Re: [Dev] Publish AS web statistics to BAM configurations have too much configuration steps

2013-07-31 Thread Geeth Munasinghe
I think we can get rid of the first option, in which I see the same thing is repeated in the second option. 2nd option gives better control because user can do tenant wise configuration. As Kasun mentioned we followed the mechanism used in serviceDataPublishing. Thanks Geeth *G. K. S. Munasinghe

[Dev] AS worker profile doesn't start due to CNF

2013-07-31 Thread Kasun Gajasinghe
Hi Geeth, AS Worker profile currently doesn't start since it can't see the class org.wso2.carbon.bam.webapp.stat.publisher.WebAppStatisticPublisherValve. Can you please include the needed jars in the AS worker profile for this? You can start the worker profile as wso2server.sh -Dprofile=worker

Re: [Dev] Publish AS web statistics to BAM configurations have too much configuration steps

2013-07-31 Thread Sinthuja Ragendran
Hi kasun, On Wed, Jul 31, 2013 at 1:18 PM, Kasun Gajasinghe kas...@wso2.com wrote: We need step 2 since there must be a way to enable/disable webapp stats tenant-wide. And, that's where we configure the BAM stream definition, BAM Receiver URL, and credentials. So, we can't remove this one.

Re: [Dev] Please hold the commits for org.wso2.carbon.hostobjects.sso/1.0.2/ and product/appfactory in apaas scratch area

2013-07-31 Thread Ashansa Perera
Changes are merged to trunk On Wed, Jul 31, 2013 at 10:47 AM, Ashansa Perera asha...@wso2.com wrote: $subject since we are moving the changes to trunk. The URLs given below https://svn.wso2.org/repos/wso2/scratch/apaas/components/hostobjects/org.wso2.carbon.hostobjects.sso/1.0.2/

Re: [Dev] AS worker profile doesn't start due to CNF

2013-07-31 Thread Supun Malinga
Looks like profile is missing some features? On Wed, Jul 31, 2013 at 1:32 PM, Kasun Gajasinghe kas...@wso2.com wrote: Hi Geeth, AS Worker profile currently doesn't start since it can't see the class org.wso2.carbon.bam.webapp.stat.publisher.WebAppStatisticPublisherValve. Can you please

Re: [Dev] AS worker profile doesn't start due to CNF

2013-07-31 Thread Kasun Gajasinghe
Yes... the feature that contains the stat publishing valve is missing. On Wed, Jul 31, 2013 at 1:49 PM, Supun Malinga sup...@wso2.com wrote: Looks like profile is missing some features? On Wed, Jul 31, 2013 at 1:32 PM, Kasun Gajasinghe kas...@wso2.com wrote: Hi Geeth, AS Worker profile

Re: [Dev] Publish AS web statistics to BAM configurations have too much configuration steps

2013-07-31 Thread Sinthuja Ragendran
Hi Kasun/Geeth, IMHO if bam.xml is enabled and the step2 also enabled, then by default we can enable the stats publishing for all web apps. I believe if a use is doing step-1 and step-2, then he's interested to monitor his/her applications. If he doesn't want the stats to be sent for a

Re: [Dev] Application Version management in Greg

2013-07-31 Thread Senaka Fernando
Hi Dulitha, For your requirement, you can use what is provided OOTB. G-Reg has two types of versioning. 1. Revision numbers (as in the case of editing a wiki document) - see http://docs.wso2.org/wiki/display/Governance460/Managing+Metadata 2. Asset versions - see

Re: [Dev] AS worker profile doesn't start due to CNF

2013-07-31 Thread Geeth Munasinghe
I am working on this, *G. K. S. Munasinghe * *Software Engineer,* *WSO2, Inc. http://wso2.com * *lean.enterprise.middleware.* * * email: ge...@wso2.com phone:(+94) 777911226 On Wed, Jul 31, 2013 at 1:50 PM, Kasun Gajasinghe kas...@wso2.com wrote: Yes... the feature that contains the stat

Re: [Dev] Publish AS web statistics to BAM configurations have too much configuration steps

2013-07-31 Thread Sagara Gunathunga
On Wed, Jul 31, 2013 at 1:52 PM, Sinthuja Ragendran sinth...@wso2.comwrote: Hi Kasun/Geeth, IMHO if bam.xml is enabled and the step2 also enabled, then by default we can enable the stats publishing for all web apps. I believe if a use is doing step-1 and step-2, then he's interested to

Re: [Dev] Publish AS web statistics to BAM configurations have too much configuration steps

2013-07-31 Thread Kasun Gajasinghe
Thanks Sinthuja. It seems we should also do a profile testing, and see whether there is a performance hit when the BAM stat valve is used. In aPaaS scenario, I believe there are two requests to BAM for each request AS receives. One is to publish to tenant space, and another to publish to super

Re: [Dev] Publish AS web statistics to BAM configurations have too much configuration steps

2013-07-31 Thread Sinthuja Ragendran
On Wed, Jul 31, 2013 at 3:15 PM, Kasun Gajasinghe kas...@wso2.com wrote: Thanks Sinthuja. It seems we should also do a profile testing, and see whether there is a performance hit when the BAM stat valve is used. In aPaaS scenario, I believe there are two requests to BAM for each request AS

[Dev] Why ntask-core internal package is exposed as an exported package? (org.wso2.carbon.ntask.core.internal)

2013-07-31 Thread Kasun Gajasinghe
Hi, Noticed that the org.wso2.carbon.ntask.core component has exposed its internal package org.wso2.carbon.ntask.core.internal. That package contains the osgi service component class, TasksDSComponent, so I believe it should not be exposed. In the pom, maven-bundle-plugin has the following

Re: [Dev] Why ntask-core internal package is exposed as an exported package? (org.wso2.carbon.ntask.core.internal)

2013-07-31 Thread Kasun Gajasinghe
It seems that TasksDSComponent is used by the following component which is not correct I believe. mashup/org.wso2.carbon.mashup.javascript-hostobjects.system Thanks, KasunG On Wed, Jul 31, 2013 at 6:37 PM, Kasun Gajasinghe kas...@wso2.com wrote: Hi, Noticed that the

Re: [Dev] AS worker profile doesn't start due to CNF

2013-07-31 Thread Geeth Munasinghe
Hi Kasun, Fixed patch is attached here https://wso2.org/jira/browse/WSAS-1365 Thanks Geeth *G. K. S. Munasinghe * *Software Engineer,* *WSO2, Inc. http://wso2.com * *lean.enterprise.middleware.* * * email: ge...@wso2.com phone:(+94) 777911226 On Wed, Jul 31, 2013 at 2:00 PM, Geeth Munasinghe

Re: [Dev] Latest version of balana

2013-07-31 Thread Scott Came
Hi Asela. I just did a checkout from svn URL [1], and it compiles ok, but I get a unit test failure: SEVERE: Error while reading expected response from file java.io.FileNotFoundException:

Re: [Dev] A tenant with same domain already exist returned when creating tenants on a clustered setup

2013-07-31 Thread Afkham Azeez
On Tue, Jul 30, 2013 at 9:24 AM, Nirodha Pramod niro...@wso2.com wrote: On Tue, Jul 30, 2013 at 9:20 AM, Nirmal Fernando nir...@wso2.com wrote: On Tue, Jul 30, 2013 at 9:11 AM, Nirodha Pramod niro...@wso2.com wrote: Hi Nirmal, On Tue, Jul 30, 2013 at 8:49 AM, Nirmal Fernando

Re: [Dev] [Commits] [Carbon-platform] svn commit r179226 - carbon/platform/trunk/features/synapse/org.apache.synapse.wso2.feature

2013-07-31 Thread Shameera Rathnayaka
Hi Miyuru, As i remember there was not wso2throttle-core osgi bundle to pack with feature. Thanks, Shameera On Wed, Jul 31, 2013 at 1:44 PM, Miyuru Wanninayaka miy...@wso2.com wrote: This was due to commons/throttling was not added to dependencies build I have added the to build On Tue,

Re: [Dev] Latest version of balana

2013-07-31 Thread Asela Pathberiya
Hi Scott, Thanks for reporting this We have fixed this issue Please svn up and try to build with test.. Thanks, Asela. On Wed, Jul 31, 2013 at 8:19 PM, Scott Came scott.c...@search.org wrote: Hi Asela. ** ** I just did a checkout from svn URL [1], and it compiles ok, but I

Re: [Dev] Latest version of balana

2013-07-31 Thread Scott Came
Yep, fixed, thanks! From: Asela Pathberiya [mailto:as...@wso2.com] Sent: Wednesday, July 31, 2013 9:21 AM To: Scott Came Cc: dev@wso2.org Subject: Re: [Dev] Latest version of balana Hi Scott, Thanks for reporting this We have fixed this issue Please svn up and try to build with test..

[Dev] Dynamically setting User name in UT

2013-07-31 Thread Amila De Silva
Hi, *Usecase*: User has a secured backend fronted by API Manager. The exposed API will be accessed using an Access Token. When a request hits the Gateway, APIM should find the username associated with the access token , use it for setting the user name in UserName Token, sign it and send it to

Re: [Dev] Dynamically setting User name in UT

2013-07-31 Thread Sagara Gunathunga
On Wed, Jul 31, 2013 at 10:33 PM, Amila De Silva ami...@wso2.com wrote: Hi, *Usecase*: User has a secured backend fronted by API Manager. The exposed API will be accessed using an Access Token. When a request hits the Gateway, APIM should find the username associated with the access token ,

Re: [Dev] java.nio.channels.ClosedChannelException thrown time to time on ELB console

2013-07-31 Thread Nirodha Pramod
Hi, Observed that this usually happens when working with the mgt console operations. Didn't occur much when doing service invocations. regards, Nirodha On Wed, Jul 31, 2013 at 11:38 AM, Evanthika Amarasiri evanth...@wso2.comwrote: Hi, We see a java.nio.channels.ClosedChannelException on

[Dev] Adding Soft Assertion Support to Test Framework

2013-07-31 Thread Dharshana Warusavitharana
Hi All, Currently The WSO2 Test Framework uses only Hard Asserts to verify the output of the test. But if we have the support to have soft asserts we can differentiate verifications and asserts within the test. Basically on soft assert/ verification what happens is it will log the failure but

[Dev] File called rolling.log in CARBON_HOME

2013-07-31 Thread Nirodha Pramod
Hi, There's a file called rolling.log in the HOME directory of every nodes in the cluster setup, with out any content. Any idea what is it?? And why it is in HOME directory itself? This cannot be seen in standalone packs. $ ls -la drwxr-xr-x 11 wso2 wso2 4096 Jul 30 16:39 . drwxrwxr-x 3 wso2