[Carbon-dev] Adding Findbugs and Checkstyle for Maven build
Hi, I am working on adding Findbugs and Check style plugins for maven build for data services component.Since this may need for all the component i can add it to carbon root pom under plugin management so modules that needed to integrate this can reuse. For checkstyles we can use default sun configuration file or use our customized version. I am attaching the one that i got from Apache.If we are using the custom one which is the best location to add the configuration file. Would like to have your feedback. Here is my blog post that explains how to integrate findbugs and checkstyle.[1] [1] http://blog.shelan.org/2012/01/13/how-to-add-findbugs-and-checkstyle-plugins-to-your-maven3-build/ Thanks, Regards, -- *Shelan Perera* Software Engineer ** *WSO2, Inc. : wso2.com* lean.enterprise.middleware. *Home Page* :shelan.org *Blog* : blog.shelan.org *Linked-i*n :http://www.linkedin.com/pub/shelan-perera/a/194/465 *Twitter* :https://twitter.com/#!/shelan *Mobile* : +94 772 604 402 ?xml version=1.0? !-- Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. WSO2 Inc. licenses this file to you under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -- !DOCTYPE module PUBLIC -//Puppy Crawl//DTD Check Configuration 1.2//EN http://www.puppycrawl.com/dtds/configuration_1_2.dtd; !-- Checkstyle configuration for Hive that is based on the sun_checks.xml file that is bundled with Checkstyle and includes checks for: - the Java Language Specification at http://java.sun.com/docs/books/jls/second_edition/html/index.html - the Sun Code Conventions at http://java.sun.com/docs/codeconv/ - the Javadoc guidelines at http://java.sun.com/j2se/javadoc/writingdoccomments/index.html - the JDK Api documentation http://java.sun.com/j2se/docs/api/index.html - some best practices Checkstyle is very configurable. Be sure to read the documentation at http://checkstyle.sf.net (or in your downloaded distribution). Most Checks are configurable, be sure to consult the documentation. To completely disable a check, just comment it out or delete it from the file. Finally, it is worth reading the documentation. -- module name=Checker !-- setting the default severity to warning -- property name=severity value=warning/ !-- Checks that a package.html file exists for each package. -- module name=JavadocPackage/ !-- Checks whether files end with a new line.-- !-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -- module name=NewlineAtEndOfFile/ !-- Checks that property files contain the same keys. -- !-- See http://checkstyle.sf.net/config_misc.html#Translation -- module name=Translation/ !-- module name=Header property name=headerFile value=${basedir}/checkstyle/asf.header/ /module -- !-- Maximum file line length -- module name=FileLength property name=max value=2000/ /module !-- No TAB characters -- module name=FileTabCharacter/ !-- List of files to ignore -- !-- module name=SuppressionFilter property name=file value=${basedir}/checkstyle/suppressions.xml/ /module -- !-- Ignore JavaCC/JJTree files -- module name=SuppressWithNearbyCommentFilter property name=commentFormat value=.*Generated By:(JJTree|JavaCC).*/ property name=checkFormat value=.*/ property name=influenceFormat value=10/ /module !-- Ignore Thrift files -- module name=SuppressWithNearbyCommentFilter property name=commentFormat value=.*Autogenerated by Thrift.*/ property name=checkFormat value=.*/ property name=influenceFormat value=10/ /module !-- Ignore Hadoop record compiler files -- module name=SuppressWithNearbyCommentFilter property name=commentFormat value=File generated by hadoop record compiler. Do not edit./ property name=checkFormat value=.*/ property name=influenceFormat value=10/ /module module name=TreeWalker !-- Required for SuppressWithNearbyCommentFilter -- module name=FileContentsHolder/ !-- Checks for Javadoc comments. -- !-- See http://checkstyle.sf.net/config_javadoc.html -- module name=JavadocType property
Re: [Carbon-dev] Deployment Framework Updates.
In LDAP config, you will need to set Property name=enablefalse/Property in embedded-ldap.xml to disable embedded ldap server. /Charitha On Fri, Jan 13, 2012 at 12:54 PM, Charitha Kankanamge chari...@wso2.comwrote: On Thu, Jan 12, 2012 at 3:55 PM, Dharshana Warusavitharana dharsha...@wso2.com wrote: Hi, Deployment Framework ver 1.1 is ready to use. Deployment Framework is a perl based tool for product configuration and deployment by using WSO2 recommended deployment patterns. which automates the Database configurations, creating mounts, Clustering and configuring LDAP. Whats New 1.) Download product from remote location or local repository. 2.) Deploy configured product packages to remote locations. 3.) Ability to use in both Linux and Windows environments. You can download Deployment Framework From [1]. Please refer README for further information. [1] https://svn.wso2.org/repos/wso2/trunk/carbon/platform-integration/deployment-framework QA - Please try this tool and provide your feedback.. This is a great work Dharshana. This should reduce the time of setting up platform by a great deal. A few suggestions/issues; 1. Can we let user run with the default H2 DB as local registry. In framework, user has to manually create databases and configure few config files in order to start the product. It can be avoided if we let user run local DB in H2 default. IMHO, there is no issue for running local registry in H2. 2. There were few errors due to local changes and already communicated to Dharshana. Please commit them. Continue to use this and let you know if we come across any more issues. /Charitha Thank You. Dharshana Warusavitharana Software Engineer , Test Automation WSO2 Inc. http://wso2.com email : dharsha...@wso2.com dharsha...@wso2.com cell : +94772202595 blog : http://dharshanaw.wordpress.com/ http://isurues.wordpress.com/ lean . enterprise . middleware ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Deployment Framework Updates.
Can we also include replicated caching configuration flag in the deployment framework so that we can easily enable or disable it? /Charitha On Fri, Jan 13, 2012 at 2:08 PM, Charitha Kankanamge chari...@wso2.comwrote: In LDAP config, you will need to set Property name=enablefalse/Property in embedded-ldap.xml to disable embedded ldap server. /Charitha On Fri, Jan 13, 2012 at 12:54 PM, Charitha Kankanamge chari...@wso2.comwrote: On Thu, Jan 12, 2012 at 3:55 PM, Dharshana Warusavitharana dharsha...@wso2.com wrote: Hi, Deployment Framework ver 1.1 is ready to use. Deployment Framework is a perl based tool for product configuration and deployment by using WSO2 recommended deployment patterns. which automates the Database configurations, creating mounts, Clustering and configuring LDAP. Whats New 1.) Download product from remote location or local repository. 2.) Deploy configured product packages to remote locations. 3.) Ability to use in both Linux and Windows environments. You can download Deployment Framework From [1]. Please refer README for further information. [1] https://svn.wso2.org/repos/wso2/trunk/carbon/platform-integration/deployment-framework QA - Please try this tool and provide your feedback.. This is a great work Dharshana. This should reduce the time of setting up platform by a great deal. A few suggestions/issues; 1. Can we let user run with the default H2 DB as local registry. In framework, user has to manually create databases and configure few config files in order to start the product. It can be avoided if we let user run local DB in H2 default. IMHO, there is no issue for running local registry in H2. 2. There were few errors due to local changes and already communicated to Dharshana. Please commit them. Continue to use this and let you know if we come across any more issues. /Charitha Thank You. Dharshana Warusavitharana Software Engineer , Test Automation WSO2 Inc. http://wso2.com email : dharsha...@wso2.com dharsha...@wso2.com cell : +94772202595 blog : http://dharshanaw.wordpress.com/ http://isurues.wordpress.com/ lean . enterprise . middleware ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Adding Findbugs and Checkstyle for Maven build
This will significantly slow down the build. It is better to put this into a separate profile. These have to be linked at the component level not product level IMO. -- Afkham Azeez Sent from my phone On Jan 13, 2012 1:55 PM, Shelan Perera she...@wso2.com wrote: Hi, I am working on adding Findbugs and Check style plugins for maven build for data services component.Since this may need for all the component i can add it to carbon root pom under plugin management so modules that needed to integrate this can reuse. For checkstyles we can use default sun configuration file or use our customized version. I am attaching the one that i got from Apache.If we are using the custom one which is the best location to add the configuration file. Would like to have your feedback. Here is my blog post that explains how to integrate findbugs and checkstyle.[1] [1] http://blog.shelan.org/2012/01/13/how-to-add-findbugs-and-checkstyle-plugins-to-your-maven3-build/ Thanks, Regards, -- *Shelan Perera* Software Engineer ** *WSO2, Inc. : wso2.com* lean.enterprise.middleware. *Home Page* :shelan.org *Blog* : blog.shelan.org *Linked-i*n :http://www.linkedin.com/pub/shelan-perera/a/194/465 *Twitter* :https://twitter.com/#!/shelan *Mobile* : +94 772 604 402 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Templates for Carbon Components and Features
We should check this in to our SVN .. and maintain in the future Chethiya, can you write a OT article describing how to use these templates? On Fri, Jan 13, 2012 at 3:57 PM, Chethiya Abeysinghe cheth...@wso2.com wrote: Hi, I've extended above, including service-stubs, features and repository along with the already existing backend-end and front-end carbon component. Therefore, any project you create using this new template will be an all-in-one package where you can run off the shelf at somewhere like application server. You just have to do a 'mvn clean install' in the created project and install the created feature using the repository. Here are the instruction to use the new template. Note that it's not archetype anymore, I've created a maven plugin to overcome some limitation of archetype with folder naming and parameter formatting, and now it got great deal of customizability. 1. Extract the attachment and do a 'mvn clean install' within the 'carbon-template' folder. 2. Go to the place you want to create the project and then hit 'mvn org.wso2.carbon:carbon-template:1.0.0-SNAPSHOT:generate' 3. Provide the necessary parameters (artifactId, groupId, etc)... This runs in interactive mode. But should be possible to run in non-interactive mode also by just passing the parameters using command line arguments. 4. Go into the project folder named using the aggragratorArtifactId you supplied. Run 'mvn clean install' inside that folder Please give necessary changes to be done on generated sample project. Thanks, - Chethiya On Fri, Jan 6, 2012 at 5:42 PM, Chethiya Abeysinghe cheth...@wso2.com wrote: On Fri, Jan 6, 2012 at 4:29 PM, Pradeep Fernando prad...@wso2.com wrote: Hi Chethiya, nice. what about stub bundle. ? It's not in this archetype. At the moment this archetype only has back-end and front-end carbon components. As we discussed, the next step is to extend this archetype to create stub bundle and features along with current carbon components in one parent folder. thanks, - Chethiya thanks, --Pradeep ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Chethiya Abeysinghe Software Engineer; WSO2, Inc.; http://wso2.com/ email: cheth...@wso2.com phone: +94 777334874 blog: chethiya3000.blogspot.com -- Chethiya Abeysinghe Software Engineer; WSO2, Inc.; http://wso2.com/ email: cheth...@wso2.com phone: +94 777334874 blog: chethiya3000.blogspot.com ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Srinath Perera, Ph.D. http://www.cs.indiana.edu/~hperera/ http://srinathsview.blogspot.com/ ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] [Stratos-dev] System test framework progress update
just to confirm .. is this runs with trunk packs created from the build now? On Fri, Jan 13, 2012 at 10:20 AM, Krishantha Samaraweera krishan...@wso2.com wrote: On Fri, Jan 13, 2012 at 8:12 AM, Afkham Azeez az...@wso2.com wrote: Folks, It is better to start writing new tests using TestNG gradually migrate the old tests. +1, We are planning to hold test development and have a hackathon to migrate into TestNG in next week. Thanks, Krishantha. -- Afkham Azeez Sent from my phone On Jan 12, 2012 8:09 PM, Dharshana Warusavitharana dharsha...@wso2.com wrote: Hi, On BPS following scenarios are covered with sub scenarios. And It is available for both local and stratos. Deployment of packages Versioning Package undeployment and redeployment Deployment with active/retire set in deploy.xml Running the processes in memory Process instance cleanup Event filtering at process level Event filtering at scope level Test with custom event listeners ( at process level) Processes with basic activities Processes with structured activities Process activation and retire (manage processes) Monitoring and managing process instances - active/complete/failed/suspended/terminated (through process instances page) - retry, delete, suspend Bpel processes with external partner services Xpath extentions and Other bpel activities (Xpath, XQuery, XSLT) Xpath extentions and Other bpel activities (Xpath, XQuery, XSLT) The samples are available with the resources in system framework. Thank You, Dharshana. On Thu, Jan 12, 2012 at 5:44 PM, Nuwan Wimalasekara nuw...@wso2.com wrote: Hi Following scenarios have been covered in Data Service Server. All test can be run on Product or Stratos. 1) Data Service with CSV file which is on registry 2) Data Service with excel file which is on registry XSLT transformation 3) Data Service with Google Spread Sheet 4) Data Service with MySql Database INSERT, UPDATE, DELETE, and SELECT operation 5) Data Service with carbon data source Data Source Creation INSERT, UPDATE, DELETE, and SELECT operation 6) Distributed Transactions 7) Data Service Eventing 8) Nested Queries 9) Batch Request 10) File Service 11) REST Invocation GET, POST, PUT, DELETE 12) Secure Service Scenario no 1 to 15 13) Service Input parameter validation length validation pattern validation 14) MySql Stored procedure IN params, OUT params, INOUT params 15) Faulty Service Deploying faulty service Edit and Redeploy faulty service 16) Data Service Schedule task Add Schedule task Reschedule Task Verifying Task Repeat Count Verifying Task Start Time Service uploading and data base creation for the service are also automated. MySql database is used for the data services. Thanks NuwanW On Thu, Jan 12, 2012 at 3:42 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi, System test framework [1] is capable of testing starots and product platform. We already integrated Ravana, the perf test framewok into this framework. And it also contain test for G-Reg UI testing using Selenium2/Webdriver. This framework uses perl based deployment framework [2] to setup product platforms to be tested. From next week we will start migrating system framework into TestNG. This is just an update of the status. We have covered following functionalities releated to App Server. You can run all these test on Products as well on Stratos. 1. Car file upload and multitenancy tests. 2. Aar, Jar and spring service upload and multitenancy tests. 3. SOAP tracer test. 4. System level stat test. 5. Faulty webapp test, web app redeployment, 6. AAR load test n 100 c 100. 7. Web app deployment concurrency test using multiple tenants. Automated scenarios of Stratos Manager 1. Add new tenant test. 2. Activate and deactivate tenants. 3. Usage plan update and downgrade test. 4. Tenant contact info update test. 5. Tenant info update tests. Dharshana, Nuwan and Kishan please give updates on the areas you have been automating. Thanks, Krishantha. [1]https://svn.wso2.org/repos/wso2/trunk/carbon/platform-integration/system-test-framework [2]https://svn.wso2.org/repos/wso2/trunk/carbon/platform-integration/deployment-framework ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Nuwan Wimalasekara Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Dharshana Warusavitharana Software Engineer , Test Automation WSO2 Inc. http://wso2.com email : dharsha...@wso2.com cell :
Re: [Carbon-dev] Templates for Carbon Components and Features
On Fri, Jan 13, 2012 at 4:22 PM, Srinath Perera srin...@wso2.com wrote: We should check this in to our SVN .. and maintain in the future Chethiya, can you write a OT article describing how to use these templates? +1 On Fri, Jan 13, 2012 at 3:57 PM, Chethiya Abeysinghe cheth...@wso2.com wrote: Hi, I've extended above, including service-stubs, features and repository along with the already existing backend-end and front-end carbon component. Therefore, any project you create using this new template will be an all-in-one package where you can run off the shelf at somewhere like application server. You just have to do a 'mvn clean install' in the created project and install the created feature using the repository. Here are the instruction to use the new template. Note that it's not archetype anymore, I've created a maven plugin to overcome some limitation of archetype with folder naming and parameter formatting, and now it got great deal of customizability. 1. Extract the attachment and do a 'mvn clean install' within the 'carbon-template' folder. 2. Go to the place you want to create the project and then hit 'mvn org.wso2.carbon:carbon-template:1.0.0-SNAPSHOT:generate' 3. Provide the necessary parameters (artifactId, groupId, etc)... This runs in interactive mode. But should be possible to run in non-interactive mode also by just passing the parameters using command line arguments. 4. Go into the project folder named using the aggragratorArtifactId you supplied. Run 'mvn clean install' inside that folder Please give necessary changes to be done on generated sample project. Thanks, - Chethiya On Fri, Jan 6, 2012 at 5:42 PM, Chethiya Abeysinghe cheth...@wso2.com wrote: On Fri, Jan 6, 2012 at 4:29 PM, Pradeep Fernando prad...@wso2.com wrote: Hi Chethiya, nice. what about stub bundle. ? It's not in this archetype. At the moment this archetype only has back-end and front-end carbon components. As we discussed, the next step is to extend this archetype to create stub bundle and features along with current carbon components in one parent folder. thanks, - Chethiya thanks, --Pradeep ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Chethiya Abeysinghe Software Engineer; WSO2, Inc.; http://wso2.com/ email: cheth...@wso2.com phone: +94 777334874 blog: chethiya3000.blogspot.com -- Chethiya Abeysinghe Software Engineer; WSO2, Inc.; http://wso2.com/ email: cheth...@wso2.com phone: +94 777334874 blog: chethiya3000.blogspot.com ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Srinath Perera, Ph.D. http://www.cs.indiana.edu/~hperera/ http://srinathsview.blogspot.com/ ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Pradeep Fernando Software Engineer WSO2 Inc; http://wso2.com/ blog: http://pradeepfernando.blogspot.com/ m: +94776603662 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Templates for Carbon Components and Features
On Fri, Jan 13, 2012 at 4:22 PM, Srinath Perera srin...@wso2.com wrote: We should check this in to our SVN .. and maintain in the future Chethiya, can you write a OT article describing how to use these templates? +1. An OT article would be the best way to get people using this instead of the traditional approach. Thanks, Thilina On Fri, Jan 13, 2012 at 3:57 PM, Chethiya Abeysinghe cheth...@wso2.com wrote: Hi, I've extended above, including service-stubs, features and repository along with the already existing backend-end and front-end carbon component. Therefore, any project you create using this new template will be an all-in-one package where you can run off the shelf at somewhere like application server. You just have to do a 'mvn clean install' in the created project and install the created feature using the repository. Here are the instruction to use the new template. Note that it's not archetype anymore, I've created a maven plugin to overcome some limitation of archetype with folder naming and parameter formatting, and now it got great deal of customizability. 1. Extract the attachment and do a 'mvn clean install' within the 'carbon-template' folder. 2. Go to the place you want to create the project and then hit 'mvn org.wso2.carbon:carbon-template:1.0.0-SNAPSHOT:generate' 3. Provide the necessary parameters (artifactId, groupId, etc)... This runs in interactive mode. But should be possible to run in non-interactive mode also by just passing the parameters using command line arguments. 4. Go into the project folder named using the aggragratorArtifactId you supplied. Run 'mvn clean install' inside that folder Please give necessary changes to be done on generated sample project. Thanks, - Chethiya On Fri, Jan 6, 2012 at 5:42 PM, Chethiya Abeysinghe cheth...@wso2.com wrote: On Fri, Jan 6, 2012 at 4:29 PM, Pradeep Fernando prad...@wso2.com wrote: Hi Chethiya, nice. what about stub bundle. ? It's not in this archetype. At the moment this archetype only has back-end and front-end carbon components. As we discussed, the next step is to extend this archetype to create stub bundle and features along with current carbon components in one parent folder. thanks, - Chethiya thanks, --Pradeep ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Chethiya Abeysinghe Software Engineer; WSO2, Inc.; http://wso2.com/ email: cheth...@wso2.com phone: +94 777334874 blog: chethiya3000.blogspot.com -- Chethiya Abeysinghe Software Engineer; WSO2, Inc.; http://wso2.com/ email: cheth...@wso2.com phone: +94 777334874 blog: chethiya3000.blogspot.com ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Srinath Perera, Ph.D. http://www.cs.indiana.edu/~hperera/ http://srinathsview.blogspot.com/ ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Thilina Buddhika Associate Technical Lead WSO2 Inc. ; http://wso2.com lean . enterprise . middleware phone : +94 77 44 88 727 blog : http://blog.thilinamb.com ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Adding Findbugs and Checkstyle for Maven build
On Fri, Jan 13, 2012 at 2:59 PM, Afkham Azeez az...@wso2.com wrote: This will significantly slow down the build. agreed. developers themselves have to run findbugs. we can catch violations (if any) using sonar. WDYT ? It is better to put this into a separate profile. These have to be linked at the component level not product level IMO. -- Afkham Azeez Sent from my phone On Jan 13, 2012 1:55 PM, Shelan Perera she...@wso2.com wrote: Hi, I am working on adding Findbugs and Check style plugins for maven build for data services component.Since this may need for all the component i can add it to carbon root pom under plugin management so modules that needed to integrate this can reuse. For checkstyles we can use default sun configuration file or use our customized version. I am attaching the one that i got from Apache.If we are using the custom one which is the best location to add the configuration file. Would like to have your feedback. Here is my blog post that explains how to integrate findbugs and checkstyle.[1] [1] http://blog.shelan.org/2012/01/13/how-to-add-findbugs-and-checkstyle-plugins-to-your-maven3-build/ Thanks, Regards, -- *Shelan Perera* Software Engineer ** *WSO2, Inc. : wso2.com* lean.enterprise.middleware. *Home Page* :shelan.org *Blog* : blog.shelan.org *Linked-i*n :http://www.linkedin.com/pub/shelan-perera/a/194/465 *Twitter* :https://twitter.com/#!/shelan *Mobile* : +94 772 604 402 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Pradeep Fernando Software Engineer WSO2 Inc; http://wso2.com/ blog: http://pradeepfernando.blogspot.com/ m: +94776603662 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Adding Findbugs and Checkstyle for Maven build
On Fri, Jan 13, 2012 at 4:30 PM, Pradeep Fernando prad...@wso2.com wrote: On Fri, Jan 13, 2012 at 2:59 PM, Afkham Azeez az...@wso2.com wrote: This will significantly slow down the build. agreed. developers themselves have to run findbugs. we can catch violations (if any) using sonar. WDYT ? +1 Thanks /Harshana It is better to put this into a separate profile. These have to be linked at the component level not product level IMO. -- Afkham Azeez Sent from my phone On Jan 13, 2012 1:55 PM, Shelan Perera she...@wso2.com wrote: Hi, I am working on adding Findbugs and Check style plugins for maven build for data services component.Since this may need for all the component i can add it to carbon root pom under plugin management so modules that needed to integrate this can reuse. For checkstyles we can use default sun configuration file or use our customized version. I am attaching the one that i got from Apache.If we are using the custom one which is the best location to add the configuration file. Would like to have your feedback. Here is my blog post that explains how to integrate findbugs and checkstyle.[1] [1] http://blog.shelan.org/2012/01/13/how-to-add-findbugs-and-checkstyle-plugins-to-your-maven3-build/ Thanks, Regards, -- *Shelan Perera* Software Engineer ** *WSO2, Inc. : wso2.com* lean.enterprise.middleware. *Home Page* :shelan.org *Blog* : blog.shelan.org *Linked-i*n :http://www.linkedin.com/pub/shelan-perera/a/194/465 *Twitter* :https://twitter.com/#!/shelan *Mobile* : +94 772 604 402 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Pradeep Fernando Software Engineer WSO2 Inc; http://wso2.com/ blog: http://pradeepfernando.blogspot.com/ m: +94776603662 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Harshana Martin Software Engineer WSO2 Inc. Web:http://wso2.com http://wso2.org Mobile: +94 716062650 Blog: http://harshana05.blogspot.com Profile: https://www.google.com/profiles/harshana05 Twitter: http://twitter.com/harshana05 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] [Stratos-dev] System test framework progress update
On Fri, Jan 13, 2012 at 4:26 PM, Srinath Perera srin...@wso2.com wrote: just to confirm .. is this runs with trunk packs created from the build now? Yes, we are setting the framework for trunk on bamboo machine. Thanks, Krishantha. On Fri, Jan 13, 2012 at 10:20 AM, Krishantha Samaraweera krishan...@wso2.com wrote: On Fri, Jan 13, 2012 at 8:12 AM, Afkham Azeez az...@wso2.com wrote: Folks, It is better to start writing new tests using TestNG gradually migrate the old tests. +1, We are planning to hold test development and have a hackathon to migrate into TestNG in next week. Thanks, Krishantha. -- Afkham Azeez Sent from my phone On Jan 12, 2012 8:09 PM, Dharshana Warusavitharana dharsha...@wso2.com wrote: Hi, On BPS following scenarios are covered with sub scenarios. And It is available for both local and stratos. Deployment of packages Versioning Package undeployment and redeployment Deployment with active/retire set in deploy.xml Running the processes in memory Process instance cleanup Event filtering at process level Event filtering at scope level Test with custom event listeners ( at process level) Processes with basic activities Processes with structured activities Process activation and retire (manage processes) Monitoring and managing process instances - active/complete/failed/suspended/terminated (through process instances page) - retry, delete, suspend Bpel processes with external partner services Xpath extentions and Other bpel activities (Xpath, XQuery, XSLT) Xpath extentions and Other bpel activities (Xpath, XQuery, XSLT) The samples are available with the resources in system framework. Thank You, Dharshana. On Thu, Jan 12, 2012 at 5:44 PM, Nuwan Wimalasekara nuw...@wso2.com wrote: Hi Following scenarios have been covered in Data Service Server. All test can be run on Product or Stratos. 1) Data Service with CSV file which is on registry 2) Data Service with excel file which is on registry XSLT transformation 3) Data Service with Google Spread Sheet 4) Data Service with MySql Database INSERT, UPDATE, DELETE, and SELECT operation 5) Data Service with carbon data source Data Source Creation INSERT, UPDATE, DELETE, and SELECT operation 6) Distributed Transactions 7) Data Service Eventing 8) Nested Queries 9) Batch Request 10) File Service 11) REST Invocation GET, POST, PUT, DELETE 12) Secure Service Scenario no 1 to 15 13) Service Input parameter validation length validation pattern validation 14) MySql Stored procedure IN params, OUT params, INOUT params 15) Faulty Service Deploying faulty service Edit and Redeploy faulty service 16) Data Service Schedule task Add Schedule task Reschedule Task Verifying Task Repeat Count Verifying Task Start Time Service uploading and data base creation for the service are also automated. MySql database is used for the data services. Thanks NuwanW On Thu, Jan 12, 2012 at 3:42 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi, System test framework [1] is capable of testing starots and product platform. We already integrated Ravana, the perf test framewok into this framework. And it also contain test for G-Reg UI testing using Selenium2/Webdriver. This framework uses perl based deployment framework [2] to setup product platforms to be tested. From next week we will start migrating system framework into TestNG. This is just an update of the status. We have covered following functionalities releated to App Server. You can run all these test on Products as well on Stratos. 1. Car file upload and multitenancy tests. 2. Aar, Jar and spring service upload and multitenancy tests. 3. SOAP tracer test. 4. System level stat test. 5. Faulty webapp test, web app redeployment, 6. AAR load test n 100 c 100. 7. Web app deployment concurrency test using multiple tenants. Automated scenarios of Stratos Manager 1. Add new tenant test. 2. Activate and deactivate tenants. 3. Usage plan update and downgrade test. 4. Tenant contact info update test. 5. Tenant info update tests. Dharshana, Nuwan and Kishan please give updates on the areas you have been automating. Thanks, Krishantha. [1] https://svn.wso2.org/repos/wso2/trunk/carbon/platform-integration/system-test-framework [2] https://svn.wso2.org/repos/wso2/trunk/carbon/platform-integration/deployment-framework ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Nuwan Wimalasekara Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise.
Re: [Carbon-dev] Pagination in activity search - Greg
I have implemented the logic and a screenshot is attached. I had to add an attribute 'noOfPageLinksToDisplay' to the /core/org.wso2.carbon.ui/src/main/resources/web/WEB-INF/tlds/carbontags.tld in order to allow developers to configure the number of links to be displayed in pagination. In case the developer does not set this value, we can have a default value display links to all the pages. ( the existing logic) Could you please suggest the best way to go with? On Fri, Jan 13, 2012 at 10:47 AM, Afkham Azeez az...@wso2.com wrote: You just have to improve the Carbon UI framework's Paginator taglib to do this. It is a simple thing where you would show something like; first prev ... 10 11 12 13 14 15 16 ... next last On Fri, Jan 13, 2012 at 10:01 AM, Ashansa Perera asha...@wso2.com wrote: Hi, All the components which are using Paginator class should have the same issue as [1] since the logic implemented there is to show the links to all the pages. We may have not noticed this since mostly we have only few pages available. Is there a specific reason for that implementation? ( showing links to all pages ) Because at the time we get many pages we have to face the same issue. [1] https://wso2.org/jira/browse/STRATOS-1417 Thanks. Ashansa On Fri, Jan 13, 2012 at 7:23 AM, Amila Maha Arachchi ami...@wso2.comwrote: Hi Senaka, What we want to achieve is, we want to display the available result pages as prev 1 2 .. 11 12 13 14 15 16 17 next when we have so many pages. At the moment, in the view_tenants page of Stratos manager we have about 80-100 result pages. Then it displays all the available page number. How can we display those page numbers as I have mentioned above (note the .. in that list of page numbers) Thanks, AmilaM. On Thu, Jan 12, 2012 at 9:46 PM, Senaka Fernando sen...@wso2.comwrote: Hi Ahansa, AmilaM, What do you want achieve in here? From what you are discussing I believe that you might have had an offline discussion, but for the benefit of others who have not been a part of it, can you summarize what are you trying to implement/fix? Thanks, Senaka. On Thu, Jan 12, 2012 at 5:07 PM, Amila Maha Arachchi ami...@wso2.comwrote: Hi, What parameters do we need to set in order to show the page numbers as prev 1 2 .. 7 8 9 10 11 12 Next Ashansa, can you post the available parameters in the tag library? Then someone will be able to point to the necessary ones. Regards, Amila. On Thu, Jan 12, 2012 at 3:42 PM, Ashansa Perera asha...@wso2.comwrote: Hi, Can someone please specify the logic behind the pagination ( highlighted in attached image ) in activity search - Greg Thanks -- Ashansa Perera Software Engineer WSO2, Inc ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- *Amila Maharachchi* Senior Software Engineer; WSO2, Inc.; http://wso2.com Blog: http://maharachchi.blogspot.com Mobile: +94719371446 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- *Senaka Fernando* Product Manager - WSO2 Governance Registry; Associate Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando *Lean . Enterprise . Middleware ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- *Amila Maharachchi* Senior Software Engineer; WSO2, Inc.; http://wso2.com Blog: http://maharachchi.blogspot.com Mobile: +94719371446 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Ashansa Perera Software Engineer WSO2, Inc ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Ashansa Perera Software Engineer WSO2, Inc attachment: new-pagination.png___ Carbon-dev mailing list
Re: [Carbon-dev] [Carbon-commits] [Carbon] svn commit r118913 - trunk/carbon/products/greg/modules/integration/registry/tests/src/test/java/org/wso2/carbon/registry/ws/client/test/general
On Thu, Jan 12, 2012 at 2:19 PM, sub...@wso2.com wrote: Author: subash Date: Thu Jan 12 00:49:03 2012 New Revision: 118913 URL: http://wso2.org/svn/browse/wso2?view=revrevision=118913 Log: Added a test for the issue CARBON-12200 Modified: trunk/carbon/products/greg/modules/integration/registry/tests/src/test/java/org/wso2/carbon/registry/ws/client/test/general/CollectionChildCountWSTestCase.java Modified: trunk/carbon/products/greg/modules/integration/registry/tests/src/test/java/org/wso2/carbon/registry/ws/client/test/general/CollectionChildCountWSTestCase.java URL: http://wso2.org/svn/browse/wso2/trunk/carbon/products/greg/modules/integration/registry/tests/src/test/java/org/wso2/carbon/registry/ws/client/test/general/CollectionChildCountWSTestCase.java?rev=118913r1=118912r2=118913view=diff == --- trunk/carbon/products/greg/modules/integration/registry/tests/src/test/java/org/wso2/carbon/registry/ws/client/test/general/CollectionChildCountWSTestCase.java (original) +++ trunk/carbon/products/greg/modules/integration/registry/tests/src/test/java/org/wso2/carbon/registry/ws/client/test/general/CollectionChildCountWSTestCase.java Thu Jan 12 00:49:03 2012 @@ -34,6 +34,7 @@ // super.runSuccessCase(); try { getChildCountForCollection(); +doPagedGet(); } catch (RegistryException e) { e.printStackTrace(); fail(Get child count for collection test failed ); @@ -48,4 +49,12 @@ Collection collection = (Collection) resource; assertTrue(true, Child count is + collection.getChildCount()); } + +public void doPagedGet() throws RegistryException { +String path = /_system; +Resource resource = registry.get(path, 1, 1); +assertTrue((resource instanceof Collection), resource is not a collection); +Collection collection = (Collection) resource; +assertTrue(true, Child count is + collection.getChildCount()); This type of assertTrue(true) statement does not add any value to a test. I think it should be; assertEquals(n, collection.getChildCount()); +} } ___ Carbon-commits mailing list carbon-comm...@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-commits -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Pagination in activity search - Greg
Looks good. Please come meet me to get this reviewed. On Fri, Jan 13, 2012 at 4:38 PM, Ashansa Perera asha...@wso2.com wrote: I have implemented the logic and a screenshot is attached. I had to add an attribute 'noOfPageLinksToDisplay' to the /core/org.wso2.carbon.ui/src/main/resources/web/WEB-INF/tlds/carbontags.tld in order to allow developers to configure the number of links to be displayed in pagination. In case the developer does not set this value, we can have a default value display links to all the pages. ( the existing logic) Could you please suggest the best way to go with? On Fri, Jan 13, 2012 at 10:47 AM, Afkham Azeez az...@wso2.com wrote: You just have to improve the Carbon UI framework's Paginator taglib to do this. It is a simple thing where you would show something like; first prev ... 10 11 12 13 14 15 16 ... next last On Fri, Jan 13, 2012 at 10:01 AM, Ashansa Perera asha...@wso2.comwrote: Hi, All the components which are using Paginator class should have the same issue as [1] since the logic implemented there is to show the links to all the pages. We may have not noticed this since mostly we have only few pages available. Is there a specific reason for that implementation? ( showing links to all pages ) Because at the time we get many pages we have to face the same issue. [1] https://wso2.org/jira/browse/STRATOS-1417 Thanks. Ashansa On Fri, Jan 13, 2012 at 7:23 AM, Amila Maha Arachchi ami...@wso2.comwrote: Hi Senaka, What we want to achieve is, we want to display the available result pages as prev 1 2 .. 11 12 13 14 15 16 17 next when we have so many pages. At the moment, in the view_tenants page of Stratos manager we have about 80-100 result pages. Then it displays all the available page number. How can we display those page numbers as I have mentioned above (note the .. in that list of page numbers) Thanks, AmilaM. On Thu, Jan 12, 2012 at 9:46 PM, Senaka Fernando sen...@wso2.comwrote: Hi Ahansa, AmilaM, What do you want achieve in here? From what you are discussing I believe that you might have had an offline discussion, but for the benefit of others who have not been a part of it, can you summarize what are you trying to implement/fix? Thanks, Senaka. On Thu, Jan 12, 2012 at 5:07 PM, Amila Maha Arachchi ami...@wso2.comwrote: Hi, What parameters do we need to set in order to show the page numbers as prev 1 2 .. 7 8 9 10 11 12 Next Ashansa, can you post the available parameters in the tag library? Then someone will be able to point to the necessary ones. Regards, Amila. On Thu, Jan 12, 2012 at 3:42 PM, Ashansa Perera asha...@wso2.comwrote: Hi, Can someone please specify the logic behind the pagination ( highlighted in attached image ) in activity search - Greg Thanks -- Ashansa Perera Software Engineer WSO2, Inc ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- *Amila Maharachchi* Senior Software Engineer; WSO2, Inc.; http://wso2.com Blog: http://maharachchi.blogspot.com Mobile: +94719371446 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- *Senaka Fernando* Product Manager - WSO2 Governance Registry; Associate Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando *Lean . Enterprise . Middleware ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- *Amila Maharachchi* Senior Software Engineer; WSO2, Inc.; http://wso2.com Blog: http://maharachchi.blogspot.com Mobile: +94719371446 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Ashansa Perera Software Engineer WSO2, Inc ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev --
Re: [Carbon-dev] Templates for Carbon Components and Features
On Fri, Jan 13, 2012 at 4:22 PM, Srinath Perera srin...@wso2.com wrote: We should check this in to our SVN .. and maintain in the future +1. And I expect people to try out this template with their real life requirements and provide feedback on critical changes to be done before deploying it with masses. Chethiya, can you write a OT article describing how to use these templates? +1. I'll start working on it with the options we have now. Thanks, - Chethiya On Fri, Jan 13, 2012 at 3:57 PM, Chethiya Abeysinghe cheth...@wso2.com wrote: Hi, I've extended above, including service-stubs, features and repository along with the already existing backend-end and front-end carbon component. Therefore, any project you create using this new template will be an all-in-one package where you can run off the shelf at somewhere like application server. You just have to do a 'mvn clean install' in the created project and install the created feature using the repository. Here are the instruction to use the new template. Note that it's not archetype anymore, I've created a maven plugin to overcome some limitation of archetype with folder naming and parameter formatting, and now it got great deal of customizability. 1. Extract the attachment and do a 'mvn clean install' within the 'carbon-template' folder. 2. Go to the place you want to create the project and then hit 'mvn org.wso2.carbon:carbon-template:1.0.0-SNAPSHOT:generate' 3. Provide the necessary parameters (artifactId, groupId, etc)... This runs in interactive mode. But should be possible to run in non-interactive mode also by just passing the parameters using command line arguments. 4. Go into the project folder named using the aggragratorArtifactId you supplied. Run 'mvn clean install' inside that folder Please give necessary changes to be done on generated sample project. Thanks, - Chethiya On Fri, Jan 6, 2012 at 5:42 PM, Chethiya Abeysinghe cheth...@wso2.com wrote: On Fri, Jan 6, 2012 at 4:29 PM, Pradeep Fernando prad...@wso2.com wrote: Hi Chethiya, nice. what about stub bundle. ? It's not in this archetype. At the moment this archetype only has back-end and front-end carbon components. As we discussed, the next step is to extend this archetype to create stub bundle and features along with current carbon components in one parent folder. thanks, - Chethiya thanks, --Pradeep ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Chethiya Abeysinghe Software Engineer; WSO2, Inc.; http://wso2.com/ email: cheth...@wso2.com phone: +94 777334874 blog: chethiya3000.blogspot.com -- Chethiya Abeysinghe Software Engineer; WSO2, Inc.; http://wso2.com/ email: cheth...@wso2.com phone: +94 777334874 blog: chethiya3000.blogspot.com ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Srinath Perera, Ph.D. http://www.cs.indiana.edu/~hperera/ http://srinathsview.blogspot.com/ ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Chethiya Abeysinghe Software Engineer; WSO2, Inc.; http://wso2.com/ email: cheth...@wso2.com phone: +94 777334874 blog: chethiya3000.blogspot.com ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Pagination in activity search - Greg
Ideally, this pagination should be something like http://www.autolanka.com/forum/index.php?/topic/8634-expressway-updates/page__st__1000 On Fri, Jan 13, 2012 at 4:44 PM, Afkham Azeez az...@wso2.com wrote: Looks good. Please come meet me to get this reviewed. On Fri, Jan 13, 2012 at 4:38 PM, Ashansa Perera asha...@wso2.com wrote: I have implemented the logic and a screenshot is attached. I had to add an attribute 'noOfPageLinksToDisplay' to the /core/org.wso2.carbon.ui/src/main/resources/web/WEB-INF/tlds/carbontags.tld in order to allow developers to configure the number of links to be displayed in pagination. In case the developer does not set this value, we can have a default value display links to all the pages. ( the existing logic) Could you please suggest the best way to go with? On Fri, Jan 13, 2012 at 10:47 AM, Afkham Azeez az...@wso2.com wrote: You just have to improve the Carbon UI framework's Paginator taglib to do this. It is a simple thing where you would show something like; first prev ... 10 11 12 13 14 15 16 ... next last On Fri, Jan 13, 2012 at 10:01 AM, Ashansa Perera asha...@wso2.comwrote: Hi, All the components which are using Paginator class should have the same issue as [1] since the logic implemented there is to show the links to all the pages. We may have not noticed this since mostly we have only few pages available. Is there a specific reason for that implementation? ( showing links to all pages ) Because at the time we get many pages we have to face the same issue. [1] https://wso2.org/jira/browse/STRATOS-1417 Thanks. Ashansa On Fri, Jan 13, 2012 at 7:23 AM, Amila Maha Arachchi ami...@wso2.comwrote: Hi Senaka, What we want to achieve is, we want to display the available result pages as prev 1 2 .. 11 12 13 14 15 16 17 next when we have so many pages. At the moment, in the view_tenants page of Stratos manager we have about 80-100 result pages. Then it displays all the available page number. How can we display those page numbers as I have mentioned above (note the .. in that list of page numbers) Thanks, AmilaM. On Thu, Jan 12, 2012 at 9:46 PM, Senaka Fernando sen...@wso2.comwrote: Hi Ahansa, AmilaM, What do you want achieve in here? From what you are discussing I believe that you might have had an offline discussion, but for the benefit of others who have not been a part of it, can you summarize what are you trying to implement/fix? Thanks, Senaka. On Thu, Jan 12, 2012 at 5:07 PM, Amila Maha Arachchi ami...@wso2.com wrote: Hi, What parameters do we need to set in order to show the page numbers as prev 1 2 .. 7 8 9 10 11 12 Next Ashansa, can you post the available parameters in the tag library? Then someone will be able to point to the necessary ones. Regards, Amila. On Thu, Jan 12, 2012 at 3:42 PM, Ashansa Perera asha...@wso2.comwrote: Hi, Can someone please specify the logic behind the pagination ( highlighted in attached image ) in activity search - Greg Thanks -- Ashansa Perera Software Engineer WSO2, Inc ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- *Amila Maharachchi* Senior Software Engineer; WSO2, Inc.; http://wso2.com Blog: http://maharachchi.blogspot.com Mobile: +94719371446 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- *Senaka Fernando* Product Manager - WSO2 Governance Registry; Associate Technical Lead; WSO2 Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://linkedin.com/in/senakafernando *Lean . Enterprise . Middleware ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- *Amila Maharachchi* Senior Software Engineer; WSO2, Inc.; http://wso2.com Blog: http://maharachchi.blogspot.com Mobile: +94719371446 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Ashansa Perera Software Engineer WSO2, Inc ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in:
Re: [Carbon-dev] Templates for Carbon Components and Features
Even you can attach samples (if any) as compress files to your OT article itself. Thanks. On Fri, Jan 13, 2012 at 4:46 PM, Chethiya Abeysinghe cheth...@wso2.comwrote: On Fri, Jan 13, 2012 at 4:22 PM, Srinath Perera srin...@wso2.com wrote: We should check this in to our SVN .. and maintain in the future +1. And I expect people to try out this template with their real life requirements and provide feedback on critical changes to be done before deploying it with masses. Chethiya, can you write a OT article describing how to use these templates? +1. I'll start working on it with the options we have now. Thanks, - Chethiya On Fri, Jan 13, 2012 at 3:57 PM, Chethiya Abeysinghe cheth...@wso2.com wrote: Hi, I've extended above, including service-stubs, features and repository along with the already existing backend-end and front-end carbon component. Therefore, any project you create using this new template will be an all-in-one package where you can run off the shelf at somewhere like application server. You just have to do a 'mvn clean install' in the created project and install the created feature using the repository. Here are the instruction to use the new template. Note that it's not archetype anymore, I've created a maven plugin to overcome some limitation of archetype with folder naming and parameter formatting, and now it got great deal of customizability. 1. Extract the attachment and do a 'mvn clean install' within the 'carbon-template' folder. 2. Go to the place you want to create the project and then hit 'mvn org.wso2.carbon:carbon-template:1.0.0-SNAPSHOT:generate' 3. Provide the necessary parameters (artifactId, groupId, etc)... This runs in interactive mode. But should be possible to run in non-interactive mode also by just passing the parameters using command line arguments. 4. Go into the project folder named using the aggragratorArtifactId you supplied. Run 'mvn clean install' inside that folder Please give necessary changes to be done on generated sample project. Thanks, - Chethiya On Fri, Jan 6, 2012 at 5:42 PM, Chethiya Abeysinghe cheth...@wso2.com wrote: On Fri, Jan 6, 2012 at 4:29 PM, Pradeep Fernando prad...@wso2.com wrote: Hi Chethiya, nice. what about stub bundle. ? It's not in this archetype. At the moment this archetype only has back-end and front-end carbon components. As we discussed, the next step is to extend this archetype to create stub bundle and features along with current carbon components in one parent folder. thanks, - Chethiya thanks, --Pradeep ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Chethiya Abeysinghe Software Engineer; WSO2, Inc.; http://wso2.com/ email: cheth...@wso2.com phone: +94 777334874 blog: chethiya3000.blogspot.com -- Chethiya Abeysinghe Software Engineer; WSO2, Inc.; http://wso2.com/ email: cheth...@wso2.com phone: +94 777334874 blog: chethiya3000.blogspot.com ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Srinath Perera, Ph.D. http://www.cs.indiana.edu/~hperera/ http://srinathsview.blogspot.com/ ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Chethiya Abeysinghe Software Engineer; WSO2, Inc.; http://wso2.com/ email: cheth...@wso2.com phone: +94 777334874 blog: chethiya3000.blogspot.com ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- == Dasunpriya Anuradha. ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Adding Findbugs and Checkstyle for Maven build
Hi, Agreed on slowing down the build process.I did not intend to run in all components but making it available to use for the components that it needs. AFAIK now the profile is not being used. . Initial thought was that anyone who needs to have a quick glance can get the overview of code quality with the build.Totally agree that developers need to run before commit. Thanks for the feedback. Regards. On Fri, Jan 13, 2012 at 4:38 PM, Supun Malinga sup...@wso2.com wrote: On Fri, Jan 13, 2012 at 2:59 PM, Afkham Azeez az...@wso2.com wrote: This will significantly slow down the build. It is better to put this into a separate profile. +1 These have to be linked at the component level not product level IMO. -- Afkham Azeez Sent from my phone On Jan 13, 2012 1:55 PM, Shelan Perera she...@wso2.com wrote: Hi, I am working on adding Findbugs and Check style plugins for maven build for data services component.Since this may need for all the component i can add it to carbon root pom under plugin management so modules that needed to integrate this can reuse. For checkstyles we can use default sun configuration file or use our customized version. I am attaching the one that i got from Apache.If we are using the custom one which is the best location to add the configuration file. Would like to have your feedback. Here is my blog post that explains how to integrate findbugs and checkstyle.[1] [1] http://blog.shelan.org/2012/01/13/how-to-add-findbugs-and-checkstyle-plugins-to-your-maven3-build/ Thanks, Regards, -- *Shelan Perera* Software Engineer ** *WSO2, Inc. : wso2.com* lean.enterprise.middleware. *Home Page* :shelan.org *Blog* : blog.shelan.org *Linked-i*n :http://www.linkedin.com/pub/shelan-perera/a/194/465 *Twitter* :https://twitter.com/#!/shelan *Mobile* : +94 772 604 402 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Supun Malinga, Software Engineer, WSO2 Inc. http://wso2.com http://wso2.org email - sup...@wso2.com sup...@wso2.com mobile - 071 56 91 321 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- *Shelan Perera* Software Engineer ** *WSO2, Inc. : wso2.com* lean.enterprise.middleware. *Home Page* :shelan.org *Blog* : blog.shelan.org *Linked-i*n :http://www.linkedin.com/pub/shelan-perera/a/194/465 *Twitter* :https://twitter.com/#!/shelan *Mobile* : +94 772 604 402 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] Dynamic Load Balancing to a Cluster via ESB
Hi, i have a web service an the wso2 as and want requests to this service to be distributed in a stateful manner and i do not want to give the name of the endpoints hard coded. So my only choice is load balancing. Here is my synapse configuration: ?xml version=1.0 encoding=UTF-8? definitions xmlns=http://ws.apache.org/ns/synapse; registry provider=org.wso2.carbon.mediation.registry.WSO2Registry parameter name=extensionsorg.wso2.carbon.discovery.mediation.ext.WSDiscoveryRegistryExtension/parameter parameter name=discoveryProxyhttps://discovery-governance-arcsp.ardich.com:9443/services/DiscoveryProxy/parameter parameter name=cachableDuration15000/parameter /registry proxy name=DynamicWSStorageService startOnLoad=true trace=disable target endpoint=wsdd://urn:uuid:5552ccce-b0e7-4aef-96ee-dcd254b31c84/https outSequence send/ /outSequence /target policy key=conf:/repository/axis2/service-groups/DynamicWSStorageService/services/DynamicWSStorageService/policies/WSO2CachingPolicy/ /proxy proxy name=DynamicAuthenticationAdmin startOnLoad=true trace=disable target endpoint=wsdd://urn:uuid:e84bfadf-beb3-4412-b908-b8b9f6e411f1/https outSequence send/ /outSequence /target /proxy sequence name=fault log level=full property name=MESSAGE value=Executing default 'fault' sequence/ property name=ERROR_CODE expression=get-property('ERROR_CODE')/ property name=ERROR_MESSAGE expression=get-property('ERROR_MESSAGE')/ /log drop/ /sequence sequence name=main in log level=full/ send endpoint name=manager-storage-arcsp.ardich.com dynamicLoadbalance algorithm=org.apache.synapse.endpoints.algorithms.RoundRobin membershipHandler class=org.apache.synapse.core.axis2.Axis2LoadBalanceMembershipHandler property name=applicationDomain value=arcsp.storage.domain/ /membershipHandler /dynamicLoadbalance /endpoint /send /in out send/ /out /sequence /definitions I can successfully save the configuration on the ESB. But when i try to make a request to the proxy web services (DynamicAuthenticationAdmin and DynamicWSStorage) ESB gives following error: TID: [] [WSO2 Stratos Internal Enterprise Service Bus] [2012-01-13 14:51:29,604] ERROR {org.apache.synapse.endpoints.EndpointContext} - For proper clustered mode operation, all endpoints should be uniquely named {org.apache.synapse.endpoints.EndpointContext} What have done wrong on the synapse configuration? Thanks Fatih Güçlü Akkaya Software Development Engineer ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] [Bamboo-Build] WSO2 Carbon Trunk WSO2 Carbon - Platform Trunk #106 was SUCCESSFUL (with 7793 tests). Change made by 5 authors.
--- WSO2 Carbon Trunk WSO2 Carbon - Platform Trunk #106 was successful. --- Code has been updated by rajika, prabatha, amilaj, charith, nuwanw. 7793 tests in total. http://builder4.us1.wso2.org:/bamboo/browse/WSO2CARBONTUNK-WSO2CARBONPLATFORMTRUNK-106/ -- Code Changes -- rajika (118969): Added csg transport act just as a middle man + ui improvments. nuwanw (118970): fixed date format charith (118965): sonar poofile -- This message is automatically generated by Atlassian Bamboo___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] Test failure in Carbon trunk - http NIO core 4.1.0-wso2v1
[INFO] BUILD FAILURE [INFO] [INFO] Total time: 1:03:53.127s [INFO] Finished at: Fri Jan 13 17:03:34 IST 2012 [INFO] Final Memory: 402M/743M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test (default-test) on project httpcore-nio: There are test failures. [ERROR] [ERROR] Please refer to /Users/azeez/projects/wso2/org/trunk/carbon/dependencies/httpcore-nio/4.1.0-wso2v1/target/surefire-reports for the individual test results. [ERROR] - [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/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn goals -rf :httpcore-nio The surefire-report is shown below: --- Test set: org.apache.http.impl.nio.reactor.TestDefaultListeningIOReactor --- Tests run: 3, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 0.519 sec FAILURE! testEndpointUpAndDown(org.apache.http.impl.nio.reactor.TestDefaultListeningIOReactor) Time elapsed: 0.007 sec FAILURE! junit.framework.AssertionFailedError: expected:2 but was:1 at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.failNotEquals(Assert.java:283) at junit.framework.Assert.assertEquals(Assert.java:64) at junit.framework.Assert.assertEquals(Assert.java:195) at junit.framework.Assert.assertEquals(Assert.java:201) at org.apache.http.impl.nio.reactor.TestDefaultListeningIOReactor.testEndpointUpAndDown(TestDefaultListeningIOReactor.java:118) 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 junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102) at org.apache.maven.surefire.Surefire.run(Surefire.java:180) 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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021) testEndpointAlreadyBoundFatal(org.apache.http.impl.nio.reactor.TestDefaultListeningIOReactor) Time elapsed: 0.003 sec ERROR! java.lang.IllegalStateException: I/O reactor has been shut down at org.apache.http.impl.nio.reactor.DefaultListeningIOReactor.listen(DefaultListeningIOReactor.java:175) at org.apache.http.impl.nio.reactor.TestDefaultListeningIOReactor.testEndpointAlreadyBoundFatal(TestDefaultListeningIOReactor.java:179) 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 junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at
Re: [Carbon-dev] Quartz running update checker in carbon
There is bunch of other INFO level logs as well. [2012-01-13 21:53:15,262] INFO {org.quartz.impl.StdSchedulerFactory} - Using default implementation for ThreadExecutor [2012-01-13 21:53:15,265] INFO {org.quartz.simpl.SimpleThreadPool} - Job execution threads will use class loader of thread: Framework Event Dispatcher [2012-01-13 21:53:15,280] INFO {org.quartz.core.SchedulerSignalerImpl} - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl [2012-01-13 21:53:15,281] INFO {org.quartz.core.QuartzScheduler} - Quartz Scheduler v.2.1.1 created. [2012-01-13 21:53:15,282] INFO {org.quartz.simpl.RAMJobStore} - RAMJobStore initialized. [2012-01-13 21:53:15,283] INFO {org.quartz.core.QuartzScheduler} - Scheduler meta-data: Quartz Scheduler (v2.1.1) 'DefaultQuartzScheduler' with instanceId 'NON_CLUSTERED' Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally. NOT STARTED. Currently in standby mode. Number of jobs executed: 0 Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads. Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered. [2012-01-13 21:53:15,284] INFO {org.quartz.impl.StdSchedulerFactory} - Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties' [2012-01-13 21:53:15,285] INFO {org.quartz.impl.StdSchedulerFactory} - Quartz scheduler version: 2.1.1 [2012-01-13 21:53:15,285] INFO {org.quartz.core.QuartzScheduler} - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started. [2012-01-13 21:53:15,454] INFO {org.wso2.carbon.ntask.core.internal.TasksDSComponent} - Task service started It is better to get rid of these as well. Thanks, Thilina On Fri, Jan 13, 2012 at 9:02 AM, Afkham Azeez az...@wso2.com wrote: Looks like a recent addition done by mistake. Please remove/get rid of this. On Thu, Jan 12, 2012 at 3:38 PM, Supun Malinga sup...@wso2.com wrote: hi, $subject, got a log saying, [2012-01-12 15:29:16,433] INFO {org.quartz.utils.UpdateChecker} - New Quartz update(s) found: 2.1.2 [ http://www.terracotta.org/kit/reflector?kitID=defaultpageID=QuartzChangeLog ] guess this is not necessary. thanks, -- Supun Malinga, Software Engineer, WSO2 Inc. http://wso2.com http://wso2.org email - sup...@wso2.com sup...@wso2.com mobile - 071 56 91 321 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Thilina Buddhika Associate Technical Lead WSO2 Inc. ; http://wso2.com lean . enterprise . middleware phone : +94 77 44 88 727 blog : http://blog.thilinamb.com ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] Message Processor doc missing in the ESB 4.0.3 docs..
Looks like Message Processor doc is missing in the ESB 4.0.3 docs.. And also in the ESB hosted documentation http://wso2.org/project/esb/java/4.0.3/docs/message_processor.html -- Thanks Regards, Prabath Mobile : +94 71 809 6732 http://blog.facilelogin.com http://RampartFAQ.com ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Test failure in Carbon trunk - http NIO core 4.1.0-wso2v1
On Fri, Jan 13, 2012 at 9:31 PM, Afkham Azeez az...@wso2.com wrote: [INFO] BUILD FAILURE [INFO] [INFO] Total time: 1:03:53.127s [INFO] Finished at: Fri Jan 13 17:03:34 IST 2012 [INFO] Final Memory: 402M/743M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test (default-test) on project httpcore-nio: There are test failures. [ERROR] [ERROR] Please refer to /Users/azeez/projects/wso2/org/trunk/carbon/dependencies/httpcore-nio/4.1.0-wso2v1/target/surefire-reports for the individual test results. [ERROR] - [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/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn goals -rf :httpcore-nio The surefire-report is shown below: --- Test set: org.apache.http.impl.nio.reactor.TestDefaultListeningIOReactor --- Tests run: 3, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 0.519 sec FAILURE! testEndpointUpAndDown(org.apache.http.impl.nio.reactor.TestDefaultListeningIOReactor) Time elapsed: 0.007 sec FAILURE! junit.framework.AssertionFailedError: expected:2 but was:1 at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.failNotEquals(Assert.java:283) at junit.framework.Assert.assertEquals(Assert.java:64) at junit.framework.Assert.assertEquals(Assert.java:195) at junit.framework.Assert.assertEquals(Assert.java:201) at org.apache.http.impl.nio.reactor.TestDefaultListeningIOReactor.testEndpointUpAndDown(TestDefaultListeningIOReactor.java:118) 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 junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102) at org.apache.maven.surefire.Surefire.run(Surefire.java:180) 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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021) testEndpointAlreadyBoundFatal(org.apache.http.impl.nio.reactor.TestDefaultListeningIOReactor) Time elapsed: 0.003 sec ERROR! java.lang.IllegalStateException: I/O reactor has been shut down at org.apache.http.impl.nio.reactor.DefaultListeningIOReactor.listen(DefaultListeningIOReactor.java:175) at org.apache.http.impl.nio.reactor.TestDefaultListeningIOReactor.testEndpointAlreadyBoundFatal(TestDefaultListeningIOReactor.java:179) 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 junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at
Re: [Carbon-dev] Dynamic Load Balancing to a Cluster via ESB
This is probably a bug in the WSDiscoveryRegistryExtension. IIRC it doesn't set a name on the endpoints returned. But when you enable clustering, it expects all endpoints to have unique names. Can you try with clustering turned off and see if that works? Thanks, Hiranya 2012/1/13 Güçlü Akkaya guclu.akk...@ardictech.com ** Hi, i have a web service an the wso2 as and want requests to this service to be distributed in a stateful manner and i do not want to give the name of the endpoints hard coded. So my only choice is load balancing. Here is my synapse configuration: ?xml version=1.0 encoding=UTF-8? definitions xmlns=http://ws.apache.org/ns/synapse; registry provider=org.wso2.carbon.mediation.registry.WSO2Registry parameter name=extensionsorg.wso2.carbon.discovery.mediation.ext.WSDiscoveryRegistryExtension/parameter parameter name=discoveryProxy https://discovery-governance-arcsp.ardich.com:9443/services/DiscoveryProxy /parameter parameter name=cachableDuration15000/parameter /registry proxy name=DynamicWSStorageService startOnLoad=true trace=disable target endpoint=wsdd://urn:uuid:5552ccce-b0e7-4aef-96ee-dcd254b31c84/https outSequence send/ /outSequence /target policy key=conf:/repository/axis2/service-groups/DynamicWSStorageService/services/DynamicWSStorageService/policies/WSO2CachingPolicy/ /proxy proxy name=DynamicAuthenticationAdmin startOnLoad=true trace=disable target endpoint=wsdd://urn:uuid:e84bfadf-beb3-4412-b908-b8b9f6e411f1/https outSequence send/ /outSequence /target /proxy sequence name=fault log level=full property name=MESSAGE value=Executing default 'fault' sequence/ property name=ERROR_CODE expression=get-property('ERROR_CODE')/ property name=ERROR_MESSAGE expression=get-property('ERROR_MESSAGE')/ /log drop/ /sequence sequence name=main in log level=full/ send endpoint name=manager-storage-arcsp.ardich.com dynamicLoadbalance algorithm=org.apache.synapse.endpoints.algorithms.RoundRobin membershipHandler class=org.apache.synapse.core.axis2.Axis2LoadBalanceMembershipHandler property name=applicationDomain value=arcsp.storage.domain/ /membershipHandler /dynamicLoadbalance /endpoint /send /in out send/ /out /sequence /definitions I can successfully save the configuration on the ESB. But when i try to make a request to the proxy web services (DynamicAuthenticationAdmin and DynamicWSStorage) ESB gives following error: TID: [] [WSO2 Stratos Internal Enterprise Service Bus] [2012-01-13 14:51:29,604] ERROR {org.apache.synapse.endpoints.EndpointContext} - For proper clustered mode operation, all endpoints should be uniquely named {org.apache.synapse.endpoints.EndpointContext} What have done wrong on the synapse configuration? Thanks Fatih Güçlü Akkaya Software Development Engineer ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Hiranya Jayathilaka Associate Technical Lead; WSO2 Inc.; http://wso2.org E-mail: hira...@wso2.com; Mobile: +94 77 633 3491 Blog: http://techfeast-hiranya.blogspot.com ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] [Bamboo-Build] WSO2 Carbon Trunk WSO2 Carbon - Platform Trunk #107 was SUCCESSFUL (with 7834 tests). Change made by 10 authors.
--- WSO2 Carbon Trunk WSO2 Carbon - Platform Trunk #107 was successful. --- Code has been updated by miyuru, rajika, isuru, manjular, prabatha, subash, achala, thilini, lalaji, buddhikac. 7834 tests in total. http://builder4.us1.wso2.org:/bamboo/browse/WSO2CARBONTUNK-WSO2CARBONPLATFORMTRUNK-107/ -- Code Changes -- rajika (118995): Fixed the indicator location. rajika (118993): Fixed new service publishing. prabatha (118982): code cleanup -- This message is automatically generated by Atlassian Bamboo___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] Integration tests in ESB mediators getting fail in trunk due to the lack of configuration (Missing axis-modules configurations in the bundle)
Hi, I just tested unit tests under the *esb/module/integration/mediators/ *and some test getting fail due to the issue in wso2esb-4.0.0-SNAPSHOT bundle, where at esb samples under axisClint and axisServer for test cases such as * callout-mediator,filter-mediators* etc would require *addressing modules to be engaged*, but I found *modules* folder is missing while building the esb product (wso2esb-4.0.0-SNAPSHOT.zip),in order to build successfully currently we have to add those modules manually. error summary, 012-01-14 00 %5B2012-01-14%2000:12:34,885] ERROR - CalloutMediator Error initializing callout mediator : The system is attempting to engage a module that is not available: addressing org.apache.axis2.AxisFault: The system is attempting to engage a module that is not available: addressing at org.apache.axis2.engine.AxisConfiguration.engageModule(AxisConfiguration.java:598) at org.apache.axis2.engine.AxisConfiguration.engageGlobalModules(AxisConfiguration.java:719) at org.apache.axis2.deployment.DeploymentEngine.engageModules(DeploymentEngine.java:828) at org.apache.axis2.deployment.FileSystemConfigurator.engageGlobalModules(FileSystemConfigurator.java:142) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:94) Currently* BAMBOO automation builder is skipping integration tests at ESB since the module at the moment is not enabled at release 4.0.0 * cheers, Dushan Abeyruwan ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] 3.2.x branch build
Did we stop the Bamboo on $subject We need that if we want the next patch release to go out from that. Thanks, Samisa... Samisa Abeysinghe VP Engineering WSO2 Inc. http://wso2.com http://wso2.org ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] Where are the packs built by Bamboo?
$subject http://builder4.us1.wso2.org:/bamboo/browse/WSO2CARBONTUNK-WSO2CARBONPLATFORMTRUNK-107/artifact is empty Thanks, Samisa... Samisa Abeysinghe VP Engineering WSO2 Inc. http://wso2.com http://wso2.org ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] 3.2.x branch build
It looks like the 3.2.0 branch was having a registry test failure no one was owning that. We need to fix that restart the Bamboo build for 3.2.0 On Sat, Jan 14, 2012 at 6:29 AM, Samisa Abeysinghe sam...@wso2.com wrote: Did we stop the Bamboo on $subject We need that if we want the next patch release to go out from that. Thanks, Samisa... Samisa Abeysinghe VP Engineering WSO2 Inc. http://wso2.com http://wso2.org ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Test failure in Carbon trunk - http NIO core 4.1.0-wso2v1
Sadeep, can you please do the needful and upgrade the trunk to the latest version of HTTP Core (and remove this old branch from the dependencies section)? Should be a trivial change. Thanks, Hiranya On Fri, Jan 13, 2012 at 11:19 PM, Sadeep Jayasumana sad...@wso2.com wrote: Hi, On Fri, Jan 13, 2012 at 10:25 PM, Hiranya Jayathilaka hira...@wso2.comwrote: On Fri, Jan 13, 2012 at 9:31 PM, Afkham Azeez az...@wso2.com wrote: [INFO] BUILD FAILURE [INFO] [INFO] Total time: 1:03:53.127s [INFO] Finished at: Fri Jan 13 17:03:34 IST 2012 [INFO] Final Memory: 402M/743M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test (default-test) on project httpcore-nio: There are test failures. [ERROR] [ERROR] Please refer to /Users/azeez/projects/wso2/org/trunk/carbon/dependencies/httpcore-nio/4.1.0-wso2v1/target/surefire-reports for the individual test results. [ERROR] - [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/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn goals -rf :httpcore-nio The surefire-report is shown below: --- Test set: org.apache.http.impl.nio.reactor.TestDefaultListeningIOReactor --- Tests run: 3, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 0.519 sec FAILURE! testEndpointUpAndDown(org.apache.http.impl.nio.reactor.TestDefaultListeningIOReactor) Time elapsed: 0.007 sec FAILURE! junit.framework.AssertionFailedError: expected:2 but was:1 at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.failNotEquals(Assert.java:283) at junit.framework.Assert.assertEquals(Assert.java:64) at junit.framework.Assert.assertEquals(Assert.java:195) at junit.framework.Assert.assertEquals(Assert.java:201) at org.apache.http.impl.nio.reactor.TestDefaultListeningIOReactor.testEndpointUpAndDown(TestDefaultListeningIOReactor.java:118) 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 junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102) at org.apache.maven.surefire.Surefire.run(Surefire.java:180) 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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021) testEndpointAlreadyBoundFatal(org.apache.http.impl.nio.reactor.TestDefaultListeningIOReactor) Time elapsed: 0.003 sec ERROR! java.lang.IllegalStateException: I/O reactor has been shut down at org.apache.http.impl.nio.reactor.DefaultListeningIOReactor.listen(DefaultListeningIOReactor.java:175) at org.apache.http.impl.nio.reactor.TestDefaultListeningIOReactor.testEndpointAlreadyBoundFatal(TestDefaultListeningIOReactor.java:179) 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
Re: [Carbon-dev] [Carbon-commits] [Carbon] svn commit r118913 - trunk/carbon/products/greg/modules/integration/registry/tests/src/test/java/org/wso2/carbon/registry/ws/client/test/general
On Fri, Jan 13, 2012 at 4:42 PM, Afkham Azeez az...@wso2.com wrote: On Thu, Jan 12, 2012 at 2:19 PM, sub...@wso2.com wrote: Author: subash Date: Thu Jan 12 00:49:03 2012 New Revision: 118913 URL: http://wso2.org/svn/browse/wso2?view=revrevision=118913 Log: Added a test for the issue CARBON-12200 Modified: trunk/carbon/products/greg/modules/integration/registry/tests/src/test/java/org/wso2/carbon/registry/ws/client/test/general/CollectionChildCountWSTestCase.java Modified: trunk/carbon/products/greg/modules/integration/registry/tests/src/test/java/org/wso2/carbon/registry/ws/client/test/general/CollectionChildCountWSTestCase.java URL: http://wso2.org/svn/browse/wso2/trunk/carbon/products/greg/modules/integration/registry/tests/src/test/java/org/wso2/carbon/registry/ws/client/test/general/CollectionChildCountWSTestCase.java?rev=118913r1=118912r2=118913view=diff == --- trunk/carbon/products/greg/modules/integration/registry/tests/src/test/java/org/wso2/carbon/registry/ws/client/test/general/CollectionChildCountWSTestCase.java (original) +++ trunk/carbon/products/greg/modules/integration/registry/tests/src/test/java/org/wso2/carbon/registry/ws/client/test/general/CollectionChildCountWSTestCase.java Thu Jan 12 00:49:03 2012 @@ -34,6 +34,7 @@ // super.runSuccessCase(); try { getChildCountForCollection(); +doPagedGet(); } catch (RegistryException e) { e.printStackTrace(); fail(Get child count for collection test failed ); @@ -48,4 +49,12 @@ Collection collection = (Collection) resource; assertTrue(true, Child count is + collection.getChildCount()); } + +public void doPagedGet() throws RegistryException { +String path = /_system; +Resource resource = registry.get(path, 1, 1); +assertTrue((resource instanceof Collection), resource is not a collection); +Collection collection = (Collection) resource; +assertTrue(true, Child count is + collection.getChildCount()); This type of assertTrue(true) statement does not add any value to a test. I think it should be; assertEquals(n, collection.getChildCount()); +1 and Fixed under revision 119003. +} } ___ Carbon-commits mailing list carbon-comm...@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-commits -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* -- Subash Chaturanga Software Engineer WSO2 Inc. http://wso2.com email - sub...@wso2.com phone - 077 2225922 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] [Bamboo-Build] WSO2 Carbon Trunk WSO2 Carbon - Platform Trunk #108 has FAILED (1 tests failed). Change made by hasini.
--- WSO2 Carbon Trunk WSO2 Carbon - Platform Trunk #108 failed. --- Code has been updated by hasini. 1/7834 tests failed. http://builder4.us1.wso2.org:/bamboo/browse/WSO2CARBONTUNK-WSO2CARBONPLATFORMTRUNK-108/ -- Failing Jobs -- - WSO2 Carbon Trunk Build Process (Default Stage): 1 of 7834 tests failed. -- Code Changes -- hasini (119002): Applying the patch provided by Suresh for the issue CARBON-10688. -- Tests -- New Test Failures (1) - SimpleSchedulerTest: Immediate scheduling -- This message is automatically generated by Atlassian Bamboo___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] 3.2.x branch build
Removal of the plan is the wrong thing to do as the reaction to no response to breaks. We seem to still have a fundamental problem of ownership here. Who is supposed to fix it, if it is broken. On Sat, Jan 14, 2012 at 9:59 AM, Afkham Azeez az...@wso2.com wrote: It looks like the 3.2.0 branch was having a registry test failure no one was owning that. We need to fix that restart the Bamboo build for 3.2.0 On Sat, Jan 14, 2012 at 6:29 AM, Samisa Abeysinghe sam...@wso2.comwrote: Did we stop the Bamboo on $subject We need that if we want the next patch release to go out from that. Thanks, Samisa... Samisa Abeysinghe VP Engineering WSO2 Inc. http://wso2.com http://wso2.org ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/** email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919 blog: **http://blog.afkham.org* http://blog.afkham.org* twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware* ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev Thanks, Samisa... Samisa Abeysinghe VP Engineering WSO2 Inc. http://wso2.com http://wso2.org ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev