Re: [Dev] JNDI lookup wont work inside a web-app

2012-05-29 Thread Isuru Suriarachchi
According to this, all our global resources can be registered in the tomcat server.xml and can be looked up from anywhere. So we can make the above resources work by doing this. But if we want to allow users to register and look up resources through the carbon context, we have to register those

Re: [Dev] Code coverage though System test framework

2012-05-29 Thread Krishantha Samaraweera
Hi Dharshana, Shall we focus on Emma to get coverage. Lets assume all the builds are running locally. In next phase we can work on JaCoCo on-the-fly instrumentation or evaluate another tool. Thanks, Krishantha. On Thu, Apr 19, 2012 at 12:39 AM, Dharshana Warusavitharana dharsha...@wso2.com

Re: [Dev] Invitation: [Data-TG] Code review - Transaction Manager @ Fri May 25 ... @ Fri May 25 2pm - 3pm (lakm...@wso2.com)

2012-05-29 Thread Anjana Fernando
Hi Amila, On Tue, May 29, 2012 at 10:43 AM, Amila Suriarachchi am...@wso2.com wrote: This is something we thought as well. But in a web service scenario, web service is invoked using the tomcat thread pool. In such a case begin transaction and commit may call in different threads. Anyway we

[Dev] Build failure in \WSO2Trunk\platform\trunk\dependencies\openjpa

2012-05-29 Thread Madhuka Udantha
C:\WSO2\WSO2Trunk\platform\trunk\dependencies\openjpa\openjpa-lib\src\test\java\org\apache\openjpa\lib\util\TestAbstractEventManager.java:0: *File does not end with a newline.*

[Dev] Exporting packages with version=3.1.0 from commons-httpclient to support integration of org.eclipse.ecf.provider.filetransfer.httpclient 4.0.200.v20120504-2322 in Carbon

2012-05-29 Thread Dileepa Jayakody
Hi All, Recently we came across a random socket-timeout exception when trying to add a remote P2 repository via Feature Manager. This happens at org.eclipse.ecf.provider.filetransfer.retrieve.UrlConnectionRetrieveF ileTransfer while trying to stream files from the remote repo. Please refer the

Re: [Dev] Name binding error in AppServer with a tenant - occurs after tenant is unloaded then reloaded the next time

2012-05-29 Thread Kishanthan Thangarajah
Looks like when the tenant reloads, TransactionManagerComponent is trying to bind TransactionManager again with the tenant's NamingContext which gives this error. I think it should first check whether a binding is already there and skip or rebind if found. Kishanthan. On Mon, May 28, 2012 at

Re: [Dev] Build failure in \WSO2Trunk\platform\trunk\dependencies\openjpa

2012-05-29 Thread Denis Weerasiri
Can you try one of the two options mentioned at [1]? [1] - http://stackoverflow.com/questions/997021/how-to-get-rid-of-checkstyle-message-file-does-not-end-with-a-newline On Tue, May 29, 2012 at 1:12 PM, Madhuka Udantha madh...@wso2.com wrote:

Re: [Dev] Code coverage though System test framework

2012-05-29 Thread Dharshana Warusavitharana
Hi , Sure, I will continue work with emma. Main disadvantage we have in coverage is we cannot use maven plugins to work on coverage. Since our tests are not visible to sure-fire whole coverage cannot be execute through maven plugin. I'm working on a flow to detect tests on suite level and

Re: [Dev] Build failure in \WSO2Trunk\platform\trunk\dependencies\openjpa

2012-05-29 Thread Waruna Ranasinghe
You don't have to build OpenJPA (unless you have fixed some issues in OpenJPA) since we have uploaded the artifacts into the Maven repo. Thanks, Waruna On Tue, May 29, 2012 at 1:12 PM, Madhuka Udantha madh...@wso2.com wrote:

[Dev] CHECKOUT_BEFORE_CHECK_IN error in Deployment Synchronizer Write Only mode

2012-05-29 Thread Nuwan Dias
Hi, In the issue at https://wso2.org/jira/browse/CARBON-13108, it has been reported that a CHECKOUT_BEFORE_CHECK_IN error occurs when using the Registry based deployment synchronization in WRITE_ONLY mode (autoCheckOut=false, autoCheckIn=true). This error is caused due to the CheckInCommand

Re: [Dev] Product Service Merging Guidelines

2012-05-29 Thread Amila Suriarachchi
I created a tenant domain called amila.com and try to login with that. Got a JSP page with this exception. javax.servlet.ServletException: Error in checking the existing of the tenant domain: amila.com.

Re: [Dev] Product Service Merging Guidelines

2012-05-29 Thread Thilina Buddhika
I guess this is because the product name in the carbon.xml does not match with the corresponding entry in the cloud-services-desc.xml. Thanks, Thilina On Tue, May 29, 2012 at 4:45 PM, Amila Suriarachchi am...@wso2.com wrote: I created a tenant domain called amila.com and try to login with

Re: [Dev] CHECKOUT_BEFORE_CHECK_IN error in Deployment Synchronizer Write Only mode

2012-05-29 Thread Charitha Kankanamge
Hi Nuwan, I raised the same question in [Dev] WSO2 Carbon Beta Packs for QA thread sometime back but did not get a reply hence reported the jira. Should the admin node be started with both auto-commit and auto-checkout set to true? On Tue, May 29, 2012 at 4:24 PM, Nuwan Dias nuw...@wso2.com

Re: [Dev] Product Service Merging Guidelines

2012-05-29 Thread Waruna Ranasinghe
I removed the Stratos part from the cloud service names in the cloud-services-desc.xml, since we do not have Stratos in the product name. see revision 128708. Thanks, Waruna On Tue, May 29, 2012 at 4:54 PM, Thilina Buddhika thili...@wso2.com wrote: I guess this is because the product name in

Re: [Dev] CHECKOUT_BEFORE_CHECK_IN error in Deployment Synchronizer Write Only mode

2012-05-29 Thread Charitha Kankanamge
On Tue, May 29, 2012 at 5:26 PM, Afkham Azeez az...@wso2.com wrote: On Tue, May 29, 2012 at 5:02 PM, Charitha Kankanamge chari...@wso2.comwrote: Hi Nuwan, I raised the same question in [Dev] WSO2 Carbon Beta Packs for QA thread sometime back but did not get a reply hence reported the jira.

Re: [Dev] CHECKOUT_BEFORE_CHECK_IN error in Deployment Synchronizer Write Only mode

2012-05-29 Thread Nuwan Dias
Hi, Resolved the issue stating that this is not a bug. Will enhance the UI so that autoCheckOut will automatically be enabled if autoCheckIn is enabled. Thanks, On Tue, May 29, 2012 at 5:28 PM, Charitha Kankanamge chari...@wso2.comwrote: On Tue, May 29, 2012 at 5:26 PM, Afkham Azeez

Re: [Dev] Product Service Merging Guidelines

2012-05-29 Thread Dimuthu Leelarathne
Hi all, Please rename your product name in filter.properties in-line with this change. thanks, dimuthu On Tue, May 29, 2012 at 5:13 PM, Waruna Ranasinghe war...@wso2.com wrote: I removed the Stratos part from the cloud service names in the cloud-services-desc.xml, since we do not have

Re: [Dev] Build failure in \WSO2Trunk\platform\trunk\dependencies\openjpa

2012-05-29 Thread Madhuka Udantha
Thanks, It works On Tue, May 29, 2012 at 2:25 PM, Waruna Ranasinghe war...@wso2.com wrote: You don't have to build OpenJPA (unless you have fixed some issues in OpenJPA) since we have uploaded the artifacts into the Maven repo. Thanks, Waruna On Tue, May 29, 2012 at 1:12 PM, Madhuka

Re: [Dev] CHECKOUT_BEFORE_CHECK_IN error in Deployment Synchronizer Write Only mode

2012-05-29 Thread Afkham Azeez
On Tue, May 29, 2012 at 5:36 PM, Nuwan Dias nuw...@wso2.com wrote: Hi, Resolved the issue stating that this is not a bug. Will enhance the UI so that autoCheckOut will automatically be enabled if autoCheckIn is enabled. Rather, what you should do is, if autoCheckin is on, regardless of the

Re: [Dev] CHECKOUT_BEFORE_CHECK_IN error in Deployment Synchronizer Write Only mode

2012-05-29 Thread Kasun Gajasinghe
Rather, what you should do is, if autoCheckin is on, regardless of the autoCheckout parameter, you must do the checking out. i.e. autoCheckout is ignored if autoCheckin is ON. It is not a UI only thing. Please improve the depsync code to handle this. We must minimize user errors. +1. I hope

Re: [Dev] Invitation: [Data-TG] Code review - Transaction Manager @ Fri May 25 ... @ Fri May 25 2pm - 3pm (lakm...@wso2.com)

2012-05-29 Thread Dinusha Senanayaka
Hi, On Tue, May 29, 2012 at 8:11 AM, Amila Suriarachchi am...@wso2.com wrote: On Mon, May 28, 2012 at 10:21 PM, Anjana Fernando anj...@wso2.com wrote: Hi, On Mon, May 28, 2012 at 4:54 PM, Lakmali Baminiwatta lakm...@wso2.comwrote: Hi, Here are the review notes. When logging in the

[Dev] EJB mediator compilation error.

2012-05-29 Thread Amila Suriarachchi
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project org.wso2.carbon.mediator.ejb.ui: Compilation failure: Compilation failure: [ERROR]

Re: [Dev] Carbon Platform Trunk Build Failure

2012-05-29 Thread Kasun Indrasiri
Hi folks, This is not fixed yet. I'm still getting this on clean repo. Downloaded: http://repo1.maven.org/maven2/org/apache/axis2/axis2-aar-maven-plugin/1.6.2/axis2-aar-maven-plugin-1.6.2.jar(21 KB at 17.4 KB/sec) [ERROR] The build could not read 3 projects - [Help 1] [ERROR] [ERROR] The

Re: [Dev] Carbon Platform Trunk Build Failure

2012-05-29 Thread Kasun Indrasiri
Sorry, Its fixed now. Thanks Ajith. On Tue, May 29, 2012 at 7:29 PM, Kasun Indrasiri ka...@wso2.com wrote: Hi folks, This is not fixed yet. I'm still getting this on clean repo. Downloaded:

Re: [Dev] C4 G-reg pack for functional testing

2012-05-29 Thread Samisa Abeysinghe
On Mon, May 28, 2012 at 1:28 PM, Senaka Fernando sen...@wso2.com wrote: Hi Samisa, There is an L1 issue collecting all missing docs. This has also been added. I think the right way to do this is to have an L1 for each missing doc. Having one Jira on multiple tasks does not reflect the

Re: [Dev] Create a Role Programmatically in Carbon

2012-05-29 Thread Sameera Jayasoma
Hi Hiranya, You can use UserAdmin Service. Thanks, Sameera. On Tue, May 29, 2012 at 2:03 PM, Hiranya Jayathilaka hira...@wso2.comwrote: I want to $subject. What API/Admin service should I use? Can somebody please point me to some sample code? Thanks -- Hiranya Jayathilaka Senior

Re: [Dev] Create a Role Programmatically in Carbon

2012-05-29 Thread Rajika Kumarasiri
See towards line 75 below. https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/csg/org.wso2.carbon.cloud.csg.agent/src/main/java/org/wso2/carbon/cloud/csg/agent/internal/CSGAgentServiceComponent.java Rajika On Tue, May 29, 2012 at 6:33 PM, Hiranya Jayathilaka hira...@wso2.comwrote:

Re: [Dev] Create a Role Programmatically in Carbon

2012-05-29 Thread Krishantha Samaraweera
Please refer to https://svn.wso2.org/repos/wso2/carbon/platform/trunk/platform-integration/system-test-framework/core/org.wso2.automation.test.api/src/main/java/org/wso2/carbon/admin/service/AdminServiceUserMgtService.java Thanks, Krishantha. On Tue, May 29, 2012 at 6:33 PM, Hiranya Jayathilaka

[Dev] How I can upload a wsdl into the GREG using Registry Resource Project

2012-05-29 Thread Jorge Infante Osorio
$subject? I created a registry resource Project - then I created a wsdl from a template - my GREG is in 9451 local port. At this point I don´t know what to do. If I go to right click - WSO2 Registry I see two options: “commits changes as user” (I click on it and nothing happen) and “Show in

Re: [Dev] CHECKOUT_BEFORE_CHECK_IN error in Deployment Synchronizer Write Only mode

2012-05-29 Thread Nuwan Dias
On Tue, May 29, 2012 at 5:49 PM, Afkham Azeez az...@wso2.com wrote: On Tue, May 29, 2012 at 5:36 PM, Nuwan Dias nuw...@wso2.com wrote: Hi, Resolved the issue stating that this is not a bug. Will enhance the UI so that autoCheckOut will automatically be enabled if autoCheckIn is enabled.

Re: [Dev] Product Service Merging Guidelines

2012-05-29 Thread Achala Aponso
Hi Dimuthu, Does this name should appear in https://svn.wso2.org/repos/wso2/carbon/platform/trunk/features/stratos/common/org.wso2.carbon.stratos.common.server.feature/resources/conf/cloud-services-desc.xmlalso... Thanks, Achala On Tue, May 29, 2012 at 5:41 PM, Dimuthu Leelarathne

Re: [Dev] C4 G-reg pack for functional testing

2012-05-29 Thread Charitha Kankanamge
On Tuesday, May 29, 2012, Samisa Abeysinghe wrote: On Mon, May 28, 2012 at 1:28 PM, Senaka Fernando sen...@wso2.comjavascript:_e({}, 'cvml', 'sen...@wso2.com'); wrote: Hi Samisa, There is an L1 issue collecting all missing docs. This has also been added. I think the right way to do

Re: [Dev] CHECKOUT_BEFORE_CHECK_IN error in Deployment Synchronizer Write Only mode

2012-05-29 Thread Hiranya Jayathilaka
In the initial implementation I did, the synchronizer would run one checkout/update at the startup regardless of the configuration. Is this not the case anymore? Sent from my iPhone On May 29, 2012, at 9:41 PM, Nuwan Dias nuw...@wso2.com wrote: On Tue, May 29, 2012 at 5:49 PM, Afkham

Re: [Dev] CHECKOUT_BEFORE_CHECK_IN error in Deployment Synchronizer Write Only mode

2012-05-29 Thread Kasun Gajasinghe
On Wed, May 30, 2012 at 7:57 AM, Hiranya Jayathilaka hira...@wso2.comwrote: In the initial implementation I did, the synchronizer would run one checkout/update at the startup regardless of the configuration. Is this not the case anymore? This *is* the case when the server start-up. I believe

Re: [Dev] Create a Role Programmatically in Carbon

2012-05-29 Thread Dimuthu Leelarathne
Hi Hiranya, On Tue, May 29, 2012 at 9:03 PM, Rajika Kumarasiri raj...@wso2.com wrote: See towards line 75 below.

Re: [Dev] CHECKOUT_BEFORE_CHECK_IN error in Deployment Synchronizer Write Only mode

2012-05-29 Thread Hiranya Jayathilaka
On Wed, May 30, 2012 at 7:55 AM, Kasun Gajasinghe kas...@wso2.com wrote: On Wed, May 30, 2012 at 7:57 AM, Hiranya Jayathilaka hira...@wso2.comwrote: In the initial implementation I did, the synchronizer would run one checkout/update at the startup regardless of the configuration. Is this

Re: [Dev] Create a Role Programmatically in Carbon

2012-05-29 Thread Hiranya Jayathilaka
Thank you all. Great feedback. Thanks, Hiranya On Wed, May 30, 2012 at 8:19 AM, Dimuthu Leelarathne dimut...@wso2.comwrote: Hi Hiranya, On Tue, May 29, 2012 at 9:03 PM, Rajika Kumarasiri raj...@wso2.comwrote: See towards line 75 below.

[Dev] Developer Studio 2.0.0 RC1 packs are ready for testing.

2012-05-29 Thread Kalpa Senanayake
Hi All, Please find the Developer Studio 2.0.0 RC1 packs at [1] for smoke testing. [1] - http://builder1.us1.wso2.org/~developerstudio/developer-studio/2.0.0/RC1/ Thanks, Kalpa. -- Kalpa Senanayake. Software Engineer, WSO2,Inc :(http://wso2.com/). email : ka...@wso2.com mobile : +94783864128

Re: [Dev] CHECKOUT_BEFORE_CHECK_IN error in Deployment Synchronizer Write Only mode

2012-05-29 Thread Kasun Gajasinghe
Hi Nuwan, If you look at the method CarbonDeploymentSchedulerTask#deploymentSyncUpdate, it performs an update ignoring the autocheckout flag. May be code is broken with the recent changes! --KasunG On Wed, May 30, 2012 at 8:30 AM, Nuwan Dias nuw...@wso2.com wrote: No, this occurs when we

Re: [Dev] CHECKOUT_BEFORE_CHECK_IN error in Deployment Synchronizer Write Only mode

2012-05-29 Thread Nuwan Dias
Hi Kasun, The flag is not checked at the CarbonDeploymentSchedulerTask level. It is checked within the update method of the DeploymentSynchronizerServiceImpl (which is the implementation of the DeploymentSynchronizer interface). The CarbonDeploymentSchedulerTask does not check for any