Re: [Dev] [GREG] Add a resource under a existing resource

2014-09-23 Thread Udara Liyanage
Hi Isuruwan, I was able to achieve it by making parent resource a resource collection which was earlier just a resource endpoint. Thanks Shazni for the help. On Mon, Sep 22, 2014 at 12:52 PM, Isuruwan Herath isuru...@wso2.com wrote: Hi Udara, You cannot create a resource and a collection by

Re: [Dev] Sample Carbon Component Error

2014-09-23 Thread Aiyadurai Rajeevan
Great, Happy to hear that. :) Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc E-Mail: rajeev...@wso2.com | Mobile : +94776411636 On Tue, Sep 23, 2014 at 1:39 AM, Shiva Balachandran sh...@wso2.com wrote: Hi Aiyadurai, Yes, you are correct the stub was not created when i built the

Re: [Dev] [DSS] Datasource deployer

2014-09-23 Thread Rajith Vitharana
Kind reminder on this :) On Wed, Sep 17, 2014 at 5:13 PM, Anjana Fernando anj...@wso2.com wrote: And, yeah, as Rajith mentioned, I've reviewed the changes in the last version. Cheers, Anjana. On Wed, Sep 17, 2014 at 3:51 PM, Rajith Vitharana raji...@wso2.com wrote: Hi Sameera,

[Dev] [AF] .NET Support

2014-09-23 Thread Kasun De Silva
Hi All, Currently I have been working on enabling Jenkins build for .NET apps. Jenkins was able to build the .NET app with a separate windows slave with MSBuild installed. But the problem was the deployable artifact was not created. Following is Jenkins job template that I have used builders

[Dev] Please merge pull request #49 for andes

2014-09-23 Thread Asanka Abeyweera
Hi, Can you please review and merge the pull request [1] done for MB-761 [2]? Thank you, [1]. https://github.com/wso2-dev/andes/pull/49 [2]. https://wso2.org/jira/browse/MB-761 -- Asanka Abeyweera Software Engineer WSO2 Inc. Phone: +94 712228648

Re: [Dev] Change of method signature for adddatasources in RSS manager core

2014-09-23 Thread Bhathiya Jayasekara
Hi Poshitha, On Tue, Sep 23, 2014 at 1:37 PM, Poshitha Dabare poshi...@wso2.com wrote: HI A change in the API should be made for following requirement. Currently when a datasource is created from RSS it is name after the database. But it is created from attached database users page and

[Dev] Error when building carbon orbit

2014-09-23 Thread Ramindu De Silva
Hi all, When I was building the Carbon Orbit, I'm getting the following error. Any help will be greatly appreciated. [INFO] WSO2 Carbon Orbit - Rabbit-MQ AMQP java client orbit bundle SKIPPED [ERROR] Failed to execute goal org.apache.felix:maven-bundle-plugin:2.3.7:bundle (default-bundle) on

Re: [Dev] Web Session Clustering / Session Replication using Hazelcast

2014-09-23 Thread Pubudu Dissanayake
On Mon, Sep 22, 2014 at 11:03 AM, Afkham Azeez az...@wso2.com wrote: Can you simply get this working using a Tomcat valve rather than a filter? Call into the Hazelcast APIs the filter calls. Take that code and make it a valve. ​ ​Hazelcast enterprise version has native web session clustering

Re: [Dev] Error when building carbon orbit

2014-09-23 Thread Ramindu De Silva
Hi all, [INFO] WSO2 Carbon Orbit - Parent Maven Project .. SUCCESS [0.182s] [INFO] WSO2 Carbon Orbit - Tribes FAILURE [1.653s] The includes the above as well. Regards. On Tue, Sep 23, 2014 at 2:06 PM, Ramindu De Silva ramin...@wso2.com wrote: Hi all, When I

Re: [Dev] Creating puppet scripts for API-M distributed setup

2014-09-23 Thread Pavithra Madurangi
Hi Yasassri, Please find updated config files at the same location [1]. Appreciate if you can update the puppet scripts accordingly. [1] https://svn.wso2.org/repos/wso2/trunk/commons/qa/qa-artifacts/apimanager/1.8.0/am-cluster/ Regards, Pavithra On Wed, Sep 17, 2014 at 1:29 PM, Yasassri

Re: [Dev] Error when building carbon orbit

2014-09-23 Thread Lahiru Cooray
Hi Ramindu, Please check your JDK/ Maven versions. I faced the same issue and managed to solve it after downgrading the Maven to 3.0.5 and JDK 1.6 (Previously I used JDK 1.7 and Maven 3.2.2) On Tue, Sep 23, 2014 at 2:18 PM, Ramindu De Silva ramin...@wso2.com wrote: Hi all, [INFO] WSO2

Re: [Dev] Error when building carbon orbit

2014-09-23 Thread Awanthika Senarath
Hi Ramindu, Yes you need to have JDK 1.6 to build carbon. Also have a look at [1] [1] http://stackoverflow.com/questions/17929756/how-to-build-wso2-4-x-from-source On Tue, Sep 23, 2014 at 2:24 PM, Lahiru Cooray lahi...@wso2.com wrote: Hi Ramindu, Please check your JDK/ Maven versions. I

Re: [Dev] Error when building carbon orbit

2014-09-23 Thread Ramindu De Silva
Hi Lahiru, Yes I'm already using the versions you mentioned. :/ Hi Awanthika, Than you. ill look into that Regards. On Tue, Sep 23, 2014 at 2:24 PM, Lahiru Cooray lahi...@wso2.com wrote: Hi Ramindu, Please check your JDK/ Maven versions. I faced the same issue and managed to solve it

[Dev] Please merge ESB Integration test commit#60 pull request

2014-09-23 Thread Nuwan Wimalasekara
Hi ESB Team, Please merge the pull request https://github.com/wso2-dev/product-esb/pull/60 to fix the JMS test case(JMSOutOnlyTestCase) failure. Thanks, Nuwanw -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94

Re: [Dev] Error when building carbon orbit

2014-09-23 Thread Tishan Dahanayakage
Hi Ramindu, Your Rabbit-MQ AMPQ bundle is skipping because it can't find Tribes bundle as your Tribes bundle has encountered a buld failure. Can you please share the error logs relevant to Tribes failure? On Tue, Sep 23, 2014 at 2:46 PM, Ramindu De Silva ramin...@wso2.com wrote: Hi Lahiru,

[Dev] Fault String Returned Instead of the Filtered Content

2014-09-23 Thread Rajith Vitharana
Hi All, Regarding the jira [1]. In DSS when using json output mapping we can filter out the output fields according to the person's role who invokes the service. If he have permission, those fields will be visible to them. If he doesn't have permission, only other fields will be visible to him.

Re: [Dev] Error when building carbon orbit

2014-09-23 Thread Ramindu De Silva
Hi all, According to the link( http://stackoverflow.com/questions/17929756/how-to-build-wso2-4-x-from-source) shared by Awanthika, I checked out the https://svn.wso2.org/repos/wso2/carbon/orbit/branches/4.0.0; and the carbon orbit was built successfully. Thank you for all the quick replies. :)

Re: [Dev] Error when building carbon orbit

2014-09-23 Thread Supun Malinga
Hi Ramindu, What's you purpose in building orbit ?. 4.0.0 is not the latest.. thanks, On Tue, Sep 23, 2014 at 3:14 PM, Ramindu De Silva ramin...@wso2.com wrote: Hi all, According to the link( http://stackoverflow.com/questions/17929756/how-to-build-wso2-4-x-from-source) shared by

Re: [Dev] Creating puppet scripts for API-M distributed setup

2014-09-23 Thread Sumedha Rubasinghe
Pavithra, Is this a continuation of what was done beginning of this year? We had completed set of puppet scripts (which did not get used due to hardware not being available) Talk to Thilina. On Tue, Sep 23, 2014 at 3:50 AM, Pavithra Madurangi pavit...@wso2.com wrote: Hi Yasassri, Please find

[Dev] Updated Invitation: Code Review - Integration Tests WSO2 EAM @ Tue Sep 23, 2014 4:30pm - 5:30pm (Kasun Dissanayake)

2014-09-23 Thread kas...@wso2.com
BEGIN:VCALENDAR PRODID:-//Google Inc//Google Calendar 70.9054//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:REQUEST BEGIN:VEVENT DTSTART:20140923T11Z DTEND:20140923T12Z DTSTAMP:20140923T095256Z ORGANIZER;CN=Kasun Dissanayake:mailto:kas...@wso2.com UID:r866f27rrnvls1hl7vhicvk...@google.com

Re: [Dev] Creating puppet scripts for API-M distributed setup

2014-09-23 Thread Pavithra Madurangi
Hi Sumedha, Currently we are testing few deployments (not the basic API-M 4 node deployement) and to ease and speed up the process, created these scripts...I guess API-M team have scripts only for basic deployment. Apart from that we created this for latest version (1.8.0) and going to maintain

Re: [Dev] Creating puppet scripts for API-M distributed setup

2014-09-23 Thread Ruwan Yatawara
Hi Pavithra, You can use the puppet scripts Thilina constituted for AM 1.7 release. They are available at the [1]. The requirement I believe is identical to yours. 2 KMs, 1GW Manager, 2 GW Workers, Publisher and Store. One thing to note is that you would require 1 machine for each node, to get

Re: [Dev] Creating puppet scripts for API-M distributed setup

2014-09-23 Thread Pavithra Madurangi
On Tue, Sep 23, 2014 at 3:44 PM, Ruwan Yatawara ruw...@wso2.com wrote: Hi Pavithra, You can use the puppet scripts Thilina constituted for AM 1.7 release. They are available at the [1]. The requirement I believe is identical to yours. 2 KMs, 1GW Manager, 2 GW Workers, Publisher and Store.

Re: [Dev] Please merge ESB Integration test commit#60 pull request

2014-09-23 Thread Malaka Silva
done On Tue, Sep 23, 2014 at 2:50 PM, Nuwan Wimalasekara nuw...@wso2.com wrote: Hi ESB Team, Please merge the pull request https://github.com/wso2-dev/product-esb/pull/60 to fix the JMS test case(JMSOutOnlyTestCase) failure. Thanks, Nuwanw -- Nuwan Wimalasekara Senior Software

[Dev] Error when building carbon-utils

2014-09-23 Thread Himan Gamage
Hi all, When I was building the carbon-utils, I'm getting the following error. Any help will be greatly appreciated. [INFO] WSO2 Carbon - Tasks Core .. FAILURE [2.148s] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile

Re: [Dev] Error when building carbon-utils

2014-09-23 Thread Aruna Karunarathna
Hi Himan, Did you try to build with Java 7 or Java 8?.. try using Java 6 Regards, Aruna On Tue, Sep 23, 2014 at 4:18 PM, Himan Gamage hi...@wso2.com wrote: Hi all, When I was building the carbon-utils, I'm getting the following error. Any help will be greatly appreciated. [INFO] WSO2

[Dev] Exceptions Handling In Carbon

2014-09-23 Thread Pubudu Dissanayake
Hi folks, I'm in a process of implementing a fix for the CarbonContext.java https://github.com/wso2-dev/carbon4-kernel/blob/master/core/org.wso2.carbon.utils/src/main/java/org/wso2/carbon/context/CarbonContext.java [1] and I found several concerns. Observations as follows, - Empty Catch

[Dev] Cluster Message issue

2014-09-23 Thread Godwin Amila Shrimal
Hi, I am trying to send a Cluster message and get a *java.lang.StackOverflowError* error in highlighted line in following code. public static void cleanTenantMaponWorkernodes(int tenantId)throws Exception { TenantDeleteClusterMessage clustermessage = new TenantDeleteClusterMessage( tenantId);

Re: [Dev] Exceptions Handling In Carbon

2014-09-23 Thread Afkham Azeez
On Tue, Sep 23, 2014 at 4:48 PM, Pubudu Dissanayake pubu...@wso2.com wrote: Hi folks, I'm in a process of implementing a fix for the CarbonContext.java https://github.com/wso2-dev/carbon4-kernel/blob/master/core/org.wso2.carbon.utils/src/main/java/org/wso2/carbon/context/CarbonContext.java

Re: [Dev] Exceptions Handling In Carbon

2014-09-23 Thread Aruna Karunarathna
On Tue, Sep 23, 2014 at 4:52 PM, Afkham Azeez az...@wso2.com wrote: On Tue, Sep 23, 2014 at 4:48 PM, Pubudu Dissanayake pubu...@wso2.com wrote: Hi folks, I'm in a process of implementing a fix for the CarbonContext.java

[Dev] Remove MyOpenID login from IS travelocity.com sample

2014-09-23 Thread KasunG Gajasinghe
Hi, FYI: MyOpenId service is shutdown now. [1] So, I guess the sample need to be updated to reflect that. http://thenextweb.com/insider/2013/09/04/myopenid-to-shut-down/ Regards, KasunG -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in:

[Dev] Debugging ESB - Required components for ESB

2014-09-23 Thread Asok Perera
Hi, I'm trying to run the ESB in remote debug mode and could someone point me out the correct components (sources) for ESB ? Regards *Asok Aravinda Perera* Software Engineer WSO2, Inc.;http://wso2.com/

Re: [Dev] Cluster Message issue

2014-09-23 Thread Gayashan Amarasinghe
Hi Godwin, Please use the getThreadLocalCarbonContext to acquire a PriviledgedCarbonContext instance. Thanks. /Gayashan On Tue, Sep 23, 2014 at 4:49 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi, I am trying to send a Cluster message and get a *java.lang.StackOverflowError* error in

Re: [Dev] Exceptions Handling In Carbon

2014-09-23 Thread Afkham Azeez
Then let's throw a RuntimeException and document it as part of the JavaDoc comments. On Tue, Sep 23, 2014 at 4:58 PM, Aruna Karunarathna ar...@wso2.com wrote: On Tue, Sep 23, 2014 at 4:52 PM, Afkham Azeez az...@wso2.com wrote: On Tue, Sep 23, 2014 at 4:48 PM, Pubudu Dissanayake

[Dev] Support for Auto-Login of fresh registered users with SAML

2014-09-23 Thread Hasintha Indrajee
Hi all, The apporach i used while implementing $subject was implementing a cache within authentication framework. This cache is being shared by few other components including the following components. org.wso2.carbon.identity.oauth.endpoint org.wso2.carbon.identity.sso.saml

Re: [Dev] Cluster Message issue

2014-09-23 Thread Godwin Amila Shrimal
Hi Gayashan, Thanks a lot, it worked properly, BTW do u know any reason to give a Stackoverflow on previous scenario ? On Tue, Sep 23, 2014 at 5:08 PM, Gayashan Amarasinghe gayas...@wso2.com wrote: Hi Godwin, Please use the getThreadLocalCarbonContext to acquire a PriviledgedCarbonContext

[Dev] Help understand ESB sample 1

2014-09-23 Thread Lahiru Chandima
Hi All, I am running examples provided with WSO2 ESB to get familiar with it. Sample 1 [1 https://docs.wso2.com/display/ESB481/Sample+1%3A+Simple+Content-Based+Routing+%28CBR%29+of+Messages], explains how to use a filter mediator. The filter used is as follows filter source=get-property('To')

[Dev] Info about Encrypted data stored in registry in WSO2 products

2014-09-23 Thread Susinda Perera
Hi Developers/Product Leads Need your help to figure out the $subject. Could you point out any places that you put encrypted data to registry in the products (ESB, GREG, CEP, IS, AS, API MANAGER, BAM) that you are working. I want to know what and where (i.e registry path) such info is saved. I

[Dev] why axis2 async client needs a sleep time?

2014-09-23 Thread Lakshman Udayakantha
Hi all, I am trying to create a axis2 client to execute a bpel service. I used below code for that TenantDeletionProcessStub stub = getAdminserviceprocessStub( tenantDeleteConfig.getBpelEndpoint()); TenantDeletionProcessRequest adminserviceprocessRequest = new TenantDeletionProcessRequest();

Re: [Dev] Info about Encrypted data stored in registry in WSO2 products

2014-09-23 Thread Prabath Siriwardena
I think you need to grep for encrypt() method of CryptoUtil class [1] [1]: https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0009/core/org.wso2.carbon.core/4.2.0/src/main/java/org/wso2/carbon/core/util/CryptoUtil.java Thanks regards, -Prabath On Tue, Sep 23, 2014 at

Re: [Dev] Info about Encrypted data stored in registry in WSO2 products

2014-09-23 Thread Susinda Perera
Thanks prabath for the quick response. Yes i have to grep both encrypt and encryptAndBase64Encode methods. But issue i faced was then i have to find the registry.put methods followed by this. And also i found some wrapper/utility classes written by using CryptoUtil class. then i have to find their

Re: [Dev] Help understand ESB sample 1

2014-09-23 Thread Shani Ranasinghe
Hi Lahiru, in your log you would have noticed the text INFO - LogMediator To: /services/StockQuote,, this is what it gets filtered by the filter mediator. It's an Axis2 option to set WS-Addressing To endpoint. These options are not included in the Soap message in this case. For the sample

[Dev] AM 1.8.0 nightly build pack-23-09-2014

2014-09-23 Thread Lalaji Sureshika
Hi, Please find $subject from [1]. [1] https://svn.wso2.org/repos/wso2/scratch/chunk13-release/23-09-2014/ -- Lalaji Sureshika WSO2, Inc.; http://wso2.com/ email: lal...@wso2.com; blog: http://lalajisureshika.blogspot.com ___ Dev mailing list

Re: [Dev] Error when building carbon-utils

2014-09-23 Thread Himan Gamage
Hi Aruna, I changed the JDK to jdk1.6.0_33. After that problem solved. Thanks for your kind assistance. On Tue, Sep 23, 2014 at 4:27 PM, Aruna Karunarathna ar...@wso2.com wrote: Hi Himan, Did you try to build with Java 7 or Java 8?.. try using Java 6 Regards, Aruna On Tue, Sep 23, 2014

[Dev] [AF] Stratos git notifys2.groovy script is calling outdated API in AppFactory developer setup

2014-09-23 Thread Amalka Subasinghe
Hi, The app deployment step fails in developer setup because the s2-gitblit's notifys2.groovy script calls the out dated API (org.apache.stratos.cartridge.mgt.ui.RepoNotificationServlet) to notify the stratos controller. changed the git hook as follows to fix the issue [1] def response = [curl,

Re: [Dev] Restricting WSO2 Carbon package access with Java Security Manager

2014-09-23 Thread Isuru Perera
Hi all, I created a JIRA [1] for this. Thanks! [1] https://wso2.org/jira/browse/CARBON-14967 On Tue, Sep 23, 2014 at 1:59 PM, Isuru Perera isu...@wso2.com wrote: Hi all, When enabling the Java Security Manager for WSO2 products, we used to have a system property named restricted.packages.

Re: [Dev] Updated Invitation: Code Review - Integration Tests WSO2 EAM @ Tue Sep 23, 2014 4:30pm - 5:30pm (Dinusha Senanayaka)

2014-09-23 Thread Dinusha Senanayaka
Code review notes: - If config file is not there read the configs from property file . (AppManagerIntegrationTest.java - SP creation ) - JWT token validation - validate role . Currently it's validating only claim uri. - Tags test case need to have UI validation as well. (whether it appears in

[Dev] OSGI not loading the dependency

2014-09-23 Thread Priyadarssini Kishokumar
Hi, I'm creating a new feature in ESB using java chronicle library. I copied dependency jars into lib folder. When I run the ESB, it says a specific class is not found. There are 3 jar files. Two of them are working fine. I checked with via OSGI console, that specific class is not there. How to

Re: [Dev] Debugging ESB - Required components for ESB

2014-09-23 Thread Malaka Silva
Hi, I am assuming you are referring to esb 4.8.1. Source can be found in [1] [1] http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/ On Tue, Sep 23, 2014 at 5:06 PM, Asok Perera as...@wso2.com wrote: Hi, I'm trying to run the ESB in remote debug mode and could someone point me

Re: [Dev] Restricting WSO2 Carbon package access with Java Security Manager

2014-09-23 Thread Afkham Azeez
Yes, this needs to be fixed in the proper way. On Tue, Sep 23, 2014 at 1:59 PM, Isuru Perera isu...@wso2.com wrote: Hi all, When enabling the Java Security Manager for WSO2 products, we used to have a system property named restricted.packages. This property accepts comma separated list of

[Dev] RPCMessageReceiver Exception occurred while an unauthorized user tries to access a web application in EAM

2014-09-23 Thread Thilini Shanika
Hi, RPCMessageReceiver exceptions are occurred in EAM while an unauthorized user tries to access an webapp from EAM store [1] or browse an webapp resource from admin console [2]. These exceptions are triggered from org.wso2.carbon.identity.application.mgt/4.2.1 component and the root cause for

Re: [Dev] Cluster Message issue

2014-09-23 Thread Isuru Perera
We do not recommend to use getCurrentContext() method and the way it is executed leads to a recursive loop. That's why you are getting a StackOverflowError. Carbon Team, We need to deprecate getCurrentContext() method in next release. On Tue, Sep 23, 2014 at 5:41 PM, Godwin Amila Shrimal

Re: [Dev] wso2 esb integration with greg

2014-09-23 Thread Danushka Fernando
Hi Depends on your requirement. When you mean two databases I think they are userstore and registry. You can share userstore between two clusters. When you do that if you create some userstore related thing (tenants, users, roles, permissions) in one cluster it will be available in other too. And

Re: [Dev] Debugging ESB - Required components for ESB

2014-09-23 Thread Chanaka Fernando
Hi Asok, As a general practice for debugging WSO2 products, follow the steps given below. 1) Refer to the carbon release matrix page and find the relevant source code version according to your product version (Ex: ESB 4.8.1) http://wso2.com/products/carbon/release-matrix/ ESB 4.8.1 is released

[Dev] Authenticated user not shown in http_access log file

2014-09-23 Thread Sameera Jayaratna
Hi, In /repository/conf/tomcat/catalina-server.xml a pattern can be given for http_access logs as follows. Valve className=org.apache.catalina.valves.AccessLogValve directory=${carbon.home}/repository/logs prefix=http_access_ suffix=.log pattern=%h %l %u %t %r %s %b/ With this pattern

Re: [Dev] Help understand ESB sample 1

2014-09-23 Thread Lahiru Chandima
Hi Shani, Thanks for the help. Seems like I have to read more about axis2 options. Thanks On Tue, Sep 23, 2014 at 7:13 PM, Shani Ranasinghe sh...@wso2.com wrote: Hi Lahiru, in your log you would have noticed the text INFO - LogMediator To: /services/StockQuote,, this is what it gets

Re: [Dev] Cluster Message issue

2014-09-23 Thread Godwin Amila Shrimal
Hi Isuru, Thanks and got the point. On Tue, Sep 23, 2014 at 11:39 PM, Isuru Perera isu...@wso2.com wrote: We do not recommend to use getCurrentContext() method and the way it is executed leads to a recursive loop. That's why you are getting a StackOverflowError. Carbon Team, We need to

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

2014-09-23 Thread Nirmal Fernando
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