[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.* C:\WSO2\WSO2Trunk\platform\trunk\dependencies\openjpa\openjpa-lib\src\test\java\org\apache\openjpa\lib\util\testlocalizer\

Re: [Dev] Code coverage though System test framework

2012-05-29 Thread Charitha Kankanamge
+1. At the moment, we need to find the coverage provided by existing tests. So it does not matter whether the server is running locally or not. /Charitha On Tue, May 29, 2012 at 11:50 AM, Krishantha Samaraweera < krishan...@wso2.com> wrote: > Hi Dharshana, > > Shall we focus on Emma to get cover

[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 rel

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 10

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 wrote: > C:\WSO2\WSO2Trunk\platform\trunk\dependencies\openjpa\openjpa-lib\s

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

2012-05-29 Thread Dinusha Senanayaka
I ll fix this. Regards, Dinusha. On Tue, May 29, 2012 at 1:38 PM, Kishanthan Thangarajah wrote: > 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 chec

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 trigger

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 wrote: > C:\WSO2\WSO2Trunk\platform\trunk\dependencies\openjpa\openjpa-lib\src\test\java\org\a

[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 failin

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. org.wso2.carbon.redirector.servlet.ui.filters.AllPagesFilter.doFilter(AllPagesFilter.

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 wrote: > I created a tenant domain called amila.com and try to login with that. > > Got a JS

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 wrote: > Hi, >

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 wrote: > I guess this is because the product name in the carbon.xm

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:02 PM, Charitha Kankanamge wrote: > 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

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 wrote: > > > On Tue, May 29, 2012 at 5:02 PM, Charitha Kankanamge wrote: > >> 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 a

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 wrote: > On Tue, May 29, 2012 at 5:26 PM, Afkham Azeez wrote: > >> >> >> On Tue,

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 wrote: > I removed the "Stratos" part from the cloud service names in the > cloud-services-desc.xml, since we do not have "Stratos" in the p

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 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 Udantha wrot

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

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

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 wrote: > > > On Mon, May 28, 2012 at 10:21 PM, Anjana Fernando wrote: > >> Hi, >> >> On Mon, May 28, 2012 at 4:54 PM, Lakmali Baminiwatta wrote: >> >>> Hi, >>> >>> Here are the review notes. >>> >>> When logging in the debug level, check w

[Dev] Create a Role Programmatically in Carbon

2012-05-29 Thread Hiranya Jayathilaka
I want to $subject. What API/Admin service should I use? Can somebody please point me to some sample code? Thanks -- Hiranya Jayathilaka Senior Technical Lead; WSO2 Inc.; http://wso2.org E-mail: hira...@wso2.com; Mobile: +94 77 633 3491 Blog: http://techfeast-hiranya.blogspot.com __

[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] /home/amila/projects/trunk/platform/components/mediators/ejb/org.wso2.carbon.mediator.ejb.ui/sr

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 proje

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 wrote: > 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(

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 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 amount of work pe

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 wrote: > I want to $subject. What API/Admin service should I use? Can somebody > please point me to some sample code? > > Thanks > -- > Hiranya Jayathilaka > Senior Technical Lead; >

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 wrote: > I want to $su

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 w

[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

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 wrote: > > > On Tue, May 29, 2012 at 5:36 PM, Nuwan Dias 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, wh

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 wrote: > Hi a

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 > > > 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 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 wrote: > > > On Tue, May 29, 2012 at 5:49 PM, Afkham Azeez wrote: >

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 wrote: > 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 Nuwan is ta

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 wrote: > 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 > > T

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

2012-05-29 Thread Nuwan Dias
No, this occurs when we enable the dep-sync via the server configuration (as reported in the jira). The reason for the issue is the DeploymentSynchronizerServiceImpl executes the update function only if the autoCheckOut flag is true. I believe we should execute the update function at server start-u

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 wrote: > > > On Wed, May 30, 2012 at 7:57 AM, Hiranya Jayathilaka wrote: > >> 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? >

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 wrote: > Hi Hiranya, > > On Tue, May 29, 2012 at 9:03 PM, Rajika Kumarasiri wrote: > >> See towards line 75 below. >> >> >> https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/csg/org

[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 b

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 wrote: > No, this occurs when we enable the dep-sync

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 configurati