Re: [Dev] Unable to make the provider writeable on publisher

2016-09-05 Thread Thushara Ranawaka
Hi Shakila,

Your configuration is correct(tested for gadgets). Please find the
compleat asset.js file.

asset.configure = function() {
return {
table:{
overview:{
fields: {
provider:{
readonly:false,
auto:false
}
}
}
},
meta: {
ui: {
icon: 'fw fw-gadget',
iconColor: 'yellow'
}

}
};
};


To remove the default value you might have to override the create function.

Thanks,
Thushara


On Thu, Sep 1, 2016 at 3:48 PM, Shakila Sivagnanarajah 
wrote:

> Hi,
>
> I tried to change the provider while adding the asset. I did following
> change in both [1] and [2].
>
> asset.configure = function() {
> return {
> table:{
> overview:{
> fields: {
> provider:{
>
> *readonly:false,auto:false*
> }
> }
> }
> }
> };
> };
>
> [1] wso2es-2.1.0/repository/deployment/server/jaggeryapps/
> store/extensions/assets/default/asset.js
> [2] wso2es-2.1.0/repository/deployment/server/jaggeryapps/
> store/extensions/assets/esbconnector/asset.js
>
> But still no improvement. Did I miss any step for this?
> [image: Inline image 1]
>
> Thanks
>
> --
> Shakila Sivagnanarajah
> Software Engineer
> Mobile :+94 (0) 768 856837
> shak...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.;  
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Enterprise Store 2.1.0 RC 2

2016-08-10 Thread Thushara Ranawaka
Hi all,

I tested following scenarios,

Running getting started guide in Windows environment.

Publisher Lifecycle operations in IE11
Store/Publisher Taxonomy operations in IE11
Basic/SSO login(standalone) in IE11

I didn't found any blocking issues.

[X] Stable - Go ahead and release

Thanks,
Thushara.

On Wed, Aug 10, 2016 at 7:27 PM, Denuwanthi De Silva 
wrote:

> Hi,
>
> Tested following scenarios on mounted PostgreSQL database
>
> Test Application
> Completed
> Status
> Login to the Publisher Publisher
> Completed
> Passed
> Logout of the Publisher Publisher
> Completed
> Passed
> Create an asset Publisher
> Completed
> Passed
> Update an asset Publisher
> Completed
> Passed
> Create an asset with a tag Publisher
> Completed
> Passed
> Create an asset with a taxonomy Publisher
> Completed
> Passed
> Remove tag from an asset Publisher
> Completed
> Passed
> Remove a taxonomy from an asset Publisher
> Completed
> Passed
> Create a new version of an asset Publisher
> Completed
> Passed
> Delete an asset Publisher
> Completed
> Passed
> Perform a lifecycle operation on an asset Publisher
> Completed
> Passed
> Perform a lifecycle operation with a comment on an asset Publisher
> Completed
> Passed
> Login to the Store Store
> Completed
> Passed
> Logout of the Store Store
> Completed
> Passed
> Visit the top-assets page Store
> Completed
> Passed
> Visit a listing page Store
> Completed
> Passed
> Visit a details page Store
> Completed
> Passed
> Add a user review Store
> Completed
> Passed
> Downvote a review Store
> Completed
> Passed
> Up vote a review Store
> Completed
> Passed
> Delete your review Store
> Completed
> Passed
> Check if the search history appears in the top-assets page Store
> Completed
> Passed
> Check if the search history appears in the asset listing page Store
> Completed
> Passed
> Click the sort by Date - ASC Store
> Completed
> Passed
> Click the sort by Date - DESC Store
> Completed
> Passed
> Click the sort by Name - ASC Store
> Completed
> Passed
> Click the sort by Name - DESC Store
> Completed
> Passed
> Select a tag in the listing page Store
> Completed
> Passed
> Select a category in the listing page Store
> Completed
> Passed
> Select a taxonomy in the listing page Store
> Completed
> Passed
> Select a taxonomy + category Store
> Completed
> Passed
> Select a taxonomy + tag Store
> Completed
> Passed
> Select a category + tag Store
> Completed
> Passed
> Remove a taxonomy from taxonomy + category Store
> Completed
> Passed
> Remove category from taxonomy + category Store
> Completed
> Passed
> Remove tag from taxonomy + tag Store
> Completed
> Passed
> Remove taxonomy from taxonomy + tag Store
> Completed
> Passed
> Remove category from category + tag Store
> Completed
> Passed
> Remove tag from category + tag Store
> Completed
> Passed
> Remove all from taxonomy + category Store
> Completed
> Passed
> Remove all from taxonomy + tag Store
> Completed
> Passed
> Remove all from category + tag Store
> Completed
> Passed
>
>
> Thanks
>
> On Wed, Aug 10, 2016 at 7:23 PM, Ayesha Dissanayaka 
> wrote:
>
>> Hi,
>>
>> Tested below scenarios.
>>
>>- Publisher REST API
>>- Store extensions
>>- Store/Publisher navigations
>>- Store Bookmark
>>
>> [+] Stable - go ahead and release.
>>
>>
>> Regards,
>> -Ayesha
>>
>>
>> On Wed, Aug 10, 2016 at 6:57 PM, Prasanna Dangalla 
>> wrote:
>>
>>> Hi All,
>>>
>>> Tested the following scenarios and found no issues.
>>>
>>>- Promote lifecycle
>>>- Version a gadget
>>>- Filter listing page by categories
>>>- Add, remove tags
>>>- Upload images to gadgets
>>>- Delete a gadget
>>>- Sort gadget listing page
>>>- Add Reviews to gadgets
>>>
>>>
>>> [+] Stable - go ahead and release.
>>>
>>> Regards,
>>> *Prasanna Dangalla*
>>> Senior Software Engineer, WSO2, Inc.; http://wso2.com/
>>> lean.enterprise.middleware
>>>
>>>
>>> *cell: +94 718 11 27 51*
>>> *twitter: @prasa77*
>>>
>>> On Wed, Aug 10, 2016 at 6:07 PM, Chandana Napagoda 
>>> wrote:
>>>
 Hi All,

 Tested following scenarios with mounted setup

 - Publisher Lifecycle Management
 - Publisher side taxonomy
 - Multiple Lifecycles
 - OR and AND search.
 - Store Taxonomy based filtering

 Stable pack for release

 [+] stable

 Regards,
 Chandana

 On Fri, Aug 5, 2016 at 8:40 PM, Sameera Medagammaddegedara <
 samee...@wso2.com> wrote:

> Hi Devs,
>
> WSO2 Enterprise Store 2.1.0 RC2 Release Vote
>
> This release fixes the following issues:
> https://wso2.org/jira/issues/?filter=13171
>
> Please download, test and vote. Please refer the release verification
> guide for detailed information on verifying this release.
>
> Source & binary distribution files:
>  https://svn.wso2.org/repos/wso2/scratch/ES/2.1.0/rc2/
>
> Maven staging repo:
> 

Re: [Dev] [VOTE] Release WSO2 Governance Registry 5.3.0 RC 2

2016-08-09 Thread Thushara Ranawaka
Hi all,

I tested following scenarios,

Running getting started guide in Windows environment.

Store/Publisher Notification support in IE11
Publisher Lifecycle operations in IE11
Publisher Association operations in IE11
Store/Publisher Taxonomy operations in IE11
Utility bar(visualize, Copy2clipbored, Show dependancy, etc...) in IE11

Basic/SSO login in IE11

Restricted permission views for normal user
Restricted permission views for tenant user

I didn't found any blocking issues.

[X] Stable - Go ahead and release

Thanks,
Thushara.

On Tue, Aug 9, 2016 at 6:16 PM, Chanaka Jayasena  wrote:

> Following senarios tested and found no issue. [+] Stable - go ahead and
> release.
>
> Create new user
> sign in from the new user
> comment and rate other users assets
>
> Create new taxonomy
> Assign taxonomy to asset type
> Apply taxonomies terms to assets
> Filter asset by adding, editing removing taxonomy filters.
>
> Asset filtering by defining categorization from the rxt.
>
> Search assets
> By Asset Name
> By Asset Content
> By Asset Tag
> By Asset Version
> By Lifecycle Name
> By Lifecycle State
>
> Filter by tags
> Remove tag filter
>
> Sort by date/time
> Sort by name
>
> Create new asset type
> Override default icon with a custom asset extension
>
> Create new asset
> Update asset
> Change lifecycle state
> Copy an asset to a new version
> Delete asset
>
> thanks,
> Chanaka
>
> On Tue, Aug 9, 2016 at 5:26 PM, Madawa Soysa  wrote:
>
>> Hi All,
>> Tested the scenarios[1] in a mounted setup. (MySQL 5.7).
>> No issues found.
>>
>> [+] Stable - go ahead and release
>>
>>
>> [1] - https://docs.google.com/a/wso2.com/spreadsheets/d/1oG6ZyKp
>> R-oFTR_UbowFBieOEpItGINrTbXDs8XoJbOU/edit?usp=sharing
>>
>>
>> On Tue, Aug 9, 2016 at 4:56 PM, Malintha Fernando 
>> wrote:
>>
>>> Tested the following scenarios and verified.
>>>
>>> Registry operations on store, publisher and admin console.
>>> Publisher RXT field validations against different regular expressions
>>> UI operations on Microsoft Edge and IE 11
>>> Registry operations on a clustered setup with 2 nodes with shared
>>> registry and user databases (MySQL)
>>> Pointing user, registry and social databases to MsSQL databases
>>> Social reviews with PostgreSQL database.
>>> Moving between store and publisher pages on different browsers after
>>> caramel load cache disabling. (Firefox, Chrome, IE11, Edge)
>>>
>>> Hence voting +1 and stable.
>>>
>>>
>>> On Fri, Aug 5, 2016 at 8:38 PM, Rajith Roshan  wrote:
>>>
 Hi Devs,

 WSO2 Governance Registry 5.3.0 RC2 Release Vote.

 This release fixes the following issues:
 https://wso2.org/jira/browse/REGISTRY-3854?filter=13166

 Please download, test and vote. Please refer the release verification
 guide for detailed information on verifying this release.

 Source & binary distribution files:
 https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.3.0/rc2/

 Maven staging repo:
 https://maven.wso2.org/nexus/content/repositories/orgwso2greg-1008

 The tag to be voted upon:
 https://github.com/wso2/product-greg/tree/v5.3.0-rc2

 [+] Stable - go ahead and release
 [-]  Broken - do not release (please explain why)

 Thanks and Regards
 ES/G-Reg team

 --
 Rajith Roshan
 Software Engineer, WSO2 Inc.
 Mobile: +94-72-642-8350 <%2B94-71-554-8430>

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


>>>
>>>
>>> --
>>> Malintha Fernando
>>> Software Engineer
>>> WSO2 Inc. | http://wso2.com
>>> Mobile : +94 718874922
>>> Blog : http://blog.malintha.org
>>>
>>> Lean . Enterprise . Middleware
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Madawa Soysa / Software Engineer
>> mada...@wso2.com / +94714616050
>>
>> *WSO2 Inc.*
>> lean.enterprise.middleware
>>
>>   
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Chanaka Jayasena
> Associate Tech Lead,
> email: chan...@wso2.com; cell: +94 77 4464006
> blog: http://chanaka3d.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.;  
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Puppet Modules 2.1.0 RC2

2016-07-29 Thread Thushara Ranawaka
Hi Everyone,

Tested the default deployment for G-Reg 5.1.0/5.2.0 and went through
configuration and found no blocking issues.

[X] Stable - Go ahead and release

Thanks,
Thushara.

On Fri, Jul 29, 2016 at 10:48 AM, Anuruddha Liyanarachchi <
anurudd...@wso2.com> wrote:

> Hi,
>
> Verified the following:
>
>1. License headers with the RAT plugin
>2. Tested product distribution
>3. APIM 1.10.0 fully distributed setup in a clustered mesos setup
>4. Tested Marathon LB configurations
>5. Tested Sticky sessions with Marathon LB
>6. Tested following product's distributed setup
>- WSO2ESB 4.9.0
>- WSO2AS 5.3.0
>- WSO2BRS 2.2.0
>
> *[x] - Stable, go ahead and release.*
>
>
> On Thu, Jul 28, 2016 at 8:23 PM, Akila Ravihansa Perera <
> raviha...@wso2.com> wrote:
>
>> Verified the following:
>>
>>1. License validity with the RAT plugin
>>2. Built and tested Docker images for all products
>>3. Tested and verified WSO2 APIM 1.10.0 in Vagrant setup
>>
>> *[x] Stable - go ahead and release*
>>
>> On Thu, Jul 28, 2016 at 12:10 PM, Isuru Haththotuwa 
>> wrote:
>>
>>> Verified the following:
>>>
>>>1. License validity with the RAT plugin
>>>2. provisioned APIM 1.10.0, DAS 3.0.1 with vagrant setup and ran a
>>>smoke test
>>>3. Built the following Docker images with puppet provisioning using
>>>the puppet modules from the tag v2.1.0-rc2, and ran a smoke test
>>>   - ESB 4.9.0
>>>   - CEP 4.0.0
>>>   - MB 3.1.0
>>>   - DSS 3.5.0
>>>   - GREG 5.1.0
>>>
>>> *[x] Stable - go ahead and release*
>>>
>>> On Tue, Jul 26, 2016 at 2:07 PM, Thanuja Uruththirakodeeswaran <
>>> thanu...@wso2.com> wrote:
>>>
 [+1] Stable - Go ahead and release

 Verified the following:

1. Distribution
2. License Headers using RAT plugin
3. README files
4. Verified following products with docker images built with puppet
provisioning for Mesos platform and tested basic functionalities:


- WSO2 ES 2.0.0 (Distributed setup)
- WSO2 AS 5.3.0 (Distributed setup)
- WSO2 ESB 4.9.0 (Distributed setup)
- WSO2 MB 3.1.0
- WSO2 IS 5.1.0
- WSO2 IS KM 5.1.0
- WSO2 APIM 1.10.0

 5. Tested above products in Mesos platform with secure vault
 enabled.
 6. Tested SSO configuration with WSO2 IS 5.1.0 as identity
 provider and WSO2 ESB 4.9.0 and WSO2 AS 5.3.0 as service providers.

 Thanks.

 On Mon, Jul 25, 2016 at 6:39 PM, Pubudu Gunatilaka 
 wrote:

> Hi Devs,
>
> This is the second release candidate (RC2) of WSO2 Puppet Modules
> 2.1.0 release. Please download, verify, and vote. Voting will be open for
> 72 hours or as needed.
>
> This release fixes following issues:
> https://wso2.org/jira/browse/PMODULES-16?filter=13155
>
> ​Source and binary distribution files:
> https://github.com/wso2/puppet-modules/releases/tag/v2.1.0-rc2
>
> The tag to be voted upon:
> https://github.com/wso2/puppet-modules/releases/tag/v2.1.0-rc2
>
> Release verification guide:
>
> https://docs.wso2.com/display/PM210/Setting+up+the+Development+Environment
>
> Refer modules README files for more details.
>
> Please vote as follows.
> [+] Stable - go ahead and release
> [-]  Broken - do not release (please explain why)
>
> Thank you,
> WSO2 PaaS Team.
>
> --
> *Pubudu Gunatilaka*
> Committer and PMC Member - Apache Stratos
> Software Engineer
> WSO2, Inc.: http://wso2.com
> mobile : +94774078049 <%2B94772207163>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Thanuja Uruththirakodeeswaran
 Software Engineer
 WSO2 Inc.;http://wso2.com
 lean.enterprise.middleware

 mobile: +94 774363167

 

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


>>>
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> +94 716 358 048* *
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Akila Ravihansa Perera
>> WSO2 Inc.;  http://wso2.com/
>>
>> Blog: http://ravihansa3000.blogspot.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Thanks and Regards,*
> Anuruddha Lanka Liyanarachchi
> Software Engineer - WSO2
> Mobile : +94 (0) 712762611
> Tel  : +94 112 145 345
> a nurudd...@wso2.com
>
> 

Re: [Dev] [VOTE] Release WSO2 Puppet Modules 2.1.0 RC1

2016-07-25 Thread Thushara Ranawaka
Hi Everyone,

Tested the default deployment for G-Reg 5.1.0/5.2.0 and went through
configuration and found no blocking issues.

[X] Stable - Go ahead and release

Thanks,
Thushara.


On Sun, Jul 24, 2016 at 7:41 PM, Thanuja Uruththirakodeeswaran <
thanu...@wso2.com> wrote:

> Hi Akila,
>
> Thanks for pointing this. I have fixed this in commit [1].
>
> Thanks.
>
> [1].
> https://github.com/wso2/puppet-modules/commit/71a52d16f3b1d765f911d0ce197f627c36c513a6
>
>
> On Sat, Jul 23, 2016 at 11:58 AM, Akila Ravihansa Perera <
> raviha...@wso2.com> wrote:
>
>> Hi Pubudu,
>>
>> The pom version in master branch should always be a SNAPSHOT version [1].
>>
>> [1] https://github.com/wso2/puppet-modules/blob/master/pom.xml#L24
>>
>> Thanks.
>>
>> On Fri, Jul 22, 2016 at 10:04 PM, Pubudu Gunatilaka 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> This is the first release candidate (RC1) of WSO2 Puppet Modules 2.1.0
>>> release. Please download, verify, and vote. Voting will be open for 72
>>> hours or as needed.
>>>
>>> This release fixes following issues:
>>>
>>> https://wso2.org/jira/browse/PMODULES-16?filter=13155
>>>
>>> ​Source and binary distribution files:
>>>
>>> https://github.com/wso2/puppet-modules/releases/tag/v2.1.0-rc1
>>>
>>> The tag to be voted upon:
>>>
>>> https://github.com/wso2/puppet-modules/releases/tag/v2.1.0-rc1
>>>
>>> Release verification guide:
>>>
>>>
>>> https://docs.wso2.com/display/PM210/Setting+up+the+Development+Environment
>>>
>>> Refer modules README files for more details.
>>>
>>> Please vote as follows.
>>>
>>> [+] Stable - go ahead and release
>>>
>>> [-]  Broken - do not release (please explain why)
>>>
>>> Thank you,
>>> WSO2 PaaS Team.
>>>
>>> --
>>> *Pubudu Gunatilaka*
>>> Committer and PMC Member - Apache Stratos
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> mobile : +94774078049 <%2B94772207163>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Akila Ravihansa Perera
>> WSO2 Inc.;  http://wso2.com/
>>
>> Blog: http://ravihansa3000.blogspot.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanuja Uruththirakodeeswaran
> Software Engineer
> WSO2 Inc.;http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 774363167
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.;  
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Puppet-Modules] Adding G-Reg 5.2.0 puppet deployment scripts

2016-07-21 Thread Thushara Ranawaka
Hi Puppet Devs,

Kindly review and merge the PR[1]. Please find the related JIRA from
here[2].

[1] - https://github.com/wso2/puppet-modules/pull/78
[2] - https://wso2.org/jira/browse/PMODULES-7

-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.;  
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Too many mysql connections when starting ES instances

2016-07-15 Thread Thushara Ranawaka
Hi Rajith,

Are you using governance aspects of registry?
Kindly share the pack with reproducing steps, Will have a look.

Thanks,
Thushara.

On Fri, Jul 15, 2016 at 3:41 PM, Rajith Vitharana <raji...@wso2.com> wrote:

> Hi All,
>
> As advised by Thushara, tried removing solr indexing in ESB using [1], but
> in that case searching the registry with newly added resources fails(it
> doesn't show any results). So is it ok to do this change to ESB?
>
> [1] - registry.xml  false
>
> Thanks,
>
> On Fri, Jul 15, 2016 at 3:09 PM, Thushara Ranawaka <thusha...@wso2.com>
> wrote:
>
>> Hi Chanaka,
>>
>> On Fri, Jul 15, 2016 at 2:42 PM, Chanaka Fernando <chana...@wso2.com>
>> wrote:
>>
>>> Hi Thushara,
>>>
>>> Increase the mysql active connections to 350. Please note that this is
>>> bounded to server specs.
>>> Now start 2 servers at a time. Wait 10 mins before starting the other 2
>>> WSO2 servers.
>>> Or else you can always start 1 server at a time every 10 mins. Therefore
>>> it will take 30 mins to start all 4 nodes.
>>>
>>> Do you think we can tell something like this in front of a customer?
>>> Normally customers want to start the servers within seconds and they want
>>> to start an entire cluster within minutes (maximum). Please provide a
>>> recommendation which makes sense in a real world. We need a proper way to
>>> handle this.
>>>
>>
>> This recommendation is for ES not for ESB and specially not for customers
>> since we can automate this using config. ES uses governance features
>> therefore ES need to have solr enabled. Therefore please disable[3] solr in
>> all ESB nodes. Further more I understand they will start all the servers
>> straightaway but for ES initial start(database with data) there is a heavy
>> indexing process is happening in the background to have a smooth ride
>> afterward. Since there is 4 nodes either user have to increase database
>> connections from DB side or start servers one by one with a delay. We can
>> automate this using indexingConfiguration[4] in registry.xml. This is just
>> a one time thing, you can change it back to default values after the first
>> startup.
>>
>> [4] - {Different values in each nodes with 10
>> mins different.}
>> 3
>> 
>> 50
>> 
>> 10
>>
>> Thanks,
>> Thushara.
>>
>>
>>> On Fri, Jul 15, 2016 at 1:25 PM, Thushara Ranawaka <thusha...@wso2.com>
>>> wrote:
>>>
>>>> Hi Dilini,
>>>>
>>>>
>>>> On Thu, Jul 14, 2016 at 2:31 PM, Dilini Gunatilake <dili...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> @Thushara,
>>>>> Thanks for the info. Any recommended number of max_connections to
>>>>> configure considering indexing with a high load etc? Then we can add those
>>>>> details in the docs to avoid future issues.
>>>>>
>>>>
>>>> My personal recommendation,
>>>> Increase the mysql active connections to 350. Please note that this is
>>>> bounded to server specs.
>>>> Now start 2 servers at a time. Wait 10 mins before starting the other 2
>>>> WSO2 servers.
>>>> Or else you can always start 1 server at a time every 10 mins.
>>>> Therefore it will take 30 mins to start all 4 nodes.
>>>>
>>>> Thanks,
>>>> Thushara.
>>>>
>>>>
>>>>>
>>>>> @Sumedha,
>>>>> I was able to start all the nodes because the number of connections
>>>>> reduces after some time.
>>>>>
>>>>> As Rajith mentioned, the concern is having that number of connections
>>>>> created just for a server startup having less than 25 assets.
>>>>>
>>>>> Thanks,
>>>>> Dilini
>>>>>
>>>>>
>>>>> On Thu, Jul 14, 2016 at 12:53 PM, Rajith Vitharana <raji...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> On Thu, Jul 14, 2016 at 12:44 PM, Sumedha Rubasinghe <
>>>>>> sume...@wso2.com> wrote:
>>>>>>
>>>>>>> Guys,
>>>>>>> Some food for thought.
>>>>>>>
>>>>>>> 1. A single MySQL Server has a globally defined max_connections
>>>>&g

Re: [Dev] [ES] Too many mysql connections when starting ES instances

2016-07-15 Thread Thushara Ranawaka
Hi Chanaka,

On Fri, Jul 15, 2016 at 2:42 PM, Chanaka Fernando <chana...@wso2.com> wrote:

> Hi Thushara,
>
> Increase the mysql active connections to 350. Please note that this is
> bounded to server specs.
> Now start 2 servers at a time. Wait 10 mins before starting the other 2
> WSO2 servers.
> Or else you can always start 1 server at a time every 10 mins. Therefore
> it will take 30 mins to start all 4 nodes.
>
> Do you think we can tell something like this in front of a customer?
> Normally customers want to start the servers within seconds and they want
> to start an entire cluster within minutes (maximum). Please provide a
> recommendation which makes sense in a real world. We need a proper way to
> handle this.
>

This recommendation is for ES not for ESB and specially not for customers
since we can automate this using config. ES uses governance features
therefore ES need to have solr enabled. Therefore please disable[3] solr in
all ESB nodes. Further more I understand they will start all the servers
straightaway but for ES initial start(database with data) there is a heavy
indexing process is happening in the background to have a smooth ride
afterward. Since there is 4 nodes either user have to increase database
connections from DB side or start servers one by one with a delay. We can
automate this using indexingConfiguration[4] in registry.xml. This is just
a one time thing, you can change it back to default values after the first
startup.

[4] - {Different values in each nodes with 10 mins
different.}
3

50

10

Thanks,
Thushara.


> On Fri, Jul 15, 2016 at 1:25 PM, Thushara Ranawaka <thusha...@wso2.com>
> wrote:
>
>> Hi Dilini,
>>
>>
>> On Thu, Jul 14, 2016 at 2:31 PM, Dilini Gunatilake <dili...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> @Thushara,
>>> Thanks for the info. Any recommended number of max_connections to
>>> configure considering indexing with a high load etc? Then we can add those
>>> details in the docs to avoid future issues.
>>>
>>
>> My personal recommendation,
>> Increase the mysql active connections to 350. Please note that this is
>> bounded to server specs.
>> Now start 2 servers at a time. Wait 10 mins before starting the other 2
>> WSO2 servers.
>> Or else you can always start 1 server at a time every 10 mins. Therefore
>> it will take 30 mins to start all 4 nodes.
>>
>> Thanks,
>> Thushara.
>>
>>
>>>
>>> @Sumedha,
>>> I was able to start all the nodes because the number of connections
>>> reduces after some time.
>>>
>>> As Rajith mentioned, the concern is having that number of connections
>>> created just for a server startup having less than 25 assets.
>>>
>>> Thanks,
>>> Dilini
>>>
>>>
>>> On Thu, Jul 14, 2016 at 12:53 PM, Rajith Vitharana <raji...@wso2.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> On Thu, Jul 14, 2016 at 12:44 PM, Sumedha Rubasinghe <sume...@wso2.com>
>>>> wrote:
>>>>
>>>>> Guys,
>>>>> Some food for thought.
>>>>>
>>>>> 1. A single MySQL Server has a globally defined max_connections figure
>>>>> (151 as Dilini mentioned)
>>>>>
>>>>> So on a clustered setup, when you point to a single MySQL Server from
>>>>> various WSO2 products, depending on no of keep alive connections 
>>>>> specified,
>>>>> you will at some point will hit too many connections from server side @
>>>>> some point.
>>>>>
>>>> Yeah totally agree, but that much(395) is bit high AFAIU when just
>>>> starting up a server(without any load in 4 servers, and when it stabilize,
>>>> it only consumes less than 20 connections without load)
>>>>
>>>> @Thushara, Thanks for the info, will check what you have mentioned.
>>>>
>>>> Thanks,
>>>>
>>>>>
>>>>> So you have to rethink the deployment and use a different database
>>>>> server.
>>>>>
>>>>> 2. If ES has a tendency to perform too many database calls @ startup,
>>>>> - You can temporally eliminate that by controlling node start up order
>>>>>
>>>>>
>>>>> On Thu, Jul 14, 2016 at 12:04 PM, Rajith Vitharana <raji...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> We fa

Re: [Dev] [ES] Too many mysql connections when starting ES instances

2016-07-15 Thread Thushara Ranawaka
Hi Dilini,


On Thu, Jul 14, 2016 at 2:31 PM, Dilini Gunatilake  wrote:

> Hi,
>
> @Thushara,
> Thanks for the info. Any recommended number of max_connections to
> configure considering indexing with a high load etc? Then we can add those
> details in the docs to avoid future issues.
>

My personal recommendation,
Increase the mysql active connections to 350. Please note that this is
bounded to server specs.
Now start 2 servers at a time. Wait 10 mins before starting the other 2
WSO2 servers.
Or else you can always start 1 server at a time every 10 mins. Therefore it
will take 30 mins to start all 4 nodes.

Thanks,
Thushara.


>
> @Sumedha,
> I was able to start all the nodes because the number of connections
> reduces after some time.
>
> As Rajith mentioned, the concern is having that number of connections
> created just for a server startup having less than 25 assets.
>
> Thanks,
> Dilini
>
>
> On Thu, Jul 14, 2016 at 12:53 PM, Rajith Vitharana 
> wrote:
>
>> Hi,
>>
>> On Thu, Jul 14, 2016 at 12:44 PM, Sumedha Rubasinghe 
>> wrote:
>>
>>> Guys,
>>> Some food for thought.
>>>
>>> 1. A single MySQL Server has a globally defined max_connections figure
>>> (151 as Dilini mentioned)
>>>
>>> So on a clustered setup, when you point to a single MySQL Server from
>>> various WSO2 products, depending on no of keep alive connections specified,
>>> you will at some point will hit too many connections from server side @
>>> some point.
>>>
>> Yeah totally agree, but that much(395) is bit high AFAIU when just
>> starting up a server(without any load in 4 servers, and when it stabilize,
>> it only consumes less than 20 connections without load)
>>
>> @Thushara, Thanks for the info, will check what you have mentioned.
>>
>> Thanks,
>>
>>>
>>> So you have to rethink the deployment and use a different database
>>> server.
>>>
>>> 2. If ES has a tendency to perform too many database calls @ startup,
>>> - You can temporally eliminate that by controlling node start up order
>>>
>>>
>>> On Thu, Jul 14, 2016 at 12:04 PM, Rajith Vitharana 
>>> wrote:
>>>
 Hi,

 We faced the same issue in ESB latest when clustering enabled, with 4
 node cluster, number of connections goes to around 395 and gradually comes
 down to 20 or less, even with the exception happened(mysql having default
 max connections 151), it seems it gets stable to 20 or less connections
 after some time. Created a public jira to track this issue at [1]

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

 Thanks,

 On Wed, Jul 13, 2016 at 4:42 PM, Dilini Gunatilake 
 wrote:

> Hi All,
>
> I have set up a 4 node cluster for ES 2.1.0 Alpha2 pack with mysql
> 5.7. When I started one store node I got an error [3].
>
> Then, I checked the connections in the mysql server and found that the
> default number of max_connections (151) have been exceeded while the store
> node is starting. But initially without starting any ES instances there
> were only around 20 connections. So, what we observed was when starting ES
> instances substantially high amount of connections will be created and 
> they
> will be gradually reduced after sometime. Is this an acceptable behavior?
>
> Also, we could find the recommended max_connections to configure in
> some products [1][2], but couldn't find anything for ES. So, what is the
> recommended value for ES?
> For the time being we will increase the max connections to 300 and
> proceed with testing.
>
> Your earliest response is highly appreciated.
>
> [1] https://docs.wso2.com/display/AM200/Tuning+Performance
> [2]
> https://docs.wso2.com/display/Governance510/Performance+Tuning+Recommendations
>
> [3]
>
> [2016-07-13 07:50:40,014] ERROR
> {org.wso2.carbon.registry.core.dataaccess.TransactionManager} -  Failed to
> start new registry transaction.
> com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:
> Could not create connection to database server. Attempted reconnect 3
> times. Giving up.
> at sun.reflect.GeneratedConstructorAccessor107.newInstance(Unknown
> Source)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
> at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
> at com.mysql.jdbc.Util.getInstance(Util.java:387)
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:917)
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:896)
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:885)
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860)
> at
> com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2165)

Re: [Dev] [ES] Too many mysql connections when starting ES instances

2016-07-14 Thread Thushara Ranawaka
Hi Dilini,

To overcome the $subject issue you can do 2 things,

1. Increase the database max connections[1]
2. Increase the solr indexing frequency(indexingFrequencyInSeconds)[2].

Note: After the first startup you can decrease above values. This much
indexing load will happen in first startup.

@Rajith,

AFAIU many of the connections are created to carry out the solr indexing
task. Since ESB is not using Governance aspect you can simply disable[3]
solr indexing task.

[1] - http://stackoverflow.com/questions/22297773/increase-mysql-connections
[2] - registry.xml  {add value
here}
[3] - registry.xml  false

Thanks,
Thushara.

On Thu, Jul 14, 2016 at 12:04 PM, Rajith Vitharana  wrote:

> Hi,
>
> We faced the same issue in ESB latest when clustering enabled, with 4 node
> cluster, number of connections goes to around 395 and gradually comes down
> to 20 or less, even with the exception happened(mysql having default max
> connections 151), it seems it gets stable to 20 or less connections after
> some time. Created a public jira to track this issue at [1]
>
> [1] - https://wso2.org/jira/browse/REGISTRY-3771
>
> Thanks,
>
> On Wed, Jul 13, 2016 at 4:42 PM, Dilini Gunatilake 
> wrote:
>
>> Hi All,
>>
>> I have set up a 4 node cluster for ES 2.1.0 Alpha2 pack with mysql 5.7.
>> When I started one store node I got an error [3].
>>
>> Then, I checked the connections in the mysql server and found that the
>> default number of max_connections (151) have been exceeded while the store
>> node is starting. But initially without starting any ES instances there
>> were only around 20 connections. So, what we observed was when starting ES
>> instances substantially high amount of connections will be created and they
>> will be gradually reduced after sometime. Is this an acceptable behavior?
>>
>> Also, we could find the recommended max_connections to configure in some
>> products [1][2], but couldn't find anything for ES. So, what is the
>> recommended value for ES?
>> For the time being we will increase the max connections to 300 and
>> proceed with testing.
>>
>> Your earliest response is highly appreciated.
>>
>> [1] https://docs.wso2.com/display/AM200/Tuning+Performance
>> [2]
>> https://docs.wso2.com/display/Governance510/Performance+Tuning+Recommendations
>>
>> [3]
>>
>> [2016-07-13 07:50:40,014] ERROR
>> {org.wso2.carbon.registry.core.dataaccess.TransactionManager} -  Failed to
>> start new registry transaction.
>> com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:
>> Could not create connection to database server. Attempted reconnect 3
>> times. Giving up.
>> at sun.reflect.GeneratedConstructorAccessor107.newInstance(Unknown Source)
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
>> at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
>> at com.mysql.jdbc.Util.getInstance(Util.java:387)
>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:917)
>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:896)
>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:885)
>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860)
>> at
>> com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2165)
>> at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2090)
>> at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:795)
>> at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:44)
>> at sun.reflect.GeneratedConstructorAccessor76.newInstance(Unknown Source)
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
>> at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
>> at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:400)
>> at
>> com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:327)
>> at
>> org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278)
>> at
>> org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182)
>> at
>> org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701)
>> at
>> org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635)
>> at
>> org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188)
>> at
>> org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:128)
>> at
>> org.wso2.carbon.registry.core.jdbc.dataaccess.JDBCTransactionManager.beginTransaction(JDBCTransactionManager.java:80)
>> at
>> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.beginTransaction(EmbeddedRegistry.java:443)
>> at
>> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.get(EmbeddedRegistry.java:505)
>> at
>> 

Re: [Dev] [DEV][IS] User Store error while doing GREG performance testing in clustered setup

2016-06-01 Thread Thushara Ranawaka
Hi Chaminda,

Yes, I agree with Chandana. I didn't see any hazelcast[1] related errors in
the stack-trace.

[1] - HazelcastException

Thanks,
Thushara.

On Wed, Jun 1, 2016 at 1:20 PM, Chandana Napagoda <chand...@wso2.com> wrote:

> Hi Chaminda,
>
> I don't think REGISTRY-3430 <https://wso2.org/jira/browse/REGISTRY-3430>[1]
> and above issue are sameone.
>
> @Thushara, Is the complete stack traces same as  in REGISTRY-3430?
>
> [1]. https://wso2.org/jira/browse/WSAS-2019
>
> On Wed, Jun 1, 2016 at 12:11 PM, Chaminda Jayawardena <chami...@wso2.com>
> wrote:
>
>> I noticed same during GREG5.2.0 Release testing, reported in [1] and also
>> couldn't find the exact cause for the issue.
>>
>> [1] https://wso2.org/jira/browse/REGISTRY-3430
>>
>> On Wed, Jun 1, 2016 at 11:18 AM, Thushara Ranawaka <thusha...@wso2.com>
>> wrote:
>>
>>> Hi Everyone,
>>>
>>> This is continuously reproducible for 100 concurrent users in a single
>>> node G-Reg setup.
>>> Any idea of why this is happen.
>>>
>>> TID: [-1234] [] [2016-05-30 13:12:07,771] ERROR
>>> {org.wso2.carbon.user.core.common.AbstractUserStoreManager} -  Error
>>> occurred while accessing Java Security Manager Privilege Block
>>> {org.wso2.carbon.user.core.common.AbstractUserStoreManager}
>>> TID: [-1234] [] [2016-05-30 13:13:00,324] ERROR
>>> {org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager} -  Error
>>> occurred while accessing Java Security Manager Privilege Block
>>> {org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager}
>>> TID: [-1234] [] [2016-05-30 13:13:03,183] ERROR {rxt-permissions} -
>>>  org.mozilla.javascript.WrappedException: Wrapped
>>> org.wso2.carbon.user.core.UserStoreException: Error occurred while
>>> accessing Java Security Manager Privilege Block (eval code#1(eval)#86)
>>> at
>>> org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
>>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
>>> at
>>> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
>>> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>>> at
>>> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_52(/scripts/permissions/permissions.js:594)
>>> at
>>> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
>>> at
>>> org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
>>> at
>>> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_53(/scripts/permissions/permissions.js:637)
>>> at
>>> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
>>> at
>>> org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
>>> at
>>> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_54(/scripts/permissions/permissions.js:658)
>>> at
>>> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
>>> at
>>> org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
>>> at
>>> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_60(/scripts/permissions/permissions.js:751)
>>> at
>>> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
>>> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>>> at
>>> org.jaggeryjs.rhino.store.modules.c5._c_anonymous_8(/store/modules/page-decorators.js:200)
>>> at
>>> org.jaggeryjs.rhino.store.modules.c5.call(/store/modules/page-decorators.js)
>>> at
>>> org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
>>>
>>>
>>>
>>>
>>> Caused by: org.wso2.carbon.user.core.UserStoreException: Error occurred
>>> while accessing Java Security Manager Privilege Block
>>> at
>>> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.callSecure(JDBCAuthorizationManager.java:1378)
>>> at
>>> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.isUserAuthorized(JDBCAuthorizationManager.java:168)
>>> at sun.reflect.GeneratedMethodAccessor195.invoke(Unknown Source)
>>>
>>> Thanks,
>>> Thushara.
>>>
>>> On Thu, Mar 31, 2016 at 9:27 AM, Danesh Kuruppu <dan...@wso2.com> wrote:
>>>
>>>> Hi all,
>>>>
>>>> I am currently doing GREG performance test

Re: [Dev] [DEV][IS] User Store error while doing GREG performance testing in clustered setup

2016-05-31 Thread Thushara Ranawaka
Hi Everyone,

This is continuously reproducible for 100 concurrent users in a single node
G-Reg setup.
Any idea of why this is happen.

TID: [-1234] [] [2016-05-30 13:12:07,771] ERROR
{org.wso2.carbon.user.core.common.AbstractUserStoreManager} -  Error
occurred while accessing Java Security Manager Privilege Block
{org.wso2.carbon.user.core.common.AbstractUserStoreManager}
TID: [-1234] [] [2016-05-30 13:13:00,324] ERROR
{org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager} -  Error
occurred while accessing Java Security Manager Privilege Block
{org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager}
TID: [-1234] [] [2016-05-30 13:13:03,183] ERROR {rxt-permissions} -
 org.mozilla.javascript.WrappedException: Wrapped
org.wso2.carbon.user.core.UserStoreException: Error occurred while
accessing Java Security Manager Privilege Block (eval code#1(eval)#86)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at
org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_52(/scripts/permissions/permissions.js:594)
at
org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
at
org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_53(/scripts/permissions/permissions.js:637)
at
org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
at
org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_54(/scripts/permissions/permissions.js:658)
at
org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
at
org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_60(/scripts/permissions/permissions.js:751)
at
org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at
org.jaggeryjs.rhino.store.modules.c5._c_anonymous_8(/store/modules/page-decorators.js:200)
at
org.jaggeryjs.rhino.store.modules.c5.call(/store/modules/page-decorators.js)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)




Caused by: org.wso2.carbon.user.core.UserStoreException: Error occurred
while accessing Java Security Manager Privilege Block
at
org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.callSecure(JDBCAuthorizationManager.java:1378)
at
org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.isUserAuthorized(JDBCAuthorizationManager.java:168)
at sun.reflect.GeneratedMethodAccessor195.invoke(Unknown Source)

Thanks,
Thushara.

On Thu, Mar 31, 2016 at 9:27 AM, Danesh Kuruppu  wrote:

> Hi all,
>
> I am currently doing GREG performance testing in clustered setup. It is a
> two nodes cluster fronted with nginx and we have enabled sticky sessions.
> We have JDBC user store (mysql DB) shared with both nodes.
>
> User store exception[1][2] occurred while performing asset crud operation
> in publisher for 20+ concurrent users.
>
> Any idea of why this is happen.
> Thanks
> Danesh
>
> [1]
> Caused by: org.wso2.carbon.user.core.UserStoreException: Error occurred
> while accessing Java Security Manager Privilege Block
> at
> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.callSecure(JDBCAuthorizationManager.java:1378)
> at
> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.isUserAuthorized(JDBCAuthorizationManager.java:168)
> at sun.reflect.GeneratedMethodAccessor169.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
> ... 99 more
> Caused by: java.security.PrivilegedActionException:
> java.lang.reflect.InvocationTargetException
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.callSecure(JDBCAuthorizationManager.java:1363)
> ... 104 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.GeneratedMethodAccessor247.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager$2.run(JDBCAuthorizationManager.java:1366)
> ... 106 more
>
> [2]
> Caused by: org.wso2.carbon.user.core.UserStoreException: Error occurred
> while accessing Java Security Manager Privilege Block
> at
> 

Re: [Dev] [DEV][Vote] Release WSO2 Puppet Modules 2.0.0

2016-05-23 Thread Thushara Ranawaka
Hi Everyone,

Tested the default deployment for G-Reg 5.1.0 and went through
configuration and found no blocking issues.

[X] Stable - Go ahead and release

Thanks,
Thushara.


On Tue, May 24, 2016 at 9:48 AM, Anuruddha Liyanarachchi <
anurudd...@wso2.com> wrote:

> Hi
>
> *[X] Stable* - go ahead and release
>
> verified the following.
>
>- README Files
>- License Headers
>
> Tested the default and kubernetes deployment for the following products
> puppet modules.
>
>- WSO2 BPS
>- WSO2 ESB
>- WSO2 AS
>
>
> On Wed, May 18, 2016 at 10:24 PM, Chamila De Alwis 
> wrote:
>
>> Hi,
>>
>>
>> This is the first release candidate (RC1) for WSO2 Puppet Modules 2.0.0.
>> Please download, verify, and vote. Voting will be open for 72 hours.
>>
>> [ ] Broken - Do not release (explain why)
>>
>> [ ] Stable - Go ahead and release
>>
>> Main features and fixes released with this release:
>>
>>-
>>
>>Updated Hiera data hierarchy to include deployment Platform
>>-
>>
>>Kubernetes based workflow supported, based on
>>wso2/kubernetes-artifacts
>>-
>>
>>system_file_list to copy files with scope outside of CARBON_HOME
>>-
>>
>>Platform specific configuration data sets for Kubernetes
>>-
>>
>>   Kubernetes deployment-ready Puppet modules
>>   -
>>
>>   Data sources matching a distributed set of Kubernetes MySQL
>>   Services
>>   -
>>
>>Streamlined Default platform YAML configuration data
>>-
>>
>>Optional update flags to control product pack and JDK cleanup
>>-
>>
>>Minor fixes on the Hiera data
>>-
>>
>>   Issues in YAML file formatting
>>   -
>>
>>   Puppet templates for identity.xml added to relevant products
>>   -
>>
>>   Proxy Port values assigned to different products are streamlined
>>   -
>>
>>   Hostname entries streamlined in default deployment platform data
>>   set
>>   -
>>
>>   Pass Through Port Mapping for WSO2 ESB
>>   -
>>
>>   Fixing Thrift Server IP configuration for WSO2 MB
>>   -
>>
>>   SecureVault parameters made optional
>>   -
>>
>>   Reusing Data Source related fields in YAML by inheriting from
>>   wso2/common.yaml
>>   -
>>
>>   Fix Symbolic Link creation in WSO2 DAS
>>   -
>>
>>   Fixed installation directory creation failure when parent
>>   directory doesn’t exist
>>   -
>>
>>   Removed use of Kubernetes Master details in Clustering templates
>>   -
>>
>>   Streamlined use of hiera, hiera_array, and hiera_hash lookup
>>   -
>>
>>WSO2 API Manager Gateway Manager-Worker separate profiles in Hieradata
>>-
>>
>>WSO2 PPaaS Puppet module and Hiera data removed
>>-
>>
>>Deprecated older product versions
>>-
>>
>>   WSO2 AM 1.9.1
>>   -
>>
>>   WSO2 BRS 2.1.0
>>   -
>>
>>   WSO2 GREG 4.6.0
>>   -
>>
>>   WSO2 IS 5.0.0
>>   -
>>
>>   WSO2 MB 3.0.0
>>   -
>>
>>Improve Puppet Vagrant setup to use PUPPET_HOME environment variable
>>-
>>
>>Included sample config.yaml files in the Puppet Vagrant setup to
>>quickly test standalone and distributed deployments
>>-
>>
>>Fixed Java System Prefs location issue
>>-
>>
>>Included YAML Style Guide for Hiera data files
>>
>>
>>
>> This release is based on the following tag:
>>
>> https://github.com/wso2/puppet-modules/releases/tag/v2.0.0-rc1
>>
>> Release verification guide can be found at:
>>
>> https://docs.wso2.com/display/PM200/Setting+up+the+Development+Environment
>>
>> Source and distribution packages can be downloaded at:
>>
>> https://github.com/wso2/puppet-modules/releases/tag/v2.0.0-rc1
>>
>>
>> Regards,
>> Chamila de Alwis
>> Committer and PMC Member - Apache Stratos
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Thanks and Regards,*
> Anuruddha Lanka Liyanarachchi
> Software Engineer - WSO2
> Mobile : +94 (0) 712762611
> Tel  : +94 112 145 345
> a nurudd...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; 
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GREG] Invalid value error for REG_CREATED_TIME column in REG_RESOURCE with mysql 5.7

2016-05-10 Thread Thushara Ranawaka
Hi Thilini,

AFAIU you workaround need to be updated with the current timestamp[1][2].
Setting default value to zero is not nice. You might have to figure out the
correct syntax for other DB types and test against them.


[1] - DEFAULT CURRENT_TIMESTAMP
[2] -
http://stackoverflow.com/questions/168736/how-do-you-set-a-default-value-for-a-mysql-datetime-column

Thanks,
Thushara.

On Tue, May 10, 2016 at 11:52 AM, Thilini Cooray  wrote:

> Hi GReg team,
>
> We encounter following issue [1] while testing API Manager with MySQL 5.7
> MySQL 5.7 has enabled NO_ZERO_IN_DATE, NO_ZERO_DATE policies by default.
> Therefore it does not allow 0 as a valid default value for date/time.
>
> As a workaround we can set MySQL server to accept 0 changing the default
> server settings if the database owner agrees on it.
> [2] contains the related table creation script.
>
> Appreciate your feedback on a fix for this.
>
> [1] https://wso2.org/jira/browse/APIMANAGER-4645
>
> [2] CREATE TABLE IF NOT EXISTS REG_RESOURCE (
> REG_PATH_ID INTEGER NOT NULL,
> REG_NAMEVARCHAR(256),
> REG_VERSION INTEGER NOT NULL AUTO_INCREMENT,
> REG_MEDIA_TYPE  VARCHAR(500),
> REG_CREATOR VARCHAR(31) NOT NULL,
> REG_CREATED_TIMETIMESTAMP NOT NULL *DEFAULT 0*,
> REG_LAST_UPDATORVARCHAR(31),
> REG_LAST_UPDATED_TIMETIMESTAMP NOT NULL *DEFAULT 0*,
> REG_DESCRIPTION VARCHAR(1000),
> REG_CONTENT_ID  INTEGER,
> REG_TENANT_ID INTEGER DEFAULT 0,
> REG_UUID VARCHAR(100) NOT NULL,
> CONSTRAINT PK_REG_RESOURCE PRIMARY KEY(REG_VERSION,
> REG_TENANT_ID)
> )ENGINE INNODB;
>
> Thanks.
>
> --
> Best Regards,
>
> *Thilini Cooray*
> Software Engineer
> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
> E-mail : thili...@wso2.com
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; 
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [PC] Getting user names from registry log entries

2016-05-09 Thread Thushara Ranawaka
Hi Sameera,

Even though test_user did 868, 869 and 870 activities the registry delegate
the process to wso2.system.user.
For example when you creating a soap service using WSDL soap service
creation entries are done by wso2.system.user.
However you should able to see actions done using test_user for process
assets under test_user. But not the automated ones done by wso2.system.user.
This is the behaviour and a known limitation in G-Reg. In your case you
need to write a new component to store these audit logs.


Thanks,
Thushara.


On Thu, May 5, 2016 at 6:51 PM, Sameera Gunarathne 
wrote:

> Hi all,
>
> I am trying to get user name for log entries by accessing REG_LOG table at
> the registry. There it is recorded as the wso2.system.user. I have created
> a separate user called "test_user" along with the "admin" user. The
> activities done by the "test_user" also recorded as the wso2.system.user at
> the REG_LOG.
>
>
> ​
> I need to know is there a way to get the user names for these log entries
> as it is created at the mgmt console?
> --
> Sameera Gunarathne
> Software Engineer, WSO2 Inc. http://wso2.com
> 
> Email: samee...@wso2.com
> Mobile: +94714155561
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; 
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] carbon-registry 4.5.5-alpha released to staging

2016-04-27 Thread Thushara Ranawaka
Hi Build team,

Please close this and provide the repo URL

-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; 
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Governance Registry 5.2.0 Released !!

2016-04-25 Thread Thushara Ranawaka
WSO2 Governance Registry team is pleased to announce the release of WSO2
Governance Registry 5.2.0.!!

WSO2 Governance Registry provides end-to-end governance for enterprises. IT
professionals can streamline application development, testing and
deployment processes, as well as manage service lifecycles and assets using
WSO2 Governance Registry. The community and social aspects of WSO2
Governance Registry will act as an enabler for collaboration between
distributed teams, converting traditional human-centric tasks into key
assets of the governance process. It also includes business runtime
governance requirements through its interoperability with well-known
external monitoring and reporting applications.

For more information on WSO2 Governance Registry and to download the
product please visit http://wso2.com/products/governance-registry. Also,
take a look at the online product documentation

 and quick start guide
.

*How to Run*

   1. Extract the downloaded zip
   
   2. Go to the bin directory in the extracted folder
   3. Run the wso2server.sh or wso2server.bat as appropriate
   4. Launch a web browser and navigate to https://localhost:9443/carbon to
   access the admin console
   5. Navigate to https://localhost:9443/publisher to access the publisher
   web app
   6. Navigate to https://localhost:9443/store to access the store web app
   7. Use "admin", "admin" as the username and password to login as an admin

WSO2 Governance Registry 5.2.0 includes following features, improvements
and bug fixes.Features

List of features done in G-Reg 5.2.0

Improvement

List of improvements done in G-Reg 5.2.0

Bug Fixes

List of bug Fixes done in G-Reg 5.2.0

Key Features of WSO2 Governance RegistrySOA Governance

   - Flexible service registry for any type of services including REST
   services, JSON services, SOAP services and Thrift services
   - Govern all aspects of services including service descriptions, service
   consumption, service usage, service discovery, service lifecycle management
   and service policies
   - Service and application discovery for third-party servers
   - Dependency management and impact analysis
   - Graphical visualization (dependency graphs) of artifacts with
   associated resources and dependent artifacts enabling users to perform
   impact analysis when changes are made to an artifact
   - Policy management for both design-time and run-time
   - Comprehensive lifecycle management
   - Act as a policy store for any Policy Enforcement Point (PEP) including
   WSO2 Enterprise Service Bus and WSO2 Application Server
   - User notification and alert management supported with the ability to
   use email templates
   - Role based authentication and authorization leveraging information
   stored in common user repositories such as
   - LDAP or MS Active DirectoryAuditing, logging and reporting

Configuration Governance

   - Govern any kind of server/system configuration
   - Version and revision management with checkpointing & rollback
   - Full lifecycle management spanning across development, testing,
   staging and production environments
   - Integrates to any 3rd party product via command-line clients
   - Deeply integrated to all WSO2 Carbon middleware products

Development Process Governance

   - Govern all aspects of the develop-build-test-stage-production process
   - Integration with source code control systems such as SVN
   - Integration with 3rd party continuous integration (CI) systems such as
   Jenkins or Atlassian Bamboo
   - Integration with popular build systems such as Maven or Ant
   - Comprehensive end-to-end application lifecycle management and
   governance

Framework for Governing Anything

   - Define any type of governance asset
   - Customizable repository extension points, executable via manual
   intervention (aspects) and by the framework (handlers) along with relevant
   evaluation criteria (filters)
   - Integrated with 3rd party products and external systems
   - Repository APIs: JCR
   - Registry APIs: REST, JAXR
   - Governance APIs: REST, Atom/AtomPP, SOAP
   - Centrally integrated with the latest version of WSO2 Enterprise Store
   2.0 and WSO2 API Manager
   - Create and manage registry resources, APIs and Swagger instances with
   the newly introduced Governance Centre UI
   - Installation provision for API-M, enabling API publisher and store
   functionalities, including API creation, publishing, subscription, token
   generation and regeneration within WSO2 Governance Registry
   - Graphical differentiation view to compare two inter-related assets
   - New asset association UIs and 

[Dev] [VOTE] Release WSO2 Governance Registry 5.2.0 RC 2

2016-04-19 Thread Thushara Ranawaka
Hi Devs,

WSO2 Governance Registry 5.2.0 RC2 Release Vote.

This release fixes the following issues:
https://wso2.org/jira/browse/REGISTRY-3561?filter=13023
Please download, test and vote. Please refer the release verification guide
for detailed information on verifying this release.

Source & binary distribution files:
https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.2.0/rc2/

Maven staging repo:
*https://maven.wso2.org/nexus/content/repositories/orgwso2greg-1002/
*

The tag to be voted upon:
https://github.com/wso2/product-greg/tree/v5.2.0-rc2

[+] Stable - go ahead and release
[-]  Broken - do not release (please explain why)

