[Dev] [Ann] WSO2 App Cloud 3.0.0-Alpha2 Released!
WSO2 App Cloud 3.0.0-Alpha2 Release WSO2 App Cloud team is pleased to announce the release of version 3.0.0-Alpha2 of the WSO2 App Cloud. WSO2 App Cloud is a multi-tenant, elastic and self-service enterprise platform that enables hosting applications written in multiple languages on multiple runtimes. Currently supported runtimes are wso2as, msf4j and php. The main goal of this release is to introduce container specifications which helps to create docker containers based on predefined CPU and Memory values. Moreover this release introduce free tier to App Cloud in which a particular tenant will be restricted to create maximum of 3 applications or versions. Resolved Issues: - WSO2 App Cloud resolved issues <https://wso2.org/jira/browse/APPCLOUD-126?jql=project%20%3D%20APPCLOUD%20AND%20fixVersion%20%3D%20%223.0.0-Alpha-2%22> - Source repository can be found in [1] -This release of App Cloud is available in [2] -Documentation can be found in [3] [1]https://github.com/wso2/app-cloud/tree/v3.0.0-alpha2 [2] https://newapps.cloud.wso2.com/appmgt/site/pages/index.jag [3]https://docs.wso2.com/display/AppCloud/About+WSO2+App+Cloud -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com <http://wso2> Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 <http://lalajisureshika.blogspot.com/> ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [appcloud] Unable to connect to Docker Client from local set up
182) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) > ... 74 more > {module/application/application.jag} > > I also don't get the container specification for the app as shown by the > attached image. Can someone help me identify the issue. > > Thanks and Regards. > > -- > *Sabra Ossen* > *Software Engineer* > Email: sa...@wso2.com > Mobile: +94 767 837356 > -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com <http://wso2> Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 <http://lalajisureshika.blogspot.com/> ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Lahiru Manohara
Congratulations Lahiru On Tue, Apr 19, 2016 at 11:47 AM, Manjula Rathnayake <manju...@wso2.com> wrote: > Hi all, > > It's my pleasure to welcome Lahiru Manohara as a WSO2 Committer. Lahiru > has been a key member of the AF/App Cloud team contributing to many aspects > of App Cloud development/deployment ever since he joined us. In recognition > of his contributions, ownership shown towards the tasks/responsibilities > assigned to him, and commitment, he has been voted as a WSO2 committer. > > Lahiru, Welcome aboard and keep up the good work! > > thank you. > > -- > Manjula Rathnayaka > Associate Technical Lead > WSO2, Inc. > Mobile:+94 77 743 1987 > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com <http://wso2> Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 <http://lalajisureshika.blogspot.com/> ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [Ann] WSO2 App Cloud 3.0.0-Alpha Released!
WSO2 App Cloud 3.0.0-Alpha Release WSO2 App Cloud team is pleased to announce the release of version 3.0.0-Alpha of the WSO2 App Cloud. WSO2 App Cloud is a multi-tenant, elastic and self-service enterprise platform that enables hosting applications written in multiple languages on multiple runtimes. Currently supported runtimes are wso2as, msf4j and php. The main goal of this release is to finetune the existing features and make app cloud more stable. Resolved Issues: - WSO2 App Cloud resolved issues <https://wso2.org/jira/browse/APPCLOUD-95?jql=project %3D APPCLOUD AND fixVersion %3D "3.0.0-Alpha"> - Source repository can be found in [1] -This release of App Cloud is available in [2] -Documentation can be found in [3] We encourage you to report issues, documentation faults and feature requests regarding WSO2 App Cloud through the public WSO2 App Cloud JIRA <https://wso2.org/jira/browse/APPCLOUD>. [1] https://github.com/wso2/app-cloud/tree/v3.0.0-alpha [2] https://newapps.cloud.wso2.com/appmgt/site/pages/index.jag [3]https://docs.wso2.com/display/AppCloud/About+WSO2+App+Cloud -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com <http://wso2> Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 <http://lalajisureshika.blogspot.com/> ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [App Cloud] App Cloud 3.0.0-alpha release code freeze
Hi All, We are going to freeze the master branch eod today for the upcoming release. Please complete all the work in progress by eod and commit the changes. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com <http://wso2> Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 <http://lalajisureshika.blogspot.com/> ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [AppFactory] How to maintain Docker images used in App Factory
Hi All, Shall we have our own space for AppFactory in DockerHub and upload the WSO2AS image and the other images we have created so far with custom changes? I think we will can use the existing Dockerfile [1] in WSO2AS (and for other image types also) and we just have to change the values passed to the below command in build.sh to differentiate it as a WSO2AS image with custom changes made for App Factory deployment. docker build -t wso2/${wso2_product_type}:${wso2_product_version} This way we can release the images in parallel with the product releases as well.WDYT? [1] https://github.com/punnadih/product-private-paas/blob/master/cartridges/docker/wso2as-5.2.1/Dockerfile -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com <http://wso2> Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 <http://lalajisureshika.blogspot.com/> ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] dockersupport-1.1 branch building issue with workflow extensions changes
Hi, I think since we are going to introduce 3 GReg servers for each stage, we will have to have 3 topics in MB and subscribe to relevant one based on the stage as it was done before. On Tue, Oct 6, 2015 at 9:07 AM, Amalka Subasinghe <ama...@wso2.com> wrote: > As I know what you are doing is, implementing a extension class to invoke > the methods defined in AppFactoryTenantInfraStructureInitializerService > class. Now with the new implementation we have removed calling > initializeCloudManager method 3 times for 3 stages. Instead of that we call > initializeCloudManager methods only once and within that method we create > tenant in all stages. > > So you need to update your extension class to invoke > initializeCloudManager method once. No need to revert the changes done by > Punnadi. > > On Tue, Oct 6, 2015 at 5:43 PM, Punnadi Gunarathna <punn...@wso2.com> > wrote: > >> Hi Lahiru, >> >> >> Please find the changes made by me in [1]. I think you will have to >> revert it back to it's initial state. >> >> [1] >> https://github.com/punnadih/product-af/commit/c58f448a61f42d1ba8f6e5206e437076926267f8 >> >> On Tue, Oct 6, 2015 at 6:49 AM, Lahiru Manohara <lahir...@wso2.com> >> wrote: >> >>> Now cloud manager initialization is happening inside the >>> initializeCloudManager >>> method and also initializeCloudManager method calls for three stages are >>> removed from the BPEL as well. >>> >>> On Tue, Oct 6, 2015 at 4:25 PM, Anuruddha Premalal <anurud...@wso2.com> >>> wrote: >>> >>>> Hi Lahiru, >>>> >>>> Tenant creation was done by (+ punnadi). Since we had a single stratos, >>>> didn't want stage parameter to create tenant in separate registries, >>>> however once we move tenant creation to greg's you might have to bring the >>>> stage parameter back or you could use multiple subscriber on the tenant >>>> creation message. >>>> >>>> Regards, >>>> Anuruddha. >>>> >>>> On Tue, Oct 6, 2015 at 2:49 PM, Lahiru Manohara <lahir...@wso2.com> >>>> wrote: >>>> >>>>> Hi Anuruddha, >>>>> >>>>> According to this full request[1]. The stage parameter was removed >>>>> from the initializeCloudManager method in >>>>> the AppFactoryTenantInfraStructureInitializerService class. In >>>>> Tenantcreation BPEL and default workflow is calling initializeCloudManager >>>>> for three stages (development, testing and production). But how could i do >>>>> this from updated code? >>>>> >>>>> [1]. https://github.com/wso2/product-af/pull/526/files >>>>> >>>>> Thanks. >>>>> -- >>>>> Best regards, >>>>> >>>>> *Lahiru Manohara* >>>>> *Software Engineer* >>>>> Mobile: +94716561576 >>>>> WSO2 Inc. | http://wso2.com >>>>> lean.enterprise.middleware >>>>> >>>> >>>> >>>> >>>> -- >>>> *Anuruddha Premalal* >>>> Software Eng. | WSO2 Inc. >>>> Mobile : +94717213122 >>>> Web site : www.anuruddha.org >>>> >>>> >>> >>> >>> -- >>> Best regards, >>> >>> *Lahiru Manohara* >>> *Software Engineer* >>> Mobile: +94716561576 >>> WSO2 Inc. | http://wso2.com >>> lean.enterprise.middleware >>> >> >> >> >> -- >> >> Thanks and Regards, >> >> Punnadi Gunarathna >> Senior Software Engineer, >> WSO2, Inc.; http://wso2.com <http://wso2> >> Blog: http://hi-my-world.blogspot.com/ >> Tel : 94 11 214 5345 >> Fax :94 11 2145300 >> >> <http://lalajisureshika.blogspot.com/> >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Amalka Subasinghe > Senior Software Engineer > WSO2 Inc. > Mobile: +94 77 9401267 > -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com <http://wso2> Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 <http://lalajisureshika.blogspot.com/> ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] dockersupport-1.1 branch building issue with workflow extensions changes
Hi Lahiru, Please find the changes made by me in [1]. I think you will have to revert it back to it's initial state. [1] https://github.com/punnadih/product-af/commit/c58f448a61f42d1ba8f6e5206e437076926267f8 On Tue, Oct 6, 2015 at 6:49 AM, Lahiru Manohara <lahir...@wso2.com> wrote: > Now cloud manager initialization is happening inside the > initializeCloudManager > method and also initializeCloudManager method calls for three stages are > removed from the BPEL as well. > > On Tue, Oct 6, 2015 at 4:25 PM, Anuruddha Premalal <anurud...@wso2.com> > wrote: > >> Hi Lahiru, >> >> Tenant creation was done by (+ punnadi). Since we had a single stratos, >> didn't want stage parameter to create tenant in separate registries, >> however once we move tenant creation to greg's you might have to bring the >> stage parameter back or you could use multiple subscriber on the tenant >> creation message. >> >> Regards, >> Anuruddha. >> >> On Tue, Oct 6, 2015 at 2:49 PM, Lahiru Manohara <lahir...@wso2.com> >> wrote: >> >>> Hi Anuruddha, >>> >>> According to this full request[1]. The stage parameter was removed from >>> the initializeCloudManager method in >>> the AppFactoryTenantInfraStructureInitializerService class. In >>> Tenantcreation BPEL and default workflow is calling initializeCloudManager >>> for three stages (development, testing and production). But how could i do >>> this from updated code? >>> >>> [1]. https://github.com/wso2/product-af/pull/526/files >>> >>> Thanks. >>> -- >>> Best regards, >>> >>> *Lahiru Manohara* >>> *Software Engineer* >>> Mobile: +94716561576 >>> WSO2 Inc. | http://wso2.com >>> lean.enterprise.middleware >>> >> >> >> >> -- >> *Anuruddha Premalal* >> Software Eng. | WSO2 Inc. >> Mobile : +94717213122 >> Web site : www.anuruddha.org >> >> > > > -- > Best regards, > > *Lahiru Manohara* > *Software Engineer* > Mobile: +94716561576 > WSO2 Inc. | http://wso2.com > lean.enterprise.middleware > -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com <http://wso2> Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 <http://lalajisureshika.blogspot.com/> ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Status update] Adding single tenant cartridge support to appfactory
. If you could attach the complete log, we will be able to point out the issue. Thanks, Raj. On Mon, Aug 3, 2015 at 11:32 AM, Anuruddha Premalal anurud...@wso2.com wrote: Also this setup use kubernetes as the IaaS On Mon, Aug 3, 2015 at 11:31 AM, Anuruddha Premalal anurud...@wso2.com wrote: Hi, I am working on $subject. In the current appfactory setup we have a single JVM Stratos 4.1.0 deployment. I am trying to get the autoscaling working since resetting the SM node each time of failure consumes time. Once a member fault event received to AS receives it but unable to continue with the following log. When will the cluster monitor get initiated? What would are the possibilities for failing the initialization of the cluster monitor? *INFO {org.apache.stratos.cep.extension.FaultHandlingWindowProcessor} - Faulty member detected [member-id] asdevelopment.anuasdevelopment.anuasdevelopment.domain38d5a847-d16a-4891-bbc0-6582cd9b9988 with [last time-stamp] 1438580270973 [time-out] 6 milliseconds* *TID: [0] [SCC] [2015-08-03 11:26:38,956] INFO {org.apache.stratos.cep.extension.FaultHandlingWindowProcessor} - Publishing member fault event for [member-id] asdevelopment.anuasdevelopment.anuasdevelopment.domain38d5a847-d16a-4891-bbc0-6582cd9b9988* *TID: [0] [SCC] [2015-08-03 11:26:38,969] DEBUG {org.apache.stratos.autoscaler.event.receiver.health.AutoscalerHealthStatEventReceiver} - Member fault event received: [member] asdevelopment.anuasdevelopment.anuasdevelopment.domain38d5a847-d16a-4891-bbc0-6582cd9b9988 * *TID: [0] [SCC] [2015-08-03 11:26:38,969] DEBUG {org.apache.stratos.autoscaler.event.receiver.health.AutoscalerHealthStatEventReceiver} - A cluster monitor is not found in autoscaler context [cluster] asdevelopment.anuasdevelopment.anuasdevelopment.domain* Thanks Regards, -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- Rajkumar Rajaratnam Committer PMC Member, Apache Stratos Software Engineer, WSO2 Mobile : +94777568639 Blog : rajkumarr.com -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- Rajkumar Rajaratnam Committer PMC Member, Apache Stratos Software Engineer, WSO2 Mobile : +94777568639 Blog : rajkumarr.com -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- Rajkumar Rajaratnam Committer PMC Member, Apache Stratos Software Engineer, WSO2 Mobile : +94777568639 Blog : rajkumarr.com -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- Dimuthu Leelarathne Director Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Exception in cartridge agent : ValueError: invalid literal for int() with base 10: '9763
Hi, I get below exception in CA log. I have noticed that this has been fixed in Stratos 4.1.0 RC2 [1]. In latest codebase [2] I can see the fix is not available (Check line no 267). Exception in thread Thread-1: Traceback (most recent call last): File /usr/lib/python2.7/threading.py, line 552, in __bootstrap_inner self.run() File agent.py, line 100, in run publisher.publish_instance_activated_event(Config.health_stat_plugin) File /opt/apache-stratos-python-cartridge-agent-4.1.1/publisher.py, line 80, in publish_instance_activated_event int(Config.read_property(port.check.timeout, critical=False))) File /opt/apache-stratos-python-cartridge-agent-4.1.1/modules/util/cartridgeagentutils.py, line 80, in wait_until_ports_active active = check_ports_active(ip_address, ports) File /opt/apache-stratos-python-cartridge-agent-4.1.1/modules/util/cartridgeagentutils.py, line 109, in check_ports_active s.connect((ip_address, int(port))) ValueError: invalid literal for int() with base 10: '9763 [1] https://github.com/apache/stratos/commit/819f96e57c998841a9a687c3c728d145e9f9e6ee [2] https://github.com/apache/stratos/blame/master/components/org.apache.stratos.python.cartridge.agent/src/main/python/cartridge.agent/cartridge.agent/config.py Please advice. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] How to avoid addTenant from changing already existing password in LDAP
hi All, In AF latest deployment, AF has a separate UM and Registry database where as Straos side has a separate UM and registry database. All are pointing to same LDAP. Once the tenant get registered, login to AF side and click on app cloud, a listener will be invoked in Stratos side which does addTenant process. Since the user is logged in, the tenant password is set to a garbage value and it will be sent to Stratos side. This will update the tenant admin password to a garbage value with persistTenant method in TenantPesistor [1] (Line no 204). We thought of writing a custom userstore and override updateCredentialByAdmin as follows: Send either an empty password or a constant from AF side and password update will not happen in override method by checking that condition. Please share your thoughts. [1] https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/stratos/tenant-mgt/org.wso2.carbon.tenant.mgt.core/2.2.0/src/main/java/org/wso2/carbon/tenant/mgt/core/ -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Stratos] java.io.IOException: No space left on device in Docker containers
Hi Imesh, I had a chat with Reka and found out due to high loadAverage, more containers are spawned by AS. This causes the No space left on device. Since I am working with 1 minion, at first there is 3 applications for dev,test and prod and when they started to scale the VM left with no space. On Wed, Jul 15, 2015 at 6:33 AM, Imesh Gunaratne im...@wso2.com wrote: May be you need more disk space on each minion host. On Tue, Jul 14, 2015 at 12:00 PM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Manisha, No it can't be done with puppet scripts at the moment. I was referring to kubernets minion which had space issue. But sure I will have to figure out a way to solve this. On Tue, Jul 14, 2015 at 7:26 AM, Manisha Gayathri mani...@wso2.com wrote: If we are doing a new setup, we need to clean the old existing instances, don't we? Hope we can automate this step via puppet scripts. Thanks Manisha On Mon, Jul 13, 2015 at 7:22 PM, Punnadi Gunarathna punn...@wso2.com wrote: Hi All, Despite cleaning pods via kubernetes client, I noticed there are number of old docker containers running on node-01 with below command: docker ps -a So I deleted them with below command: docker ps -a | grep 'CREATED' | awk '{print $1}' | xargs --no-run-if-empty docker rm -f e.g: docker ps -a | grep '3 hours ago' | awk '{print $1}' | xargs --no-run-if-empty docker rm -f Hope this will solve the problem. On Mon, Jul 13, 2015 at 6:59 PM, Punnadi Gunarathna punn...@wso2.com wrote: hi All, I got below error in all the docker containers for the setup i just did and haven't seen it before. In WSO2AS: TID: [2015-07-13 13:09:38,746] INFO {org.wso2.carbon.server.extensions.PatchInstaller} - Patch changes detected {org.wso2.carbon.server.extensions.PatchInstaller} TID: [2015-07-13 13:09:57,267] INFO {org.wso2.carbon.server.util.PatchUtils.console} - Backed up plugins to patch {org.wso2.carbon.server.util.PatchUtils.console} TID: [2015-07-13 13:10:05,378] ERROR {org.wso2.carbon.server.extensions.PatchInstaller} - Error occurred while applying patches {org.wso2.carbon.server.extensions.PatchInstaller} java.io.IOException: No space left on device at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:345) at org.wso2.carbon.server.util.FileUtils.copy(FileUtils.java:230) at org.wso2.carbon.server.util.FileUtils.copyFile(FileUtils.java:152) at org.wso2.carbon.server.util.PatchUtils.copyServicepacksAndPatches(PatchUtils.java:90) at org.wso2.carbon.server.util.PatchUtils.applyServicepacksAndPatches(PatchUtils.java:45) at org.wso2.carbon.server.extensions.PatchInstaller.perform(PatchInstaller.java:58) at org.wso2.carbon.server.Main.invokeExtensions(Main.java:152) at org.wso2.carbon.server.Main.main(Main.java:94) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63) at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45) CA: [2015-07-13 13:10:29,565] DEBUG {eventhandler.py:on_complete_tenant_event} - Processing Complete tenant event... Traceback (most recent call last): File /usr/lib/python2.7/logging/__init__.py, line 874, in emit self.flush() File /usr/lib/python2.7/logging/__init__.py, line 834, in flush self.stream.flush() IOError: [Errno 28] No space left on device Logged from file eventhandler.py, line 221 [2015-07-13 13:10:29,565] DEBUG {eventhandler.py:on_complete_tenant_event} - Complete tenants:[] Traceback (most recent call last): File /usr/lib/python2.7/logging/__init__.py, line 874, in emit self.flush() File /usr/lib/python2.7/logging/__init__.py, line 834, in flush self.stream.flush() IOError: [Errno 28] No space left on device Whenever I do a new setup, I always clean all the pods with kubernetes client. Any thoughts on this? -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- ~Regards *Manisha Eleperuma* Senior Software Engineer WSO2, Inc.: http://wso2.com lean.enterprise.middleware *blog: http://manisha
[Dev] [Stratos] java.io.IOException: No space left on device in Docker containers
hi All, I got below error in all the docker containers for the setup i just did and haven't seen it before. In WSO2AS: TID: [2015-07-13 13:09:38,746] INFO {org.wso2.carbon.server.extensions.PatchInstaller} - Patch changes detected {org.wso2.carbon.server.extensions.PatchInstaller} TID: [2015-07-13 13:09:57,267] INFO {org.wso2.carbon.server.util.PatchUtils.console} - Backed up plugins to patch {org.wso2.carbon.server.util.PatchUtils.console} TID: [2015-07-13 13:10:05,378] ERROR {org.wso2.carbon.server.extensions.PatchInstaller} - Error occurred while applying patches {org.wso2.carbon.server.extensions.PatchInstaller} java.io.IOException: No space left on device at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:345) at org.wso2.carbon.server.util.FileUtils.copy(FileUtils.java:230) at org.wso2.carbon.server.util.FileUtils.copyFile(FileUtils.java:152) at org.wso2.carbon.server.util.PatchUtils.copyServicepacksAndPatches(PatchUtils.java:90) at org.wso2.carbon.server.util.PatchUtils.applyServicepacksAndPatches(PatchUtils.java:45) at org.wso2.carbon.server.extensions.PatchInstaller.perform(PatchInstaller.java:58) at org.wso2.carbon.server.Main.invokeExtensions(Main.java:152) at org.wso2.carbon.server.Main.main(Main.java:94) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63) at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45) CA: [2015-07-13 13:10:29,565] DEBUG {eventhandler.py:on_complete_tenant_event} - Processing Complete tenant event... Traceback (most recent call last): File /usr/lib/python2.7/logging/__init__.py, line 874, in emit self.flush() File /usr/lib/python2.7/logging/__init__.py, line 834, in flush self.stream.flush() IOError: [Errno 28] No space left on device Logged from file eventhandler.py, line 221 [2015-07-13 13:10:29,565] DEBUG {eventhandler.py:on_complete_tenant_event} - Complete tenants:[] Traceback (most recent call last): File /usr/lib/python2.7/logging/__init__.py, line 874, in emit self.flush() File /usr/lib/python2.7/logging/__init__.py, line 834, in flush self.stream.flush() IOError: [Errno 28] No space left on device Whenever I do a new setup, I always clean all the pods with kubernetes client. Any thoughts on this? -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Stratos] java.io.IOException: No space left on device in Docker containers
Hi All, Despite cleaning pods via kubernetes client, I noticed there are number of old docker containers running on node-01 with below command: docker ps -a So I deleted them with below command: docker ps -a | grep 'CREATED' | awk '{print $1}' | xargs --no-run-if-empty docker rm -f e.g: docker ps -a | grep '3 hours ago' | awk '{print $1}' | xargs --no-run-if-empty docker rm -f Hope this will solve the problem. On Mon, Jul 13, 2015 at 6:59 PM, Punnadi Gunarathna punn...@wso2.com wrote: hi All, I got below error in all the docker containers for the setup i just did and haven't seen it before. In WSO2AS: TID: [2015-07-13 13:09:38,746] INFO {org.wso2.carbon.server.extensions.PatchInstaller} - Patch changes detected {org.wso2.carbon.server.extensions.PatchInstaller} TID: [2015-07-13 13:09:57,267] INFO {org.wso2.carbon.server.util.PatchUtils.console} - Backed up plugins to patch {org.wso2.carbon.server.util.PatchUtils.console} TID: [2015-07-13 13:10:05,378] ERROR {org.wso2.carbon.server.extensions.PatchInstaller} - Error occurred while applying patches {org.wso2.carbon.server.extensions.PatchInstaller} java.io.IOException: No space left on device at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:345) at org.wso2.carbon.server.util.FileUtils.copy(FileUtils.java:230) at org.wso2.carbon.server.util.FileUtils.copyFile(FileUtils.java:152) at org.wso2.carbon.server.util.PatchUtils.copyServicepacksAndPatches(PatchUtils.java:90) at org.wso2.carbon.server.util.PatchUtils.applyServicepacksAndPatches(PatchUtils.java:45) at org.wso2.carbon.server.extensions.PatchInstaller.perform(PatchInstaller.java:58) at org.wso2.carbon.server.Main.invokeExtensions(Main.java:152) at org.wso2.carbon.server.Main.main(Main.java:94) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63) at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45) CA: [2015-07-13 13:10:29,565] DEBUG {eventhandler.py:on_complete_tenant_event} - Processing Complete tenant event... Traceback (most recent call last): File /usr/lib/python2.7/logging/__init__.py, line 874, in emit self.flush() File /usr/lib/python2.7/logging/__init__.py, line 834, in flush self.stream.flush() IOError: [Errno 28] No space left on device Logged from file eventhandler.py, line 221 [2015-07-13 13:10:29,565] DEBUG {eventhandler.py:on_complete_tenant_event} - Complete tenants:[] Traceback (most recent call last): File /usr/lib/python2.7/logging/__init__.py, line 874, in emit self.flush() File /usr/lib/python2.7/logging/__init__.py, line 834, in flush self.stream.flush() IOError: [Errno 28] No space left on device Whenever I do a new setup, I always clean all the pods with kubernetes client. Any thoughts on this? -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Stratos] java.io.IOException: No space left on device in Docker containers
Hi Manisha, No it can't be done with puppet scripts at the moment. I was referring to kubernets minion which had space issue. But sure I will have to figure out a way to solve this. On Tue, Jul 14, 2015 at 7:26 AM, Manisha Gayathri mani...@wso2.com wrote: If we are doing a new setup, we need to clean the old existing instances, don't we? Hope we can automate this step via puppet scripts. Thanks Manisha On Mon, Jul 13, 2015 at 7:22 PM, Punnadi Gunarathna punn...@wso2.com wrote: Hi All, Despite cleaning pods via kubernetes client, I noticed there are number of old docker containers running on node-01 with below command: docker ps -a So I deleted them with below command: docker ps -a | grep 'CREATED' | awk '{print $1}' | xargs --no-run-if-empty docker rm -f e.g: docker ps -a | grep '3 hours ago' | awk '{print $1}' | xargs --no-run-if-empty docker rm -f Hope this will solve the problem. On Mon, Jul 13, 2015 at 6:59 PM, Punnadi Gunarathna punn...@wso2.com wrote: hi All, I got below error in all the docker containers for the setup i just did and haven't seen it before. In WSO2AS: TID: [2015-07-13 13:09:38,746] INFO {org.wso2.carbon.server.extensions.PatchInstaller} - Patch changes detected {org.wso2.carbon.server.extensions.PatchInstaller} TID: [2015-07-13 13:09:57,267] INFO {org.wso2.carbon.server.util.PatchUtils.console} - Backed up plugins to patch {org.wso2.carbon.server.util.PatchUtils.console} TID: [2015-07-13 13:10:05,378] ERROR {org.wso2.carbon.server.extensions.PatchInstaller} - Error occurred while applying patches {org.wso2.carbon.server.extensions.PatchInstaller} java.io.IOException: No space left on device at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:345) at org.wso2.carbon.server.util.FileUtils.copy(FileUtils.java:230) at org.wso2.carbon.server.util.FileUtils.copyFile(FileUtils.java:152) at org.wso2.carbon.server.util.PatchUtils.copyServicepacksAndPatches(PatchUtils.java:90) at org.wso2.carbon.server.util.PatchUtils.applyServicepacksAndPatches(PatchUtils.java:45) at org.wso2.carbon.server.extensions.PatchInstaller.perform(PatchInstaller.java:58) at org.wso2.carbon.server.Main.invokeExtensions(Main.java:152) at org.wso2.carbon.server.Main.main(Main.java:94) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63) at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45) CA: [2015-07-13 13:10:29,565] DEBUG {eventhandler.py:on_complete_tenant_event} - Processing Complete tenant event... Traceback (most recent call last): File /usr/lib/python2.7/logging/__init__.py, line 874, in emit self.flush() File /usr/lib/python2.7/logging/__init__.py, line 834, in flush self.stream.flush() IOError: [Errno 28] No space left on device Logged from file eventhandler.py, line 221 [2015-07-13 13:10:29,565] DEBUG {eventhandler.py:on_complete_tenant_event} - Complete tenants:[] Traceback (most recent call last): File /usr/lib/python2.7/logging/__init__.py, line 874, in emit self.flush() File /usr/lib/python2.7/logging/__init__.py, line 834, in flush self.stream.flush() IOError: [Errno 28] No space left on device Whenever I do a new setup, I always clean all the pods with kubernetes client. Any thoughts on this? -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- ~Regards *Manisha Eleperuma* Senior Software Engineer WSO2, Inc.: http://wso2.com lean.enterprise.middleware *blog: http://manisha-eleperuma.blogspot.com/ http://manisha-eleperuma.blogspot.com/* *mobile: +94 71 8279777 %2B94%2071%208279777* -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [Stratos] Auto-Scaling Policy doesn't get deployed
{org.apache.stratos.autoscaler.internal.AutoscalerServiceComponent} - Scheduling tasks to publish applications TID: [0] [SCC] [2015-07-09 12:11:35,283] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - Autoscaler activated TID: [0] [SCC] [2015-07-09 12:11:35,283] INFO {org.apache.stratos.autoscaler.internal.AutoscalerServiceComponent} - Autoscaler service component activated TID: [0] [SCC] [2015-07-09 12:11:44,911] ERROR {org.wso2.carbon.databridge.agent.thrift.lb.ReceiverGroup} - No receiver is reachable at reconnection, can't publish the events TID: [0] [SCC] [2015-07-09 12:11:44,914] ERROR {org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher} - Reconnection failed for for tcp://bam.appfactory.private.wso2.com:7614 TID: [0] [SCC] [2015-07-09 12:11:46,839] INFO {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl} - Adding kubernetes cluster: [kubernetes-cluster-id] kubernetes-cluster TID: [0] [SCC] [2015-07-09 12:11:46,984] INFO {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl} - Kubernetes cluster added successfully: [kubernetes-cluster-id] kubernetes-cluster TID: [0] [SCC] [2015-07-09 12:11:52,168] WARN {org.apache.cxf.jaxrs.provider.AbstractJAXBProvider} - *Message body is empty* TID: [0] [SCC] [2015-07-09 12:11:52,273] INFO {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl} - Adding network partition: [network-partition-id] network-partition TID: [0] [SCC] [2015-07-09 12:11:52,274] INFO {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl} - Validating partition: [network-partition-id] network-partition [partition-id] partition TID: [0] [SCC] [2015-07-09 12:11:52,279] INFO {org.apache.stratos.cloud.controller.iaases.kubernetes.KubernetesIaas} - Pod activation timeout was set: 6 TID: [0] [SCC] [2015-07-09 12:11:52,279] INFO {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl} - Partition validated successfully: [network-partition-id] network-partition [partition-id] partition TID: [0] [SCC] [2015-07-09 12:11:52,370] INFO {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl} - Network partition added successfully: [network-partition-id] network-partition TID: [0] [SCC] [2015-07-09 12:11:52,458] WARN {org.apache.cxf.jaxrs.provider.AbstractJAXBProvider} - Message body is empty TID: [0] [SCC] [2015-07-09 12:11:52,507] WARN {org.apache.cxf.jaxrs.provider.AbstractJAXBProvider} - Message body is empty Any thoughts? -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Stratos] Auto-Scaling Policy doesn't get deployed
Found the issue. On Thu, Jul 9, 2015 at 1:28 PM, Punnadi Gunarathna punn...@wso2.com wrote: hi All, I am currently working on upgrading Stratos in AF to version 4.1.0. I have modified puppet deployment by applying Stratso 4.1.0 changes. Now the deployment happens successfully. When the puppet tries to deploy multitenant application with WSO2AS cartridge, auot-scaling policy doesn't get deployed but kubernetes-cluster, network partition , deployment partition, cartridges and application policies get deployed successfully. Please note that by the time that the script (shown below) gets executed, Stratos is fully up and running with Autoscaler service component activated. sleep 10 echo Adding kubernetes cluster... curl -X POST -H Content-Type: application/json -d @kubernetes-cluster.json -k -u admin:password https://localhost:9463/api/kubernetesClusters sleep 5 echo Adding autoscale policy... curl -X POST -H Content-Type: application/json -d @autoscaling-policy.json -k -v -u admin:password https://localhost:9463/api/autoscalingPolicies echo Adding network partitions... curl -X POST -H Content-Type: application/json -d @network-partition.json -k -v -u admin:password https://localhost:9463/api/networkPartitions echo Adding deployment policy... curl -X POST -H Content-Type: application/json -d @deployment-policy.json -k -v -u admin:password https://localhost:9463/api/deploymentPolicies echo Adding wso2as cartridge... curl -X POST -H Content-Type: application/json -d @wso2as_dev.json -k -v -u admin:password https://localhost:9463/api/cartridges curl -X POST -H Content-Type: application/json -d @wso2as_test.json -k -v -u admin:password https://localhost:9463/api/cartridges curl -X POST -H Content-Type: application/json -d @wso2as_prod.json -k -v -u admin:password https://localhost:9463/api/cartridges sleep 1 echo Adding application policy... curl -X POST -H Content-Type: application/json -d @application-policy_dev.json -k -v -u admin:password https://localhost:9463/api/applicationPolicies curl -X POST -H Content-Type: application/json -d @application-policy_test.json -k -v -u admin:password https://localhost:9463/api/applicationPolicies curl -X POST -H Content-Type: application/json -d @application-policy_prod.json -k -v -u admin:password https://localhost:9463/api/applicationPolicies sleep 1 echo Adding application... curl -X POST -H Content-Type: application/json -d @application_dev.json -k -v -u admin:password https://localhost:9463/api/applications curl -X POST -H Content-Type: application/json -d @application_test.json -k -v -u admin:password https://localhost:9463/api/applications curl -X POST -H Content-Type: application/json -d @application_prod.json -k -v -u admin:password https://localhost:9463/api/applications sleep 1 echo Deploying application... curl -X POST -H Content-Type: application/json -k -v -u admin:password https://localhost:9463/api/applications/asdevelopment/deploy/application-policy_dev curl -X POST -H Content-Type: application/json -k -v -u admin:password https://localhost:9463/api/applications/astesting/deploy/application-policy_test curl -X POST -H Content-Type: application/json -k -v -u admin:password https://localhost:9463/api/applications/asproduction/deploy/application-policy_prod Is stratos log, I have noticed a WARN . TID: [0] [SCC] [2015-07-09 12:11:24,491] INFO {org.apache.stratos.manager.messaging.receiver.StratosManagerTopologyEventReceiver} - Stratos manager topology event receiver thread started TID: [0] [SCC] [2015-07-09 12:11:24,507] INFO {org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator} - Topology event message delegator started TID: [0] [SCC] [2015-07-09 12:11:24,559] INFO {org.apache.stratos.manager.messaging.receiver.StratosManagerApplicationEventReceiver} - Stratos manager application event receiver thread started TID: [0] [SCC] [2015-07-09 12:11:24,568] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - StratosManager activated TID: [0] [SCC] [2015-07-09 12:11:24,568] INFO {org.apache.stratos.manager.internal.StratosManagerServiceComponent} - Stratos manager component is activated TID: [0] [SCC] [2015-07-09 12:11:24,582] INFO {org.apache.stratos.messaging.message.receiver.application.ApplicationsEventMessageDelegator} - Application status event message delegator started TID: [0] [SCC] [2015-07-09 12:11:25,142] INFO {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} - Mgt Console URL : https://172.17.8.1:9463/carbon/ TID: [0] [SCC] [2015-07-09 12:11:35,245] INFO {org.apache.stratos.autoscaler.event.receiver.health.AutoscalerHealthStatEventReceiver} - Autoscaler health stat event receiver thread started TID: [0] [SCC] [2015-07-09 12:11:35,245] INFO
Re: [Dev] [AppFac] Error occurred while loading user application list
Hi Fathima, In that case we will have to dig down what the exact reason of causing this failure. When did you start getting this error? What was the last activity you did prior getting this behavior? We can ask someone from cloud team to check the AF logs. On Thu, Jul 2, 2015 at 5:16 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Dimuthu, It seems the problem is with that particular account. I created another account and it works well without any errors. Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Thu, Jul 2, 2015 at 5:10 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Dimuthu, No it is not. I'm still getting that error. Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Wed, Jul 1, 2015 at 10:46 PM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi Dilhasha, Is this a one time occurring or repeated? thanks, dimuthu On Wed, Jul 1, 2015 at 9:14 PM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi, I'm getting an error Error occurred while loading user application list in the Application Manager page of App cloud. I have attached a screen shot of the error I'm getting. Please let me know the reason for this and any way to correct it. Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka -- Dimuthu Leelarathne Director Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AppFac] curl commands for REST API access to WSO2 Appfactory
On Mon, Jun 29, 2015 at 7:39 PM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi, I have the following problems regarding REST API access. 1. Is buildNo equal to the tag number we give? Or is it a count of how many builds were triggered? *This is the latest build number such as 1,2 etc* 2. The BuildUrl I received from the curl command for getBuildLogsUrl is as follows. https://jenkins.cloud.wso2.com/t/dilhashan/webapps/jenkins/job/testjava-trunk-default/1/consoleText *This is correct * This prompts me for a username and a password. But I can't get the username password correct. I tried both dilhasha.wso2.com@dilhashan dilha...@wso2.com *AFAIK This is jenkins credentials, Samith will verify that.* 3. Does get Latest Build Success Info return only one latest successful build or will it return more than one? *Can you name the API method here?* Can someone help me figure these out? Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Wed, Jun 24, 2015 at 10:39 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Punnadi, Thank you. Will use that. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Wed, Jun 24, 2015 at 9:38 AM, Punnadi Gunarathna punn...@wso2.com wrote: So the new endpoint for 'deployArtifact' is https://apps.cloud.wso2.com/appmgt/site/blocks/build/add/ajax/add.jag Please find the curl command: curl -v -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/build/add/ajax/add.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=EFB464F63D6D3F49F9F6DD338E636304' -d 'on=deployArtifactapplicationKey=wowstage=Developmentversion=trunktagName=deployAction=deploy' On Wed, Jun 24, 2015 at 9:37 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Fathima, Extremely sorry for your trouble. Recently there was a code refactoring done on jaggery side. So the new endpoint for 'deployArtifact' On Wed, Jun 24, 2015 at 9:02 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Fathima, I will get back to you. On Wed, Jun 24, 2015 at 7:23 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Punnadi, Still gives the page not found error. May be that page is mapped to some other url. But I can't seem to find a mapping. Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Wed, Jun 24, 2015 at 6:51 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Fathima, The value of 'deployAction' is deploy. Please set it and give a try. On Wed, Jun 24, 2015 at 5:20 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi, I'm trying to trigger a build via REST API call. Following is the curl command I'm using, *curl -v -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/reposBuilds/add/ajax/add.jag https://apps.cloud.wso2.com/appmgt/site/blocks/reposBuilds/add/ajax/add.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=043032EE08D9FB074845FEF4313DD83D' -d 'action=deployArtifactapplicationKey=destage=Developmentversion=trunktagName=tag1deployAction=deployAction'* When I run this, I'm getting a *Page Not Found Error.* But this page exists in block layer. Also, I am not sure what is meant by deployAction and what can be the possible values for that. Can someone help me to correct this? Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Tue, Jun 23, 2015 at 10:08 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Punnadi, Thanks for pointing out the mistake. With the correct username (with dilhasha.wso2@dilhashan), getApplicationsOfUser works fine for me. I will check on the other commands as well. Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Tue, Jun 23, 2015 at 9:56 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Fathima, I tried the 'getApplicationsOfUser' and it works fine for me. curl -v -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/user/login/ajax/login.jag -d 'action=loginuserName=punnadi.wso2.com@puva6107 password=**' curl -v -X POST https://apps.cloud.wso2.com/appmgt/site/blocks/application/get/ajax/list.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=D084797351C4203D850C2D75CD65D4DD' -d 'action=getApplicationsOfUseruserName
Re: [Dev] [AppFac] curl commands for REST API access to WSO2 Appfactory
Hi Fathima, Jenkins credentials means Jenkins admin credentials. getBuildAndDeployStatusForVersion returns last build id, build status [successful/unsuccessful] last deployed build id. On Mon, Jun 29, 2015 at 10:13 PM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Punnadi, Thank you. Are jenkins credentials different from app cloud credentials? The API method for get Latest Build Success Info is getBuildAndDeployStatusForVersion Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Mon, Jun 29, 2015 at 8:53 PM, Punnadi Gunarathna punn...@wso2.com wrote: On Mon, Jun 29, 2015 at 7:39 PM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi, I have the following problems regarding REST API access. 1. Is buildNo equal to the tag number we give? Or is it a count of how many builds were triggered? *This is the latest build number such as 1,2 etc* 2. The BuildUrl I received from the curl command for getBuildLogsUrl is as follows. https://jenkins.cloud.wso2.com/t/dilhashan/webapps/jenkins/job/testjava-trunk-default/1/consoleText *This is correct * This prompts me for a username and a password. But I can't get the username password correct. I tried both dilhasha.wso2.com@dilhashan dilha...@wso2.com *AFAIK This is jenkins credentials, Samith will verify that.* 3. Does get Latest Build Success Info return only one latest successful build or will it return more than one? *Can you name the API method here?* Can someone help me figure these out? Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Wed, Jun 24, 2015 at 10:39 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Punnadi, Thank you. Will use that. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Wed, Jun 24, 2015 at 9:38 AM, Punnadi Gunarathna punn...@wso2.com wrote: So the new endpoint for 'deployArtifact' is https://apps.cloud.wso2.com/appmgt/site/blocks/build/add/ajax/add.jag Please find the curl command: curl -v -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/build/add/ajax/add.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=EFB464F63D6D3F49F9F6DD338E636304' -d 'on=deployArtifactapplicationKey=wowstage=Developmentversion=trunktagName=deployAction=deploy' On Wed, Jun 24, 2015 at 9:37 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Fathima, Extremely sorry for your trouble. Recently there was a code refactoring done on jaggery side. So the new endpoint for 'deployArtifact' On Wed, Jun 24, 2015 at 9:02 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Fathima, I will get back to you. On Wed, Jun 24, 2015 at 7:23 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Punnadi, Still gives the page not found error. May be that page is mapped to some other url. But I can't seem to find a mapping. Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Wed, Jun 24, 2015 at 6:51 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Fathima, The value of 'deployAction' is deploy. Please set it and give a try. On Wed, Jun 24, 2015 at 5:20 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi, I'm trying to trigger a build via REST API call. Following is the curl command I'm using, *curl -v -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/reposBuilds/add/ajax/add.jag https://apps.cloud.wso2.com/appmgt/site/blocks/reposBuilds/add/ajax/add.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=043032EE08D9FB074845FEF4313DD83D' -d 'action=deployArtifactapplicationKey=destage=Developmentversion=trunktagName=tag1deployAction=deployAction'* When I run this, I'm getting a *Page Not Found Error.* But this page exists in block layer. Also, I am not sure what is meant by deployAction and what can be the possible values for that. Can someone help me to correct this? Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Tue, Jun 23, 2015 at 10:08 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Punnadi, Thanks for pointing out the mistake. With the correct username (with dilhasha.wso2@dilhashan), getApplicationsOfUser works fine for me. I will check on the other commands as well. Thanks. Regards, Dilhasha
Re: [Dev] How to properly load locally built Docker Image to Kubernetes minion
Hi All, This worked after setting the tag name instead of image id while saving the docker image to tar.gz as follows: docker save -o x.tar.gz wso2/as Thanks Lakmal, Imesh Lahiru. On Thu, Jun 25, 2015 at 3:15 PM, Lakmal Warusawithana lak...@wso2.com wrote: Delete forcefully, otherwise it will retry to pull from docker hub On Thu, Jun 25, 2015 at 2:51 PM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Nirmal, I deleted and retried. Still the same result. REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE none none 5ed32fb55862 2 hours ago 1.23 GB stratos/php 4.1.0 297de547e1a6 4 weeks ago 414.8 MB gcr.io/google_containers/pause 0.8.0 2c40b0526b63 12 weeks ago241.7 kB fnichol/uhttpd latest f705d30ea473 12 months ago 4.866 MB On Thu, Jun 25, 2015 at 2:41 PM, Nirmal Fernando nir...@wso2.com wrote: On Thu, Jun 25, 2015 at 2:36 PM, Punnadi Gunarathna punn...@wso2.com wrote: Hi All, I have a vm which already contains a wso2/as 5.2.1 docker image pulled from Docker Hub. I wanted to locally build a docker image(wso2/as 5.2.1) and replace the existing one in that vm. Here are the steps I have followed: 1. First locally built the image REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE wso2/as 5.2.1 5ed32fb558622 hours ago 1.23 GB wso2/base-image 4.1.0 3195b060c9793 days ago 385.1 MB 2. Created a tar.gz as follows with a Docker Image Id: docker save -o x.tar.gz 5ed32fb55862 3. scp the file to VM. 4. Load the file in VM as follows: docker load -i x.tar.gz REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE none none 5ed32fb558622 hours ago 1.23 GB wso2/as 5.2.1 a5a5d78134a327 hours ago1.23 GB stratos/php 4.1.0 297de547e1a64 weeks ago 414.8 MB gcr.io/google_containers/pause 0.8.0 2c40b0526b6312 weeks ago241.7 kB fnichol/uhttpd latest f705d30ea47312 months ago 4.866 MB As depicted above, instead of replacing the wso2/as:5.2.1 entry, a new entry got added with none set to REPOSITORY TAG. What have I missed in the steps I followed. You could delete the existing image before loading :-) Please advice. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks regards, Nirmal Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Lakmal Warusawithana Vice President, Apache Stratos Director - Cloud Architecture; WSO2 Inc. Mobile : +94714289692 Blog : http://lakmalsview.blogspot.com/ -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] How to properly load locally built Docker Image to Kubernetes minion
Hi All, I have a vm which already contains a wso2/as 5.2.1 docker image pulled from Docker Hub. I wanted to locally build a docker image(wso2/as 5.2.1) and replace the existing one in that vm. Here are the steps I have followed: 1. First locally built the image REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE wso2/as 5.2.1 5ed32fb558622 hours ago 1.23 GB wso2/base-image 4.1.0 3195b060c9793 days ago 385.1 MB 2. Created a tar.gz as follows with a Docker Image Id: docker save -o x.tar.gz 5ed32fb55862 3. scp the file to VM. 4. Load the file in VM as follows: docker load -i x.tar.gz REPOSITORYTAG IMAGE ID CREATED VIRTUAL SIZE none none 5ed32fb558622 hours ago 1.23 GB wso2/as 5.2.1 a5a5d78134a327 hours ago1.23 GB stratos/php 4.1.0 297de547e1a64 weeks ago 414.8 MB gcr.io/google_containers/pause 0.8.0 2c40b0526b6312 weeks ago241.7 kB fnichol/uhttpd latest f705d30ea47312 months ago 4.866 MB As depicted above, instead of replacing the wso2/as:5.2.1 entry, a new entry got added with none set to REPOSITORY TAG. What have I missed in the steps I followed. Please advice. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How to properly load locally built Docker Image to Kubernetes minion
Hi Nirmal, I deleted and retried. Still the same result. REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE none none 5ed32fb558622 hours ago 1.23 GB stratos/php 4.1.0 297de547e1a64 weeks ago 414.8 MB gcr.io/google_containers/pause 0.8.0 2c40b0526b6312 weeks ago241.7 kB fnichol/uhttpd latest f705d30ea47312 months ago 4.866 MB On Thu, Jun 25, 2015 at 2:41 PM, Nirmal Fernando nir...@wso2.com wrote: On Thu, Jun 25, 2015 at 2:36 PM, Punnadi Gunarathna punn...@wso2.com wrote: Hi All, I have a vm which already contains a wso2/as 5.2.1 docker image pulled from Docker Hub. I wanted to locally build a docker image(wso2/as 5.2.1) and replace the existing one in that vm. Here are the steps I have followed: 1. First locally built the image REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE wso2/as 5.2.1 5ed32fb558622 hours ago 1.23 GB wso2/base-image 4.1.0 3195b060c9793 days ago 385.1 MB 2. Created a tar.gz as follows with a Docker Image Id: docker save -o x.tar.gz 5ed32fb55862 3. scp the file to VM. 4. Load the file in VM as follows: docker load -i x.tar.gz REPOSITORYTAG IMAGE ID CREATED VIRTUAL SIZE none none 5ed32fb558622 hours ago 1.23 GB wso2/as 5.2.1 a5a5d78134a327 hours ago1.23 GB stratos/php 4.1.0 297de547e1a64 weeks ago 414.8 MB gcr.io/google_containers/pause 0.8.0 2c40b0526b6312 weeks ago241.7 kB fnichol/uhttpd latest f705d30ea47312 months ago 4.866 MB As depicted above, instead of replacing the wso2/as:5.2.1 entry, a new entry got added with none set to REPOSITORY TAG. What have I missed in the steps I followed. You could delete the existing image before loading :-) Please advice. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks regards, Nirmal Associate Technical Lead - Data Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AppFac] curl commands for REST API access to WSO2 Appfactory
Hi Fathima, I will get back to you. On Wed, Jun 24, 2015 at 7:23 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Punnadi, Still gives the page not found error. May be that page is mapped to some other url. But I can't seem to find a mapping. Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Wed, Jun 24, 2015 at 6:51 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Fathima, The value of 'deployAction' is deploy. Please set it and give a try. On Wed, Jun 24, 2015 at 5:20 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi, I'm trying to trigger a build via REST API call. Following is the curl command I'm using, *curl -v -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/reposBuilds/add/ajax/add.jag https://apps.cloud.wso2.com/appmgt/site/blocks/reposBuilds/add/ajax/add.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=043032EE08D9FB074845FEF4313DD83D' -d 'action=deployArtifactapplicationKey=destage=Developmentversion=trunktagName=tag1deployAction=deployAction'* When I run this, I'm getting a *Page Not Found Error.* But this page exists in block layer. Also, I am not sure what is meant by deployAction and what can be the possible values for that. Can someone help me to correct this? Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Tue, Jun 23, 2015 at 10:08 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Punnadi, Thanks for pointing out the mistake. With the correct username (with dilhasha.wso2@dilhashan), getApplicationsOfUser works fine for me. I will check on the other commands as well. Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Tue, Jun 23, 2015 at 9:56 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Fathima, I tried the 'getApplicationsOfUser' and it works fine for me. curl -v -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/user/login/ajax/login.jag -d 'action=loginuserName=punnadi.wso2.com@puva6107password=**' curl -v -X POST https://apps.cloud.wso2.com/appmgt/site/blocks/application/get/ajax/list.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=D084797351C4203D850C2D75CD65D4DD' -d 'action=getApplicationsOfUseruserName=punnadi.wso2.com@puva6107' And the output is as follows: [{key : wow, owner : punnadi.wso2.com@puva6107, type : war, language : Java, mappedSubDomain : null, customUrl : null, customUrlVerificationCode : null, description : null, repositoryType : git, repositoryTypeDisplayName : Git, branchCount : 2, typeDisplayName : Java Web Application, isUploadable : false, name : wow, repoAccessability : perDevRepo, inProduction : false, applicationCreationStatus : COMPLETED, users : [{userName : punnadi.wso2.com, firstName : $1, lastName : $2, email : punn...@wso2.com, roles : [admin, qa, cxo, devops, appowner, subscriber, publisher, developer, default, globalAPIPublisher, everyone], displayName : punn...@wso2.com, displayRoles : [QA, CXO, DevOps, Application Owner, Subscriber, Publisher, Developer]}]}, {key : guy, owner : punnadi.wso2.com@puva6107, type : war, language : Java, mappedSubDomain : null, customUrl : null, customUrlVerificationCode : null, description : null, repositoryType : git, repositoryTypeDisplayName : Git, branchCount : 3, typeDisplayName : Java Web Application, isUploadable : false, name : guy, repoAccessability : perDevRepo, inProduction : false, applicationCreationStatus : COMPLETED, users : [{userName : punnadi.wso2.com, firstName : $1, lastName : $2, email : punn...@wso2.com, roles : [admin, qa, cxo, devops, appowner, subscriber, publisher, developer, default, globalAPIPublisher, everyone], displayName : punn...@wso2.com, displayRoles : [QA, CXO, DevOps, Application Owner, Subscriber, Publisher, Developer]}]}, {key : sun, owner : punnadi.wso2.com@puva6107, type : war, language : Java, mappedSubDomain : null, customUrl : null, customUrlVerificationCode : null, description : null, repositoryType : git, repositoryTypeDisplayName : Git, branchCount : 1, typeDisplayName : Java Web Application, isUploadable : false, name : sun, repoAccessability : perDevRepo, inProduction : false, applicationCreationStatus : COMPLETED, users : [{userName : punnadi.wso2.com, firstName : $1, lastName : $2, email : punn...@wso2.com, roles : [admin, qa, cxo, devops, appowner, subscriber, publisher, developer, default, globalAPIPublisher, everyone], displayName : punn...@wso2.com, displayRoles : [QA, CXO, DevOps, Application
Re: [Dev] [AppFac] curl commands for REST API access to WSO2 Appfactory
Hi Fathima, Extremely sorry for your trouble. Recently there was a code refactoring done on jaggery side. So the new endpoint for 'deployArtifact' On Wed, Jun 24, 2015 at 9:02 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Fathima, I will get back to you. On Wed, Jun 24, 2015 at 7:23 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Punnadi, Still gives the page not found error. May be that page is mapped to some other url. But I can't seem to find a mapping. Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Wed, Jun 24, 2015 at 6:51 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Fathima, The value of 'deployAction' is deploy. Please set it and give a try. On Wed, Jun 24, 2015 at 5:20 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi, I'm trying to trigger a build via REST API call. Following is the curl command I'm using, *curl -v -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/reposBuilds/add/ajax/add.jag https://apps.cloud.wso2.com/appmgt/site/blocks/reposBuilds/add/ajax/add.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=043032EE08D9FB074845FEF4313DD83D' -d 'action=deployArtifactapplicationKey=destage=Developmentversion=trunktagName=tag1deployAction=deployAction'* When I run this, I'm getting a *Page Not Found Error.* But this page exists in block layer. Also, I am not sure what is meant by deployAction and what can be the possible values for that. Can someone help me to correct this? Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Tue, Jun 23, 2015 at 10:08 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Punnadi, Thanks for pointing out the mistake. With the correct username (with dilhasha.wso2@dilhashan), getApplicationsOfUser works fine for me. I will check on the other commands as well. Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Tue, Jun 23, 2015 at 9:56 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Fathima, I tried the 'getApplicationsOfUser' and it works fine for me. curl -v -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/user/login/ajax/login.jag -d 'action=loginuserName=punnadi.wso2.com@puva6107password=**' curl -v -X POST https://apps.cloud.wso2.com/appmgt/site/blocks/application/get/ajax/list.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=D084797351C4203D850C2D75CD65D4DD' -d 'action=getApplicationsOfUseruserName=punnadi.wso2.com@puva6107' And the output is as follows: [{key : wow, owner : punnadi.wso2.com@puva6107, type : war, language : Java, mappedSubDomain : null, customUrl : null, customUrlVerificationCode : null, description : null, repositoryType : git, repositoryTypeDisplayName : Git, branchCount : 2, typeDisplayName : Java Web Application, isUploadable : false, name : wow, repoAccessability : perDevRepo, inProduction : false, applicationCreationStatus : COMPLETED, users : [{userName : punnadi.wso2.com, firstName : $1, lastName : $2, email : punn...@wso2.com, roles : [admin, qa, cxo, devops, appowner, subscriber, publisher, developer, default, globalAPIPublisher, everyone], displayName : punn...@wso2.com, displayRoles : [QA, CXO, DevOps, Application Owner, Subscriber, Publisher, Developer]}]}, {key : guy, owner : punnadi.wso2.com@puva6107, type : war, language : Java, mappedSubDomain : null, customUrl : null, customUrlVerificationCode : null, description : null, repositoryType : git, repositoryTypeDisplayName : Git, branchCount : 3, typeDisplayName : Java Web Application, isUploadable : false, name : guy, repoAccessability : perDevRepo, inProduction : false, applicationCreationStatus : COMPLETED, users : [{userName : punnadi.wso2.com, firstName : $1, lastName : $2, email : punn...@wso2.com, roles : [admin, qa, cxo, devops, appowner, subscriber, publisher, developer, default, globalAPIPublisher, everyone], displayName : punn...@wso2.com, displayRoles : [QA, CXO, DevOps, Application Owner, Subscriber, Publisher, Developer]}]}, {key : sun, owner : punnadi.wso2.com@puva6107, type : war, language : Java, mappedSubDomain : null, customUrl : null, customUrlVerificationCode : null, description : null, repositoryType : git, repositoryTypeDisplayName : Git, branchCount : 1, typeDisplayName : Java Web Application, isUploadable : false, name : sun, repoAccessability : perDevRepo, inProduction : false, applicationCreationStatus : COMPLETED, users : [{userName : punnadi.wso2.com, firstName : $1, lastName
Re: [Dev] [AppFac] curl commands for REST API access to WSO2 Appfactory
So the new endpoint for 'deployArtifact' is https://apps.cloud.wso2.com/appmgt/site/blocks/build/add/ajax/add.jag Please find the curl command: curl -v -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/build/add/ajax/add.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=EFB464F63D6D3F49F9F6DD338E636304' -d 'on=deployArtifactapplicationKey=wowstage=Developmentversion=trunktagName=deployAction=deploy' On Wed, Jun 24, 2015 at 9:37 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Fathima, Extremely sorry for your trouble. Recently there was a code refactoring done on jaggery side. So the new endpoint for 'deployArtifact' On Wed, Jun 24, 2015 at 9:02 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Fathima, I will get back to you. On Wed, Jun 24, 2015 at 7:23 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Punnadi, Still gives the page not found error. May be that page is mapped to some other url. But I can't seem to find a mapping. Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Wed, Jun 24, 2015 at 6:51 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Fathima, The value of 'deployAction' is deploy. Please set it and give a try. On Wed, Jun 24, 2015 at 5:20 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi, I'm trying to trigger a build via REST API call. Following is the curl command I'm using, *curl -v -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/reposBuilds/add/ajax/add.jag https://apps.cloud.wso2.com/appmgt/site/blocks/reposBuilds/add/ajax/add.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=043032EE08D9FB074845FEF4313DD83D' -d 'action=deployArtifactapplicationKey=destage=Developmentversion=trunktagName=tag1deployAction=deployAction'* When I run this, I'm getting a *Page Not Found Error.* But this page exists in block layer. Also, I am not sure what is meant by deployAction and what can be the possible values for that. Can someone help me to correct this? Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Tue, Jun 23, 2015 at 10:08 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Punnadi, Thanks for pointing out the mistake. With the correct username (with dilhasha.wso2@dilhashan), getApplicationsOfUser works fine for me. I will check on the other commands as well. Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Tue, Jun 23, 2015 at 9:56 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Fathima, I tried the 'getApplicationsOfUser' and it works fine for me. curl -v -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/user/login/ajax/login.jag -d 'action=loginuserName=punnadi.wso2.com@puva6107password=**' curl -v -X POST https://apps.cloud.wso2.com/appmgt/site/blocks/application/get/ajax/list.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=D084797351C4203D850C2D75CD65D4DD' -d 'action=getApplicationsOfUseruserName=punnadi.wso2.com@puva6107' And the output is as follows: [{key : wow, owner : punnadi.wso2.com@puva6107, type : war, language : Java, mappedSubDomain : null, customUrl : null, customUrlVerificationCode : null, description : null, repositoryType : git, repositoryTypeDisplayName : Git, branchCount : 2, typeDisplayName : Java Web Application, isUploadable : false, name : wow, repoAccessability : perDevRepo, inProduction : false, applicationCreationStatus : COMPLETED, users : [{userName : punnadi.wso2.com, firstName : $1, lastName : $2, email : punn...@wso2.com, roles : [admin, qa, cxo, devops, appowner, subscriber, publisher, developer, default, globalAPIPublisher, everyone], displayName : punn...@wso2.com, displayRoles : [QA, CXO, DevOps, Application Owner, Subscriber, Publisher, Developer]}]}, {key : guy, owner : punnadi.wso2.com@puva6107, type : war, language : Java, mappedSubDomain : null, customUrl : null, customUrlVerificationCode : null, description : null, repositoryType : git, repositoryTypeDisplayName : Git, branchCount : 3, typeDisplayName : Java Web Application, isUploadable : false, name : guy, repoAccessability : perDevRepo, inProduction : false, applicationCreationStatus : COMPLETED, users : [{userName : punnadi.wso2.com, firstName : $1, lastName : $2, email : punn...@wso2.com, roles : [admin, qa, cxo, devops, appowner, subscriber, publisher, developer, default, globalAPIPublisher, everyone], displayName : punn...@wso2.com, displayRoles : [QA, CXO, DevOps, Application Owner
Re: [Dev] [AppFac] curl commands for REST API access to WSO2 Appfactory
Hi Fathima, The value of 'deployAction' is deploy. Please set it and give a try. On Wed, Jun 24, 2015 at 5:20 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi, I'm trying to trigger a build via REST API call. Following is the curl command I'm using, *curl -v -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/reposBuilds/add/ajax/add.jag https://apps.cloud.wso2.com/appmgt/site/blocks/reposBuilds/add/ajax/add.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=043032EE08D9FB074845FEF4313DD83D' -d 'action=deployArtifactapplicationKey=destage=Developmentversion=trunktagName=tag1deployAction=deployAction'* When I run this, I'm getting a *Page Not Found Error.* But this page exists in block layer. Also, I am not sure what is meant by deployAction and what can be the possible values for that. Can someone help me to correct this? Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Tue, Jun 23, 2015 at 10:08 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Punnadi, Thanks for pointing out the mistake. With the correct username (with dilhasha.wso2@dilhashan), getApplicationsOfUser works fine for me. I will check on the other commands as well. Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Tue, Jun 23, 2015 at 9:56 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Fathima, I tried the 'getApplicationsOfUser' and it works fine for me. curl -v -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/user/login/ajax/login.jag -d 'action=loginuserName=punnadi.wso2.com@puva6107password=**' curl -v -X POST https://apps.cloud.wso2.com/appmgt/site/blocks/application/get/ajax/list.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=D084797351C4203D850C2D75CD65D4DD' -d 'action=getApplicationsOfUseruserName=punnadi.wso2.com@puva6107' And the output is as follows: [{key : wow, owner : punnadi.wso2.com@puva6107, type : war, language : Java, mappedSubDomain : null, customUrl : null, customUrlVerificationCode : null, description : null, repositoryType : git, repositoryTypeDisplayName : Git, branchCount : 2, typeDisplayName : Java Web Application, isUploadable : false, name : wow, repoAccessability : perDevRepo, inProduction : false, applicationCreationStatus : COMPLETED, users : [{userName : punnadi.wso2.com, firstName : $1, lastName : $2, email : punn...@wso2.com, roles : [admin, qa, cxo, devops, appowner, subscriber, publisher, developer, default, globalAPIPublisher, everyone], displayName : punn...@wso2.com, displayRoles : [QA, CXO, DevOps, Application Owner, Subscriber, Publisher, Developer]}]}, {key : guy, owner : punnadi.wso2.com@puva6107, type : war, language : Java, mappedSubDomain : null, customUrl : null, customUrlVerificationCode : null, description : null, repositoryType : git, repositoryTypeDisplayName : Git, branchCount : 3, typeDisplayName : Java Web Application, isUploadable : false, name : guy, repoAccessability : perDevRepo, inProduction : false, applicationCreationStatus : COMPLETED, users : [{userName : punnadi.wso2.com, firstName : $1, lastName : $2, email : punn...@wso2.com, roles : [admin, qa, cxo, devops, appowner, subscriber, publisher, developer, default, globalAPIPublisher, everyone], displayName : punn...@wso2.com, displayRoles : [QA, CXO, DevOps, Application Owner, Subscriber, Publisher, Developer]}]}, {key : sun, owner : punnadi.wso2.com@puva6107, type : war, language : Java, mappedSubDomain : null, customUrl : null, customUrlVerificationCode : null, description : null, repositoryType : git, repositoryTypeDisplayName : Git, branchCount : 1, typeDisplayName : Java Web Application, isUploadable : false, name : sun, repoAccessability : perDevRepo, inProduction : false, applicationCreationStatus : COMPLETED, users : [{userName : punnadi.wso2.com, firstName : $1, lastName : $2, email : punn...@wso2.com, roles : [admin, qa, cxo, devops, appowner, subscriber, publisher, developer, default, globalAPIPublisher, everyone], displayName : punn...@wso2.com, displayRoles : [QA, CXO, DevOps, Application Owner, Subscriber, Publisher, Developer]}]}, {key : newapp, owner : punnadi.wso2.com@puva6107, type : war, language : Java, mappedSubDomain : newapp.puva6107, customUrl : null, customUrlVerificationCode : null, description : null, repositoryType : git, repositoryTypeDisplayName : Git, branchCount : 3, typeDisplayName : Java Web Application, isUploadable : false, name : newapp, repoAccessability : perDevRepo, inProduction : false, applicationCreationStatus : COMPLETED, users : [{userName : punnadi.wso2.com, firstName
Re: [Dev] [AppFac] curl commands for REST API access to WSO2 Appfactory
Hi Fathima, I will get back to you on this. On Tue, Jun 23, 2015 at 6:07 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi, I'm facing some problems when accessing the REST API of App Factory via curl. I've listed the commands and errors below. getApplicationsOfUser *curl -v -X POST https://apps.cloud.wso2.com/appmgt/site/blocks/application/get/ajax/list.jag https://apps.cloud.wso2.com/appmgt/site/blocks/application/get/ajax/list.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:obtained_cookie' -d 'action=getApplicationsOfUseruserName=username'* This returns a blank set [ ] even though there are many apps. Same goes with *getAllAppVersionsInStages.* *Application key availability* *curl -X POST https://apps.cloud.wso2.com/appmgt/site/blocks/application/add/ajax/add.jag https://apps.cloud.wso2.com/appmgt/site/blocks/application/add/ajax/add.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=A1526A0AC5293FD9F46CD3C2C4628338' -d 'action=isApplicationKeyAvailableapplicationKey=appkey'* This returns a message saying ***You don't have permission to check the application key availability* And I cannot seem t make a call to *createNewApplication*. I cannot figure out the format of the parameters. Can someone share a curl command for this? I don't see an example in [1] https://docs.wso2.com/display/AF210/REST+APIs#RESTAPIs-getApplicationsOfUser updateDescription curl -v -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/application/update/ajax/update.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=8F3297501ACF67780C61E1BEE5422485' -d 'action=updateDescriptionapplicationKey=appKeynewDescription=descriptionc' above command gives an *Internal Server Error* getAppVersionsInStagesWithLifeCycleInfo *curl -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/lifecycle/add/ajax/add.jag https://apps.cloud.wso2.com/appmgt/site/blocks/lifecycle/add/ajax/add.jag -H 'Content-Type:applicion/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=8F3297501ACF67780C61E1BEE5422485' -d 'action=getAppVersionsInStagesWithLifeCycleInfoapplicationKey=appKey'* This returns a message saying You don't have permission to life cyclec info of application versions *deleteApplication* curl -X POST -application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=8F3297501ACF67780C61E1BEE5422485' -d 'applicationKey=appKeyuserName=username' This returns a message saying You don't have permission to delete application Can someone help me on resolving these issues with API access? [1] https://docs.wso2.com/display/AF210/REST+APIs#RESTAPIs-getApplicationsOfUser Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AppFac] curl commands for REST API access to WSO2 Appfactory
Hi Fathima, Which tenant domain you are using? On Tue, Jun 23, 2015 at 9:39 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Punnadi, Thank you. I checked on the jag files also. Seems like everything is fine. But commands like create,delete are relying on some permissions which are not given to me during the curl access. Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Tue, Jun 23, 2015 at 9:28 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Fathima, I will get back to you on this. On Tue, Jun 23, 2015 at 6:07 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi, I'm facing some problems when accessing the REST API of App Factory via curl. I've listed the commands and errors below. getApplicationsOfUser *curl -v -X POST https://apps.cloud.wso2.com/appmgt/site/blocks/application/get/ajax/list.jag https://apps.cloud.wso2.com/appmgt/site/blocks/application/get/ajax/list.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:obtained_cookie' -d 'action=getApplicationsOfUseruserName=username'* This returns a blank set [ ] even though there are many apps. Same goes with *getAllAppVersionsInStages.* *Application key availability* *curl -X POST https://apps.cloud.wso2.com/appmgt/site/blocks/application/add/ajax/add.jag https://apps.cloud.wso2.com/appmgt/site/blocks/application/add/ajax/add.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=A1526A0AC5293FD9F46CD3C2C4628338' -d 'action=isApplicationKeyAvailableapplicationKey=appkey'* This returns a message saying ***You don't have permission to check the application key availability* And I cannot seem t make a call to *createNewApplication*. I cannot figure out the format of the parameters. Can someone share a curl command for this? I don't see an example in [1] https://docs.wso2.com/display/AF210/REST+APIs#RESTAPIs-getApplicationsOfUser updateDescription curl -v -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/application/update/ajax/update.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=8F3297501ACF67780C61E1BEE5422485' -d 'action=updateDescriptionapplicationKey=appKeynewDescription=descriptionc' above command gives an *Internal Server Error* getAppVersionsInStagesWithLifeCycleInfo *curl -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/lifecycle/add/ajax/add.jag https://apps.cloud.wso2.com/appmgt/site/blocks/lifecycle/add/ajax/add.jag -H 'Content-Type:applicion/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=8F3297501ACF67780C61E1BEE5422485' -d 'action=getAppVersionsInStagesWithLifeCycleInfoapplicationKey=appKey'* This returns a message saying You don't have permission to life cyclec info of application versions *deleteApplication* curl -X POST -application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=8F3297501ACF67780C61E1BEE5422485' -d 'applicationKey=appKeyuserName=username' This returns a message saying You don't have permission to delete application Can someone help me on resolving these issues with API access? [1] https://docs.wso2.com/display/AF210/REST+APIs#RESTAPIs-getApplicationsOfUser Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AppFac] curl commands for REST API access to WSO2 Appfactory
: [QA, CXO, DevOps, Application Owner, Subscriber, Publisher, Developer]}]}, {key : two, owner : punnadi.wso2.com@puva6107, type : war, language : Java, mappedSubDomain : two.puva6107, customUrl : null, customUrlVerificationCode : null, description : null, repositoryType : git, repositoryTypeDisplayName : Git, branchCount : 1, typeDisplayName : Java Web Application, isUploadable : false, name : two, repoAccessability : perDevRepo, inProduction : false, applicationCreationStatus : COMPLETED, users : [{userName : punnadi.wso2.com, firstName : $1, lastName : $2, email : punn...@wso2.com, roles : [admin, qa, cxo, devops, appowner, subscriber, publisher, developer, default, globalAPIPublisher, everyone], displayName : punn...@wso2.com, displayRoles : [QA, CXO, DevOps, Application Owner, Subscriber, Publisher, Developer]}]}, {key : three, owner : punnadi.wso2* Connection #0 to host apps.cloud.wso2.com left intact .com@puva6107, type : war, language : Java, mappedSubDomain : three.puva6107, customUrl : null, customUrlVerificationCode : null, description : null, repositoryType : git, repositoryTypeDisplayName : Git, branchCount : 1, typeDisplayName : Java Web Application, isUploadable : false, name : three, repoAccessability : perDevRepo, inProduction : false, applicationCreationStatus : COMPLETED, users : [{userName : punnadi.wso2.com, firstName : $1, lastName : $2, email : punn...@wso2.com, roles : [admin, qa, cxo, devops, appowner, subscriber, publisher, developer, default, globalAPIPublisher, everyone], displayName : punn...@wso2.com, displayRoles : [QA, CXO, DevOps, Application Owner, Subscriber, Publisher, Developer]}]}] On Tue, Jun 23, 2015 at 9:53 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Punnadi, My tenant domain is 'dilhasha@wso2@dilhashan'. Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Tue, Jun 23, 2015 at 9:48 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Fathima, Which tenant domain you are using? On Tue, Jun 23, 2015 at 9:39 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Punnadi, Thank you. I checked on the jag files also. Seems like everything is fine. But commands like create,delete are relying on some permissions which are not given to me during the curl access. Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Tue, Jun 23, 2015 at 9:28 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Fathima, I will get back to you on this. On Tue, Jun 23, 2015 at 6:07 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi, I'm facing some problems when accessing the REST API of App Factory via curl. I've listed the commands and errors below. getApplicationsOfUser *curl -v -X POST https://apps.cloud.wso2.com/appmgt/site/blocks/application/get/ajax/list.jag https://apps.cloud.wso2.com/appmgt/site/blocks/application/get/ajax/list.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:obtained_cookie' -d 'action=getApplicationsOfUseruserName=username'* This returns a blank set [ ] even though there are many apps. Same goes with *getAllAppVersionsInStages.* *Application key availability* *curl -X POST https://apps.cloud.wso2.com/appmgt/site/blocks/application/add/ajax/add.jag https://apps.cloud.wso2.com/appmgt/site/blocks/application/add/ajax/add.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=A1526A0AC5293FD9F46CD3C2C4628338' -d 'action=isApplicationKeyAvailableapplicationKey=appkey'* This returns a message saying ***You don't have permission to check the application key availability* And I cannot seem t make a call to *createNewApplication*. I cannot figure out the format of the parameters. Can someone share a curl command for this? I don't see an example in [1] https://docs.wso2.com/display/AF210/REST+APIs#RESTAPIs-getApplicationsOfUser updateDescription curl -v -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/application/update/ajax/update.jag -H 'Content-Type:application/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=8F3297501ACF67780C61E1BEE5422485' -d 'action=updateDescriptionapplicationKey=appKeynewDescription=descriptionc' above command gives an *Internal Server Error* getAppVersionsInStagesWithLifeCycleInfo *curl -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/lifecycle/add/ajax/add.jag https://apps.cloud.wso2.com/appmgt/site/blocks/lifecycle/add/ajax/add.jag -H 'Content-Type:applicion/x-www-form-urlencoded' -H 'Cookie:JSESSIONID=8F3297501ACF67780C61E1BEE5422485' -d 'action=getAppVersionsInStagesWithLifeCycleInfoapplicationKey=appKey'* This returns a message saying You don't have permission to life cyclec info of application versions
Re: [Dev] REST API access using GO
Hi Fathima, Try this also. http://stackoverflow.com/questions/24455147/go-lang-how-send-json-string-in-post-request On Sun, Jun 21, 2015 at 2:19 PM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi, I'm trying to implement the following REST call (curl command given) to WSO2 Appfactory in 'GO' using net/http [1] http://golang.org/pkg/net/http/. *curl -v -c cookies1 -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/user/login/ajax/login.jag https://apps.cloud.wso2.com/appmgt/site/blocks/user/login/ajax/login.jag -d 'action=loginuserName=usernamepassword=password' * The result from this command is as follows. ** Hostname was NOT found in DNS cache* ** Trying 54.209.187.16...* ** Connected to apps.cloud.wso2.com http://apps.cloud.wso2.com (54.209.187.16) port 443 (#0)* ** successfully set certificate verify locations:* ** CAfile: none* * CApath: /etc/ssl/certs* ** SSLv3, TLS handshake, Client hello (1):* ** SSLv3, TLS handshake, Server hello (2):* ** SSLv3, TLS handshake, CERT (11):* ** SSLv3, TLS handshake, Server key exchange (12):* ** SSLv3, TLS handshake, Server finished (14):* ** SSLv3, TLS handshake, Client key exchange (16):* ** SSLv3, TLS change cipher, Client hello (1):* ** SSLv3, TLS handshake, Finished (20):* ** SSLv3, TLS change cipher, Client hello (1):* ** SSLv3, TLS handshake, Finished (20):* ** SSL connection using ECDHE-RSA-AES256-GCM-SHA384* ** Server certificate:* ** subject: C=US; ST=California; L=Palo Alto; O=WSO2, Inc.; CN=*.cloud.wso2.com http://cloud.wso2.com* ** start date: 2015-05-21 00:00:00 GMT* ** expire date: 2018-06-06 12:00:00 GMT* ** issuer: C=US; O=DigiCert Inc; OU=www.digicert.com http://www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA* ** SSL certificate verify ok.* * POST /appmgt/site/blocks/user/login/ajax/login.jag HTTP/1.1* * User-Agent: curl/7.35.0* * Host: apps.cloud.wso2.com http://apps.cloud.wso2.com* * Accept: */** * Content-Length: 75* * Content-Type: application/x-www-form-urlencoded* * * ** upload completely sent off: 75 out of 75 bytes* * HTTP/1.1 200 OK* ** Server nginx/1.4.6 (Ubuntu) is not blacklisted* * Server: nginx/1.4.6 (Ubuntu)* * Date: Sun, 21 Jun 2015 08:25:21 GMT* * Content-Type: text/html* * Content-Length: 5* * Connection: keep-alive* ** Added cookie JSESSIONID= for domain apps.cloud.wso2.com http://apps.cloud.wso2.com, path /appmgt/, expire 0* * Set-Cookie: JSESSIONID=; Path=/appmgt/; Secure; HttpOnly* * * *true* ** Connection #0 to host apps.cloud.wso2.com http://apps.cloud.wso2.com left intact* My code is as follows. package main import ( bytes fmt net/http ) func main() { client := http.Client{} var query = []byte(`action=loginuserName=usernamepassword=password`) r, _ := http.NewRequest(POST, https://apps.cloud.wso2.com/appmgt/site/blocks/user/login/ajax/login.jag;, bytes.NewBuffer(query)) resp, _ := client.Do(r) fmt.Println(resp) } The result from running the above code is as follows. *{200 OK 200 HTTP/1.1 1 1 map[Server:[nginx/1.4.6 (Ubuntu)] Date:[Sun, 21 Jun 2015 08:38:38 GMT] Content-Type:[text/html] Connection:[keep-alive] Set-Cookie:[JSESSIONID=5820BCE0F4338F90735C9AFE7ED53B95; Path=/appmgt/; Secure; HttpOnly]] 0xc208213480 -1 [chunked] false map[] 0xc208026dd0 0xc2081f6060}* The request fails. I can't seem to find another way to perform this REST API call. Does anyone know a better way of implementing this request? [1] http://golang.org/pkg/net/http/ Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [App Factory] UX/UI Incorporation
Hi Dakshika, When can we expect the next batch? On Fri, Jun 5, 2015 at 6:50 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi, Yes, we do have context based help on separate block. Also we are planning to use placeholder text and tooltips within the context. Regards, *Dakshika Jayathilaka* PMC Member Committer of Apache Stratos Senior Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Fri, Jun 5, 2015 at 6:38 PM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Dakshika, In current UI,we have context sensitive help tips. Is there a way to address them in new UIs? On Fri, Jun 5, 2015 at 10:54 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Manisha/Hasitha, Please clone [1] which contains the UX/UI changes done by UX team. I have incorporated UX/UI changes to User home, Application creation/update process and committed to GitHub. Please proceed with the rest of the pages once they are completed by UX team. [1]https://github.com/wso2-dev-ux/product-cloud -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [App Factory] How to handle generating Application Key in Application Creation page - UI/UX
On Wed, Jun 10, 2015 at 5:57 PM, Hasitha Weerasinghe hasit...@wso2.com wrote: Hi All, In the current UI when we are creating a new application , it will validate the application name and application key to be unique. In the new UI given by UX team, there is no application key input field. As they have suggested, application key can be generated with timestamps in any appropriate place but the application name should not be unique. Hence, 1) Is good to hide the application key from the UI. If so, In which place we should generate application key ? If we are going to hide the application key, then we have to make sure that the key is unique, or else it has to be validated for it's uniqueness underline. IMO we can generate the appkey just before submitting the application creation. 2) Do we need to validate the application name ? If we don't validate application name, same user can create multiple applications with simillar name (ideally we expect users won't do that), which will make it hard to differentiate the application from first sight in User Home. Thanks, HasithaT -- *Hasitha Weerasinghe* *Software Engineer Intern - WSO2 http://wso2.com/ * Mobile : +94 776 33 6626 Email : hasit...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [App Factory] UX/UI Incorporation
Hi Dakshika, In current UI,we have context sensitive help tips. Is there a way to address them in new UIs? On Fri, Jun 5, 2015 at 10:54 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Manisha/Hasitha, Please clone [1] which contains the UX/UI changes done by UX team. I have incorporated UX/UI changes to User home, Application creation/update process and committed to GitHub. Please proceed with the rest of the pages once they are completed by UX team. [1]https://github.com/wso2-dev-ux/product-cloud -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] App Factory UX/UI Incorporation
Hi Manisha/Hasitha, Please clone [1] which contains the UX/UI changes done by UX team. I have incorporated UX/UI changes to User home, Application creation/update process and committed to GitHub. Please proceed with the rest of the pages once they are completed by UX team. [1]https://github.com/wso2-dev-ux/product-cloud -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Getting SSLException when sending request using httpclient-4.1.1
Hi Pirin, This post [1] has a better explanation. I also encountered this problem once and tried both ways. When I created a cert with cn as domain by following [2], it solved the exception but got some other issues while creating applications in App Factory. Then I found a code snippet for second option [3] and we applied that solution in APIM related test cases in App Factory integration tests. But seems it is not a good solution. [1] http://stackoverflow.com/questions/19292473/sslhandshakeexception-hostname-in-certificate-didnt-match [2] http://udarakr.blogspot.com/2014/04/you-may-get-following-error-and-your.html?m=1 [3] https://github.com/wso2/product-af/commit/e7d542df748a91a042985768719578f83c54de99 On May 18, 2015 4:20 PM, Pirinthapan Mahendran pirintha...@wso2.com wrote: Hi all, I am working on upgrading commons-httpclient_3.1.0.wso2v2 to httpclient_4.1.1.wso2v1 in App Factory. When I send the request using httpclient_4.1.1.wso2v1 to the Jenkins server, which is deployed in WSO2AS-5.2.1, from AppFactory I am getting the following error. javax.net.ssl.SSLException: hostname in certificate didn't match: jenkins.appfactory.private.wso2.com != localhost Anyone encounter this issue before? Kindly appreciate your input on this issue. Thanks. Mahendran Pirinthapan Software Engineer | WSO2 Inc. Mobile +94772378732. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [App Factory] How to retrieve SAML Response (SAML_TOKEN) for Integration tests
Hi Danushka, I think the problem is occurred while executing the SAML protocol, not with SSL protocol. So the solution would be to create a new cert and key pairs with the custom domain and import them to keystore/trust store in both server side (AF setup) and client side (Integration tests). On Mon, May 4, 2015 at 3:14 PM, danush...@wso2.com wrote: For the ssl exception can’t you add system properties for truststore and truststore password in client side (automation test) ? Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 *From:* Punnadi Gunarathna punn...@wso2.com *Sent:* Monday, May 4, 2015 12:34 PM *To:* WSO2 Developers' List dev@wso2.org Hi All, In order to write integration tests related to API Manger calls, It requires to get the SAML_TOKEN as we have used SAML_TOKEN for login to API Manager in APIManagerIntegrationService. I had a offline chat with Dinusha and Lakmali and they provided me a code sample which does that with the code [1]. Simply what happens in the code is that: 1. First talk to sso app's login page and retrieve the sessionDataKey 2. Then do a call to commonauth endpoint with sessionDataKey, tenant username and password. This results the SAML Response. An easy way to try this scenario with App Factory from the browser is as follows: Prerequisites: Up and running App Factory setup with a working tenant (say ad...@abc.com/admin http://abc.com/admin) 1. Simply visit the AF login page and copy paste the full url to a notepad as follows: https://apps.appfactory.private.wso2.com:9443/carbon/appfactory/login_ajaxprocessor.jsp?SAMLRequest=PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHNhbWwycDpBdXRoblJlcXVlc3QgSUQ9ImNvbG5iYW9jbGxla21jbWJhYWNtZ2xkampjbWZubmRjY21jZ2RoamIiIElzc3VlSW5zdGFudD0iMjAxNS0wNS0wNFQwNjo1NDo1Ny42ODFaIiBWZXJzaW9uPSIyLjAiIHhtbG5zOnNhbWwycD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnByb3RvY29sIj48c2FtbDI6SXNzdWVyIHhtbG5zOnNhbWwyPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YXNzZXJ0aW9uIj5BUFBGQUNUT1JZPC9zYW1sMjpJc3N1ZXI+PHNhbWwycDpOYW1lSURQb2xpY3kgQWxsb3dDcmVhdGU9InRydWUiIEZvcm1hdD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOm5hbWVpZC1mb3JtYXQ6ZW50aXR5Ii8+PC9zYW1sMnA6QXV0aG5SZXF1ZXN0Pg==issuer=APPFACTORY; *sessionDataKey=2bf27df8-44c7-4bfd-984a-96b59ad4dad6* type=samlssocommonAuthCallerPath=..%2F..%2FsamlssoforceAuthenticate=true 2. Just extract the *sessionDataKey* with value from 1 and create the below URL *.* https://apps.appfactory.private.wso2.com:9443/commonauth?sessionDataKey=2bf27df8-44c7-4bfd-984a-96b59ad4dad6username=ad...@abc.compassword=admin 3. Now just paste it in the browser and hit enter, This will log you in. From FireBug you can see that SAMLResponse has received as the response. When I try to use the same code, I came across few issues: For me, just passing the login page didn't result sessionDataKey value. When I passed the login url, I was able to retrieve SAML Request,RelayState and SSOAuthSessionID. Then I did a second call and got the sessionDataKey value. Moreover the integration tests were run from my machine and AF setup is in another machine. So I got the below issue. javax.net.ssl.SSLException: hostname in certificate didn't match: apps.appfactory.private.wso2.com != localhost I was able to fix it by creating and adding a certificate for apps.appfactory.private.wso2.com domain name in both client side and server side. But now I am getting some errors while I try to create tenants with new certificate. I will look into it further. [1] https://github.com/wso2/carbon-appmgt/blob/master/components/appmgt/org.wso2.carbon.appmgt.sample.deployer/src/main/java/org/wso2/carbon/appmgt/sample/deployer/appcontroller/WebpageAccessor.java -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [App Factory] How to retrieve SAML Response (SAML_TOKEN) for Integration tests
Hi All, In order to write integration tests related to API Manger calls, It requires to get the SAML_TOKEN as we have used SAML_TOKEN for login to API Manager in APIManagerIntegrationService. I had a offline chat with Dinusha and Lakmali and they provided me a code sample which does that with the code [1]. Simply what happens in the code is that: 1. First talk to sso app's login page and retrieve the sessionDataKey 2. Then do a call to commonauth endpoint with sessionDataKey, tenant username and password. This results the SAML Response. An easy way to try this scenario with App Factory from the browser is as follows: Prerequisites: Up and running App Factory setup with a working tenant (say ad...@abc.com/admin) 1. Simply visit the AF login page and copy paste the full url to a notepad as follows: https://apps.appfactory.private.wso2.com:9443/carbon/appfactory/login_ajaxprocessor.jsp?SAMLRequest=PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHNhbWwycDpBdXRoblJlcXVlc3QgSUQ9ImNvbG5iYW9jbGxla21jbWJhYWNtZ2xkampjbWZubmRjY21jZ2RoamIiIElzc3VlSW5zdGFudD0iMjAxNS0wNS0wNFQwNjo1NDo1Ny42ODFaIiBWZXJzaW9uPSIyLjAiIHhtbG5zOnNhbWwycD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnByb3RvY29sIj48c2FtbDI6SXNzdWVyIHhtbG5zOnNhbWwyPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YXNzZXJ0aW9uIj5BUFBGQUNUT1JZPC9zYW1sMjpJc3N1ZXI+PHNhbWwycDpOYW1lSURQb2xpY3kgQWxsb3dDcmVhdGU9InRydWUiIEZvcm1hdD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOm5hbWVpZC1mb3JtYXQ6ZW50aXR5Ii8+PC9zYW1sMnA6QXV0aG5SZXF1ZXN0Pg==issuer=APPFACTORY; *sessionDataKey=2bf27df8-44c7-4bfd-984a-96b59ad4dad6* type=samlssocommonAuthCallerPath=..%2F..%2FsamlssoforceAuthenticate=true 2. Just extract the *sessionDataKey* with value from 1 and create the below URL *.* https://apps.appfactory.private.wso2.com:9443/commonauth?sessionDataKey=2bf27df8-44c7-4bfd-984a-96b59ad4dad6username=ad...@abc.compassword=admin 3. Now just paste it in the browser and hit enter, This will log you in. From FireBug you can see that SAMLResponse has received as the response. When I try to use the same code, I came across few issues: For me, just passing the login page didn't result sessionDataKey value. When I passed the login url, I was able to retrieve SAML Request,RelayState and SSOAuthSessionID. Then I did a second call and got the sessionDataKey value. Moreover the integration tests were run from my machine and AF setup is in another machine. So I got the below issue. javax.net.ssl.SSLException: hostname in certificate didn't match: apps.appfactory.private.wso2.com != localhost I was able to fix it by creating and adding a certificate for apps.appfactory.private.wso2.com domain name in both client side and server side. But now I am getting some errors while I try to create tenants with new certificate. I will look into it further. [1] https://github.com/wso2/carbon-appmgt/blob/master/components/appmgt/org.wso2.carbon.appmgt.sample.deployer/src/main/java/org/wso2/carbon/appmgt/sample/deployer/appcontroller/WebpageAccessor.java -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AppFac] Access AppFactory REST API
Hi Fathima, I think your login is successful. Use the jsessionid to see invoke rest of the curl commands. On May 1, 2015 8:48 PM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi, I cannot seem to access the public cloud using the curl command for login. The curl command I'm using is as follows. *curl -v -X POST -k https://apps.cloud.wso2.com/appmgt/site/blocks/user/login/ajax/login.jag https://apps.cloud.wso2.com/appmgt/site/blocks/user/login/ajax/login.jag -d 'action=loginuserName=dilha...@wso2.com dilha...@wso2.compassword=***'* Following is the result of that command. ** Hostname was NOT found in DNS cache* Trying 54.209.187.16...* Connected to apps.cloud.wso2.com http://apps.cloud.wso2.com (54.209.187.16) port 443 (#0)* successfully set certificate verify locations:* CAfile: none CApath: /etc/ssl/certs* SSLv3, TLS handshake, Client hello (1):* SSLv3, TLS handshake, Server hello (2):* SSLv3, TLS handshake, CERT (11):* SSLv3, TLS handshake, Server key exchange (12):* SSLv3, TLS handshake, Server finished (14):* SSLv3, TLS handshake, Client key exchange (16):* SSLv3, TLS change cipher, Client hello (1):* SSLv3, TLS handshake, Finished (20):* SSLv3, TLS change cipher, Client hello (1):* SSLv3, TLS handshake, Finished (20):* SSL connection using ECDHE-RSA-AES256-GCM-SHA384* Server certificate:* subject: C=US; ST=California; L=Palo Alto; O=WSO2, Inc.; CN=*.cloud.wso2.com http://cloud.wso2.com* start date: 2014-05-23 00:00:00 GMT* expire date: 2015-05-27 12:00:00 GMT* issuer: C=US; O=DigiCert Inc; OU=www.digicert.com http://www.digicert.com; CN=DigiCert High Assurance CA-3* SSL certificate verify ok. POST /appmgt/site/blocks/user/login/ajax/login.jag HTTP/1.1 User-Agent: curl/7.35.0 Host: apps.cloud.wso2.com http://apps.cloud.wso2.com Accept: */* Content-Length: 65 Content-Type: application/x-www-form-urlencoded * upload completely sent off: 65 out of 65 bytes HTTP/1.1 200 OK* Server nginx/1.4.6 (Ubuntu) is not blacklisted Server: nginx/1.4.6 (Ubuntu) Date: Fri, 01 May 2015 15:15:51 GMT Content-Type: text/html Content-Length: 6 Connection: keep-alive Set-Cookie: JSESSIONID=D0339EB190F95BF7145678E3CBB0B4DB; Path=/appmgt/; Secure; HttpOnly false* Connection #0 to host apps.cloud.wso2.com http://apps.cloud.wso2.com left intact* What have I got wrong? Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Fri, May 1, 2015 at 8:19 PM, Fathima Dilhasha dilha...@wso2.com wrote: Hi, Thank you Mahesh and Samith. Regards, Dilhasha *M.N.F. Dilhasha* Software Engineering Intern | *WSO2 Inc.* email : *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321 On Fri, May 1, 2015 at 8:17 PM, Samith Dassanayake sam...@wso2.com wrote: Hi Dilhasha, You can find the REST API and sample curl commands in [1]. [1] https://docs.wso2.com/display/AF210/REST+APIs Regards, Samith On Fri, May 1, 2015 at 8:11 PM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi, I am trying to do $subject. Can someone share curl commands that I can use to access the REST API for App Factory? Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards Samith Dassanayake Software Engineer | Cloud TG WSO2, Inc. | http://wso2.com lean. enterprise. middleware Mobile : +947 76207351 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [App Factory] Improvements done on integration tests Framwork
hi All, Earlier in AF integration test framework, default tenant and application creation was called from each testcase separately. This issue was discussed in [1] mail thread. I came up with a improvement to do that call once by introducing a custom TestNG listener class called AppFactoryTestManagerListener [2]. Now before start test case execution, listener will invoke the AFDefaultDataPopulator and create the default tenant, application and 3 versions (defined in automation.xml) in AF setup. [1] [Dev][App Factory] How to execute init methods only once in integration tests base class [2] https://github.com/wso2/product-af/blob/master/modules/integration/tests-integration/tests-scenarios/src/test/java/org/wso2/appfactory/testlisteners/AppFactoryTestManagerListener.java -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [App Factory] How to execute init methods only once in integration tests base class
Hi All, Currently initWithTenantCreation method in AppFactoryIntegrationTest class [1] is being called from all the test cases via their setEnvironment method [2]. initWithTenantCreation method is used to populate tenant, default application. Is it possible to execute this type of methods once for all the test cases, rather than calling them for each test case separately. Please advice. [1] https://github.com/wso2/product-af/blob/master/modules/integration/integration-test-utils/src/main/java/org/wso2/appfactory/integration/test/utils/AppFactoryIntegrationTest.java [2] https://github.com/wso2/product-af/tree/master/modules/integration/tests-integration/tests-scenarios/src/test/java/org/wso2/appfactory/tests/scenarios -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] How to change the default tenant domain defined in Automation.xml in each integration test run
Hi, In order to run intergeneration tests, there is a pre-configured up and running App Factory setup in place. So for each integration test run, we need to create a new tenant domain. As of now, default tenant is defined in Automation.xml. Due to our requirement, default tenant has to be changed. Is there a way to achieve our requirement? -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How to change the default tenant domain defined in Automation.xml in each integration test run
Hi, This can be achieved with AppFactoryIntegrationTest base class itself. On Tue, Apr 28, 2015 at 11:55 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi, In order to run intergeneration tests, there is a pre-configured up and running App Factory setup in place. So for each integration test run, we need to create a new tenant domain. As of now, default tenant is defined in Automation.xml. Due to our requirement, default tenant has to be changed. Is there a way to achieve our requirement? -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [IS] Error in building IS from the source
Hi Indunil, Similar issue has been discussed in [1]. But it requires to see the full log to identify the exact issue in your case. [1]http://mail.wso2.org/mailarchive/dev/2014-September/035270.html On Tue, Apr 21, 2015 at 11:32 AM, Indunil Upeksha Rathnayake indu...@wso2.com wrote: Hi Malithi, The maven version I am using is 3.0.5. Hope that is not the issue. Best Regards -- Indunil Upeksha Rathnayake Software Engineer | WSO2 Inc Emailindu...@wso2.com Mobile +94713695179 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Using jaggeryJS host object for oauth (To access JIRA)
, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Remove the OSGIness of ApplicationManagementService
Hi Asanka, Yes, ApplicationManagementService will become a simple axis2 device and it's osginess will be removed. Why we needed this refactoring is, currently it contains large number of the methods despite their actual place. We have a separate class called ApplicationInfoService, which should contain all the application specific methods and ApplicationUserMgtService which should contain the user specific methods. Those classes are OSGi services. On Mar 28, 2015 9:25 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Asanka, This is not reverting back what was done early. These methods will be called via OSGI calls in future too. Only change will be these methods will be moved from ApplicationManagementService to ApplicationInfoService. So no osgi methods will be available in ApplicationManagementService. Instead all application related osgi methods will be in ApplicationInfoService. Did I clear your doubt ? On Sat, Mar 28, 2015 at 9:13 PM, Asanka Dissanayake asan...@wso2.com wrote: Hi Mahesh, Please find my comments inline. On Wed, Mar 18, 2015 at 10:58 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, Im working on [a] At the moment we have 1. ApplicationManagementService 2. ApplicationInfoService 3. ApplicationUserMgtService All the tasks/methods that UI needs to do related with users will be in ApplicationUserMgtService (IMO ideally this service should be renamed as UserManagementService). All the tasks/methods that UI needs to related with applications will be in ApplicationInfoService. +1 for refactoring the names At the moment ApplicationManagementService has both user related tasks as well as application related tasks. What I'm going to do is identify those methods and move accordingly to either ApplicationUserMgtService or ApplicationInfoService. In that way ApplicationManagementService will no longer be a osgi service and it will only be a soap service. Could you please explain the rationale behind the decision of removing the OSGInes ? AFAIK, these services are called by Jaggery App and some other components too. AFAIR, we did a refactoring once in Jaggery App , removing all the web service calls and made them OSGI service calls .Reason behind that was, when there is a web service call it consumes a 1 thread in the connection pool just to call to a service in the same server. So we did that to save some connections and call something that is available during the runtime. What is the reason to revert that back ? Is that something related to clustering? Here are the methods that I have identified, [1] - getApplication(applicationKey) [2] - deleteApplication(applicationKey) [3] - getApplicationUrl(applicationKey, version, stage, tenantDomain); [4] - getApplicationStatus(applicationKey, version, stage, tenantDomain); [5] - getAllVersionsOfApplicationPerUser(modManager.getTenantDomain(),applicationKey, userName); [6] - getAllVersionsOfApplication(tenantDomain, applicationKey); [7] - getBuildandDelpoyedStatus(applicationKey,tenantDomain,version); [8] - updateRxtWithPromoteState(appKey,nextStage,version,Promote,state); [9] - publishSetApplicationAutoBuild(applicationKey, stageName, version, isBuild); [10] - publishSetApplicationAutoDeploy(applicationKey, stageName, version, isDeploy); IMO all above methods should be moved to ApplicationInfoService. WDYT ? [a] - https://wso2.org/jira/browse/APPFAC-3011 -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Asanka DissanayakeSoftware Engineer* *WSO2 Inc. - lean . enterprise . middleware | wso2.com http://wso2.com/* *email: asan...@wso2.com ruch...@wso2.com, blog: cyberwaadiya.blogspot.com http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com http://asankastechtalks.wordpress.com mobile: +94 71 8373821* -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Remove the OSGIness of ApplicationManagementService
Hi, And of course the BPELs will invoke the methods in ApplicationManagementService. Hi Asanka, Think of a scenario where jenkins plugin or other service which is hosted outside AF runtime wanted to perform Application operations; then exposing them as a web service is the way. I think that's the rationale behind making ApplicationManagementService a SOAP one. Regards, Anuruddha. On Sat, Mar 28, 2015 at 10:37 AM, Asanka Dissanayake asan...@wso2.com wrote: Yes ,Punnadi. I get the point that all the methods are moved to ApplicationInfoService.Given that all the methods are moved to ApplicationInfoService and whoever wants to consume those methods can use ApplicationInfoService. But why ApplicationManagementService is going to be a SOAP service, if all the methods were in this class moved to another class why can't it cannot just deprecated ? What is the goal trying to achieve by making it only a SOAP service. On Sat, Mar 28, 2015 at 1:27 PM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Asanka, Yes, ApplicationManagementService will become a simple axis2 device and it's osginess will be removed. Why we needed this refactoring is, currently it contains large number of the methods despite their actual place. We have a separate class called ApplicationInfoService, which should contain all the application specific methods and ApplicationUserMgtService which should contain the user specific methods. Those classes are OSGi services. On Mar 28, 2015 9:25 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Asanka, This is not reverting back what was done early. These methods will be called via OSGI calls in future too. Only change will be these methods will be moved from ApplicationManagementService to ApplicationInfoService. So no osgi methods will be available in ApplicationManagementService. Instead all application related osgi methods will be in ApplicationInfoService. Did I clear your doubt ? On Sat, Mar 28, 2015 at 9:13 PM, Asanka Dissanayake asan...@wso2.com wrote: Hi Mahesh, Please find my comments inline. On Wed, Mar 18, 2015 at 10:58 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, Im working on [a] At the moment we have 1. ApplicationManagementService 2. ApplicationInfoService 3. ApplicationUserMgtService All the tasks/methods that UI needs to do related with users will be in ApplicationUserMgtService (IMO ideally this service should be renamed as UserManagementService). All the tasks/methods that UI needs to related with applications will be in ApplicationInfoService. +1 for refactoring the names At the moment ApplicationManagementService has both user related tasks as well as application related tasks. What I'm going to do is identify those methods and move accordingly to either ApplicationUserMgtService or ApplicationInfoService. In that way ApplicationManagementService will no longer be a osgi service and it will only be a soap service. Could you please explain the rationale behind the decision of removing the OSGInes ? AFAIK, these services are called by Jaggery App and some other components too. AFAIR, we did a refactoring once in Jaggery App , removing all the web service calls and made them OSGI service calls .Reason behind that was, when there is a web service call it consumes a 1 thread in the connection pool just to call to a service in the same server. So we did that to save some connections and call something that is available during the runtime. What is the reason to revert that back ? Is that something related to clustering? Here are the methods that I have identified, [1] - getApplication(applicationKey) [2] - deleteApplication(applicationKey) [3] - getApplicationUrl(applicationKey, version, stage, tenantDomain); [4] - getApplicationStatus(applicationKey, version, stage, tenantDomain); [5] - getAllVersionsOfApplicationPerUser(modManager.getTenantDomain(),applicationKey, userName); [6] - getAllVersionsOfApplication(tenantDomain, applicationKey); [7] - getBuildandDelpoyedStatus(applicationKey,tenantDomain,version); [8] - updateRxtWithPromoteState(appKey,nextStage,version,Promote,state); [9] - publishSetApplicationAutoBuild(applicationKey, stageName, version, isBuild); [10] - publishSetApplicationAutoDeploy(applicationKey, stageName, version, isDeploy); IMO all above methods should be moved to ApplicationInfoService. WDYT ? [a] - https://wso2.org/jira/browse/APPFAC-3011 -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Asanka DissanayakeSoftware Engineer* *WSO2 Inc. - lean . enterprise . middleware | wso2.com http://wso2.com/* *email: asan
[Dev] Is there an easier way to find the feature of a particular jar coming from?
Hi All, Rather than going through pom files, is there a better and quick way to do $subject. If so please let me know. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Is there an easier way to find the feature of a particular jar coming from?
Hi Danushka, I meant by going through pom files is grep. Sorry for confusion. I asked for a quicker command such as in osgiConsole. On Fri, Mar 20, 2015 at 7:54 PM, danush...@wso2.com wrote: You can grep in product features. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 *From:* Punnadi Gunarathna punn...@wso2.com *Sent:* Friday, March 20, 2015 3:33 PM *To:* WSO2 Developers' List dev@wso2.org Hi All, Rather than going through pom files, is there a better and quick way to do $subject. If so please let me know. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Is there an easier way to find the feature of a particular jar coming from?
and of course pom files+ features.xml On Sat, Mar 21, 2015 at 4:38 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Danushka, I meant by going through pom files is grep. Sorry for confusion. I asked for a quicker command such as in osgiConsole. On Fri, Mar 20, 2015 at 7:54 PM, danush...@wso2.com wrote: You can grep in product features. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 *From:* Punnadi Gunarathna punn...@wso2.com *Sent:* Friday, March 20, 2015 3:33 PM *To:* WSO2 Developers' List dev@wso2.org Hi All, Rather than going through pom files, is there a better and quick way to do $subject. If so please let me know. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [App Fac] Registry resources Indexing issue fixed
Hi, All the artifacts created by RXTs (such as appversion) were not indexed in App Factory as we have missed the relevant indexer configurations from registry.xml file. I have fixed the issue by adding the below config there. indexer class=org.wso2.carbon.governance.registry.extensions.indexers.RXTIndexer mediaTypeRegEx=application/vnd.(.)+\+xml/ Note:In order to work indexing properly with your artifacts, artifactType defined in RXTs should match with 'mediaTypeRegEx' in regisrty.xml. Moreover it required below configuration too. lastAccessTimeLocation/_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime/lastAccessTimeLocation Note: Do not left any white spaces/ tabs between 'lastAccessTimeLocation' tags and its value as it creates the registry file inactive (i.e cannot view, edit, delete etc) via Carbon console. Moreover if files are indexing properly, you will see lot of temp files being created under following directory. APPFAC_HOME/solr/data/index -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Greg] What is the difference between overloaded findGenericArtifacts method in GenericArtifactManager
Hi Isuruwan and Sagara, Thank you for the explanation. I can share the sample and descriptions. On Tue, Mar 17, 2015 at 1:06 PM, Sagara Gunathunga sag...@wso2.com wrote: On Tue, Mar 17, 2015 at 12:25 PM, Isuruwan Herath isuru...@wso2.com wrote: Hi Punnadi, Option 1 will only retrieve the artifacts according to the criteria of the given attribute key-value pair. Option 2 can do custom filtering as well and its implementation underneath will query all artifacts of the given type first (calling getAllGovernanceArtifacts() ) and then do the filtering. This could be the reason why you are getting the exception in second method. Shall we incorporate your description with 2 examples into API Java doc, in case if it's not already there ? Thanks ! Thanks! Isuruwan On Tue, Mar 17, 2015 at 10:23 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi All, I am working with GenericArtifactManager and just wanted to know the difference between these two implementations: 1. Passing an attribute map to findGenericArtifacts method 2. Passing GenericArtifactFilter instance to findGenericArtifacts method Because in my case, when one of the saved artifact is corrupted, 1 would return correct artifact objects of rest of the artifacts saved in Greg where as 2 would throw an exception. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Isuruwan Herath Technical Lead Contact: +94 776 273 296 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Sagara Gunathunga Senior Technical Lead; WSO2, Inc.; http://wso2.com V.P Apache Web Services;http://ws.apache.org/ Linkedin; http://www.linkedin.com/in/ssagara Blog ; http://ssagara.blogspot.com -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Greg] What is the difference between overloaded findGenericArtifacts method in GenericArtifactManager
Hi Nirdesha, +1 for adding the samples and descriptions to Docs. IMO it is necessary to update the Docs with these two scenarios as it helps understand the difference and usage between these two use-cases. On Tue, Mar 17, 2015 at 4:38 PM, Sagara Gunathunga sag...@wso2.com wrote: On Tue, Mar 17, 2015 at 2:57 PM, Nirdesha Munasinghe nirde...@wso2.com wrote: Copying Tania On Tue, Mar 17, 2015 at 2:17 PM, Isuruwan Herath isuru...@wso2.com wrote: On Tue, Mar 17, 2015 at 1:26 PM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Isuruwan and Sagara, Thank you for the explanation. I can share the sample and descriptions. On Tue, Mar 17, 2015 at 1:06 PM, Sagara Gunathunga sag...@wso2.com wrote: On Tue, Mar 17, 2015 at 12:25 PM, Isuruwan Herath isuru...@wso2.com wrote: Hi Punnadi, Option 1 will only retrieve the artifacts according to the criteria of the given attribute key-value pair. Option 2 can do custom filtering as well and its implementation underneath will query all artifacts of the given type first (calling getAllGovernanceArtifacts() ) and then do the filtering. This could be the reason why you are getting the exception in second method. Shall we incorporate your description with 2 examples into API Java doc, in case if it's not already there ? +1 Sagara. It should go here [1]. [1] https://docs.wso2.com/display/Governance460/Configurable+Governance+Artifacts+with+API It's ok to update user docs but my original point is we need to annotate these details in to Java interface as Java doc comment, that's will help developers a lot. Thanks ! Thanks ! Thanks! Isuruwan On Tue, Mar 17, 2015 at 10:23 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi All, I am working with GenericArtifactManager and just wanted to know the difference between these two implementations: 1. Passing an attribute map to findGenericArtifacts method 2. Passing GenericArtifactFilter instance to findGenericArtifacts method Because in my case, when one of the saved artifact is corrupted, 1 would return correct artifact objects of rest of the artifacts saved in Greg where as 2 would throw an exception. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Isuruwan Herath Technical Lead Contact: +94 776 273 296 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Sagara Gunathunga Senior Technical Lead; WSO2, Inc.; http://wso2.com V.P Apache Web Services;http://ws.apache.org/ Linkedin; http://www.linkedin.com/in/ssagara Blog ; http://ssagara.blogspot.com -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ -- Isuruwan Herath Technical Lead Contact: +94 776 273 296 -- You received this message because you are subscribed to the Google Groups WSO2 Documentation group. To unsubscribe from this group and stop receiving emails from it, send an email to documentation+unsubscr...@wso2.com. For more options, visit https://groups.google.com/a/wso2.com/d/optout. -- Thanks, Nirdesha Munasinghe, WSO2 Inc. Web:http://wso2.com Mobile: +94 776321920 -- Sagara Gunathunga Senior Technical Lead; WSO2, Inc.; http://wso2.com V.P Apache Web Services;http://ws.apache.org/ Linkedin; http://www.linkedin.com/in/ssagara Blog ; http://ssagara.blogspot.com -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Launch pattern URL for single tenant Cartridge applications
Hi Hasitha, Please check [Dev] Retrieving the IP/IPs for single tenant cartridge intances mail thread. On Tue, Mar 17, 2015 at 2:00 PM, Hasitha Weerasinghe hasit...@wso2.com wrote: Hi All, How we going to create application launch URL for the single tenant cartridges? I'm working on Nodejs application launch pattern URL. The single tenant cartridges has per application per version instances. how are we going to get the IP of the instance after its get spawned. Thank you. Hasitha -- *Hasitha Weerasinghe* *Software Engineer Intern - WSO2 http://wso2.com/ * Mobile : +94 776 33 6626 Email : hasit...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Greg] What is the difference between overloaded findGenericArtifacts method in GenericArtifactManager
Hi, Based on my findings, On Wed, Mar 18, 2015 at 4:32 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Nirdesha, +1 for adding the samples and descriptions to Docs. IMO it is necessary to update the Docs with these two scenarios as it helps understand the difference and usage between these two use-cases. On Tue, Mar 17, 2015 at 4:38 PM, Sagara Gunathunga sag...@wso2.com wrote: On Tue, Mar 17, 2015 at 2:57 PM, Nirdesha Munasinghe nirde...@wso2.com wrote: Copying Tania On Tue, Mar 17, 2015 at 2:17 PM, Isuruwan Herath isuru...@wso2.com wrote: On Tue, Mar 17, 2015 at 1:26 PM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Isuruwan and Sagara, Thank you for the explanation. I can share the sample and descriptions. On Tue, Mar 17, 2015 at 1:06 PM, Sagara Gunathunga sag...@wso2.com wrote: On Tue, Mar 17, 2015 at 12:25 PM, Isuruwan Herath isuru...@wso2.com wrote: Hi Punnadi, Option 1 will only retrieve the artifacts according to the criteria of the given attribute key-value pair. Option 2 can do custom filtering as well and its implementation underneath will query all artifacts of the given type first (calling getAllGovernanceArtifacts() ) and then do the filtering. This could be the reason why you are getting the exception in second method. Shall we incorporate your description with 2 examples into API Java doc, in case if it's not already there ? +1 Sagara. It should go here [1]. [1] https://docs.wso2.com/display/Governance460/Configurable+Governance+Artifacts+with+API It's ok to update user docs but my original point is we need to annotate these details in to Java interface as Java doc comment, that's will help developers a lot. Thanks ! Thanks ! Thanks! Isuruwan On Tue, Mar 17, 2015 at 10:23 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi All, I am working with GenericArtifactManager and just wanted to know the difference between these two implementations: 1. Passing an attribute map to findGenericArtifacts method - This requires resources to be indexed to provide the results, otherwise no results will be returned 2. Passing GenericArtifactFilter instance to findGenericArtifacts method Because in my case, when one of the saved artifact is corrupted, 1 would return correct artifact objects of rest of the artifacts saved in Greg where as 2 would throw an exception. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Isuruwan Herath Technical Lead Contact: +94 776 273 296 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Sagara Gunathunga Senior Technical Lead; WSO2, Inc.; http://wso2.com V.P Apache Web Services;http://ws.apache.org/ Linkedin; http://www.linkedin.com/in/ssagara Blog ; http://ssagara.blogspot.com -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ -- Isuruwan Herath Technical Lead Contact: +94 776 273 296 -- You received this message because you are subscribed to the Google Groups WSO2 Documentation group. To unsubscribe from this group and stop receiving emails from it, send an email to documentation+unsubscr...@wso2.com. For more options, visit https://groups.google.com/a/wso2.com/d/optout. -- Thanks, Nirdesha Munasinghe, WSO2 Inc. Web:http://wso2.com Mobile: +94 776321920 -- Sagara Gunathunga Senior Technical Lead; WSO2, Inc.; http://wso2.com V.P Apache Web Services;http://ws.apache.org/ Linkedin; http://www.linkedin.com/in/ssagara Blog ; http://ssagara.blogspot.com -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [Greg] What is the difference between overloaded findGenericArtifacts method in GenericArtifactManager
Hi All, I am working with GenericArtifactManager and just wanted to know the difference between these two implementations: 1. Passing an attribute map to findGenericArtifacts method 2. Passing GenericArtifactFilter instance to findGenericArtifacts method Because in my case, when one of the saved artifact is corrupted, 1 would return correct artifact objects of rest of the artifacts saved in Greg where as 2 would throw an exception. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Wrong HttpClient behavior after receiving 302 from the server side
hi All, This behavior was observed while trying to fix the below issue. https://wso2.org/jira/browse/APPFAC-2853 We observed 401 error in Jenkins front just after deleting an application. Steps to reproduce issue: 1. Create an application in AF. 2. Wait till tenant gets unloaded from BuildServer. 3. Delete the created application. The job will be deleted from Jenkins. The undeploy artifact call will fail with a 401 error in AF logs Later it was found out that just after doDelete api is invoked, whatever the call goes to Jenkins side fails with 401 error in AF side. After trying curl commands it was observed that there is no problem in Jenkins front. curl -X POST -k -v -u jenkinssystemadmin:admin https://jenkins.appfactory.private.wso2.com:9674/t/puva2.com/webapps/jenkins/job/bbo-trunk-default/doDelete https://www.google.com/url?q=https%3A%2F%2Fjenkins.appfactory.private.wso2.com%3A9674%2Ft%2Fpuva2.com%2Fwebapps%2Fjenkins%2Fjob%2Fbbo-trunk-default%2FdoDeletesa=Dsntz=1usg=AFQjCNFIwXyaoro2WsHk77Pt8VPOnITB6A curl -X POST -k -v -u jenkinssystemadmin:admin https://jenkins.appfactory.private.wso2.com:9674/t/puva2.com/webapps/jenkins/job/kokokokokoko-trunk-default/buildWithParameters?isAutomatic=falsedoDeploy=truedeployStage=DevelopmentrepoFrom=originaltenantUserName=admin%40puva2.compersistArtifact=truetagName=+ https://www.google.com/url?q=https%3A%2F%2Fjenkins.appfactory.private.wso2.com%3A9674%2Ft%2Fpuva2.com%2Fwebapps%2Fjenkins%2Fjob%2Fkokokokokoko-trunk-default%2FbuildWithParameters%3FisAutomatic%3Dfalse%26doDeploy%3Dtrue%26deployStage%3DDevelopment%26repoFrom%3Doriginal%26tenantUserName%3Dadmin%2540puva2.com%26persistArtifact%3Dtrue%26tagName%3D%2Bsa=Dsntz=1usg=AFQjCNFctCXe6ahwGHlRdaPKI_cLLsjmWQ Then the next observation was that doDelete api call results 302 once the job is deleted successfully. AF communicates with Jenkins via RestBasedJenkinsCIConnector.java singleton class and it has a global HttpClient instance. https://github.com/wso2/product-af/blob/master/modules/components/org.wso2.carbon.appfactory.build/src/main/java/org/wso2/carbon/appfactory/jenkins/build/RestBasedJenkinsCIConnector.java There was no significance in deleteJob method compared to other methods except the return HTTP response status code (i.e 302) So we tried creating a new HttpClient instance only for deleteJob and it fixed the issue. So we concluded that the issue is with HttpClient, which has some issue in handling 302. Any similar experience? -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] How to retrieve all the users from listUsers method in UserAdminStub
Hi All, I am using listUsers method in UserAdminStub found in org.wso2.carbon.user.mgt.stub 4.2.0. If my requirment is to get all the available users with a single call, what should be the maxLimit value. I had a offline chat with Pushpalanka and it was found out that the [1] does the final call to LDAP. According to [2] if 0 is passed, it will return all the entries. But according to [1]'s doListUsers method, if 0 is passed, it will return an empty array. If there is no user-mgt.xml associated, how to retrieve all the available users at once? [1] https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/core/org.wso2.carbon.user.core/4.2.0/src/main/java/org/wso2/carbon/user/core/ldap/ReadOnlyLDAPUserStoreManager.java [2] http://docs.oracle.com/javase/7/docs/api/javax/naming/directory/SearchControls.html#setCountLimit%28long%29 Please advice. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] AppFactory has moved to GitHub
Hi All, AppFactory 2.1.0-SNAPSHOT is now in GitHub [1] which is based on carbon 4.2.0. [1]https://github.com/wso2/product-af -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [GitHub] How to handle kernel patches in GitHub
hi Danushka, We cannot use those patches in GitHub. As a temporary solution, we have pointed Carbon 4.3.0 version for respective kernel components to get rid of compiler errors. On Wed, Jan 21, 2015 at 10:52 PM, Danushka Fernando danush...@wso2.com wrote: That's why its recommended to not to do API changes in kernel patches. Since we have already done it we have to live with it. So needs to build kernel patches. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Jan 21, 2015 at 12:29 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi All, AF is currently on carbon 4.2.0 On Wed, Jan 21, 2015 at 1:46 PM, Roshan Deniyage rosh...@wso2.com wrote: Hi all, We are in the process of moving AppFactory to GitHub. Some of the components in appfactory has carbon kernel dependencies which actual has been ship as carbon kernel patches. AFAIK, after moving products to GitHub, we are not suppose to build any dependent code locally, but get from the nexus repository as dependencies. But, the nexus repo doesn't have those patches as jars. So, does anyone know how to handle carbon kernel patches with GitHub repositories? Thanks, Roshan Deniyage Associate Technical Lead WSO2, Inc: http://wso2.com Mobile: +94 777636406 Twitter: *https://twitter.com/roshku https://twitter.com/roshku* LinkedIn : https://www.linkedin.com/in/roshandeniyage ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [GitHub] How to handle kernel patches in GitHub
Hi All, AF is currently on carbon 4.2.0 On Wed, Jan 21, 2015 at 1:46 PM, Roshan Deniyage rosh...@wso2.com wrote: Hi all, We are in the process of moving AppFactory to GitHub. Some of the components in appfactory has carbon kernel dependencies which actual has been ship as carbon kernel patches. AFAIK, after moving products to GitHub, we are not suppose to build any dependent code locally, but get from the nexus repository as dependencies. But, the nexus repo doesn't have those patches as jars. So, does anyone know how to handle carbon kernel patches with GitHub repositories? Thanks, Roshan Deniyage Associate Technical Lead WSO2, Inc: http://wso2.com Mobile: +94 777636406 Twitter: *https://twitter.com/roshku https://twitter.com/roshku* LinkedIn : https://www.linkedin.com/in/roshandeniyage ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [Ann] WSO2 App Factory 2.0.0 Released!
information about WSO2 App Factory Server, please see http://wso2.com/cloud/app-factory/. Thank you for your interest in WSO2 App Factory. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] WSO2 AppFactory 2.0.0-RC1 Released!
*WSO2 AppFactory 2.0.0-RC1 Released!* WSO2 AppFactory team is pleased to announce the release of version 2.0.0-RC1 of the WSO2 AppFactory. WSO2 App Factory is a multi-tenant, elastic and self-service enterprise platform that enables multiple project teams to collaboratively create, run and manage enterprise applications. Combining complete application lifecycle management and Platform-as-a-Service (PaaS) capabilities, WSO2 App Factory makes it possible to develop, test, deploy to production and retire applications with a single click. It also provides an easy way to discover and consume apps and APIs through a user-friendly store-front. The distribution is available to download at [1] . *Bugs Fixed* https://wso2.org/jira/browse/APPFAC-1231?filter=11773 *Known Issues* https://wso2.org/jira/browse/APPFAC-2203?filter=11892 [1]. https://svn.wso2.org/repos/wso2/scratch/appfactorycc_tags/2.0.0-RC1/released-packs/wso2appfactory-2.0.0.zip -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Error occurred while cartridge spawning in Private Paas
) at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:674) at org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:230) at org.apache.stratos.autoscaler.rule.AutoscalerRuleEvaluator.evaluateMinCheck(AutoscalerRuleEvaluator.java:86) at org.apache.stratos.autoscaler.monitor.ClusterMonitor.monitor(ClusterMonitor.java:99) at org.apache.stratos.autoscaler.monitor.ClusterMonitor.run(ClusterMonitor.java:72) at java.lang.Thread.run(Thread.java:662) Caused by: [Error: $delegator.delegateSpawn($ctxt, clusterId, lbRef): Cannot spawn an instance] [Near : {... $delegator.delegateSpawn($ctxt }] ^ [Line: 1, Column: 1] at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:416) at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAccessor(ReflectiveAccessorOptimizer.java:143) at org.mvel2.ast.ASTNode.optimize(ASTNode.java:159) at org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:115) at org.mvel2.MVELRuntime.execute(MVELRuntime.java:85) at org.mvel2.compiler.CompiledExpression.getDirectValue(CompiledExpression.java:123) at org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:119) at org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:113) at org.mvel2.MVEL.executeExpression(MVEL.java:930) at org.drools.base.mvel.MVELConsequence.evaluate(MVELConsequence.java:104) at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1287) ... 9 more Caused by: java.lang.reflect.InvocationTargetException 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.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod(ReflectiveAccessorOptimizer.java:1104) at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod(ReflectiveAccessorOptimizer.java:987) at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:377) ... 19 more Caused by: java.lang.RuntimeException: Cannot spawn an instance at org.apache.stratos.autoscaler.rule.RuleTasksDelegator.delegateSpawn(RuleTasksDelegator.java:110) ... 26 more Caused by: org.apache.stratos.autoscaler.exception.SpawningException: org.apache.axis2.databinding.ADBException: Unexpected subelement { http://pojo.controller.cloud.stratos.apache.org/xsd}properties at org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient.spawnAnInstance(CloudControllerClient.java:157) at org.apache.stratos.autoscaler.rule.RuleTasksDelegator.delegateSpawn(RuleTasksDelegator.java:92) ... 26 more Caused by: org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement { http://pojo.controller.cloud.stratos.apache.org/xsd}properties at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at org.apache.stratos.cloud.controller.stub.CloudControllerServiceStub.fromOM(CloudControllerServiceStub.java:3898) at org.apache.stratos.cloud.controller.stub.CloudControllerServiceStub.startInstance(CloudControllerServiceStub.java:1147) at org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient.spawnAnInstance(CloudControllerClient.java:145) ... 27 more Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: Unexpected subelement { http://pojo.controller.cloud.stratos.apache.org/xsd}properties at org.apache.stratos.cloud.controller.stub.pojo.MemberContext$Factory.parse(MemberContext.java:1467) at org.apache.stratos.cloud.controller.stub.impl.StartInstanceResponse$Factory.parse(StartInstanceResponse.java:417) at org.apache.stratos.cloud.controller.stub.CloudControllerServiceStub.fromOM(CloudControllerServiceStub.java:3745) ... 29 more Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement {http://pojo.controller.cloud.stratos.apache.org/xsd}properties at org.apache.stratos.cloud.controller.stub.pojo.MemberContext$Factory.parse(MemberContext.java:1461) -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Architecture] [App Factory] Provide custom URL for Production deployed application via the URL mapper
hi All, This is how Domain Mapping functionality is currently being implemented in App Factory front as a generic solution. Only AppOwner has permissions to do the domain mapping. The Domain cloudapps.com is configurable in appfactory.xml Under each Deployment stage defined in appfactory.xml a new tag has introduced in order to enable/disable url mapper on that particular stage as follows: AllowDomainMappingfalse/AllowDomainMapping Add a subdomain --- User can add a subdomain via the Application Home page. When user add a subdomain it will be saved in application.rxt file. Based on the assigned subdomain, urls get generated for the app versions for the Domain mappings enabled stages as follows. Say Domain Mapping has enabled only for Development and Production stages and there are 3 branches of the application. Given subdomain is foo. foo 1.0.0 Porduction foo 1.1.0 Test foo 1.2.o Development foo master Development So in the above scenario following urls will be created on the fly: foo 1.0.0 Production http://foo-1.0.0-dev.cloudapps.com http://foo-1.0.0-prod.cloudapps.com foo 1.1.0 Test http://foo-1.1.0-dev.cloudapps.com http://foo-1.1.0-prod.cloudapps.com foo 1.2.0 Development http://foo-1.2.0-dev.cloudapps.com http://foo-1.2.0-prod.cloudapps.com foo master Development http://foo-master-dev.cloudapps.com These url mappings will be send to respective AppServer (Cartridge) based on the stage. These url mappings will be send to respective Stratos Manager based on the stage. The CNAME records will be send to AWS Route 53. Update a subdomain - User can update the subdomain via the Aplication Home page. When user edit the subdomain it will be saved in application.rxt file. Based on the assigned subdomain, urls get generated for the app versions for the Domain mappings enabled stages as follows. Say Domain Mapping has enabled only for Development and Production stages and there are 3 branches of the application. Updated subdomain is bar. foo 1.0.0 Porduction foo 1.1.0 Test foo 1.2.o Development foo master Development So in the above scenario following urls will be created on the fly: foo 1.0.0 Porduction http://bar-1.0.0-dev.cloudapps.com http://bar-1.0.0-prod.cloudapps.com foo 1.1.0 Test http://bar-1.1.0-dev.cloudapps.com http://bar-1.1.0-prod.cloudapps.com foo 1.2.0 Development http://bar-1.2.0-dev.cloudapps.com http://bar-1.2.0-prod.cloudapps.com foo master Development http://bar-master-dev.cloudapps.com The old url mappings will be updated with new url mappings in respective AppServer (Cartridge) based on the stage. The old url mappings will be deleted and new url mappings will be saved in Stratos Manager based on the stage. The old CNAME records will be deleted and new CNAME records will be added to AWS Route 53. SubDomain validation Each subdomain is validated against already existing domains via Stratos Manager of a particular stage for it's availability. Production Stage specific customization --- For all the versions in Production stage will get a option to specify which version will get the fine-grained url. Say I choose 1.1.0 version. Then the mapped url of the 1.1.0 will be as follows: foo 1.0.0 Porduction foo 1.1.0 Porductionhttp://foo.cloudapps.com foo 1.2.0 Porduction This url mapping will be send to Prod AppServer (Cartridge). This url mappings will be send to Prod Stratos Manager. This CNAME record will be send to AWS Route 53. I do not delete the http://foo-1.1.0-prod.cloudapps.com entry from AS/SM or AWS. Because user can choose any other version in Production instead of 1.1.0. Then we only need to do the following: The old url mapping will be updated with new url mapping in Prod AppServer (Cartridge). It doesn't require to change Prod SM or AWS entry as the url invocation can be handled on the fly via jaggery front based on the selected version. The previous version can go ahead with it's old url which is http://foo-1.1.0-prod.cloudapps.com. SubDomain deleteion will not be implemented for this release. On Sat, Apr 26, 2014 at 1:52 PM, Imesh Gunaratne im...@wso2.com wrote: Domain mapping implementation in Stratos has been started after completing 4.0.0-rc1 release work. I will update the status ASAP. Thanks On Fri, Apr 25, 2014 at 4:26 PM, Punnadi Gunarathna punn...@wso2.comwrote: Yes Amila, I was wrong. We can validate that from AF front itself. On Fri, Apr 25, 2014 at 3:54 PM, Amila Maha Arachchi ami...@wso2.comwrote: My question is based on your statement Subdomain will be *validated*for its availability via the API provided in Stratos Manager Why do we need to validate the availability of the subdomain, if we maintain the list of mapped domains within AF. On Fri, Apr 25, 2014 at 3:46 PM, Punnadi Gunarathna punn...@wso2.comwrote: Hi Amila, Of course we will store the production url corresponding
[Dev] [App Factory] 2.0.0 Alpha Release Plan
Hi All, The team is working towards delivering App Factory 2.0.0 alpha pack and the java code freeze will be at 6.00pm on 2nd May. The alpha pack release will be on 4th May. Please complete all the java implementations of targeted redmine features/tasks for alpha release including Usability improvements to hit the setted deadline. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [App Factory] AF 1.1.0 M14/GA targeted JIRAs
Hi All, I have created a JIRA filters [1] and [2] to keep track of issues that we need to fix for AF 1.1.0 M14/GA. [1]https://wso2.org/jira/issues/?filter=11773 [2]https://wso2.org/jira/browse/APPFAC-1795?filter=11779 Priority Issues [image: Highest] Highesthttps://wso2.org/jira/secure/IssueNavigator.jspa?reset=truejqlQuery=project+%3D+APPFAC+AND+resolution+%3D+Unresolved+AND+priority+%3D+Highest+ORDER+BY+key+DESCmode=hide 10 [image: High] Highhttps://wso2.org/jira/secure/IssueNavigator.jspa?reset=truejqlQuery=project+%3D+APPFAC+AND+resolution+%3D+Unresolved+AND+priority+%3D+High+ORDER+BY+key+DESCmode=hide 23 [image: Normal] Normalhttps://wso2.org/jira/secure/IssueNavigator.jspa?reset=truejqlQuery=project+%3D+APPFAC+AND+resolution+%3D+Unresolved+AND+priority+%3D+Normal+ORDER+BY+key+DESCmode=hide 35 We can start working on Highest/High issues first. Then we can move forward with Normal ones. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [App Factory] JIRAs need to be discussed
Moving the thread to Dev group. On Fri, Apr 25, 2014 at 10:34 AM, Harsha Thirimanna hars...@wso2.comwrote: Yes. We have to fix it. Manjula has used git pre-commit hook to validate pom file when developer commit. I think now it is easy to do a call from there to appfac to get stage of app version and block like same as manjula blocked commit. Bcz manjula gave mean full text to developer's git client that saying the reason of blocked. It is important to here too. On Apr 25, 2014 3:03 PM, Punnadi Gunarathna punn...@wso2.com wrote: Hi All, https://wso2.org/jira/browse/APPFAC-1680 is not fixed yet as per the chat that I had with Ramith. On Fri, Apr 25, 2014 at 8:49 AM, Dimuthu Leelarathne dimut...@wso2.comwrote: +1 for Harsha's comments. I took appropriate actions. Lets review Normal Jiras together. thanks, dimuthu On Thu, Apr 24, 2014 at 2:23 PM, Harsha Thirimanna hars...@wso2.comwrote: Hi Punnadi, These are new features and improvement. Feature freeze now. https://wso2.org/jira/browse/APPFAC-1783 https://wso2.org/jira/browse/APPFAC-1782 Postponed to after release. There is comment with this jira saying that. https://wso2.org/jira/browse/APPFAC-1781 Fixed by asankad for the previous release. So have to test https://wso2.org/jira/browse/APPFAC-1760 I think these should be fixed. https://wso2.org/jira/browse/APPFAC-1699 https://wso2.org/jira/browse/APPFAC-1680 thanks *Harsha Thirimanna* Senior Software Engineer; WSO2, Inc.; http://wso2.com * http://www.apache.org/* * email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770* * twitter: **http://twitter.com/ http://twitter.com/afkham_azeez* *harshathirimann linked-in: **http: http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122 http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122* *Lean . Enterprise . Middleware* On Thu, Apr 24, 2014 at 1:28 PM, Punnadi Gunarathna punn...@wso2.comwrote: Hi All, Are we going to fix these JIRAs for 1.1.0 m14/GA? APPFAC-1782 https://wso2.org/jira/browse/APPFAC-1782 APPFAC-1680 https://wso2.org/jira/browse/APPFAC-1680 APPFAC-1699 https://wso2.org/jira/browse/APPFAC-1699 APPFAC-1760 https://wso2.org/jira/browse/APPFAC-1760 APPFAC-1781 https://wso2.org/jira/browse/APPFAC-1781 APPFAC-1782 https://wso2.org/jira/browse/APPFAC-1782 APPFAC-1783 https://wso2.org/jira/browse/APPFAC-1783 -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [Architecture] [App Factory] Provide custom URL for Production deployed application via the URL mapper
hi All, In Dimtry's uber stories he came up with URL Mapping requirement for the applications deployed in Production. This is how it will be implemented in App Factory front. AppOwner only has permissions to domain mapping. 1. If there are more than one version of the same Application in production, the domain mapping is available only for one version and it is configuarable in AppHome. (That is because in reality there can't be multiple versions of the same application in Production. So only one domain mapping would be enough. But in App Factory there can be multiple versions of the same application in production) 2. User can only set the subdomian in App Home page. Subdomain will be validated for its availability via the API provided in Stratos Manager. Based on the available subdomain the Production URL will be created and displayed in AppHome as follows: http://subdomain.cloudapps.com 3.When a particualr app version is promoted to production, the above url, cartridge type and the tenant id need to be passed to Stratos Manager via the API. 4. The App version which has domain mapping will be highlighted. When the deploy button is hit from Build n Repo page/AppHome page for this App version, if AS is fronted by LB then LB will forward the request to correct cluster node or else the request will directly hit AS. 6. Using the Virtual Host concept in AS, the deployed application will be available in the browser. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Architecture] [App Factory] Provide custom URL for Production deployed application via the URL mapper
Hi Amila, Of course we will store the production url corresponding to the given Application version in AF side. But we have to pass the Host | Service | Tenant to Stratos side via SM. That is what we discussed in the meeting. Please refer the mail thread [Update] Cloud URL Mapping story for more details. On Fri, Apr 25, 2014 at 3:35 PM, Amila Maha Arachchi ami...@wso2.comwrote: On Fri, Apr 25, 2014 at 3:16 PM, Punnadi Gunarathna punn...@wso2.comwrote: hi All, In Dimtry's uber stories he came up with URL Mapping requirement for the applications deployed in Production. This is how it will be implemented in App Factory front. AppOwner only has permissions to domain mapping. 1. If there are more than one version of the same Application in production, the domain mapping is available only for one version and it is configuarable in AppHome. (That is because in reality there can't be multiple versions of the same application in Production. So only one domain mapping would be enough. But in App Factory there can be multiple versions of the same application in production) 2. User can only set the subdomian in App Home page. Subdomain will be validated for its availability via the API provided in Stratos Manager. Based on the available subdomain the Production URL will be created and displayed in AppHome as follows: Don't we keep these mapped domains with AF? If we are keeping them, why do we need to ask from SM? http://subdomain.cloudapps.com 3.When a particualr app version is promoted to production, the above url, cartridge type and the tenant id need to be passed to Stratos Manager via the API. 4. The App version which has domain mapping will be highlighted. When the deploy button is hit from Build n Repo page/AppHome page for this App version, if AS is fronted by LB then LB will forward the request to correct cluster node or else the request will directly hit AS. 6. Using the Virtual Host concept in AS, the deployed application will be available in the browser. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ -- *Amila Maharachchi* Senior Technical Lead WSO2, Inc.; http://wso2.com Blog: http://maharachchi.blogspot.com Mobile: +94719371446 -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Setup Script
Carbon Server * Closing connection 0 {Error:{ errorCode: 400, errorMessage: Error in deploying service cluster definition}}bash-3.2$ -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Could not find artifact org.wso2.maven:carbon-p2-plugin:pom:1.5.3 error while building features of App Factory
Hi All, I restructured App Factory code base in order to commit to GitHub project. I am getting this error when features are built in this new structure. [ERROR] Plugin org.wso2.maven:carbon-p2-plugin:1.5.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.wso2.maven:carbon-p2-plugin:jar:1.5.3: Could not find artifact org.wso2.maven:carbon-p2-plugin:pom:1.5.3 in central ( http://repo.maven.apache.org/maven2) - [Help 1] I have configured below repositories in root parent. repositories !-- Before adding ANYTHING in here, please start a discussion on the dev list. Ideally the Axis2 build should only use Maven central (which is available by default) and nothing else. We had troubles with other repositories in the past. Therefore configuring additional repositories here should be considered very carefully. -- repository idwso2-nexus/id nameWSO2 internal Repository/name urlhttp://maven.wso2.org/nexus/content/groups/wso2-public//url releases enabledtrue/enabled updatePolicydaily/updatePolicy checksumPolicyignore/checksumPolicy /releases /repository repository idwso2.releases/id nameWSO2 internal Repository/name urlhttp://maven.wso2.org/nexus/content/repositories/releases/ /url releases enabledtrue/enabled updatePolicydaily/updatePolicy checksumPolicyignore/checksumPolicy /releases /repository repository idwso2.snapshots/id nameWSO2 Snapshot Repository/name urlhttp://maven.wso2.org/nexus/content/repositories/snapshots/ /url snapshots enabledtrue/enabled updatePolicydaily/updatePolicy /snapshots releases enabledfalse/enabled /releases /repository /repositories I have noted the simillar kind of error in below link also. http://builder4.us1.wso2.org:/bamboo/browse/WCB007-KER001-10/log org.wso2.carbon.appfactory.server.feature feature pom file is attached herewith. Please share your thought if you are familiar with this error. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ?xml version=1.0 encoding=utf-8? !-- ~ Copyright (c) 2010-2011, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. ~ ~ Licensed 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. -- project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; parent groupIdorg.wso2.carbon/groupId artifactIdappfactory-feature/artifactId version1.1.0-SNAPSHOT/version relativePath../pom.xml/relativePath /parent modelVersion4.0.0/modelVersion artifactIdorg.wso2.carbon.appfactory.server.feature/artifactId packagingpom/packaging nameWSO2 Carbon - AppFactory Server Feature/name urlhttp://wso2.org/url descriptionThis feature contains the core bundles required for AppFactory back end /description dependencies dependency groupIdorg.wso2.carbon/groupId artifactIdorg.wso2.carbon.hostobjects.carbonutil/artifactId /dependency dependency groupIdorg.wso2.carbon/groupId artifactIdorg.wso2.carbon.appfactory.hostobjects.configuration/artifactId /dependency dependency groupIdorg.wso2.carbon/groupId artifactIdorg.wso2.carbon.hostobjects.sso/artifactId /dependency dependency groupIdorg.wso2.carbon/groupId artifactIdorg.wso2.carbon.appfactory.application.mgt/artifactId /dependency dependency groupIdorg.wso2.carbon/groupId artifactIdorg.wso2.carbon.appfactory.listners/artifactId /dependency dependency groupIdorg.wso2.carbon/groupId artifactIdorg.wso2.carbon.appfactory.apiManager.integration/artifactId /dependency dependency groupIdorg.wso2.carbon/groupId artifactIdorg.wso2.carbon.appfactory.bam.integration/artifactId /dependency dependency
Re: [Dev] Could not find artifact org.wso2.maven:carbon-p2-plugin:pom:1.5.3 error while building features of App Factory
Hi Pradeep, Yes it worked. Thank you. On Wed, Apr 9, 2014 at 1:51 PM, Pradeep Fernando prad...@wso2.com wrote: I think you have to configure plugin repositories as well. add nexus repo to plugin repositories.. the artifact is availble in the dist/nexus repos http://dist.wso2.org/maven2/org/wso2/maven/carbon-p2-plugin/1.5.3/ On Wed, Apr 9, 2014 at 1:40 PM, Punnadi Gunarathna punn...@wso2.comwrote: Hi All, I restructured App Factory code base in order to commit to GitHub project. I am getting this error when features are built in this new structure. [ERROR] Plugin org.wso2.maven:carbon-p2-plugin:1.5.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.wso2.maven:carbon-p2-plugin:jar:1.5.3: Could not find artifact org.wso2.maven:carbon-p2-plugin:pom:1.5.3 in central ( http://repo.maven.apache.org/maven2) - [Help 1] I have configured below repositories in root parent. repositories !-- Before adding ANYTHING in here, please start a discussion on the dev list. Ideally the Axis2 build should only use Maven central (which is available by default) and nothing else. We had troubles with other repositories in the past. Therefore configuring additional repositories here should be considered very carefully. -- repository idwso2-nexus/id nameWSO2 internal Repository/name urlhttp://maven.wso2.org/nexus/content/groups/wso2-public/ /url releases enabledtrue/enabled updatePolicydaily/updatePolicy checksumPolicyignore/checksumPolicy /releases /repository repository idwso2.releases/id nameWSO2 internal Repository/name urlhttp://maven.wso2.org/nexus/content/repositories/releases/ /url releases enabledtrue/enabled updatePolicydaily/updatePolicy checksumPolicyignore/checksumPolicy /releases /repository repository idwso2.snapshots/id nameWSO2 Snapshot Repository/name urlhttp://maven.wso2.org/nexus/content/repositories/snapshots/ /url snapshots enabledtrue/enabled updatePolicydaily/updatePolicy /snapshots releases enabledfalse/enabled /releases /repository /repositories I have noted the simillar kind of error in below link also. http://builder4.us1.wso2.org:/bamboo/browse/WCB007-KER001-10/log org.wso2.carbon.appfactory.server.feature feature pom file is attached herewith. Please share your thought if you are familiar with this error. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Pradeep Fernando* Associate Technical Lead;WSO2 Inc.; http://wso2.com blog: http://pradeepfernando.blogspot.com m: +94776603662 -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] rampart project is missing in GitHub
hi All, I got the following exception while i was building App Factory p2-profile-gen module. Cannot complete the install because one or more required items could not be found. Software being installed: WSO2 Carbon - Registry WS API Feature 4.3.0.SNAPSHOT (org.wso2.carbon.registry.ws.feature.group 4.3.0.SNAPSHOT) Missing requirement: org.wso2.carbon.registry.ws.api 4.3.0.SNAPSHOT (org.wso2.carbon.registry.ws.api 4.3.0.SNAPSHOT) requires 'package org.apache.rampart.policy.model 1.6.1.wso2v9' but it could not be found Cannot satisfy dependency: From: WSO2 Carbon - Registry WS API Feature 4.3.0.SNAPSHOT (org.wso2.carbon.registry.ws.feature.group 4.3.0.SNAPSHOT) To: org.wso2.carbon.registry.ws.api [4.3.0.SNAPSHOT] Application failed, log file location: /home/punnadi/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1394016997349.log I found that it was configured in [1] as [2]. This has to be corrected by adding the rampart project to GitHub and change the version to -SNAPSHOT. [1]https://github.com/wso2/carbon-registry/blob/master/pom.xml [2]rampart.wso2.version1.6.1.wso2v9/rampart.wso2.version -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Invitation: Code Review - Internal and External API @ Fri Feb 21, 2014 2pm - 3pm (punn...@wso2.com)
BEGIN:VCALENDAR PRODID:-//Google Inc//Google Calendar 70.9054//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:REQUEST BEGIN:VEVENT DTSTART:20140221T083000Z DTEND:20140221T093000Z DTSTAMP:20140220T062359Z ORGANIZER;CN=Punnadi Gunarathna:mailto:punn...@wso2.com UID:0v6f06ahrviu04tvk90qg2m...@google.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Manjula Rathnayake;X-NUM-GUESTS=0:mailto:manju...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Harsha Thirimanna;X-NUM-GUESTS=0:mailto:hars...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Ajanthan Balachandran;X-NUM-GUESTS=0:mailto:ajant...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Shamika Ariyawansa;X-NUM-GUESTS=0:mailto:sham...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Ashansa Perera;X-NUM-GUESTS=0:mailto:asha...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE ;CN=Punnadi Gunarathna;X-NUM-GUESTS=0:mailto:punn...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Manisha Gayathri;X-NUM-GUESTS=0:mailto:mani...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Shiroshica Kulatilake;X-NUM-GUESTS=0:mailto:sh...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=Dimuthu Leelarathne;X-NUM-GUESTS=0:mailto:dimut...@wso2.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP= TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org CREATED:20140220T060922Z DESCRIPTION:http://wso2.org/crucible/cru/WAF001-36\nView your event at http ://www.google.com/calendar/event?action=VIEWeid=MHY2ZjA2YWhydml1MDR0dms5MH FnMm10cW8gZGV2QHdzbzIub3Jntok=MTYjcHVubmFkaUB3c28yLmNvbTk2NzkxYzE1Y2Y3MTky NGI5ODNkMTJiN2JkZWM2YjA4MzQzZTI2NTActz=Asia/Colombohl=en. LAST-MODIFIED:20140220T062359Z LOCATION:LK 6th Floor Meeting Room - Turing SEQUENCE:2 STATUS:CONFIRMED SUMMARY:Code Review - Internal and External API TRANSP:OPAQUE END:VEVENT END:VCALENDAR invite.ics Description: application/ics ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Isuruwan Herath
-- Thanks and Regards *, Shani Ranasinghe* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 77 2273555 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Lasantha Fernando* Software Engineer - Data Technologies Team WSO2 Inc. http://wso2.com email: lasan...@wso2.com mobile: (+94) 71 5247551 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- K.D. Chamil Jeewantha Associate Technical Lead WSO2, Inc.; http://wso2.com Mobile: +94716813892 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Gayan Kaushalya Yalpathwala* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 71 8682704 http://asia14.wso2con.com/ http://asia14.wso2con.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Regards, Manula Chathurika Thantriwatte Software Engineer WSO2 Inc. : http://wso2.com lean . enterprise . middleware email : manu...@wso2.com / man...@apache.org phone : +94 772492511 blog : http://manulachathurika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Compilation errors in carbon 4.2.0 Kernel patch0004
/wso2/carbon/application/deployer/AppDeployerUtils.java:[625,8] cannot find symbol symbol : class PrivilegedCarbonContext location: class org.wso2.carbon.application.deployer.AppDeployerUtils [ERROR] /home/appfactory/carbon420/kernel/patches/patch0004/core/org.wso2.carbon.application.deployer/4.2.0/src/main/java/org/wso2/carbon/application/deployer/AppDeployerUtils.java:[625,48] cannot find symbol symbol : variable PrivilegedCarbonContext location: class org.wso2.carbon.application.deployer.AppDeployerUtils [ERROR] /home/appfactory/carbon420/kernel/patches/patch0004/core/org.wso2.carbon.application.deployer/4.2.0/src/main/java/org/wso2/carbon/application/deployer/AppDeployerUtils.java:[630,8] cannot find symbol symbol : class PrivilegedCarbonContext location: class org.wso2.carbon.application.deployer.AppDeployerUtils [ERROR] /home/appfactory/carbon420/kernel/patches/patch0004/core/org.wso2.carbon.application.deployer/4.2.0/src/main/java/org/wso2/carbon/application/deployer/AppDeployerUtils.java:[630,48] cannot find symbol symbol : variable PrivilegedCarbonContext location: class org.wso2.carbon.application.deployer.AppDeployerUtils [ERROR] /home/appfactory/carbon420/kernel/patches/patch0004/core/org.wso2.carbon.application.deployer/4.2.0/src/main/java/org/wso2/carbon/application/deployer/AppDeployerUtils.java:[635,46] cannot find symbol symbol : variable MultitenantConstants location: class org.wso2.carbon.application.deployer.AppDeployerUtils [ERROR] /home/appfactory/carbon420/kernel/patches/patch0004/core/org.wso2.carbon.application.deployer/4.2.0/src/main/java/org/wso2/carbon/application/deployer/internal/AppDeployerServiceComponent.java:[216,47] package CarbonConstants does not exist [INFO] 69 errors [INFO] - [INFO] [INFO] Reactor Summary: [INFO] [INFO] WSO2 Carbon - Utilities ... SUCCESS [10:08.811s] [INFO] WSO2 Carbon - User Manager Kernel . SUCCESS [11:45.606s] [INFO] WSO2 Carbon - Application Deployer FAILURE [1:19.482s] [INFO] WSO2 Carbon - Kernel .. SKIPPED [INFO] WSO2 Carbon - UI .. SKIPPED [INFO] WSO2 Carbon - Services SKIPPED [INFO] WSO2 Carbon - Standalone Server ... SKIPPED [INFO] WSO2 Carbon Kernel Kernel Patch 0004 .. SKIPPED [INFO] WSO2 Carbon Kernel Kernel Core Patch 0004 . SKIPPED [INFO] Distribution-Aggregate SKIPPED [INFO] [INFO] BUILD FAILURE [INFO] -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Shani
://wso2.com lean.enterprise.middleware mobile: +94 77 2273550 http://lk.linkedin.com/pub/shani-ranasinghe/34/111/ab ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards.. Chanika Geeganage Software Engineer WSO2, Inc.; http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ishara Premasada Software Engineer, WSO2 Inc. http://wso2.com/ *Blog : http://isharapremadasa.blogspot.com/ http://isharapremadasa.blogspot.com/Twitter : https://twitter.com/ishadil https://twitter.com/ishadil Mobile : +94 714445832 %2B94%20714445832* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Regards, Dunith Dhanushka, Senior Software Engineer - BAM, WSO2 Inc, Mobile - +94 71 8615744 Blog - dunithd.wordpress.com http://blog.dunith.com Twitter - @dunithd http://twitter.com/dunithd ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] How to programmatically deactivate axis2 service
Hi All, I am writing some integration tests where it is required to deactivate axis2 service which is deployed in axis2 server programatically. Is there a way to do this? Please advice. Note: I have manually done it using WSO2 AS by deploying the service there and deactivated from UI itself. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AppFactory] Enable deploy only if there is a successful build and after deployed one of successful build
there is at least one lastSuccessfulBuild id and if there are no one then show the message to the user. Any suggestion about this ? Issue is proposing to disable the button when no successful builds are there. So 1. I thought we have removed lot of disabling buttons because this confuses the user. 2. If we disable buttons each time this page loads there will be lot of calls going to jenkins to check for successful builds to just disable the deploy button. And if we have 10 branches there there will be 10 calls for each page load. So without disabling the button its better to let the user click the button and popup a message saying there are no successful builds available. Please build first. This will reduce the unnecessary calls. WDYT? *Enable the deploy button after it is deployed* https://wso2.org/jira/browse/APPFAC-1645 To do this we have to sync with deployed servers to check the deployment status. Then there may be lot of calls to back end according to the above suggestion. Are there any other ways to do this ? We do the deploy as an async operation. However lets say we implement this. There are two concerns for me. 1. What happens at page reload. Does it re-enable? 2. What happens if deploy fails for some reason. User wont be able to deploy that branch again. And I think disabling buttons will confuses the user since user doesn't know when this button will be enabled. WDYT? thanks *Harsha Thirimanna* Senior Software Engineer; WSO2, Inc.; http://wso2.com * http://www.apache.org/* * email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770* * twitter: **http://twitter.com/ http://twitter.com/afkham_azeez* *harshathirimann linked-in: **http: http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122 http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122* *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ramith Jayasinghe Technical Lead WSO2 Inc., http://wso2.com lean.enterprise.middleware E: ram...@wso2.com P: +94 776715671 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks Regards, Ashansa Perera Software Engineer WSO2, Inc ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Code changed in block level to full fill AF requirement with API-M
Hi All, In API-M 1.5.0 there is a api[1] in [2] which takes application name as the input parameter and returns api information[3]. Moreover it usees the logged in users' username to get the results along with the application name. [1] getSubscriptionByApplication [2] store/site/blocks/subscription/subscription-list/ajax/subscription-list.jag [3] apiName, apiVersion, apiProvider, description, subscribedTier, status But as per the requirement in App Factory, only app owners can subscribe to APIs. Therefore above api can only be invoked when app owner logged in to the system ( API-M has SSO). The problem is when other users logged in to App Factory, there is no way to get API information by using above api. Hence i had a offline chat with Dimuthu and we decieded to modify [2] in such a way that [1] will require another parameter which is username. So i have modified the api as follows and we will use this as a custom patch. if (action == getSubscriptionByApplication) { var appname = request.getParameter(app); var username = request.getParameter(username); if (!user) { print({ error:true, message:msg.error.loginRequired(action) }); return; } if(username == null){ username = user.username; }else{ var externalUserDomain = username.split(@)[1]; var loggedInUserDomain = user.username.split(@)[1]; if(externalUserDomain.trim() != loggedInUserDomain.trim()){ obj = { error:true, apis:Logged in user and requested user are from different domains } return; } } mod = jagg.module(subscription); try{ result = mod.getAPISubscriptionsForApplication(username,appname); } catch (e) { log.error(Error while creating application \n + e.message); throw Error while creating application; } if (result.error) { obj = { error:result.error, message:msg.error.authError(action, username) }; } else { obj = { error:false, apis:result.subscriptions } } print(obj); }else { print({ error:true, message:msg.error.invalidAction(action) }); } -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Code changed in block level to full fill AF requirement with API-M
Yes it is a security violation but with the details (apiName, apiVersion, apiProvider, description, subscribedTier, status) that he can get the security threat is minimal. Also we have added a logic to check if the request is from same tenant domain. On Thu, Oct 17, 2013 at 10:53 AM, Nuwan Dias nuw...@wso2.com wrote: This means that anyone having a valid user account can login and retrieve subscription information of another user right? If so, isn't it a security violation? Thanks, NuwanD. On Thu, Oct 17, 2013 at 10:45 AM, Punnadi Gunarathna punn...@wso2.comwrote: Hi All, In API-M 1.5.0 there is a api[1] in [2] which takes application name as the input parameter and returns api information[3]. Moreover it usees the logged in users' username to get the results along with the application name. [1] getSubscriptionByApplication [2] store/site/blocks/subscription/subscription-list/ajax/subscription-list.jag [3] apiName, apiVersion, apiProvider, description, subscribedTier, status But as per the requirement in App Factory, only app owners can subscribe to APIs. Therefore above api can only be invoked when app owner logged in to the system ( API-M has SSO). The problem is when other users logged in to App Factory, there is no way to get API information by using above api. Hence i had a offline chat with Dimuthu and we decieded to modify [2] in such a way that [1] will require another parameter which is username. So i have modified the api as follows and we will use this as a custom patch. if (action == getSubscriptionByApplication) { var appname = request.getParameter(app); var username = request.getParameter(username); if (!user) { print({ error:true, message:msg.error.loginRequired(action) }); return; } if(username == null){ username = user.username; }else{ var externalUserDomain = username.split(@)[1]; var loggedInUserDomain = user.username.split(@)[1]; if(externalUserDomain.trim() != loggedInUserDomain.trim()){ obj = { error:true, apis:Logged in user and requested user are from different domains } return; } } mod = jagg.module(subscription); try{ result = mod.getAPISubscriptionsForApplication(username,appname); } catch (e) { log.error(Error while creating application \n + e.message); throw Error while creating application; } if (result.error) { obj = { error:result.error, message:msg.error.authError(action, username) }; } else { obj = { error:false, apis:result.subscriptions } } print(obj); }else { print({ error:true, message:msg.error.invalidAction(action) }); } -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Nuwan Dias Senior Software Engineer - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] exposed an osgi service to do CRUD operation on external registries in App Factory
Hi All, Based on the current architecture there are separate registries for Dev-Colud, Test-Cloud and Prod-Cloud. Moreover App Factory and API-M are sharing a single registry. There are some scenarios where it is required to do certain registry operation with these external registries. For an example, sandbox and production keys generated from API-M need to be saved in Dev-Colud, Test-Cloud and Prod-Cloud registries and also this will be needed to implement unmanaged APIs via resource properties. Therefore an osgi service is implemented and exposed in org.wso2.carbon.appfactory.core bundle. In order to access these remote registries first it is required to authenticate with corresponding servers and that can be done either with user credentials or a cookie. The cookie option was chosen since there is no way to retrieve current user password. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Dhanuka
Congrats Dhanuka :) On Tue, Sep 3, 2013 at 1:38 PM, Dunith Dhanushka dun...@wso2.com wrote: Congrats Dhanuka! On Tue, Sep 3, 2013 at 1:36 PM, Maninda Edirisooriya mani...@wso2.comwrote: Congrats Dhanuka ... :-) * Maninda Edirisooriya* Software Engineer *WSO2, Inc. *lean.enterprise.middleware. *Blog* : http://maninda.blogspot.com/ *Phone* : +94 777603226 On Tue, Sep 3, 2013 at 11:04 AM, Manula Chathurika Thantriwatte manu...@wso2.com wrote: Congratulations Dhanuka !!! On Tue, Sep 3, 2013 at 10:55 AM, Lasantha Fernando lasan...@wso2.comwrote: Congratz Dhanuka!! On 3 September 2013 10:51, Shani Ranasinghe sh...@wso2.com wrote: Congrats Dhanuka.. :) On Tue, Sep 3, 2013 at 10:25 AM, Balakrishnan Gokulakrishnan go...@wso2.com wrote: Congratulations Dhanuka! On 3 September 2013 10:21, Bhathiya Jayasekara bhath...@wso2.comwrote: Congratulations Dhanuka... :) On Tue, Sep 3, 2013 at 10:16 AM, Pulasthi Supun pulas...@wso2.comwrote: Congrats Dhanuka :) On Tue, Sep 3, 2013 at 10:14 AM, Gayan Dhanushka gay...@wso2.comwrote: Congratzzz Dhanuka!!! On Tue, Sep 3, 2013 at 10:01 AM, Prabath Abeysekera praba...@wso2.com wrote: Hi All, It's my pleasure to welcome Dhanuka Ranasinghe as a WSO2 Committer. Dhanuka has been a great contributor to SS over the last couple of months handling all the responsibilities entrusted to him pretty satisfactorily. In acknowldgement of all his contributions, he's been voted as a WSO2 committer. Dhanuka, Welcome aboard and keep up the good work! Cheers, Prabath -- Prabath Abeysekara Associate Technical Lead, Data TG. WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Gayan Dhanushka Software Engineer WSO2 Inc. http://wso2.com Mobile : 0716662327 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Bhathiya Jayasekara* *Software Engineer,* *WSO2 inc., http://wso2.com* * * *Phone: +94715478185* *LinkedIn: http://www.linkedin.com/in/bhathiyaj* *Twitter: https://twitter.com/bhathiyax* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Balakrishnan Gokulakrishnan* Software Engineer, WSO2, Inc.; http://wso2.com Twitter: http://twitter.com/gokulbs Mobile: +94775935789 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks and Regards*, Shani Ranasinghe* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 77 2273555 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Lasantha Fernando* Software Engineer - Data Technologies Team WSO2 Inc. http://wso2.com email: lasan...@wso2.com mobile: (+94) 71 5247551 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Regards, Manula Chathurika Thantriwatte Software Engineer WSO2 Inc. : http://wso2.com lean . enterprise . middleware email : manu...@wso2.com / man...@apache.org phone : +94 772492511 blog : http://manulachathurika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Regards, Dunith Dhanushka, Senior Software Engineer - BAM, WSO2 Inc, Mobile - +94 71 8615744 Blog - dunithd.wordpress.com http://blog.dunith.com Twitter - @dunithd http://twitter.com/dunithd ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 email: punn...@wso2.com lal...@wso2.com http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Vanjikumaran Sivajothy
Congratz Vanji. On Fri, Jul 26, 2013 at 3:39 PM, Asanka Sanjeewa asan...@wso2.com wrote: Congratulation Vanji. On Fri, Jul 26, 2013 at 3:35 PM, Chanaka Fernando chana...@wso2.comwrote: Congratulations 1G ... On Fri, Jul 26, 2013 at 3:31 PM, Pushpalanka Jayawardhana la...@wso2.com wrote: Congratz!!! Cheers, Pushpalanka Jayawardhana Software Engineer WSO2 Lanka (pvt) Ltd [image: Facebook]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.facebook.com%2Fpushpalanka [image: Twitter]http://s.wisestamp.com/links?url=http%3A%2F%2Ftwitter.com%2FPushpalanka [image: LinkedIn]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.linkedin.com%2Fprofile%2Fview%3Fid%3D75175642%26trk%3Dtab_pro [image: Blogger]http://s.wisestamp.com/links?url=http%3A%2F%2Fpushpalankajaya.blogspot.com%2F [image: SlideShare]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.slideshare.net%2FPushpalanka Mobile: +94779716248 http://s.wisestamp.com/links?url=http%3A%2F%2Fr1.wisestamp.com%2Fr%2Flanding%3Fu%3Dc984892c0c4ca423%26v%3D3.13.2%26t%3D1361257731639%26promo%3D10%26dest%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%253Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10 On Fri, Jul 26, 2013 at 3:28 PM, Sinthuja Ragendran sinth...@wso2.comwrote: Congratz!! :) Thanks, Sinthuja. On Fri, Jul 26, 2013 at 2:28 PM, Kasun Indrasiri ka...@wso2.comwrote: Hi Folks, Its my pleasure to welcome Vanjikumaran Sivajothy as a WSO2 Committer. He has contributed to the recent ESB release and has involved in bug fixes/features implementation the 4.7 release. Vanji, welcome aboard and keep up the good work. Thanks. -- Kasun Indrasiri Software Architect WSO2, Inc.; http://wso2.com lean.enterprise.middleware cell: +94 71 536 4128 Blog : http://kasunpanorama.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Sinthuja Rajendran* Software Engineer http://wso2.com/ WSO2, Inc.:http://wso2.com Blog: http://sinthu-rajan.blogspot.com/ Mobile: +94774273955 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Asanka Sanjeewa* Senior Software Engineer Mobile: +94772532924 WSO2 Inc. http://wso2.com/ Blog: http://asanka-tech-blog.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 email: punn...@wso2.com lal...@wso2.com http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 App Factory 1.0.0 Released!
Hi Nirdesha/Dasun, There is no reference in [3] to [1]. We need to publish it. Please do the needful. [1] http://docs.wso2.org/wiki/display/AF100/WSO2+App+Factory+Documentation [3] http://wso2.com/cloud/app-factory/ On Wed, Jul 10, 2013 at 2:52 PM, Shamika Ariyawansa sham...@wso2.comwrote: Hi All, WSO2 App Factory team is pleased to announce the general availability (GA) of WSO2 App Factory 1.0.0. App Factory revolutionizes the way applications are developed. It is a shared, elastic, and self-service enterprise platform that supports applications from inception to retirement. It is designed for multiple project teams to collaboratively write applications and manage their life cycle stages in a shared, regulated, and controlled manner. App Factory 1.0.0 is now available at https://appfactorypreview.wso2.com/ consists with following features. - Provision Application Projects - Self-service provisioning of project workspaces and resources including source repository, issue tracker and build configuration - Invite developers, testers, and DevOps (operation engineers) into application workspace - On-demand access to development, test, and production run-time Clouds - Accelerate Development Iterations - Rapidly build Web applications, JAX-WS or JAX-RS services, business processes and back-ends for mobile applications - Automate and integrate continuous build, continuous test, and continuous deployment activities - Perform one-click actions for code branching, versioning, and promotion - Access shared source repositories, build farms, testing servers and run-time environments - Increase best practice adoption and establish agile application governance processes - Establish application development process phases, checkpoints, or approval workflows - Enforce coding conventions and best practices via automated tools, automated quality assurance, and security testing - Promote managed API subscriptions and access - Validate introduction of 3rd party libraries and license compliance - Manage application scaling parameters across development, testing, staging and production environments - Adopt a Cloud Platform and offer PaaS - Offer a shared, on-demand elastic infrastructure that scales - Deploy applications onto the complete WSO2 middleware platform, non-Java language containers (PHP), and 3rd party products (JBoss Application Server, Tomcat) - Obtain an Integrated DevOps Experience - Incorporates full lifecycle tooling, workflow, and reports for developers, quality assurance members, and operations engineers. - Automate and integrate continuous build, continuous test, and continuous deployment activities - Encompasses complete development lifecycle, from source code checkout, code development, check-in, and push up stream - Incorporates functional, non-functional, regression, and performance test activities - Management Dashboards for CXOs Project Managers - Ability to develop dashboards provide visibility into application status, application health, application service assets, application activity, and application lifecycle stage progress - DevOps KPI monitoring via integration with WSO2 Business Activity Monitor - Project managers can monitor and receive notifications based on KPIs - Customize to follow your best practices and standards - Configure application development process phases, checkpoints, or approval workflows - Specify custom lifecycle stages in addition to pre-defined Development, Testing, and Production phases - Integrates with Your Existing Infrastructure - Integrates with your existing software development lifecycle (SDLC) tools including SVN, JIRA, Git, Maven, Jenkins, Bamboo and Clover - Integrates with existing user repositories via LDAP or Microsoft Active Directory WSO2 App Factory documentation is available at [1]. Your feedback is most welcome !!! Please report all the Jiras at [2] and specify the version as 1.0.0 . Thank you, App Factory Team [1] http://docs.wso2.org/wiki/display/AF100/WSO2+App+Factory+Documentation [2] https://wso2.org/jira/browse/APPFAC -- Shamika Ariyawansa Senior Software Engineer Mob:+ 94 772929486 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 email: punn...@wso2.com lal...@wso2.com http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Asanka Dissanayake
Congratz Asanka... On Wed, Jul 3, 2013 at 1:40 PM, Ramith Jayasinghe ram...@wso2.com wrote: Congrats ! On Wed, Jul 3, 2013 at 1:37 PM, Dimuthu Leelarathne dimut...@wso2.comwrote: Hi Asanka, Congratulations! It is with great pleasure that we welcome you as a WSO2 committer. Thank you for your contributions. thanks and best regards, Dimuthu -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Ramith Jayasinghe Technical Lead WSO2 Inc., http://wso2.com lean.enterprise.middleware E: ram...@wso2.com P: +94 776715671 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 email: punn...@wso2.com lal...@wso2.com http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] (APPFAC-987) Default Application must be removed from API Store
I am going to remove the 'DefaultApplication' item from Application drop down in API manager in App Factory. The approach i thought is to call the removeApplication action in store/site/blocks/application/application-remove/ajax/application-remove.jag from App Factory org.wso2.carbon.appfactory.apimanager.integration component by passing the 'DefaultApplication' as the application parameter. Please let me know if there is any issue if i remove this DafaultApplication from API Manager. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 email: punn...@wso2.com lal...@wso2.com http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] (APPFAC-987) Default Application must be removed from API Store
hi Sumedha, In App Factory, when we create an application and if it requires to subscribe to an API, then that application will be displayed in Application dropdown in API-M. But App factory does not have any default applications named 'DefaultApplication'. Therefore it is not required in API-M front as well. On Fri, May 31, 2013 at 1:36 PM, Sumedha Rubasinghe sume...@wso2.comwrote: We added this to API Manager so that users don't have to perform the additional step of creating an application. Is this due to AF already creating an application programmatically? On Fri, May 31, 2013 at 1:30 PM, Punnadi Gunarathna punn...@wso2.comwrote: I am going to remove the 'DefaultApplication' item from Application drop down in API manager in App Factory. The approach i thought is to call the removeApplication action in store/site/blocks/application/application-remove/ajax/application-remove.jag from App Factory org.wso2.carbon.appfactory.apimanager.integration component by passing the 'DefaultApplication' as the application parameter. Please let me know if there is any issue if i remove this DafaultApplication from API Manager. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 email: punn...@wso2.com lal...@wso2.com http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- /sumedha m: +94 773017743 b : bit.ly/sumedha -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 email: punn...@wso2.com lal...@wso2.com http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] (APPFAC-987) Default Application must be removed from API Store
Hi Sumedha, As Danushka mentioned, is there a default configuration to do this or can that be done in future? On Fri, May 31, 2013 at 3:39 PM, Danushka Fernando danush...@wso2.comwrote: Hi, Rather than deleting it cant we make it stop creating. If AM has some configuration or something for that we can change that. I think that approach is better than deleting it. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, May 31, 2013 at 2:29 PM, Punnadi Gunarathna punn...@wso2.comwrote: hi Sumedha, In App Factory, when we create an application and if it requires to subscribe to an API, then that application will be displayed in Application dropdown in API-M. But App factory does not have any default applications named 'DefaultApplication'. Therefore it is not required in API-M front as well. On Fri, May 31, 2013 at 1:36 PM, Sumedha Rubasinghe sume...@wso2.comwrote: We added this to API Manager so that users don't have to perform the additional step of creating an application. Is this due to AF already creating an application programmatically? On Fri, May 31, 2013 at 1:30 PM, Punnadi Gunarathna punn...@wso2.comwrote: I am going to remove the 'DefaultApplication' item from Application drop down in API manager in App Factory. The approach i thought is to call the removeApplication action in store/site/blocks/application/application-remove/ajax/application-remove.jag from App Factory org.wso2.carbon.appfactory.apimanager.integration component by passing the 'DefaultApplication' as the application parameter. Please let me know if there is any issue if i remove this DafaultApplication from API Manager. -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 email: punn...@wso2.com lal...@wso2.com http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- /sumedha m: +94 773017743 b : bit.ly/sumedha -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 email: punn...@wso2.com lal...@wso2.com http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 email: punn...@wso2.com lal...@wso2.com http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] platform/branches/4.1.0/dependencies/orbit/juddi/3.1.5-wso2v1/pom.xml has 1 error
Hi, I cannot build https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/dependencies/orbit/juddi/3.1.5-wso2v1as it gives the below error: The project org.apache.juddi.wso2:juddi:3.1.5.wso2v1 (/home/punnadi/wso2/source/platform/4.1.0/dependencies/orbit/juddi/3.1.5-wso2v1/pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact org.wso2.carbon:carbon-dependents:pom:4.1.0 in central ( http://repo.maven.apache.org/maven2) and 'parent.relativePath' points at wrong local POM @ line 22, column 13 - [Help 2] I was able to correct it by replacing the below changes: parent groupIdorg.wso2.carbon/groupId artifactIdcarbon-dependents/artifactId version4.1.0/version relativePath../../../pom.xml/relativePath /parent -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 email: punn...@wso2.com lal...@wso2.com http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] attachment-management.xml does not exists
Hi Nandika, When we build the Appfactory product we encounter below issue: Installing org.wso2.carbon.registry.commentstream.feature.group 1.0.0. Installation failed. An error occurred while configuring the installed items session context was:(profile=WSO2CarbonProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, operand=null -- [R]org.wso2.carbon.attachment.mgt.server.feature.group 4.1.2, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CopyAction). I/O Error while copying /home/punnadi/wso2/source/platform/4.1.0/products/appfactory/1.0.0/modules/p2-profile-gen/product/target/wso2carbon-core-4.1.0/repository/components/features/org.wso2.carbon.attachment.mgt.server_4.1.2/conf/attachment-management.xml - see details. Caused by: java.io.IOException: Source: /home/punnadi/wso2/source/platform/4.1.0/products/appfactory/1.0.0/modules/p2-profile-gen/product/target/wso2carbon-core-4.1.0/repository/components/features/org.wso2.carbon.attachment.mgt.server_4.1.2/conf/attachment-management.xml does not exists Also in the https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/features/attachment-mgt/org.wso2.carbon.attachment.mgt.server.feature/4.1.2/resources/conflocation, there is no file named attachment-management.xml. Can you please have a look? -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 email: punn...@wso2.com lal...@wso2.com http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev