Re: [Dev] [Architecture][Vote] Release of WSO2 API Microgateway 3.2.0 RC2

2020-08-24 Thread Amila Maha Arachchi
Hi Menaka,

I think what you have explained should be the migration guide for 3.2.0. I
think we need to get it added to the docs. Even if there are zero steps to
be followed, that itself should be mentioned in the docs under migration
because otherwise the users will be in doubt.

Regards,
Amila.

On Mon, Aug 24, 2020 at 12:54 PM Menaka Jayawardena  wrote:

> Hi Nadee,
>
> By default, Microgateway does not require any migration process. You can
> build the mgw project using the Microgateway 3.2.0 toolkit and run with the
> Microgateway 3.2.0 runtime with the old configurations. (Ex. build 3.1.0
> project with 3.2.0 toolkit and run with 3.2.0 runtime with the 3.1.0
> configs)
> All most all of the configurations are backwards compatible and there are
> only few config level changes which will be updated in the docs. (related
> to authentication and subscription validation).
>
> Migration would only be required if you have any customizations written in
> ballerina.
>
> Thanks and Regards,
> Menaka
>
> On Mon, Aug 24, 2020 at 11:37 AM Nadee Poornima  wrote:
>
>> Hi Menaka,
>>
>> Analysed the Micro GW documents[1], however, didn't see any document
>> relating the migration process (upgrade process) from Micro GW 3.1.0 to
>> Micro GW 3.2.0.
>> Is there any specific process to migrate Micro GW product? How we can do
>> that?
>>
>> Appreciate your valuable thought here.
>>
>> [1]. https://mg.docs.wso2.com/en/latest/#
>>
>> Cheers,
>> Nadee
>>
>> On Sat, Aug 22, 2020 at 4:10 PM Menaka Jayawardena 
>> wrote:
>>
>>> Hi All,
>>>
>>> WSO2 Api Manager team is pleased to announce the second release
>>> candidate of WSO2 API Microgateway 3.2.0.
>>>
>>> The WSO2 API Microgateway is a lightweight, gateway distribution which
>>> can be used to expose single or multiple APIs.
>>>
>>> Please find the improvements and fixes related to this release in Fixed
>>> issues
>>> 
>>>
>>> Download the product from here
>>> 
>>>
>>> The Tag to be voted upon is
>>> https://github.com/wso2/product-microgateway/tree/v3.2.0-rc2
>>>
>>> *Documentation*: https://mg.docs.wso2.com/en/latest/
>>>
>>> Please download, test the product and vote.
>>>
>>> *[+] Stable* - Go ahead and release
>>>
>>> *[-] Broken* - Do not release (explain why)
>>>
>>>
>>> Best Regards,
>>> WSO2 API Manager Team
>>>
>>>
>>> --
>>> *Menaka Jayawardena*
>>> Senior Software Engineer *|* *WSO2* *Inc*.
>>> +94 71 350 5470 | men...@wso2.com
>>>
>>> 
>>>
>>>
>>
>> --
>> *Nadee Poornima*
>> Software Engineer | WSO2
>>
>> Email : nad...@wso2.com
>> Mobile : +94713441341
>> MyBlog: https://medium.com/nadees-tech-stories
>>
>> 
>>
>
>
> --
> *Menaka Jayawardena*
> Senior Software Engineer *|* *WSO2* *Inc*.
> +94 71 350 5470 | men...@wso2.com
>
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
*Amila Mahaarachchi*
VP of Engineering, Integration
WSO2, Inc.; http://wso2.com
Mobile: +94719371446


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


Re: [Dev] [DEV][API-M] Localization at tenant level

2017-05-09 Thread Amila Maha Arachchi
Yes, that would be ideal. But I dont know how feasible it is with the
current implementation.

On Tue, May 9, 2017 at 11:39 AM, Pubudu Priyashan <pubu...@wso2.com> wrote:

> @Amila: True. But that will be a common set of strings per language
> displayed for anyone who is using that particular language as default in
> the browser.
>
> It might be worth considering if we can support this at tenant level as we
> discussed offline if tenant A and tenant B are using the same language (eg:
> French) and A and B would prefer to have their own customised text even
> though it is the same language. WDYT?
>
> Cheers,
> Pubudu.
>
> Pubudu D.P
> Senior Software Engineer - QA Team | WSO2 inc.
> Mobile : +94775464547 <+94%2077%20546%204547>
>
> Linkedin: https://uk.linkedin.com/in/pubududp
> Medium: https://medium.com/@pubududp
>
>
> On Tue, May 9, 2017 at 11:22 AM, Amila Maha Arachchi <ami...@wso2.com>
> wrote:
>
>> I just learned that this doen't necessarily should be a tenant level
>> thing. We can define the locale strings and anyone who uses the locale will
>> see the string we have defined.
>>
>> On Mon, May 8, 2017 at 6:59 PM, Amila Maha Arachchi <ami...@wso2.com>
>> wrote:
>>
>>> This doesn't look like a tenant level thing. Once these instructions are
>>> followed, it will change the language for anyone who access the publisher
>>> or store.
>>>
>>> On Mon, May 8, 2017 at 3:14 PM, Pubudu Priyashan <pubu...@wso2.com>
>>> wrote:
>>>
>>>> Hey guys,
>>>>
>>>> I was going through the document at [1] on changing the language in
>>>> API-M Publisher/Store. I would like to know if this is possible to do at
>>>> tenant level? Or would that automatically pick up if we place the language
>>>> specific files in advised locations in the document and update the default
>>>> language of the browser?
>>>>
>>>> Please advise how I can go about this for a tenant domain.
>>>>
>>>> [1] https://docs.wso2.com/display/AM210/Adding+International
>>>> ization+and+Localization
>>>>
>>>> Cheers,
>>>> Pubudu D.P
>>>> Senior Software Engineer - QA Team | WSO2 inc.
>>>> Mobile : +94775464547 <+94%2077%20546%204547>
>>>>
>>>> Linkedin: https://uk.linkedin.com/in/pubududp
>>>> Medium: https://medium.com/@pubududp
>>>>
>>>>
>>>
>>>
>>> --
>>> *Amila Maharachchi*
>>> Software Architect
>>> WSO2, Inc.; http://wso2.com
>>>
>>> Blog: http://maharachchi.blogspot.com
>>> Mobile: +94719371446 <+94%2071%20937%201446>
>>>
>>>
>>
>>
>> --
>> *Amila Maharachchi*
>> Software Architect
>> WSO2, Inc.; http://wso2.com
>>
>> Blog: http://maharachchi.blogspot.com
>> Mobile: +94719371446 <+94%2071%20937%201446>
>>
>>
>


-- 
*Amila Maharachchi*
Software Architect
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][API-M] Localization at tenant level

2017-05-08 Thread Amila Maha Arachchi
I just learned that this doen't necessarily should be a tenant level thing.
We can define the locale strings and anyone who uses the locale will see
the string we have defined.

On Mon, May 8, 2017 at 6:59 PM, Amila Maha Arachchi <ami...@wso2.com> wrote:

> This doesn't look like a tenant level thing. Once these instructions are
> followed, it will change the language for anyone who access the publisher
> or store.
>
> On Mon, May 8, 2017 at 3:14 PM, Pubudu Priyashan <pubu...@wso2.com> wrote:
>
>> Hey guys,
>>
>> I was going through the document at [1] on changing the language in API-M
>> Publisher/Store. I would like to know if this is possible to do at tenant
>> level? Or would that automatically pick up if we place the language
>> specific files in advised locations in the document and update the default
>> language of the browser?
>>
>> Please advise how I can go about this for a tenant domain.
>>
>> [1] https://docs.wso2.com/display/AM210/Adding+International
>> ization+and+Localization
>>
>> Cheers,
>> Pubudu D.P
>> Senior Software Engineer - QA Team | WSO2 inc.
>> Mobile : +94775464547 <+94%2077%20546%204547>
>>
>> Linkedin: https://uk.linkedin.com/in/pubududp
>> Medium: https://medium.com/@pubududp
>>
>>
>
>
> --
> *Amila Maharachchi*
> Software Architect
> WSO2, Inc.; http://wso2.com
>
> Blog: http://maharachchi.blogspot.com
> Mobile: +94719371446 <+94%2071%20937%201446>
>
>


-- 
*Amila Maharachchi*
Software Architect
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][API-M] Localization at tenant level

2017-05-08 Thread Amila Maha Arachchi
This doesn't look like a tenant level thing. Once these instructions are
followed, it will change the language for anyone who access the publisher
or store.

On Mon, May 8, 2017 at 3:14 PM, Pubudu Priyashan  wrote:

> Hey guys,
>
> I was going through the document at [1] on changing the language in API-M
> Publisher/Store. I would like to know if this is possible to do at tenant
> level? Or would that automatically pick up if we place the language
> specific files in advised locations in the document and update the default
> language of the browser?
>
> Please advise how I can go about this for a tenant domain.
>
> [1] https://docs.wso2.com/display/AM210/Adding+Internationalization+and+
> Localization
>
> Cheers,
> Pubudu D.P
> Senior Software Engineer - QA Team | WSO2 inc.
> Mobile : +94775464547 <+94%2077%20546%204547>
>
> Linkedin: https://uk.linkedin.com/in/pubududp
> Medium: https://medium.com/@pubududp
>
>


-- 
*Amila Maharachchi*
Software Architect
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Sithumini Senevirathne

2016-08-25 Thread Amila Maha Arachchi
Hi all,

Its my pleasure to welcome Sithumini Senevirathne as a WSO2 Committer.
Sithumini is a member of WSO2 Cloud Dev team and has been contributing to
the team in development, integration and  deployment work. In recognition
of her contribution, she has been voted as a WSO2 Committer.

Sithumini, welcome aboard and keep up the good work..

Regards,
Amila.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppM] SAML response signature validation in tenants

2016-08-18 Thread Amila Maha Arachchi
Hi Rushmin,

Please see my answer inline.

On Thu, Aug 18, 2016 at 4:43 PM, Rushmin Fernando  wrote:

>
> In current App Manager the service providers of tenants are getting
> created in the super tenant space.
>
> We are in the process of creating the service providers in the relevant
> tenants.
>
> In the app manager gateway, we use SAML SSO to authenticate the users, and
> the aforementioned service providers are used.
>
> When it comes to validating the the SAML response signature, I can see
> that we can re-use
> *org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil::getX509CredentialImplForTenant()*
>
> As per the code, it uses the tenant key store to get the certificates. And
> we can get the certificate by using the tenant name as the alias
>
> @IS team, do you see any issues with re-using this code in our gateway ?
>
> @Amila, in a cloud story do we need to configure the key aliases for each
> tenant or can we live with the default alias (which is the tenant domain
> name) ?
>

Default alias is fine. Since the tenant keystores are only used for
intetnal purposes similar to this one, there wont be scenarios where
tenants changing this.

>
>
>
> --
> *Best Regards*
>
> *Rushmin Fernando*
> *Technical Lead*
>
> WSO2 Inc.  - Lean . Enterprise . Middleware
>
> mobile : +94772891266
>
>
>


-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Possibility of wrong super tenant id used in api manager when publishing data to DAS

2016-06-23 Thread Amila Maha Arachchi
APIM Team,

I see following logs in DAS receiver. I have only the API gateway
publishing data to DAS.

TID: [-1234] [] [2016-06-22 23:46:11,295]  INFO
{org.wso2.carbon.databridge.core.DataBridge} -  user bamuser connected
{org.wso2.carbon.databridge.core.DataBridge}

TID: [-1] [] [2016-06-22 23:46:11,313]  INFO
{org.wso2.carbon.databridge.core.DataBridge} -  user bamuser connected
{org.wso2.carbon.databridge.core.DataBridge}

TID: [-1234] [] [2016-06-22 23:46:11,383]  INFO
{org.wso2.carbon.databridge.core.DataBridge} -  user bamuser connected
{org.wso2.carbon.databridge.core.DataBridge}
Above highlighted log section hints me that there can be some code which
sets a wrong ST ID. Better to have a look.
-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Documentation] [APIM] Where is "API Usage By User"

2016-05-30 Thread Amila Maha Arachchi
Thanks for the quick fix Tania.

On Mon, May 30, 2016 at 12:20 AM, Tania Mahanama <ta...@wso2.com> wrote:

> The info was split between two pages and had discrepancies. I've organized
> it better now. Thanks for reporting!
>
> On Sun, May 29, 2016 at 8:09 PM, Amila Maha Arachchi <ami...@wso2.com>
> wrote:
>
>> Doc and APIM Team,
>>
>> I can see a screenshot in [1] for "API Usage By User". But, AFAIU, it is
>> not there anymore in the API Publisher's statistics menu.
>>
>> I have seen users getting confused over this [2].
>>
>> Please fix the docs.
>>
>> [1] https://docs.wso2.com/display/AM1100/Viewing+API+Statistics
>> [2]
>> http://stackoverflow.com/questions/37405753/how-to-get-anatytics-per-user-per-api-version-in-wso2
>>
>> Regards,
>> Amila.
>> --
>> *Amila Maharachchi*
>> Senior Technical Lead
>> WSO2, Inc.; http://wso2.com
>>
>> Blog: http://maharachchi.blogspot.com
>> Mobile: +94719371446
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "WSO2 Documentation Group" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to documentation+unsubscr...@wso2.com.
>> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>>
>
>
>
> --
> Tania Mahanama
> Senior Technical Writer
>
> Contact:
> Mob: +94 077 5129270
>



-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Documentation] [APIM] Where is "API Usage By User"

2016-05-29 Thread Amila Maha Arachchi
Doc and APIM Team,

I can see a screenshot in [1] for "API Usage By User". But, AFAIU, it is
not there anymore in the API Publisher's statistics menu.

I have seen users getting confused over this [2].

Please fix the docs.

[1] https://docs.wso2.com/display/AM1100/Viewing+API+Statistics
[2]
http://stackoverflow.com/questions/37405753/how-to-get-anatytics-per-user-per-api-version-in-wso2

Regards,
Amila.
-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Documentation] [DAS] This doc needs improvement

2016-05-28 Thread Amila Maha Arachchi
Doc and DAS teams,

Please go through the doc [1] and see whether a user can make use of it.
Doc is about analyzing real time stats using DAS. But the instructions ends
after publishing some sample stats to DAS and showing a useless log. Where
is the real time analytics part here???

I am totally lost. So, can you imagine the situation of a normal user?

[1]
https://docs.wso2.com/display/DAS301/Analyzing+Realtime+Service+Statistics

Regards,
Amila.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Tenant-aware logging for ESB

2016-03-28 Thread Amila Maha Arachchi
Hi Manjula,

Due to the time taken by an ESB docker image to start and the cost of
keeping them running, it was decided to use a shared multi-tenanted ESB
instance for ESB-as-a-Service for the beginning.

On Mon, Mar 28, 2016 at 12:36 PM, Manjula Rathnayake 
wrote:

> Hi all,
>
> IMO, when we run ESB for multi-tenant scenarios, we will have containers
> per each tenant. So we don't need to have tenant specific filtering in
> multi tenant scenarios.
>
> If we consider container approach for car files;
> we currently allow single artifact deployment for App Server like products
> where you upload only a single war file and it is bundled to App server and
> image is created.
> but for ESB, we promote having multiple car files where endpoints are
> packaged into one car and business logic is packaged into another car. So
> having log filtering based on car name would be useful even with container
> model.
>
> thank you.
>
>
> On Mon, Mar 28, 2016 at 10:06 AM, Kasun Indrasiri  wrote:
>
>> Hi Nadeeshan,
>>
>> Can you please do the needful to verify this for ESB 5. 0 and make sure
>> we cover all the iPaaS requirements for tenant/cApp specific log filtering.
>>
>>
>> On Fri, Mar 25, 2016 at 5:47 PM, Nadeeshaan Gunasinghe <
>> nadeesh...@wso2.com> wrote:
>>
>>> Hi Kasun,
>>>
>>> +1 for including the Tenant Specific filtering enabled and we have
>>> already included this feature for logging the car file name for the
>>> artifacts deployed through car file.
>>>
>>> Thanks,
>>>
>>> *Nadeeshaan Gunasinghe*
>>> Software Engineer, WSO2 Inc. http://wso2.com
>>> +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe
>>> <#m_-6937215353571362766_m_52855956923528221_m_257616742262875097_>
>>> 
>>>   
>>> 
>>> Get a signature like this: Click here!
>>> 
>>>
>>> On Fri, Mar 25, 2016 at 1:22 PM, Kasun Indrasiri  wrote:
>>>
 Hi,

 AFAIR, Nadeeshan has implemented this features (for ESB 5). We want to
 make sure that what we have at the moment is sufficient to filter out the
 tenant specific logs (and even cApp specific logs).

 @Nadeeshan/Manjula wdyt?

 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/

>>>
>>>
>>
>>
>> --
>> Kasun Indrasiri
>> Software Architect
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> cell: +94 77 556 5206
>> Blog : http://kasunpanorama.blogspot.com/
>>
>
>
>
> --
> Manjula Rathnayaka
> Associate Technical Lead
> WSO2, Inc.
> Mobile:+94 77 743 1987
>



-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM][Automation] API Manger Integration tests automation with Heartbeat System

2016-02-23 Thread Amila Maha Arachchi
Would be good to know how :)

On Wed, Feb 24, 2016 at 10:59 AM, Erandi Ganepola <era...@wso2.com> wrote:

> Yes.I was able to resolve it.
>
> Thanks
> Erandi
>
> Erandi Ganepola
> Software Engineering Intern
> +94710695692
>
>
> On Wed, Feb 24, 2016 at 10:32 AM, Amila Maha Arachchi <ami...@wso2.com>
> wrote:
>
>> Was this resolved?
>>
>> On Mon, Feb 22, 2016 at 8:18 PM, Erandi Ganepola <era...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I'm currently working on automating the testng integration tests with
>>> the heartbeat monitoring system. Up to now i have figured out that the
>>> integration tests are run through a separate profile in pom.xml [1].
>>>
>>> When I add the above mentioned test module
>>>
>>>- groupId:org.wso2.am
>>>- artifactId:org.wso2.carbon.am.integration.backend.test
>>>
>>> as a dependency in heartbeat system the class names are not resolved.
>>> (The test classes are not imported to the project)
>>>
>>> Right now, I want to get the *test classes[2]* (as a dependency) so
>>> that I can run them through the heartbeat system. Can any of you suggest
>>> how should I solve this?
>>>
>>> [1]
>>> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/pom.xml
>>> <https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/pom.xml�>
>>> [2]
>>> https://github.com/wso2/product-apim/tree/master/modules/integration/tests-integration/tests-backend
>>> <https://github.com/wso2/product-apim/tree/master/modules/integration/tests-integration/tests-backend�>
>>>
>>> Thanks in Advance!
>>>
>>> Erandi Ganepola
>>> Software Engineering Intern
>>> +94710695692
>>>
>>>
>>
>>
>> --
>> *Amila Maharachchi*
>> Senior Technical Lead
>> WSO2, Inc.; http://wso2.com
>>
>> Blog: http://maharachchi.blogspot.com
>> Mobile: +94719371446
>>
>>
>


-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM][Automation] API Manger Integration tests automation with Heartbeat System

2016-02-23 Thread Amila Maha Arachchi
Was this resolved?

On Mon, Feb 22, 2016 at 8:18 PM, Erandi Ganepola  wrote:

> Hi All,
>
> I'm currently working on automating the testng integration tests with the
> heartbeat monitoring system. Up to now i have figured out that the
> integration tests are run through a separate profile in pom.xml [1].
>
> When I add the above mentioned test module
>
>- groupId:org.wso2.am
>- artifactId:org.wso2.carbon.am.integration.backend.test
>
> as a dependency in heartbeat system the class names are not resolved. (The
> test classes are not imported to the project)
>
> Right now, I want to get the *test classes[2]* (as a dependency) so that
> I can run them through the heartbeat system. Can any of you suggest how
> should I solve this?
>
> [1]
> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/pom.xml
> 
> [2]
> https://github.com/wso2/product-apim/tree/master/modules/integration/tests-integration/tests-backend
> 
>
> Thanks in Advance!
>
> Erandi Ganepola
> Software Engineering Intern
> +94710695692
>
>


-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Malith Munasinghe

2016-02-02 Thread Amila Maha Arachchi
Hi all,

Its my pleasure to welcome Malith Munasinghe as a WSO2 Committer. Malith is
a member of WSO2 Cloud Dev team and has been contributing to the team in
development, integration, deployment and alerting work. In recognition of
his contribution, he has been voted as a WSO2 Committer.

Malith, welcome aboard and keep up the good work..

Regards,
Amila.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-22 Thread Amila Maha Arachchi
Cool.

On Fri, Jan 22, 2016 at 3:10 PM, Nipuna Prashan <pras...@wso2.com> wrote:

> Hi Amila,
>
> I tried in a clustered environment with two nodes, but
> ClusteringAgent#isCoordinator method didn't work in 4.2.0. I found a
> patch for this. Now it's working.
>
> Thanks all.
>
> On Fri, Jan 22, 2016 at 10:52 AM, Ramith Jayasinghe <ram...@wso2.com>
> wrote:
> > MB also elects a leader/coordinator for the cluster (based on hezelcast.)
> >
> > On Fri, Jan 22, 2016 at 10:48 AM, Amila Maha Arachchi <ami...@wso2.com>
> > wrote:
> >>
> >> Nipun,
> >>
> >> May be you need to try it in a clustered environment or at least
> >> clustering enabled. I assume you tried this with a single server.
> >>
> >> On Wed, Jan 20, 2016 at 9:42 AM, Nipuna Prashan <pras...@wso2.com>
> wrote:
> >>>
> >>> Hi Krishanthan,
> >>>
> >>> Cloud team has developed three osgi components to delete tenants, but
> >>> tenant deletion has to be done manually by adding components to
> >>> dropping folder when we want to start tenant deletion. Now, my project
> >>> is to automate this process by making one osgi component for every
> >>> server and the component will be in the server every time.
> >>>
> >>> AxisConfiguration serverAxisConfig =
> >>>
> >>>
> ServiceHolder.getConfigurationContextService().getServerConfigContext().getAxisConfiguration();
> >>> ClusteringAgent agent = serverAxisConfig.getClusteringAgent();
> >>> boolean isCoordinator = agent.isCoordinator();
> >>>
> >>> I tried this, but this always returns false.
> >>>
> >>> On Tue, Jan 19, 2016 at 9:08 PM, Kishanthan Thangarajah
> >>> <kishant...@wso2.com> wrote:
> >>> > IIRC, we already have a way (tool) to delete tenants in a cluster
> which
> >>> > is
> >>> > used by cloud team. So what's the requirement for this component
> here?
> >>> >
> >>> > With hazelcast based clustering, we assume that the first (oldest)
> >>> > member as
> >>> > the coordinator for the cluster. We set this member as the
> coordinator
> >>> > and
> >>> > you can check whether the current node is the coordinator using
> >>> > ClusteringAgent#isCoordinator method.
> >>> >
> >>> > On Mon, Jan 18, 2016 at 6:24 PM, Nipuna Prashan <pras...@wso2.com>
> >>> > wrote:
> >>> >>
> >>> >> Hi all,
> >>> >>
> >>> >> I am building an osgi component for tenant deletion task. This will
> be
> >>> >> deployed in every server (APIM, AS, AF, BAM, IS..). I have a
> >>> >> requirement to
> >>> >> do this task in one node in the cluster while there is no single
> point
> >>> >> of
> >>> >> failure. Only one node should start deletion while other nodes
> waiting
> >>> >> on
> >>> >> the same server.
> >>> >> Is there a way to find the leader node/ contributor in a cluster?
> Any
> >>> >> help
> >>> >> would be appreciated.
> >>> >>
> >>> >>
> >>> >>
> >>> >> --
> >>> >> Nipuna Prashan
> >>> >> Software Engineering Intern
> >>> >> +94711852792
> >>> >
> >>> >
> >>> >
> >>> >
> >>> > --
> >>> > 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
> >>>
> >>>
> >>>
> >>> --
> >>> Nipuna Prashan
> >>> Software Engineering Intern
> >>> +94711852792
> >>
> >>
> >>
> >>
> >> --
> >> Amila Maharachchi
> >> Senior Technical Lead
> >> WSO2, Inc.; http://wso2.com
> >>
> >> Blog: http://maharachchi.blogspot.com
> >> Mobile: +94719371446
> >>
> >>
> >> ___
> >> Dev mailing list
> >> Dev@wso2.org
> >> http://wso2.org/cgi-bin/mailman/listinfo/dev
> >>
> >
> >
> >
> > --
> > Ramith Jayasinghe
> > Technical Lead
> > WSO2 Inc., http://wso2.com
> > lean.enterprise.middleware
> >
> > E: ram...@wso2.com
> > P: +94 777542851
> >
>
>
>
> --
> Nipuna Prashan
> Software Engineering Intern
> +94711852792
>



-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-21 Thread Amila Maha Arachchi
Nipun,

May be you need to try it in a clustered environment or at least clustering
enabled. I assume you tried this with a single server.

On Wed, Jan 20, 2016 at 9:42 AM, Nipuna Prashan  wrote:

> Hi Krishanthan,
>
> Cloud team has developed three osgi components to delete tenants, but
> tenant deletion has to be done manually by adding components to
> dropping folder when we want to start tenant deletion. Now, my project
> is to automate this process by making one osgi component for every
> server and the component will be in the server every time.
>
> AxisConfiguration serverAxisConfig =
>
> ServiceHolder.getConfigurationContextService().getServerConfigContext().getAxisConfiguration();
> ClusteringAgent agent = serverAxisConfig.getClusteringAgent();
> boolean isCoordinator = agent.isCoordinator();
>
> I tried this, but this always returns false.
>
> On Tue, Jan 19, 2016 at 9:08 PM, Kishanthan Thangarajah
>  wrote:
> > IIRC, we already have a way (tool) to delete tenants in a cluster which
> is
> > used by cloud team. So what's the requirement for this component here?
> >
> > With hazelcast based clustering, we assume that the first (oldest)
> member as
> > the coordinator for the cluster. We set this member as the coordinator
> and
> > you can check whether the current node is the coordinator using
> > ClusteringAgent#isCoordinator method.
> >
> > On Mon, Jan 18, 2016 at 6:24 PM, Nipuna Prashan 
> wrote:
> >>
> >> Hi all,
> >>
> >> I am building an osgi component for tenant deletion task. This will be
> >> deployed in every server (APIM, AS, AF, BAM, IS..). I have a
> requirement to
> >> do this task in one node in the cluster while there is no single point
> of
> >> failure. Only one node should start deletion while other nodes waiting
> on
> >> the same server.
> >> Is there a way to find the leader node/ contributor in a cluster? Any
> help
> >> would be appreciated.
> >>
> >>
> >>
> >> --
> >> Nipuna Prashan
> >> Software Engineering Intern
> >> +94711852792
> >
> >
> >
> >
> > --
> > 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
>
>
>
> --
> Nipuna Prashan
> Software Engineering Intern
> +94711852792
>



-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [ESB] Deprecated features in ESB 4.10

2015-12-17 Thread Amila Maha Arachchi
Have you seen *Enqueue* and *RMSequence* mediators being used when
implementing mediation logics?

On Wed, Dec 9, 2015 at 12:11 PM, Kasun Indrasiri  wrote:

> Shall we deprecate following mediators in 4.10 release.
>
> *- Callout mediator :*
>  All the callout functionality is supported with 'call' mediator with
> blocking=true. Having two similar mediators will be create a bit of a
> confusion.
>
> *- DBReport/DBLookup mediator*
> These mediators offer very limited functionality and we always recommend
> to integrate with databases with the use of DSS (using a separate DSS or
> using DSS features inside ESB)
>
> *- Bean, POJOCommand, Spring* : Rarely used mediators and no active
> development happens on these.
> *- Router* : Same as filter mediator, so no use of having this.
> *- In, Out * : Rarely used and often not required with the new
> call/respond mediator approach.
>
> Any comments  on these or any other features that we should deprecate from
> 4.10 release?
>
> Thanks,
> Kasun.
>
> --
> Kasun Indrasiri
> Software Architect
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> cell: +94 77 556 5206
> Blog : http://kasunpanorama.blogspot.com/
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Chalitha Kulathunga

2015-12-06 Thread Amila Maha Arachchi
Hi all,

Its my pleasure to welcome Chalitha Kulathunga as a WSO2 Committer.
Chalitha is a member of WSO2 Cloud Dev team and has been contributing to
the team in development, integration and deployment work. In recognition of
his contribution, he has been voted as a WSO2 Committer.

Chalitha, welcome aboard and keep up the good work..

Regards,
Amila.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Updating data-publisher agents in carbon-multitenancy

2015-11-19 Thread Amila Maha Arachchi
Are org.wso2.carbon.usage.agent and org.wso2.carbon.tenant.usage.agent the
same?

On Thu, Nov 19, 2015 at 3:26 PM, Rukshan Premathunga <ruks...@wso2.com>
wrote:

> Hi Nipuni,
>
> APIM Still use the carbon-multitenancy like below.
>
> 
> org.wso2.carbon.multitenancy
> org.wso2.carbon.tenant.usage.agent
> 
>
> can you lokking to this?
>
>
> Thanks and Regards.
>
> On Thu, Nov 19, 2015 at 2:39 PM, Nipuni Perera <nip...@wso2.com> wrote:
>
>> Hi Amila,
>>
>> Thanks for the clarification. We are testing if products can use
>> carbon-commons 4.5.0, without rewriting data publishers in
>> carbon-deployment and carbon-multitenancy (as we don't have a requirement
>> atm). Hence we will not updating usage.agent bundle in carbon-multitenancy
>> as mentioned.
>> We will consider removing the usage.agent bundle in future releases if
>> it is not used anymore.
>>
>> Thanks,
>> Nipuni
>>
>> On Wed, Nov 18, 2015 at 7:25 PM, Amila Maha Arachchi <ami...@wso2.com>
>> wrote:
>>
>>> Hi Nipuni,
>>>
>>> Those methods in usage.agent are not used now (not even the usage.agent
>>> bundle). Ideally, we should get rid of the usage.agent bundle. These were
>>> used in the days of StratosLive.
>>>
>>> Regards,
>>> Amila.
>>>
>>> On Tue, Nov 17, 2015 at 7:36 PM, Nipuni Perera <nip...@wso2.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am trying to update carbon-deployment with new data publishers
>>>> introduced with carbon-commons 4.5.0 and carbon-analytics-common
>>>> 5.0.6. I have rewritten the data publishers in carbon-deployment and need
>>>> to test the changes with a AS pack, publishing webapp statistics.
>>>> While building product-as I could see that carbon-multitenancy need to
>>>> be updated with the new data publishers as well. I am working on updating
>>>> carbon-multitenancy to use carbon-commons 4.5.0 and carbon-analytics-common
>>>> 5.0.6. I am updating methods in : org.wso2.carbon.usage.agent.util.
>>>> PublisherUtils.
>>>>
>>>> Will updating carbon-multitenancy a productive effort? Are we still
>>>> using this utility methods to publish usage statistics?
>>>>
>>>> Thanks,
>>>> Nipuni
>>>>
>>>> --
>>>> Nipuni Perera
>>>> Software Engineer; WSO2 Inc.; http://wso2.com
>>>> Email: nip...@wso2.com
>>>> Git hub profile: https://github.com/nipuni
>>>> Blog : http://nipunipererablog.blogspot.com/
>>>> Mobile: +94 (71) 5626680
>>>> <http://wso2.com>
>>>>
>>>>
>>>
>>>
>>> --
>>> *Amila Maharachchi*
>>> Senior Technical Lead
>>> WSO2, Inc.; http://wso2.com
>>>
>>> Blog: http://maharachchi.blogspot.com
>>> Mobile: +94719371446
>>>
>>>
>>
>>
>> --
>> Nipuni Perera
>> Software Engineer; WSO2 Inc.; http://wso2.com
>> Email: nip...@wso2.com
>> Git hub profile: https://github.com/nipuni
>> Blog : http://nipunipererablog.blogspot.com/
>> Mobile: +94 (71) 5626680
>> <http://wso2.com>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
>



-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Updating data-publisher agents in carbon-multitenancy

2015-11-19 Thread Amila Maha Arachchi
Please check with Sanjeewa on whether APIM is using the old usage.agent
component or is this a new one. I was under the impression that old agent
is not used anywhere anymore.

On Thu, Nov 19, 2015 at 4:58 PM, Rukshan Premathunga <ruks...@wso2.com>
wrote:

> Hi Amila,
>
> I think yes. I think both contain same package names.
>
> Thanks and Regards.
>
> On Thu, Nov 19, 2015 at 4:55 PM, Amila Maha Arachchi <ami...@wso2.com>
> wrote:
>
>> Are org.wso2.carbon.usage.agent and org.wso2.carbon.tenant.usage.agent
>> the same?
>>
>> On Thu, Nov 19, 2015 at 3:26 PM, Rukshan Premathunga <ruks...@wso2.com>
>> wrote:
>>
>>> Hi Nipuni,
>>>
>>> APIM Still use the carbon-multitenancy like below.
>>>
>>> 
>>> org.wso2.carbon.multitenancy
>>> org.wso2.carbon.tenant.usage.agent
>>> 
>>>
>>> can you lokking to this?
>>>
>>>
>>> Thanks and Regards.
>>>
>>> On Thu, Nov 19, 2015 at 2:39 PM, Nipuni Perera <nip...@wso2.com> wrote:
>>>
>>>> Hi Amila,
>>>>
>>>> Thanks for the clarification. We are testing if products can use
>>>> carbon-commons 4.5.0, without rewriting data publishers in
>>>> carbon-deployment and carbon-multitenancy (as we don't have a requirement
>>>> atm). Hence we will not updating usage.agent bundle in carbon-multitenancy
>>>> as mentioned.
>>>> We will consider removing the usage.agent bundle in future releases if
>>>> it is not used anymore.
>>>>
>>>> Thanks,
>>>> Nipuni
>>>>
>>>> On Wed, Nov 18, 2015 at 7:25 PM, Amila Maha Arachchi <ami...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Nipuni,
>>>>>
>>>>> Those methods in usage.agent are not used now (not even the
>>>>> usage.agent bundle). Ideally, we should get rid of the usage.agent bundle.
>>>>> These were used in the days of StratosLive.
>>>>>
>>>>> Regards,
>>>>> Amila.
>>>>>
>>>>> On Tue, Nov 17, 2015 at 7:36 PM, Nipuni Perera <nip...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I am trying to update carbon-deployment with new data publishers
>>>>>> introduced with carbon-commons 4.5.0 and carbon-analytics-common
>>>>>> 5.0.6. I have rewritten the data publishers in carbon-deployment and need
>>>>>> to test the changes with a AS pack, publishing webapp statistics.
>>>>>> While building product-as I could see that carbon-multitenancy need
>>>>>> to be updated with the new data publishers as well. I am working on
>>>>>> updating carbon-multitenancy to use carbon-commons 4.5.0
>>>>>> and carbon-analytics-common 5.0.6. I am updating methods in :
>>>>>> org.wso2.carbon.usage.agent.util.PublisherUtils.
>>>>>>
>>>>>> Will updating carbon-multitenancy a productive effort? Are we still
>>>>>> using this utility methods to publish usage statistics?
>>>>>>
>>>>>> Thanks,
>>>>>> Nipuni
>>>>>>
>>>>>> --
>>>>>> Nipuni Perera
>>>>>> Software Engineer; WSO2 Inc.; http://wso2.com
>>>>>> Email: nip...@wso2.com
>>>>>> Git hub profile: https://github.com/nipuni
>>>>>> Blog : http://nipunipererablog.blogspot.com/
>>>>>> Mobile: +94 (71) 5626680
>>>>>> <http://wso2.com>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Amila Maharachchi*
>>>>> Senior Technical Lead
>>>>> WSO2, Inc.; http://wso2.com
>>>>>
>>>>> Blog: http://maharachchi.blogspot.com
>>>>> Mobile: +94719371446
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Nipuni Perera
>>>> Software Engineer; WSO2 Inc.; http://wso2.com
>>>> Email: nip...@wso2.com
>>>> Git hub profile: https://github.com/nipuni
>>>> Blog : http://nipunipererablog.blogspot.com/
>>>> Mobile: +94 (71) 5626680
>>>> <http://wso2.com>
>>>>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Rukshan Chathuranga.
>>> Software Engineer.
>>> WSO2, Inc.
>>>
>>
>>
>>
>> --
>> *Amila Maharachchi*
>> Senior Technical Lead
>> WSO2, Inc.; http://wso2.com
>>
>> Blog: http://maharachchi.blogspot.com
>> Mobile: +94719371446
>>
>>
>
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
>



-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Updating data-publisher agents in carbon-multitenancy

2015-11-18 Thread Amila Maha Arachchi
Hi Nipuni,

Those methods in usage.agent are not used now (not even the usage.agent
bundle). Ideally, we should get rid of the usage.agent bundle. These were
used in the days of StratosLive.

Regards,
Amila.

On Tue, Nov 17, 2015 at 7:36 PM, Nipuni Perera  wrote:

> Hi,
>
> I am trying to update carbon-deployment with new data publishers
> introduced with carbon-commons 4.5.0 and carbon-analytics-common 5.0.6. I
> have rewritten the data publishers in carbon-deployment and need to test
> the changes with a AS pack, publishing webapp statistics.
> While building product-as I could see that carbon-multitenancy need to be
> updated with the new data publishers as well. I am working on updating
> carbon-multitenancy to use carbon-commons 4.5.0 and carbon-analytics-common
> 5.0.6. I am updating methods in : org.wso2.carbon.usage.agent.util.
> PublisherUtils.
>
> Will updating carbon-multitenancy a productive effort? Are we still using
> this utility methods to publish usage statistics?
>
> Thanks,
> Nipuni
>
> --
> Nipuni Perera
> Software Engineer; WSO2 Inc.; http://wso2.com
> Email: nip...@wso2.com
> Git hub profile: https://github.com/nipuni
> Blog : http://nipunipererablog.blogspot.com/
> Mobile: +94 (71) 5626680
> 
>
>


-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Can a network outage between two cluster members cause an OOM situation

2015-10-26 Thread Amila Maha Arachchi
Hi Azeez,

If two members in a cluster cannot communicate with each other for few mins
(lets say 5 mins), can that end up with the members going to an OOM
situation.

Recently we experience an OOM situation a api-gateway cluster (not under a
heavy load). When checking the logs, we found the following log being
printed many times around the time of incidents.

TID: [0] [AM] [2015-10-23 21:46:51,424] ERROR
{org.wso2.carbon.caching.impl.CacheCleanupTask} -  Error occurred while
running CacheCleanupTask {org.wso2.carbon.caching.impl.CacheCleanupTask}

com.hazelcast.core.OperationTimeoutException: No response for 12 ms.
Aborting invocation! Invocation{ serviceName='hz:impl:mapService',
op=SetOperation{$cache.$domain[clouddemo]registryCacheManager#$_timestamp_$REG_PATH_CACHE},
partitionId=30, replicaIndex=0, tryCount=250, tryPauseMillis=500,
invokeCount=1, callTimeout=6, target=Address[10.0.11.12]:4000,
backupsExpected=0, backupsCompleted=0} No response has been received!
backups-expected:0 backups-completed: 0

at
com.hazelcast.spi.impl.operationservice.impl.Invocation.newOperationTimeoutException(Invocation.java:491)

at
com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.waitForResponse(InvocationFuture.java:277)

at
com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFuture.java:224)

at
com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFuture.java:204)

at
com.hazelcast.map.impl.proxy.MapProxySupport.invokeOperation(MapProxySupport.java:435)

at
com.hazelcast.map.impl.proxy.MapProxySupport.setInternal(MapProxySupport.java:487)

at
com.hazelcast.map.impl.proxy.MapProxyImpl.set(MapProxyImpl.java:171)

at
com.hazelcast.map.impl.proxy.MapProxyImpl.set(MapProxyImpl.java:161)

at
org.wso2.carbon.core.clustering.hazelcast.HazelcastDistributedMapProvider$DistMap.put(HazelcastDistributedMapProvider.java:149)

at
org.wso2.carbon.caching.impl.CacheImpl.runCacheExpiry(CacheImpl.java:939)

at
org.wso2.carbon.caching.impl.CacheCleanupTask.run(CacheCleanupTask.java:61)

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

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

at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)

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

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:744)

at -- End remote and begin local stack-trace --.(Unknown
Source)

at
com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolveApplicationResponse(InvocationFuture.java:384)

at
com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolveApplicationResponseOrThrowException(InvocationFuture.java:334)

at
com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFuture.java:225)

at
com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.get(InvocationFuture.java:204)

at
com.hazelcast.map.impl.proxy.MapProxySupport.invokeOperation(MapProxySupport.java:435)

at
com.hazelcast.map.impl.proxy.MapProxySupport.setInternal(MapProxySupport.java:487)

at
com.hazelcast.map.impl.proxy.MapProxyImpl.set(MapProxyImpl.java:171)

at
com.hazelcast.map.impl.proxy.MapProxyImpl.set(MapProxyImpl.java:161)

at
org.wso2.carbon.core.clustering.hazelcast.HazelcastDistributedMapProvider$DistMap.put(HazelcastDistributedMapProvider.java:149)

at
org.wso2.carbon.caching.impl.CacheImpl.runCacheExpiry(CacheImpl.java:939)

at
org.wso2.carbon.caching.impl.CacheCleanupTask.run(CacheCleanupTask.java:61)

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

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

at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)

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

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:744)

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Another log which needs to be descriptive

2015-10-26 Thread Amila Maha Arachchi
Hi APIM Team,

This is getting printed in apim gateway.

TID: [0] [AM] [2015-10-23 22:37:34,946]  INFO
{org.wso2.carbon.throttle.core.RoleBasedAccessRateController} -  You cannot
access this service since you have exceeded the allocated quota.
{org.wso2.carbon.throttle.core.RoleBasedAccessRateController}

This is useless unless we know who is the tenant and what is the API. And,
this is something which should be returned to the client, not something
which should get printed in the log IMO.

Regards,

Amila.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Shenavi de Mel

2015-10-20 Thread Amila Maha Arachchi
Hi all,

Its my pleasure to welcome Shenavi de Mel as a WSO2 Committer. Shenavi is a
member of WSO2 Cloud team and has been contributing to the team in
development, integration and deployment work. In recognition of her
contribution, she has been voted as a WSO2 Committer.

Shenavi, welcome aboard and keep up the good work..

Regards,
Amila.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Can I access axis2MessageContext within the script mediator?

2015-10-12 Thread Amila Maha Arachchi
Hi,

I want to set a property in axis2MessageContext from the script mediator in
ESB or API Manager. According to the doc [1], script mediator has not
exposed the axis2MessageContext to the script mediator.

$Subject?

My original requirement is to set a response code for a resource of a
prototyped api on api manager. There is a property named HTTP_SC which
needs to be set in axis2MessageContext.

[1] https://docs.wso2.com/display/ESB480/Script+Mediator

Regards,
Amila.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can I access axis2MessageContext within the script mediator?

2015-10-12 Thread Amila Maha Arachchi
Thanks for the reply Kevin.

In my case, I want the axis2MessageContext to be available for the script
mediator because script mediator is the one used when creating prototype
APIs in API manager. As you have suggested, I can use the property
mediator. But, it has to be done after publishing the api (i.e. I have to
edit the api xml). Problem with this is, when we republish the api, these
changes gets vanished and I have to redo them. And, in my case, user does
not have access to the file system to edit the api xml. Thats why I was
trying to do this via the script mediator and api publisher UI.

Regards,
Amila.

On Mon, Oct 12, 2015 at 6:02 PM, Kevin Ratnasekera <ke...@wso2.com> wrote:

> Hi Amila,
> I have gone through the script mediator code/config, I dont think we might
> able to access axis2MessageContext other than the SynapseMessageContext.
> Can't we use either Property mediator or class mediator in this specific
> use case?
> Regards
> Kevin
>
> On Mon, Oct 12, 2015 at 2:23 PM, Amila Maha Arachchi <ami...@wso2.com>
> wrote:
>
>> Hi,
>>
>> I want to set a property in axis2MessageContext from the script mediator
>> in ESB or API Manager. According to the doc [1], script mediator has not
>> exposed the axis2MessageContext to the script mediator.
>>
>> $Subject?
>>
>> My original requirement is to set a response code for a resource of a
>> prototyped api on api manager. There is a property named HTTP_SC which
>> needs to be set in axis2MessageContext.
>>
>> [1] https://docs.wso2.com/display/ESB480/Script+Mediator
>>
>> Regards,
>> Amila.
>>
>> --
>> *Amila Maharachchi*
>> Senior Technical Lead
>> WSO2, Inc.; http://wso2.com
>>
>> Blog: http://maharachchi.blogspot.com
>> Mobile: +94719371446
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Is it possible to ship any jar files needed by Jaggery apps with the app?

2015-10-05 Thread Amila Maha Arachchi
Hi all,

$Subject? There is a jaggery app which invokes some java code which is in a
jar. So, without copying the jar to the application server's dropins or lib
folder, is there a way to ship it with the app?

Regards,
Amila.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Is it possible to ship any jar files needed by Jaggery apps with the app?

2015-10-05 Thread Amila Maha Arachchi
Thanks Tanya. I didn't know about this.

Hi Lasantha,

According to Tanya, there seems to be a solution to pack jar files inside a
jaggery app. Can you try that approach please.

On Mon, Oct 5, 2015 at 3:32 PM, Tanya Madurapperuma <ta...@wso2.com> wrote:

> Yes, you can place them at WEB-INF/lib
>
> Thanks,
> Tanya
>
> On Mon, Oct 5, 2015 at 10:51 AM, Amila Maha Arachchi <ami...@wso2.com>
> wrote:
>
>> Hi all,
>>
>> $Subject? There is a jaggery app which invokes some java code which is in
>> a jar. So, without copying the jar to the application server's dropins or
>> lib folder, is there a way to ship it with the app?
>>
>> Regards,
>> Amila.
>>
>> --
>> *Amila Maharachchi*
>> Senior Technical Lead
>> WSO2, Inc.; http://wso2.com
>>
>> Blog: http://maharachchi.blogspot.com
>> Mobile: +94719371446
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Tanya Madurapperuma
>
> Senior Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94718184439
> Blog : http://tanyamadurapperuma.blogspot.com
>



-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] Clarification on App Cloud- Built-in Editor has popup NPE for git->commit

2015-09-11 Thread Amila Maha Arachchi
If you checked the "Events" tab in code editor when you saw that exception,
some more information could have been revealed. If you come across this
again, please check the events tab too.

On Fri, Sep 11, 2015 at 10:46 AM, Kavitha Subramaniyam 
wrote:

> Hi Manjula,
>
> I was tried this by directly accessing cloud.wso2.com
>  and was working on front end, therefore couldn't
> access log/backend.
> As you mentioned I will clone project to my local machine and check, and
> share the tenant domain if this is happen on that setup as well.
>
>
> Thanks & Kind regards,
>
>
> On Fri, Sep 11, 2015 at 8:31 AM, Manjula Rathnayake 
> wrote:
>
>> Hi Kavitha,
>>
>> This is the first time I see this issue. If you clone the project to your
>> local machine and try to commit and push, does it pass?
>>
>> Please provide the tenant domain to investigate further.
>>
>> thank you.
>>
>>
>> On Thu, Sep 10, 2015 at 4:59 PM, Kavitha Subramaniyam 
>> wrote:
>>
>>> Hi team,
>>>
>>> I have been created a test java web application on App Cloud and by
>>> using Built-in Editor have made some changes at index.jsp of
>>> testjava_project (followed the tutorial steps). After Git-> Add to index
>>> and when do the Git-> Commit it has given NPE and changes are not affected.
>>>
>>> Appreciate if anyone help me to find the cause..
>>>
>>> PFA for screen shot.
>>>
>>>
>>>
>>> --
>>> Kavitha.S
>>> *Software Engineer -QA*
>>> Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
>>> kavi...@wso2.com 
>>>
>>
>>
>>
>> --
>> Manjula Rathnayaka
>> Associate Technical Lead
>> WSO2, Inc.
>> Mobile:+94 77 743 1987
>>
>
>
>
> --
> Kavitha.S
> *Software Engineer -QA*
> Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
> kavi...@wso2.com 
>



-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Why do we need this caching log as an info log :(

2015-08-04 Thread Amila Maha Arachchi
TID: [0] [AM] [2015-08-04 02:18:05,864]  INFO
{org.wso2.carbon.caching.impl.CacheImpl} -  Evicted 4891 entries from cache
REG_PATH_CACHE {org.wso2.carbon.caching.impl.CacheImpl}

TID: [0] [AM] [2015-08-04 02:18:35,920]  INFO
{org.wso2.carbon.caching.impl.CacheImpl} -  Evicted 2888 entries from cache
REG_PATH_CACHE {org.wso2.carbon.caching.impl.CacheImpl}

TID: [0] [AM] [2015-08-04 02:30:36,373]  INFO
{org.wso2.carbon.caching.impl.CacheImpl} -  Evicted 2936 entries from cache
REG_CACHE_BACKED_ID {org.wso2.carbon.caching.impl.CacheImpl}

TID: [0] [AM] [2015-08-04 02:32:37,823]  INFO
{org.wso2.carbon.caching.impl.CacheImpl} -  Evicted 3026 entries from cache
REG_CACHE_BACKED_ID {org.wso2.carbon.caching.impl.CacheImpl}

TID: [0] [AM] [2015-08-04 02:34:37,945]  INFO
{org.wso2.carbon.caching.impl.CacheImpl} -  Evicted 2874 entries from cache
REG_CACHE_BACKED_ID {org.wso2.carbon.caching.impl.CacheImpl}

TID: [0] [AM] [2015-08-04 02:36:38,089]  INFO
{org.wso2.carbon.caching.impl.CacheImpl} -  Evicted 2541 entries from cache
REG_CACHE_BACKED_ID {org.wso2.carbon.caching.impl.CacheImpl}


This has to be a debug log.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to avoid addTenant from changing already existing password in LDAP

2015-07-22 Thread Amila Maha Arachchi
On Wed, Jul 22, 2015 at 12:49 PM, Manjula Rathnayake manju...@wso2.com
wrote:

 Hi all,

 Let me add bit more context here.

 Registering an organization(creating a tenant) was originated from AF in
 app cloud. By upon receiving a tenant registration request to AF node, AF
 node trigger tenant creation in Stratos nodes(namely Dev,Test,Prod Stratos
 manager nodes). All above nodes make use of a single LDAP and tenant admin
 user is created only by AF node. But other nodes kept updating the password
 of this tenant admin with the same value received from initial tenant
 registration flow.

 In cloud setup, we are changing the tenant creation flow as below.
 1. Tenant creation is initiated by cloud management application upon
 organization registration. This create a tenant structure in LDAP and
 userstore database.
 2. Tenant admin logins and click on app cloud. This triggers tenant
 creation process in Stratos nodes.

 Based on above flow, we do not have the tenant admin password in 2nd step
 above.

 I am +1 on coming up with a custom userstore manager due to
 1. Minimal changes on existing flow where new userstore manager is plugged
 in with config changes.
 2. Cloud already making use of a custom userstore manager, hence
 introduction of new method is simple.
 3. Cloud management application already validates the password
 requirements in front-end layers, hence ignoring the empty password update
 at the backend is acceptable rather patching the kernel with API changes.


IIUC this custom userstore manager needs to be used at stratos manager,
correct? In our setup, we already have a custom userstore manager and we
will have to override the method you have mentioned, correct?

If so, what will happen when we use the same userstore manager in AF
instance or the appserver where tenant creation happens?

Feels like I am missing something. May be the logic on how to decide to not
to update the password?


 thank you.



 On Wed, Jul 22, 2015 at 12:13 PM, Punnadi Gunarathna punn...@wso2.com
 wrote:

 hi All,

 In AF latest deployment, AF has a separate UM and Registry database where
 as Straos side has a separate UM and registry database. All are pointing to
 same LDAP.

 Once the tenant get registered, login to AF side and click on app cloud,
 a listener will be invoked in Stratos side which does addTenant process.
 Since the user is logged in, the tenant password is set to a garbage value
 and it will be sent to Stratos side. This will update the tenant admin
 password to a garbage value with persistTenant method in TenantPesistor [1]
 (Line no 204).

 We thought of writing a custom userstore and override
 updateCredentialByAdmin as follows:

 Send either an empty password or a constant from AF side and password
 update will not happen in override method by checking that condition.

 Please share your thoughts.


 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/stratos/tenant-mgt/org.wso2.carbon.tenant.mgt.core/2.2.0/src/main/java/org/wso2/carbon/tenant/mgt/core/
 --
 Thanks and Regards,

 Punnadi Gunarathna
 Senior Software Engineer,
 WSO2, Inc.; http://wso2.com http://wso2
 Blog: http://hi-my-world.blogspot.com/
 Tel : 94 11 214 5345
 Fax :94 11 2145300



  http://lalajisureshika.blogspot.com/




 --
 Manjula Rathnayaka
 Associate Technical Lead
 WSO2, Inc.
 Mobile:+94 77 743 1987




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to avoid addTenant from changing already existing password in LDAP

2015-07-22 Thread Amila Maha Arachchi
+1

On Wed, Jul 22, 2015 at 5:43 PM, Danushka Fernando danush...@wso2.com
wrote:

 We can do something like thos

 @Override
public void doUpdateCredentialByAdmin(String userName, Object
 newCredential)
throws UserStoreException {
if (newCredential != null  !newCredential.equals()) {
super.doUpdateCredentialByAdmin(userName,
 newCredential);
   }
}

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

 On Wed, Jul 22, 2015 at 5:40 PM, Amila Maha Arachchi ami...@wso2.com
 wrote:



 On Wed, Jul 22, 2015 at 12:49 PM, Manjula Rathnayake manju...@wso2.com
 wrote:

 Hi all,

 Let me add bit more context here.

 Registering an organization(creating a tenant) was originated from AF in
 app cloud. By upon receiving a tenant registration request to AF node, AF
 node trigger tenant creation in Stratos nodes(namely Dev,Test,Prod Stratos
 manager nodes). All above nodes make use of a single LDAP and tenant admin
 user is created only by AF node. But other nodes kept updating the password
 of this tenant admin with the same value received from initial tenant
 registration flow.

 In cloud setup, we are changing the tenant creation flow as below.
 1. Tenant creation is initiated by cloud management application upon
 organization registration. This create a tenant structure in LDAP and
 userstore database.
 2. Tenant admin logins and click on app cloud. This triggers tenant
 creation process in Stratos nodes.

 Based on above flow, we do not have the tenant admin password in 2nd
 step above.

 I am +1 on coming up with a custom userstore manager due to
 1. Minimal changes on existing flow where new userstore manager is
 plugged in with config changes.
 2. Cloud already making use of a custom userstore manager, hence
 introduction of new method is simple.
 3. Cloud management application already validates the password
 requirements in front-end layers, hence ignoring the empty password update
 at the backend is acceptable rather patching the kernel with API changes.


 IIUC this custom userstore manager needs to be used at stratos manager,
 correct? In our setup, we already have a custom userstore manager and we
 will have to override the method you have mentioned, correct?

 If so, what will happen when we use the same userstore manager in AF
 instance or the appserver where tenant creation happens?

 Feels like I am missing something. May be the logic on how to decide to
 not to update the password?


 thank you.



 On Wed, Jul 22, 2015 at 12:13 PM, Punnadi Gunarathna punn...@wso2.com
 wrote:

 hi All,

 In AF latest deployment, AF has a separate UM and Registry database
 where as Straos side has a separate UM and registry database. All are
 pointing to same LDAP.

 Once the tenant get registered, login to AF side and click on app
 cloud,  a listener will be invoked in Stratos side which does addTenant
 process. Since the user is logged in, the tenant password is set to a
 garbage value and it will be sent to Stratos side. This will update the
 tenant admin password to a garbage value with persistTenant method in
 TenantPesistor [1] (Line no 204).

 We thought of writing a custom userstore and override
 updateCredentialByAdmin as follows:

 Send either an empty password or a constant from AF side and password
 update will not happen in override method by checking that condition.

 Please share your thoughts.


 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/stratos/tenant-mgt/org.wso2.carbon.tenant.mgt.core/2.2.0/src/main/java/org/wso2/carbon/tenant/mgt/core/
 --
 Thanks and Regards,

 Punnadi Gunarathna
 Senior Software Engineer,
 WSO2, Inc.; http://wso2.com http://wso2
 Blog: http://hi-my-world.blogspot.com/
 Tel : 94 11 214 5345
 Fax :94 11 2145300



  http://lalajisureshika.blogspot.com/




 --
 Manjula Rathnayaka
 Associate Technical Lead
 WSO2, Inc.
 Mobile:+94 77 743 1987




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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





-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Yashira Perera

2015-07-15 Thread Amila Maha Arachchi
Hi all,

Its my pleasure to welcome Yashira Perera as a WSO2 Committer. Yashira is a
member of WSO2 Cloud team and has been contributing to the team in both
development and deployment work. In recognition of his contribution, he has
been voted as a WSO2 Committer.

Yashira, welcome aboard and keep up the good work..

Regards,
Amila.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Vinuri Perera

2015-04-27 Thread Amila Maha Arachchi
Hi all,

Its my pleasure to welcome Vinuri Perera as a WSO2 Committer. Vinuri is a
member of WSO2 Cloud team and she has done a great contribution to WSO2
Cloud and has shown great enthusiasm in her work both in development and
other cloud related work. In recognition of her contribution, she has been
voted as a WSO2 Committer.

Vinuri, welcome aboard and keep up the good work..

Regards,
Amila.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Commiters += Ishara Cooray

2015-01-04 Thread Amila Maha Arachchi
Hi all,

Its my pleasure to welcome Ishara Cooray as a WSO2 Committer. Ishara is a
member of WSO2 Cloud team and she has done a great contribution to WSO2
Cloud and has shown great enthusiasm in her work. In recognition of her
contribution, she has been voted as a WSO2 Committer.

Ishara, welcome aboard and keep up the good work..

Regards,
Amila.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Uninformative log in BAM

2014-12-18 Thread Amila Maha Arachchi
BAM team,

See this log.

TID: [0] [BAM] [2014-12-18 15:57:05,707]  INFO
{org.wso2.carbon.analytics.hive.ui.servlet.SaveCronExpression} -  0 0/5 * *
* ? {org.wso2.carbon.analytics.hive.ui.servlet.SaveCronExpression}

There is no context associated with the log :(. This is printed when
scheduling a script or re-scheduling. Please improve this.

Regards,

Amila.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Why we keep DataSourceName commented out in api-manager.xml's usage stat section?

2014-12-17 Thread Amila Maha Arachchi
APIM Team,

Currently, if I want to publish API usage stats to BAM, we need to set
APIUsageTracking.Enabled to  true. Then this starts publishing usage data.

But, until we enable DataSourceName at the bottom, stats does not appear
in the UI. It gives a funny message saying, Stat publishing is enabled,
generate some traffic :)

IMO, there is no valid reason to keep this data source name commented out.
Because, you guys have added the datasource to master-datasource.xml when
shipping the product.

So, I suggest to keep it uncommented and make the life easier for the user.
Otherwise, he/she will spend quite a lot of time troubleshooting. This is a
usability improvement.

APIUsageTracking

!--

Enable/Disable the API usage tracker.

--

Enabledtrue/Enabled

...

!--DataSourceNamejdbc/WSO2AM_STATS_DB/DataSourceName--


/APIUsageTracking

Regards,
Amila.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] Access remote osgi service using a java client

2014-11-18 Thread Amila Maha Arachchi
Hi Anjana,

Any plans on exposing the ntask features as an admin service? or do we have
a way of invoking them remotely?

On Tue, Nov 18, 2014 at 4:46 PM, Danushka Fernando danush...@wso2.com
wrote:

 Hi Ishara

 AFAIK it is not possible to call osgi services remotely. But u can deploy
 an web service which will call osgi services in the BAM and then u can call
 that web service remotely. WDYT?

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

 On Tue, Nov 18, 2014 at 4:33 PM, Ishara Cooray isha...@wso2.com wrote:

 Hi,

 TaskService  is an osgi service in ntask component. This service is
 running on cloud BAM instance and i need to access this service using a
 java client.

 What is the best way to do this?
 Any reference would be appreciated.

 Thanks  Regards,
 Ishara Cooray
 Senior Software Engineer
 Mobile : +9477 262 9512
 WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

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



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




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] Access remote osgi service using a java client

2014-11-18 Thread Amila Maha Arachchi
Got it Anjana.

Ishara,

Lets write a dropins bundle and use it to get information about the
scheduled tasks we want.

On Tue, Nov 18, 2014 at 5:21 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Amila,

 There isn't an admin service for the ntask feature, mainly because, it
 itself does not have an UI, where only the user's of this API will be
 creating an UI and a required admin services for it. So that's why at the
 moment, we didn't have a reason to have an admin service for it. So for the
 moment, you will have to write your own admin service by using the OSGi
 service available.

 Cheers,
 Anjana.

 On Tue, Nov 18, 2014 at 5:00 PM, Amila Maha Arachchi ami...@wso2.com
 wrote:

 Hi Anjana,

 Any plans on exposing the ntask features as an admin service? or do we
 have a way of invoking them remotely?

 On Tue, Nov 18, 2014 at 4:46 PM, Danushka Fernando danush...@wso2.com
 wrote:

 Hi Ishara

 AFAIK it is not possible to call osgi services remotely. But u can
 deploy an web service which will call osgi services in the BAM and then u
 can call that web service remotely. WDYT?

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

 On Tue, Nov 18, 2014 at 4:33 PM, Ishara Cooray isha...@wso2.com wrote:

 Hi,

 TaskService  is an osgi service in ntask component. This service is
 running on cloud BAM instance and i need to access this service using a
 java client.

 What is the best way to do this?
 Any reference would be appreciated.

 Thanks  Regards,
 Ishara Cooray
 Senior Software Engineer
 Mobile : +9477 262 9512
 WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

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



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




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --
 *Anjana Fernando*
 Senior Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Social.core prints a broken pipe exception after a BAM restart

2014-11-12 Thread Amila Maha Arachchi
Hi all,

There was a situation where we had to restart BAM. When BAM was restarted,
social.core component in AF started printing the following log
continuously. Had to restart AF to get rid of it.

Have you experienced this? I think something is wrong with the way
connections are handled?

This does NOT occur after each restart of BAM. But once started appearing,
does not go away.

TID: [0] [AF] [2014-11-12 21:21:22,651] ERROR
{org.wso2.carbon.social.core.ActivityBrowser} -  Can't retrieve activities
form cassandra. {org.wso2.carbon.social.core.ActivityBrowser}

java.sql.SQLNonTransientConnectionException:
org.apache.thrift.transport.TTransportException: java.net.SocketException:
Broken pipe

at
org.apache.cassandra.cql.jdbc.CassandraPreparedStatement.init(CassandraPreparedStatement.java:107)

at
org.apache.cassandra.cql.jdbc.CassandraConnection.prepareStatement(CassandraConnection.java:388)

at
org.apache.cassandra.cql.jdbc.CassandraConnection.prepareStatement(CassandraConnection.java:372)

at
org.apache.cassandra.cql.jdbc.CassandraConnection.prepareStatement(CassandraConnection.java:50)

at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at
org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126)

at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)

at
org.wso2.carbon.ndatasource.rdbms.ConnectionRollbackOnReturnInterceptor.invoke(ConnectionRollbackOnReturnInterceptor.java:51)

at
org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:67)

at
org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:153)

at org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:41)

at
org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:80)

at com.sun.proxy.$Proxy14.prepareStatement(Unknown Source)

at
org.wso2.carbon.social.core.ActivityBrowser.listActivities(ActivityBrowser.java:70)

at
org.wso2.carbon.social.core.ActivityBrowser.listActivitiesChronologically(ActivityBrowser.java:123)

at
org.wso2.carbon.social.core.SocialActivityServiceImpl.listActivities(SocialActivityServiceImpl.java:28)

at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)

at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)

at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)

at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)

at
org.jaggeryjs.rhino.appmgt.modules.events.listen.c0._c_anonymous_1(/appmgt/modules/events/listen/listen.jag:22)

at
org.jaggeryjs.rhino.appmgt.modules.events.listen.c0.call(/appmgt/modules/events/listen/listen.jag)

at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)

at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)

at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)

at
org.jaggeryjs.rhino.appmgt.modules.events.c0._c_anonymous_2(/appmgt/modules/events/module.jag:8)

at
org.jaggeryjs.rhino.appmgt.modules.events.c0.call(/appmgt/modules/events/module.jag)

at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)

at
org.jaggeryjs.rhino.appmgt.site.blocks.events.listen.ajax.c0._c_anonymous_1(/appmgt/site/blocks/events/listen/ajax/listen.jag:42)

at
org.jaggeryjs.rhino.appmgt.site.blocks.events.listen.ajax.c0.call(/appmgt/site/blocks/events/listen/ajax/listen.jag)

at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)

at
org.jaggeryjs.rhino.appmgt.site.blocks.events.listen.ajax.c0._c_script_0(/appmgt/site/blocks/events/listen/ajax/listen.jag:6)

at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)

at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)

at
org.jaggeryjs.rhino.appmgt.site.blocks.events.listen.ajax.c0.exec(/appmgt/site/blocks/events/listen/ajax/listen.jag)

at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)

at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)

at
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)

at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)

at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)

at

[Dev] Wat is the way to handle DB deadlock issues

2014-11-10 Thread Amila Maha Arachchi
Hi all,

I have seen deadlock issues occurring during database transactions within
our code. [1] is such a situation.

What is the best way to handle such cases?

Should we retry from the code where we invoked the authorisation manager in
this case (i.e. AF code) or should the authorisation manager do the retry
or the DatabaseUtil class should handle this?

[1] https://wso2.org/jira/browse/CLOUD-310

TID: [0] [SCC] [2014-10-27 06:56:21,093] ERROR
{org.wso2.carbon.user.core.util.DatabaseUtil} - Error! Deadlock found when
trying to get lock; try restarting transaction
{org.wso2.carbon.user.core.util.DatabaseUtil}

com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Deadlock
found when trying to get lock; try restarting transaction
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
at com.mysql.jdbc.Util.getInstance(Util.java:386)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1066)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4190)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4122)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2570)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2731)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2818)
at
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2157)
at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2460)
at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2377)
at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2361)
at
org.wso2.carbon.user.core.util.DatabaseUtil.updateDatabase(DatabaseUtil.java:542)
at
org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.addAuthorizationForRole(JDBCAuthorizationManager.java:718)
at
org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.authorizeRole(JDBCAuthorizationManager.java:358)
at
org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.authorizeAppIdRole(AppFactoryResourceManagementService.java:351)
at
org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.getRegistry(AppFactoryResourceManagementService.java:246)
at
org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.addOrUpdateResource(AppFactoryResourceManagementService.java:159)
at
org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.addOrUpdateResources(AppFactoryResourceManagementService.java:142)



-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Wat is the way to handle DB deadlock issues

2014-11-10 Thread Amila Maha Arachchi
AFAIR, when this issue occurred, it was not under a load. This does not
occur on all execution. This is an intermittent issue. But I am thinking of
a way to code for failures and handle the situation.

On Mon, Nov 10, 2014 at 5:03 PM, Sumedha Rubasinghe sume...@wso2.com
wrote:

 How frequent is this? does this come with a load or even on single
 execution?
 SQL in concern here is following?

 DELETE FROM UM_ROLE_PERMISSION WHERE UM_ROLE_NAME=? AND UM_PERMISSION_ID =
 (SELECT UM_ID FROM UM_PERMISSION WHERE UM_RESOURCE_ID = ? AND UM_ACTION = ?
 AND UM_TENANT_ID=?) AND UM_TENANT_ID=? AND UM_DOMAIN_ID=(SELECT
 UM_DOMAIN_ID FROM UM_DOMAIN WHERE UM_TENANT_ID=? AND UM_DOMAIN_NAME=?)



 On Mon, Nov 10, 2014 at 2:55 PM, Amila Maha Arachchi ami...@wso2.com
 wrote:

 Hi all,

 I have seen deadlock issues occurring during database transactions within
 our code. [1] is such a situation.

 What is the best way to handle such cases?

 Should we retry from the code where we invoked the authorisation manager
 in this case (i.e. AF code) or should the authorisation manager do the
 retry or the DatabaseUtil class should handle this?

 [1] https://wso2.org/jira/browse/CLOUD-310

 TID: [0] [SCC] [2014-10-27 06:56:21,093] ERROR
 {org.wso2.carbon.user.core.util.DatabaseUtil} - Error! Deadlock found
 when trying to get lock; try restarting transaction
 {org.wso2.carbon.user.core.util.DatabaseUtil}

 com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException:
 Deadlock found when trying to get lock; try restarting transaction
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
 at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
 at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
 at com.mysql.jdbc.Util.getInstance(Util.java:386)
 at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1066)
 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4190)
 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4122)
 at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2570)
 at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2731)
 at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2818)
 at
 com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2157)
 at
 com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2460)
 at
 com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2377)
 at
 com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2361)
 at
 org.wso2.carbon.user.core.util.DatabaseUtil.updateDatabase(DatabaseUtil.java:542)
 at
 org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.addAuthorizationForRole(JDBCAuthorizationManager.java:718)
 at
 org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.authorizeRole(JDBCAuthorizationManager.java:358)
 at
 org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.authorizeAppIdRole(AppFactoryResourceManagementService.java:351)
 at
 org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.getRegistry(AppFactoryResourceManagementService.java:246)
 at
 org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.addOrUpdateResource(AppFactoryResourceManagementService.java:159)
 at
 org.wso2.carbon.appfactory.stratos.services.AppFactoryResourceManagementService.addOrUpdateResources(AppFactoryResourceManagementService.java:142)



 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --
 /sumedha
 m: +94 773017743
 b :  bit.ly/sumedha




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon] Cloud Tenant deletion-Carbon core patches

2014-10-13 Thread Amila Maha Arachchi
Hi Godwin,

Were you able to provide the pull requests as requested by Sameera. We need
to get them pushed to 4.3.0 kernel release.

Regards,
Amila.

On Fri, Oct 3, 2014 at 12:00 PM, Sameera Jayasoma same...@wso2.com wrote:

 Hi Amila,

 Can we get the necessary pull request for this feature? Please fork the
 wso2/carbon4-kernel repo and create pull requests?

 Thanks,
 Sameera.

 On Thu, Oct 2, 2014 at 11:09 PM, Amila Maha Arachchi ami...@wso2.com
 wrote:

 Sameera,

 We need this to be committed to 4.3.0 Kernel so that any product release
 which goes with 4.3.0 can support tenant deletion. Godwin et al can send
 pull requests. If you need lets have a chat about this before that.

 Regards,
 Amila.

 On Thu, Oct 2, 2014 at 7:23 PM, Godwin Amila Shrimal god...@wso2.com
 wrote:

 Hi,

 We did Cloud Tenant Deletion as the training project. Out of all patches
 there are three patches related to Carbon core as mentioned below.

 1. *javax.cache *

 We added a method to *CacheManagerFactoryImpl *class which delete the
 global cache for a specific tenant.

 public void removeTenant(String tenantDomain) {   globalCacheManagerMap
 .remove(tenantDomain);

 }
 2. *org.wso2.carbon.user.api*

 Added a method to *TenantManager *interface which allow only delete the
 tenantmanager cache other than persistent storage.

 public void deleteTenant(int tenantId, boolean
 removeFromPersistentStorage)throws UserStoreException;

 2. *org.wso2.carbon.user.core*

 Implemented above deleteTenant method in JDBCTenantManager.


 Please give a feedback on this how we can add this to next carbon
 release.


 Thanks
 Godwin

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

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D*
 twitter: https://twitter.com/godwinamila




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://sameera.adahas.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon] Cloud Tenant deletion-Carbon core patches

2014-10-13 Thread Amila Maha Arachchi
Thanks. Just wanted to make sure we don't drop the ball on this. If we miss
adding this to 4.3.0 we loose a huge opportunity to support tenant deletion
in our platform.

On Mon, Oct 13, 2014 at 7:27 PM, Godwin Amila Shrimal god...@wso2.com
wrote:

 Hi Amila,

 I discussed offline with the carbon team on this will send the pull
 request by tomorrow, since have to apply all the code changes which done in
 local SVN to Git.


 Thanks
 Godwin



 On Mon, Oct 13, 2014 at 7:21 PM, Amila Maha Arachchi ami...@wso2.com
 wrote:

 Hi Godwin,

 Were you able to provide the pull requests as requested by Sameera. We
 need to get them pushed to 4.3.0 kernel release.

 Regards,
 Amila.

 On Fri, Oct 3, 2014 at 12:00 PM, Sameera Jayasoma same...@wso2.com
 wrote:

 Hi Amila,

 Can we get the necessary pull request for this feature? Please fork the
 wso2/carbon4-kernel repo and create pull requests?

 Thanks,
 Sameera.

 On Thu, Oct 2, 2014 at 11:09 PM, Amila Maha Arachchi ami...@wso2.com
 wrote:

 Sameera,

 We need this to be committed to 4.3.0 Kernel so that any product
 release which goes with 4.3.0 can support tenant deletion. Godwin et al can
 send pull requests. If you need lets have a chat about this before that.

 Regards,
 Amila.

 On Thu, Oct 2, 2014 at 7:23 PM, Godwin Amila Shrimal god...@wso2.com
 wrote:

 Hi,

 We did Cloud Tenant Deletion as the training project. Out of all
 patches there are three patches related to Carbon core as mentioned below.

 1. *javax.cache *

 We added a method to *CacheManagerFactoryImpl *class which delete the
 global cache for a specific tenant.

 public void removeTenant(String tenantDomain) {
  globalCacheManagerMap.remove(tenantDomain);

 }
 2. *org.wso2.carbon.user.api*

 Added a method to *TenantManager *interface which allow only delete
 the tenantmanager cache other than persistent storage.

 public void deleteTenant(int tenantId, boolean
 removeFromPersistentStorage)throws UserStoreException;

 2. *org.wso2.carbon.user.core*

 Implemented above deleteTenant method in JDBCTenantManager.


 Please give a feedback on this how we can add this to next carbon
 release.


 Thanks
 Godwin

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

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D*
 twitter: https://twitter.com/godwinamila




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://sameera.adahas.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




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

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D*
 twitter: https://twitter.com/godwinamila




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon] Cloud Tenant deletion-Carbon core patches

2014-10-02 Thread Amila Maha Arachchi
Sameera,

We need this to be committed to 4.3.0 Kernel so that any product release
which goes with 4.3.0 can support tenant deletion. Godwin et al can send
pull requests. If you need lets have a chat about this before that.

Regards,
Amila.

On Thu, Oct 2, 2014 at 7:23 PM, Godwin Amila Shrimal god...@wso2.com
wrote:

 Hi,

 We did Cloud Tenant Deletion as the training project. Out of all patches
 there are three patches related to Carbon core as mentioned below.

 1. *javax.cache *

 We added a method to *CacheManagerFactoryImpl *class which delete the
 global cache for a specific tenant.

 public void removeTenant(String tenantDomain) {   globalCacheManagerMap
 .remove(tenantDomain);

 }
 2. *org.wso2.carbon.user.api*

 Added a method to *TenantManager *interface which allow only delete the
 tenantmanager cache other than persistent storage.

 public void deleteTenant(int tenantId, boolean
 removeFromPersistentStorage)throws UserStoreException;

 2. *org.wso2.carbon.user.core*

 Implemented above deleteTenant method in JDBCTenantManager.


 Please give a feedback on this how we can add this to next carbon release.


 Thanks
 Godwin

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

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D*
 twitter: https://twitter.com/godwinamila




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 App Cloud's Repositories in the GitBilt missing

2014-09-28 Thread Amila Maha Arachchi
Hi Manil,

We'll check and get back to you.

On Sun, Sep 28, 2014 at 3:08 PM, Manil Liyanage liyanagema...@gmail.com
wrote:

 Hi All,

 When I tried to clone my repository is says its not found. I tried to
 clone the repository few days ago, it said unauthorized access. When i
 checked the wso2 app cloud it was under maintenance and at that time when I
 logged into gitbilt my repo was there. But when I check it now my repo is
 not there. Is there a reason for this to happen? link of my repo is
 https://git.cloud.wso2.com/git/manil8056/devicemanagementser.git. All of
 the repositories are missing. Its like all my work is gone. Could someone
 help me on this?

 Thanks,
 Manil

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




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 App Cloud's Repositories in the GitBilt missing

2014-09-28 Thread Amila Maha Arachchi
Hi Manil,

Can you check now. There was an issue which occurred due to a problem with
our infrastructure provider. We fixed it.

Regards,
Amila.

On Sun, Sep 28, 2014 at 4:28 PM, Amila Maha Arachchi ami...@wso2.com
wrote:

 Hi Manil,

 We'll check and get back to you.

 On Sun, Sep 28, 2014 at 3:08 PM, Manil Liyanage liyanagema...@gmail.com
 wrote:

 Hi All,

 When I tried to clone my repository is says its not found. I tried to
 clone the repository few days ago, it said unauthorized access. When i
 checked the wso2 app cloud it was under maintenance and at that time when I
 logged into gitbilt my repo was there. But when I check it now my repo is
 not there. Is there a reason for this to happen? link of my repo is
 https://git.cloud.wso2.com/git/manil8056/devicemanagementser.git. All of
 the repositories are missing. Its like all my work is gone. Could someone
 help me on this?

 Thanks,
 Manil

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




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Commiters += Rajith Siriwardena

2014-09-25 Thread Amila Maha Arachchi
Hi all,

Its my pleasure to welcome Rajith Siriwardena as a WSO2 Committer. Rajith
is a member of WSO2 Cloud team and he has done a great contribution to WSO2
Cloud and has shown great enthusiasm in his work. In recognition of his
contribution, he has been voted as a WSO2 Committer.

Rajith, welcome aboard and keep up the good work..

Regards,
Amila.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Our documentation on changing the default keystore is not enough

2014-09-10 Thread Amila Maha Arachchi
Hi all,

$Subject. I couldn't find a proper document. I only found this
https://docs.wso2.com/display/MB220/Changing+Default+Keystores

If there is a proper doc, please point me. Otherwise, this needs to be in
the admin tasks of each product.

I can provide the necessary instructions if needed.

Regards,
Amila.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ES doc link gives a 404

2014-09-03 Thread Amila Maha Arachchi
Hi,

http://docs.wso2.com/display/ES100/WSO2+Enterprise+Store gives a 404.

Where can I access the ES docs?

Regards,
Amila.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ES doc link gives a 404

2014-09-03 Thread Amila Maha Arachchi
Aah ok. Now they are accessible.


On Wed, Sep 3, 2014 at 2:59 PM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 Same here, seems  all docs are not accessible. Samuel has reported the
 same Docs are not accessible at the moment


 On Wed, Sep 3, 2014 at 2:48 PM, Amila Maha Arachchi ami...@wso2.com
 wrote:

 Hi,

 http://docs.wso2.com/display/ES100/WSO2+Enterprise+Store gives a 404.

 Where can I access the ES docs?

 Regards,
 Amila.

 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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




 --

 Udara Liyanage
 Software Engineer
  WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ES doc link gives a 404

2014-09-03 Thread Amila Maha Arachchi
Yes Sam. They are working now.


On Wed, Sep 3, 2014 at 3:13 PM, Samuel Gnaniah sam...@wso2.com wrote:

 Hi Amila,

 The docs seem to be back online. Please check if the link works for you
 now.

 Thanks,
 Sam

 *Samuel Gnaniah*
 Senior Technical Writer

 WSO2 (pvt.) Ltd.
 Colombo, Sri Lanka
 (+94) 773131798


 On Wed, Sep 3, 2014 at 2:59 PM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 Same here, seems  all docs are not accessible. Samuel has reported the
 same Docs are not accessible at the moment


 On Wed, Sep 3, 2014 at 2:48 PM, Amila Maha Arachchi ami...@wso2.com
 wrote:

 Hi,

 http://docs.wso2.com/display/ES100/WSO2+Enterprise+Store gives a 404.

 Where can I access the ES docs?

 Regards,
 Amila.

 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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




 --

 Udara Liyanage
 Software Engineer
  WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

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





-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Moving CassandraLogProvider from carbon-utils to a different repo

2014-09-02 Thread Amila Maha Arachchi
Another fact is, this is not used only by BAM, CEP or MB. Any product which
wishes to publish logs to Cassandra will use this. Correct me if I am wrong.

So, this is a util to me.


On Tue, Sep 2, 2014 at 7:15 PM, Prabath Abeysekera praba...@wso2.com
wrote:

 Well, I don't think it's really the right move to have this added to
 carbon-storage-management repository. IMO, it has no meaning within the
 context of storage provisioning which is what carbon-storage-management
 primarily focuses on. CassandraLogProvider is some utility that's used
 across the platform right? If that's the case, it has to be added to some
 common repository, I believe.

 In addition to that, what CassandraLogProvider depends on
 (cassandra-thrift, hector-core, etc) is anyway not being maintained as part
 of carbon-storage-management repository. All considered, I believe, we
 should probably add this to some other appropriate location which is common
 for all components in the platform.

 Cheers,
 Prabath


 On Tue, Sep 2, 2014 at 2:29 PM, Inosh Goonewardena in...@wso2.com wrote:

 Shall we move it to carbon-storage-management repo since it contains all
 the cassandra related artifacts?


 On Tue, Sep 2, 2014 at 1:45 PM, Sagara Gunathunga sag...@wso2.com
 wrote:




 On Tue, Sep 2, 2014 at 1:20 PM, Afkham Azeez az...@wso2.com wrote:

 Can it be moved to carbon-commons?


 This means carbon-commons will depend on cassandra-thrift and
 hector-core, I don't think that as a good approach. AFAIK this is required
 for few products such as BAM, CEP, MB etc. so can't we move to a project
 common for those projects only  ?

 Thanks !



 On Tue, Sep 2, 2014 at 12:25 PM, Gayashan Amarasinghe 
 gayas...@wso2.com wrote:

 Hi all,

 As a result of Simplifying Carbon Platform Logging Story  Supporting
 Extending [1] the ability to plug any log provider to carbon server has
 been implemented [2]. This can be done by implementing the LogProvider
 interface and using logging-config.xml file to provide configurations
 needed to initialize the log provider implementation. Carbon log viewer
 will use this interface to get the LogEvents and show it on Log View UI.

 There has been some implementations already done and these log
 providers reside in carbon-utils repo [3]. One such log provider is
 CassandraLogProvider which can be used to provide logs from a cassandra
 instance. However since having this implementation in carbon-utils repo
 introduces dependencies on cassandra-thrift and hector-core we cannot keep
 this implementation in the carbon-utils. So where is the best place to 
 keep
 this implementation since it is useful for many products?

 [1] https://wso2.org/jira/browse/COMMONS-110
 [2] https://wso2.org/jira/browse/COMMONS-111
 [3]
 https://github.com/shamrath/carbon-utils/tree/CircularBuffer_fix/components/logging/org.wso2.carbon.logging.service/src/main/java/org/wso2/carbon/logging/service/provider

 Thanks.
  /Gayashan

 --
 *Gayashan Amarasinghe*
 Software Engineer | Platform TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94718314517
 Blog : gayashan-a.blogspot.com




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/*
 *email: **az...@wso2.com* az...@wso2.com
 * cell: +94 77 3320919 %2B94%2077%203320919 blog: *
 *http://blog.afkham.org* http://blog.afkham.org
 *twitter: **http://twitter.com/afkham_azeez*
 http://twitter.com/afkham_azeez
 * linked-in: **http://lk.linkedin.com/in/afkhamazeez
 http://lk.linkedin.com/in/afkhamazeez*

 *Lean . Enterprise . Middleware*




 --
 Sagara Gunathunga

 Senior Technical Lead; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  http://ssagara.blogspot.com


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




 --
 Regards,

 Inosh Goonewardena
 Associate Technical Lead- WSO2 Inc.
 Mobile: +94779966317




 --
 Prabath Abeysekara
 Associate Technical Lead, Data TG.
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471

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




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Cloud] Tenant Creation/Deletion process

2014-08-20 Thread Amila Maha Arachchi
On Wed, Aug 20, 2014 at 5:10 PM, Godwin Shrimal god...@wso2.com wrote:

 Hi,

 We are working on Training project (*[Cloud] Tenant deletion code/script
 for cloud* - https://redmine.wso2.com/issues/3121) , there for studying
 the process of create tenant in App Cloud. We studied the *CreateTenant.bpel
 *(under appfactory/1.1.0/modules/bpels/CreateTenant) which is use to
 create the tenant in App Cloud.

 Listed below the identified create and delete tenant process

 *Create Tenant Process*

 1. Initialize Repository Manager

 Nothing happens at the moment in the source code.

 2. Initialize Build Manager

 1. Deploy jenkins web application(jenkins.war) on application server

 3. Initialize Cloud Manager

 1. Perform addTenant operation in TenantMgtAdminService

 2. Create Git repository (use gitblit api to create repo in Git, API has
 the delete repository functionality )

 3. Subscribe for Stratos (Use Stratos Rest Service for subscribe)

 4. Tenant Creation Listeners Notification
  1. Perform addSkeletonTenant operation in TenantMgtAdminService



 *Delete Tenant Process (propose)*

 1. Perform TenantMgtAdminService deleteTenant operation

  1. Delete Billing data

 2. Delete Tenant Registration Data (Ex. REG_CLUSTER_LOCK, REG_LOG)

 3. Delete Tenant User management data (Ex. UM_USER_PERMISSION, UM_USER)

 4. Remove Tenant information from cache

 5. Delete UM_TENANT table

 2. Undeploy jenkins web app from application server


In the application server, when the jenkins web app is deployed, it creates
a folder in repository/jenkins/tenants/tenant-domain. All the builds etc.
happens inside this folder. So, you need to delete this folder as well.


 3. Delete Git repository (use gitblit api to delete repo in Git)


There may be applications created by tenant. For these applications, there
are git repositories created. So, we need to delete them as well. I think,
best option would be to, check for the applications created and then delete
them via AF APIs or admin services. This process deletes the repository as
well.

Note that there are two Git servers in App Cloud / AF. One is for
application source and the other for stratos environments. In #3, you have
mentioned about repos created for stratos.


You also need to check whether there are databases created by using
RSSAdmin.


  4. Unsubscribe Stratos using Stratos Rest Service


 Please give you all feedback on this.


 Thanks
  Godwin

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

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D*
 twitter: https://twitter.com/godwinamila




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need to know undergoing processes when we create a tenant in cloud mode

2014-08-19 Thread Amila Maha Arachchi
On Tue, Aug 19, 2014 at 4:48 PM, Danushka Fernando danush...@wso2.com
wrote:

 Hi All
 In previous reply I missed the part of deleting tenant thing. So if we are
 deleting SS related things in tenant then I think we should add them in to
 AF. So @Mahesh you can use rest endpoints provided by AF [1].


Don't you already have this in AF UI?

 But my concern is either using RSSAdmin or using AF endpoints, we need to
 delete them prior to tenant deletion. Do we have a pre tenant deletion
 event in tenant mgt listner? If not I think we should add it to achieve
 this.  @Dimuthu and Amila WDYT?


Can you explain why we need to do it prior to tenant deletion?


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


 On Tue, Aug 19, 2014 at 3:58 PM, Danushka Fernando danush...@wso2.com
 wrote:

 Hi Amila
 I don't think we should promote using RSSAdmin service in app cloud.
 Since we (AF) doing some filtering to make it app wise isolated. They could
 do almost everything that they could do with RSSAdmin in AF resources UI
 AFAIK. If something is not there someone can report it as an improvement
 and so we can include it.

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


 On Tue, Aug 19, 2014 at 3:31 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi Mahesh,
 Please find SS related comments inline.
 On Tue, Aug 19, 2014 at 3:14 PM, Amila Maha Arachchi ami...@wso2.com
 wrote:

 Hi Mahesh,

 Regarding the Storage Server:
 If tenants create databases in the app cloud, those are handled by the
 SS. SS has admin services to check whether a tenant has created DBs. So,
 you should be able to check using them and delete using the admin services.
 SS team should be able to point you to the code.

 You can use RSSManagerService[1]  OSGi service or RSSAdmin[2] admin
 service to perform operations on databases.
 [1] -
 https://github.com/wso2-dev/carbon-storage-management/blob/master/components/rss-manager/org.wso2.carbon.rssmanager.core/src/main/java/org/wso2/carbon/rssmanager/core/service/RSSManagerService.java
 [2]-
 https://github.com/wso2-dev/carbon-storage-management/blob/master/components/rss-manager/org.wso2.carbon.rssmanager.core/src/main/java/org/wso2/carbon/rssmanager/core/service/RSSAdmin.java


 Regarding AppFactory:
 AF is the backbone of App Cloud. So, when a tenant is created many
 things happen. For example, create subscriptions in stratos environments,
 create 3 git repositories to be used by those three stratos environments,
 deploy the jenkins web app to the tenant in a separate app server.

 Ans, when a tenant creates an application in App Cloud:
 A git repo for the app is created.

 AF team should be able to list down above tasks in the proper oder.

 Regards,
 Amila.


 On Tue, Aug 19, 2014 at 2:49 PM, Mahesh Vidanagama mahe...@wso2.com
 wrote:

 Hi all,

 We are currently gathering information for our fast track training
 project.
 Which is [Cloud] Tenant deletion code/script for cloud -
 https://redmine.wso2.com/issues/3121

 At this stage we need to know what are the undergoing processes(each
 and every) when we create a tenant in cloud mode of any particular 
 product.
 Mainly we would like to know on following products
  1. App Factory
 2. Storage server

 Any help would be much appreciated.
 Thanks.
 --
 Mahesh Chinthaka
 Software Engineer , WSO2.

 Phone : (+94) 71 63 63 083
 Email : mahe...@wso2.com




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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




 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com

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






-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need to know undergoing processes when we create a tenant in cloud mode

2014-08-19 Thread Amila Maha Arachchi
Then we have another problem. If we are to invoke this service as a tent,
we need to know their credentials (which we don't have). So, if this is not
allowed for super tenant, we'll have to get it implemented.


On Tue, Aug 19, 2014 at 5:07 PM, Danushka Fernando danush...@wso2.com
wrote:

 Yup we have it already.
 Because after tenant deletion (deleting userstore and registry) you cant
 load the tenants and delete metadata of SS and mysql dbs.

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


 On Tue, Aug 19, 2014 at 4:59 PM, Amila Maha Arachchi ami...@wso2.com
 wrote:




 On Tue, Aug 19, 2014 at 4:48 PM, Danushka Fernando danush...@wso2.com
 wrote:

 Hi All
 In previous reply I missed the part of deleting tenant thing. So if we
 are deleting SS related things in tenant then I think we should add them in
 to AF. So @Mahesh you can use rest endpoints provided by AF [1].


 Don't you already have this in AF UI?

 But my concern is either using RSSAdmin or using AF endpoints, we need
 to delete them prior to tenant deletion. Do we have a pre tenant deletion
 event in tenant mgt listner? If not I think we should add it to achieve
 this.  @Dimuthu and Amila WDYT?


 Can you explain why we need to do it prior to tenant deletion?


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


 On Tue, Aug 19, 2014 at 3:58 PM, Danushka Fernando danush...@wso2.com
 wrote:

 Hi Amila
 I don't think we should promote using RSSAdmin service in app cloud.
 Since we (AF) doing some filtering to make it app wise isolated. They could
 do almost everything that they could do with RSSAdmin in AF resources UI
 AFAIK. If something is not there someone can report it as an improvement
 and so we can include it.

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


 On Tue, Aug 19, 2014 at 3:31 PM, Harsha Kumara hars...@wso2.com
 wrote:

 Hi Mahesh,
 Please find SS related comments inline.
 On Tue, Aug 19, 2014 at 3:14 PM, Amila Maha Arachchi ami...@wso2.com
 wrote:

 Hi Mahesh,

 Regarding the Storage Server:
 If tenants create databases in the app cloud, those are handled by
 the SS. SS has admin services to check whether a tenant has created DBs.
 So, you should be able to check using them and delete using the admin
 services. SS team should be able to point you to the code.

 You can use RSSManagerService[1]  OSGi service or RSSAdmin[2] admin
 service to perform operations on databases.
 [1] -
 https://github.com/wso2-dev/carbon-storage-management/blob/master/components/rss-manager/org.wso2.carbon.rssmanager.core/src/main/java/org/wso2/carbon/rssmanager/core/service/RSSManagerService.java
 [2]-
 https://github.com/wso2-dev/carbon-storage-management/blob/master/components/rss-manager/org.wso2.carbon.rssmanager.core/src/main/java/org/wso2/carbon/rssmanager/core/service/RSSAdmin.java


 Regarding AppFactory:
 AF is the backbone of App Cloud. So, when a tenant is created many
 things happen. For example, create subscriptions in stratos environments,
 create 3 git repositories to be used by those three stratos environments,
 deploy the jenkins web app to the tenant in a separate app server.

 Ans, when a tenant creates an application in App Cloud:
 A git repo for the app is created.

 AF team should be able to list down above tasks in the proper oder.

 Regards,
 Amila.


 On Tue, Aug 19, 2014 at 2:49 PM, Mahesh Vidanagama mahe...@wso2.com
 wrote:

 Hi all,

 We are currently gathering information for our fast track training
 project.
 Which is [Cloud] Tenant deletion code/script for cloud -
 https://redmine.wso2.com/issues/3121

 At this stage we need to know what are the undergoing processes(each
 and every) when we create a tenant in cloud mode of any particular 
 product.
 Mainly we would like to know on following products
  1. App Factory
 2. Storage server

 Any help would be much appreciated.
 Thanks.
 --
 Mahesh Chinthaka
 Software Engineer , WSO2.

 Phone : (+94) 71 63 63 083
 Email : mahe...@wso2.com




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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




 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com

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






 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446





-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http

Re: [Dev] Need to know undergoing processes when we create a tenant in cloud mode

2014-08-19 Thread Amila Maha Arachchi
Hi Mahesh,

Regarding the Storage Server:
If tenants create databases in the app cloud, those are handled by the SS.
SS has admin services to check whether a tenant has created DBs. So, you
should be able to check using them and delete using the admin services. SS
team should be able to point you to the code.

Regarding AppFactory:
AF is the backbone of App Cloud. So, when a tenant is created many things
happen. For example, create subscriptions in stratos environments, create 3
git repositories to be used by those three stratos environments, deploy the
jenkins web app to the tenant in a separate app server.

Ans, when a tenant creates an application in App Cloud:
A git repo for the app is created.

AF team should be able to list down above tasks in the proper oder.

Regards,
Amila.


On Tue, Aug 19, 2014 at 2:49 PM, Mahesh Vidanagama mahe...@wso2.com wrote:

 Hi all,

 We are currently gathering information for our fast track training
 project.
 Which is [Cloud] Tenant deletion code/script for cloud -
 https://redmine.wso2.com/issues/3121

 At this stage we need to know what are the undergoing processes(each and
 every) when we create a tenant in cloud mode of any particular product.
 Mainly we would like to know on following products
  1. App Factory
 2. Storage server

 Any help would be much appreciated.
 Thanks.
 --
 Mahesh Chinthaka
 Software Engineer , WSO2.

 Phone : (+94) 71 63 63 083
 Email : mahe...@wso2.com




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Remove Running the management console in ELB docs

2014-08-05 Thread Amila Maha Arachchi
We also need to remove this part from shut down instructions since there is
no navigation pane (i.e. UI ) available.

click the *Shutdown/Restart* link in the navigation pane.


On Tue, Aug 5, 2014 at 9:34 AM, Samuel Gnaniah sam...@wso2.com wrote:

 Removed this.

 Thanks,
 Sam

 *Samuel Gnaniah*
 Senior Technical Writer

 WSO2 (pvt.) Ltd.
 Colombo, Sri Lanka
 (+94) 773131798


 On Mon, Aug 4, 2014 at 9:35 PM, Nirmal Fernando nir...@wso2.com wrote:

 +1 for removing.


 On Mon, Aug 4, 2014 at 9:35 PM, Samuel Gnaniah sam...@wso2.com wrote:

 Isuru/Nirmal, thoughts on this?

 *Samuel Gnaniah*
 Senior Technical Writer

 WSO2 (pvt.) Ltd.
 Colombo, Sri Lanka
 (+94) 773131798


 On Mon, Aug 4, 2014 at 7:58 PM, Nirdesha Munasinghe nirde...@wso2.com
 wrote:

 Copying Samuel...


 On Mon, Aug 4, 2014 at 7:32 PM, Amila Maha Arachchi ami...@wso2.com
 wrote:

 ELB has no use from the management console (at least at the moment).
 Therefore, shouldn't we removing the section on accessing the management
 console of the ELB.

 See https://docs.wso2.com/display/ELB211/Running+the+Product

 Users read this and try to access the management console. But some
 required files seems to be missing.

 See
 http://stackoverflow.com/questions/25094112/authenticators-xml-is-missing-in-wso2-elb

 So, shall we $Subject?



 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --

 Thanks,

 Nirdesha Munasinghe,
 WSO2 Inc.
 Web:http://wso2.com

 Mobile: +94 776321920





 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/






-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Remove Running the management console in ELB docs

2014-08-05 Thread Amila Maha Arachchi
Thanks Samuel.


On Tue, Aug 5, 2014 at 12:58 PM, Samuel Gnaniah sam...@wso2.com wrote:

 Done. Thanks for reporting this.

 Cheers,
 Sam

 *Samuel Gnaniah*
 Senior Technical Writer

 WSO2 (pvt.) Ltd.
 Colombo, Sri Lanka
 (+94) 773131798


 On Tue, Aug 5, 2014 at 12:01 PM, Amila Maha Arachchi ami...@wso2.com
 wrote:

 We also need to remove this part from shut down instructions since there
 is no navigation pane (i.e. UI ) available.

 click the *Shutdown/Restart* link in the navigation pane.


 On Tue, Aug 5, 2014 at 9:34 AM, Samuel Gnaniah sam...@wso2.com wrote:

 Removed this.

 Thanks,
 Sam

 *Samuel Gnaniah*
 Senior Technical Writer

 WSO2 (pvt.) Ltd.
 Colombo, Sri Lanka
 (+94) 773131798


 On Mon, Aug 4, 2014 at 9:35 PM, Nirmal Fernando nir...@wso2.com wrote:

 +1 for removing.


 On Mon, Aug 4, 2014 at 9:35 PM, Samuel Gnaniah sam...@wso2.com wrote:

 Isuru/Nirmal, thoughts on this?

 *Samuel Gnaniah*
 Senior Technical Writer

 WSO2 (pvt.) Ltd.
 Colombo, Sri Lanka
 (+94) 773131798


 On Mon, Aug 4, 2014 at 7:58 PM, Nirdesha Munasinghe nirde...@wso2.com
  wrote:

 Copying Samuel...


 On Mon, Aug 4, 2014 at 7:32 PM, Amila Maha Arachchi ami...@wso2.com
 wrote:

 ELB has no use from the management console (at least at the moment).
 Therefore, shouldn't we removing the section on accessing the management
 console of the ELB.

 See https://docs.wso2.com/display/ELB211/Running+the+Product

 Users read this and try to access the management console. But some
 required files seems to be missing.

 See
 http://stackoverflow.com/questions/25094112/authenticators-xml-is-missing-in-wso2-elb

 So, shall we $Subject?



 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --

 Thanks,

 Nirdesha Munasinghe,
 WSO2 Inc.
 Web:http://wso2.com

 Mobile: +94 776321920





 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/






 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446





-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Remove Running the management console in ELB docs

2014-08-04 Thread Amila Maha Arachchi
ELB has no use from the management console (at least at the moment).
Therefore, shouldn't we removing the section on accessing the management
console of the ELB.

See https://docs.wso2.com/display/ELB211/Running+the+Product

Users read this and try to access the management console. But some required
files seems to be missing.

See
http://stackoverflow.com/questions/25094112/authenticators-xml-is-missing-in-wso2-elb

So, shall we $Subject?



-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What is the reason for no action specified jaggery error

2014-07-23 Thread Amila Maha Arachchi
Thanks Danushka.

I'll try to isolate this when it occurs.


On Tue, Jul 22, 2014 at 10:19 PM, Danushka Fernando danush...@wso2.com
wrote:

 Hi Amila
 This is how it works. There is the template level in jaggery app (in our
 case appmgt) calling the block level in ajax method. In this specific
 location its calling, can be called with various actions. What this block
 level file would do is just call module level and bring data back and
 return it to the template level. But In this block level it's requires an
 action to call. This is sent as a request parameter. Somehow when we front
 with ELB we get it lost sometimes. My main suspect is ELB since we also saw
 this issue when load testing when we had ELB in local setups. Now we don't
 have ELB there and we don't get the error. Can you enable wire logs in ELB
 and check when this happens?

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


 On Tue, Jul 22, 2014 at 8:22 PM, Amila Maha Arachchi ami...@wso2.com
 wrote:

 Can someone tell me $Subject.

 TID: [0] [AF] [2014-07-22 07:05:35,925] ERROR
 {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
 org.mozilla.javascript.JavaScriptException: Error: No action specifiednull
 (/appmgt/site/blocks/buildandrepo/list/ajax/list.jag#299)
 {org.jaggeryjs.jaggery.core.manager.WebAppManager}

 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.JavaScriptException: Error: No action specifiednull
 (/appmgt/site/blocks/buildandrepo/list/ajax/list.jag#299)

 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)

 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)

 at
 org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)

 at
 org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

 at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)

 at
 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)

 at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)

 at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)

 at
 org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)

 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)

 at
 org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)

 at
 org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)

 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)

 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)

 at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)

 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)

 at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)

 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)

 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)

 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)

 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)

 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:744)

 Caused by: org.mozilla.javascript.JavaScriptException: Error: No action
 specifiednull (/appmgt/site/blocks/buildandrepo/list/ajax/list.jag#299)

 at
 org.jaggeryjs.rhino.appmgt.site.blocks.buildandrepo.list.ajax.c0

[Dev] What is the reason for no action specified jaggery error

2014-07-22 Thread Amila Maha Arachchi
Can someone tell me $Subject.

TID: [0] [AF] [2014-07-22 07:05:35,925] ERROR
{org.jaggeryjs.jaggery.core.manager.WebAppManager} -
org.mozilla.javascript.JavaScriptException: Error: No action specifiednull
(/appmgt/site/blocks/buildandrepo/list/ajax/list.jag#299)
{org.jaggeryjs.jaggery.core.manager.WebAppManager}

org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.JavaScriptException: Error: No action specifiednull
(/appmgt/site/blocks/buildandrepo/list/ajax/list.jag#299)

at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)

at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)

at
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)

at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)

at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)

at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)

at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)

at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)

at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)

at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)

at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)

at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)

at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)

at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)

at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)

at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)

at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)

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:744)

Caused by: org.mozilla.javascript.JavaScriptException: Error: No action
specifiednull (/appmgt/site/blocks/buildandrepo/list/ajax/list.jag#299)

at
org.jaggeryjs.rhino.appmgt.site.blocks.buildandrepo.list.ajax.c0._c_anonymous_1(/appmgt/site/blocks/buildandrepo/list/ajax/list.jag:299)

at
org.jaggeryjs.rhino.appmgt.site.blocks.buildandrepo.list.ajax.c0.call(/appmgt/site/blocks/buildandrepo/list/ajax/list.jag)

at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)

at
org.jaggeryjs.rhino.appmgt.site.blocks.buildandrepo.list.ajax.c0._c_script_0(/appmgt/site/blocks/buildandrepo/list/ajax/list.jag:7)

at
org.jaggeryjs.rhino.appmgt.site.blocks.buildandrepo.list.ajax.c0.call(/appmgt/site/blocks/buildandrepo/list/ajax/list.jag)

at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)

at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)

at
org.jaggeryjs.rhino.appmgt.site.blocks.buildandrepo.list.ajax.c0.call(/appmgt/site/blocks/buildandrepo/list/ajax/list.jag)

at
org.jaggeryjs.rhino.appmgt.site.blocks.buildandrepo.list.ajax.c0.exec(/appmgt/site/blocks/buildandrepo/list/ajax/list.jag)

at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)

... 35 more


-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: 

[Dev] What is the impact of following WARN message in ELB

2014-07-18 Thread Amila Maha Arachchi
TID: [0] [ELB] [2014-07-18 02:36:08,248]  WARN
{org.apache.synapse.transport.passthru.SourceHandler} -  Connection time
out after request is read: http-incoming-470
{org.apache.synapse.transport.passthru.SourceHandler}


Can I know $Subject?

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What is the impact of following WARN message in ELB

2014-07-18 Thread Amila Maha Arachchi
Thanks Isuru.

So, this means something is wrong, right? Does the client retries in this
kind of a situation?


On Fri, Jul 18, 2014 at 3:14 PM, Isuru Udana isu...@wso2.com wrote:

 Hi Amila,

 This means ELB has received a request form the client but it hasn't sent a
 response back to the client within the socket timeout period.


 On Fri, Jul 18, 2014 at 3:06 PM, Amila Maha Arachchi ami...@wso2.com
 wrote:

 TID: [0] [ELB] [2014-07-18 02:36:08,248]  WARN
 {org.apache.synapse.transport.passthru.SourceHandler} -  Connection time
 out after request is read: http-incoming-470
 {org.apache.synapse.transport.passthru.SourceHandler}


 Can I know $Subject?

 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --
 *Isuru Udana*
  Senior
 * Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: isu...@wso2.com cell: +94 77 3791887
 blog: http://mytecheye.blogspot.com/
 twitter: http://twitter.com/isudana




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What is the impact of following WARN message in ELB

2014-07-18 Thread Amila Maha Arachchi
I see this log very often in ELB.

TID: [0] [ELB] [2014-07-18 03:41:42,450]  WARN
{org.apache.synapse.transport.passthru.SourceHandler} -  Connection time
out after request is read: http-incoming-8841
{org.apache.synapse.transport.passthru.SourceHandler}

TID: [0] [ELB] [2014-07-18 03:41:42,450]  WARN
{org.apache.synapse.transport.passthru.SourceHandler} -  Connection time
out after request is read: http-incoming-8841
{org.apache.synapse.transport.passthru.SourceHandler}

TID: [0] [ELB] [2014-07-18 03:41:43,213]  INFO
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} -
Failed over to Host:x.x.x.x, Remote Host:null, Port: 4000, HTTP:9763,
HTTPS:9443, Domain: wso2.xxx.domain, Sub-domain:mgt, Active:true
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}

TID: [0] [ELB] [2014-07-18 04:15:12,253]  WARN
{org.apache.synapse.transport.passthru.TargetHandler} -  http-outgoing-217:
Connection time out while in state: REQUEST_DONE
{org.apache.synapse.transport.passthru.TargetHandler}

TID: [0] [ELB] [2014-07-18 04:15:12,253]  WARN
{org.apache.synapse.transport.passthru.TargetHandler} -  http-outgoing-217:
Connection time out while in state: REQUEST_DONE
{org.apache.synapse.transport.passthru.TargetHandler}

TID: [0] [ELB] [2014-07-18 04:15:12,254]  WARN
{SERVICE_LOGGER.__SynapseService} -  ERROR_CODE : 101507 ERROR_MESSAGE :
Error in Sender {SERVICE_LOGGER.__SynapseService}

TID: [0] [ELB] [2014-07-18 04:15:12,254]  WARN
{org.apache.synapse.endpoints.EndpointContext} -  Endpoint :
DLB:x.x.x.x:4000:52e71693-f9fb-451b-b44b-d2e295abb9e2 will be marked
SUSPENDED as it failed {org.apache.synapse.endpoints.EndpointContext}

TID: [0] [ELB] [2014-07-18 04:15:12,254]  WARN
{org.apache.synapse.endpoints.EndpointContext} -  Endpoint :
DLB:x.x.x.x:4000:52e71693-f9fb-451b-b44b-d2e295abb9e2 will be marked
SUSPENDED as it failed {org.apache.synapse.endpoints.EndpointContext}

TID: [0] [ELB] [2014-07-18 04:15:12,254]  WARN
{org.apache.synapse.endpoints.EndpointContext} -  Suspending endpoint :
DLB:x.x.x.x:4000:52e71693-f9fb-451b-b44b-d2e295abb9e2 - current suspend
duration is : 3ms - Next retry after : Fri Jul 18 04:15:42 PDT 2014
{org.apache.synapse.endpoints.EndpointContext}

TID: [0] [ELB] [2014-07-18 04:15:12,254]  WARN
{org.apache.synapse.endpoints.EndpointContext} -  Suspending endpoint :
DLB:x.x.x.x:4000:52e71693-f9fb-451b-b44b-d2e295abb9e2 - current suspend
duration is : 3ms - Next retry after : Fri Jul 18 04:15:42 PDT 2014
{org.apache.synapse.endpoints.EndpointContext}

TID: [0] [ELB] [2014-07-18 04:15:12,254]  INFO
{SERVICE_LOGGER.__SynapseService} -  FaultHandler executing impl:
org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint$TenantDynamicLoadBalanceFaultHandlerImpl
{SERVICE_LOGGER.__SynapseService}



On Fri, Jul 18, 2014 at 3:47 PM, Isuru Udana isu...@wso2.com wrote:




 On Fri, Jul 18, 2014 at 3:28 PM, Nirmal Fernando nir...@wso2.com wrote:

 In a cloud like environment, may be we need to increase the socket
 timeout a bit too.


 On Fri, Jul 18, 2014 at 3:22 PM, Amila Maha Arachchi ami...@wso2.com
 wrote:

 Thanks Isuru.

 So, this means something is wrong, right?

 IMO, In a cloud environment, few random connections timeouts, connections
 closes are normal to have as different clients accessing this environment.
 But it is a problem if you see this so often.

 Does the client retries in this kind of a situation?

 That's depends on the client.



 On Fri, Jul 18, 2014 at 3:14 PM, Isuru Udana isu...@wso2.com wrote:

 Hi Amila,

 This means ELB has received a request form the client but it hasn't
 sent a response back to the client within the socket timeout period.


 On Fri, Jul 18, 2014 at 3:06 PM, Amila Maha Arachchi ami...@wso2.com
 wrote:

 TID: [0] [ELB] [2014-07-18 02:36:08,248]  WARN
 {org.apache.synapse.transport.passthru.SourceHandler} -  Connection time
 out after request is read: http-incoming-470
 {org.apache.synapse.transport.passthru.SourceHandler}


 Can I know $Subject?

 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --
 *Isuru Udana*
  Senior
 * Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: isu...@wso2.com cell: +94 77 3791887
 blog: http://mytecheye.blogspot.com/
 twitter: http://twitter.com/isudana




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/





 --
 *Isuru Udana*
  Senior
 * Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: isu...@wso2.com cell: +94 77 3791887
 blog: http://mytecheye.blogspot.com/
 twitter: http://twitter.com/isudana




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile

Re: [Dev] Adding data to database in WSO2 App Cloud

2014-07-10 Thread Amila Maha Arachchi
We'll look into this and get back to you.


On Thu, Jul 10, 2014 at 11:57 AM, Danushka Fernando danush...@wso2.com
wrote:

 Hi
 This is WSO2 Cloud hosted in EC2. So If it can be telnet, then it is open
 to the public. This is nothing to do with Infra. Amila can you check what's
 going wrong here.

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


 On Thu, Jul 10, 2014 at 11:44 AM, Firzhan Naqash firz...@wso2.com wrote:


 Hi,

 You have to get the remote connection enabled from the Infra. By default
 it has been disabled.

 Regards,
 Firzhan


 On Thu, Jul 10, 2014 at 10:45 AM, Udara Liyanage ud...@wso2.com wrote:

 HI,

 I tried telnet mysql-dev-01.cloud.wso2.com
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x 3006 and there was
 a response. MySQL server seems to run on the given host and port. Please
 check whether remote login has enabled from MySQL server side.


 On Thu, Jul 10, 2014 at 8:15 AM, Nilashan Namasivayam 
 n.nil...@gmail.com wrote:

 Hi,

 Even I tried like this, It shows same error.
 For the username for the database, It automatically create a username
 than I given, Like if I put dbuser then It creates dbuser_ubITB7my. So
 Do I use this one? and I have used this one also, It shows same error.

 Thank you,

 Regards,
 Nilashan


 On Thu, Jul 10, 2014 at 7:58 AM, Danushka Fernando danush...@wso2.com
 wrote:

 Hi
 When you use mysql client you have to give the host name for -h option
 not the db URL. So try

 mysql -u dbuser -h mysql-
 http://mysql-dev-01.cloud.wso2.com:3306/db1_xdev
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x-01.
 http://mysql-dev-01.cloud.wso2.com:3306/db1_xcloud.wso2
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x.com
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x -p
 On Jul 9, 2014 10:56 PM, Nilashan Namasivayam n.nil...@gmail.com
 wrote:

 Hi,

 I'm trying to add some data to the database in App Cloud.

 The database url like this:
   jdbc:mysql://mysql-dev-01.cloud.wso2.com:3306/db1_x


 and I have tried to connect via MySQL client like this
  mysql -u dbuser -h jdbc:mysql://
 mysql-dev-01.cloud.wso2.com:3306/db1_x -p

 After trying the above code, I get this error in console
   ERROR 2005 (HY000): Unknown MySQL server host 'jdbc:mysql://
 mysql-dev-01.cloud.wso2.com:3306/db1_x' (2)

 What can be the problem?

 I'm following this documentation:

 http://docs.wso2.com/display/AppCloud/Add+Data+to+my+Database+or+Connect+to+an+External+Database

 Do we need any additional configuration in App Cloud than mentioned
 in the above link?


 Regards,
 Nilashan

 ___
 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




 --

 Udara Liyanage
 Software Engineer
  WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

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



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





-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to configure Apache H2 in Ubuntu 14.04

2014-07-02 Thread Amila Maha Arachchi
Are you referring to H2 DBMS. AFAIK it is not from Apache.

And, what exactly is your requirement? Do you need to read, write data to
the embedded H2 of App Manager?


On Thu, Jul 3, 2014 at 10:37 AM, Kasun Dissanayake kas...@wso2.com wrote:

 Hi All,

 I'm working with App manager and for some testings I need to configure
 Apache H2 DBMS in
 my machine. Any Help ?

 Thanks and Regards

 --
 Kasun Dissanayake
 Software Engineer
 WSO2 Inc.
 Lean | Enterprise | Middleware
 Tel - +94 77 086 2860
 Skype - kasun.dissanayake4
 LinkedIn - lk.linkedin.com/in/kasundis/

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




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Share a Data Source Created from UI Globally

2014-06-06 Thread Amila Maha Arachchi
Hi Anjana,

How does cross cluster communication solves this. Ideally each cluster
should have a separate config registry. So, how a datasource created in one
config registry, appears in another config registry?




On Fri, Jun 6, 2014 at 1:14 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Isuru,

 As we chatted offline, for this to work, we need the cross cluster
 communication working, and also, we need governance registry caching
 working also, because at the moment, the 15 mins cache validation interval
 is a problem for adding the data sources globally.

 Cheers,
 Anjana.


 On Fri, Jun 6, 2014 at 12:30 PM, Isuru Haththotuwa isu...@wso2.com
 wrote:

 Hi,

 Currently if we create a DataSource from the UI is is persisted in the
 config space in registry. If we need to $subject, across all clusters, is
 there a recommended way to do this?

 --
 Thanks and Regards,

 Isuru H.
 +94 716 358 048* http://wso2.com/*





 --
 *Anjana Fernando*
 Senior Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] Can we utilise the space in this page

2014-06-05 Thread Amila Maha Arachchi
Cool..


On Thu, Jun 5, 2014 at 11:12 AM, Dimuthu Leelarathne dimut...@wso2.com
wrote:

 Hi Amila,

 We redid it. Check in RC release.

 thanks,
 dimuthu



 On Thu, Jun 5, 2014 at 10:46 AM, Amila Maha Arachchi ami...@wso2.com
 wrote:

 AF team,

 See the attached screenshot. IMHO, there is some precious space being
 wasted. Because of that, the bottom part of the page goes down the screen
 size (Specially when creating a branch).

 $Subject.

 This is in beta. I don't know whether you have done some changes around
 this.

 Regards,
 AmilaM.

 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com
 Mobile : 0773661935

 Lean . Enterprise . Middleware




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Need few changes in the jenkins appfactory-authentication-plugin's CarbonSecurityRealm.java class

2014-05-28 Thread Amila Maha Arachchi
Hi AF team,

We need to extend the app factory-authentication-plugin you have written to
do some changes at the time of authenticating users to jenkins web
interface. We only need to override the authenticate() method. But, there
are some private methods used by the authenticate() method. So I cannot
extend the CarbonSecurityRealm class.

I have locally made the necessary method protected and then wrote a new
plugin extending yours and it works as expected (builds etc. and UI access
both).

Shall I go ahead and commit the changes to your code? Following is the diff.

Index: src/main/java/org/jenkins/wso2/appfactory/CarbonSecurityRealm.java

===

--- src/main/java/org/jenkins/wso2/appfactory/CarbonSecurityRealm.java
(revision
204181)

+++ src/main/java/org/jenkins/wso2/appfactory/CarbonSecurityRealm.java (working
copy)

@@ -127,14 +127,14 @@

 return userDetails;

 }



-private UserDetails createUserDetails(String username, String
password) {

+protected UserDetails createUserDetails(String username, String
password) {

 GrantedAuthority[] authorities =

 new
GrantedAuthority[]{SecurityRealm.AUTHENTICATED_AUTHORITY};



 return new CarbonUserDetails(username, password, authorities);

 }



-private boolean isJenkinsSystemUser(String userName) {

+protected boolean isJenkinsSystemUser(String userName) {

 String adminUsername = ;

 try {

 adminUsername =
AppFactoryUtil.getAppfactoryConfiguration().getFirstProperty(JENKINS_SERVER_ADMIN_USERNAME);

@@ -144,7 +144,7 @@

 return adminUsername.equals(userName);

 }



-private boolean authenticateJenkinsSystemUser(String password) {

+protected boolean authenticateJenkinsSystemUser(String password) {

 String adminPassword = ;

 try {


-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need few changes in the jenkins appfactory-authentication-plugin's CarbonSecurityRealm.java class

2014-05-28 Thread Amila Maha Arachchi
Committed in r204184


On Wed, May 28, 2014 at 12:08 PM, Manjula Rathnayake manju...@wso2.comwrote:

 Hi Amila,

 +1 to make methods protected, we have faced similar issues in user core as
 well.

 thank you.


 On Wed, May 28, 2014 at 12:06 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Hi AF team,

 We need to extend the app factory-authentication-plugin you have written
 to do some changes at the time of authenticating users to jenkins web
 interface. We only need to override the authenticate() method. But, there
 are some private methods used by the authenticate() method. So I cannot
 extend the CarbonSecurityRealm class.

 I have locally made the necessary method protected and then wrote a new
 plugin extending yours and it works as expected (builds etc. and UI access
 both).

 Shall I go ahead and commit the changes to your code? Following is the
 diff.

 Index: src/main/java/org/jenkins/wso2/appfactory/CarbonSecurityRealm.java

 ===

 --- src/main/java/org/jenkins/wso2/appfactory/CarbonSecurityRealm.java 
 (revision
 204181)

 +++ src/main/java/org/jenkins/wso2/appfactory/CarbonSecurityRealm.java 
 (working
 copy)

 @@ -127,14 +127,14 @@

  return userDetails;

  }



 -private UserDetails createUserDetails(String username, String
 password) {

 +protected UserDetails createUserDetails(String username, String
 password) {

  GrantedAuthority[] authorities =

  new
 GrantedAuthority[]{SecurityRealm.AUTHENTICATED_AUTHORITY};



  return new CarbonUserDetails(username, password, authorities);

  }



 -private boolean isJenkinsSystemUser(String userName) {

 +protected boolean isJenkinsSystemUser(String userName) {

  String adminUsername = ;

  try {

  adminUsername =
 AppFactoryUtil.getAppfactoryConfiguration().getFirstProperty(JENKINS_SERVER_ADMIN_USERNAME);

 @@ -144,7 +144,7 @@

  return adminUsername.equals(userName);

  }



 -private boolean authenticateJenkinsSystemUser(String password) {

 +protected boolean authenticateJenkinsSystemUser(String password) {

  String adminPassword = ;

  try {


 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --
 Manjula Rathnayaka
 Software Engineer
 WSO2, Inc.
 Mobile:+94 77 743 1987




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Adding necessary dependencies to AppFactory maven archetypes

2014-05-28 Thread Amila Maha Arachchi
Please update the instructions doc with proper details too.


On Thu, May 29, 2014 at 9:03 AM, Ranga Siriwardena ra...@wso2.com wrote:

 Following is the new dependency tree with minimum set of dependencies.
 Webapp, jaxws and jaxrs archetypes are updated with these dependencies.

 [INFO] +- javax:javaee-web-api:jar:6.0:provided
 [INFO] +- javax.servlet:servlet-api:jar:2.4:provided
 [INFO] +- org.wso2.carbon:org.wso2.carbon.registry.api:jar:4.2.0:provided
 [INFO] +- org.wso2.carbon:org.wso2.carbon.user.api:jar:4.2.0:provided
 [INFO] +- org.wso2.carbon:org.wso2.carbon.utils:jar:4.2.0:provided
 [INFO] \- org.wso2.carbon:org.wso2.carbon.registry.core:jar:4.2.0:provided


 And with these dependencies minimum M2 repo will be around 6MB. I have
 added this as the tenant M2 repo in Jenkins.

 Thank You.
 Ranga.




 On Thu, May 29, 2014 at 8:29 AM, Dimuthu Leelarathne dimut...@wso2.comwrote:

 Hi Ranga,

 Lets remove carbon.core and carbon.logging and add the rest to the
 predefined M2 Repo of the tenant.

 thanks,
 dimuthu


 On Thu, May 29, 2014 at 6:16 AM, Ranga Siriwardena ra...@wso2.comwrote:

 Hi All,

 This is regarding[1] and we need to provide necessary dependencies with
 App Factory archetypes so that the end users will facilitate when writing
 codes related to carbon related activities such as invoking registry. After
 adding registry core and carbon core dependencies we noticed a maven build
 delay due to transient dependencies. To avoid this I have exclude these
 transient dependencies and following is the dependency tree taken from a
 webapp. So these are the dependencies we are planing to add to archetypes.


 [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ app1 ---
 [INFO] org.wso2.af:app1:war:default-SNAPSHOT
 [INFO] +- javax:javaee-web-api:jar:6.0:provided
 [INFO] +- javax.servlet:servlet-api:jar:2.4:provided
 [INFO] +- org.wso2.carbon:org.wso2.carbon.registry.api:jar:4.2.0:provided
 [INFO] +- org.wso2.carbon:org.wso2.carbon.user.api:jar:4.2.0:provided
 [INFO] +- org.wso2.carbon:org.wso2.carbon.utils:jar:4.2.0:provided
 [INFO] +- org.wso2.carbon:org.wso2.carbon.core:jar:4.2.0:provided
 [INFO] +-
 org.wso2.carbon:org.wso2.carbon.registry.core:jar:4.2.0:provided
 [INFO] \- org.wso2.carbon:org.wso2.carbon.logging:jar:4.2.0:provided


 With these dependencies the initial build time is around 2.5 minutes at
 the moment. And this is only for the first time build and the time will get
 reduced from the next build. Hope this build time is good enough. If that
 is not the case we will have to pack the initial .m2 repo which is around
 9MB. Please let us know your concerns.


 [1] https://wso2.org/jira/browse/APPFAC-1984

 Thank You.
 Ranga.

 --
 Ranga Siriwardena
 Software Engineer
 WSO2 Inc.




 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com
 Mobile : 0773661935

 Lean . Enterprise . Middleware




 --
 Ranga Siriwardena
 Software Engineer
 Mobile: +94779808031
 WSO2 Inc.




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Get rid of this log in AF

2014-05-27 Thread Amila Maha Arachchi
TID: [0] [AF] [2014-05-27 22:00:15,707]  INFO
{org.wso2.carbon.appfactory.tenant.mgt.service.TenantManagementService} -
==new get user info bean
{org.wso2.carbon.appfactory.tenant.mgt.service.TenantManagementService}


This does not provide any useful info. Please get rid of this.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Get rid of this log in AF

2014-05-27 Thread Amila Maha Arachchi
Thanks.


On Wed, May 28, 2014 at 11:09 AM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi,
 This is already removed.

 Thanks,
 Asanka D


 On Wed, May 28, 2014 at 10:31 AM, Amila Maha Arachchi ami...@wso2.comwrote:

 TID: [0] [AF] [2014-05-27 22:00:15,707]  INFO
 {org.wso2.carbon.appfactory.tenant.mgt.service.TenantManagementService} -
 ==new get user info bean
 {org.wso2.carbon.appfactory.tenant.mgt.service.TenantManagementService}


 This does not provide any useful info. Please get rid of this.

 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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




 --


 *Asanka DissanayakeSoftware Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

 *email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com
 http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
 http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] An improvement to AF sign-out page

2014-05-26 Thread Amila Maha Arachchi
Hi AF team,

At the moment when you click the AF sign-out page, it loads the AF main
template without anything in the middle (no block).

Following is the code in site/pages/logout.jag

%

include(/jagg/jagg.jag);

include(/jagg/constants.jag);

var site = require(/site/conf/site.json);


(function () {


session.put('application_list',null);

session.put(last_backend_access_time_for_getting_appList,null);

session.put('authenticatedCookie',null);


jagg.render({

name:page/base,

inputs:{

title:WSO2 App Factory,

pagePath:/site/pages/logout.jag,

body:[

{

name:layout/base,

inputs:{

title:Logout,

middle:[

{

name:logout

}

]

}

}

]

}

});

}());

%


What happens from here is, code at
site/themes/default/templates/logout/template.jag
is executed.

% jagg.template(logout, function(inputs, outputs, jagg) { %


%

include(/jagg/constants.jag);

include(/jagg/config_reader.jag);


var security =require(sso);

var ssoRelyingParty = new
security.SSORelyingParty(getProperty(SSO_NAME));

try{

var samlLogoutRequest =
ssoRelyingParty.getSAMLLogoutRequest(session.get(LOGGED_IN_USER),
session.getId());

var encodedRequest =
ssoRelyingParty.encode(samlLogoutRequest);

var relayState = ssoRelyingParty.getUUID();

var idpURL = ssoRelyingParty.getProperty(
identityProviderURL);

} catch (e) {

response.sendRedirect(/ + getProperty(WEB_CONTEXT_ROOT));

}

%


div

   pYou are now redirected to Stratos Identity. If the

   redirection fails, please click the post button./p


form method=post action=%=idpURL%

p

input type=hidden name=SAMLRequest

  value=%= encodedRequest %/

input type=hidden name=RelayState value=%=relayState%/

button type=submitPOST/button

/p

/form

/div

script type = text/javascript 

   document.forms[0].submit();

/script


% }); %




This behaviour loads and ugly page at the time of sign-out. But we can fix
it by adding the code in site/themes/default/templates/logout/template.jag
to site/pages/logout.jag. It will create a nice SSO flow when a user signs
out.

site/pages/logout.jag will look like following with this change.


%

include(/jagg/jagg.jag);

include(/jagg/constants.jag);

var site = require(/site/conf/site.json);


include(/jagg/constants.jag);

include(/jagg/config_reader.jag);


var security =require(sso);

var ssoRelyingParty = new
security.SSORelyingParty(getProperty(SSO_NAME));

try{

var samlLogoutRequest =
ssoRelyingParty.getSAMLLogoutRequest(session.get(LOGGED_IN_USER),
session.getId());

var encodedRequest =
ssoRelyingParty.encode(samlLogoutRequest);

var relayState = ssoRelyingParty.getUUID();

var idpURL =
ssoRelyingParty.getProperty(identityProviderURL);

} catch (e) {

response.sendRedirect(/ + getProperty(WEB_CONTEXT_ROOT));

}


%


div

   pYou are now redirected to Stratos Identity. If the

   redirection fails, please click the post button./p


form method=post action=%=idpURL%

p

input type=hidden name=SAMLRequest

  value=%= encodedRequest %/

input type=hidden name=RelayState value=%=relayState%/

button type=submitPOST/button

/p

/form

/div

script type = text/javascript 

   document.forms[0].submit();

/script


Shall we make this change to logout.jag ? I have tested this in my setup
and there is no affect to the functionality/ I got Chanaka's advice when
fixing this redirection flow.

Regards,
AmilaM.
-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Social] Documentation around how to cluster social components.

2014-05-24 Thread Amila Maha Arachchi
Ramith,

I think you are trying something wrong. AF at the moment ships social
component and an embedded cassandra. Thats why you have this problem.
Ideally you should be using an external cassandra. Then there is nothing to
worry when creating an AF cluster.


On Thu, May 22, 2014 at 11:50 AM, Manuranga Perera m...@wso2.com wrote:

 Ramith and I had an offline discussion on this. summary of which is :
 social currently don't a way to configure LoadBalancingDataPublisher.
 I will add that feature and let AF team know so they can utilize it to
 point to multiple AF nodes.


 On Thu, May 22, 2014 at 11:12 AM, Manuranga Perera m...@wso2.com wrote:

 If you are pointing to a already cluster Cassandra cluster it should be
 sufficient.


 On Thu, May 22, 2014 at 10:23 AM, Ramith Jayasinghe ram...@wso2.comwrote:

 Yes. we do have social features installed in AF. Therefore when
 clustering AF we need to figure out how that relates to Social features.
 specially the data publishing (via data bridge/thrift) part.
  Manu, that do u think?


 On Thu, May 22, 2014 at 10:12 AM, Amila Maha Arachchi 
 ami...@wso2.comwrote:

 I think you are asking this because you are using this in side AF and
 you want to cluster AF.

 Question is:

 Is there anything that the social component do, which we need to handle
 carefully in a cluster. i.e. any coordination needed? I think the social
 components just writes to cassandra and reads from it.


 On Wed, May 21, 2014 at 8:59 PM, Ramith Jayasinghe ram...@wso2.comwrote:

 Do we have $subject?

 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com


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




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
  P: +94 776715671




 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com




 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Social] Documentation around how to cluster social components.

2014-05-21 Thread Amila Maha Arachchi
I think you are asking this because you are using this in side AF and you
want to cluster AF.

Question is:

Is there anything that the social component do, which we need to handle
carefully in a cluster. i.e. any coordination needed? I think the social
components just writes to cassandra and reads from it.


On Wed, May 21, 2014 at 8:59 PM, Ramith Jayasinghe ram...@wso2.com wrote:

 Do we have $subject?

 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com


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




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS][AppFactory] GlobalAudience parameter in identity.xml is not working

2014-05-19 Thread Amila Maha Arachchi
Hi Dulanja,

Since there was no 4.7.0 release done, I hope this fix will be available in
5.0.0?

Regards,
AmilaM.


On Fri, Dec 20, 2013 at 11:09 AM, Dulanja Liyanage dula...@wso2.com wrote:

 Hi,

 This will be done with IS 4.7.0 scheduled for release in February.

 Thanks
 Dulanja


 On Fri, Dec 20, 2013 at 9:53 AM, Gayan Gunawardana ga...@wso2.com wrote:

 I also have same problem. Any updates regarding this issue.


 On Mon, Nov 25, 2013 at 5:51 PM, Manjula Rathnayake manju...@wso2.comwrote:

 Hi all,

 We need to add multiple audience URIs because we use the same SAML
 response to authenticate to multiple carbon servers. In SAML authenticator,
 Audience restriction is checked and it fails with below errors,

 ERROR
 {org.wso2.carbon.identity.authenticator.saml2.sso.SAML2SSOAuthenticator} -
 Authentication Request is rejected. SAMLResponse AudienceRestriction
 validation failed.
 [2013-11-25 17:30:53,036]  WARN
 {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  Failed
 Administrator login attempt 'bcdad...@bcd.com[-1]' at [2013-11-25
 17:30:53,036+0530] from IP address SAML2 SSO Authentication
 [2013-11-25 17:30:53,052]  WARN
 {org.wso2.carbon.server.admin.module.handler.AuthenticationHandler} -
 Illegal access attempt at [2013-11-25 17:30:53,0052] from IP address
 127.0.0.1 while trying to authenticate access to service
 AppFactoryNDataSourceAdmin

 In which version, we get the GlobalAudience support?

 thank you.

 --
 Manjula Rathnayaka
 Software Engineer
 WSO2, Inc.
 Mobile:+94 77 743 1987

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




 --
 Gayan Gunawardana
 Software Engineer; WSO2mobile Inc.; http://wso2mobile.com/
 Email: ga...@wso2.com
 Mobile: +94 (71) 8020933
 Blog: http://gayanj2ee.blogspot.com/

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




 --
 Dulanja Liyanage
 Senior Software Engineer - WSO2 Inc.
 M: +94776764717

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




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ELB Experiment

2014-05-12 Thread Amila Maha Arachchi
Hi Nalin,

Good. We need to do one more thing. That is, to change the certificate of
the ELB and then see what needs to be done to get mutual auth working.


On Mon, May 12, 2014 at 6:12 PM, Nalin Chandraratne na...@wso2.com wrote:

 Hi Shariq,

 Seems like the experiment is successful.

 I put the mutualAuthenticator jar to the AS and invoked an admin service
 of AS, fronted by ELB, from a proxy service of ESB.

 I set the soap header as following in the request.

 inSequence
 header
m:UserName xmlns:m=http://mutualssl.carbon.wso2.org
 admin/m:UserName
 /header
 send
endpoint
   address uri=
 https://localhost:8245/services/ServiceAdmin/
/endpoint
 /send
  /inSequence

 By doing the above, I was able to successfully invoke the admin service.
 Further, I remote debugged the MutualSSLAuthenticator class as you
 mentioned and verified that isAuthenticated() method returns true.

 Thanks.



 On Fri, May 9, 2014 at 6:00 PM, Nalin Chandraratne na...@wso2.com wrote:

 Hi Amila,

 I'm still in the process of doing the $subject. As per the discussion had
 with Shariq, even though we enabled the ClientAuth=true in AS, it doesn't
 do what we expect. It uses a Rampart Authenticator and what we want is the 
 MutualSSLAuthenticator
 class to get used. So we have changed the experiment.

 Now what we are trying to do is, invoke an admin service in the AS from
 an ESB service. Because as shariq mentioned, this call should invoke the
 above mentioned MutualSSLAuthenticator class. Only after setting this
 environment properly, I can proceed with the ELB experiment.

 Thanks.

 --
 Nalin Chamara
 Software Engineer
 071-56-147-56




 --
 Nalin Chamara
 Software Engineer
 071-56-147-56




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Has anyone tried a mutual auth scenario when a server is fronted by WSO2 ELB

2014-05-07 Thread Amila Maha Arachchi
Hi all,

$Subject?

We recently figured out that this is not working with AWS ELB. Just wanted
to know whether $Subject before trying.

Regards,
AmilaM.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Best approach to removing stratos.common.server.feature from a product

2014-05-07 Thread Amila Maha Arachchi
Hi Kasun,

I can't find the tenant-mgt component in the location you have mentioned.


On Fri, Apr 18, 2014 at 5:31 PM, Kasun Gajasinghe kas...@wso2.com wrote:

 Hi AmilaM, SameeraM,

 The tenant-mgt components and features are already available in 4.3.0 [1].
 You can find the components we brought back in the thread Removing
 Stratos features from Carbon 4.3.0 Products in architecture list.

 [1]
 https://github.com/wso2/carbon-commons/tree/master/components/tenant-mgt/

 Regards,
 KasunG



 On Fri, Apr 18, 2014 at 3:25 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Lot of components bundled in stratos.common feature are not needed for
 individual products now. They were needed for StratosLive setup. But I
 cannot be sure about which bundles are needed and which are not.

 Following are the components bundled and features imported in this
 feature. IMO, we only need tenant-mgt components. So, we can get rid of
 stratos.common feature and try only adding tenant-mgt features to the
 product.

 To do that, we need to add the tenant-mgt components to Git. Who can help
 with it?

 bundles


 bundleDeforg.wso2.carbon:org.wso2.carbon.stratos.common:${stratos.version}/bundleDef


 bundleDeforg.wso2.carbon:org.wso2.carbon.redirector.servlet/bundleDef


 bundleDeforg.wso2.carbon:org.wso2.carbon.activation:${stratos.version}/bundleDef


 bundleDeforg.wso2.carbon:org.wso2.carbon.sample.installer:${stratos.version}/bundleDef


 bundleDeforg.wso2.carbon:org.wso2.carbon.tenant.dispatcher/bundleDef




 bundleDeforg.wso2.carbon:org.wso2.carbon.stratos.landing.page.deployer/bundleDef





 !-- Tenant Mgmt --

 bundleDeforg.json.wso2:json/bundleDef


 bundleDeforg.wso2.carbon:org.wso2.carbon.tenant.mgt:${stratos.version}/bundleDef


 bundleDefkaptcha.wso2:kaptcha/bundleDef


 bundleDeforg.wso2.carbon:org.wso2.carbon.keystore.mgt/bundleDef


 bundleDeforg.wso2.carbon:org.wso2.carbon.tenant.mgt.core:${stratos.version}/bundleDef


 bundleDeforg.wso2.carbon:org.wso2.carbon.captcha.mgt/bundleDef


 bundleDeforg.wso2.carbon:org.wso2.carbon.theme.mgt:${stratos.version}/bundleDef

 !-- End Tenant Mgmt --


 /bundles

 importBundles


 importBundleDeforg.apache.rampart.wso2:rampart-policy/importBundleDef


 importBundleDeforg.apache.rampart.wso2:rampart-core/importBundleDef


 importBundleDeforg.apache.rampart.wso2:rampart-trust/importBundleDef


 importBundleDeforg.wso2.carbon:org.wso2.carbon.application.upload/importBundleDef

 /importBundles

 importFeatures


 importFeatureDeforg.wso2.carbon.core.server:${wso2carbon.version}/importFeatureDef


 importFeatureDeforg.wso2.carbon.identity.authenticator.saml2.sso.server:${carbon.version}/importFeatureDef


 importFeatureDeforg.wso2.carbon.registry.core.server:${carbon.version}/importFeatureDef

 /importFeatures



 On Fri, Apr 18, 2014 at 2:50 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:

 Hi Everyone,

 *Background*

- The Enterprise Store (ES) and the Cassandra components require the
stratos.common.server.feature :2.2.1
- At the moment we are in the process of moving ES to Carbon 4.3.0
for the next Governance Registry milestone.

 *Problem*

- The stratos.common.server.feature 2.2.1 cannot be used as it has
dependencies on 4.2.0 features:
org.wso2.carbon.registry.core.server.feature.group
- This feature is used for multitenancy support in the Cassandra
component and is needed by several other products as well.
- In an offline discussion AmilaM , proposed the option of dropping
the feature and utilizing only the components required for 
 multitenancy.In
which case the tenant-mgt component[1] will need to be moved to Git as 
 well.

 *Questions*

- What is the best approach to replacing this feature?


 *References*
 [1]tenant-mgt repository ,URL
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/stratos/tenant-mgt/

 Thank You,
 Sameera

 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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




 --

 *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






-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Best approach to removing stratos.common.server.feature from a product

2014-05-07 Thread Amila Maha Arachchi
Found it at https://github.com/wso2/carbon-multitenancy


On Thu, May 8, 2014 at 10:17 AM, Amila Maha Arachchi ami...@wso2.comwrote:

 Hi Kasun,

 I can't find the tenant-mgt component in the location you have mentioned.


 On Fri, Apr 18, 2014 at 5:31 PM, Kasun Gajasinghe kas...@wso2.com wrote:

 Hi AmilaM, SameeraM,

 The tenant-mgt components and features are already available in 4.3.0
 [1]. You can find the components we brought back in the thread Removing
 Stratos features from Carbon 4.3.0 Products in architecture list.

 [1]
 https://github.com/wso2/carbon-commons/tree/master/components/tenant-mgt/

 Regards,
 KasunG



 On Fri, Apr 18, 2014 at 3:25 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Lot of components bundled in stratos.common feature are not needed for
 individual products now. They were needed for StratosLive setup. But I
 cannot be sure about which bundles are needed and which are not.

 Following are the components bundled and features imported in this
 feature. IMO, we only need tenant-mgt components. So, we can get rid of
 stratos.common feature and try only adding tenant-mgt features to the
 product.

 To do that, we need to add the tenant-mgt components to Git. Who can
 help with it?

 bundles


 bundleDeforg.wso2.carbon:org.wso2.carbon.stratos.common:${stratos.version}/bundleDef


 bundleDeforg.wso2.carbon:org.wso2.carbon.redirector.servlet/bundleDef


 bundleDeforg.wso2.carbon:org.wso2.carbon.activation:${stratos.version}/bundleDef


 bundleDeforg.wso2.carbon:org.wso2.carbon.sample.installer:${stratos.version}/bundleDef


 bundleDeforg.wso2.carbon:org.wso2.carbon.tenant.dispatcher/bundleDef




 bundleDeforg.wso2.carbon:org.wso2.carbon.stratos.landing.page.deployer/bundleDef





 !-- Tenant Mgmt --

 bundleDeforg.json.wso2:json/bundleDef


 bundleDeforg.wso2.carbon:org.wso2.carbon.tenant.mgt:${stratos.version}/bundleDef


 bundleDefkaptcha.wso2:kaptcha/bundleDef


 bundleDeforg.wso2.carbon:org.wso2.carbon.keystore.mgt/bundleDef


 bundleDeforg.wso2.carbon:org.wso2.carbon.tenant.mgt.core:${stratos.version}/bundleDef


 bundleDeforg.wso2.carbon:org.wso2.carbon.captcha.mgt/bundleDef


 bundleDeforg.wso2.carbon:org.wso2.carbon.theme.mgt:${stratos.version}/bundleDef

 !-- End Tenant Mgmt --


 /bundles

 importBundles


 importBundleDeforg.apache.rampart.wso2:rampart-policy/importBundleDef


 importBundleDeforg.apache.rampart.wso2:rampart-core/importBundleDef


 importBundleDeforg.apache.rampart.wso2:rampart-trust/importBundleDef


 importBundleDeforg.wso2.carbon:org.wso2.carbon.application.upload/importBundleDef

 /importBundles

 importFeatures


 importFeatureDeforg.wso2.carbon.core.server:${wso2carbon.version}/importFeatureDef


 importFeatureDeforg.wso2.carbon.identity.authenticator.saml2.sso.server:${carbon.version}/importFeatureDef


 importFeatureDeforg.wso2.carbon.registry.core.server:${carbon.version}/importFeatureDef

 /importFeatures



 On Fri, Apr 18, 2014 at 2:50 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:

 Hi Everyone,

 *Background*

- The Enterprise Store (ES) and the Cassandra components require
the stratos.common.server.feature :2.2.1
- At the moment we are in the process of moving ES to Carbon 4.3.0
for the next Governance Registry milestone.

 *Problem*

- The stratos.common.server.feature 2.2.1 cannot be used as it has
dependencies on 4.2.0 features:
org.wso2.carbon.registry.core.server.feature.group
- This feature is used for multitenancy support in the Cassandra
component and is needed by several other products as well.
- In an offline discussion AmilaM , proposed the option of dropping
the feature and utilizing only the components required for 
 multitenancy.In
which case the tenant-mgt component[1] will need to be moved to Git as 
 well.

 *Questions*

- What is the best approach to replacing this feature?


 *References*
 [1]tenant-mgt repository ,URL
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/stratos/tenant-mgt/

 Thank You,
 Sameera

 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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




 --

 *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






 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile

[Dev] Why the runtime AppServer needs appfactory.xml?

2014-05-06 Thread Amila Maha Arachchi
$Subject.

I see the appfactory.xml and some appfactory jars in dropins  in Stratos
side's App Server.


-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Following info log continuously getting printed in MB 2.1.1

2014-05-05 Thread Amila Maha Arachchi
Hi MB Team,

$Subject.

TID: [0] [MB] [2014-05-05 04:29:41,726]  INFO
{org.wso2.andes.server.exchange.TopicExchange} -  Message routing key: ping
No routes. {org.wso2.andes.server.exchange.TopicExchange}

TID: [0] [MB] [2014-05-05 04:29:41,727]  WARN
{org.wso2.andes.server.AMQChannel} -  MESSAGE DISCARDED: No routes for
message - Message[(HC:1446977428 ID:366315029839478784 Ref:0)]:
366315029839478784; ref count: 0 {org.wso2.andes.server.AMQChannel}

What is the impact of this? Is this harmless?

Regards,
AmilaM.
-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Following info log continuously getting printed in MB 2.1.1

2014-05-05 Thread Amila Maha Arachchi
Thanks Nuwan.

Yes, it is the reason. I had a chat with Imesh regarding this and came to
know they are publishing events to a topic called ping and no one is
retrieving those messages.


On Mon, May 5, 2014 at 5:05 PM, Nuwan Silva nuw...@wso2.com wrote:

 This usually can happen when there are no Subscribers to the said topic
 name ping. If you add a subscriber for this topic this should go away.

 Thanks,


 On Mon, May 5, 2014 at 5:00 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Hi MB Team,

 $Subject.

 TID: [0] [MB] [2014-05-05 04:29:41,726]  INFO
 {org.wso2.andes.server.exchange.TopicExchange} -  Message routing key: ping
 No routes. {org.wso2.andes.server.exchange.TopicExchange}

 TID: [0] [MB] [2014-05-05 04:29:41,727]  WARN
 {org.wso2.andes.server.AMQChannel} -  MESSAGE DISCARDED: No routes for
 message - Message[(HC:1446977428 ID:366315029839478784 Ref:0)]:
 366315029839478784; ref count: 0 {org.wso2.andes.server.AMQChannel}

 What is the impact of this? Is this harmless?

 Regards,
 AmilaM.
 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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




 --


 *Nuwan Silva*
 *Senior Software Engineer - QA*
 Mobile: +94779804543

 WSO2 Inc.
 lean . enterprise . middlewear.
 http://www.wso2.com




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [App Factory] Provide custom URL for Production deployed application via the URL mapper

2014-04-25 Thread Amila Maha Arachchi
On Fri, Apr 25, 2014 at 3:16 PM, Punnadi Gunarathna punn...@wso2.comwrote:

 hi All,

 In Dimtry's uber stories he came up with URL Mapping requirement for the
 applications deployed  in Production.

 This is how it will be implemented in App Factory front.

 AppOwner only has permissions to domain mapping.

 1. If there are more than one version of the same Application in
 production, the domain mapping is available only for one version and it is
 configuarable in AppHome.
 (That is because in reality there can't be multiple versions of the same
 application in Production. So only one domain mapping would be enough. But
 in App Factory there can be multiple versions of the same application in
 production)
 2. User can only set the subdomian in App Home page. Subdomain will be
 validated for its availability via the API provided in Stratos Manager.
 Based on the available subdomain the Production URL will be created and
 displayed in AppHome as follows:

Don't we keep these mapped domains with AF? If we are keeping them, why do
we need to ask from SM?

  http://subdomain.cloudapps.com


 3.When a particualr app version is promoted to production, the above url,
 cartridge type and the tenant id need to be passed to Stratos Manager via
 the API.
 4. The App version which has domain mapping will be highlighted. When the
 deploy button is hit from Build n Repo page/AppHome page for this App
 version, if AS is fronted by LB then LB will forward the request to correct
 cluster node or else the request will directly hit AS.
 6. Using the Virtual Host concept in AS, the deployed application will be
 available in the browser.


 --
 Thanks and Regards,

 Punnadi Gunarathna
 Senior Software Engineer,
 WSO2, Inc.; http://wso2.com http://wso2
 Blog: http://hi-my-world.blogspot.com/
 Tel : 94 11 214 5345
 Fax :94 11 2145300



  http://lalajisureshika.blogspot.com/




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [App Factory] Provide custom URL for Production deployed application via the URL mapper

2014-04-25 Thread Amila Maha Arachchi
My question is based on your statement Subdomain will be *validated* for
its availability via the API provided in Stratos Manager

Why do we need to validate the availability of the subdomain, if we
maintain the list of mapped domains within AF.


On Fri, Apr 25, 2014 at 3:46 PM, Punnadi Gunarathna punn...@wso2.comwrote:

 Hi Amila,

 Of course we will store the production url corresponding to the given
 Application version in AF side.
 But we have to pass the Host | Service | Tenant to Stratos side via SM.
 That is what we discussed in the meeting. Please refer the mail thread
 [Update] Cloud URL Mapping story for more details.


Yes, this I am aware of.



 On Fri, Apr 25, 2014 at 3:35 PM, Amila Maha Arachchi ami...@wso2.comwrote:




 On Fri, Apr 25, 2014 at 3:16 PM, Punnadi Gunarathna punn...@wso2.comwrote:

 hi All,

 In Dimtry's uber stories he came up with URL Mapping requirement for the
 applications deployed  in Production.

 This is how it will be implemented in App Factory front.

 AppOwner only has permissions to domain mapping.

 1. If there are more than one version of the same Application in
 production, the domain mapping is available only for one version and it is
 configuarable in AppHome.
 (That is because in reality there can't be multiple versions of the same
 application in Production. So only one domain mapping would be enough. But
 in App Factory there can be multiple versions of the same application in
 production)
 2. User can only set the subdomian in App Home page. Subdomain will be
 validated for its availability via the API provided in Stratos Manager.
 Based on the available subdomain the Production URL will be created and
 displayed in AppHome as follows:

 Don't we keep these mapped domains with AF? If we are keeping them, why
 do we need to ask from SM?

  http://subdomain.cloudapps.com


 3.When a particualr app version is promoted to production, the above
 url, cartridge type and the tenant id need to be passed to Stratos Manager
 via the API.
 4. The App version which has domain mapping will be highlighted. When
 the deploy button is hit from Build n Repo page/AppHome page for this App
 version, if AS is fronted by LB then LB will forward the request to correct
 cluster node or else the request will directly hit AS.
 6. Using the Virtual Host concept in AS, the deployed application will
 be available in the browser.


 --
 Thanks and Regards,

 Punnadi Gunarathna
 Senior Software Engineer,
 WSO2, Inc.; http://wso2.com http://wso2
 Blog: http://hi-my-world.blogspot.com/
 Tel : 94 11 214 5345
 Fax :94 11 2145300



  http://lalajisureshika.blogspot.com/




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --
 Thanks and Regards,

 Punnadi Gunarathna
 Senior Software Engineer,
 WSO2, Inc.; http://wso2.com http://wso2
 Blog: http://hi-my-world.blogspot.com/
 Tel : 94 11 214 5345
 Fax :94 11 2145300



  http://lalajisureshika.blogspot.com/




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error when Stratos Manager tries to add permission at tenant creation from AF

2014-04-25 Thread Amila Maha Arachchi
Hi,

We have configured AF M11 and S4 alpha packs. When a tenant is created in
AF, we see the following exception in Stratos Manager. Because of this,
subscriptions are not created.

AFAIK, AF team has got this fixed for AF M13 and S4 RC1. I got the same
patch applied to M11. But the issue is still there.



TID: [0] [SCC] [2014-04-25 09:35:45,509]  INFO
{org.wso2.carbon.appfactory.stratos.listeners.CloudEnvironmentPermissionListener}
-  *adding permissions**
{org.wso2.carbon.appfactory.stratos.listeners.CloudEnvironmentPermissionListener}

TID: [0] [SCC] [2014-04-25 09:35:46,114]  WARN
{org.wso2.carbon.appfactory.stratos.util.ListenerUtils} -
CloudResourcePermissions.Resources.Resource configuration not defined
{org.wso2.carbon.appfactory.stratos.util.ListenerUtils}

TID: [0] [SCC] [2014-04-25 09:35:47,040]  INFO
{org.wso2.carbon.core.multitenancy.TenantAxisConfigurator} -  Creating
tenant AxisConfiguration for tenant: dom39.com[38]
{org.wso2.carbon.core.multitenancy.TenantAxisConfigurator}

TID: [0] [SCC] [2014-04-25 09:35:47,646] ERROR
{org.wso2.carbon.transaction.manager.TransactionManagerComponent} -  Error
in binding transaction manager for tenant: 38
{org.wso2.carbon.transaction.manager.TransactionManagerComponent}

java.lang.RuntimeException: An error occurred while creating the initial
context for tenant: 38

at
org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.getInitialContext(CarbonContextDataHolder.java:908)

at
org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.lookup(CarbonContextDataHolder.java:951)

at javax.naming.InitialContext.lookup(InitialContext.java:411)

at
org.wso2.carbon.transaction.manager.TransactionManagerComponent.bindTransactionManagerWithJNDIForTenant(TransactionManagerComponent.java:166)

at
org.wso2.carbon.transaction.manager.TransactionManagerAxis2ConfigurationContextObserver.createdConfigurationContext(TransactionManagerAxis2ConfigurationContextObserver.java:34)

at
org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:344)

at
org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:135)

at
org.apache.stratos.rest.endpoint.services.AbstractAdmin.getConfigContext(AbstractAdmin.java:46)

at
org.apache.stratos.rest.endpoint.services.StratosAdmin.subscribe(StratosAdmin.java:361)

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.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)

at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)

at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)

at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100)

at
org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)

at
org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)

at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)

at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)

at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)

at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)

at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)

at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)

at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)

at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)

at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)

at

Re: [Dev] Cloud URL Mapper Story

2014-04-24 Thread Amila Maha Arachchi
Why do you need to ship it by default. IMO, until the AS team is ready to
accept this into the product, we shouldn't ship it. Since this is just a
jar, adding it to drop ins in our deployments is enough. WDYT?


On Thu, Apr 24, 2014 at 1:27 PM, Dimuthu Leelarathne dimut...@wso2.comwrote:

 Hi Amani,


 On Thu, Apr 24, 2014 at 12:29 PM, Amani Soysa am...@wso2.com wrote:

 Hi,

 We (Sagara,AmilaM and Amani) had an offline discussion on having URL
 Mapper functionality in Appserver, and these are the things we discussed.

 Since AF need the feature to do url mapping for web app's we have done
 some modifications to the old URL Mapper Component and we are going to make
 URL Mapper available for Appserver. We will not ship URL Mapper feature by
 default with Appserver as there will be a major performance hit if we check
 URL mapping for every request. Therefore, we decided to have URL Mapper as
 a separate feature and install it as we need. Also we need to add this
 feature in our Appserver test plan and documentation.


 Could we ship this by default and make it active only by configuration?

 thanks,
 dimuthu


 At the moment we are ONLY supporting URL Mapper functionality to webapps
 (JSP apps and jaggery Apps) we do not support for Services,JaxRS and JAXWS
 ect. So when implementing URL Mapper functionality from Appfactory side we
 have to make sure we block it for other apps.


 Amila, Sagara please add anything if I have missed.

 Regards,
 Amani


 --
 Amani Soysa
 Associate Technical Lead
 Mobile: +94772325528
 WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware




 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com
 Mobile : 0773661935

 Lean . Enterprise . Middleware




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] What AF does with Stratos Manager when creating an app

2014-04-24 Thread Amila Maha Arachchi
Hi AF team,


When creating an app, I see AF tries to access SM and I get this error.
What is the purpose of this? Why is it getting a 401?




TID: [0] [AF] [2014-04-24 08:33:37,256]  INFO
{org.wso2.carbon.appfactory.application.mgt.listners.EnvironmentAuthorizationListener}
-  EnvironmentAuthorizationListener was called for application:app17
creation event.
{org.wso2.carbon.appfactory.application.mgt.listners.EnvironmentAuthorizationListener}

TID: [0] [AF] [2014-04-24 08:33:37,455]  INFO
{org.apache.axis2.transport.http.HTTPSender} -  Unable to sendViaPost to
url[https://host:9443/services/RemoteAuthorizationManagerService]
{org.apache.axis2.transport.http.HTTPSender}

org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized

at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:311)

at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)

at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)

at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)

at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)

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.um.ws.api.stub.RemoteAuthorizationManagerServiceStub.authorizeRole(RemoteAuthorizationManagerServiceStub.java:3499)

at
org.wso2.carbon.appfactory.utilities.security.authorization.RemoteAuthorizationMgtClient.authorizeRole(RemoteAuthorizationMgtClient.java:52)

at
org.wso2.carbon.appfactory.application.mgt.listners.EnvironmentAuthorizationListener.authorizeRole(EnvironmentAuthorizationListener.java:119)

at
org.wso2.carbon.appfactory.application.mgt.listners.EnvironmentAuthorizationListener.onCreation(EnvironmentAuthorizationListener.java:32)

at
org.wso2.carbon.appfactory.application.mgt.service.ApplicationManagementService.publishApplicationCreation(ApplicationManagementService.java:256)

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.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:66)

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.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)

at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)

at
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)

at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)

at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

at
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)

at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)

at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)

at

[Dev] Question on making the single jvm pack HA

2014-04-23 Thread Amila Maha Arachchi
Hi Devs,

Suppose I start two Stratos single jvm packs to achieve HA for Stratos
Manager. But, since there will be two CCs and autoscalers also running,
will it cause any issues.

Is there any kind of a coordination going on between them?
Will both autoscalers try to be operational?

I am asking this based on my limited knowledge about the new architecture.
So, if theres anything stupid, please ignore.

Regards,
Amila.
-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Configuration location for jaggery apps

2014-04-21 Thread Amila Maha Arachchi
On Mon, Apr 21, 2014 at 10:23 PM, Manuranga Perera m...@wso2.com wrote:

 Or cant we create the configurations based on the environment at the
 startup maybe ?  I assume you need to change the hostname/port etc right ?

 I am trying do do this, but direct references to site.json are in lot of
 places (I am looking at APIM store). so to avoid doing lot of custom
 changes, I'll try writing the correct config back to site.json at start-up
 time.


 1. If it is packed with the product, you can simply keep the site.json
 file as a template in puppet or in a suitable way if you are using any
 other config management mechanisms.

 we are tying to avoid situations where things in deployment/server
 directory are managed directly by puppet. because it creates problems with
 multi management node setups, when multiple noes try to commit at start-up.


That issue will come if you start all the management nodes at once, isn't
it? If you start one by one, I don't think such an issue will be there.
Have you tried it?




 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Disable reloading super tenant themes to the registry in each server start

2014-04-20 Thread Amila Maha Arachchi
Few questions:

1. How much of an effect you get by this startup delay (I mean in seconds)?
What will be the advantage of stoping this theme being copied? We know,
once in production, we do not restart servers frequently. Even if we do so,
there should be other servers to handle the traffic. So, if we take down an
instance for maintenance, it shouldn't matter how long it takes to start
IMO.
2. Does the theme-mgt bundle really needed for products now? This was
useful when deployed in StratosLive. But do people really care about this?
What we can gain from this feature is a very minimal change of the theme.

And I forgot to ask, what is the real problem you are trying to solve with
this. You have mentioned the cause and the fix only.


On Sun, Apr 20, 2014 at 12:09 PM, Eranda Sooriyabandara era...@wso2.comwrote:

 Hi Azeez,
 I agree that it shouldn't be added to the carbon.xml, but at the current
 moment we don't have a place to keep this value. Shall we go ahead with
 this solution for C4 until we fix it properly in C5?

 thanks
 Eranda


 On Sat, Apr 19, 2014 at 8:31 PM, Afkham Azeez az...@wso2.com wrote:

 I don't like the idea of adding random stuff into the carbon.xml file.
 Anyway, with C5, we will not allow such things. So there should be a
 different way of getting this value.


 On Sat, Apr 19, 2014 at 5:03 AM, Eranda Sooriyabandara 
 era...@wso2.comwrote:

 Hi All,
 Currently we are loading super tenant themes to the registry in each
 server startup, when the themes-mgt bundle start. Since this involves
 registry calls this cause considerable startup delay. So here we are
 proposing a configuration which we can enable to stop loading themes.

 Here is the configuration which we will be adding to the carbon.xml

 ReloadThemestrue/ReloadThemes

 There can be several cases,

1. Configuration is not in carbon.xml - This will consider this
configuration value as true and will reload the themes every time start 
 the
server
2. Configuration value true - This will reload the themes every time
start the server
3. Configuration value false -  This will stop updating the themes
in registry every time start the server
4. Configuration value other than true/false - This will consider
this configuration value as false and won't reload the themes.
5. Theme not in the registry - If the theme which is in the file
system is not there in the registry, it will ignore the ReloadThemes
configuration value and add that theme to registry.

 Thoughts?
 Patch attached.

 thanks
 Eranda

 --

 *Eranda Sooriyabandara *Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise . Middleware

 E-mail: eranda AT wso2.com
 Mobile: +94 716 472 816
 Linked-In: http://www.linkedin.com/in/erandasooriyabandara
 Blog: http://emsooriyabandara.blogspot.com/







 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/*
 *email: **az...@wso2.com* az...@wso2.com
 * cell: +94 77 3320919 %2B94%2077%203320919 blog: *
 *http://blog.afkham.org* http://blog.afkham.org
 *twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 * linked-in: **http://lk.linkedin.com/in/afkhamazeez
 http://lk.linkedin.com/in/afkhamazeez*


 *Lean . Enterprise . Middleware*




 --

 *Eranda Sooriyabandara*Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise . Middleware

 E-mail: eranda AT wso2.com
 Mobile: +94 716 472 816
 Linked-In: http://www.linkedin.com/in/erandasooriyabandara
 Blog: http://emsooriyabandara.blogspot.com/





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




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Configuration location for jaggery apps

2014-04-20 Thread Amila Maha Arachchi
An alternative solution can be proposed based on the nature of the jaggery
app. i.e. is it available in the product itself, similar to publisher and
store apps of APIM or is it an app you deploy in to AppServer or any other
server.

1. If it is packed with the product, you can simply keep the site.json file
as a template in puppet or in a suitable way if you are using any other
config management mechanisms.

2. If the app is deployed in to a server, then it is somewhat difficult to
manage the config files. Then, one option is to bundle the correct config
file at the build time (using some maven params or ant stuff).

I don't think we should change the way how the config is read. This could
be done with alternatives according to your requirements. But, there is no
concrete solution IMO.


On Fri, Apr 18, 2014 at 11:07 PM, Manuranga Perera m...@wso2.com wrote:

 *Current Implementation*
 We currently keep configuration files for jaggery apps within the app
 itself (eg: site.json).

 *Issue with Current Implementation*
 But this is creating some difficulties in multi environment deployments.
 Since the configuration files will contain some environment specific
 information (eg: SSO IDP URL), this makes the artifacts un-portable across
 environments.

 *Suggested Solution*
 We can implement a mechanism where the configuration is read from an
 outside location (eg: repository/conf) at deployment time and keep it in
 the application context and reuse it.


 Let's discuss the feasibility of this solution. alternative solutions are
 welcome.

 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com

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




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Configuration location for jaggery apps

2014-04-20 Thread Amila Maha Arachchi
On Sun, Apr 20, 2014 at 11:35 PM, Chan duli...@wso2.com wrote:




 On Sun, Apr 20, 2014 at 7:26 PM, Madhuka Udantha madh...@wso2.com wrote:




 On Sun, Apr 20, 2014 at 12:48 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 An alternative solution can be proposed based on the nature of the
 jaggery app. i.e. is it available in the product itself, similar to
 publisher and store apps of APIM or is it an app you deploy in to AppServer
 or any other server.

 1. If it is packed with the product, you can simply keep the site.json
 file as a template in puppet or in a suitable way if you are using any
 other config management mechanisms.

  +1


 ​How about keeping the configurations in the registry? I don't know how
 well puppet plays with config jsons in registry though. ​


Puppet cannot deal with registry stuff. But could be done with some amount
of work (may be using registry check-in check-out client). IMO, it is an
unnecessary thing.





 2. If the app is deployed in to a server, then it is somewhat difficult
 to manage the config files. Then, one option is to bundle the correct
 config file at the build time (using some maven params or ant stuff).

 I don't think we should change the way how the config is read. This
 could be done with alternatives according to your requirements. But, there
 is no concrete solution IMO.


 On Fri, Apr 18, 2014 at 11:07 PM, Manuranga Perera m...@wso2.comwrote:

 *Current Implementation*
 We currently keep configuration files for jaggery apps within the app
 itself (eg: site.json).

 *Issue with Current Implementation*
 But this is creating some difficulties in multi environment
 deployments. Since the configuration files will contain some environment
 specific information (eg: SSO IDP URL), this makes the artifacts
 un-portable across environments.

 *Suggested Solution*
 We can implement a mechanism where the configuration is read from an
 outside location (eg: repository/conf) at deployment time and keep it in
 the application context and reuse it.


 Let's discuss the feasibility of this solution. alternative solutions
 are welcome.

 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com

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




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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




 --
 *Madhuka* Udantha
 Senior Software Engineer
 Development Technologies
 WSO2 Inc. : http://wso2.com

 *Mobile*: +94774066336
 *Blog*: http://madhukaudantha.blogspot.com/

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




 --
 Chan (Dulitha Wijewantha)
 Software Engineer - Mobile Development
 WSO2Mobile
 Lean.Enterprise.Mobileware
  * ~Email   duli...@wso2.com duli...@wso2mobile.com*
 *  ~Mobile +94712112165 %2B94712112165*
 *  ~Website   dulitha.me http://dulitha.me*
 *  ~Twitter @dulitharw https://twitter.com/dulitharw*
   *~Github @dulichan https://github.com/dulichan*
   *~SO @chan http://stackoverflow.com/users/813471/chan*




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Do we need this handler in AF registry.xml

2014-04-10 Thread Amila Maha Arachchi
AF team,

$Subject?

handler class=
org.wso2.carbon.appfactory.registry.handler.ReferenceHandler

  property name=systemVariablestage/property

filter class=
org.wso2.carbon.registry.core.jdbc.handlers.filters.URLMatcher

  property name=pattern/_system/governance/.*/property

/filter

   /handler


I hope we don't need those handlers now because we have separate registered
for the dev,test,prod environments.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Do we need this handler in AF registry.xml

2014-04-10 Thread Amila Maha Arachchi
Thanks Janaka.


On Thu, Apr 10, 2014 at 2:42 PM, Janaka Ranabahu jan...@wso2.com wrote:

 Hi Amila,

 We have removed these handlers from the configurations. Please refer the
 following revision.







 *Author: jan...@wso2.com jan...@wso2.com Date: Mon Nov 25 14:14:57
 2013New Revision: 191671
 URL: http://wso2.org/svn/browse/wso2?view=revrevision=191671
 http://wso2.org/svn/browse/wso2?view=revrevision=191671 Log:Removing
 unwanted handler and mount configuration*

 Thanks,
 Janaka


 On Thu, Apr 10, 2014 at 1:51 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 AF team,

 $Subject?

 handler class=
 org.wso2.carbon.appfactory.registry.handler.ReferenceHandler

   property name=systemVariablestage/property

 filter class=
 org.wso2.carbon.registry.core.jdbc.handlers.filters.URLMatcher

   property name=pattern/_system/governance/.*/property

 /filter

/handler


 I hope we don't need those handlers now because we have separate
 registered for the dev,test,prod environments.

 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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




 --
 *Janaka Ranabahu*
 Senior Software Engineer; WSO2 Inc.; http://wso2.com


 * E-mail: jan...@wso2.com http://wso2.com**M: **+94 718370861
 %2B94%20718370861*

 Lean . Enterprise . Middleware




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Session replication in jaggery apps

2014-03-17 Thread Amila Maha Arachchi
Hi,

Assume the scenario of two API Manager instances fronted with WSO2 ELB.
While user is logged in  and working in publisher or store app, all his
requests are going to the same node where the session is established.

At this moment if we kill one node, requests will start going to the other
node, but theres no session available in it.

My question is:
Is session replication valid for jaggery apps?

Regards,
AmilaM.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Session replication in jaggery apps

2014-03-17 Thread Amila Maha Arachchi
Thanks. I'll follow the instructions and get back to you.


On Tue, Mar 18, 2014 at 11:04 AM, Dilshan Edirisuriya dils...@wso2.comwrote:

 I have implemented this feature and tested it. You have to add
 distributable property (true/false) in Jaggery conf file. Rest of the
 configurations goes as [1]. Closed the JIRA.

 {
 displayName:My App,
 welcomeFiles:[index.jag],
 distributable:true
 }

 [1] - http://tomcat.apache.org/tomcat-7.0-doc/cluster-howto.html





 On Tue, Mar 18, 2014 at 10:24 AM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 IIRC, the support for session replication for jaggery apps was added when
 we implemented it for webapps. There were some changes needed from jaggery
 deployment side (eg: reading jag.conf for distributable property) and it
 was added. But the related jira is still in open state :
 https://wso2.org/jira/browse/JAGGERY-275

 @Dilshan, shouldn't this issue be in fixed state? Or is there anything
 more to add?




 On Mon, Mar 17, 2014 at 7:20 PM, Ruchira Wageesha ruch...@wso2.comwrote:

 Hi Amila,

 Since Jaggery is based on Tomcat, whatever the session replication
 mechanism available for Java webapps, should be valid for Jaggery as
 well[1]. But, I doubt whether it will work smoothly if there are any
 non-serializable objects in the session.

 /Ruchira

 [1] https://tomcat.apache.org/tomcat-7.0-doc/cluster-howto.html


 On Mon, Mar 17, 2014 at 4:59 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Hi,

 Assume the scenario of two API Manager instances fronted with WSO2 ELB.
 While user is logged in  and working in publisher or store app, all his
 requests are going to the same node where the session is established.

 At this moment if we kill one node, requests will start going to the
 other node, but theres no session available in it.

 My question is:
 Is session replication valid for jaggery apps?

 Regards,
 AmilaM.

 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --

 *Ruchira Wageesha**Associate Technical Lead*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com
 http://wso2.com*

 *email: ruch...@wso2.com ruch...@wso2.com,   blog:
 ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com,
 mobile: +94 77 5493444 %2B94%2077%205493444*

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




 --
 *Kishanthan Thangarajah*
 Senior Software Engineer,
 Platform Technologies Team,
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan*




 --
 Dilshan Edirisuriya
 Senior Software Engineer - WSO2
 Mob: + 94 777878905
 http://wso2.com/




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Improvement] API Manager publisher and store apps

2014-03-14 Thread Amila Maha Arachchi
Hi AM team,

Currently, in your publisher and store apps, when an ajax call is in
progress, user is not kept informed in a helpful manner. For example, when
the lifecycle state is changed from CREATED to PUBLISHED, when we click the
Update button, user do not feel like the request was submitted.

IMO, we should display a loading gif to tell that it is in progress.
Otherwise users try to click the update button twice.

There are many other places with this behaviour. It is great if you can fix
these for 2.0.0 release.

Regards,
AmilaM.

-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


  1   2   3   4   5   6   7   8   9   >