Thanks and Regards
G-Reg team

-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; 
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 Governance Registry 5.2.0 RC 1

2016-04-12 Thread Thushara Ranawaka
Hi Devs,

WSO2 Governance Registry 5.2.0 RC1 Release Vote.

This release fixes the following issues:
https://wso2.org/jira/browse/REGISTRY-3561?filter=13023
Please download, test and vote. Please refer the release verification guide
for detailed information on verifying this release.

Source & binary distribution files:
https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.2.0/rc1/

Maven staging repo:
https://maven.wso2.org/nexus/content/repositories/orgwso2greg-1001

The tag to be voted upon:
https://github.com/wso2/product-greg/tree/v5.2.0-rc1

[+] Stable - go ahead and release
[-]  Broken - do not release (please explain why)

Thanks and Regards
G-Reg team

-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; 
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Governance Registry 5.2.0 Beta Released

2016-04-01 Thread Thushara Ranawaka
WSO2 Governance Registry team is pleased to announce the Beta release of
WSO2 Governance Registry 5.2.0.

Please download WSO2 Governance Registry 5.2.0 Beta from this
location[1][2]. Kindly find the official documentation from here[5].This
release includes following features, improvements and bug fixes. To see the
full list please visit jira release note[3]
Improvement

   - [REGISTRY-3455 ] -
   [STORE][PUBLISHER] Add a header and footer to the Swagger UI
   - [REGISTRY-3465 ] -
   [STORE][PUBLISHER] Add a hover tip over the asset type icon indicating the
   type
   - [REGISTRY-3474 ] - Support
   operations for content type artifacts in governance rest api
   - [REGISTRY-3493 ] - Need to
   have association type icons

Bug

   - [REGISTRY-3246 ] -
   Exception occurred when login to the store in windows
   - [REGISTRY-3335 ] -
   Unnecessary warning message once service promoted to "published to API
   store' state.
   - [REGISTRY-3337 ] -
   Production endpoint is set to null for APIs which are published from rest
   services.
   - [REGISTRY-3362 ] -
   Incorrect message, if we add a duplicate rxt file
   - [REGISTRY-3376 ] - In
   tenant anonymous view for REST services swagger IU and swagger down load
   links are not shown
   - [REGISTRY-3402 ] -
   UserStoreException during tenant log in
   - [REGISTRY-3412 ] - Asset
   Menu issue after deleting an asset
   - [REGISTRY-3441 ] - About
   page displaying incorrect product version
   - [REGISTRY-3452 ] -
   [PUBLISHER] The Show Dependency button is stickies to the details table of
   content type RXTs
   - [REGISTRY-3454 ] -
   [PUBLISHER] After selecting an asset from association list - part of drop
   down is remain below to selection menu
   - [REGISTRY-3456 ] - [STORE]
   The OPTIONs label should remain fixed when scrolling down
   - [REGISTRY-3457 ] -
   [STORE][PUBLISHER] The code view of assets should have a consistent color
   scheme across both applications
   - [REGISTRY-3459 ] - [STORE]
   Add missing class to the details page (md,sm and xs)
   - [REGISTRY-3461 ] -
   [PUBLISHER][STORE] The loading assets message should have three dots
   - [REGISTRY-3471 ] -
   [PUBLISHER] Error indicates that the user has not provided a username with
   insufficient privileges error
   - [REGISTRY-3485 ] -
   Publisher/Store login once changing the keystore is not working
   - [REGISTRY-3486 ] - Only
   'policy' is shown under 9 square button in delete page
   - [REGISTRY-3487 ] -
   [Store][All List view] Bookmark feature is still viewable for wadl and wsdl
   - [REGISTRY-3488 ] -
   [STORE][PUBLISHER] Information update notifications do not appear in the
   notification view
   - [REGISTRY-3489 ] -
   [STORE][PUBLISHER] All AJAX calls in IE browser are cached
   - [REGISTRY-3490 ] -
   [Publisher] Life cycle Load history icon continuously Processing in IE 11.
   - [REGISTRY-3491 ] - [IE
   11][publisher]Empty White message is populating when adding a note
   - [REGISTRY-3492 ] -
   Confirmation pop up does not appear when editting life cycles
   - [REGISTRY-3494 ] - Report
   generation is not working in clustered setup.
   - [REGISTRY-3495 ] - [STORE]
   The dependency view error messages reference "publisher" name even in the
   Store
   - [REGISTRY-3496 ] - Created
   Date is truncated in search reports
   - [REGISTRY-3497 ] - tenant
   anonymous download link is not working
   - [REGISTRY-3498 ] -
   [Publisher] Endpoint list & overview pages are not rendered properly
   - [REGISTRY-3500 ] -
   Significant delay in syncing 

[Dev] WSO2 Governance Registry 5.2.0 Alpha2 Released

2016-03-23 Thread Thushara Ranawaka
WSO2 Governance Registry team is pleased to announce the Alpha2 release of
WSO2 Governance Registry 5.2.0.

Please download WSO2 Governance Registry 5.2.0 Alpha2 from this
location[1][2]. Kindly find the official documentation from here[5].This
release includes following features, improvements and bug fixes. To see the
full list please visit jira release note[3]
Improvement

   - [REGISTRY-2489 ] - Show
   diff view of XMLs in publisher and store properly
   - [REGISTRY-3291 ] - [Store]
   Show "diffview" only for content type assets
   - [REGISTRY-3478 ] - Adding
   a popover for search options

Bug

   - [REGISTRY-3233 ] -
   anonymous details view is not working for tenant users
   - [REGISTRY-3368 ] -
   [Governance Center] Tenant annonymous user cant access Diff-view
   - [REGISTRY-3372 ] -
   [PUBLISHER] Alignment issue with the Publisher Category drop down and the
   Search box
   - [REGISTRY-3391 ] - Deleted
   files are not indicated in the status check via the checkin-client
   - [REGISTRY-3421 ] - Search
   inconsistency in publisher home page, asset pages and store
   - [REGISTRY-3422 ] - Error
   500 page returned when searching for assets through each asset page
   - [REGISTRY-3431 ] - Ability
   to add assets that have ampersand(&) in name
   - [REGISTRY-3444 ] -
   [PUBLISHER] The search-results page should provide a title
   - [REGISTRY-3445 ] -
   [PUBLISHER] Remove the namespace attribute from the listing page
   - [REGISTRY-3449 ] -
   [PUBLISHER] Remove the space between the advance search button and the
   search area
   - [REGISTRY-3450 ] -
   [PUBLISHER] Remove the provider filter criteria in the asset listing page
   - [REGISTRY-3451 ] -
   [PUBLISHER] The table headings visible in the details pages of content type
   RXTs are not uniform
   - [REGISTRY-3455 ] -
   [STORE][PUBLISHER] Add a header and footer to the Swagger UI
   - [REGISTRY-3459 ] - [STORE]
   Add missing class to the details page (md,sm and xs)
   - [REGISTRY-3461 ] -
   [PUBLISHER][STORE] The loading assets message should have three dots
   - [REGISTRY-3472 ] - [STORE]
   The compare with option should only be visible for content type RXTs
   - [REGISTRY-3475 ] - LC
   state change notification missing
   - [REGISTRY-3476 ] - Backend
   throws null pointer exception when publishing service without endpoint
   - [REGISTRY-3477 ] - [Store]
   Backend gives an error When clicking an artifact in IE 11.
   - [REGISTRY-3480 ] -
   Browsing Services deployed in Publisher give 500 Error when Log Level is
   changed to debug
   - [REGISTRY-3481 ] -
   'associationType' search value must be case sensitive.
   - [REGISTRY-3483 ] - User
   reviews are not automatically updating in IE 11
   - [REGISTRY-3484 ] - Rename
   windowProxy.js

Task

   - [REGISTRY-3364 ] - [Store]
   Optimize asset listing page loading

Your feedback are most welcome !!! Please report all the JIRAs at [4] and
specify the affected version as 5.2.0 Alpha.

[1] -
https://github.com/wso2/product-greg/releases/download/v5.2.0-alpha2/wso2greg-5.2.0-alpha2.zip
[2] -
https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.2.0/alpha2/wso2greg-5.2.0-alpha2.zip
[3] - https://wso2.org/jira/browse/REGISTRY/fixforversion/12240
[4] - https://wso2.org/jira/browse/REGISTRY
[5] -
https://docs.wso2.com/display/Governance520/WSO2+Governance+Registry+Documentation

Thanks,
ES/Governance Registry Teams.

-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; 
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Governance Registry 5.2.0 Alpha Released

2016-03-19 Thread Thushara Ranawaka
WSO2 Governance Registry team is pleased to announce the Alpha release of
WSO2 Governance Registry 5.2.0.

Please download WSO2 Governance Registry 5.2.0 Alpha from this
location[1][2]. Kindly find the official documentation from here[5].This
release includes following features, improvements and bug fixes. To see the
full list of fixed issues please visit jira release note[3]
New Feature

   - [REGISTRY-3182 ] - Store
   search text box should maintain a list of last five searches performed

Improvement

   - [REGISTRY-2782 ] -
   internationalization is not handled by publisher/store
   - [REGISTRY-2998 ] -
   [publisher]in add button remove a artifact name
   - [REGISTRY-3013 ] -
   Readonly only attributes should appear with grey background field under
   WSO2 Admin Console
   - [REGISTRY-3088 ] -
   [Publisher] show association name
   - [REGISTRY-3094 ] - Store
   landing page does not show any of the added assets when not logged in
   - [REGISTRY-3103 ] - "We
   couldn't find anything for you" message is misleading need proper handling
   - [REGISTRY-3106 ] - Show
   current search query with search result page
   - [REGISTRY-3114 ] -
   [Publisher] Adding name and version validation for content type asset
   extensions.
   - [REGISTRY-3117 ] -
   [Registry] Artifacts moved from registry check in client not getting indexed
   - [REGISTRY-3122 ] - Make
   store search box display what asset type is searched
   - [REGISTRY-3124 ] - Provide
   a way to get content of content artifacts via governance REST API
   - [REGISTRY-3127 ] - Add
   realm parameter to Basic auth challenge of the Governance REST API
   - [REGISTRY-3130 ] - Move
   unified governance registry metadata module from carbon-registry to
   carbon-governance
   - [REGISTRY-3143 ] -
   Localize hbs files
   - [REGISTRY-3144 ] -
   SOAPService description is null in publisher instead of empty
   - [REGISTRY-3148 ] -
   Improvements for option-text field.
   - [REGISTRY-3156 ] - Add new
   property to store lifecycle state transition time in asset.
   - [REGISTRY-3160 ] - Test
   Case for Publisher login
   - [REGISTRY-3199 ] - Default
   bootstrap classes overridden by custom CSS Related to STORE-1145
   - [REGISTRY-3219 ] -
   Governance REST API should support to access public asset without security
   - [REGISTRY-3220 ] -
   Governance REST API should provide options to pass tenant id
   - [REGISTRY-3224 ] -
   [Governance Center][Store]Add diff-view implementation to store
   - [REGISTRY-3227 ] -
   Selenium long running tests for publisher
   - [REGISTRY-3238 ] - Naming
   consistency issue in [Nine dot button] Publisher/Store
   - [REGISTRY-3270 ] - [STORE]
   Rename copy to clipboard button to copy URL in asset details page
   - [REGISTRY-3272 ] - Support
   bi-directional associations in GC-Publisher
   - [REGISTRY-3311 ] - Improve
   execution time of the sample populator
   - [REGISTRY-3312 ] - [Store]
   Avoid refreshing page when adding a subscription
   - [REGISTRY-3314 ] - Remove
   Left side vacant space in diff view
   - [REGISTRY-3315 ] - [Store]
   Remove more details pop up in store asset thumbnail
   - [REGISTRY-3317 ] - Asset
   count display on publisher/store search results
   - [REGISTRY-3356 ] - Change
   the font color in Tags Select2
   - [REGISTRY-3394 ] - When
   there are no any traversableStates defined in the LC proper message should
   be promted
   - [REGISTRY-3413 ] - Update
   the Getting the 

Re: [Dev] [G-Reg] Support for Regex pattern in store

2016-02-28 Thread Thushara Ranawaka
Hi Pubudu,

Thanks for pointing out this.
For the recored from the user's perspective we are deprecating the use of
wildcards in GC.

Thanks,
Thushara.

On Mon, Feb 29, 2016 at 10:51 AM, Pubudu Priyashan <pubu...@wso2.com> wrote:

> Great, let's do that. Thanks.
>
> Cheers,
> Pubudu.
>
> Pubudu D.P
> Senior Software Engineer - QA Team | WSO2 inc.
> Mobile : +94775464547
>
> On Mon, Feb 29, 2016 at 10:48 AM, Thushara Ranawaka <thusha...@wso2.com>
> wrote:
>
>> [+dev][+documentation team]
>>
>> Hi Pubudu,
>>
>> We don't support regex in GReg 5.2.0 and as per the offline discussion
>> had with Chathura, Isurwan and Chandana we will not support in the future
>> as well. * and ? is the only two wild cards that we support ATM. How ever
>> as per your request we identified that this behaviour can be append as a
>> note in this[1] documentation.
>>
>> [1] -
>> https://docs.wso2.com/display/Governance510/Searching+for+Assets+Using+Advanced+Search+Operators
>>
>> Thanks,
>> Thushara.
>>
>>
>> On Mon, Feb 29, 2016 at 10:34 AM, Pubudu Priyashan <pubu...@wso2.com>
>> wrote:
>>
>>> Hello G-Reg team,
>>>
>>> Can someone please provide any information about the $subject and
>>> currently expected behavior in 5.2.0 release? I can see some of the
>>> patterns such as '*','?' are supported but some are not [1]. It might be a
>>> good idea to include this information in Docs which patterns are supported
>>> and which patterns are not, with other associated areas [2]. Thanks!
>>>
>>> [1] https://wso2.org/jira/browse/REGISTRY-3329
>>> [2] https://wso2.org/jira/browse/DOCUMENTATION-3072
>>>
>>> Cheers,
>>> Pubudu D.P
>>> Senior Software Engineer - QA Team | WSO2 inc.
>>> Mobile : +94775464547
>>>
>>
>>
>>
>> --
>> Thanks,
>> Thushara Kasun Ranawaka
>> Software Engineer
>> WSO2 Inc.; <http://www.wso2.com>
>> lean.enterprise.middleware
>> Mobile : *+94 (0) 773438949 <%2B94%20%280%29%20773438949>*
>> *thusha...@wso2.com <thusha...@wso2.com>*
>>
>
>


-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; <http://www.wso2.com>
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com <thusha...@wso2.com>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [G-Reg] Support for Regex pattern in store

2016-02-28 Thread Thushara Ranawaka
[+dev][+documentation team]

Hi Pubudu,

We don't support regex in GReg 5.2.0 and as per the offline discussion had
with Chathura, Isurwan and Chandana we will not support in the future as
well. * and ? is the only two wild cards that we support ATM. How ever as
per your request we identified that this behaviour can be append as a note
in this[1] documentation.

[1] -
https://docs.wso2.com/display/Governance510/Searching+for+Assets+Using+Advanced+Search+Operators

Thanks,
Thushara.


On Mon, Feb 29, 2016 at 10:34 AM, Pubudu Priyashan  wrote:

> Hello G-Reg team,
>
> Can someone please provide any information about the $subject and
> currently expected behavior in 5.2.0 release? I can see some of the
> patterns such as '*','?' are supported but some are not [1]. It might be a
> good idea to include this information in Docs which patterns are supported
> and which patterns are not, with other associated areas [2]. Thanks!
>
> [1] https://wso2.org/jira/browse/REGISTRY-3329
> [2] https://wso2.org/jira/browse/DOCUMENTATION-3072
>
> Cheers,
> Pubudu D.P
> Senior Software Engineer - QA Team | WSO2 inc.
> Mobile : +94775464547
>



-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; 
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Swaggers are not showing up after GReg migration 5.0.0 > 5.0.1

2015-10-23 Thread Thushara Ranawaka
Hi All,

I try reindexing several times but swaggers didn't show up. Then I changed
the JSONIndexer to PlainTextIndexer in registry.xml and indexed. Now I can
see swaggers. Please advice.

-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; 
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] How to change the title and favicon of the page by editing a ES extension.

2015-09-17 Thread Thushara Ranawaka
Hi ES team,

How to do the $subject. Currently we use something like this as title
WSO2 Governance Center - Publisher | WSO2 Enterprise Store
Publisher
How to get rid of it and add a new title to the page? I try this by adding
title tag to the header.hbs but it didn't override the original title tag.
Looks like we need to remove it from this page[1] since we cant override
exiting title and favicon. I created a jira[2] for this. Please advice.

[1] -
https://github.com/wso2/carbon-store/blob/master/apps/publisher/themes/default/pages/single-col-fluid.hbs
[2] - https://wso2.org/jira/browse/STORE-1107
-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; 
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Endpoints stored in registry can not be deleted if there is associations attached to it.

2015-06-16 Thread Thushara Ranawaka
Hi Eranda,

Thanks for the quick reply.
Since this check was implemented to stop missing associations in endpoints
which means we need to keep the store location naming convention[1] as it
is. I have one small question if we keep this validation in delete
functionality user have to crete a new endpoint each and every time and
attach associations or else update the endpoint and reattached the missing
associations, Is this the expected behaviour ?

Thanks,
Thushara.

On Mon, Jun 15, 2015 at 8:33 PM, Eranda Sooriyabandara era...@wso2.com
wrote:

 This is the behavior we defined. Endpoints shouldn't be missing when we
 refer them, in Service or WSDL.

 Thanks
 Eranda


 On Monday, June 15, 2015, Thushara Ranawaka thusha...@wso2.com wrote:

 Hi,

 In EndpointMediaTypeHandler[1] when we try to delete an endpoint there is
 a special validation to check whether endpoint have any dependancies
 attached and throw an exception[find the attached screen shot]. Because of
 this validation user can't delete or even edit endpoint
 address(URL) without removing the associations. I was enable to discover
 such behaviour in other media types. Is this dependancy check added for a
 reason or else can we get rid of it by letting user to edit endpoint
 details?.

 I try this out locally and currently facing some issues due to missing
 association after I update the endpoint address(URL). Looks like when we
 update the endpoint address(URL) we are temporally deleting
 endpoint artifact[2] then it cant find previous dependancies for some
 reason.

 public void delete(RequestContext requestContext) throws RegistryException {
 if (!CommonUtil.isDeleteLockAvailable()) {
 return;
 }
 CommonUtil.acquireDeleteLock();

 Registry registry = requestContext.getRegistry();
 String path = requestContext.getResourcePath().getPath();

 try {
 if (path == null) {
 throw new RegistryException(The resource path is not 
 available.);
 }
 checkEndpointDependency(registry, path);
 //Resource resource = registry.get(path);
 } finally {
 CommonUtil.releaseDeleteLock();
 }
 }

 [1] -
 https://github.com/wso2/carbon-registry/blob/master/components/registry/org.wso2.carbon.registry.extensions/src/main/java/org/wso2/carbon/registry/extensions/handlers/EndpointMediaTypeHandler.java
 [2] -
 https://github.com/thushara35/carbon-governance/blob/b1/components/governance/org.wso2.carbon.governance.api/src/main/java/org/wso2/carbon/governance/api/common/GovernanceArtifactManager.java#L360-360


 ​
 --
 Thanks,
 Thushara Kasun Ranawaka
 Software Engineer
 WSO2 Inc.; http://www.wso2.com
 lean.enterprise.middleware
 Mobile : *+94 (0) 773438949 %2B94%20%280%29%20773438949*
 *thusha...@wso2.com*



 --

 *Eranda Sooriyabandara*Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise . Middleware

 E-mail: eranda AT wso2.com
 Mobile: (812) 964-9032
 Linked-In: http://www.linkedin.com/in/erandasooriyabandara
 Blog: http://emsooriyabandara.blogspot.com/








-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thusha...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Endpoints stored in registry can not be deleted if there is associations attached to it.

2015-06-15 Thread Thushara Ranawaka
Hi,

In EndpointMediaTypeHandler[1] when we try to delete an endpoint there is a
special validation to check whether endpoint have any dependancies attached
and throw an exception[find the attached screen shot]. Because of this
validation user can't delete or even edit endpoint address(URL) without
removing the associations. I was enable to discover such behaviour in other
media types. Is this dependancy check added for a reason or else can we get
rid of it by letting user to edit endpoint details?.

I try this out locally and currently facing some issues due to missing
association after I update the endpoint address(URL). Looks like when we
update the endpoint address(URL) we are temporally deleting
endpoint artifact[2] then it cant find previous dependancies for some
reason.

public void delete(RequestContext requestContext) throws RegistryException {
if (!CommonUtil.isDeleteLockAvailable()) {
return;
}
CommonUtil.acquireDeleteLock();

Registry registry = requestContext.getRegistry();
String path = requestContext.getResourcePath().getPath();

try {
if (path == null) {
throw new RegistryException(The resource path is not
available.);
}
checkEndpointDependency(registry, path);
//Resource resource = registry.get(path);
} finally {
CommonUtil.releaseDeleteLock();
}
}

[1] -
https://github.com/wso2/carbon-registry/blob/master/components/registry/org.wso2.carbon.registry.extensions/src/main/java/org/wso2/carbon/registry/extensions/handlers/EndpointMediaTypeHandler.java
[2] -
https://github.com/thushara35/carbon-governance/blob/b1/components/governance/org.wso2.carbon.governance.api/src/main/java/org/wso2/carbon/governance/api/common/GovernanceArtifactManager.java#L360-360


​
-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thusha...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM start up error due to missing governance.xml

2015-05-27 Thread Thushara Ranawaka
Hi Harsha,

Kindly review and merge the PR[1].

[1] - https://github.com/wso2/product-apim/pull/188

Thanks,

On Wed, May 27, 2015 at 3:49 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi Greg Team,

 We have getting following exception during APIM start up. Seems
 governance.xml not copying from the feature.  Created JIRA in [1].

  ERROR - GovernanceConfigurationServiceActivator Cannot start Governance
 common bundle
 org.wso2.carbon.governance.common.GovernanceConfigurationException: Cannot
 read file
 /home/harsha/wso2/apim/repos/product-apim/modules/distribution/product/target/wso2am-2.0.0-SNAPSHOT/repository/conf/governance.xml
 at
 org.wso2.carbon.governance.common.utils.GovernanceUtils.getGovernanceConfiguration(GovernanceUtils.java:61)
 at
 org.wso2.carbon.governance.common.internal.GovernanceConfigurationServiceActivator.start(GovernanceConfigurationServiceActivator.java:36)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
 at java.security.AccessController.doPrivileged(Native Method)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
 at
 org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
 at
 org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
 at
 org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
 Caused by: java.io.FileNotFoundException:
 /home/harsha/wso2/apim/repos/product-apim/modules/distribution/product/target/wso2am-2.0.0-SNAPSHOT/repository/conf/governance.xml
 (No such file or directory)
 at java.io.FileInputStream.open0(Native Method)
 at java.io.FileInputStream.open(FileInputStream.java:195)
 at java.io.FileInputStream.init(FileInputStream.java:138)
 at
 org.wso2.carbon.governance.common.utils.GovernanceUtils.getGovernanceConfiguration(GovernanceUtils.java:54)
 ... 16 more
 [2015-05-27 15:30:22,085]  WARN - NotificationMgtConfigBuilder Secret
 Resolver is not present. Will not resolve encryptions in config file


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

 Thanks,
 Harsha
 --
 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




-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thusha...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: Accepted: EndpointUtils feature code review and demo. @ Thu Mar 26, 2015 4:30pm - 5pm (thusha...@wso2.com)

2015-03-30 Thread Thushara Ranawaka
Hi All,

Kindly find the code review minutes below.

Attendees :  Danesh Kuruppu, Denuwanthi De Silva, Chandana Napagoda,
Isuruwan Herath, Prasanna Dangalla, Madawa Soysa.

ESB Endpoint rxt name should rename to Endpoint
All the public methods should handle the NPE
Set meaningful variable name for OMElements : endpointElement
Change the namespace to governance/metadata namespace.

Please add if anything I have missed.

Thanks,




-- Forwarded message --
From: Danesh Kuruppu dan...@wso2.com
Date: Thu, Mar 26, 2015 at 10:54 AM
Subject: Accepted: EndpointUtils feature code review and demo. @ Thu Mar
26, 2015 4:30pm - 5pm (thusha...@wso2.com)
To: thusha...@wso2.com thusha...@wso2.com


*Danesh Kuruppu has accepted this invitation.*
EndpointUtils feature code review and demo.
*When*
Thu Mar 26, 2015 4:30pm – 5pm Colombo
*Where*
LK 3rd Floor Meeting Room - Kernel Ext:1005350 (map
https://maps.google.lk/maps?q=LK+3rd+Floor+Meeting+Room+-+Kernel+Ext:1005350hl=en
)
*Video call*
https://plus.google.com/hangouts/_/wso2.com/thusharak
https://plus.google.com/hangouts/_/wso2.com/thusharak?hceid=dGh1c2hhcmFrQHdzbzIuY29t.3duvj4nosbfuuhjsvqjeer9p4o
*Calendar*
thusha...@wso2.com
*Who*
•
Thushara Ranawaka - organizer
•
Pulasthi Supun
•
Waruna De Silva
•
Sagara Gunathunga
•
Isuruwan Herath
•
Chandana Napagoda
•
Danesh Kuruppu
•
Denuwanthi De Silva
•
Prasanna Dangalla
•
WSO2 Developers' List

Invitation from Google Calendar https://www.google.com/calendar/

You are receiving this email at the account thusha...@wso2.com because you
are subscribed for invitation replies on calendar thusha...@wso2.com.

To stop receiving these emails, please log in to
https://www.google.com/calendar/ and change your notification settings for
this calendar.



-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thusha...@wso2.com*


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


Re: [Dev] Getting following error while building product-apim with carbon 4.3.0

2015-03-25 Thread Thushara Ranawaka
Hi ,

Thanks Chandana issue is rectified according to your comment.

Prasanna, Yes issue is due to java 1.7.
Thanks,

On Wed, Mar 25, 2015 at 11:26 AM, Prasanna Dangalla prasa...@wso2.com
wrote:

 Hi Thushara

 What is the java version you are using ? If it's 1.7. Use 1.6 and check

 On Wed, Mar 25, 2015 at 11:16 AM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi All,

 When I tried to build product-apim with carbon 4.3.0 I am getting
 following error in WSO2 API Manager - Distribution level. Recently registry
 team introduce a new feature call diff view AFAIU this exception is related
 to it. Please advice on this.

 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-site-plugin:3.4:site (default) on project
 wso2am: Error parsing
 '/Users/thushara/Documents/greg/product-apim/modules/distribution/product/src/site/xdoc/diffview/mode/javascript/index.xml':
 line [1] Error parsing the model: unexpected markup !d (position:
 START_DOCUMENT seen !d... @1:3) - [Help 1]
 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
 goal org.apache.maven.plugins:maven-site-plugin:3.4:site (default) on
 project wso2am: Error parsing
 '/Users/thushara/Documents/greg/product-apim/modules/distribution/product/src/site/xdoc/diffview/mode/javascript/index.xml':
 line [1] Error parsing the model: unexpected markup !d (position:
 START_DOCUMENT seen !d... @1:3)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
 at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
 at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
 at
 org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
 at
 org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
 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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
 Caused by: org.apache.maven.plugin.MojoExecutionException: Error parsing
 '/Users/thushara/Documents/greg/product-apim/modules/distribution/product/src/site/xdoc/diffview/mode/javascript/index.xml':
 line [1] Error parsing the model: unexpected markup !d (position:
 START_DOCUMENT seen !d... @1:3)
 at
 org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:146)
 at
 org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
 ... 19 more
 Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error
 parsing
 '/Users/thushara/Documents/greg/product-apim/modules/distribution/product/src/site/xdoc/diffview/mode/javascript/index.xml':
 line [1] Error parsing the model: unexpected markup !d (position:
 START_DOCUMENT seen !d... @1:3)
 at
 org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocument(DefaultSiteRenderer.java:406)
 at
 org.apache.maven.doxia.siterenderer.DoxiaDocumentRenderer.renderDocument(DoxiaDocumentRenderer.java:51)
 at
 org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:311)
 at
 org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:129)
 at
 org.apache.maven.plugins.site.render.SiteMojo.renderDoxiaDocuments(SiteMojo.java:261)
 at
 org.apache.maven.plugins.site.render.SiteMojo.renderLocale(SiteMojo.java:172)
 at
 org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:141)
 ... 21 more
 Caused by: org.apache.maven.doxia.parser.ParseException: Error parsing
 the model: unexpected markup !d (position: START_DOCUMENT seen !d...
 @1:3)
 at
 org.apache.maven.doxia.parser.AbstractXmlParser.parse(AbstractXmlParser.java:149)
 at
 org.apache.maven.doxia.parser.XhtmlBaseParser.parse(XhtmlBaseParser.java:96)
 at
 org.apache.maven.doxia.module.xdoc.XdocParser.parse(XdocParser.java:120

[Dev] Invitation: EndpointUtils feature code review and demo. @ Thu Mar 26, 2015 4:30pm - 5pm (thusha...@wso2.com)

2015-03-25 Thread Thushara Ranawaka
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20150326T11Z
DTEND:20150326T113000Z
DTSTAMP:20150326T052358Z
ORGANIZER;CN=Thushara Ranawaka:mailto:thusha...@wso2.com
UID:3duvj4nosbfuuhjsvqjeer9...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Pulasthi Supun;X-NUM-GUESTS=0:mailto:pulas...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Waruna De Silva;X-NUM-GUESTS=0:mailto:waru...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sagara Gunathunga;X-NUM-GUESTS=0:mailto:sag...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Thushara Ranawaka;X-NUM-GUESTS=0:mailto:thusha...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Isuruwan Herath;X-NUM-GUESTS=0:mailto:isuru...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Chandana Napagoda;X-NUM-GUESTS=0:mailto:chand...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Danesh Kuruppu;X-NUM-GUESTS=0:mailto:dan...@wso2.com
ATTENDEE;CUTYPE=RESOURCE;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE;C
 N=LK 3rd Floor Meeting Room - Kernel Ext:1005350;X-NUM-GUESTS=0:mailto:ws
 o2.com_3234323338383134353...@resource.calendar.google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Denuwanthi De Silva;X-NUM-GUESTS=0:mailto:denuwan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Prasanna Dangalla;X-NUM-GUESTS=0:mailto:prasa...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=WSO2 Developers' List;X-NUM-GUESTS=0:mailto:dev@wso2.org
CREATED:20150326T051909Z
DESCRIPTION:View your event at https://www.google.com/calendar/event?action
 =VIEWeid=M2R1dmo0bm9zYmZ1dWhqc3ZxamVlcjlwNG8gZGV2QHdzbzIub3Jntok=MTgjdGh1
 c2hhcmFrQHdzbzIuY29tNjc0NzRjYzEwODk0YmY3MzY5MTMyOGFkODJiZGY0MjU1MTY2ZjYzOA
 ctz=Asia/Colombohl=en.
LAST-MODIFIED:20150326T052358Z
LOCATION:LK 3rd Floor Meeting Room - Kernel Ext:1005350
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:EndpointUtils feature code review and demo.
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


[Dev] Getting following error while building product-apim with carbon 4.3.0

2015-03-24 Thread Thushara Ranawaka
Hi All,

When I tried to build product-apim with carbon 4.3.0 I am getting following
error in WSO2 API Manager - Distribution level. Recently registry team
introduce a new feature call diff view AFAIU this exception is related to
it. Please advice on this.

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-site-plugin:3.4:site (default) on project
wso2am: Error parsing
'/Users/thushara/Documents/greg/product-apim/modules/distribution/product/src/site/xdoc/diffview/mode/javascript/index.xml':
line [1] Error parsing the model: unexpected markup !d (position:
START_DOCUMENT seen !d... @1:3) - [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-site-plugin:3.4:site (default) on
project wso2am: Error parsing
'/Users/thushara/Documents/greg/product-apim/modules/distribution/product/src/site/xdoc/diffview/mode/javascript/index.xml':
line [1] Error parsing the model: unexpected markup !d (position:
START_DOCUMENT seen !d... @1:3)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error parsing
'/Users/thushara/Documents/greg/product-apim/modules/distribution/product/src/site/xdoc/diffview/mode/javascript/index.xml':
line [1] Error parsing the model: unexpected markup !d (position:
START_DOCUMENT seen !d... @1:3)
at org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:146)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error
parsing
'/Users/thushara/Documents/greg/product-apim/modules/distribution/product/src/site/xdoc/diffview/mode/javascript/index.xml':
line [1] Error parsing the model: unexpected markup !d (position:
START_DOCUMENT seen !d... @1:3)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocument(DefaultSiteRenderer.java:406)
at
org.apache.maven.doxia.siterenderer.DoxiaDocumentRenderer.renderDocument(DoxiaDocumentRenderer.java:51)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:311)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:129)
at
org.apache.maven.plugins.site.render.SiteMojo.renderDoxiaDocuments(SiteMojo.java:261)
at
org.apache.maven.plugins.site.render.SiteMojo.renderLocale(SiteMojo.java:172)
at org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:141)
... 21 more
Caused by: org.apache.maven.doxia.parser.ParseException: Error parsing the
model: unexpected markup !d (position: START_DOCUMENT seen !d... @1:3)
at
org.apache.maven.doxia.parser.AbstractXmlParser.parse(AbstractXmlParser.java:149)
at
org.apache.maven.doxia.parser.XhtmlBaseParser.parse(XhtmlBaseParser.java:96)
at org.apache.maven.doxia.module.xdoc.XdocParser.parse(XdocParser.java:120)
at org.apache.maven.doxia.DefaultDoxia.parse(DefaultDoxia.java:65)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocument(DefaultSiteRenderer.java:398)
... 27 more
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException:
unexpected markup !d (position: START_DOCUMENT seen !d... @1:3)
at
org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1506)
at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1433)
at 

Re: [Dev] Which Git Repository belongs, org.wso2.carbon.transport.mgt.feature

2015-03-24 Thread Thushara Ranawaka
Hi Carbon, ESB and Stratos team,

Kindly advice on which git repository maintain below features. Is there any
common place that I can find deprecated feature list?

org.wso2.carbon.statistics.transport.feature
org.wso2.carbon.ec2.client.feature
org.wso2.carbon.mediation.security.server.feature
org.wso2.carbon.localentry.server.feature
org.wso2.carbon.endpoint.server.feature
org.wso2.carbon.rest.api.feature
org.wso2.carbon.sequences.server.feature
org.wso2.carbon.transports.passthru.feature
org.wso2.carbon.mediation.templates.server.feature
org.wso2.carbon.throttle.feature
org.wso2.stratos.apimgt.dashboard.ui.feature
org.wso2.carbon.rm.server.feature
org.wso2.carbon.sequences.ui.feature
org.wso2.carbon.proxyadmin.server.feature

org.wso2.carbon.stratos.common.feature
org.wso2.carbon.stratos.deployment.feature

Since we could not found above features shall we consider them as
deprecated and comment them out?

Thanks,

On Fri, Mar 20, 2015 at 9:51 AM, Kasun Gajasinghe kas...@wso2.com wrote:

 Hi,

 Transport mail is managed by esb team and should be located under
 carbon-mediation.

 Xfer and mex are deprecated and is no longer shipped. You can remove these
 features. I believe caching server feature is deprecated too.

 Registry extensions is in carbon-registry.

 Functionality of Jaxws features has been merged to webapp mgt features.

 KasunG

 On Mar 20, 2015, at 8:23 AM, Dhanuka Ranasinghe dhan...@wso2.com wrote:

 while building product-apim , I couldn't find Git repos for following
 features. Could you please help me to find these.

 org.wso2.carbon.transport.mgt.feature
 org.wso2.carbon.transport.mail.feature
 org.wso2.carbon.xfer.feature
 org.wso2.carbon.mex.feature
 org.wso2.carbon.mediation.security.server
 org.wso2.carbon.statistics.transport.feature
 org.wso2.carbon.ec2.client.feature
 org.wso2.carbon.registry.extensions.feature
 org.wso2.carbon.caching.server.feature
 org.wso2.carbon.jaxws.webapp.mgt.server.feature
 org.wso2.carbon.jaxws.webapp.mgt.feature
 org.wso2.carbon.bam.message.tracer.handler.feature
 org.wso2.carbon.mediator.bam.feature

 *Dhanuka Ranasinghe*

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

 phone : +94 715381915

 On Thu, Mar 19, 2015 at 5:58 PM, Dhanuka Ranasinghe dhan...@wso2.com
 wrote:

 No they have told that it has been removed from carbon-commons. It's not
 in here [1].

 [1]  https://github.com/wso2/carbon-commons/blob/4.3.6/pom.xml

 Cheers,

 *Dhanuka Ranasinghe*

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

 phone : +94 715381915

 On Thu, Mar 19, 2015 at 5:51 PM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Hi Dhanuka,

 Isnt it in carbon-commons ?
 In  [1] I can see org.wso2.carbon.transport.mgt.feature
 If so, I think carbon team manages this.


 [1] -
 https://github.com/wso2/carbon-commons/tree/master/features/transport-mgt

 On Thu, Mar 19, 2015 at 5:43 PM, Dhanuka Ranasinghe dhan...@wso2.com
 wrote:

 Hi,

 When I tried to build product-apim with carbon 4.4.0 I am getting
 following error. So could you please let us know, exactly which Git
 repository has/maintain  org.wso2.carbon.transport.mgt.feature

 [ERROR] Failed to execute goal
 org.wso2.maven:carbon-p2-plugin:1.5.3:p2-repo-gen (2-p2-repo-generation) on
 project am-p2-profile: Error occured when processing the Feature Artifact:
 org.wso2.carbon.commons:org.wso2.carbon.transport.mgt.feature:4.3.6: ERROR:
 Could not find artifact
 org.wso2.carbon.commons:org.wso2.carbon.transport.mgt.feature:zip:4.3.6 in
 wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/)

 Cheers,
 *Dhanuka Ranasinghe*

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

 phone : +94 715381915

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




 --
 *Mahesh Chinthaka Vidanagama* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 63 63 083 | Work: +94 112 145 345
 Email: mahe...@wso2.com | Web: www.wso2.com




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




-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949 %2B94%20%280%29%20773438949*
*thusha...@wso2.com thusha...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] javax.net.ssl.SSLException: java.net.SocketException: Invalid argument

2015-03-11 Thread Thushara Ranawaka
Hi,

While running GReg integration tests(tests-metadata, tests-lifecycle) I'm
having $subject exception and fail the tests completely. In my
investigation I noticed that after test process ends still the greg server
is up and running. Looks like the issue occurs due to this behaviour but I
could find the root-cause. Can some on help me on this.

Note: Im using Mac OSX, java 1.7_07

INFO
 
[org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager]
- Shutting down server..
INFO  [org.wso2.carbon.integration.common.utils.ClientConnectionUtil] -
Successfully connected to the server on port 9443
INFO  [org.apache.commons.httpclient.HttpMethodDirector] - I/O exception
(org.apache.axis2.AxisFault) caught when processing request: Connection has
been shutdown: javax.net.ssl.SSLException: java.net.SocketException:
Invalid argument
INFO  [org.apache.commons.httpclient.HttpMethodDirector] - Retrying request
INFO  [org.apache.commons.httpclient.HttpMethodDirector] - I/O exception
(org.apache.axis2.AxisFault) caught when processing request: Connection has
been shutdown: javax.net.ssl.SSLException: java.net.SocketException:
Invalid argument
INFO  [org.apache.commons.httpclient.HttpMethodDirector] - Retrying request
INFO  [org.apache.commons.httpclient.HttpMethodDirector] - I/O exception
(org.apache.axis2.AxisFault) caught when processing request: Connection has
been shutdown: javax.net.ssl.SSLException: java.net.SocketException:
Invalid argument
INFO  [org.apache.commons.httpclient.HttpMethodDirector] - Retrying request
INFO  [org.apache.axis2.transport.http.HTTPSender] - Unable to sendViaPost
to url[https://localhost:9443/services/ServerAdmin]
org.apache.axis2.AxisFault: Connection has been shutdown:
javax.net.ssl.SSLException: java.net.SocketException: Invalid argument
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:78)
at
org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)
at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:630)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
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.server.admin.stub.ServerAdminStub.shutdown(ServerAdminStub.java:712)
at
org.wso2.carbon.integration.common.admin.client.ServerAdminClient.shutdown(ServerAdminClient.java:61)
at
org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager.serverShutdown(CarbonServerManager.java:199)
at
org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager$1.run(CarbonServerManager.java:130)
Caused by: com.ctc.wstx.exc.WstxIOException: Connection has been shutdown:
javax.net.ssl.SSLException: java.net.SocketException: Invalid argument
at
com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java:1692)
at com.ctc.wstx.sw.BaseStreamWriter.close(BaseStreamWriter.java:288)
at
org.apache.axiom.util.stax.wrapper.XMLStreamWriterWrapper.close(XMLStreamWriterWrapper.java:46)
at
org.apache.axiom.om.impl.MTOMXMLStreamWriter.close(MTOMXMLStreamWriter.java:188)
at
org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:197)
at
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)
... 20 more
Caused by: javax.net.ssl.SSLException: Connection has been shutdown:
javax.net.ssl.SSLException: java.net.SocketException: Invalid argument
at sun.security.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1492)
at sun.security.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1504)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:70)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at 

Re: [Dev] (REGISTRY-2431) Hard code URL

2015-03-05 Thread Thushara Ranawaka
Hi Ajith,

Above mentioned hard corded URL is in a deprecated method therefore I just
evaluate the uses of getSolrUrl() method. I found only single use of this
method. After that We check the use of that method which is getSolrUrl(int
tenantId), but when we search uses of that method we couldn't find any.
After having a discussion with Danesh We decide to remove these 2 methods
from the code base. Other than that we could find any test-cases either.
Please advice if we have missed something.

Thanks,
Thushara.

On Wed, Mar 4, 2015 at 10:04 PM, Ajith Vitharana aji...@wso2.com wrote:

 Hi Thushara,

 Could you please explain the fix here ? what we need to do is construct
 the solrServerUrl without hardcore. But I see you have completely removed
 the getSolrUrl() method.


 solrServerUrl = https://localhost:9443/registry/resourcesolr/solr;;

 -Ajith

 Thushara Kasun Ranawaka
 https://wso2.org/jira/secure/ViewProfile.jspa?name=thusharak%40wso2.com
 commented on [image: Bug] REGISTRY-2431
 https://wso2.org/jira/browse/REGISTRY-2431
  *Hard code URL* https://wso2.org/jira/browse/REGISTRY-2431

 Since these methods are deprecated and not in use, removed them after
 checking integration tests
 PR sent : https://github.com/wso2/carbon-registry/pull/35
 This message is automatically generated by JIRA.
 If you think it was sent incorrectly, please contact your JIRA
 administrators
 For more information on JIRA, see: http://www.atlassian.com/software/jira



 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +1-812-360-5335




-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949 %2B94%20%280%29%20773438949*
*thusha...@wso2.com thusha...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] (REGISTRY-2431) Hard code URL

2015-03-05 Thread Thushara Ranawaka
Hi Ajith,

There were no documentation or test cases for this. I will restore the
method and inform Documentation team to create a documentation on this.
Will make the URL dynamic and remove the deprecated annotation since this
has a important use case.

Thanks,
Thushara.

On Fri, Mar 6, 2015 at 9:09 AM, Ajith Vitharana aji...@wso2.com wrote:



 On Thu, Mar 5, 2015 at 10:31 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Ajith,

 Above mentioned hard corded URL is in a deprecated method therefore I
 just evaluate the uses of getSolrUrl() method. I found only single use of
 this method. After that We check the use of that method which is
 getSolrUrl(int tenantId), but when we search uses of that method we
 couldn't find any. After having a discussion with Danesh We decide to
 remove these 2 methods from the code base. Other than that we could find
 any test-cases either. Please advice if we have missed something.


 If someone need to access the Solr endpoint  to write some custom
 extension, Do we have any API to get that ?

 -Ajith







 Thanks,
 Thushara.

 On Wed, Mar 4, 2015 at 10:04 PM, Ajith Vitharana aji...@wso2.com wrote:

 Hi Thushara,

 Could you please explain the fix here ? what we need to do is construct
 the solrServerUrl without hardcore. But I see you have completely removed
 the getSolrUrl() method.


 solrServerUrl = https://localhost:9443/registry/resourcesolr/solr;;

 -Ajith

 Thushara Kasun Ranawaka
 https://wso2.org/jira/secure/ViewProfile.jspa?name=thusharak%40wso2.com
 commented on [image: Bug] REGISTRY-2431
 https://wso2.org/jira/browse/REGISTRY-2431
  *Hard code URL* https://wso2.org/jira/browse/REGISTRY-2431

 Since these methods are deprecated and not in use, removed them after
 checking integration tests
 PR sent : https://github.com/wso2/carbon-registry/pull/35
 This message is automatically generated by JIRA.
 If you think it was sent incorrectly, please contact your JIRA
 administrators
 For more information on JIRA, see:
 http://www.atlassian.com/software/jira



 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +1-812-360-5335




 --
 Thanks,
 Thushara Kasun Ranawaka
 Software Engineer
 WSO2 Inc.; http://www.wso2.com
 lean.enterprise.middleware
 Mobile : *+94 (0) 773438949 %2B94%20%280%29%20773438949*
 *thusha...@wso2.com thusha...@wso2.com*




 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +1-812-360-5335




-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thusha...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please merge the pull request - Making changes according to the rename of ServiceLifeCycle.xml

2015-01-18 Thread Thushara Ranawaka
Hi Pulasthi,

Please merge the PR[1].

[1] - https://github.com/wso2/carbon-governance/pull/19


-- 
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thusha...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] An error occurred while obtaining the list of states in MobileAppLifeCycle

2015-01-15 Thread Thushara Ranawaka
[adding dev]

Hi Shazni,

Yes, that was the issue. after using a fresh pack which include the given
patch, problem[1] sorted out.

[1] - https://wso2.org/jira/browse/REGISTRY-2382
Thanks,

On Fri, Jan 16, 2015 at 8:06 AM, Shazni Nazeer sha...@wso2.com wrote:

 For this issue I think the above attached jar should be in a fresh pack at
 the first start it self. If you have started your pack once before even
 without this jar it might not work. So add this jar in a fresh G-Reg 5 pack
 as a patch and try your scenario.

 This jar should be packed from the ES feature ideally once they merge and
 there latest feature is in nexus. Till then, you have to add this in a
 fresh pack it self.

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com

 On Thu, Jan 15, 2015 at 1:56 PM, Shazni Nazeer sha...@wso2.com wrote:

 Seems it's not related to that either. I can add a wsdl, view it add
 lifecycle etc. Are you checking this in a fresh G-Reg 5 build pack?

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com

 On Thu, Jan 15, 2015 at 1:23 PM, Shazni Nazeer sha...@wso2.com wrote:

 I think this needs the attached jar inside a patch. Can you check with
 the attached jar inside a patch?

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com

 On Thu, Jan 15, 2015 at 12:01 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:


 Hi Shazni,

 Im facing this issue[1] which looks cause by the multiple lifecycle PR.
 Will you be able to look into this issue.

 [1] - https://wso2.org/jira/browse/REGISTRY-2382
 Thanks,
 --
 Thushara Kasun Ranawaka
 Software Engineer
 WSO2 Inc.; http://www.wso2.com
 lean.enterprise.middleware
 Mobile : *+94 (0) 773438949 %2B94%20%280%29%20773438949*
 *thusha...@wso2.com thusha...@wso2.com*







-- 
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949 %2B94%20%280%29%20773438949*
*thusha...@wso2.com thusha...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please merge the pull request - Resource(WSDL/WADL/Schema/Policy) upload path change

2015-01-14 Thread Thushara Ranawaka
Hi,

Please merge the PR[1] which addresses [2][3][4] jiras.

[1] - https://github.com/wso2/carbon-registry/pull/25
[2] - https://wso2.org/jira/browse/REGISTRY-2375
[3] - https://wso2.org/jira/browse/REGISTRY-2373
[4] - https://wso2.org/jira/browse/REGISTRY-2374

Thanks,

-- 
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thusha...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failed in Jenkins: product-es #4755

2015-01-12 Thread Thushara Ranawaka
Hi,

Due to $subject we are unable to build product greg as well.

Installing org.wso2.carbon.tenant.deployment.feature.group 4.3.0.SNAPSHOT.

Installation failed.

Cannot complete the install because one or more required items could not be
found.

 Software being installed: WSO2 Enterprise Store Feature 2.0.0.SNAPSHOT
(org.wso2.es.feature.group 2.0.0.SNAPSHOT)

 Missing requirement: WSO2 Enterprise Store Feature 2.0.0.SNAPSHOT
(org.wso2.es.feature.group 2.0.0.SNAPSHOT) requires
'org.wso2.carbon.social.feature.group [1.1.0.SNAPSHOT,1.2.0)' but it could
not be found

Application failed, log file location:
/Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1421061991962.log


Please look into the issue.

On Mon, Jan 12, 2015 at 4:56 PM, Ayesha Dissanayaka aye...@wso2.com wrote:

 Hi all,

 We are still getting the earlier mentioned ES build error, similar error
 discussed in [1].
 I have updated the carbon.kernel.version to 4.3.0 locally as mentioned
 earlier and in some-other relevant version changes. I built
 carbon-registry[2] and carbon-governance[3] repos locally with latest
 changes.

 When I tried to build BPS[4] locally it fails giving below error stack.

 Installation failed.
 Cannot complete the install because one or more required items could not
 be found.
  Software being installed: WSO2 Carbon - Attachment Management Server
 Feature 4.3.0.SNAPSHOT (org.wso2.carbon.attachment.mgt.feature.group
 4.3.0.SNAPSHOT)
  Missing requirement: WSO2 Carbon - Attachment Management Server Feature
 4.3.0.SNAPSHOT (org.wso2.carbon.attachment.mgt.feature.group
 4.3.0.SNAPSHOT) requires 'org.wso2.carbon.core.feature.group
 [4.3.0.SNAPSHOT,4.4.0)' but it could not be found
 Application failed, log file location:
 /home/ayesha/WORK/cleanm3/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1421058011430.log

 Hence, we cannot pass the build fail point in ES at,
 Installation failed.
 Cannot complete the install because one or more required items could not
 be found.
  Software being installed: WSO2 Carbon - Data Bridge - Data Publisher
 Aggregate Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.databridge.datapublisher.feature.group 4.3.0.SNAPSHOT)
  Missing requirement: WSO2 Carbon - Data Bridge - Thrift Commons Server
 Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.databridge.commons.thrift.server.feature.group
 4.3.0.SNAPSHOT) requires 'org.wso2.carbon.core.server.feature.group
 [4.3.0.SNAPSHOT,4.4.0)' but it could not be found
  Cannot satisfy dependency:
   From: WSO2 Carbon - Data Bridge - Data Publisher Aggregate Feature
 4.3.0.SNAPSHOT (org.wso2.carbon.databridge.datapublisher.feature.group
 4.3.0.SNAPSHOT)
   To: org.wso2.carbon.databridge.commons.thrift.server.feature.group
 [4.3.0.SNAPSHOT]
 Application failed, log file location:
 /home/ayesha/WORK/cleanm3/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1421058005328.log

 Please pay attention to this since it blocks ES development tasks as well
 as its dependents.

 [1] [Dev] Errors seen while building CDM p2-profile
 [2] https://github.com/wso2-dev/carbon-registry
 [3] https://github.com/wso2-dev/carbon-governance
 [4] https://github.com/wso2-dev/product-bps

 Thanks!
 - Ayesha

 On Mon, Jan 12, 2015 at 11:32 AM, Pulasthi Supun pulas...@wso2.com
 wrote:

 Hi Sagara/Manoj

 The registry and governance jars are available in the snapshot repo [1].
 The error above seems to be because they are importing a wrong registry
 core version in the OSGI imports.

 Cannot complete the install because one or more required items could not
 be found.
  Software being installed: WSO2 Carbon - Governance Metadata Feature
 4.3.0.SNAPSHOT (org.wso2.carbon.governance.metadata.feature.group
 4.3.0.SNAPSHOT)
  Missing requirement: org.wso2.carbon.registry.extensions 4.3.0.SNAPSHOT
 (org.wso2.carbon.registry.extensions 4.3.0.SNAPSHOT) requires 'package
 org.wso2.carbon.registry.core [4.3.0,4.4.0)' but it could not be found

 The imported  org.wso2.carbon.registry.core.* should be [1.0.1,
 2.0.0) not  [4.3.0,4.4.0)


 [1]
 http://maven.wso2.org/nexus/content/repositories/snapshots//org/wso2/carbon/org.wso2.carbon.governance.api/4.3.0-SNAPSHOT/



 Best Regards,
 Pulasthi

 On Mon, Jan 12, 2015 at 11:03 AM, Sagara Gunathunga sag...@wso2.com
 wrote:


 Hi Pulasthi/Team,

 Can you please check why carbon-registry and carbon-governance
 snapshots are not available on snapshot repo ?  As we are planning M2
 release this week please fix this ASAP.

 Thanks !

 On Mon, Jan 12, 2015 at 10:59 AM, Manoj Gunawardena man...@wso2.com
 wrote:

 Hi All,

 Getting build fail alerts from jenkins continuously, The registry
 components and governance components not exists in the repo. After
 carbon-registry and carbon-governance build locally able to build the ES
 successfully.  Is somebody looking on this? Or Please advice is there any
 change need from ES side.

 Thanks

 On Mon, Jan 12, 2015 at 10:49 AM, cbuil...@wso2.org wrote:

 

Re: [Dev] GReg5 P2-profile generation failed

2015-01-12 Thread Thushara Ranawaka
Hi,

Thanks SameeraJ and ChandanaN. Yes now we moving forward with the build.


On Tue, Jan 13, 2015 at 10:36 AM, Chandana Napagoda chand...@wso2.com
wrote:

 Hi Thushara,

 This has been fixed now. Please refer [Dev] Error in pom file mail
 thread.

 Regards,
 Chandana

 On Mon, Jan 12, 2015 at 12:36 PM, Sameera Jayasoma same...@wso2.com
 wrote:

 Following log says it all.

 java.lang.IllegalArgumentException: Format 
 format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]])
 was unable to parse *0.0.0.${carbon_kernel_version*

 There is a typo in one of your component or feature pom.xml files. You'll
 have to come up with some scripts to find the faulty pom.

 Thanks,
 Sameera.

 On Mon, Jan 12, 2015 at 12:25 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi,

 We are getting the following while generation the P2-profile for GReg.
 Please check.

 [INFO] Extracting feature
 org.wso2.carbon:org.wso2.carbon.tenant.deployment.feature

 [INFO] Copying resources

 [INFO] Running Equinox P2 Publisher Application for Repository Generation

 [INFO] Command line:

 /bin/sh -c cd
 /Users/thushara/Documents/greg/product-greg/modules/p2-profile-gen 
 /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
 -jar
 /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
 -nosplash -application
 org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -source
 /Users/thushara/Documents/greg/product-greg/modules/p2-profile-gen/target/tmp.1421044634662/featureExtract
 -metadataRepository
 file:/Users/thushara/Documents/greg/product-greg/modules/p2-profile-gen/target/p2-repo
 -metadataRepositoryName governance-profile-gen -artifactRepository
 file:/Users/thushara/Documents/greg/product-greg/modules/p2-profile-gen/target/p2-repo
 -artifactRepositoryName governance-profile-gen -publishArtifacts
 -publishArtifactRepository -compress -append

 Generating metadata for ..

 Status ERROR: org.eclipse.equinox.p2.artifact.repository code=0 Format
 format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]]) was unable to parse
 0.0.0.${carbon_kernel_version java.lang.IllegalArgumentException: Format
 format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]]) was unable to parse
 0.0.0.${carbon_kernel_version


 Product publishing ended with the following exception:

 java.lang.IllegalArgumentException: Format
 format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]]) was unable to parse
 0.0.0.${carbon_kernel_version

 at
 org.eclipse.equinox.internal.p2.metadata.VersionFormat.parse(VersionFormat.java:275)

 at
 org.eclipse.equinox.internal.p2.metadata.VersionParser.parse(VersionParser.java:89)

 at org.eclipse.equinox.p2.metadata.Version.create(Version.java:79)

 at org.eclipse.equinox.p2.metadata.Version.parseVersion(Version.java:141)

 at
 org.eclipse.equinox.p2.publisher.eclipse.FeatureEntry.init(FeatureEntry.java:63)

 at
 org.eclipse.equinox.p2.publisher.eclipse.FeatureEntry.createRequires(FeatureEntry.java:40)

 at
 org.eclipse.equinox.internal.p2.publisher.eclipse.FeatureManifestParser.processImport(FeatureManifestParser.java:194)

 at
 org.eclipse.equinox.internal.p2.publisher.eclipse.FeatureManifestParser.startElement(FeatureManifestParser.java:280)

 at
 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:504)

 at
 com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)

 at
 com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:378)

 at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2763)

 at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)

 at
 com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)

 at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:513)

 at
 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:815)

 at
 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:744)

 at
 com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:128)

 at
 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208)

 at
 com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:543)

 at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)

 at
 org.eclipse.equinox.internal.p2.publisher.eclipse.FeatureManifestParser.parse(FeatureManifestParser.java:126)

 at
 org.eclipse.equinox.internal.p2.publisher.eclipse.FeatureParser.parse(FeatureParser.java:60)

 at
 org.eclipse.equinox.p2.publisher.eclipse.FeaturesAction.getFeatures(FeaturesAction.java:518

[Dev] GReg5 P2-profile generation failed

2015-01-11 Thread Thushara Ranawaka
Hi,

We are getting the following while generation the P2-profile for GReg.
Please check.

[INFO] Extracting feature
org.wso2.carbon:org.wso2.carbon.tenant.deployment.feature

[INFO] Copying resources

[INFO] Running Equinox P2 Publisher Application for Repository Generation

[INFO] Command line:

/bin/sh -c cd
/Users/thushara/Documents/greg/product-greg/modules/p2-profile-gen 
/Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
-jar
/Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
-nosplash -application
org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -source
/Users/thushara/Documents/greg/product-greg/modules/p2-profile-gen/target/tmp.1421044634662/featureExtract
-metadataRepository
file:/Users/thushara/Documents/greg/product-greg/modules/p2-profile-gen/target/p2-repo
-metadataRepositoryName governance-profile-gen -artifactRepository
file:/Users/thushara/Documents/greg/product-greg/modules/p2-profile-gen/target/p2-repo
-artifactRepositoryName governance-profile-gen -publishArtifacts
-publishArtifactRepository -compress -append

Generating metadata for ..

Status ERROR: org.eclipse.equinox.p2.artifact.repository code=0 Format
format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]]) was unable to parse
0.0.0.${carbon_kernel_version java.lang.IllegalArgumentException: Format
format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]]) was unable to parse
0.0.0.${carbon_kernel_version


Product publishing ended with the following exception:

java.lang.IllegalArgumentException: Format
format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]]) was unable to parse
0.0.0.${carbon_kernel_version

at
org.eclipse.equinox.internal.p2.metadata.VersionFormat.parse(VersionFormat.java:275)

at
org.eclipse.equinox.internal.p2.metadata.VersionParser.parse(VersionParser.java:89)

at org.eclipse.equinox.p2.metadata.Version.create(Version.java:79)

at org.eclipse.equinox.p2.metadata.Version.parseVersion(Version.java:141)

at
org.eclipse.equinox.p2.publisher.eclipse.FeatureEntry.init(FeatureEntry.java:63)

at
org.eclipse.equinox.p2.publisher.eclipse.FeatureEntry.createRequires(FeatureEntry.java:40)

at
org.eclipse.equinox.internal.p2.publisher.eclipse.FeatureManifestParser.processImport(FeatureManifestParser.java:194)

at
org.eclipse.equinox.internal.p2.publisher.eclipse.FeatureManifestParser.startElement(FeatureManifestParser.java:280)

at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:504)

at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)

at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:378)

at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2763)

at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)

at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)

at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:513)

at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:815)

at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:744)

at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:128)

at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208)

at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:543)

at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)

at
org.eclipse.equinox.internal.p2.publisher.eclipse.FeatureManifestParser.parse(FeatureManifestParser.java:126)

at
org.eclipse.equinox.internal.p2.publisher.eclipse.FeatureParser.parse(FeatureParser.java:60)

at
org.eclipse.equinox.p2.publisher.eclipse.FeaturesAction.getFeatures(FeaturesAction.java:518)

at
org.eclipse.equinox.p2.publisher.eclipse.FeaturesAction.perform(FeaturesAction.java:604)

at
org.eclipse.equinox.p2.publisher.Publisher$ArtifactProcess.run(Publisher.java:207)

at
org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.executeBatch(SimpleArtifactRepository.java:1294)

at org.eclipse.equinox.p2.publisher.Publisher.publish(Publisher.java:231)

at
org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.run(AbstractPublisherApplication.java:283)

at
org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.run(AbstractPublisherApplication.java:253)

at
org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.start(AbstractPublisherApplication.java:315)

at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

at

Re: [Dev] Service is not creating when uploading wadl in wso2greg

2015-01-04 Thread Thushara Ranawaka
Hi Eranda,

Yes, This need to be change, Will do the needful.

Thanks,


On Sun, Jan 4, 2015 at 8:17 PM, Eranda Sooriyabandara era...@wso2.com
wrote:

 Hi Thushara,
 We are using application/wadl+xml  for wsdls not the
 application/vnd.sun.wadl+xml. I wonder how this media type came to the
 registry in the first place but if it auto fills then check it in
 mime.types file, somebody should have change it.

 thanks
 Eranda

 On Sun, Jan 4, 2015 at 2:06 AM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi,

 Issue was with the automatically picked media type which is
 application/vnd.sun.wadl+xml. When I manually changed the media type to
 application/wadl+xml it successfully created the service.
 Thanks ChandanaN for the prompt chat msg.

 Thanks,

 On Sun, Jan 4, 2015 at 12:13 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:


 hi
 When I upload resources through browser, I found that wsdl uploaded
 without any issue but for wadl its not creating the service
 Is this a known issue or unwanted feature?

 Thanks,

 --
 Thushara Kasun Ranawaka
 Software Engineer
 WSO2 Inc.; http://www.wso2.com
 lean.enterprise.middleware
 Mobile : *+94 (0) 773438949 %2B94%20%280%29%20773438949*
 *thusha...@wso2.com thusha...@wso2.com*




 --
 Thushara Kasun Ranawaka
 Software Engineer
 WSO2 Inc.; http://www.wso2.com
 lean.enterprise.middleware
 Mobile : *+94 (0) 773438949 %2B94%20%280%29%20773438949*
 *thusha...@wso2.com thusha...@wso2.com*




 --

 *Eranda Sooriyabandara*Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise . Middleware

 E-mail: eranda AT wso2.com
 Mobile: (812) 964-9032
 Linked-In: http://www.linkedin.com/in/erandasooriyabandara
 Blog: http://emsooriyabandara.blogspot.com/







-- 
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thusha...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Service is not creating when uploading wadl in wso2greg

2015-01-03 Thread Thushara Ranawaka
hi
When I upload resources through browser, I found that wsdl uploaded without
any issue but for wadl its not creating the service
Is this a known issue or unwanted feature?

Thanks,

-- 
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thusha...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Service is not creating when uploading wadl in wso2greg

2015-01-03 Thread Thushara Ranawaka
Hi,

Issue was with the automatically picked media type which is
application/vnd.sun.wadl+xml. When I manually changed the media type to
application/wadl+xml it successfully created the service.
Thanks ChandanaN for the prompt chat msg.

Thanks,

On Sun, Jan 4, 2015 at 12:13 PM, Thushara Ranawaka thusha...@wso2.com
wrote:


 hi
 When I upload resources through browser, I found that wsdl uploaded
 without any issue but for wadl its not creating the service
 Is this a known issue or unwanted feature?

 Thanks,

 --
 Thushara Kasun Ranawaka
 Software Engineer
 WSO2 Inc.; http://www.wso2.com
 lean.enterprise.middleware
 Mobile : *+94 (0) 773438949 %2B94%20%280%29%20773438949*
 *thusha...@wso2.com thusha...@wso2.com*




-- 
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thusha...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Exception while mounting postgresql DB to wso2greg

2014-12-08 Thread Thushara Ranawaka
Hi,

While following this[1] doc to setup a simple db mount for postgresql, I
got the below error log while starting up the greg server with -Dsetup.
However after server started without any further issue and database
connection is working properly too. Is there anybody who overcome this
issue? if so what would be the reason for this exception?

Note:- This exception only occurs when we start the server for first time,
using -Dsetup.

[2014-12-08 15:46:03,523]  INFO
{org.wso2.carbon.social.sql.internal.SQLSocialComponent} -  Social Activity
service is activated  with SQL Implementation

[2014-12-08 15:46:03,524] ERROR
{org.wso2.carbon.social.sql.internal.SQLSocialComponent} -

java.lang.NullPointerException

at
org.wso2.carbon.social.sql.JDBCPersistenceManager.initializeDatabase(JDBCPersistenceManager.java:52)

at
org.wso2.carbon.social.sql.internal.SQLSocialComponent.activate(SQLSocialComponent.java:38)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

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

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

at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)

at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)

at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)

at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)

at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)

at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)

at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)

at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)

at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)

at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)

at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)

at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)

at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)

at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)

at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)

at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)

at
org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.registerServices(DataSourceServiceComponent.java:126)

at
org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.initSuperTenantUserDataSources(DataSourceServiceComponent.java:221)

at
org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.checkInitTenantUserDataSources(DataSourceServiceComponent.java:206)

at
org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.setRegistryService(DataSourceServiceComponent.java:157)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

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

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

at
org.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376)

at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:432)

at
org.eclipse.equinox.internal.ds.InstanceProcess.dynamicBind(InstanceProcess.java:416)

at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:334)

at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)

at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)

at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)

at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)

at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)

at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)

at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)

at

Re: [Dev] Invoke a python script through java

2014-12-02 Thread Thushara Ranawaka
Hi Suhan,

I had a similar kind of a issue few months ago, Kindly find this answer[1].

[1]-
http://stackoverflow.com/questions/23054880/execute-a-python-separate-application-in-a-java-application

Thanks,
Thushara

On Tue, Dec 2, 2014 at 5:55 PM, Suhan Dharmasuriya suh...@wso2.com wrote:

 Hi,

 I'm currently using a python script to create instances in OpenStack via
 python NovaClient.
 My script sets up a cluster and is to perform some platform tests in a
 clustered environment.

 I want to invoke this python script inside a java plugin (which is yet to
 be written) as an extension to
 the WSO2 Test Automation Framework.

 What are the standard approaches for invoking python scripts inside java?
 Are there any svn/git WSO2 repositories I can refer?

 Thanks,
 Suhan
 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhan-opensource.blogspot.com/

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




-- 
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thusha...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Invoke a python script through java

2014-12-02 Thread Thushara Ranawaka
Hi Malintha,

Yes malintha I agree with you. Then Jython is the best approach Suhan have.

Thanks,

On Tue, Dec 2, 2014 at 6:17 PM, Malintha Adikari malin...@wso2.com wrote:

 Hi Thushara,

 On Tue, Dec 2, 2014 at 12:37 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Suhan,

 I had a similar kind of a issue few months ago, Kindly find this
 answer[1].

 [1]-
 http://stackoverflow.com/questions/23054880/execute-a-python-separate-application-in-a-java-application


 Yes this is also an option. AFAIK, here we  here we call python language
 from a process. Calling,  from platform Independent language(Java) to a
 native application (Python) is not good approach IMO.


 Thanks,
 Thushara

 On Tue, Dec 2, 2014 at 5:55 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 I'm currently using a python script to create instances in OpenStack via
 python NovaClient.
 My script sets up a cluster and is to perform some platform tests in a
 clustered environment.

 I want to invoke this python script inside a java plugin (which is yet
 to be written) as an extension to
 the WSO2 Test Automation Framework.

 What are the standard approaches for invoking python scripts inside java?
 Are there any svn/git WSO2 repositories I can refer?

 Thanks,
 Suhan
 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhan-opensource.blogspot.com/

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




 --
 Thushara Kasun Ranawaka
 Software Engineer
 WSO2 Inc.; http://www.wso2.com
 lean.enterprise.middleware
 Mobile : *+94 (0) 773438949 %2B94%20%280%29%20773438949*
 *thusha...@wso2.com thusha...@wso2.com*

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




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

 Mobile: +94 71 2312958
 Blog:http://malinthas.blogspot.com
 Page:   http://about.me/malintha




-- 
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thusha...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Kernel commits required to patch0009

2014-11-28 Thread Thushara Ranawaka
Hi Kishanthan,

Corrected the formatting issues. Kindly apply the patch attached in Jira[1].
Note: removed the newline

[1] https://wso2.org/jira/browse/CARBON-15092

Thanks,

On Fri, Nov 28, 2014 at 3:16 PM, Kishanthan Thangarajah kishant...@wso2.com
 wrote:

 Thusara, I'm still seeing some formatting issues with this patch.

 On Thu, Nov 27, 2014 at 3:02 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Kishanthan,

 Corrected the formatting issues. Kindly apply the patch attached in
 Jira[1].

 [1] https://wso2.org/jira/browse/CARBON-15092

 Thanks,


 On Thu, Nov 27, 2014 at 12:27 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 This fix is adding a deprecated tag for a public API. Any reason for
 this? Also this patch has some formatting issues. Please fix that and send
 it again.

 +@Deprecated
  public void shutdown() throws ClusteringFault {
  try {
  Hazelcast.shutdownAll();


 On Wed, Nov 26, 2014 at 4:52 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Kishanthan/Manoj,

 Kindly apply the patch attached in Jira[1].

 [1] https://wso2.org/jira/browse/CARBON-15092

 Thanks,
 --
 Thushara Kasun Ranawaka
 Software Engineer
 WSO2 Inc.; http://www.wso2.com
 lean.enterprise.middleware
 Mobile : *+94 (0) 773438949 %2B94%20%280%29%20773438949*
 *thusha...@wso2.com thusha...@wso2.com*




 --
 *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*




 --
 Thushara Kasun Ranawaka
 Software Engineer
 WSO2 Inc.; http://www.wso2.com
 lean.enterprise.middleware
 Mobile : *+94 (0) 773438949 %2B94%20%280%29%20773438949*
 *thusha...@wso2.com thusha...@wso2.com*




 --
 *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*




-- 
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thusha...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Kernel commits required to patch0009

2014-11-27 Thread Thushara Ranawaka
Hi Kishanthan,

Corrected the formatting issues. Kindly apply the patch attached in Jira[1].

[1] https://wso2.org/jira/browse/CARBON-15092

Thanks,


On Thu, Nov 27, 2014 at 12:27 PM, Kishanthan Thangarajah 
kishant...@wso2.com wrote:

 This fix is adding a deprecated tag for a public API. Any reason for this?
 Also this patch has some formatting issues. Please fix that and send it
 again.

 +@Deprecated
  public void shutdown() throws ClusteringFault {
  try {
  Hazelcast.shutdownAll();


 On Wed, Nov 26, 2014 at 4:52 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Kishanthan/Manoj,

 Kindly apply the patch attached in Jira[1].

 [1] https://wso2.org/jira/browse/CARBON-15092

 Thanks,
 --
 Thushara Kasun Ranawaka
 Software Engineer
 WSO2 Inc.; http://www.wso2.com
 lean.enterprise.middleware
 Mobile : *+94 (0) 773438949 %2B94%20%280%29%20773438949*
 *thusha...@wso2.com thusha...@wso2.com*




 --
 *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*




-- 
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thusha...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Kernel commits required to patch0009

2014-11-26 Thread Thushara Ranawaka
Hi Kishanthan/Manoj,

Kindly apply the patch attached in Jira[1].

[1] https://wso2.org/jira/browse/CARBON-15092

Thanks,
-- 
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thusha...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] One or more certificates rejected.

2014-11-10 Thread Thushara Ranawaka
Yes, Im using mvn 3.0.5 and java 1.6

Thanks,

On Mon, Nov 10, 2014 at 5:51 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi Thushara,

 Make sure you that you use maven 3.0.x and java 1.6 to build the products.

 Thanks,
 Harsha

 On Mon, Nov 10, 2014 at 5:39 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi,

 While building carbon4-kernel, product-es and product-greg fails in WSO2
 Carbon Core - Distribution, P2 Profile Generation and WSO2 Governance
 Registry - P2 Profile Generation respectively. All 3 of them are failing
 due to below error:

 *Installation failed.*

 *One or more certificates rejected. Cannot proceed with installation.*

 Kindly find the error log for carbon below.

 Anybody who overcome the same issue?


 [INFO] Executed tasks

 [INFO]

 [INFO] --- carbon-p2-plugin:1.5.3:p2-repo-gen (p2-repo-generation) @
 wso2carbon-core ---

 [INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.core.feature

 [INFO] Extracting feature
 org.wso2.carbon:org.wso2.carbon.core.runtime.feature

 [INFO] Copying resources

 [INFO] Running Equinox P2 Publisher Application for Repository Generation

 [INFO] Command line:

 /bin/sh -c cd
 /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel 
 /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
 -jar
 /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
 -nosplash -application
 org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -source
 /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/tmp.1415620321712/featureExtract
 -metadataRepository
 file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
 -metadataRepositoryName wso2carbon-core -artifactRepository
 file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
 -artifactRepositoryName wso2carbon-core -publishArtifacts
 -publishArtifactRepository -compress -append

 Generating metadata for ..

 Generation completed with success [3 seconds].

 [INFO] Running Equinox P2 Category Publisher Application for the
 Generated Repository

 [INFO]

 [INFO] --- carbon-p2-plugin:1.5.3:publish-product (publishing products) @
 wso2carbon-core ---

 [INFO] Command line:

 /bin/sh -c cd
 /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel 
 /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
 -jar
 /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
 -nosplash -application org.eclipse.equinox.p2.publisher.ProductPublisher
 -metadataRepository
 file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
 -artifactRepository
 file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
 -productFile
 /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/carbon.product
 -executables
 /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/org.eclipse.equinox.executable_3.5.0.v20110530-7P7NFUFFLWUl76mart
 -publishArtifacts -configs gtk.linux.x86 -flavor tooling -append

 Generating metadata for ..

 Generation completed with success [0 seconds].

 [INFO]

 [INFO] --- carbon-p2-plugin:1.5.3:materialize-product
 (materialize-product) @ wso2carbon-core ---

 [INFO] Command line:

 /bin/sh -c cd
 /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel 
 /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
 -jar
 /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
 -nosplash -application org.eclipse.equinox.p2.director -metadataRepository
 file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
 -artifactRepository
 file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
 -installIU carbon.product.id -profileProperties
 org.eclipse.update.install.features=true -profile default -bundlepool
 file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/WSO2Carbon
 -shared
 file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/WSO2Carbon/p2
 -destination
 file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/WSO2Carbon/default
 -p2.os linux -p2.ws gtk -p2.arch x86 -roaming

 Installing carbon.product.id 4.3.0.SNAPSHOT.

 Installation failed.

 One or more certificates rejected. Cannot proceed with installation.

 Application failed, log file location:
 /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1415620329273.log


 [INFO]
 

 [INFO] Reactor Summary:

 [INFO]

 [INFO] WSO2 Carbon - Parent Pom .. SUCCESS
 [0.188s

Re: [Dev] One or more certificates rejected.

2014-11-10 Thread Thushara Ranawaka
Hi Omindu,

Yes, I did follow this[1] question but no luck. Last week I updated the mac
OS. Looks like Im getting these errors afterward.

Below the part of the error log - 1415620329273.log.

!ENTRY org.eclipse.osgi 2 0 2014-11-10 17:22:10.552
!MESSAGE TrustEngine failure: System
!STACK 0
java.io.FileNotFoundException:
/Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/lib/security/cacerts
(No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.init(FileInputStream.java:120)
at
org.eclipse.osgi.internal.service.security.KeyStoreTrustEngine.getInputStream(KeyStoreTrustEngine.java:311)
at
org.eclipse.osgi.internal.service.security.KeyStoreTrustEngine.getKeyStore(KeyStoreTrustEngine.java:87)
at org.eclipse.osgi.


[1]-
http://stackoverflow.com/questions/20075717/having-issues-with-android-studio-project-after-os-x-10-9-upgrade-error-with-ca

Thanks,

On Mon, Nov 10, 2014 at 6:41 PM, Omindu Rathnaweera omi...@wso2.com wrote:

 Hi Thushara,

 Can you check the following log file and see whether the issue is related
 to a missing cacerts file ? Had a similar problem while building the
 kernel on mac.

 /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/
 eclipse/configuration/1415620329273.log

 Regards,
 Omindu.

 On Mon, Nov 10, 2014 at 5:57 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Yes, Im using mvn 3.0.5 and java 1.6

 Thanks,

 On Mon, Nov 10, 2014 at 5:51 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi Thushara,

 Make sure you that you use maven 3.0.x and java 1.6 to build the
 products.

 Thanks,
 Harsha

 On Mon, Nov 10, 2014 at 5:39 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi,

 While building carbon4-kernel, product-es and product-greg fails in WSO2
 Carbon Core - Distribution, P2 Profile Generation and WSO2 Governance
 Registry - P2 Profile Generation respectively. All 3 of them are failing
 due to below error:

 *Installation failed.*

 *One or more certificates rejected. Cannot proceed with installation.*

 Kindly find the error log for carbon below.

 Anybody who overcome the same issue?


 [INFO] Executed tasks

 [INFO]

 [INFO] --- carbon-p2-plugin:1.5.3:p2-repo-gen (p2-repo-generation) @
 wso2carbon-core ---

 [INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.core.feature

 [INFO] Extracting feature
 org.wso2.carbon:org.wso2.carbon.core.runtime.feature

 [INFO] Copying resources

 [INFO] Running Equinox P2 Publisher Application for Repository
 Generation

 [INFO] Command line:

 /bin/sh -c cd
 /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel 
 /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
 -jar
 /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
 -nosplash -application
 org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -source
 /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/tmp.1415620321712/featureExtract
 -metadataRepository
 file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
 -metadataRepositoryName wso2carbon-core -artifactRepository
 file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
 -artifactRepositoryName wso2carbon-core -publishArtifacts
 -publishArtifactRepository -compress -append

 Generating metadata for ..

 Generation completed with success [3 seconds].

 [INFO] Running Equinox P2 Category Publisher Application for the
 Generated Repository

 [INFO]

 [INFO] --- carbon-p2-plugin:1.5.3:publish-product (publishing products)
 @ wso2carbon-core ---

 [INFO] Command line:

 /bin/sh -c cd
 /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel 
 /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
 -jar
 /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
 -nosplash -application org.eclipse.equinox.p2.publisher.ProductPublisher
 -metadataRepository
 file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
 -artifactRepository
 file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
 -productFile
 /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/carbon.product
 -executables
 /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/org.eclipse.equinox.executable_3.5.0.v20110530-7P7NFUFFLWUl76mart
 -publishArtifacts -configs gtk.linux.x86 -flavor tooling -append

 Generating metadata for ..

 Generation completed with success [0 seconds].

 [INFO]

 [INFO] --- carbon-p2-plugin:1.5.3:materialize-product
 (materialize-product) @ wso2carbon-core ---

 [INFO] Command line:

 /bin/sh -c cd
 /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel 
 /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents

Re: [Dev] One or more certificates rejected.

2014-11-10 Thread Thushara Ranawaka
Hi,
FYI
Finally solve the issue!
Reason for the issue is new mac update (10.10 Yosemite)
Had to reinstall JDK[1] then install Java for OS X 2014-001[2]. Java for OS
X 2014-001 includes installation improvements, and supersedes all previous
versions of Java for OS X. This package installs the same version of Java 6
included in Java for OS X 2013-005.

Make sure you quit any Java applications before installing this
update.(chrome, IDE's etc)

Thanks

[1]-
http://sencs.blogspot.com/2014/09/how-to-setup-mac-osx-environment-for.html
[2]- http://support.apple.com/kb/DL1572?viewlocale=en_USlocale=en_US

On Mon, Nov 10, 2014 at 8:53 PM, Omindu Rathnaweera omi...@wso2.com wrote:

 Hi Thushara,

 In my case, replacing the cacerts file from jdk 1.6.0_45 fixed the build
 error. But while going through the jdk folder I've noticed there are few
 other files replaced with broken aliases. So reinstalling the jdk might be
 the proper way to solve this.

 Regards,
 Omindu

 On Mon, Nov 10, 2014 at 7:36 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Omindu,

 Yes, I did follow this[1] question but no luck. Last week I updated the
 mac OS. Looks like Im getting these errors afterward.

 Below the part of the error log - 1415620329273.log.

 !ENTRY org.eclipse.osgi 2 0 2014-11-10 17:22:10.552
 !MESSAGE TrustEngine failure: System
 !STACK 0
 java.io.FileNotFoundException:
 /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/lib/security/cacerts
 (No such file or directory)
 at java.io.FileInputStream.open(Native Method)
 at java.io.FileInputStream.init(FileInputStream.java:120)
 at
 org.eclipse.osgi.internal.service.security.KeyStoreTrustEngine.getInputStream(KeyStoreTrustEngine.java:311)
 at
 org.eclipse.osgi.internal.service.security.KeyStoreTrustEngine.getKeyStore(KeyStoreTrustEngine.java:87)
 at org.eclipse.osgi.


 [1]-
 http://stackoverflow.com/questions/20075717/having-issues-with-android-studio-project-after-os-x-10-9-upgrade-error-with-ca

 Thanks,

 On Mon, Nov 10, 2014 at 6:41 PM, Omindu Rathnaweera omi...@wso2.com
 wrote:

 Hi Thushara,

 Can you check the following log file and see whether the issue is
 related to a missing cacerts file ? Had a similar problem while
 building the kernel on mac.

 /Users/thushara/.m2/repository/org/eclipse/tycho/
 tycho-p2-runtime/0.13.0/eclipse/configuration/1415620329273.log

 Regards,
 Omindu.

 On Mon, Nov 10, 2014 at 5:57 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Yes, Im using mvn 3.0.5 and java 1.6

 Thanks,

 On Mon, Nov 10, 2014 at 5:51 PM, Harsha Kumara hars...@wso2.com
 wrote:

 Hi Thushara,

 Make sure you that you use maven 3.0.x and java 1.6 to build the
 products.

 Thanks,
 Harsha

 On Mon, Nov 10, 2014 at 5:39 PM, Thushara Ranawaka thusha...@wso2.com
  wrote:

 Hi,

 While building carbon4-kernel, product-es and product-greg fails in WSO2
 Carbon Core - Distribution, P2 Profile Generation and WSO2 Governance
 Registry - P2 Profile Generation respectively. All 3 of them are failing
 due to below error:

 *Installation failed.*

 *One or more certificates rejected. Cannot proceed with installation.*

 Kindly find the error log for carbon below.

 Anybody who overcome the same issue?


 [INFO] Executed tasks

 [INFO]

 [INFO] --- carbon-p2-plugin:1.5.3:p2-repo-gen (p2-repo-generation) @
 wso2carbon-core ---

 [INFO] Extracting feature org.wso2.carbon:org.wso2.carbon.core.feature

 [INFO] Extracting feature
 org.wso2.carbon:org.wso2.carbon.core.runtime.feature

 [INFO] Copying resources

 [INFO] Running Equinox P2 Publisher Application for Repository
 Generation

 [INFO] Command line:

 /bin/sh -c cd
 /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel 
 /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
 -jar
 /Users/thushara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
 -nosplash -application
 org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -source
 /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/tmp.1415620321712/featureExtract
 -metadataRepository
 file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
 -metadataRepositoryName wso2carbon-core -artifactRepository
 file:/Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel/target/p2-repo
 -artifactRepositoryName wso2carbon-core -publishArtifacts
 -publishArtifactRepository -compress -append

 Generating metadata for ..

 Generation completed with success [3 seconds].

 [INFO] Running Equinox P2 Category Publisher Application for the
 Generated Repository

 [INFO]

 [INFO] --- carbon-p2-plugin:1.5.3:publish-product (publishing
 products) @ wso2carbon-core ---

 [INFO] Command line:

 /bin/sh -c cd
 /Users/thushara/Documents/greg/carbon4-kernel/distribution/kernel 
 /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Home/bin/java
 -jar
 /Users/thushara/.m2/repository/org

Re: [Dev] Problems running build with auto tests on Mac

2014-10-22 Thread Thushara Ranawaka
Hi,
FYI
I include this line of code to my .bash_profile profile and did
some integration testing in greg.
There was an unusual behaviour after I add this code line in mac osx.
Better not to use:
export JAVA_TOOL_OPTIONS='-Djava.awt.headless=true'
I couldn't identify the root cause but I assume something regarding jmx
client[1][2] is not working after we export this EV.

Thanks,

[1]-
https://docs.wso2.com/display/Governance453/Adding+JMX+Subscriptions+to+a+Resource
[2]-
https://docs.wso2.com/display/Governance453/Use+JConsole+to+Monitor+and+Manage+Governance+Registry

On Wed, Oct 1, 2014 at 10:45 AM, Krishantha Samaraweera krishan...@wso2.com
 wrote:

 This explain it all -
 http://blog.jeroenreijn.com/2013/09/the-mystery-of-bootstrap-application.html

 Thanks,
 Krishantha.

 On Wed, Oct 1, 2014 at 8:58 AM, Samisa Abeysinghe sam...@wso2.com wrote:

 I will try

 Thanks,
 Samisa...


 Samisa Abeysinghe

 Vice President Delivery

 WSO2 Inc.
 http://wso2.com


 On Wed, Oct 1, 2014 at 8:54 AM, Lahiru Chandima lahi...@wso2.com wrote:

 Hi Samisa,

 I also had the same problem and could resolve by adding the following to
 my .bash_profile

 export JAVA_TOOL_OPTIONS='-Djava.awt.headless=true'

 I am not sure whether this affects any other functionality but it
 resolves the issue

 Thanks.

 On Wed, Oct 1, 2014 at 8:42 AM, Samisa Abeysinghe sam...@wso2.com
 wrote:

 The process focus keep switching to Java icon due to server invocations

 Cannot do any other work while building on mac OS

 Do we have a solution?

 Thanks,
 Samisa...


 Samisa Abeysinghe

 Vice President Delivery

 WSO2 Inc.
 http://wso2.com


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




 --
 Lahiru Chandima
 *Senior Software Engineer*
 Mobile : +94 (0) 772 253283
 lahi...@wso2.com





 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.

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




-- 
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thusha...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-24 Thread Thushara Ranawaka
Hi Nirmal,
If we can use -n alone with -i will do the job(tested in mac osx).

example:- sed -i -n s@USERSTORE_DB_SCHEMA@$userstore_db_schema@g mysql.sql

in the sed manual its stated like this

 -i *extension*

 Edit files in-place, saving backups with the specified
extension.  If a zero-length extension is given, no backup will be saved.
It is not recommended to give a zero-length extension when in-place

 editing files, as you risk corruption or partial content in
situations where disk space is exhausted, etc.

 -n

 By default, each line of input is echoed to the standard
output after all of the commands have been applied to it.  The -n option
suppresses this behavior.


Thanks,

Thushara

On Wed, Sep 24, 2014 at 11:07 AM, Nirmal Fernando nir...@wso2.com wrote:

 Guys,

 One concern; isn't there anyway to avoid this new package installation ?
 Wouldn't sed -n an option in OS X (
 http://www.maclife.com/article/columns/terminal_101_find_and_replace_using_sed
 )

 On Wed, Sep 17, 2014 at 11:48 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi,

 Thank you Prasanna for the prompt reply and helping to rectifying the
 issue(using gsed -i instead of sed -i).
 Finally we were able to start Stratos in our mac books. I would like to
 merge all the findings together for more clarification.

 In our review we found that below problems in respective shell scripts.

 1) In setup.sh  line 539 the activemq.xml location is hard coded.
 2) sed -i is included in many of the shell scripts.
 3) use of illegal group name. (line 580 chown -R *$host_user:$host_user*
 $stratos_path)

 As per the work around solution :-

 1)We added below lines to the setup.conf eod
 # activemq.xml path
 #
 
 export activemq_xml=/opt/stratos/apache-activemq-5.10.0/conf/activemq.xml

 2)
 i. Installed homebrew http://brew.sh/
 ruby -e $(curl -fsSL
 https://raw.githubusercontent.com/Homebrew/install/master/install)
 ii. Installed gnu-sed
 brew install gnu-sed
 iii. Changed sed -i to gsed -i in *demo.sh, ec2.sh,openstack.sh,
 add_entry_zone_file.sh, remove_entry_zone_file.sh, setup.sh and vcloud.sh.*
 (I uploaded the edit files below and the link
 https://drive.google.com/file/d/0B7SZH36oFys3LXBpaG83RC16Mk0/edit?usp=sharing
  for
 g-drive file location)

 3) Adding a user group as same as your user name in mac osx (System
 Preferences - Users  Groups (Unlock to change) - new Group as 'suhanr')

 Hope these simple steps will rectify the issue.

 Thanks,
 Thushara.


 On Wed, Sep 17, 2014 at 4:44 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi all,

 Adding to Prasanna's comment.

 Following issue,
 Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
 chown: suhanr: illegal group name
 was solved by,
 1. Adding a user group as suhanr in mac osx (System Preferences - Users
  Groups (Unlock to change) - new Group as 'suhanr')
 2.  sudo chown -R suhanr:suhanr *

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 4:39 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 Hi all,

 Issue was with the sed and database name.

 Fixed those in suhanr's  mac and stratos installed successfully :D .

 Step followed

 1. Installed homerew
 ruby -e $(curl -fsSL
 https://raw.githubusercontent.com/Homebrew/install/master/install)
 2. Installed gnu-sed
 brew install gnu-sed
 3. Changed 'sed' to 'gsed' in setup.sh and openstack.sh scripts
 4. Run setup.sh

 No issues in clean.sh


 On Wed, Sep 17, 2014 at 3:24 PM, Nirmal Fernando nir...@wso2.com
 wrote:

 Please check the place where it creates this database. Seems like it's
 not properly replaced.

 On Wed, Sep 17, 2014 at 3:22 PM, Thushara Ranawaka thusha...@wso2.com
  wrote:

 Hi Manula,
 Yes it is.


 On Wed, Sep 17, 2014 at 3:18 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 It might be a problem. Then it create the database as
 USERSTORE_DB_SCHEMA. Isn't it ?

 On Wed, Sep 17, 2014 at 3:10 PM, Thushara Ranawaka 
 thusha...@wso2.com wrote:

 Hi,

 Issue was the database name.
 I did the following changes in the setup.conf and now clean.sh is
 working properly.

 # export userstore_db_schema=userstore
 export userstore_db_schema=USERSTORE_DB_SCHEMA # for mac osx

 Is there any issue or conflict in above setup?

 Thanks,
 Thushara

 On Wed, Sep 17, 2014 at 2:50 PM, Thushara Ranawaka 
 thusha...@wso2.com wrote:

 Hi Manula,

 FYI

 In mac when we run mysql -u $mysql_user -p$mysql_pass -e DROP
 DATABASE IF EXISTS $userstore_db_schema;  it works without any
 issue. we will debug the shell script and let you know.

 mysql show databases;

 +-+

 | Database|

 +-+

 | information_schema  |

 | USERSTORE_DB_SCHEMA |

 | mysql   |

 | performance_schema  |

 | test|

 +-+

 5 rows in set (0.00 sec)


 mysql exit

 Bye

 Thusharas-MacBook-Pro

Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-24 Thread Thushara Ranawaka
Hi Nirmal,
We had below issue as well,

sed: illegal option -- r

usage: sed script [-Ealn] [-i extension] [file ...]

   sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ...
[file ...]

Above error generated when we try to execute

line 549 sed-r -i -e 's@^(\s*)(transportConnector
name=amqp.*\s*)$@\1!--\2--@g' $activemq_path/conf/activemq.xml

will do some testing and get to you with the results.

Thank you!


On Wed, Sep 24, 2014 at 11:44 AM, Nirmal Fernando nir...@wso2.com wrote:

 Cool.. thanks for checking. So, we could go with this? Wdyt? This avoid
 the pre-requisite of having gsed.

 On Wed, Sep 24, 2014 at 11:42 AM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Nirmal,
 If we can use -n alone with -i will do the job(tested in mac osx).

 example:- sed -i -n s@USERSTORE_DB_SCHEMA@$userstore_db_schema@g
 mysql.sql

 in the sed manual its stated like this

  -i *extension*

  Edit files in-place, saving backups with the specified
 extension.  If a zero-length extension is given, no backup will be
 saved.  It is not recommended to give a zero-length extension when
 in-place

  editing files, as you risk corruption or partial content in
 situations where disk space is exhausted, etc.

  -n

  By default, each line of input is echoed to the standard
 output after all of the commands have been applied to it.  The -n option
 suppresses this behavior.


 Thanks,

 Thushara

 On Wed, Sep 24, 2014 at 11:07 AM, Nirmal Fernando nir...@wso2.com
 wrote:

 Guys,

 One concern; isn't there anyway to avoid this new package installation ?
 Wouldn't sed -n an option in OS X (
 http://www.maclife.com/article/columns/terminal_101_find_and_replace_using_sed
 )

 On Wed, Sep 17, 2014 at 11:48 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi,

 Thank you Prasanna for the prompt reply and helping to rectifying the
 issue(using gsed -i instead of sed -i).
 Finally we were able to start Stratos in our mac books. I would like to
 merge all the findings together for more clarification.

 In our review we found that below problems in respective shell scripts.

 1) In setup.sh  line 539 the activemq.xml location is hard coded.
 2) sed -i is included in many of the shell scripts.
 3) use of illegal group name. (line 580 chown -R
 *$host_user:$host_user* $stratos_path)

 As per the work around solution :-

 1)We added below lines to the setup.conf eod
 # activemq.xml path
 #
 
 export
 activemq_xml=/opt/stratos/apache-activemq-5.10.0/conf/activemq.xml

 2)
 i. Installed homebrew http://brew.sh/
 ruby -e $(curl -fsSL
 https://raw.githubusercontent.com/Homebrew/install/master/install)
 ii. Installed gnu-sed
 brew install gnu-sed
 iii. Changed sed -i to gsed -i in *demo.sh, ec2.sh,openstack.sh,
 add_entry_zone_file.sh, remove_entry_zone_file.sh, setup.sh and vcloud.sh.*
 (I uploaded the edit files below and the link
 https://drive.google.com/file/d/0B7SZH36oFys3LXBpaG83RC16Mk0/edit?usp=sharing
  for
 g-drive file location)

 3) Adding a user group as same as your user name in mac osx (System
 Preferences - Users  Groups (Unlock to change) - new Group as 'suhanr')

 Hope these simple steps will rectify the issue.

 Thanks,
 Thushara.


 On Wed, Sep 17, 2014 at 4:44 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi all,

 Adding to Prasanna's comment.

 Following issue,
 Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
 chown: suhanr: illegal group name
 was solved by,
 1. Adding a user group as suhanr in mac osx (System Preferences -
 Users  Groups (Unlock to change) - new Group as 'suhanr')
 2.  sudo chown -R suhanr:suhanr *

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 4:39 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 Hi all,

 Issue was with the sed and database name.

 Fixed those in suhanr's  mac and stratos installed successfully :D .

 Step followed

 1. Installed homerew
 ruby -e $(curl -fsSL
 https://raw.githubusercontent.com/Homebrew/install/master/install)
 2. Installed gnu-sed
 brew install gnu-sed
 3. Changed 'sed' to 'gsed' in setup.sh and openstack.sh scripts
 4. Run setup.sh

 No issues in clean.sh


 On Wed, Sep 17, 2014 at 3:24 PM, Nirmal Fernando nir...@wso2.com
 wrote:

 Please check the place where it creates this database. Seems like
 it's not properly replaced.

 On Wed, Sep 17, 2014 at 3:22 PM, Thushara Ranawaka 
 thusha...@wso2.com wrote:

 Hi Manula,
 Yes it is.


 On Wed, Sep 17, 2014 at 3:18 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 It might be a problem. Then it create the database as
 USERSTORE_DB_SCHEMA. Isn't it ?

 On Wed, Sep 17, 2014 at 3:10 PM, Thushara Ranawaka 
 thusha...@wso2.com wrote:

 Hi,

 Issue was the database name.
 I did the following changes in the setup.conf and now clean.sh is
 working properly.

 # export userstore_db_schema=userstore
 export userstore_db_schema

Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-24 Thread Thushara Ranawaka
Hi,
In my background search i found that sed -r option is not available in mac
osx(not included in mac osx sed manual)

(below the result in ubuntu)
$ man sed
-r, --regexp-extended

  use extended regular expressions in the script.

In mac os x we can use -E instead of -r if so we need to have two
configuration folders, one for ubuntu and other one for mac(may be more in
future). As Nirmal mentioned this is a maintenance overhead IMO. It will be
better if we move forward with gsed since it is same as sed we use in unix
systems.

(man result in mac)
$ man sed

-E  Interpret regular expressions as extended (modern) regular
expressions rather than basic regular expressions (BRE's).  The
re_format(7) manual page fully describes both formats.


thanks,

Thushara

On Wed, Sep 24, 2014 at 1:42 PM, Nirmal Fernando nir...@wso2.com wrote:

 It's a maintenance overhead IMO and I don't think it's a best practice.


 On Wed, Sep 24, 2014 at 12:30 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 Hi ,

 Me too think its good to have separate scripts for mac. If that so my
 attached scripts can be used.

 Thanks

 On Wed, Sep 24, 2014 at 12:19 PM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 Make sure your changes works in Linux(Debian) environment too. In case
 we can not make a script that works on both environments, it is better to
 have separate scripts for Mac.
 IMO It is better not to have dependent prerequisites for Linux
 environments.

 On Wed, Sep 24, 2014 at 11:59 AM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Nirmal,
 We had below issue as well,

 sed: illegal option -- r

 usage: sed script [-Ealn] [-i extension] [file ...]

sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ...
 [file ...]

 Above error generated when we try to execute

 line 549 sed-r -i -e 's@^(\s*)(transportConnector
 name=amqp.*\s*)$@\1!--\2--@g' $activemq_path/conf/activemq.xml

 will do some testing and get to you with the results.

 Thank you!


 On Wed, Sep 24, 2014 at 11:44 AM, Nirmal Fernando nir...@wso2.com
 wrote:

 Cool.. thanks for checking. So, we could go with this? Wdyt? This
 avoid the pre-requisite of having gsed.

 On Wed, Sep 24, 2014 at 11:42 AM, Thushara Ranawaka 
 thusha...@wso2.com wrote:

 Hi Nirmal,
 If we can use -n alone with -i will do the job(tested in mac osx).

 example:- sed -i -n s@USERSTORE_DB_SCHEMA@$userstore_db_schema@g
 mysql.sql

 in the sed manual its stated like this

  -i *extension*

  Edit files in-place, saving backups with the specified
 extension.  If a zero-length extension is given, no backup will be
 saved.  It is not recommended to give a zero-length extension when
 in-place

  editing files, as you risk corruption or partial content
 in situations where disk space is exhausted, etc.

  -n

  By default, each line of input is echoed to the standard
 output after all of the commands have been applied to it.  The -n
 option suppresses this behavior.


 Thanks,

 Thushara

 On Wed, Sep 24, 2014 at 11:07 AM, Nirmal Fernando nir...@wso2.com
 wrote:

 Guys,

 One concern; isn't there anyway to avoid this new package
 installation ? Wouldn't sed -n an option in OS X (
 http://www.maclife.com/article/columns/terminal_101_find_and_replace_using_sed
 )

 On Wed, Sep 17, 2014 at 11:48 PM, Thushara Ranawaka 
 thusha...@wso2.com wrote:

 Hi,

 Thank you Prasanna for the prompt reply and helping to rectifying
 the issue(using gsed -i instead of sed -i).
 Finally we were able to start Stratos in our mac books. I would
 like to merge all the findings together for more clarification.

 In our review we found that below problems in respective shell
 scripts.

 1) In setup.sh  line 539 the activemq.xml location is hard coded.
 2) sed -i is included in many of the shell scripts.
 3) use of illegal group name. (line 580 chown -R
 *$host_user:$host_user* $stratos_path)

 As per the work around solution :-

 1)We added below lines to the setup.conf eod
 # activemq.xml path
 #
 
 export
 activemq_xml=/opt/stratos/apache-activemq-5.10.0/conf/activemq.xml

 2)
 i. Installed homebrew http://brew.sh/
 ruby -e $(curl -fsSL
 https://raw.githubusercontent.com/Homebrew/install/master/install)
 ii. Installed gnu-sed
 brew install gnu-sed
 iii. Changed sed -i to gsed -i in *demo.sh,
 ec2.sh,openstack.sh, add_entry_zone_file.sh, remove_entry_zone_file.sh,
 setup.sh and vcloud.sh.*
 (I uploaded the edit files below and the link
 https://drive.google.com/file/d/0B7SZH36oFys3LXBpaG83RC16Mk0/edit?usp=sharing
  for
 g-drive file location)

 3) Adding a user group as same as your user name in mac osx
 (System Preferences - Users  Groups (Unlock to change) - new Group 
 as
 'suhanr')

 Hope these simple steps will rectify the issue.

 Thanks,
 Thushara.


 On Wed, Sep 17, 2014 at 4:44 PM, Suhan Dharmasuriya 
 suh...@wso2.com wrote:

 Hi all,

 Adding

Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-24 Thread Thushara Ranawaka
Hi all,
We are moving forward with proposed[1] development.

Thanks all !

[1] - https://github.com/apache/stratos/pull/54#issuecomment-56644808

On Wed, Sep 24, 2014 at 4:46 PM, Uvindra Dias Jayasinha uvin...@wso2.com
wrote:

 Just my two cents, if its not possible to have a shell script that runs on
 all environments and we want to prevent maintaining multiple env specific
 scripts, it might be a good idea to consider a higher level multi platform
 scripting language such as Python(which comes pre-installed on Mac and
 Linux) for these purposes. Then we wont need to deal with platform specific
 implementation limitations.

 On 24 September 2014 14:28, Thushara Ranawaka thusha...@wso2.com wrote:

 Hi,
 In my background search i found that sed -r option is not available in
 mac osx(not included in mac osx sed manual)

 (below the result in ubuntu)
 $ man sed
 -r, --regexp-extended

   use extended regular expressions in the script.

 In mac os x we can use -E instead of -r if so we need to have two
 configuration folders, one for ubuntu and other one for mac(may be more in
 future). As Nirmal mentioned this is a maintenance overhead IMO. It will
 be better if we move forward with gsed since it is same as sed we use in
 unix systems.

 (man result in mac)
 $ man sed

 -E  Interpret regular expressions as extended (modern) regular
 expressions rather than basic regular expressions (BRE's).  The
 re_format(7) manual page fully describes both formats.


 thanks,

 Thushara

 On Wed, Sep 24, 2014 at 1:42 PM, Nirmal Fernando nir...@wso2.com wrote:

 It's a maintenance overhead IMO and I don't think it's a best practice.


 On Wed, Sep 24, 2014 at 12:30 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 Hi ,

 Me too think its good to have separate scripts for mac. If that so my
 attached scripts can be used.

 Thanks

 On Wed, Sep 24, 2014 at 12:19 PM, Udara Liyanage ud...@wso2.com
 wrote:

 Hi,

 Make sure your changes works in Linux(Debian) environment too. In case
 we can not make a script that works on both environments, it is better to
 have separate scripts for Mac.
 IMO It is better not to have dependent prerequisites for Linux
 environments.

 On Wed, Sep 24, 2014 at 11:59 AM, Thushara Ranawaka 
 thusha...@wso2.com wrote:

 Hi Nirmal,
 We had below issue as well,

 sed: illegal option -- r

 usage: sed script [-Ealn] [-i extension] [file ...]

sed [-Ealn] [-i extension] [-e script] ... [-f script_file]
 ... [file ...]

 Above error generated when we try to execute

 line 549 sed-r -i -e 's@^(\s*)(transportConnector
 name=amqp.*\s*)$@\1!--\2--@g' $activemq_path/conf/activemq.xml

 will do some testing and get to you with the results.

 Thank you!


 On Wed, Sep 24, 2014 at 11:44 AM, Nirmal Fernando nir...@wso2.com
 wrote:

 Cool.. thanks for checking. So, we could go with this? Wdyt? This
 avoid the pre-requisite of having gsed.

 On Wed, Sep 24, 2014 at 11:42 AM, Thushara Ranawaka 
 thusha...@wso2.com wrote:

 Hi Nirmal,
 If we can use -n alone with -i will do the job(tested in mac osx).

 example:- sed -i -n s@USERSTORE_DB_SCHEMA@$userstore_db_schema@g
 mysql.sql

 in the sed manual its stated like this

  -i *extension*

  Edit files in-place, saving backups with the specified
 extension.  If a zero-length extension is given, no backup will be
 saved.  It is not recommended to give a zero-length extension when
 in-place

  editing files, as you risk corruption or partial
 content in situations where disk space is exhausted, etc.

  -n

  By default, each line of input is echoed to the
 standard output after all of the commands have been applied to it.  The
 -n option suppresses this behavior.


 Thanks,

 Thushara

 On Wed, Sep 24, 2014 at 11:07 AM, Nirmal Fernando nir...@wso2.com
 wrote:

 Guys,

 One concern; isn't there anyway to avoid this new package
 installation ? Wouldn't sed -n an option in OS X (
 http://www.maclife.com/article/columns/terminal_101_find_and_replace_using_sed
 )

 On Wed, Sep 17, 2014 at 11:48 PM, Thushara Ranawaka 
 thusha...@wso2.com wrote:

 Hi,

 Thank you Prasanna for the prompt reply and helping to rectifying
 the issue(using gsed -i instead of sed -i).
 Finally we were able to start Stratos in our mac books. I would
 like to merge all the findings together for more clarification.

 In our review we found that below problems in respective shell
 scripts.

 1) In setup.sh  line 539 the activemq.xml location is hard
 coded.
 2) sed -i is included in many of the shell scripts.
 3) use of illegal group name. (line 580 chown -R
 *$host_user:$host_user* $stratos_path)

 As per the work around solution :-

 1)We added below lines to the setup.conf eod
 # activemq.xml path
 #
 
 export
 activemq_xml=/opt/stratos/apache-activemq-5.10.0/conf/activemq.xml

 2)
 i. Installed homebrew http://brew.sh/
 ruby -e $(curl -fsSL
 https

Re: [Dev] Error while building ELB 2.1.1

2014-09-17 Thread Thushara Ranawaka
Hi,
Kindly send the full error log and the pom.xml file.
Thanks,
Thushara.

On Wed, Sep 17, 2014 at 12:34 PM, Rajakrishna Reddy va...@outlook.com
wrote:

 Hi,
 I'm trying to build the ELB 2.1.1 but getting the below error.

 [INFO] Executed tasks
 [INFO]
 [INFO] --- maven-assembly-plugin:2.2-beta-2:attached (dist) @ wso2elb ---
 [INFO] Reading assembly descriptor: src/main/assembly/bin.xml
 [INFO] Processing DependencySet
 (output=wso2elb-${pom.version}/lib/core/WEB-INF/lib)
 [INFO]
 
 [INFO] Reactor Summary:
 [INFO]
 [INFO] WSO2 ELB - Distribution ... FAILURE
 [42.507s]
 [INFO] WSO2 MB ... SKIPPED
 [INFO] WSO2 MB Styles Parent . SKIPPED
 [INFO] WSO2 MB Styles  SKIPPED
 [INFO] WSO2 Stratos Message Broker - Styles .. SKIPPED
 [INFO] WSO2 MB Features Parent ... SKIPPED
 [INFO] WSO2 MB Features Aggregator Module  SKIPPED
 [INFO] WSO2 MB - Styles Features . SKIPPED
 [INFO] WSO2 Stratos Message Broker - Features Aggregator Module  SKIPPED
 [INFO] WSO2 Stratos Message Broker - Styles Features . SKIPPED
 [INFO] WSO2 Stratos Message Broker - Login User Interface  SKIPPED
 [INFO] WSO2 Stratos Message Broker - Deployment Features . SKIPPED
 [INFO] WSO2 Stratos Message Broker - Dashboard UI  SKIPPED
 [INFO] WSO2 Stratos Message Broker - Dashboard UI Features  SKIPPED
 [INFO] WSO2 Message Broker - P2 Profile Generation ... SKIPPED
 [INFO] WSO2 Message Broker - Distribution  SKIPPED
 [INFO] WSO2 MB - Integration Tests ... SKIPPED
 [INFO] WSO2 MB - Integration Test Module . SKIPPED
 [INFO] WSO2 Carbon - Releases - products - Aggregator Module  SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 47.866s
 [INFO] Finished at: Wed Sep 17 12:11:03 IST 2014
 [INFO] Final Memory: 144M/1749M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-2:attached (dist)
 on project wso2elb: Execution dist of goal org.apache.maven.plugins:mave
 n-assembly-plugin:2.2-beta-2:attached failed: For artifact
 {null:null:null:jar}: The groupId cannot be empty. - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException


 Can anybody suggest what should be the done in order to build it
 successfully.
 Between I'm able to build AM, IS an other servers without any issue.


 Thanks  Regards,
 Rajakrishna Reddy,
 +91 95000 88012




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




-- 
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thusha...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Thushara Ranawaka
Hi Udara,
Yes, We will do the needful.

Thanks,
Thushara.

On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage ud...@wso2.com wrote:



 On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Thanks Lasindu,

 Thushara and I are in the process of modifying the shell scripts suitable
 for osx.
 We contacted Nirmal, Lakmal, Waruna and Udara and had a quick discussion.

 After the discussion, the solution we found was to delete the
 USERSTORE_DB_SCHEMA database from mysql manually.

 As mentioned earlier, once $ sudo ./setup.sh -p default -s command is
 run we get the following error.
 outputEventAdaptor name=JMSOutputAdaptor statistics=disable
   trace=enable type=jms xmlns=
 http://wso2.org/carbon/eventadaptormanager;
   !--property
 name=java.naming.provider.urlCEP_HOME/repository/conf/jndi.properties/property--
   property name=java.naming.provider.urltcp://10.100.5.175:61616
 /property
   property
 name=java.naming.factory.initialorg.apache.activemq.jndi.ActiveMQInitialContextFactory/property
   property
 name=transport.jms.ConnectionFactoryJNDINameTopicConnectionFactory/property
   property name=transport.jms.DestinationTypetopic/property
 /outputEventAdaptor
 End configuring the Complex Event Processor
 /WSO2/Products/stratos/opt/stratos-installer
 Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
 chown: suhanr: illegal group name

 What it tries to do is changing the ownership of installer to user suhanr
 that he can start Stratos. I guess the user group suhanr  is not present
 in your environment. Please check with the command groups.

 *After the second attempt we were getting the said error. $subject.*

 As a temporary solution we deleted the said database from mysql.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | *USERSTORE_DB_SCHEMA* |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql drop database *USERSTORE_DB_SCHEMA*;
 Query OK, 39 rows affected (0.05 sec)

 mysql show databases;
 ++
 | Database   |
 ++
 | information_schema |
 | mysql  |
 | performance_schema |
 | test   |
 ++
 4 rows in set (0.00 sec)

 Then we were able to avoid the mentioned error in $subject.

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 11:21 AM, Lasindu Charith lasi...@wso2.com
 wrote:

 Hi Thushara and Suhan,

 Better if you can discuss the issues related to Apaches Stratos in
 stratos-dev list (http://stratos.apache.org/community/mailing-lists.html
 )
 But for now, regarding the issues you have when setting up Stratos in
 osx, Nirmal, Reka or Prasanna might be able to help (Added).

 Thanks,

 On Tue, Sep 16, 2014 at 3:57 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 We have installed mysql for OSX 10.9 [1]

 [1] http://www.macminivault.com/mysql-mavericks/

 On Tue, Sep 16, 2014 at 3:55 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 Myself and Thushara were following the tutorial [1] installing apache
 Stratos and came to the following section.

- Run the stratos-setup.sh file as the root.

 $ sudo ./setup.sh -p default

 After running the command we got the following error in our mac book
 pros.
 Detail terminal output is attached in the mail for reference.

 /WSO2/Products/stratos/opt/stratos-installer
 Warning: Using a password on the command line interface can be
 insecure.
 *ERROR 1061 (42000) at line 57: Duplicate key name
 'REG_PATH_IND_BY_PATH_VALUE'*


 This issue occurs when you try to install Stratos for the second time
 since database values are already there. Ideally clean.sh should delete the
 database. If  databases are not cleaned correctly by clean.sh it is a bug.
 Please create a jira and report it. Before that try following and check
 whether databases are deleted

 ./clean.sh -udb_username -pdb_pass or
 ./clean.sh -u db_username -p db_pass  .
 (Please mind the space in second option)

 Installer scripts are not tested very much in MAC environment as per my
 knowledge. It is highly appreciated if you can add your finding (installer
 scripts for MAC) to Stratos. It will be helpful for future MAC users.


 We also followed the apache stratos wiki [3].
 Please provide a direction to proceed from here.

 *Note*: *earlier setup.sh file gave an error saying,*
 sed: illegal option --r
 *Then the shell script was changed accordingly[2].*
 *Please note that we are using Mac OSX 10.9.4*

 *Then again an error appeared stating -i switch is not supported.*

 *Therefore the following shell script files were modified removing -i
 switch.*
 *ec2.sh*
 *openstack.sh*
 *setup.sh*
 *setup.conf*

 sed -i pattern file will modify the original file which you can
 achieve the same as below without -i option
  sed pattern filefile


 *Scripts are attached for reference. *

 [1]
 

Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Thushara Ranawaka
Hi Manula,

FYI

In mac when we run mysql -u $mysql_user -p$mysql_pass -e DROP DATABASE IF
EXISTS $userstore_db_schema;  it works without any issue. we will debug
the shell script and let you know.

mysql show databases;

+-+

| Database|

+-+

| information_schema  |

| USERSTORE_DB_SCHEMA |

| mysql   |

| performance_schema  |

| test|

+-+

5 rows in set (0.00 sec)


mysql exit

Bye

Thusharas-MacBook-Pro:~ thushara$ mysql -u root -ppassword -e DROP
DATABASE IF EXISTS USERSTORE_DB_SCHEMA;

Warning: Using a password on the command line interface can be insecure.

Thusharas-MacBook-Pro:~ thushara$ mysql

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 28

Server version: 5.6.20 MySQL Community Server (GPL)


Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.


Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.


Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.


mysql show databases;

++

| Database   |

++

| information_schema |

| mysql  |

| performance_schema |

| test   |

++

4 rows in set (0.00 sec)



On Wed, Sep 17, 2014 at 2:41 PM, Manula Chathurika Thantriwatte 
manu...@wso2.com wrote:

 Hi Suhan,

 Can you please debug and see the username and the password is actually
 there in the database cleanup function. You can simply use echo statement
 inside the drop database function and verify that. clean.sh script work
 perfectly in ubuntu. I'm not sure is there any impact on MAC.

 Thanks !


 On Wed, Sep 17, 2014 at 2:29 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi Manula,

 Nirmal, Thushara and I did try running clean.sh script but had no luck.
 Sample output is as follows.
 Note that mysql root password is 'pass'.
 Suhans-MacBook-Pro:stratos-installer suhanr$ sudo ./clean.sh -u root -p
 pass
 Please confirm that you want to remove stratos databases, servers and
 logs [y/n] y
 Stopping all java processes
 No matching processes were found
 Waiting for applications to exit
 Removing userstore database
 Warning: Using a password on the command line interface can be insecure.
 Removing Stratos
 Removing logs
 Suhans-MacBook-Pro:stratos-installer suhanr$

 According to the mysql server output the database is still there.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 1:38 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 HI,

 The sed issue came to me also.  I modifed the scripts and changed all
 sed to gsed.


 On Wed, Sep 17, 2014 at 12:52 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 The $subject error occurs because in the first time the script fails,
 and at that time it already create the database. Since you didn't run the
 clean.sh databases are already in the environment. After you run the
 setup.sh in second time you will get the $subject error.

 Thanks !


 On Wed, Sep 17, 2014 at 12:46 PM, Thushara Ranawaka thusha...@wso2.com
  wrote:

 Hi Udara,
 Yes, We will do the needful.

 Thanks,
 Thushara.

 On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage ud...@wso2.com
 wrote:



 On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya suh...@wso2.com
  wrote:

 Thanks Lasindu,

 Thushara and I are in the process of modifying the shell scripts
 suitable for osx.
 We contacted Nirmal, Lakmal, Waruna and Udara and had a quick
 discussion.

 After the discussion, the solution we found was to delete the
 USERSTORE_DB_SCHEMA database from mysql manually.

 As mentioned earlier, once $ sudo ./setup.sh -p default -s command
 is run we get the following error.
 outputEventAdaptor name=JMSOutputAdaptor statistics=disable
   trace=enable type=jms xmlns=
 http://wso2.org/carbon/eventadaptormanager;
   !--property
 name=java.naming.provider.urlCEP_HOME/repository/conf/jndi.properties/property--
   property name=java.naming.provider.urltcp://10.100.5.175:61616
 /property
   property
 name=java.naming.factory.initialorg.apache.activemq.jndi.ActiveMQInitialContextFactory/property
   property
 name=transport.jms.ConnectionFactoryJNDINameTopicConnectionFactory/property
   property name=transport.jms.DestinationTypetopic/property
 /outputEventAdaptor
 End configuring the Complex Event

Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Thushara Ranawaka
Hi,

Issue was the database name.
I did the following changes in the setup.conf and now clean.sh is working
properly.

# export userstore_db_schema=userstore
export userstore_db_schema=USERSTORE_DB_SCHEMA # for mac osx

Is there any issue or conflict in above setup?

Thanks,
Thushara

On Wed, Sep 17, 2014 at 2:50 PM, Thushara Ranawaka thusha...@wso2.com
wrote:

 Hi Manula,

 FYI

 In mac when we run mysql -u $mysql_user -p$mysql_pass -e DROP DATABASE
 IF EXISTS $userstore_db_schema;  it works without any issue. we will
 debug the shell script and let you know.

 mysql show databases;

 +-+

 | Database|

 +-+

 | information_schema  |

 | USERSTORE_DB_SCHEMA |

 | mysql   |

 | performance_schema  |

 | test|

 +-+

 5 rows in set (0.00 sec)


 mysql exit

 Bye

 Thusharas-MacBook-Pro:~ thushara$ mysql -u root -ppassword -e DROP
 DATABASE IF EXISTS USERSTORE_DB_SCHEMA;

 Warning: Using a password on the command line interface can be insecure.

 Thusharas-MacBook-Pro:~ thushara$ mysql

 Welcome to the MySQL monitor.  Commands end with ; or \g.

 Your MySQL connection id is 28

 Server version: 5.6.20 MySQL Community Server (GPL)


 Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights
 reserved.


 Oracle is a registered trademark of Oracle Corporation and/or its

 affiliates. Other names may be trademarks of their respective

 owners.


 Type 'help;' or '\h' for help. Type '\c' to clear the current input
 statement.


 mysql show databases;

 ++

 | Database   |

 ++

 | information_schema |

 | mysql  |

 | performance_schema |

 | test   |

 ++

 4 rows in set (0.00 sec)



 On Wed, Sep 17, 2014 at 2:41 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi Suhan,

 Can you please debug and see the username and the password is actually
 there in the database cleanup function. You can simply use echo statement
 inside the drop database function and verify that. clean.sh script work
 perfectly in ubuntu. I'm not sure is there any impact on MAC.

 Thanks !


 On Wed, Sep 17, 2014 at 2:29 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi Manula,

 Nirmal, Thushara and I did try running clean.sh script but had no luck.
 Sample output is as follows.
 Note that mysql root password is 'pass'.
 Suhans-MacBook-Pro:stratos-installer suhanr$ sudo ./clean.sh -u root -p
 pass
 Please confirm that you want to remove stratos databases, servers and
 logs [y/n] y
 Stopping all java processes
 No matching processes were found
 Waiting for applications to exit
 Removing userstore database
 Warning: Using a password on the command line interface can be insecure.
 Removing Stratos
 Removing logs
 Suhans-MacBook-Pro:stratos-installer suhanr$

 According to the mysql server output the database is still there.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 1:38 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 HI,

 The sed issue came to me also.  I modifed the scripts and changed all
 sed to gsed.


 On Wed, Sep 17, 2014 at 12:52 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 The $subject error occurs because in the first time the script fails,
 and at that time it already create the database. Since you didn't run the
 clean.sh databases are already in the environment. After you run the
 setup.sh in second time you will get the $subject error.

 Thanks !


 On Wed, Sep 17, 2014 at 12:46 PM, Thushara Ranawaka 
 thusha...@wso2.com wrote:

 Hi Udara,
 Yes, We will do the needful.

 Thanks,
 Thushara.

 On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage ud...@wso2.com
 wrote:



 On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya 
 suh...@wso2.com wrote:

 Thanks Lasindu,

 Thushara and I are in the process of modifying the shell scripts
 suitable for osx.
 We contacted Nirmal, Lakmal, Waruna and Udara and had a quick
 discussion.

 After the discussion, the solution we found was to delete the
 USERSTORE_DB_SCHEMA database from mysql manually.

 As mentioned earlier, once $ sudo ./setup.sh -p default -s command
 is run we get the following error.
 outputEventAdaptor name=JMSOutputAdaptor statistics=disable
   trace=enable type=jms xmlns=
 http://wso2.org/carbon/eventadaptormanager;
   !--property
 name=java.naming.provider.urlCEP_HOME/repository/conf

Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Thushara Ranawaka
Hi Manula,
Yes it is.


On Wed, Sep 17, 2014 at 3:18 PM, Manula Chathurika Thantriwatte 
manu...@wso2.com wrote:

 Hi,

 It might be a problem. Then it create the database as
 USERSTORE_DB_SCHEMA. Isn't it ?

 On Wed, Sep 17, 2014 at 3:10 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi,

 Issue was the database name.
 I did the following changes in the setup.conf and now clean.sh is working
 properly.

 # export userstore_db_schema=userstore
 export userstore_db_schema=USERSTORE_DB_SCHEMA # for mac osx

 Is there any issue or conflict in above setup?

 Thanks,
 Thushara

 On Wed, Sep 17, 2014 at 2:50 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Manula,

 FYI

 In mac when we run mysql -u $mysql_user -p$mysql_pass -e DROP DATABASE
 IF EXISTS $userstore_db_schema;  it works without any issue. we will
 debug the shell script and let you know.

 mysql show databases;

 +-+

 | Database|

 +-+

 | information_schema  |

 | USERSTORE_DB_SCHEMA |

 | mysql   |

 | performance_schema  |

 | test|

 +-+

 5 rows in set (0.00 sec)


 mysql exit

 Bye

 Thusharas-MacBook-Pro:~ thushara$ mysql -u root -ppassword -e DROP
 DATABASE IF EXISTS USERSTORE_DB_SCHEMA;

 Warning: Using a password on the command line interface can be insecure.

 Thusharas-MacBook-Pro:~ thushara$ mysql

 Welcome to the MySQL monitor.  Commands end with ; or \g.

 Your MySQL connection id is 28

 Server version: 5.6.20 MySQL Community Server (GPL)


 Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights
 reserved.


 Oracle is a registered trademark of Oracle Corporation and/or its

 affiliates. Other names may be trademarks of their respective

 owners.


 Type 'help;' or '\h' for help. Type '\c' to clear the current input
 statement.


 mysql show databases;

 ++

 | Database   |

 ++

 | information_schema |

 | mysql  |

 | performance_schema |

 | test   |

 ++

 4 rows in set (0.00 sec)



 On Wed, Sep 17, 2014 at 2:41 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi Suhan,

 Can you please debug and see the username and the password is actually
 there in the database cleanup function. You can simply use echo statement
 inside the drop database function and verify that. clean.sh script work
 perfectly in ubuntu. I'm not sure is there any impact on MAC.

 Thanks !


 On Wed, Sep 17, 2014 at 2:29 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi Manula,

 Nirmal, Thushara and I did try running clean.sh script but had no luck.
 Sample output is as follows.
 Note that mysql root password is 'pass'.
 Suhans-MacBook-Pro:stratos-installer suhanr$ sudo ./clean.sh -u root
 -p pass
 Please confirm that you want to remove stratos databases, servers and
 logs [y/n] y
 Stopping all java processes
 No matching processes were found
 Waiting for applications to exit
 Removing userstore database
 Warning: Using a password on the command line interface can be
 insecure.
 Removing Stratos
 Removing logs
 Suhans-MacBook-Pro:stratos-installer suhanr$

 According to the mysql server output the database is still there.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 1:38 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 HI,

 The sed issue came to me also.  I modifed the scripts and changed all
 sed to gsed.


 On Wed, Sep 17, 2014 at 12:52 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 The $subject error occurs because in the first time the script
 fails, and at that time it already create the database. Since you didn't
 run the clean.sh databases are already in the environment. After you run
 the setup.sh in second time you will get the $subject error.

 Thanks !


 On Wed, Sep 17, 2014 at 12:46 PM, Thushara Ranawaka 
 thusha...@wso2.com wrote:

 Hi Udara,
 Yes, We will do the needful.

 Thanks,
 Thushara.

 On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage ud...@wso2.com
 wrote:



 On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya 
 suh...@wso2.com wrote:

 Thanks Lasindu,

 Thushara and I are in the process of modifying the shell scripts
 suitable for osx.
 We contacted Nirmal, Lakmal, Waruna and Udara and had a quick
 discussion.

 After the discussion, the solution we found was to delete the
 USERSTORE_DB_SCHEMA database from mysql manually.

 As mentioned earlier

Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-16 Thread Thushara Ranawaka
Hi,
FYI
For mac osx it is illegal to use sed -r. As per a work around solution we
use -E instead of -r.

We used apache-stratos-4.0.0 version.

Thanks

On Tue, Sep 16, 2014 at 3:55 PM, Suhan Dharmasuriya suh...@wso2.com wrote:

 Hi,

 Myself and Thushara were following the tutorial [1] installing apache
 Stratos and came to the following section.

- Run the stratos-setup.sh file as the root.

 $ sudo ./setup.sh -p default

 After running the command we got the following error in our mac book pros.
 Detail terminal output is attached in the mail for reference.

 /WSO2/Products/stratos/opt/stratos-installer
 Warning: Using a password on the command line interface can be insecure.
 *ERROR 1061 (42000) at line 57: Duplicate key name
 'REG_PATH_IND_BY_PATH_VALUE'*

 We also followed the apache stratos wiki [3].
 Please provide a direction to proceed from here.

 *Note*: *earlier setup.sh file gave an error saying,*
 sed: illegal option --r
 *Then the shell script was changed accordingly[2].*
 *Please note that we are using Mac OSX 10.9.4*

 *Then again an error appeared stating -i switch is not supported.*

 *Therefore the following shell script files were modified removing -i
 switch.*
 *ec2.sh*
 *openstack.sh*
 *setup.sh*
 *setup.conf*

 *Scripts are attached for reference. *

 [1]
 http://blog.ravihansa3000.com/2014/04/installing-apache-stratos-40-with.html
 [2] http://www.flashesofpanic.com/panic/002596.php
 [3]
 https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Cloud+Controller+Configuration

 Thanks,
 Suhan and Thushara
 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhancoold.blogspot.com/




-- 
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thusha...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] BAM 4.2.2 build failed [Failure to find org.wso2.carbon:WSO2-CARBON-PATCH-4.2.0:zip:0009]

2014-09-08 Thread Thushara Ranawaka
Thank you Maninda and Manoj.,.

On Fri, Sep 5, 2014 at 6:57 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Thushara,

 Since patch0009 is not yet released it is not deployed to nexus repo. Due
 to that reason you may need to build it locally.

 Thanks,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188


 On Fri, Sep 5, 2014 at 3:57 AM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi,

 While building BAM 2.4.2 (in turing branch) I overcome a build failure.
 Kindly find the mvn error log Im getting below. I googled this error and
 found a resource in wso2 oxygen tank[1]. as per that solution I cant find
 Kernel patch 0009 (org.wso2.carbon:WSO2-CARBON-PATCH-4.2.0:zip:0009). Where
 could i find it?. Can someone help me?

 [1]
 http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-BAM-4-2-1-build-failed-td93488.html

 Thanx

 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:unpack
 (2-unpack-kernel-patch) on project wso2bam-p2-profile-gen: Unable to find
 artifact. Failure to find org.wso2.carbon:WSO2-CARBON-PATCH-4.2.0:zip:0009
 in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
 the local repository, resolution will not be reattempted until the update
 interval of wso2-nexus has elapsed or updates are forced

 [ERROR]

 [ERROR] Try downloading the file manually from the project website.

 [ERROR]

 [ERROR] Then, install it using the command:

 [ERROR] mvn install:install-file -DgroupId=org.wso2.carbon
 -DartifactId=WSO2-CARBON-PATCH-4.2.0 -Dversion=0009 -Dpackaging=zip
 -Dfile=/path/to/file

 [ERROR]

 [ERROR] Alternatively, if you host your own repository you can deploy the
 file there:

 [ERROR] mvn deploy:deploy-file -DgroupId=org.wso2.carbon
 -DartifactId=WSO2-CARBON-PATCH-4.2.0 -Dversion=0009 -Dpackaging=zip
 -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

 [ERROR]

 [ERROR]

 [ERROR] org.wso2.carbon:WSO2-CARBON-PATCH-4.2.0:zip:0009

 [ERROR]

 [ERROR] from the specified remote repositories:

 [ERROR] wso2-nexus (
 http://maven.wso2.org/nexus/content/groups/wso2-public/, releases=true,
 snapshots=true),

 [ERROR] central (http://repo.maven.apache.org/maven2, releases=true,
 snapshots=false)

 [ERROR] - [Help 1]

 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
 goal org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:unpack
 (2-unpack-kernel-patch) on project wso2bam-p2-profile-gen: Unable to find
 artifact.

 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)

 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

 at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)

 at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)

 at
 org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)

 at
 org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)

 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)

 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)

 at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)

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

 at
 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)

 at
 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)

 at
 org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

 at
 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

 Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to find
 artifact.

 at
 org.apache.maven.plugin.dependency.fromConfiguration.AbstractFromConfigurationMojo.getArtifact(AbstractFromConfigurationMojo.java:250)

 at
 org.apache.maven.plugin.dependency.fromConfiguration.AbstractFromConfigurationMojo.getProcessedArtifactItems(AbstractFromConfigurationMojo.java:146)

 at
 org.apache.maven.plugin.dependency.fromConfiguration.UnpackMojo.execute(UnpackMojo.java:67)

 at
 org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)

 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)

 ... 19 more

 Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
 Failure to find org.wso2.carbon:WSO2-CARBON-PATCH-4.2.0:zip:0009 in
 http

[Dev] BAM 4.2.2 build failed [Failure to find org.wso2.carbon:WSO2-CARBON-PATCH-4.2.0:zip:0009]

2014-09-05 Thread Thushara Ranawaka
Hi,

While building BAM 2.4.2 (in turing branch) I overcome a build failure.
Kindly find the mvn error log Im getting below. I googled this error and
found a resource in wso2 oxygen tank[1]. as per that solution I cant find
Kernel patch 0009 (org.wso2.carbon:WSO2-CARBON-PATCH-4.2.0:zip:0009). Where
could i find it?. Can someone help me?

[1]
http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-BAM-4-2-1-build-failed-td93488.html

Thanx

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:unpack
(2-unpack-kernel-patch) on project wso2bam-p2-profile-gen: Unable to find
artifact. Failure to find org.wso2.carbon:WSO2-CARBON-PATCH-4.2.0:zip:0009
in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
the local repository, resolution will not be reattempted until the update
interval of wso2-nexus has elapsed or updates are forced

[ERROR]

[ERROR] Try downloading the file manually from the project website.

[ERROR]

[ERROR] Then, install it using the command:

[ERROR] mvn install:install-file -DgroupId=org.wso2.carbon
-DartifactId=WSO2-CARBON-PATCH-4.2.0 -Dversion=0009 -Dpackaging=zip
-Dfile=/path/to/file

[ERROR]

[ERROR] Alternatively, if you host your own repository you can deploy the
file there:

[ERROR] mvn deploy:deploy-file -DgroupId=org.wso2.carbon
-DartifactId=WSO2-CARBON-PATCH-4.2.0 -Dversion=0009 -Dpackaging=zip
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

[ERROR]

[ERROR]

[ERROR] org.wso2.carbon:WSO2-CARBON-PATCH-4.2.0:zip:0009

[ERROR]

[ERROR] from the specified remote repositories:

[ERROR] wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/,
releases=true, snapshots=true),

[ERROR] central (http://repo.maven.apache.org/maven2, releases=true,
snapshots=false)

[ERROR] - [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:unpack
(2-unpack-kernel-patch) on project wso2bam-p2-profile-gen: Unable to find
artifact.

at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)

at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)

at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)

at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)

at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)

at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)

at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)

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

at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)

at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)

at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to find
artifact.

at
org.apache.maven.plugin.dependency.fromConfiguration.AbstractFromConfigurationMojo.getArtifact(AbstractFromConfigurationMojo.java:250)

at
org.apache.maven.plugin.dependency.fromConfiguration.AbstractFromConfigurationMojo.getProcessedArtifactItems(AbstractFromConfigurationMojo.java:146)

at
org.apache.maven.plugin.dependency.fromConfiguration.UnpackMojo.execute(UnpackMojo.java:67)

at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)

at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)

... 19 more

Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Failure to find org.wso2.carbon:WSO2-CARBON-PATCH-4.2.0:zip:0009 in
http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
local repository, resolution will not be reattempted until the update
interval of wso2-nexus has elapsed or updates are forced


Try downloading the file manually from the project website.


Then, install it using the command:

mvn install:install-file -DgroupId=org.wso2.carbon
-DartifactId=WSO2-CARBON-PATCH-4.2.0 -Dversion=0009 -Dpackaging=zip
-Dfile=/path/to/file


Alternatively, if you host your own repository you can deploy the file
there:

mvn deploy:deploy-file 

Re: [Dev] WSO2 Committers += Rajith Vitharana

2014-08-31 Thread Thushara Ranawaka
Congrats Rajith Aiya!


