[Carbon-dev] [GS] gadget uploading with a zip file

2011-11-03 Thread Samisa Abeysinghe
What should be the content of the zip? Just the zip of gadget XML? I ziped up the gadget and JS and it seems not working :( I assumed it to expect it to be a zip of the gaget package. Thanks, Samisa... Samisa Abeysinghe VP Engineering WSO2 Inc. http://wso2.com http://wso2.org

Re: [Carbon-dev] [GS] gadget uploading with a zip file

2011-11-03 Thread Yumani Ranaweera
On Thu, Nov 3, 2011 at 12:14 PM, Samisa Abeysinghe sam...@wso2.com wrote: What should be the content of the zip? Just the zip of gadget XML? I ziped up the gadget and JS and it seems not working :( I assumed it to expect it to be a zip of the gaget package. This is a bug. Reported in [1].

Re: [Carbon-dev] [GS] gadget uploading with a zip file

2011-11-03 Thread Samisa Abeysinghe
And I have to add gadget and JS used by gadget separately, and manually using registry browser :( I am using 3 JS files in my gaget and I have to use 4 uploads to upload content for one gadget - am I doing this right? Is there a better way? On Thu, Nov 3, 2011 at 12:14 PM, Samisa Abeysinghe

Re: [Carbon-dev] [GS] gadget uploading with a zip file

2011-11-03 Thread Yumani Ranaweera
On Thu, Nov 3, 2011 at 12:23 PM, Yumani Ranaweera yum...@wso2.com wrote: On Thu, Nov 3, 2011 at 12:14 PM, Samisa Abeysinghe sam...@wso2.comwrote: What should be the content of the zip? Just the zip of gadget XML? I ziped up the gadget and JS and it seems not working :( I assumed it to

Re: [Carbon-dev] [GS] gadget uploading with a zip file

2011-11-03 Thread Samisa Abeysinghe
I am using a fresh product pack on local machine. So it cannot be a config issue. On Thu, Nov 3, 2011 at 12:26 PM, Yumani Ranaweera yum...@wso2.com wrote: On Thu, Nov 3, 2011 at 12:23 PM, Yumani Ranaweera yum...@wso2.com wrote: On Thu, Nov 3, 2011 at 12:14 PM, Samisa Abeysinghe

[Carbon-dev] [GS] gadget content gets corrupted time to time, when uploading from a file

2011-11-03 Thread Samisa Abeysinghe
I am using a fresh GS pack on Windows. I edit the gadget in eclipse XML editor (not CS., just the bare editor) and upload the GS and I get invalid characters in the gadget source time to time and the server fails to load render the gadget. But when I copy the same source from Eclipse editor, and

Re: [Carbon-dev] [GS] gadget uploading with a zip file

2011-11-03 Thread Samisa Abeysinghe
I have the same format inside the zip, except that, I have js files inside a folder called js. Does having sub-folders work? if not, then it is a bug - as having scripts in a sub folder is std practice. On Thu, Nov 3, 2011 at 12:36 PM, Yumani Ranaweera yum...@wso2.com wrote: I think bundling

Re: [Carbon-dev] [GS] gadget uploading with a zip file

2011-11-03 Thread Lalaji Sureshika
Hi, On Thu, Nov 3, 2011 at 11:40 AM, Samisa Abeysinghe sam...@wso2.com wrote: I have the same format inside the zip, except that, I have js files inside a folder called js. Does having sub-folders work? if not, then it is a bug - as having scripts in a sub folder is std practice.

[Carbon-dev] [GS] How can I upload a set of related gadgets together?

2011-11-03 Thread Samisa Abeysinghe
I have a bunch of gadgets that use the same JS scripts. I would like to upload all these gadgets using one zip file. Is that possible? Thanks, Samisa... Samisa Abeysinghe VP Engineering WSO2 Inc. http://wso2.com http://wso2.org ___ Carbon-dev mailing

Re: [Carbon-dev] [GS] gadget uploading with a zip file

2011-11-03 Thread Samisa Abeysinghe
On Thu, Nov 3, 2011 at 12:44 PM, Lalaji Sureshika lal...@wso2.com wrote: Hi, On Thu, Nov 3, 2011 at 11:40 AM, Samisa Abeysinghe sam...@wso2.comwrote: I have the same format inside the zip, except that, I have js files inside a folder called js. Does having sub-folders work? if not, then

[Carbon-dev] [GS] If I rename the gadget resource, the gadget is lost

2011-11-03 Thread Samisa Abeysinghe
Is this by design or a bug? Thanks, Samisa... Samisa Abeysinghe VP Engineering WSO2 Inc. http://wso2.com http://wso2.org ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Re: [Carbon-dev] [GS] How can I upload a set of related gadgets together?

2011-11-03 Thread Ranga Siriwardena
Hi, On Thu, Nov 3, 2011 at 12:48 PM, Samisa Abeysinghe sam...@wso2.com wrote: I have a bunch of gadgets that use the same JS scripts. I would like to upload all these gadgets using one zip file. Is that possible? Unfortunately that is not supported at the moment and you can have only one

Re: [Carbon-dev] [GS] If I rename the gadget resource, the gadget is lost

2011-11-03 Thread Ranga Siriwardena
Hi Samisa, On Thu, Nov 3, 2011 at 1:30 PM, Samisa Abeysinghe sam...@wso2.com wrote: Is this by design or a bug? What do you mean by renaming gadget resource? Did you mean, renaming gadget.xml from registry browser? Thanks, Samisa... Samisa Abeysinghe VP Engineering WSO2 Inc.

Re: [Carbon-dev] Trunk build [ was Re: [Architecture] Running Tomcat within OSGi]

2011-11-03 Thread Sanjeewa Malalgoda
Anyone have idea why we are getting following error. Shariq also got same error. This comes when we are trying to build stratos manager. [ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.4-SNAPSHOT:p2-repo-gen (2-p2-repo-generation) on project wso2stratos-manager-profile-gen: P2

[Carbon-dev] Status of JavaScript Appdev Project

2011-11-03 Thread Ruchira Wageesha
Hi, I have added all existing hostobjects(except global System HO) of WSO2 Mashup Server to the Appdev environment. Several hostobjects such as WSRequest, was modified to act independently of carbon environment. XHR hostobject was also added which allows you to call sync/async HTTP calls using

Re: [Carbon-dev] [GS] How can I upload a set of related gadgets together?

2011-11-03 Thread Afkham Azeez
On Thu, Nov 3, 2011 at 1:36 PM, Ranga Siriwardena ra...@wso2.com wrote: Hi, On Thu, Nov 3, 2011 at 12:48 PM, Samisa Abeysinghe sam...@wso2.comwrote: I have a bunch of gadgets that use the same JS scripts. I would like to upload all these gadgets using one zip file. Is that possible?

Re: [Carbon-dev] Trunk build [ was Re: [Architecture] Running Tomcat within OSGi]

2011-11-03 Thread Harshana Martin
Hi All, On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando prad...@wso2.com wrote: Hi, looks like hackathon is going well. Its better if we can achieve the following items in this hackathon. (I think some of the things are already underway). * trunk build from the root pom without errors.

Re: [Carbon-dev] [GS] Add gadget does not support adding Gadget using source

2011-11-03 Thread Yumani Ranaweera
On Mon, Oct 31, 2011 at 3:20 PM, Lalaji Sureshika lal...@wso2.com wrote: Hi, Please see the inline comments. On Mon, Oct 31, 2011 at 1:22 PM, Samisa Abeysinghe sam...@wso2.comwrote: Add gadgets does not seem to be really working. Only one gadget can be added at a time. I thought we

Re: [Carbon-dev] Trunk build [ was Re: [Architecture] Running Tomcat within OSGi]

2011-11-03 Thread Ranga Siriwardena
Hi, I tried to build the trunk from root level and got following error as soon as build started. Any idea about this? [ERROR] The build could not read 5 projects - [Help 1] [ERROR] [ERROR] The project org.wso2.carbon:org.wso2.carbon.governance.samples.lcm:3.2.0-SNAPSHOT

Re: [Carbon-dev] Trunk build [ was Re: [Architecture] Running Tomcat within OSGi]

2011-11-03 Thread Harshana Martin
Hi Ranga, I did not get this but this is because of the missing relativePath element of these poms. I'll look in to this. Thanks and Regards, Harshana On Thu, Nov 3, 2011 at 6:34 PM, Ranga Siriwardena ra...@wso2.com wrote: Hi, I tried to build the trunk from root level and got following

Re: [Carbon-dev] Trunk build [ was Re: [Architecture] Running Tomcat within OSGi]

2011-11-03 Thread Supun Malinga
On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando prad...@wso2.com wrote: Hi, looks like hackathon is going well. Its better if we can achieve the following items in this hackathon. (I think some of the things are already underway). * trunk build from the root pom without errors. - (i

Re: [Carbon-dev] Trunk build [ was Re: [Architecture] Running Tomcat within OSGi]

2011-11-03 Thread Pradeep Fernando
On Thu, Nov 3, 2011 at 11:36 AM, Supun Malinga sup...@wso2.com wrote: On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando prad...@wso2.comwrote: Hi, looks like hackathon is going well. Its better if we can achieve the following items in this hackathon. (I think some of the things are

Re: [Carbon-dev] Trunk build [ was Re: [Architecture] Running Tomcat within OSGi]

2011-11-03 Thread Harshana Martin
On Thu, Nov 3, 2011 at 11:15 PM, Pradeep Fernando prad...@wso2.com wrote: On Thu, Nov 3, 2011 at 11:36 AM, Supun Malinga sup...@wso2.com wrote: On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando prad...@wso2.comwrote: Hi, looks like hackathon is going well. Its better if we can achieve

Re: [Carbon-dev] Trunk build [ was Re: [Architecture] Running Tomcat within OSGi]

2011-11-03 Thread Supun Malinga
On Thu, Nov 3, 2011 at 11:18 PM, Harshana Martin harsh...@wso2.com wrote: On Thu, Nov 3, 2011 at 11:15 PM, Pradeep Fernando prad...@wso2.comwrote: On Thu, Nov 3, 2011 at 11:36 AM, Supun Malinga sup...@wso2.com wrote: On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando

Re: [Carbon-dev] Trunk build [ was Re: [Architecture] Running Tomcat within OSGi]

2011-11-03 Thread Pradeep Fernando
On Thu, Nov 3, 2011 at 11:48 AM, Harshana Martin harsh...@wso2.com wrote: On Thu, Nov 3, 2011 at 11:15 PM, Pradeep Fernando prad...@wso2.comwrote: On Thu, Nov 3, 2011 at 11:36 AM, Supun Malinga sup...@wso2.com wrote: On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando

Re: [Carbon-dev] Trunk build [ was Re: [Architecture] Running Tomcat within OSGi]

2011-11-03 Thread Harshana Martin
On Thu, Nov 3, 2011 at 11:25 PM, Supun Malinga sup...@wso2.com wrote: On Thu, Nov 3, 2011 at 11:18 PM, Harshana Martin harsh...@wso2.comwrote: On Thu, Nov 3, 2011 at 11:15 PM, Pradeep Fernando prad...@wso2.comwrote: On Thu, Nov 3, 2011 at 11:36 AM, Supun Malinga sup...@wso2.com wrote:

Re: [Carbon-dev] Trunk build [ was Re: [Architecture] Running Tomcat within OSGi]

2011-11-03 Thread Harshana Martin
On Thu, Nov 3, 2011 at 11:27 PM, Pradeep Fernando prad...@wso2.com wrote: On Thu, Nov 3, 2011 at 11:48 AM, Harshana Martin harsh...@wso2.comwrote: On Thu, Nov 3, 2011 at 11:15 PM, Pradeep Fernando prad...@wso2.comwrote: On Thu, Nov 3, 2011 at 11:36 AM, Supun Malinga sup...@wso2.com

Re: [Carbon-dev] Trunk build [ was Re: [Architecture] Running Tomcat within OSGi]

2011-11-03 Thread Harshana Martin
On Thu, Nov 3, 2011 at 11:27 PM, Pradeep Fernando prad...@wso2.com wrote: On Thu, Nov 3, 2011 at 11:48 AM, Harshana Martin harsh...@wso2.comwrote: On Thu, Nov 3, 2011 at 11:15 PM, Pradeep Fernando prad...@wso2.comwrote: On Thu, Nov 3, 2011 at 11:36 AM, Supun Malinga sup...@wso2.com

Re: [Carbon-dev] Trunk build [ was Re: [Architecture] Running Tomcat within OSGi]

2011-11-03 Thread Pradeep Fernando
On Thu, Nov 3, 2011 at 12:23 PM, Harshana Martin harsh...@wso2.com wrote: On Thu, Nov 3, 2011 at 11:27 PM, Pradeep Fernando prad...@wso2.comwrote: On Thu, Nov 3, 2011 at 11:48 AM, Harshana Martin harsh...@wso2.comwrote: On Thu, Nov 3, 2011 at 11:15 PM, Pradeep Fernando

[Carbon-dev] Migrationg trunk dependencies {was:Re: Trunk build [ was Re: [Architecture] Running Tomcat within OSGi]}

2011-11-03 Thread Supun Malinga
Hi all, On Fri, Nov 4, 2011 at 12:02 AM, Pradeep Fernando prad...@wso2.com wrote: On Thu, Nov 3, 2011 at 12:23 PM, Harshana Martin harsh...@wso2.comwrote: On Thu, Nov 3, 2011 at 11:27 PM, Pradeep Fernando prad...@wso2.comwrote: On Thu, Nov 3, 2011 at 11:48 AM, Harshana Martin

Re: [Carbon-dev] Trunk build [ was Re: [Architecture] Running Tomcat within OSGi]

2011-11-03 Thread Harshana Martin
Hi, I had a look at this and this is due to invalid parent declarations for those poms. For example, org.wso2.carbon.governance.samples.lcm pom refers the following parent groupIdorg.wso2.carbon/groupId artifactIdgovernance/artifactId version3.2.0-SNAPSHOT/version

Re: [Carbon-dev] [Architecture] Status of JavaScript Appdev Project

2011-11-03 Thread Sanjiva Weerawarana
Excellent progress Ruchira. We need to have a discussion on tooling .. can you please grab me for 5-10 mins today? Lets come up with a plan to build a plan :). On the JSS model below, what happens to any code that's in the file outside of any function definitions? Also, should we consider

Re: [Carbon-dev] [GS] How can I upload a set of related gadgets together?

2011-11-03 Thread Samisa Abeysinghe
On Thu, Nov 3, 2011 at 4:34 PM, Afkham Azeez az...@wso2.com wrote: On Thu, Nov 3, 2011 at 1:36 PM, Ranga Siriwardena ra...@wso2.com wrote: Hi, On Thu, Nov 3, 2011 at 12:48 PM, Samisa Abeysinghe sam...@wso2.comwrote: I have a bunch of gadgets that use the same JS scripts. I would like to

Re: [Carbon-dev] [GS] If I rename the gadget resource, the gadget is lost

2011-11-03 Thread Samisa Abeysinghe
On Thu, Nov 3, 2011 at 1:49 PM, Ranga Siriwardena ra...@wso2.com wrote: Hi Samisa, On Thu, Nov 3, 2011 at 1:30 PM, Samisa Abeysinghe sam...@wso2.com wrote: Is this by design or a bug? What do you mean by renaming gadget resource? Did you mean, renaming gadget.xml from registry browser?

Re: [Carbon-dev] [GS] gadget uploading with a zip file

2011-11-03 Thread Samisa Abeysinghe
I am in the middle of trying out some gadgets. I will try the zip again later. For sure, it did not work in my first attempt. On Thu, Nov 3, 2011 at 1:22 PM, Ranga Siriwardena ra...@wso2.com wrote: Hi Samisa, On Thu, Nov 3, 2011 at 12:49 PM, Samisa Abeysinghe sam...@wso2.comwrote: On

Re: [Carbon-dev] [GS] gadget uploading with a zip file

2011-11-03 Thread Samisa Abeysinghe
On Fri, Nov 4, 2011 at 8:17 AM, Samisa Abeysinghe sam...@wso2.com wrote: I am in the middle of trying out some gadgets. I will try the zip again later. For sure, it did not work in my first attempt. And I meant to say, since it did not work, I went ahead with the manual resource upload

[Carbon-dev] [G-Reg] Can I upload a bunch of resources with a zip file

2011-11-03 Thread Samisa Abeysinghe
I wish I could upload a bunch of resources as a zip. I know it is there for service upload, but I meant for general resource upload. I do not see such an option now. And I wish, the files in the zip become resources and folders collections. Thanks, Samisa... Samisa Abeysinghe VP Engineering

Re: [Carbon-dev] [GS] How can I upload a set of related gadgets together?

2011-11-03 Thread Chathuri Wimalasena
Hi Samisa, GAR mentioned in TOOLS-502 is for Governance Archive. For gadgets it is Dashboard Archive (DAR). DAR support is already there in CS. Thanks and Regards, Chathuri On Fri, Nov 4, 2011 at 8:06 AM, Samisa Abeysinghe sam...@wso2.com wrote: On Thu, Nov 3, 2011 at 4:34 PM, Afkham Azeez

Re: [Carbon-dev] [Architecture] Status of JavaScript Appdev Project

2011-11-03 Thread Ruchira Wageesha
On the JSS model below, what happens to any code that's in the file outside of any function definitions? Any code or function which are outside of doGet, doPost...etc methods will be executed on global scope and can be accessed within doGet(), doPost()... methods. i.e. The *.jss file is

Re: [Carbon-dev] Trunk build [ was Re: [Architecture] Running Tomcat within OSGi]

2011-11-03 Thread Danushka Menikkumbura
Pradeep, It is really worthwhile having a CIS (Jenkins) set up so that you can have integration tests, coverage checks, find bugs, doc generation, etc integrated. If you can host it publicly, then all Carbon committers can have access to it's dashboard and visualize various patterns. It will also

[Carbon-dev] [G-Reg] Why not allow editing media type?

2011-11-03 Thread Samisa Abeysinghe
May be I have asked this question in the past too - but why $subject The use case is, When I load a gadget with an xml file using resource browser, if I forget to change the content type form application/xml to application/vnd.wso2-gadget+xml It would not treat that as a gadget. So I would like

Re: [Carbon-dev] [GS] How can I upload a set of related gadgets together?

2011-11-03 Thread Afkham Azeez
On Fri, Nov 4, 2011 at 8:29 AM, Chathuri Wimalasena chath...@wso2.comwrote: Hi Samisa, GAR mentioned in TOOLS-502 is for Governance Archive. For gadgets it is Dashboard Archive (DAR). DAR support is already there in CS. Sorry, I meant DAR. During WSO2Con 2010, when we were building the

Re: [Carbon-dev] Trunk build [ was Re: [Architecture] Running Tomcat within OSGi]

2011-11-03 Thread Pradeep Fernando
On Thu, Nov 3, 2011 at 9:34 PM, Danushka Menikkumbura danushka.menikkumb...@gmail.com wrote: Pradeep, It is really worthwhile having a CIS (Jenkins) set up so that you can have integration tests, coverage checks, find bugs, doc generation, etc integrated. If you can host it publicly, then

Re: [Carbon-dev] [GS] How can I upload a set of related gadgets together?

2011-11-03 Thread Chathuri Wimalasena
Gadgets created by CS are exported as a DAR file inside a CAR file. When deploying, gadget XML and other resources will be deployed in to /_system/config/repository/gadget-server/gadgets folder. Regards, Chathuri On Fri, Nov 4, 2011 at 9:30 AM, Afkham Azeez az...@wso2.com wrote: On Fri, Nov

Re: [Carbon-dev] Trunk build [ was Re: [Architecture] Running Tomcat within OSGi]

2011-11-03 Thread Danushka Menikkumbura
And you might find [1] quite useful too ;-). [1] - http://www.papercut.com/blog/chris/2011/08/19/who-broke-the-build/ On Fri, Nov 4, 2011 at 9:42 AM, Pradeep Fernando prad...@wso2.com wrote: On Thu, Nov 3, 2011 at 9:34 PM, Danushka Menikkumbura danushka.menikkumb...@gmail.com wrote:

Re: [Carbon-dev] [GS] How can I upload a set of related gadgets together?

2011-11-03 Thread Chathuri Wimalasena
Hi Azeez, With CS 1.0.x, that is not possible. Each and every artifact will reside inside a CAR. But with a new project structure, each and every artifact will be a separate maven project. So you can create the DAR file using maven, if you want DAR only. Regards, Chathuri On Fri, Nov 4, 2011 at

Re: [Carbon-dev] [GS] How can I upload a set of related gadgets together?

2011-11-03 Thread Afkham Azeez
Is there a way to just deploy a DAR only without including it within a CAR. On Fri, Nov 4, 2011 at 9:46 AM, Chathuri Wimalasena chath...@wso2.comwrote: Gadgets created by CS are exported as a DAR file inside a CAR file. When deploying, gadget XML and other resources will be deployed in to

Re: [Carbon-dev] [GS] How can I upload a set of related gadgets together?

2011-11-03 Thread Afkham Azeez
On Fri, Nov 4, 2011 at 10:23 AM, Chathuri Wimalasena chath...@wso2.comwrote: Hi Azeez, With CS 1.0.x, that is not possible. Each and every artifact will reside inside a CAR. But with a new project structure, each and every artifact will be a separate maven project. So you can create the DAR

Re: [Carbon-dev] [Architecture] Status of JavaScript Appdev Project

2011-11-03 Thread Sanjiva Weerawarana
On Fri, Nov 4, 2011 at 8:31 AM, Ruchira Wageesha ruch...@wso2.com wrote: On the JSS model below, what happens to any code that's in the file outside of any function definitions? Any code or function which are outside of doGet, doPost...etc methods will be executed on global scope and can