On Mon, Sep 1, 2014 at 9:44 AM, Praneesha Chandrasiri pranee...@wso2.com
wrote:

 Congrats!!!


 On Mon, Sep 1, 2014 at 9:38 AM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Congrats Rajith!


 On Mon, Sep 1, 2014 at 9:25 AM, Dumidu Handakumbura dum...@wso2.com
 wrote:

 Congrats Rajith..


 On Mon, Sep 1, 2014 at 7:56 AM, Yasassri Ratnayake yasas...@wso2.com
 wrote:

 Congrats Rajith!!!


 On Mon, Sep 1, 2014 at 7:44 AM, Jenananthan Yogendran 
 jenanant...@wso2.com wrote:

 congrats Rajith


 On Fri, Aug 29, 2014 at 5:10 PM, Abimaran Kugathasan 
 abima...@wso2.com wrote:

 Congrats Rajith!


 On Fri, Aug 29, 2014 at 8:41 AM, Lakshman Udayakantha 
 lakshm...@wso2.com wrote:

 congratulations rajith...!!


 On Fri, Aug 29, 2014 at 8:35 AM, Niranda Perera nira...@wso2.com
 wrote:

 Congrats Rajith!


 On Fri, Aug 29, 2014 at 7:33 AM, Manoj Kumara ma...@wso2.com
 wrote:

 Congratulations Rajith !!!


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188


 On Thu, Aug 28, 2014 at 10:00 PM, Dakshika Jayathilaka 
 daksh...@wso2.com wrote:

 Congratulations Rajith...!!!

 *Dakshika Jayathilaka*
 Software Engineer
 WSO2, Inc.
 lean.enterprise.middleware
 0771100911


 On Fri, Aug 29, 2014 at 1:51 AM, Sewwandi Perera 
 sewwa...@wso2.com wrote:

 Congratulations Rajith...!!!


 On Fri, Aug 29, 2014 at 7:07 AM, Isura Karunaratne 
 is...@wso2.com wrote:

 Congratz Rajith !!


 On Thursday, August 28, 2014, Gimantha Bandara 
 giman...@wso2.com wrote:

 Congratz Rajith!


 On Thu, Aug 28, 2014 at 10:42 PM, Harsha Kumara 
 hars...@wso2.com wrote:

 Congratz Rajith!


 On Thu, Aug 28, 2014 at 10:31 PM, Thanuja Jayasinghe 
 than...@wso2.com wrote:

 Congratz rajith.!!!
 On 28 Aug 2014 22:24, Anjana Fernando anj...@wso2.com
 wrote:

  Hi,

 It's my pleasure to announce Rajith Vitharana as a WSO2
 committer. Rajith has done many valuable contributions to BAM 
 and the DSS
 products. Welcome aboard and keep up the good work! ..

 Cheers,
 Anjana.
 --
 *Anjana Fernando*
 Senior Technical Lead
 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




 --
 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




 --
 Gimantha Bandara
 Software Engineer
 WSO2. Inc : http://wso2.com
 Mobile : +94714961919



 --
 Isura Dilhara Karunaratne
 Software Engineer

 Mob +94 772 254 810



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




 --
 Sewwandi Perera
 Software Engineer

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

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



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



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




 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44

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




 --
 Lakshman Udayakantha
 Software Engineer, WSO2
 Mobile: *0711241005*

 *lakshm...@wso2.com lakshm...@wso2.com *


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




 --
 Thanks
 Abimaran Kugathasan

 Software Engineer | WSO2 Inc
 Data  APIs Technologies Team
 Mobile : +94 77 1708229

 http://stackoverflow.com/users/515034
 http://lk.linkedin.com/in/abimaran
 http://www.lkabimaran.blogspot.com/  https://github.com/abimaran
 https://twitter.com/abimaran


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




 --
 Jenananthan Yogendran
 *Software Engineer,*
 *WSO2 inc., http://wso2.com http://wso2.com*


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




 --
 Yasassri Ratnayake
 Software Engineer - QA
 WSO2 Inc ; http://wso2.com
 lean.enterprise.middleware
 *Mobile : +94715933168 %2B94715933168*
 *Blog : http://yasassriratnayake.blogspot.com/
 http://yasassriratnayake.blogspot.com/*

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




 --
 *Dumidu Handakumbura*
 

Re: [Dev] Writing WSO2 carbon component - stub generation error

2014-08-25 Thread Thushara Ranawaka
]

[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @
org.wso2.carbon.student.mgt.stub ---

[INFO] Changes detected - recompiling the module!

[INFO] Compiling 1 source file to
/Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target/test-classes

[INFO]

[INFO] --- maven-surefire-plugin:2.17:test (default-test) @
org.wso2.carbon.student.mgt.stub ---

[INFO] Surefire report directory:
/Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target/surefire-reports


---

 T E S T S

---

Running org.org.wso2.carbon.student.mgt.stub.AppTest

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec -
in org.org.wso2.carbon.student.mgt.stub.AppTest


Results :


Tests run: 1, Failures: 0, Errors: 0, Skipped: 0


[INFO]

[INFO] --- maven-bundle-plugin:2.5.0:bundle (default-bundle) @
org.wso2.carbon.student.mgt.stub ---

[WARNING] Bundle
org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0 : Unused
Export-Package instructions: [org.wso2.carbon.student.mgt.*]

[INFO]

[INFO] --- maven-install-plugin:2.5.1:install (default-install) @
org.wso2.carbon.student.mgt.stub ---

[INFO] Installing
/Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target/org.wso2.carbon.student.mgt.stub-4.2.0.jar
to
/Users/thushara/.m2/repository/org/wso2/carbon/org.wso2.carbon.student.mgt.stub/4.2.0/org.wso2.carbon.student.mgt.stub-4.2.0.jar

[INFO] Installing
/Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/pom.xml
to
/Users/thushara/.m2/repository/org/wso2/carbon/org.wso2.carbon.student.mgt.stub/4.2.0/org.wso2.carbon.student.mgt.stub-4.2.0.pom

[INFO]

[INFO] --- maven-bundle-plugin:2.5.0:install (default-install) @
org.wso2.carbon.student.mgt.stub ---

[INFO] Installing
org/wso2/carbon/org.wso2.carbon.student.mgt.stub/4.2.0/org.wso2.carbon.student.mgt.stub-4.2.0.jar

[INFO] Writing OBR metadata

[INFO]


[INFO] BUILD SUCCESS

[INFO]


[INFO] Total time: 8.935s

[INFO] Finished at: Mon Aug 25 12:14:50 IST 2014

[INFO] Final Memory: 17M/51M

[INFO]



On Mon, Aug 25, 2014 at 11:06 AM, Suhan Dharmasuriya suh...@wso2.com
wrote:

 Hi Rajith/Chamila/Thushara,

 Thanks a lot. It is working now. :)

 Thanks and Regards,
 Suhan


 On Mon, Aug 25, 2014 at 10:59 AM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Thanx rajith aiya.,.:) *now working


 On Mon, Aug 25, 2014 at 10:50 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi Suhan,Thushara,

 Add following repositories to the pom.xml file and build it again.

 repositories
 repository
 idwso2-nexus/id
 nameWSO2 internal Repository/name
 urlhttp://maven.wso2.org/nexus/content/groups/wso2-public/
 /url
 releases
 enabledtrue/enabled
 updatePolicydaily/updatePolicy
 checksumPolicyignore/checksumPolicy
 /releases
 /repository
 /repositories


 Thanks,


 On Mon, Aug 25, 2014 at 10:49 AM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 I got the same issue, Im attaching the full log trance and adding
 training mail group as well.
 Could somebody help us?

 Thusharas-MacBook-Pro:org.wso2.carbon.student.mgt.stub thushara$* mvn
 clean install -e*

 [INFO] Error stacktraces are turned on.

 [INFO] Scanning for projects...

 [WARNING]

 [WARNING] Some problems were encountered while building the effective
 model for org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0

 [WARNING] 'build.plugins.plugin.version' for
 org.apache.felix:maven-bundle-plugin is missing. @ line 70, column 21

 [WARNING] 'build.plugins.plugin.version' for
 org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 51, column 
 21

 [WARNING]

 [WARNING] It is highly recommended to fix these problems because they
 threaten the stability of your build.

 [WARNING]

 [WARNING] For this reason, future Maven versions might no longer
 support building such malformed projects.

 [WARNING]

 [INFO]


 [INFO]
 

 [INFO] Building org.wso2.carbon.student.mgt.stub 4.2.0

 [INFO]
 

 Downloading:
 https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.pom

 Downloaded:
 https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.pom
 (2 KB at 0.2 KB

[Dev] Writing WSO2 carbon component - stub generation error

2014-08-25 Thread Thushara Ranawaka
Hi,

After adding the repository xml code to the stub pom.xml I got the
following log file which include a error message. Currently im using mvn
3.2.3 and i tried to get rid from the error by using mvn 3.0.5 but still it
prints the error log. I found a mail-archive[1] which include the same
error log as per the answer he has found including the axis2-client jar
dependency to pom.xml but i try to add above dependancy and fail. Can
someone help me on this.

*axis2-client dependency added to the stub pom.xml(which failed):-*

   *dependency*

*groupIdorg.apache.axis2.wso2/groupId*

*artifactIdaxis2-client/artifactId*

*version${axis2.client.version}/version*

* /dependency*

*Log:-*

Thusharas-MacBook-Pro:org.wso2.carbon.student.mgt.stub thushara$ mvn clean
install -e

[INFO] Error stacktraces are turned on.

[INFO] Scanning for projects...

[WARNING]

[WARNING] Some problems were encountered while building the effective model
for org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0

[WARNING] 'build.plugins.plugin.version' for
org.apache.felix:maven-bundle-plugin is missing. @ line 70, column 21

[WARNING] 'build.plugins.plugin.version' for
org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 51, column 21

[WARNING]

[WARNING] It is highly recommended to fix these problems because they
threaten the stability of your build.

[WARNING]

[WARNING] For this reason, future Maven versions might no longer support
building such malformed projects.

[WARNING]

[INFO]


[INFO]


[INFO] Building org.wso2.carbon.student.mgt.stub 4.2.0

[INFO]


Downloading:
http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom

Downloaded:
http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
(5
KB at 2.9 KB/sec)

Downloading:
http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom

Downloaded:
http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom
(13
KB at 21.2 KB/sec)

Downloading:
http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/16/maven-parent-16.pom

Downloaded:
http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/16/maven-parent-16.pom
(23
KB at 26.1 KB/sec)

Downloading:
http://repo.maven.apache.org/maven2/org/apache/apache/7/apache-7.pom

Downloaded:
http://repo.maven.apache.org/maven2/org/apache/apache/7/apache-7.pom (15 KB
at 9.9 KB/sec)

Downloading:
http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar

Downloaded:
http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar
(23
KB at 24.4 KB/sec)

[INFO]

[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
org.wso2.carbon.student.mgt.stub ---

[INFO] Deleting
/Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target

[INFO]

[INFO] --- build-helper-maven-plugin:1.9:add-source (add-source) @
org.wso2.carbon.student.mgt.stub ---

[INFO] Source directory:
/Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target/generated-code/src
added.

[INFO]

[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
org.wso2.carbon.student.mgt.stub ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] Copying 1 resource

[INFO]

[INFO] --- maven-antrun-plugin:1.1:run (source-code-generation) @
org.wso2.carbon.student.mgt.stub ---

[INFO] Executing tasks

 [java] Exception in thread main java.lang.NoClassDefFoundError:
javax/wsdl/WSDLException

 [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)

 [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)

 [java] Caused by: java.lang.ClassNotFoundException:
javax.wsdl.WSDLException

 [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

 [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

 [java] at java.security.AccessController.doPrivileged(Native Method)

 [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:423)

 [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:356)

 [java] ... 2 more

 [java] Java Result: 1

[INFO] Executed tasks

[INFO]

[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @
org.wso2.carbon.student.mgt.stub ---

[INFO] Changes detected - recompiling the module!

[INFO] Compiling 1 source file to

Re: [Dev] Writing WSO2 carbon component - stub generation error

2014-08-25 Thread Thushara Ranawaka
Kindly fine the requested files.


On Mon, Aug 25, 2014 at 1:14 PM, Danushka Fernando danush...@wso2.com
wrote:

 Hi
 Can you add the pom.xml and the wsdl used for stub generation?

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


 On Mon, Aug 25, 2014 at 12:43 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi,

 After adding the repository xml code to the stub pom.xml I got the
 following log file which include a error message. Currently im using mvn
 3.2.3 and i tried to get rid from the error by using mvn 3.0.5 but still it
 prints the error log. I found a mail-archive[1] which include the same
 error log as per the answer he has found including the axis2-client jar
 dependency to pom.xml but i try to add above dependancy and fail. Can
 someone help me on this.

 *axis2-client dependency added to the stub pom.xml(which failed):-*

*dependency*

 *groupIdorg.apache.axis2.wso2/groupId*

 *artifactIdaxis2-client/artifactId*

 *version${axis2.client.version}/version*

 * /dependency*

 *Log:-*

 Thusharas-MacBook-Pro:org.wso2.carbon.student.mgt.stub thushara$ mvn
 clean install -e

 [INFO] Error stacktraces are turned on.

 [INFO] Scanning for projects...

 [WARNING]

 [WARNING] Some problems were encountered while building the effective
 model for org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0

 [WARNING] 'build.plugins.plugin.version' for
 org.apache.felix:maven-bundle-plugin is missing. @ line 70, column 21

 [WARNING] 'build.plugins.plugin.version' for
 org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 51, column 21

 [WARNING]

 [WARNING] It is highly recommended to fix these problems because they
 threaten the stability of your build.

 [WARNING]

 [WARNING] For this reason, future Maven versions might no longer support
 building such malformed projects.

 [WARNING]

 [INFO]


 [INFO]
 

 [INFO] Building org.wso2.carbon.student.mgt.stub 4.2.0

 [INFO]
 

 Downloading:
 http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom

 Downloaded:
 http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
  (5
 KB at 2.9 KB/sec)

 Downloading:
 http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom

 Downloaded:
 http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugins/18/maven-plugins-18.pom
  (13
 KB at 21.2 KB/sec)

 Downloading:
 http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/16/maven-parent-16.pom

 Downloaded:
 http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/16/maven-parent-16.pom
  (23
 KB at 26.1 KB/sec)

 Downloading:
 http://repo.maven.apache.org/maven2/org/apache/apache/7/apache-7.pom

 Downloaded:
 http://repo.maven.apache.org/maven2/org/apache/apache/7/apache-7.pom (15
 KB at 9.9 KB/sec)

 Downloading:
 http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar

 Downloaded:
 http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar
  (23
 KB at 24.4 KB/sec)

 [INFO]

 [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
 org.wso2.carbon.student.mgt.stub ---

 [INFO] Deleting
 /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target

 [INFO]

 [INFO] --- build-helper-maven-plugin:1.9:add-source (add-source) @
 org.wso2.carbon.student.mgt.stub ---

 [INFO] Source directory:
 /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target/generated-code/src
 added.

 [INFO]

 [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
 org.wso2.carbon.student.mgt.stub ---

 [INFO] Using 'UTF-8' encoding to copy filtered resources.

 [INFO] Copying 1 resource

 [INFO]

 [INFO] --- maven-antrun-plugin:1.1:run (source-code-generation) @
 org.wso2.carbon.student.mgt.stub ---

 [INFO] Executing tasks

  [java] Exception in thread main java.lang.NoClassDefFoundError:
 javax/wsdl/WSDLException

  [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)

  [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)

  [java] Caused by: java.lang.ClassNotFoundException:
 javax.wsdl.WSDLException

  [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

  [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

  [java] at java.security.AccessController.doPrivileged(Native Method)

  [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

  [java] at java.lang.ClassLoader.loadClass

Re: [Dev] Writing WSO2 carbon component - stub generation error

2014-08-25 Thread Thushara Ranawaka
Thank you rajith aiya.,.,. *Generated


On Mon, Aug 25, 2014 at 4:00 PM, Rajith Vitharana raji...@wso2.com wrote:

 Hi Thushara, Suhan,

 Try using axis2-wsdl2code-maven-plugin to generate the stub, instead of
 using maven-antrun-plugin.

 plugin
 groupIdorg.apache.axis2/groupId
 artifactIdaxis2-wsdl2code-maven-plugin/artifactId
 version1.6.2/version
 executions
 execution
 goals
 goalwsdl2code/goal
 /goals
 configuration
 generateServerSidefalse/generateServerSide

 packageNameorg.wso2.carbon.order.mgt.ui/packageName

 wsdlFilesrc/main/resources/OrderManager.wsdl/wsdlFile
 databindingNameadb/databindingName

 outputDirectorytarget/generated-code/outputDirectory
 /configuration
 /execution
 /executions
 /plugin

 Thanks,


 On Mon, Aug 25, 2014 at 3:24 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi Danushka,

 I also was getting the same error and I tried build with the pom file
 updated with namespaces.

 configuration
tasks
path id=wsdl2java.classpath
pathelement
 location=${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar/
 pathelement
 location=${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar
 /
 pathelement
 location=${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar
 /
 /path
 java
 classname=org.apache.axis2.wsdl.WSDL2Java fork=true
 classpath
 refid=wsdl2java.classpath /
 arg line=-uri
 src/main/resources/StudentManager.wsdl -u -uw
  -o target/generated-code -p
 org.wso2.carbon.student.mgt.stub
  -ns2p
 http://mgt.student.carbon.wso2.org=org.wso2.carbon.student.mgt.stub,

 http://data.mgt.student.carbon.wso2.org/xsd=org.wso2.carbon.student.mgt.stub.xsd
 ,

 http://org.apache.axis2/xsd=org.wso2.carbon.student.mgt.stub.axis2.xsd/
  /java
 /tasks
 /configuration

 But still getting the same error.

 Please be kind enough to give further advice.

 The tutorial we are following[1].

 [1]
 http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/

 Thanks,
 Suhan


 On Mon, Aug 25, 2014 at 2:24 PM, Danushka Fernando danush...@wso2.com
 wrote:

 Seems you haven't defined the namespaces in the pom. Check [1]. There
 you can see following line which defines the namespaces mentioned in wsdl.

 arg line=-uri src/main/resources/ApplicationDeployer.wsdl -u -uw
 -o target/generated-code -p
 org.wso2.carbon.appfactory.application.deployer.stub
 -ns2p
 http://deploy.core.appfactory.carbon.wso2.org
 =org.wso2.carbon.appfactory.application.deployer.stub,
 http://deploy.core.appfactory.carbon.wso2.org/xsd=org.wso2.carbon.appfactory.application.deployer.stub.xsd,http://org.apache.axis2/xsd=org.wso2.carbon.appfactory.application.deployer.stub.axis2.xsd
 /


 [1]
 https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/service-stubs/org.wso2.carbon.appfactory.application.deployer.stub/2.0.1

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


 On Mon, Aug 25, 2014 at 2:03 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Kindly fine the requested files.


 On Mon, Aug 25, 2014 at 1:14 PM, Danushka Fernando danush...@wso2.com
 wrote:

 Hi
 Can you add the pom.xml and the wsdl used for stub generation?

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


 On Mon, Aug 25, 2014 at 12:43 PM, Thushara Ranawaka 
 thusha...@wso2.com wrote:

 Hi,

 After adding the repository xml code to the stub pom.xml I got the
 following log file which include a error message. Currently im using mvn
 3.2.3 and i tried to get rid from the error by using mvn 3.0.5 but still 
 it
 prints the error log. I found a mail-archive[1] which include the
 same error log as per the answer he has found including the axis2-client
 jar dependency to pom.xml but i try to add above dependancy and
 fail. Can someone help me on this.

 *axis2-client dependency added to the stub pom.xml(which failed):-*

*dependency*

 *groupIdorg.apache.axis2.wso2/groupId*

 *artifactIdaxis2-client/artifactId*

 *version${axis2.client.version}/version*

 * /dependency*

 *Log:-*

 Thusharas-MacBook-Pro:org.wso2.carbon.student.mgt.stub thushara$ mvn
 clean install

Re: [Dev] Writing WSO2 carbon component - stub generation error

2014-08-24 Thread Thushara Ranawaka
I got the same issue, Im attaching the full log trance and adding training
mail group as well.
Could somebody help us?

Thusharas-MacBook-Pro:org.wso2.carbon.student.mgt.stub thushara$* mvn clean
install -e*

[INFO] Error stacktraces are turned on.

[INFO] Scanning for projects...

[WARNING]

[WARNING] Some problems were encountered while building the effective model
for org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0

[WARNING] 'build.plugins.plugin.version' for
org.apache.felix:maven-bundle-plugin is missing. @ line 70, column 21

[WARNING] 'build.plugins.plugin.version' for
org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 51, column 21

[WARNING]

[WARNING] It is highly recommended to fix these problems because they
threaten the stability of your build.

[WARNING]

[WARNING] For this reason, future Maven versions might no longer support
building such malformed projects.

[WARNING]

[INFO]


[INFO]


[INFO] Building org.wso2.carbon.student.mgt.stub 4.2.0

[INFO]


Downloading:
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.pom

Downloaded:
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.1/maven-antrun-plugin-1.1.pom
(2 KB at 0.2 KB/sec)

Downloading:
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0.1/maven-plugin-parent-2.0.1.pom

Downloaded:
https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0.1/maven-plugin-parent-2.0.1.pom
(8 KB at 11.8 KB/sec)

Downloading:
https://repo.maven.apache.org/maven2/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.pom

[WARNING] The POM for org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 is
missing, no dependency information available

Downloading:
https://repo.maven.apache.org/maven2/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.pom

[WARNING] The POM for
org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4 is missing, no
dependency information available

Downloading:
https://repo.maven.apache.org/maven2/wsdl4j/wso2/wsdl4j/1.6.2.wso2v4/wsdl4j-1.6.2.wso2v4.pom

[WARNING] The POM for wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4 is missing, no
dependency information available

Downloading:
https://repo.maven.apache.org/maven2/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar

Downloading:
https://repo.maven.apache.org/maven2/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar

Downloading:
https://repo.maven.apache.org/maven2/wsdl4j/wso2/wsdl4j/1.6.2.wso2v4/wsdl4j-1.6.2.wso2v4.jar

[INFO]


[INFO] BUILD FAILURE

[INFO]


[INFO] Total time: 9.586 s

[INFO] Finished at: 2014-08-25T10:38:19+05:30

[INFO] Final Memory: 10M/24M

[INFO]


[ERROR] Failed to execute goal on project org.wso2.carbon.student.mgt.stub:
Could not resolve dependencies for project
org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0: The
following artifacts could not be resolved:
org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10,
org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4,
wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4: Could not find artifact
org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 in central (
https://repo.maven.apache.org/maven2) - [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal on project org.wso2.carbon.student.mgt.stub: Could not resolve
dependencies for project
org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0: The
following artifacts could not be resolved:
org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10,
org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4,
wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4: Could not find artifact
org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 in central (
https://repo.maven.apache.org/maven2)

at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:220)

at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)

at
org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)

at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)

at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)

at

Re: [Dev] Fwd: How to delete json element using Jaggery?

2014-08-19 Thread Thushara Ranawaka
thanx damith, buddhima and whoever answered the stackoverflow question!


On Tue, Aug 19, 2014 at 4:47 PM, Damith Wickramasinghe dami...@wso2.com
wrote:

 Hi,

 yes JavaScript delete operator will do the trick. But it will keep the
 array length as the same after deletion. So watch out for that.

 Thanks and Regards


 On Tue, Aug 19, 2014 at 3:24 PM, Buddhima Wijeweera buddh...@wso2.com
 wrote:

 Hi,

 Hope following example will give you the answer:

 %
  var e = {
  employees: [
   {
id: 1,
name: Kasun,
age: 25,
town: Galle,
salary: 4
   },
   {
id: 3,
name: Sunil,
age: 29,
town: Colombo,
salary: 2
   },
   {
id: 4,
name: Rani,
age: 32,
town: Kandy,
salary: 6
   }

  ]

 }; // Initial array

 delete e.employees[0] // Delete first element

 print(e); // Print array

 %

 Which results:
 {employees : [{id : 3, name : Sunil, age : 29, town :
 Colombo, salary : 2}, {id : 4, name : Rani, age : 32,
 town : Kandy, salary : 6}]}




 On Tue, Aug 19, 2014 at 2:57 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:



 -- Forwarded message --
 From: Thushara Ranawaka thusha...@wso2.com
 Date: Tue, Aug 19, 2014 at 2:56 PM
 Subject: How to delete json element using Jaggery?
 To: WSO2 Training Group training-gr...@wso2.com, Waruna De Silva 
 waru...@wso2.com, d...@wso2.com


 Hi,
 As per the fast track training for the new employees in the 6.a.ii we
 need to develop a jaggery app, that deal with JSON data formats. Therefore
 I found this article[1] and followed it. Now I need to add a new feature
 which is to delete this json elements one by one. I logged a question in
 stackoverflow[2] as well but no one is answering it. Could some one help me
 on this.

 Kindly refer the stackoverflow question for more information.

1.

   [1]
 http://blog.lasindu.com/2014/05/how-to-write-wso2-jaggery-application.html
 http://www.google.com/url?q=http%3A%2F%2Fblog.lasindu.com%2F2014%2F05%2Fhow-to-write-wso2-jaggery-application.htmlsa=Dsntz=1usg=AFQjCNHkm7jAgXBGXMs_wTQv6x7lpmhrUw
 [2]
 http://stackoverflow.com/questions/25304255/how-to-delete-json-element-using-jaggery


 http://www.google.com/url?q=http%3A%2F%2Fblog.lasindu.com%2F2014%2F05%2Fhow-to-write-wso2-jaggery-application.htmlsa=Dsntz=1usg=AFQjCNHkm7jAgXBGXMs_wTQv6x7lpmhrUw
 --
 Thushara Kasun Ranawaka
 Software Engineer
 WSO2 Inc.; http://wso2.com/
 lean.enterprise.middleware
 Mobile : *+94 (0) 773438949*
 *thusha...@wso2.com thili...@wso2.com*



 --
 Thushara Kasun Ranawaka
 Software Engineer
 WSO2 Inc.; http://wso2.com/
 lean.enterprise.middleware
 Mobile : *+94 (0) 773438949*
 *thusha...@wso2.com thili...@wso2.com*

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




 --
 Buddhima Wijeweera
 Software Engineer; WSO2 Inc.; http://wso2.com ,

 Email: buddh...@wso2.com
 Blog:   https://buddhimawijeweera.wordpress.com
 GitHub Profile: https://github.com/Buddhima

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




 --
 Software Engineer
 WSO2 Inc.; http://wso2.com
 http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
 lean.enterprise.middleware

 mobile: *+94728671315 %2B94728671315*




-- 
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://wso2.com/
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thili...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: How to delete json element using Jaggery?

2014-08-19 Thread Thushara Ranawaka
-- Forwarded message --
From: Thushara Ranawaka thusha...@wso2.com
Date: Tue, Aug 19, 2014 at 2:56 PM
Subject: How to delete json element using Jaggery?
To: WSO2 Training Group training-gr...@wso2.com, Waruna De Silva 
waru...@wso2.com, d...@wso2.com


Hi,
As per the fast track training for the new employees in the 6.a.ii we need
to develop a jaggery app, that deal with JSON data formats. Therefore I
found this article[1] and followed it. Now I need to add a new feature
which is to delete this json elements one by one. I logged a question in
stackoverflow[2] as well but no one is answering it. Could some one help me
on this.

Kindly refer the stackoverflow question for more information.

   1.

  [1]
http://blog.lasindu.com/2014/05/how-to-write-wso2-jaggery-application.html
http://www.google.com/url?q=http%3A%2F%2Fblog.lasindu.com%2F2014%2F05%2Fhow-to-write-wso2-jaggery-application.htmlsa=Dsntz=1usg=AFQjCNHkm7jAgXBGXMs_wTQv6x7lpmhrUw
[2]
http://stackoverflow.com/questions/25304255/how-to-delete-json-element-using-jaggery


http://www.google.com/url?q=http%3A%2F%2Fblog.lasindu.com%2F2014%2F05%2Fhow-to-write-wso2-jaggery-application.htmlsa=Dsntz=1usg=AFQjCNHkm7jAgXBGXMs_wTQv6x7lpmhrUw
-- 
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://wso2.com/
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thili...@wso2.com*



-- 
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://wso2.com/
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thili...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev