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

2011-11-03 Thread Ruchira Wageesha
>
> OK so any code outside these functions will get run at the point the code
> is loaded. Do we give any guarantees about that - for example, how often do
> we load that code? Under what conditions do we unload etc.?
>
> Maybe for starters we should say that there must not be any code outside
> of these functions and if you put anything there and it does something that
> your problem/luck and that we do not guarantee how that will hold up in the
> future.
>

At the moment, it doesn't use Rhino's compiled scripts. What it does is
just load the script when a request needs to be served. So, for the best
performance, we have to use compiled scripts.

Currently, the problem of global variable access is there. We need to find
the best solution for it.

Anyway, a compiled script is executed on a given scope. i.e. We need to
pass a toplevel scope into the compiled script when we execute it. So, we
will have to keep a per *.jss scope object in the memory in order to keep
those globally defined variable values.

Again, scope objects in Rhino implement java.io.Serializable interface. So
we can serialize the per *.jss scope and load when ever needed.

regards,
Ruchira
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


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  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 be accessed within doGet(), doPost()...
> methods.
>
> i.e. The *.jss file is first loaded into Rhino engine, which adds all
> toplevel variables/functions into the top level scope. Then, relevant
> doXXX() function will be executed where we can access those toplevel
> variables/functions.
>

OK so any code outside these functions will get run at the point the code
is loaded. Do we give any guarantees about that - for example, how often do
we load that code? Under what conditions do we unload etc.?

Maybe for starters we should say that there must not be any code outside of
these functions and if you put anything there and it does something that
your problem/luck and that we do not guarantee how that will hold up in the
future.

Further, request, response, and session objects are passed as args to the
> doXXX() function, so won't be available to the outside of the function.
>

Yes.

Sanjiva.
-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman & CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
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 Afkham Azeez
On Fri, Nov 4, 2011 at 10:23 AM, Chathuri Wimalasena wrote:

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

I'm not asking specifically about DAR in CS. Originally, Samisa asked
whether he can upload all gadget scripts together. Ranga said it is not
supported in GS. However, you said that CS supports DAR creation. If GS
does not support DARs, then how does this work? So the question is, does GS
support DAR deployment or not.


>
> Regards,
> Chathuri
>
> On Fri, Nov 4, 2011 at 9:52 AM, Afkham Azeez  wrote:
>
>> 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 wrote:
>>
>>> 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  wrote:
>>>


 On Fri, Nov 4, 2011 at 8:29 AM, Chathuri Wimalasena 
 wrote:

> 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
 shopping cart sample, we initially started with the a DAR for the dashboard
 stuff. It did not work, so we ended using gadget XML files stored in the
 registry. Is the DAR stuff working now?


>
> Thanks and Regards,
> Chathuri
>
> On Fri, Nov 4, 2011 at 8:06 AM, Samisa Abeysinghe wrote:
>
>>
>>
>> On Thu, Nov 3, 2011 at 4:34 PM, Afkham Azeez  wrote:
>>
>>>
>>>
>>> On Thu, Nov 3, 2011 at 1:36 PM, Ranga Siriwardena wrote:
>>>
 Hi,

 On Thu, Nov 3, 2011 at 12:48 PM, Samisa Abeysinghe >>> > 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 gadget.xml  for a zip file for the moment. We dont have a
 mechanism to do bulk gadget uploads for the moment. As a workaround 
 you can
 store related resources inside a common collection in registry and 
 refer to
 them from gadgets.

>>>
>>> But the GS team had something called GARs (gadget archives) sometime
>>> back. What happened to that?
>>>
>>
>> GAR is still a road map item on CS 2.0;
>> https://wso2.org/jira/browse/TOOLS-502
>>
>> Thanks,
>> Samisa...
>>
>> Samisa Abeysinghe
>> VP Engineering
>> WSO2 Inc.
>> http://wso2.com
>> http://wso2.org
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * **
 email: **az...@wso2.com* * cell: +94 77 3320919
 blog: **http://blog.afkham.org* *
 twitter: 
 **http://twitter.com/afkham_azeez*
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * **
>> email: **az...@wso2.com* * cell: +94 77 3320919
>> blog: **http://blog.afkham.org* *
>> twitter: **http://twitter.com/afkham_azeez*
>> *
>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>> *
>> *
>> *Lean . Enterprise . Middleware*
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/car

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

> 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  wrote:
>
>>
>>
>> On Fri, Nov 4, 2011 at 8:29 AM, Chathuri Wimalasena wrote:
>>
>>> 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
>> shopping cart sample, we initially started with the a DAR for the dashboard
>> stuff. It did not work, so we ended using gadget XML files stored in the
>> registry. Is the DAR stuff working now?
>>
>>
>>>
>>> Thanks and Regards,
>>> Chathuri
>>>
>>> On Fri, Nov 4, 2011 at 8:06 AM, Samisa Abeysinghe wrote:
>>>


 On Thu, Nov 3, 2011 at 4:34 PM, Afkham Azeez  wrote:

>
>
> On Thu, Nov 3, 2011 at 1:36 PM, Ranga Siriwardena wrote:
>
>> Hi,
>>
>> On Thu, Nov 3, 2011 at 12:48 PM, Samisa Abeysinghe 
>> 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 gadget.xml  for a zip file for the moment. We dont have a
>> mechanism to do bulk gadget uploads for the moment. As a workaround you 
>> can
>> store related resources inside a common collection in registry and refer 
>> to
>> them from gadgets.
>>
>
> But the GS team had something called GARs (gadget archives) sometime
> back. What happened to that?
>

 GAR is still a road map item on CS 2.0;
 https://wso2.org/jira/browse/TOOLS-502

 Thanks,
 Samisa...

 Samisa Abeysinghe
 VP Engineering
 WSO2 Inc.
 http://wso2.com
 http://wso2.org


 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * **
>> email: **az...@wso2.com* * cell: +94 77 3320919
>> blog: **http://blog.afkham.org* *
>> twitter: **http://twitter.com/afkham_azeez*
>> *
>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>> *
>> *
>> *Lean . Enterprise . Middleware*
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* **
email: **az...@wso2.com* * cell: +94 77 3320919
blog: **http://blog.afkham.org* *
twitter: **http://twitter.com/afkham_azeez*
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [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 9:52 AM, Afkham Azeez  wrote:

> 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 wrote:
>
>> 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  wrote:
>>
>>>
>>>
>>> On Fri, Nov 4, 2011 at 8:29 AM, Chathuri Wimalasena 
>>> wrote:
>>>
 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
>>> shopping cart sample, we initially started with the a DAR for the dashboard
>>> stuff. It did not work, so we ended using gadget XML files stored in the
>>> registry. Is the DAR stuff working now?
>>>
>>>

 Thanks and Regards,
 Chathuri

 On Fri, Nov 4, 2011 at 8:06 AM, Samisa Abeysinghe wrote:

>
>
> On Thu, Nov 3, 2011 at 4:34 PM, Afkham Azeez  wrote:
>
>>
>>
>> On Thu, Nov 3, 2011 at 1:36 PM, Ranga Siriwardena wrote:
>>
>>> Hi,
>>>
>>> On Thu, Nov 3, 2011 at 12:48 PM, Samisa Abeysinghe 
>>> 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 gadget.xml  for a zip file for the moment. We dont have a
>>> mechanism to do bulk gadget uploads for the moment. As a workaround you 
>>> can
>>> store related resources inside a common collection in registry and 
>>> refer to
>>> them from gadgets.
>>>
>>
>> But the GS team had something called GARs (gadget archives) sometime
>> back. What happened to that?
>>
>
> GAR is still a road map item on CS 2.0;
> https://wso2.org/jira/browse/TOOLS-502
>
> Thanks,
> Samisa...
>
> Samisa Abeysinghe
> VP Engineering
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>

 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * **
>>> email: **az...@wso2.com* * cell: +94 77 3320919
>>> blog: **http://blog.afkham.org* *
>>> twitter: **http://twitter.com/afkham_azeez*
>>> *
>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>> *
>>> *
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * **
> email: **az...@wso2.com* * cell: +94 77 3320919
> blog: **http://blog.afkham.org* *
> twitter: **http://twitter.com/afkham_azeez*
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


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

>
>
> 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 all Carbon committers can
>> have access to it's dashboard and visualize various patterns. It will also
>> help you detect all sorts of issues early preventing you from wasting time
>> on build breaks, etc when a release is around the corner.
>>
>
>
> yes you are right. we are gonna have a CI server this time. Actually we
> had a working one. But for some other reason, we had to shut it down.
>
> thanks,
> --Pradeep
>
>
>>
>> If you already have something like that set up please ignore this mail.
>>
>> Thanks,
>> Danushka
>>
>> On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando 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 guess this is
>>> working)
>>> * moving all products to maven3 build (carbon, as, gs are done as of now)
>>> * create a new profile for greg doc generation process since it takes a
>>> lot of time, and we dont want the doc generation in our day to day build.
>>> (or else we should find a solution for that blacklisting thing)
>>> * upgrade the trunk version, 3.2.0-SNAPSHOT to 4.0.0-SNAPSHOT (this is a
>>> grep/sed)
>>> * branch out new dependencies and make sure they don't break the current
>>> build (right now we are pointing to 3.2.0 branch)
>>> *Set up a CI server
>>>
>>>
>>> thanks,
>>> --Pradeep
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Pradeep Fernando
> Software Engineer
> WSO2 Inc; http://wso2.com/
>
> blog: http://pradeepfernando.blogspot.com/
> m: +94776603662
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
___
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 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  wrote:

>
>
> On Fri, Nov 4, 2011 at 8:29 AM, Chathuri Wimalasena wrote:
>
>> 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
> shopping cart sample, we initially started with the a DAR for the dashboard
> stuff. It did not work, so we ended using gadget XML files stored in the
> registry. Is the DAR stuff working now?
>
>
>>
>> Thanks and Regards,
>> Chathuri
>>
>> On Fri, Nov 4, 2011 at 8:06 AM, Samisa Abeysinghe wrote:
>>
>>>
>>>
>>> On Thu, Nov 3, 2011 at 4:34 PM, Afkham Azeez  wrote:
>>>


 On Thu, Nov 3, 2011 at 1:36 PM, Ranga Siriwardena wrote:

> Hi,
>
> On Thu, Nov 3, 2011 at 12:48 PM, Samisa Abeysinghe 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 gadget.xml  for a zip file for the moment. We dont have a
> mechanism to do bulk gadget uploads for the moment. As a workaround you 
> can
> store related resources inside a common collection in registry and refer 
> to
> them from gadgets.
>

 But the GS team had something called GARs (gadget archives) sometime
 back. What happened to that?

>>>
>>> GAR is still a road map item on CS 2.0;
>>> https://wso2.org/jira/browse/TOOLS-502
>>>
>>> Thanks,
>>> Samisa...
>>>
>>> Samisa Abeysinghe
>>> VP Engineering
>>> WSO2 Inc.
>>> http://wso2.com
>>> http://wso2.org
>>>
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * **
> email: **az...@wso2.com* * cell: +94 77 3320919
> blog: **http://blog.afkham.org* *
> twitter: **http://twitter.com/afkham_azeez*
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


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 all Carbon committers can
> have access to it's dashboard and visualize various patterns. It will also
> help you detect all sorts of issues early preventing you from wasting time
> on build breaks, etc when a release is around the corner.
>


yes you are right. we are gonna have a CI server this time. Actually we had
a working one. But for some other reason, we had to shut it down.

thanks,
--Pradeep


>
> If you already have something like that set up please ignore this mail.
>
> Thanks,
> Danushka
>
> On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando 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 guess this is
>> working)
>> * moving all products to maven3 build (carbon, as, gs are done as of now)
>> * create a new profile for greg doc generation process since it takes a
>> lot of time, and we dont want the doc generation in our day to day build.
>> (or else we should find a solution for that blacklisting thing)
>> * upgrade the trunk version, 3.2.0-SNAPSHOT to 4.0.0-SNAPSHOT (this is a
>> grep/sed)
>> * branch out new dependencies and make sure they don't break the current
>> build (right now we are pointing to 3.2.0 branch)
>> *Set up a CI server
>>
>>
>> thanks,
>> --Pradeep
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Pradeep Fernando
Software Engineer
WSO2 Inc; http://wso2.com/

blog: http://pradeepfernando.blogspot.com/
m: +94776603662
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [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 wrote:

> 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 shopping
cart sample, we initially started with the a DAR for the dashboard stuff.
It did not work, so we ended using gadget XML files stored in the registry.
Is the DAR stuff working now?


>
> Thanks and Regards,
> Chathuri
>
> On Fri, Nov 4, 2011 at 8:06 AM, Samisa Abeysinghe  wrote:
>
>>
>>
>> On Thu, Nov 3, 2011 at 4:34 PM, Afkham Azeez  wrote:
>>
>>>
>>>
>>> On Thu, Nov 3, 2011 at 1:36 PM, Ranga Siriwardena wrote:
>>>
 Hi,

 On Thu, Nov 3, 2011 at 12:48 PM, Samisa Abeysinghe 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 gadget.xml  for a zip file for the moment. We dont have a mechanism to
 do bulk gadget uploads for the moment. As a workaround you can store
 related resources inside a common collection in registry and refer to them
 from gadgets.

>>>
>>> But the GS team had something called GARs (gadget archives) sometime
>>> back. What happened to that?
>>>
>>
>> GAR is still a road map item on CS 2.0;
>> https://wso2.org/jira/browse/TOOLS-502
>>
>> Thanks,
>> Samisa...
>>
>> Samisa Abeysinghe
>> VP Engineering
>> WSO2 Inc.
>> http://wso2.com
>> http://wso2.org
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* **
email: **az...@wso2.com* * cell: +94 77 3320919
blog: **http://blog.afkham.org* *
twitter: **http://twitter.com/afkham_azeez*
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[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 to edit the content
type and fix it.

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] 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
help you detect all sorts of issues early preventing you from wasting time
on build breaks, etc when a release is around the corner.

If you already have something like that set up please ignore this mail.

Thanks,
Danushka

On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando  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 guess this is working)
> * moving all products to maven3 build (carbon, as, gs are done as of now)
> * create a new profile for greg doc generation process since it takes a
> lot of time, and we dont want the doc generation in our day to day build.
> (or else we should find a solution for that blacklisting thing)
> * upgrade the trunk version, 3.2.0-SNAPSHOT to 4.0.0-SNAPSHOT (this is a
> grep/sed)
> * branch out new dependencies and make sure they don't break the current
> build (right now we are pointing to 3.2.0 branch)
> *Set up a CI server
>
>
> thanks,
> --Pradeep
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [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 first loaded into Rhino engine, which adds all
toplevel variables/functions into the top level scope. Then, relevant
doXXX() function will be executed where we can access those toplevel
variables/functions.

Further, request, response, and session objects are passed as args to the
doXXX() function, so won't be available to the outside of the function.

regards,
Ruchira
___
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 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  wrote:

>
>
> On Thu, Nov 3, 2011 at 4:34 PM, Afkham Azeez  wrote:
>
>>
>>
>> On Thu, Nov 3, 2011 at 1:36 PM, Ranga Siriwardena  wrote:
>>
>>> Hi,
>>>
>>> On Thu, Nov 3, 2011 at 12:48 PM, Samisa Abeysinghe 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 gadget.xml  for a zip file for the moment. We dont have a mechanism to
>>> do bulk gadget uploads for the moment. As a workaround you can store
>>> related resources inside a common collection in registry and refer to them
>>> from gadgets.
>>>
>>
>> But the GS team had something called GARs (gadget archives) sometime
>> back. What happened to that?
>>
>
> GAR is still a road map item on CS 2.0;
> https://wso2.org/jira/browse/TOOLS-502
>
> Thanks,
> Samisa...
>
> Samisa Abeysinghe
> VP Engineering
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[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
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] gadget uploading with a zip file

2011-11-03 Thread Samisa Abeysinghe
On Fri, Nov 4, 2011 at 8:17 AM, Samisa Abeysinghe  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 path, and now the stuff are working with the setup. I have
to revert back to try the zip again.

I may try the zip you sent later.


>
> On Thu, Nov 3, 2011 at 1:22 PM, Ranga Siriwardena  wrote:
>
>> Hi Samisa,
>>
>> On Thu, Nov 3, 2011 at 12:49 PM, Samisa Abeysinghe wrote:
>>
>>>
>>>
>>> On Thu, Nov 3, 2011 at 12:44 PM, Lalaji Sureshika wrote:
>>>
 Hi,

 On Thu, Nov 3, 2011 at 11:40 AM, Samisa Abeysinghe 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.
>

 Uploading gadget zip files with having sub folders is working.I tested
 this in SLive dev environment now and it works.My gadget sample contains
 gadget.xml file+thumbnail folder[with images] .

>>>
>>> Then this must be  Windows bug. It is not working on my local setup. I
>>> am using GS product, not the cloud.
>>>
>>
>>
>> You can upload any gadget with all the gadget related resources inside a
>> zip file. That zip file should contain a gadget.xml. And also that zip file
>> can have any resource (JS, CSS, images, Gadget Thumbnail etc..). It is
>> completely OK, to store those resources inside separate folders. Those
>> resources will be stored inside registry according to the same directory
>> structure we defined in the ziped file.
>>
>> So the content of ziped file should have structure like bellow.
>>
>>- gadget.xml (Compulsory)
>>- thumb (Folder which contains thumbnail for this gadget)
>>- anyFolder(Which contains any resource related to the gadget)
>>
>>
>> I Just tried this on windows with GS 1.4.2. And it worked without any
>> issue. Attached the sample JiraGadget which I used to test this.
>>
>>
>>
>>>
>>>

 Thanks;

>
>
>
> On Thu, Nov 3, 2011 at 12:36 PM, Yumani Ranaweera wrote:
>
>> I think bundling everything in a .zip file and uploading to the
>> repository is the right way. Ranga\Lalaji please correct me if there's a
>> better way.
>
>

>
>> I tried uploading a zip content just now with the attached files and
>> it worked.
>>
>> Thanks,
>> Yumani
>>
>>
>> On Thu, Nov 3, 2011 at 12:23 PM, Samisa Abeysinghe 
>> wrote:
>>
>>> 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 
>>> 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.

 Thanks,
 Samisa...

 Samisa Abeysinghe
 VP Engineering
 WSO2 Inc.
 http://wso2.com
 http://wso2.org

  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
>>>
>>>
>>
>>
>> --
>> Yumani Ranaweera
>> WSO2, Inc. - http://wso2.org
>> Email : yum...@wso2.com
>> Cell: +94 077 7795242
>> Blog   : http://yumani.blogspot.com/
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>> Thanks,
> Samisa...
>
> Samisa Abeysinghe
> VP Engineering
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
>
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


 --
 Lalaji Sureshika

 Software Engineer
 WSO2 Inc.



 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

 Thanks,
>>> Samisa...
>>>
>>> Samisa Abeysinghe
>>> VP Engineering
>>> WSO2 Inc.
>>> http://wso2.com
>>> http://wso2.org
>>>
>>>
>>>
>>> __

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

> Hi Samisa,
>
> On Thu, Nov 3, 2011 at 12:49 PM, Samisa Abeysinghe wrote:
>
>>
>>
>> On Thu, Nov 3, 2011 at 12:44 PM, Lalaji Sureshika wrote:
>>
>>> Hi,
>>>
>>> On Thu, Nov 3, 2011 at 11:40 AM, Samisa Abeysinghe 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.

>>>
>>> Uploading gadget zip files with having sub folders is working.I tested
>>> this in SLive dev environment now and it works.My gadget sample contains
>>> gadget.xml file+thumbnail folder[with images] .
>>>
>>
>> Then this must be  Windows bug. It is not working on my local setup. I am
>> using GS product, not the cloud.
>>
>
>
> You can upload any gadget with all the gadget related resources inside a
> zip file. That zip file should contain a gadget.xml. And also that zip file
> can have any resource (JS, CSS, images, Gadget Thumbnail etc..). It is
> completely OK, to store those resources inside separate folders. Those
> resources will be stored inside registry according to the same directory
> structure we defined in the ziped file.
>
> So the content of ziped file should have structure like bellow.
>
>- gadget.xml (Compulsory)
>- thumb (Folder which contains thumbnail for this gadget)
>- anyFolder(Which contains any resource related to the gadget)
>
>
> I Just tried this on windows with GS 1.4.2. And it worked without any
> issue. Attached the sample JiraGadget which I used to test this.
>
>
>
>>
>>
>>>
>>> Thanks;
>>>



 On Thu, Nov 3, 2011 at 12:36 PM, Yumani Ranaweera wrote:

> I think bundling everything in a .zip file and uploading to the
> repository is the right way. Ranga\Lalaji please correct me if there's a
> better way.


>>>

> I tried uploading a zip content just now with the attached files and
> it worked.
>
> Thanks,
> Yumani
>
>
> On Thu, Nov 3, 2011 at 12:23 PM, Samisa Abeysinghe wrote:
>
>> 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 
>> 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.
>>>
>>> Thanks,
>>> Samisa...
>>>
>>> Samisa Abeysinghe
>>> VP Engineering
>>> WSO2 Inc.
>>> http://wso2.com
>>> http://wso2.org
>>>
>>>  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
>>
>>
>
>
> --
> Yumani Ranaweera
> WSO2, Inc. - http://wso2.org
> Email : yum...@wso2.com
> Cell: +94 077 7795242
> Blog   : http://yumani.blogspot.com/
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
> Thanks,
 Samisa...

 Samisa Abeysinghe
 VP Engineering
 WSO2 Inc.
 http://wso2.com
 http://wso2.org



 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


>>>
>>>
>>> --
>>> Lalaji Sureshika
>>>
>>> Software Engineer
>>> WSO2 Inc.
>>>
>>>
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>> Thanks,
>> Samisa...
>>
>> Samisa Abeysinghe
>> VP Engineering
>> WSO2 Inc.
>> http://wso2.com
>> http://wso2.org
>>
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Ranga Siriwardena
> Software Engineer
> WSO2 Inc.
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
> Thanks,
Samisa...

Samisa Abeysinghe
VP Engineering
WSO2 Inc.
http://wso2.com
http://wso2.org

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

> Hi Samisa,
>
> On Thu, Nov 3, 2011 at 1:30 PM, Samisa Abeysinghe  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?
>

Yes. I thought, registry association would follow it up, looks like it does
not.


>
>
>>
>>
>> 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
>>
>>
>
> Thanks.
> Ranga.
> --
> Ranga Siriwardena
> Software Engineer
> WSO2 Inc.
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
> Thanks,
Samisa...

Samisa Abeysinghe
VP Engineering
WSO2 Inc.
http://wso2.com
http://wso2.org
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


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

>
>
> On Thu, Nov 3, 2011 at 1:36 PM, Ranga Siriwardena  wrote:
>
>> Hi,
>>
>> On Thu, Nov 3, 2011 at 12:48 PM, Samisa Abeysinghe 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 gadget.xml  for a zip file for the moment. We dont have a mechanism to
>> do bulk gadget uploads for the moment. As a workaround you can store
>> related resources inside a common collection in registry and refer to them
>> from gadgets.
>>
>
> But the GS team had something called GARs (gadget archives) sometime back.
> What happened to that?
>

GAR is still a road map item on CS 2.0;
https://wso2.org/jira/browse/TOOLS-502

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] [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 placing JS files that execute on the server like
this in a separate location rather than use a different extension? That's
the model with servlets - and its useful and necessary when the server side
code starts importing other stuff to use. We could simply use "WEB-INF" too
as that special directory ..

Sanjiva.

On Thu, Nov 3, 2011 at 2:29 PM, Ruchira Wageesha  wrote:

> 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 httpcore-nio.
>
> For the *.jss stuff, JSON support was also implemented. In a *.jss, we can
> implement doGet, doPost etc. methods which corresponds to relevant HTTP
> methods. So, when an HTTP request comes to a *.jss file, then request will
> be dispatched to the relavant JavaScript method in the *.jss file. There,
> you have access to the *request*, *response* and *session* objects.
>
> If the request content type is json, then we can get content as a JSON by
> accessing "*request.content*" property. Further, you can get any
> parameters posted with the request by calling *request.getParameter()*method.
>
> When we returning from a *.jss, you can either return directly a JSON
> object which will be serialized and send to the client as a JSON content.
> If you want, you can set custom headers to the response object and put
> content using *response.write()* method. A sample *.jss content can be
> found at the bottom.
>
> Further, a new Rhino engine was created which allows to keep different top
> level scopes for different envirenments. i.e. now we can allow to plug, any
> product specific, tenant specific Hostobjects without affecting others.
> Later this will be integrated into javax.script API.
>
> In order to allow database calls, php-mysql api was proposed. But, it
> doesn't seem like it utilizes Object Orientation which can be effectively
> used in JavaScript in order to make it easier for the developer. php-mysql
> api has a functional programming model. Also, we need to allow users to do
> async database calls. i.e. register a function which will get executed once
> the database return the result set. So, it would be better to have an API
> as in XHR.
>
> I will send a separate mail with a proposed mysql api covering above
> requirements.
>
> Following is the current request, response, session object APIs which
> corresponds to relavant Java methods.
>
> *session object API*
>
> readonly property number created
> readonly property number lastAccessed
> readonly property isNew
> property maxInactive
>
>
> void put(string key, object value)
> object get(string key)
> void invalidate()
>
> *request object API*
>
> readonly property object content //this will return string content or json
> content depending on the content type
> readonly property string method
> readonly property string protocol
> readonly property string queryString
> readonly property string contentType
> readonly property number contentLength
>
> string getHeader(string name)
> string getParameter(string name)
>
> *response object API*
>
> property string content
> property string contentType
> property number status
>
> void addHeader(string name, string value)
> void getHeader(string name)
> void write(object content) // JSON objects will be serialized to strings
> void sendError(number code, string message)
> void sendRedirect(string url)
>
>
> *A Sample *.jss content*
>
> function *doGet*(request, response, session) {
> response.write("");
> response.write("" + request.getHeader("User-Agent") + "");
> response.write("" + request.getParameter("lang") + "");
> response.write("");
> }
>
> function *doPost*(request, response, session) {
> var obj = {
> name : "ruchira",
> age : 27,
> address : {
> number : "16",
> city : "ahangama"
> }
> };
> //if the request was JSON, then content property will return that JSON
> object
> //obj = request.content;
> session.put("myObj", obj);
> var o = session.get("myObj");
> return o;
> }
>
>
> regards,
> Ruchira
> --
> Ruchira Wageesha
> Software Engineer - WSO2 Inc. www.wso2.com
>
> Email: ruch...@wso2.com Blog: ruchirawagee...@blogspot.com
> Mobile: +94775493444
>
> Lean . Enterprise . Middleware
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman & CEO; WSO2, Inc.;  http

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

org.wso2.carbon
governance
3.2.0-SNAPSHOT

instead of samples parent pom.

In some of the other samples this is already fixed.

In shutterbug sample, parent is

org.wso2.governance
governance-samples
4.0.0-SNAPSHOT

Someone from G-Reg team, please have a look in to this.

Thanks and Regards,
Harshana

On Thu, Nov 3, 2011 at 6:34 PM, Ranga Siriwardena  wrote:

> 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
> (/home/support322/carbon_trunk/carbon/products/greg/modules/samples/product/distributed-LCM/src/org.wso2.carbon.governance.samples.lcm/pom.xml)
> has 1 error
> [ERROR] Non-resolvable parent POM: Could not find artifact
> org.wso2.carbon:governance:pom:3.2.0-SNAPSHOT and 'parent.relativePath'
> points at wrong local POM @ line 22, column 13 -> [Help 2]
> [ERROR]
> [ERROR]   The project
> org.wso2.carbon:org.wso2.carbon.governance.samples.lcm.notifications:3.2.0-SNAPSHOT
> (/home/support322/carbon_trunk/carbon/products/greg/modules/samples/product/distributed-LCM/src/org.wso2.carbon.governance.samples.lcm.notifications/pom.xml)
> has 1 error
> [ERROR] Non-resolvable parent POM: Could not find artifact
> org.wso2.carbon:governance:pom:3.2.0-SNAPSHOT and 'parent.relativePath'
> points at wrong local POM @ line 22, column 13 -> [Help 2]
> [ERROR]
> [ERROR]   The project
> org.wso2.carbon:org.wso2.carbon.registry.samples.custom.topics:3.2.0-SNAPSHOT
> (/home/support322/carbon_trunk/carbon/products/greg/modules/samples/product/custom-ui/src/org.wso2.carbon.registry.samples.custom.topics/pom.xml)
> has 1 error
> [ERROR] Non-resolvable parent POM: Could not find artifact
> org.wso2.carbon:registry:pom:3.2.0-SNAPSHOT in wso2-nexus (
> http://maven.wso2.org/nexus/content/groups/wso2-public/) and
> 'parent.relativePath' points at wrong local POM @ line 22, column 13 ->
> [Help 2]
> [ERROR]
> [ERROR]   The project
> org.wso2.carbon:org.wso2.carbon.registry.samples.custom.topics.ui:3.2.0-SNAPSHOT
> (/home/support322/carbon_trunk/carbon/products/greg/modules/samples/product/custom-ui/src/org.wso2.carbon.registry.samples.custom.topics.ui/pom.xml)
> has 1 error
> [ERROR] Non-resolvable parent POM: Failure to find
> org.wso2.carbon:registry:pom:3.2.0-SNAPSHOT in
> http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
> local repository, resolution will not be reattempted until the update
> interval of wso2-nexus has elapsed or updates are forced and
> 'parent.relativePath' points at wrong local POM @ line 19, column 13 ->
> [Help 2]
> [ERROR]
> [ERROR]   The project
> org.wso2.carbon:org.wso2.carbon.registry.samples.handler:3.2.0-SNAPSHOT
> (/home/support322/carbon_trunk/carbon/products/greg/modules/samples/product/handler/src/pom.xml)
> has 1 error
> [ERROR] Non-resolvable parent POM: Failure to find
> org.wso2.carbon:registry:pom:3.2.0-SNAPSHOT in
> http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
> local repository, resolution will not be reattempted until the update
> interval of wso2-nexus has elapsed or updates are forced and
> 'parent.relativePath' points at wrong local POM @ line 22, column 13 ->
> [Help 2]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
>
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
>  [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
> [ERROR] [Help 2]
> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
>
>
>
>
> On Thu, Nov 3, 2011 at 5:55 PM, Harshana Martin  wrote:
>
>> Hi All,
>>
>> On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando 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 guess this is
>>> working)
>>> * moving all products to maven3 build (carbon, as, gs are done as of now)
>>>
>>
>> I fixed the issues in the product level by adding some of the missing
>> relativePath element to the pom files and fixing the issues in existing
>> ones. But I have not added this "relativePath" element to all the poms in
>> all the products. So this is far from complete.
>>
>> Product teams,
>>
>> Please go through the poms in your respective product/s and add the
>> "relativePath" element to all the poms.
>>
>> Now I'

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

>
>
> On Thu, Nov 3, 2011 at 12:23 PM, Harshana Martin wrote:
>
>>
>>
>> On Thu, Nov 3, 2011 at 11:27 PM, Pradeep Fernando wrote:
>>
>>>
>>>
>>> On Thu, Nov 3, 2011 at 11:48 AM, Harshana Martin wrote:
>>>


 On Thu, Nov 3, 2011 at 11:15 PM, Pradeep Fernando wrote:

>
>
> On Thu, Nov 3, 2011 at 11:36 AM, Supun Malinga wrote:
>
>>
>>
>> On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando 
>> 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 guess this is
>>> working)
>>> * moving all products to maven3 build (carbon, as, gs are done as of
>>> now)
>>> * create a new profile for greg doc generation process since it
>>> takes a lot of time, and we dont want the doc generation in our day to 
>>> day
>>> build. (or else we should find a solution for that blacklisting thing)
>>> * upgrade the trunk version, 3.2.0-SNAPSHOT to 4.0.0-SNAPSHOT (this
>>> is a grep/sed)
>>> * branch out new dependencies and make sure they don't break the
>>> current build (right now we are pointing to 3.2.0 branch)
>>>
>>
>> And currently trunk axis2, etc points to the 3.2.0 branch. We should
>> move back to axis2 trunk.
>>
>
> yes, this is what i have mentioned. But the trick is we cant point to
> axis2 trunk. Because axis2 is not using maven3.
> In concept, it is wrong to point a snapshot version of a codebase from
> our code base. We cant control other projects' code-bases. If we have the
> control, then we should go and change axis2 and synapse to use maven3.
>

 Good news is Axis2 already supports Maven 3 :)

>>>
>>> good new indeed. Now we have to tackle synapse. AFAIR, synapse is maven
>>> is maven3 friendly. Harshana can you do a quick test on that.
>>>
>>
>> Yes. As you suggested Synapse is compatible  with Maven 3. :)
>>
>
> ok great. Lets point the trunk dependencies to Axis2 and  Synapse trunks
> then. If the Axis2 trunk is not stable then to a axis2 branch as suggested
> by Supun.
>

We are going to branch out new dependency versions in trunk. Please advise
if there are any complications.
Possible dependencies are,
Axis2 - I can own this.
Synapse - Harshana will look into this.

We may be able to branch rampart, neethi as well. Is the unstability issues
with neethi and rampart is fixed?

thanks n regards,

>
>
>>
>> Thanks and Regards,
>> Harshana
>>
>>>
>>>
>>> --Pradeep
>>>
>>>


>
> --Pradeep
>
>
>>
>> regards,
>>
>>>  *Set up a CI server
>>>
>>>
>>> thanks,
>>> --Pradeep
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> Supun Malinga,
>>
>> Software Engineer,
>>
>> WSO2 Inc.
>> http://wso2.com
>> http://wso2.org
>>  email - sup...@wso2.com 
>> mobile - 071 56 91 321
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Pradeep Fernando
> Software Engineer
> WSO2 Inc; http://wso2.com/
>
> blog: http://pradeepfernando.blogspot.com/
> m: +94776603662
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


 --
 Harshana Martin
 Software Engineer
 WSO2 Inc.
 Web:http://wso2.com
   http://wso2.org

 Mobile: +94 716062650
 Blog: http://harshana05.blogspot.com
 Profile: https://www.google.com/profiles/harshana05
 Twitter: http://twitter.com/harshana05


 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


>>>
>>>
>>> --
>>> Pradeep Fernando
>>> Software Engineer
>>> WSO2 Inc; http://wso2.com/
>>>
>>> blog: http://pradeepfernando.blogspot.com/
>>> m: +94776603662
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> Harshana Martin
>> Software Engineer
>> WSO2 Inc.
>> Web:http://wso2.com
>>   http://wso2.org
>>
>> Mobile: +94 716062650
>> Blog: http://harshana05.blogspot.com
>> Profile: https://www.google.com/profiles/harshana05
>> Twitter: http:/

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

>
>
> On Thu, Nov 3, 2011 at 11:27 PM, Pradeep Fernando wrote:
>
>>
>>
>> On Thu, Nov 3, 2011 at 11:48 AM, Harshana Martin wrote:
>>
>>>
>>>
>>> On Thu, Nov 3, 2011 at 11:15 PM, Pradeep Fernando wrote:
>>>


 On Thu, Nov 3, 2011 at 11:36 AM, Supun Malinga  wrote:

>
>
> On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando 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 guess this is
>> working)
>> * moving all products to maven3 build (carbon, as, gs are done as of
>> now)
>> * create a new profile for greg doc generation process since it takes
>> a lot of time, and we dont want the doc generation in our day to day 
>> build.
>> (or else we should find a solution for that blacklisting thing)
>> * upgrade the trunk version, 3.2.0-SNAPSHOT to 4.0.0-SNAPSHOT (this
>> is a grep/sed)
>> * branch out new dependencies and make sure they don't break the
>> current build (right now we are pointing to 3.2.0 branch)
>>
>
> And currently trunk axis2, etc points to the 3.2.0 branch. We should
> move back to axis2 trunk.
>

 yes, this is what i have mentioned. But the trick is we cant point to
 axis2 trunk. Because axis2 is not using maven3.
 In concept, it is wrong to point a snapshot version of a codebase from
 our code base. We cant control other projects' code-bases. If we have the
 control, then we should go and change axis2 and synapse to use maven3.

>>>
>>> Good news is Axis2 already supports Maven 3 :)
>>>
>>
>> good new indeed. Now we have to tackle synapse. AFAIR, synapse is maven
>> is maven3 friendly. Harshana can you do a quick test on that.
>>
>
> Yes. As you suggested Synapse is compatible  with Maven 3. :)
>

ok great. Lets point the trunk dependencies to Axis2 and  Synapse trunks
then. If the Axis2 trunk is not stable then to a axis2 branch as suggested
by Supun.


>
> Thanks and Regards,
> Harshana
>
>>
>>
>> --Pradeep
>>
>>
>>>
>>>

 --Pradeep


>
> regards,
>
>>  *Set up a CI server
>>
>>
>> thanks,
>> --Pradeep
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Supun Malinga,
>
> Software Engineer,
>
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
>  email - sup...@wso2.com 
> mobile - 071 56 91 321
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


 --
 Pradeep Fernando
 Software Engineer
 WSO2 Inc; http://wso2.com/

 blog: http://pradeepfernando.blogspot.com/
 m: +94776603662

 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


>>>
>>>
>>> --
>>> Harshana Martin
>>> Software Engineer
>>> WSO2 Inc.
>>> Web:http://wso2.com
>>>   http://wso2.org
>>>
>>> Mobile: +94 716062650
>>> Blog: http://harshana05.blogspot.com
>>> Profile: https://www.google.com/profiles/harshana05
>>> Twitter: http://twitter.com/harshana05
>>>
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> Pradeep Fernando
>> Software Engineer
>> WSO2 Inc; http://wso2.com/
>>
>> blog: http://pradeepfernando.blogspot.com/
>> m: +94776603662
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Harshana Martin
> Software Engineer
> WSO2 Inc.
> Web:http://wso2.com
>   http://wso2.org
>
> Mobile: +94 716062650
> Blog: http://harshana05.blogspot.com
> Profile: https://www.google.com/profiles/harshana05
> Twitter: http://twitter.com/harshana05
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Pradeep Fernando
Software Engineer
WSO2 Inc; http://wso2.com/

blog: http://pradeepfernando.blogspot.com/
m: +94776603662
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] 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  wrote:

>
>
> On Thu, Nov 3, 2011 at 11:48 AM, Harshana Martin wrote:
>
>>
>>
>> On Thu, Nov 3, 2011 at 11:15 PM, Pradeep Fernando wrote:
>>
>>>
>>>
>>> On Thu, Nov 3, 2011 at 11:36 AM, Supun Malinga  wrote:
>>>


 On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando 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 guess this is
> working)
> * moving all products to maven3 build (carbon, as, gs are done as of
> now)
> * create a new profile for greg doc generation process since it takes
> a lot of time, and we dont want the doc generation in our day to day 
> build.
> (or else we should find a solution for that blacklisting thing)
> * upgrade the trunk version, 3.2.0-SNAPSHOT to 4.0.0-SNAPSHOT (this is
> a grep/sed)
> * branch out new dependencies and make sure they don't break the
> current build (right now we are pointing to 3.2.0 branch)
>

 And currently trunk axis2, etc points to the 3.2.0 branch. We should
 move back to axis2 trunk.

>>>
>>> yes, this is what i have mentioned. But the trick is we cant point to
>>> axis2 trunk. Because axis2 is not using maven3.
>>> In concept, it is wrong to point a snapshot version of a codebase from
>>> our code base. We cant control other projects' code-bases. If we have the
>>> control, then we should go and change axis2 and synapse to use maven3.
>>>
>>
>> Good news is Axis2 already supports Maven 3 :)
>>
>
> good new indeed. Now we have to tackle synapse. AFAIR, synapse is maven is
> maven3 friendly. Harshana can you do a quick test on that.
>

Yes. As you suggested Synapse is compatible  with Maven 3. :)

Thanks and Regards,
Harshana

>
>
> --Pradeep
>
>
>>
>>
>>>
>>> --Pradeep
>>>
>>>

 regards,

>  *Set up a CI server
>
>
> thanks,
> --Pradeep
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


 --
 Supun Malinga,

 Software Engineer,

 WSO2 Inc.
 http://wso2.com
 http://wso2.org
  email - sup...@wso2.com 
 mobile - 071 56 91 321


 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


>>>
>>>
>>> --
>>> Pradeep Fernando
>>> Software Engineer
>>> WSO2 Inc; http://wso2.com/
>>>
>>> blog: http://pradeepfernando.blogspot.com/
>>> m: +94776603662
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> Harshana Martin
>> Software Engineer
>> WSO2 Inc.
>> Web:http://wso2.com
>>   http://wso2.org
>>
>> Mobile: +94 716062650
>> Blog: http://harshana05.blogspot.com
>> Profile: https://www.google.com/profiles/harshana05
>> Twitter: http://twitter.com/harshana05
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Pradeep Fernando
> Software Engineer
> WSO2 Inc; http://wso2.com/
>
> blog: http://pradeepfernando.blogspot.com/
> m: +94776603662
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Harshana Martin
Software Engineer
WSO2 Inc.
Web:http://wso2.com
  http://wso2.org

Mobile: +94 716062650
Blog: http://harshana05.blogspot.com
Profile: https://www.google.com/profiles/harshana05
Twitter: http://twitter.com/harshana05
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] 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  wrote:

>
>
> On Thu, Nov 3, 2011 at 11:48 AM, Harshana Martin wrote:
>
>>
>>
>> On Thu, Nov 3, 2011 at 11:15 PM, Pradeep Fernando wrote:
>>
>>>
>>>
>>> On Thu, Nov 3, 2011 at 11:36 AM, Supun Malinga  wrote:
>>>


 On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando 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 guess this is
> working)
> * moving all products to maven3 build (carbon, as, gs are done as of
> now)
> * create a new profile for greg doc generation process since it takes
> a lot of time, and we dont want the doc generation in our day to day 
> build.
> (or else we should find a solution for that blacklisting thing)
> * upgrade the trunk version, 3.2.0-SNAPSHOT to 4.0.0-SNAPSHOT (this is
> a grep/sed)
> * branch out new dependencies and make sure they don't break the
> current build (right now we are pointing to 3.2.0 branch)
>

 And currently trunk axis2, etc points to the 3.2.0 branch. We should
 move back to axis2 trunk.

>>>
>>> yes, this is what i have mentioned. But the trick is we cant point to
>>> axis2 trunk. Because axis2 is not using maven3.
>>> In concept, it is wrong to point a snapshot version of a codebase from
>>> our code base. We cant control other projects' code-bases. If we have the
>>> control, then we should go and change axis2 and synapse to use maven3.
>>>
>>
>> Good news is Axis2 already supports Maven 3 :)
>>
>
> good new indeed. Now we have to tackle synapse. AFAIR, synapse is maven is
> maven3 friendly. Harshana can you do a quick test on that.
>

Sure. I'm working on it now.

Thanks and Regards,
Harshana

>
>
> --Pradeep
>
>
>>
>>
>>>
>>> --Pradeep
>>>
>>>

 regards,

>  *Set up a CI server
>
>
> thanks,
> --Pradeep
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


 --
 Supun Malinga,

 Software Engineer,

 WSO2 Inc.
 http://wso2.com
 http://wso2.org
  email - sup...@wso2.com 
 mobile - 071 56 91 321


 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


>>>
>>>
>>> --
>>> Pradeep Fernando
>>> Software Engineer
>>> WSO2 Inc; http://wso2.com/
>>>
>>> blog: http://pradeepfernando.blogspot.com/
>>> m: +94776603662
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> Harshana Martin
>> Software Engineer
>> WSO2 Inc.
>> Web:http://wso2.com
>>   http://wso2.org
>>
>> Mobile: +94 716062650
>> Blog: http://harshana05.blogspot.com
>> Profile: https://www.google.com/profiles/harshana05
>> Twitter: http://twitter.com/harshana05
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Pradeep Fernando
> Software Engineer
> WSO2 Inc; http://wso2.com/
>
> blog: http://pradeepfernando.blogspot.com/
> m: +94776603662
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Harshana Martin
Software Engineer
WSO2 Inc.
Web:http://wso2.com
  http://wso2.org

Mobile: +94 716062650
Blog: http://harshana05.blogspot.com
Profile: https://www.google.com/profiles/harshana05
Twitter: http://twitter.com/harshana05
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] 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  wrote:

>
>
> On Thu, Nov 3, 2011 at 11:18 PM, Harshana Martin wrote:
>
>>
>>
>> On Thu, Nov 3, 2011 at 11:15 PM, Pradeep Fernando wrote:
>>
>>>
>>>
>>> On Thu, Nov 3, 2011 at 11:36 AM, Supun Malinga  wrote:
>>>


 On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando 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 guess this is
> working)
> * moving all products to maven3 build (carbon, as, gs are done as of
> now)
> * create a new profile for greg doc generation process since it takes
> a lot of time, and we dont want the doc generation in our day to day 
> build.
> (or else we should find a solution for that blacklisting thing)
> * upgrade the trunk version, 3.2.0-SNAPSHOT to 4.0.0-SNAPSHOT (this is
> a grep/sed)
> * branch out new dependencies and make sure they don't break the
> current build (right now we are pointing to 3.2.0 branch)
>

 And currently trunk axis2, etc points to the 3.2.0 branch. We should
 move back to axis2 trunk.

>>>
>>> yes, this is what i have mentioned. But the trick is we cant point to
>>> axis2 trunk. Because axis2 is not using maven3.
>>> In concept, it is wrong to point a snapshot version of a codebase from
>>> our code base. We cant control other projects' code-bases. If we have the
>>> control, then we should go and change axis2 and synapse to use maven3.
>>>
>>
>> Good news is Axis2 already supports Maven 3 :)
>>
>
> cool.
> As to my knowledge Sagara et al did significants improvements in axis2
> trunk. IMO if we can't control the stability of the trunk then we may take
> a stable revision from the axis2 trunk and branch out to carbon trunk. From
> time to time we can update(merge) the carbon axis2 branch from another
> stable revision of the axis2 trunk.
>

+1

Meanwhile I'll check whether Synapse trunk also compatible with maven 3.

Thanks and Regards,
Harshana


> thanks,
>
>>
>>
>>>
>>> --Pradeep
>>>
>>>

 regards,

>  *Set up a CI server
>
>
> thanks,
> --Pradeep
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


 --
 Supun Malinga,

 Software Engineer,

 WSO2 Inc.
 http://wso2.com
 http://wso2.org
  email - sup...@wso2.com 
 mobile - 071 56 91 321


 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


>>>
>>>
>>> --
>>> Pradeep Fernando
>>> Software Engineer
>>> WSO2 Inc; http://wso2.com/
>>>
>>> blog: http://pradeepfernando.blogspot.com/
>>> m: +94776603662
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> Harshana Martin
>> Software Engineer
>> WSO2 Inc.
>> Web:http://wso2.com
>>   http://wso2.org
>>
>> Mobile: +94 716062650
>> Blog: http://harshana05.blogspot.com
>> Profile: https://www.google.com/profiles/harshana05
>> Twitter: http://twitter.com/harshana05
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Supun Malinga,
>
> Software Engineer,
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
> email - sup...@wso2.com 
> mobile - 071 56 91 321
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Harshana Martin
Software Engineer
WSO2 Inc.
Web:http://wso2.com
  http://wso2.org

Mobile: +94 716062650
Blog: http://harshana05.blogspot.com
Profile: https://www.google.com/profiles/harshana05
Twitter: http://twitter.com/harshana05
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] 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  wrote:

>
>
> On Thu, Nov 3, 2011 at 11:15 PM, Pradeep Fernando wrote:
>
>>
>>
>> On Thu, Nov 3, 2011 at 11:36 AM, Supun Malinga  wrote:
>>
>>>
>>>
>>> On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando 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 guess this is
 working)
 * moving all products to maven3 build (carbon, as, gs are done as of
 now)
 * create a new profile for greg doc generation process since it takes a
 lot of time, and we dont want the doc generation in our day to day build.
 (or else we should find a solution for that blacklisting thing)
 * upgrade the trunk version, 3.2.0-SNAPSHOT to 4.0.0-SNAPSHOT (this is
 a grep/sed)
 * branch out new dependencies and make sure they don't break the
 current build (right now we are pointing to 3.2.0 branch)

>>>
>>> And currently trunk axis2, etc points to the 3.2.0 branch. We should
>>> move back to axis2 trunk.
>>>
>>
>> yes, this is what i have mentioned. But the trick is we cant point to
>> axis2 trunk. Because axis2 is not using maven3.
>> In concept, it is wrong to point a snapshot version of a codebase from
>> our code base. We cant control other projects' code-bases. If we have the
>> control, then we should go and change axis2 and synapse to use maven3.
>>
>
> Good news is Axis2 already supports Maven 3 :)
>

good new indeed. Now we have to tackle synapse. AFAIR, synapse is maven is
maven3 friendly. Harshana can you do a quick test on that.

--Pradeep


>
>
>>
>> --Pradeep
>>
>>
>>>
>>> regards,
>>>
  *Set up a CI server


 thanks,
 --Pradeep

 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


>>>
>>>
>>> --
>>> Supun Malinga,
>>>
>>> Software Engineer,
>>>
>>> WSO2 Inc.
>>> http://wso2.com
>>> http://wso2.org
>>>  email - sup...@wso2.com 
>>> mobile - 071 56 91 321
>>>
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> Pradeep Fernando
>> Software Engineer
>> WSO2 Inc; http://wso2.com/
>>
>> blog: http://pradeepfernando.blogspot.com/
>> m: +94776603662
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Harshana Martin
> Software Engineer
> WSO2 Inc.
> Web:http://wso2.com
>   http://wso2.org
>
> Mobile: +94 716062650
> Blog: http://harshana05.blogspot.com
> Profile: https://www.google.com/profiles/harshana05
> Twitter: http://twitter.com/harshana05
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Pradeep Fernando
Software Engineer
WSO2 Inc; http://wso2.com/

blog: http://pradeepfernando.blogspot.com/
m: +94776603662
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] 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  wrote:

>
>
> On Thu, Nov 3, 2011 at 11:15 PM, Pradeep Fernando wrote:
>
>>
>>
>> On Thu, Nov 3, 2011 at 11:36 AM, Supun Malinga  wrote:
>>
>>>
>>>
>>> On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando 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 guess this is
 working)
 * moving all products to maven3 build (carbon, as, gs are done as of
 now)
 * create a new profile for greg doc generation process since it takes a
 lot of time, and we dont want the doc generation in our day to day build.
 (or else we should find a solution for that blacklisting thing)
 * upgrade the trunk version, 3.2.0-SNAPSHOT to 4.0.0-SNAPSHOT (this is
 a grep/sed)
 * branch out new dependencies and make sure they don't break the
 current build (right now we are pointing to 3.2.0 branch)

>>>
>>> And currently trunk axis2, etc points to the 3.2.0 branch. We should
>>> move back to axis2 trunk.
>>>
>>
>> yes, this is what i have mentioned. But the trick is we cant point to
>> axis2 trunk. Because axis2 is not using maven3.
>> In concept, it is wrong to point a snapshot version of a codebase from
>> our code base. We cant control other projects' code-bases. If we have the
>> control, then we should go and change axis2 and synapse to use maven3.
>>
>
> Good news is Axis2 already supports Maven 3 :)
>

cool.
As to my knowledge Sagara et al did significants improvements in axis2
trunk. IMO if we can't control the stability of the trunk then we may take
a stable revision from the axis2 trunk and branch out to carbon trunk. From
time to time we can update(merge) the carbon axis2 branch from another
stable revision of the axis2 trunk.

thanks,

>
>
>>
>> --Pradeep
>>
>>
>>>
>>> regards,
>>>
  *Set up a CI server


 thanks,
 --Pradeep

 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


>>>
>>>
>>> --
>>> Supun Malinga,
>>>
>>> Software Engineer,
>>>
>>> WSO2 Inc.
>>> http://wso2.com
>>> http://wso2.org
>>>  email - sup...@wso2.com 
>>> mobile - 071 56 91 321
>>>
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> Pradeep Fernando
>> Software Engineer
>> WSO2 Inc; http://wso2.com/
>>
>> blog: http://pradeepfernando.blogspot.com/
>> m: +94776603662
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Harshana Martin
> Software Engineer
> WSO2 Inc.
> Web:http://wso2.com
>   http://wso2.org
>
> Mobile: +94 716062650
> Blog: http://harshana05.blogspot.com
> Profile: https://www.google.com/profiles/harshana05
> Twitter: http://twitter.com/harshana05
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Supun Malinga,

Software Engineer,
WSO2 Inc.
http://wso2.com
http://wso2.org
email - sup...@wso2.com 
mobile - 071 56 91 321
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


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

>
>
> On Thu, Nov 3, 2011 at 11:36 AM, Supun Malinga  wrote:
>
>>
>>
>> On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando 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 guess this is
>>> working)
>>> * moving all products to maven3 build (carbon, as, gs are done as of now)
>>> * create a new profile for greg doc generation process since it takes a
>>> lot of time, and we dont want the doc generation in our day to day build.
>>> (or else we should find a solution for that blacklisting thing)
>>> * upgrade the trunk version, 3.2.0-SNAPSHOT to 4.0.0-SNAPSHOT (this is a
>>> grep/sed)
>>> * branch out new dependencies and make sure they don't break the current
>>> build (right now we are pointing to 3.2.0 branch)
>>>
>>
>> And currently trunk axis2, etc points to the 3.2.0 branch. We should move
>> back to axis2 trunk.
>>
>
> yes, this is what i have mentioned. But the trick is we cant point to
> axis2 trunk. Because axis2 is not using maven3.
> In concept, it is wrong to point a snapshot version of a codebase from our
> code base. We cant control other projects' code-bases. If we have the
> control, then we should go and change axis2 and synapse to use maven3.
>

Good news is Axis2 already supports Maven 3 :)


>
> --Pradeep
>
>
>>
>> regards,
>>
>>>  *Set up a CI server
>>>
>>>
>>> thanks,
>>> --Pradeep
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> Supun Malinga,
>>
>> Software Engineer,
>>
>> WSO2 Inc.
>> http://wso2.com
>> http://wso2.org
>>  email - sup...@wso2.com 
>> mobile - 071 56 91 321
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Pradeep Fernando
> Software Engineer
> WSO2 Inc; http://wso2.com/
>
> blog: http://pradeepfernando.blogspot.com/
> m: +94776603662
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Harshana Martin
Software Engineer
WSO2 Inc.
Web:http://wso2.com
  http://wso2.org

Mobile: +94 716062650
Blog: http://harshana05.blogspot.com
Profile: https://www.google.com/profiles/harshana05
Twitter: http://twitter.com/harshana05
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] 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  wrote:

>
>
> On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando 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 guess this is
>> working)
>> * moving all products to maven3 build (carbon, as, gs are done as of now)
>> * create a new profile for greg doc generation process since it takes a
>> lot of time, and we dont want the doc generation in our day to day build.
>> (or else we should find a solution for that blacklisting thing)
>> * upgrade the trunk version, 3.2.0-SNAPSHOT to 4.0.0-SNAPSHOT (this is a
>> grep/sed)
>> * branch out new dependencies and make sure they don't break the current
>> build (right now we are pointing to 3.2.0 branch)
>>
>
> And currently trunk axis2, etc points to the 3.2.0 branch. We should move
> back to axis2 trunk.
>

yes, this is what i have mentioned. But the trick is we cant point to axis2
trunk. Because axis2 is not using maven3.
In concept, it is wrong to point a snapshot version of a codebase from our
code base. We cant control other projects' code-bases. If we have the
control, then we should go and change axis2 and synapse to use maven3.

--Pradeep


>
> regards,
>
>> *Set up a CI server
>>
>>
>> thanks,
>> --Pradeep
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Supun Malinga,
>
> Software Engineer,
>
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
> email - sup...@wso2.com 
> mobile - 071 56 91 321
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Pradeep Fernando
Software Engineer
WSO2 Inc; http://wso2.com/

blog: http://pradeepfernando.blogspot.com/
m: +94776603662
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] 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  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 guess this is working)
> * moving all products to maven3 build (carbon, as, gs are done as of now)
> * create a new profile for greg doc generation process since it takes a
> lot of time, and we dont want the doc generation in our day to day build.
> (or else we should find a solution for that blacklisting thing)
> * upgrade the trunk version, 3.2.0-SNAPSHOT to 4.0.0-SNAPSHOT (this is a
> grep/sed)
> * branch out new dependencies and make sure they don't break the current
> build (right now we are pointing to 3.2.0 branch)
>

And currently trunk axis2, etc points to the 3.2.0 branch. We should move
back to axis2 trunk.

regards,

> *Set up a CI server
>
>
> thanks,
> --Pradeep
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Supun Malinga,

Software Engineer,
WSO2 Inc.
http://wso2.com
http://wso2.org
email - sup...@wso2.com 
mobile - 071 56 91 321
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


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

> 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
> (/home/support322/carbon_trunk/carbon/products/greg/modules/samples/product/distributed-LCM/src/org.wso2.carbon.governance.samples.lcm/pom.xml)
> has 1 error
> [ERROR] Non-resolvable parent POM: Could not find artifact
> org.wso2.carbon:governance:pom:3.2.0-SNAPSHOT and 'parent.relativePath'
> points at wrong local POM @ line 22, column 13 -> [Help 2]
> [ERROR]
> [ERROR]   The project
> org.wso2.carbon:org.wso2.carbon.governance.samples.lcm.notifications:3.2.0-SNAPSHOT
> (/home/support322/carbon_trunk/carbon/products/greg/modules/samples/product/distributed-LCM/src/org.wso2.carbon.governance.samples.lcm.notifications/pom.xml)
> has 1 error
> [ERROR] Non-resolvable parent POM: Could not find artifact
> org.wso2.carbon:governance:pom:3.2.0-SNAPSHOT and 'parent.relativePath'
> points at wrong local POM @ line 22, column 13 -> [Help 2]
> [ERROR]
> [ERROR]   The project
> org.wso2.carbon:org.wso2.carbon.registry.samples.custom.topics:3.2.0-SNAPSHOT
> (/home/support322/carbon_trunk/carbon/products/greg/modules/samples/product/custom-ui/src/org.wso2.carbon.registry.samples.custom.topics/pom.xml)
> has 1 error
> [ERROR] Non-resolvable parent POM: Could not find artifact
> org.wso2.carbon:registry:pom:3.2.0-SNAPSHOT in wso2-nexus (
> http://maven.wso2.org/nexus/content/groups/wso2-public/) and
> 'parent.relativePath' points at wrong local POM @ line 22, column 13 ->
> [Help 2]
> [ERROR]
> [ERROR]   The project
> org.wso2.carbon:org.wso2.carbon.registry.samples.custom.topics.ui:3.2.0-SNAPSHOT
> (/home/support322/carbon_trunk/carbon/products/greg/modules/samples/product/custom-ui/src/org.wso2.carbon.registry.samples.custom.topics.ui/pom.xml)
> has 1 error
> [ERROR] Non-resolvable parent POM: Failure to find
> org.wso2.carbon:registry:pom:3.2.0-SNAPSHOT in
> http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
> local repository, resolution will not be reattempted until the update
> interval of wso2-nexus has elapsed or updates are forced and
> 'parent.relativePath' points at wrong local POM @ line 19, column 13 ->
> [Help 2]
> [ERROR]
> [ERROR]   The project
> org.wso2.carbon:org.wso2.carbon.registry.samples.handler:3.2.0-SNAPSHOT
> (/home/support322/carbon_trunk/carbon/products/greg/modules/samples/product/handler/src/pom.xml)
> has 1 error
> [ERROR] Non-resolvable parent POM: Failure to find
> org.wso2.carbon:registry:pom:3.2.0-SNAPSHOT in
> http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
> local repository, resolution will not be reattempted until the update
> interval of wso2-nexus has elapsed or updates are forced and
> 'parent.relativePath' points at wrong local POM @ line 22, column 13 ->
> [Help 2]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
>
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
>  [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
> [ERROR] [Help 2]
> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
>
>
>
>
> On Thu, Nov 3, 2011 at 5:55 PM, Harshana Martin  wrote:
>
>> Hi All,
>>
>> On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando 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 guess this is
>>> working)
>>> * moving all products to maven3 build (carbon, as, gs are done as of now)
>>>
>>
>> I fixed the issues in the product level by adding some of the missing
>> relativePath element to the pom files and fixing the issues in existing
>> ones. But I have not added this "relativePath" element to all the poms in
>> all the products. So this is far from complete.
>>
>> Product teams,
>>
>> Please go through the poms in your respective product/s and add the
>> "relativePath" element to all the poms.
>>
>> Now I'm going to enable the products module for default profile.
>>
>> Thanks and Regards,
>> Harshana
>>
>> * create a new profile for greg doc generation process since it takes a
>>> lot of time, and we dont want the doc generation in our day to day build.
>>> (or else we should find a solution for that blacklisting thing)
>>> * upgrade the trunk version, 3.2.0-SNAPSHOT to 4

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
(/home/support322/carbon_trunk/carbon/products/greg/modules/samples/product/distributed-LCM/src/org.wso2.carbon.governance.samples.lcm/pom.xml)
has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact
org.wso2.carbon:governance:pom:3.2.0-SNAPSHOT and 'parent.relativePath'
points at wrong local POM @ line 22, column 13 -> [Help 2]
[ERROR]
[ERROR]   The project
org.wso2.carbon:org.wso2.carbon.governance.samples.lcm.notifications:3.2.0-SNAPSHOT
(/home/support322/carbon_trunk/carbon/products/greg/modules/samples/product/distributed-LCM/src/org.wso2.carbon.governance.samples.lcm.notifications/pom.xml)
has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact
org.wso2.carbon:governance:pom:3.2.0-SNAPSHOT and 'parent.relativePath'
points at wrong local POM @ line 22, column 13 -> [Help 2]
[ERROR]
[ERROR]   The project
org.wso2.carbon:org.wso2.carbon.registry.samples.custom.topics:3.2.0-SNAPSHOT
(/home/support322/carbon_trunk/carbon/products/greg/modules/samples/product/custom-ui/src/org.wso2.carbon.registry.samples.custom.topics/pom.xml)
has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact
org.wso2.carbon:registry:pom:3.2.0-SNAPSHOT in wso2-nexus (
http://maven.wso2.org/nexus/content/groups/wso2-public/) and
'parent.relativePath' points at wrong local POM @ line 22, column 13 ->
[Help 2]
[ERROR]
[ERROR]   The project
org.wso2.carbon:org.wso2.carbon.registry.samples.custom.topics.ui:3.2.0-SNAPSHOT
(/home/support322/carbon_trunk/carbon/products/greg/modules/samples/product/custom-ui/src/org.wso2.carbon.registry.samples.custom.topics.ui/pom.xml)
has 1 error
[ERROR] Non-resolvable parent POM: Failure to find
org.wso2.carbon:registry:pom:3.2.0-SNAPSHOT in
http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
local repository, resolution will not be reattempted until the update
interval of wso2-nexus has elapsed or updates are forced and
'parent.relativePath' points at wrong local POM @ line 19, column 13 ->
[Help 2]
[ERROR]
[ERROR]   The project
org.wso2.carbon:org.wso2.carbon.registry.samples.handler:3.2.0-SNAPSHOT
(/home/support322/carbon_trunk/carbon/products/greg/modules/samples/product/handler/src/pom.xml)
has 1 error
[ERROR] Non-resolvable parent POM: Failure to find
org.wso2.carbon:registry:pom:3.2.0-SNAPSHOT in
http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
local repository, resolution will not be reattempted until the update
interval of wso2-nexus has elapsed or updates are forced and
'parent.relativePath' points at wrong local POM @ line 22, column 13 ->
[Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2]
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException



On Thu, Nov 3, 2011 at 5:55 PM, Harshana Martin  wrote:

> Hi All,
>
> On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando 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 guess this is
>> working)
>> * moving all products to maven3 build (carbon, as, gs are done as of now)
>>
>
> I fixed the issues in the product level by adding some of the missing
> relativePath element to the pom files and fixing the issues in existing
> ones. But I have not added this "relativePath" element to all the poms in
> all the products. So this is far from complete.
>
> Product teams,
>
> Please go through the poms in your respective product/s and add the
> "relativePath" element to all the poms.
>
> Now I'm going to enable the products module for default profile.
>
> Thanks and Regards,
> Harshana
>
> * create a new profile for greg doc generation process since it takes a
>> lot of time, and we dont want the doc generation in our day to day build.
>> (or else we should find a solution for that blacklisting thing)
>> * upgrade the trunk version, 3.2.0-SNAPSHOT to 4.0.0-SNAPSHOT (this is a
>> grep/sed)
>> * branch out new dependencies and make sure they don't break the current
>> build (right now we are pointing to 3.2.0 branch)
>> *Set up a CI server
>>
>>
>> thanks,
>> --Pradeep
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>

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

> Hi,
>
> Please see the inline comments.
>
> On Mon, Oct 31, 2011 at 1:22 PM, Samisa Abeysinghe wrote:
>
>> Add gadgets does not seem to be really working. Only one gadget can be
>> added at a time.
>>
>> I thought we discussed last time too that we got to fix that. We got to
>> allow multiple gadgets be added in one go, like the Jira does on add gadget
>> to DB.
>>
>
> -This feature [Multiple gadgets adding at a time] is not yet fixed.We have
> created the jira https://wso2.org/jira/browse/CARBON-11424 to track this
> feature.
>
This was reported earlier in GS JIRA -
https://wso2.org/jira/browse/GS-187


-Yumani


>
>>
>> On Mon, Oct 31, 2011 at 2:19 PM, Samisa Abeysinghe wrote:
>>
>>> Scrolling true does not seem to be working. I see that my page content
>>> is clipped.
>>>
>>>
>>> On Mon, Oct 31, 2011 at 2:13 PM, Samisa Abeysinghe wrote:
>>>
 There are about 5/6 bugs, and usability issues that I reported trying
 to use this just for an hour.

 Please report Jiras and make sure those are fixed.

 Specially, trying to modify gadget using a new file not working is a
 serious bug here.


 On Mon, Oct 31, 2011 at 2:11 PM, Samisa Abeysinghe wrote:

> And the path given in the registry browse path on the modify page
> cannot be copied and entered on the registry browser path box in case of
> SLive. The path is not correct.


> -In this case,there's a problem with the path,we have created a jira for
> this issue https://wso2.org/jira/browse/CARBON-11425.
>
>>
>
> On Mon, Oct 31, 2011 at 2:08 PM, Samisa Abeysinghe wrote:
>
>> And I see that when I upload a new gadget source, for an existing
>> gadget in the repo, it is not picked up. That I guess is a bog.
>
>
> -When a user upload a new gadget source,it's treated as a new gadget and
> from this way it'll not affect existing gadgets.If a user want to modify an
> exiting gadget he/she can modify the gadget source from  'Modify Gadget
> Source' option as mentioned in my previous comment.
>
>
>>
>>
>> On Mon, Oct 31, 2011 at 2:06 PM, Samisa Abeysinghe 
>> wrote:
>>
>>> And there is no easy way to view the gadget's source in the repo
>>> view. That too got to be fixed. I need to be able to see the XML of a
>>> gadget then and there, and be able to fix stuff if I need to.
>>
>>
>   -In gadget repo view as I earlier mentioned there's an option 'Modify
> Gadget Source',under 'Modify Gadget' option.From 'Modify Gadget Source'
> link,users can view the source of existing gadgets in the gadget repo.
>
>>
>>> This will not happen on a regular basis, but in development phase,
>>> that is a desired feature.
>>>
>>>
>>> On Mon, Oct 31, 2011 at 2:00 PM, Samisa Abeysinghe 
>>> wrote:
>>>
 And every time I change the gadget, I have to upload it as a file :(

 This is really bad in terms of development experience.

 Does Carbon Studio allow me to re-deploy auto when I change?

 And for my simple gadget I am happy with vim, I do not want to use
 CS at all!


 On Mon, Oct 31, 2011 at 1:27 PM, Samisa Abeysinghe >>> > wrote:

> The "Add gadget using" does not have an option "XML source"
>
> I just copied some gadget code from a page - I want to try using
> this source. Now I got to save and upload that as a file :(
>
> Why not have an option to just paste the XML into a box? I can
> edit and tune it later.
>

> - Created a jira for suggested improvement;
> https://wso2.org/jira/browse/CARBON-11427
>
>>   Thanks,
> Samisa...
>
> Samisa Abeysinghe
> VP Engineering
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
>
>  Thanks,
 Samisa...

 Samisa Abeysinghe
 VP Engineering
 WSO2 Inc.
 http://wso2.com
 http://wso2.org


  Thanks,
>>> Samisa...
>>>
>>> Samisa Abeysinghe
>>> VP Engineering
>>> WSO2 Inc.
>>> http://wso2.com
>>> http://wso2.org
>>>
>>>
>>>  Thanks,
>> Samisa...
>>
>> Samisa Abeysinghe
>> VP Engineering
>> WSO2 Inc.
>> http://wso2.com
>> http://wso2.org
>>
>>
>>  Thanks,
> Samisa...
>
> Samisa Abeysinghe
> VP Engineering
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
>
>
>  Thanks,
 Samisa...

 Samisa Abeysinghe
 VP Engineering
 WSO2 Inc.
 http://wso2.com
 http://wso2.org


  Thanks,
>>> Samisa...
>>>
>>> Samisa Abeysinghe
>>> VP Engineering
>>> WSO2 Inc.
>>> http://wso2.com
>>> http://wso2.org
>>>
>>>
>>>  Thanks,
>> Samisa...
>>
>> Samisa Abeysinghe
>>

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  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 guess this is working)
> * moving all products to maven3 build (carbon, as, gs are done as of now)
>

I fixed the issues in the product level by adding some of the missing
relativePath element to the pom files and fixing the issues in existing
ones. But I have not added this "relativePath" element to all the poms in
all the products. So this is far from complete.

Product teams,

Please go through the poms in your respective product/s and add the
"relativePath" element to all the poms.

Now I'm going to enable the products module for default profile.

Thanks and Regards,
Harshana

* create a new profile for greg doc generation process since it takes a lot
> of time, and we dont want the doc generation in our day to day build. (or
> else we should find a solution for that blacklisting thing)
> * upgrade the trunk version, 3.2.0-SNAPSHOT to 4.0.0-SNAPSHOT (this is a
> grep/sed)
> * branch out new dependencies and make sure they don't break the current
> build (right now we are pointing to 3.2.0 branch)
> *Set up a CI server
>
>
> thanks,
> --Pradeep
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Harshana Martin
Software Engineer
WSO2 Inc.
Web:http://wso2.com
  http://wso2.org

Mobile: +94 716062650
Blog: http://harshana05.blogspot.com
Profile: https://www.google.com/profiles/harshana05
Twitter: http://twitter.com/harshana05
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [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  wrote:

> Hi,
>
> On Thu, Nov 3, 2011 at 12:48 PM, Samisa Abeysinghe 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 gadget.xml  for a zip file for the moment. We dont have a mechanism to
> do bulk gadget uploads for the moment. As a workaround you can store
> related resources inside a common collection in registry and refer to them
> from gadgets.
>

But the GS team had something called GARs (gadget archives) sometime back.
What happened to that?


>
>
>
>
>> Thanks,
>> Samisa...
>>
>> Samisa Abeysinghe
>> VP Engineering
>> WSO2 Inc.
>> http://wso2.com
>> http://wso2.org
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> Thanks.
> Ranga.
> --
> Ranga Siriwardena
> Software Engineer
> WSO2 Inc.
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* **
email: **az...@wso2.com* * cell: +94 77 3320919
blog: **http://blog.afkham.org* *
twitter: **http://twitter.com/afkham_azeez*
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[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 httpcore-nio.

For the *.jss stuff, JSON support was also implemented. In a *.jss, we can
implement doGet, doPost etc. methods which corresponds to relevant HTTP
methods. So, when an HTTP request comes to a *.jss file, then request will
be dispatched to the relavant JavaScript method in the *.jss file. There,
you have access to the *request*, *response* and *session* objects.

If the request content type is json, then we can get content as a JSON by
accessing "*request.content*" property. Further, you can get any parameters
posted with the request by calling *request.getParameter()* method.

When we returning from a *.jss, you can either return directly a JSON
object which will be serialized and send to the client as a JSON content.
If you want, you can set custom headers to the response object and put
content using *response.write()* method. A sample *.jss content can be
found at the bottom.

Further, a new Rhino engine was created which allows to keep different top
level scopes for different envirenments. i.e. now we can allow to plug, any
product specific, tenant specific Hostobjects without affecting others.
Later this will be integrated into javax.script API.

In order to allow database calls, php-mysql api was proposed. But, it
doesn't seem like it utilizes Object Orientation which can be effectively
used in JavaScript in order to make it easier for the developer. php-mysql
api has a functional programming model. Also, we need to allow users to do
async database calls. i.e. register a function which will get executed once
the database return the result set. So, it would be better to have an API
as in XHR.

I will send a separate mail with a proposed mysql api covering above
requirements.

Following is the current request, response, session object APIs which
corresponds to relavant Java methods.

*session object API*

readonly property number created
readonly property number lastAccessed
readonly property isNew
property maxInactive


void put(string key, object value)
object get(string key)
void invalidate()

*request object API*

readonly property object content //this will return string content or json
content depending on the content type
readonly property string method
readonly property string protocol
readonly property string queryString
readonly property string contentType
readonly property number contentLength

string getHeader(string name)
string getParameter(string name)

*response object API*

property string content
property string contentType
property number status

void addHeader(string name, string value)
void getHeader(string name)
void write(object content) // JSON objects will be serialized to strings
void sendError(number code, string message)
void sendRedirect(string url)


*A Sample *.jss content*

function *doGet*(request, response, session) {
response.write("");
response.write("" + request.getHeader("User-Agent") + "");
response.write("" + request.getParameter("lang") + "");
response.write("");
}

function *doPost*(request, response, session) {
var obj = {
name : "ruchira",
age : 27,
address : {
number : "16",
city : "ahangama"
}
};
//if the request was JSON, then content property will return that JSON
object
//obj = request.content;
session.put("myObj", obj);
var o = session.get("myObj");
return o;
}


regards,
Ruchira
-- 
Ruchira Wageesha
Software Engineer - WSO2 Inc. www.wso2.com

Email: ruch...@wso2.com Blog: ruchirawagee...@blogspot.com
Mobile: +94775493444

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


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
publisher return code was 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: 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
publisher return code was 1
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: P2 publisher
return code was 1
at
org.wso2.maven.p2.RepositoryGenMojo.createRepo(RepositoryGenMojo.java:209)
at org.wso2.maven.p2.RepositoryGenMojo.execute(RepositoryGenMojo.java:191)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: org.apache.maven.plugin.MojoFailureException: P2 publisher
return code was 1
at
org.wso2.maven.p2.RepositoryGenMojo.generateRepository(RepositoryGenMojo.java:254)
at
org.wso2.maven.p2.RepositoryGenMojo.createRepo(RepositoryGenMojo.java:204)
... 22 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn  -rf :wso2stratos-manager-profile-gen


On Wed, Nov 2, 2011 at 11:55 PM, Pradeep Fernando  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 guess this is working)
> * moving all products to maven3 build (carbon, as, gs are done as of now)
> * create a new profile for greg doc generation process since it takes a
> lot of time, and we dont want the doc generation in our day to day build.
> (or else we should find a solution for that blacklisting thing)
> * upgrade the trunk version, 3.2.0-SNAPSHOT to 4.0.0-SNAPSHOT (this is a
> grep/sed)
> * branch out new dependencies and make sure they don't break the current
> build (right now we are pointing to 3.2.0 branch)
> *Set up a CI server
>
>
> thanks,
> --Pradeep
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
*Sanjeewa Malalgoda*
Software Engineer
**
*WSO2, Inc.*
lean.enterprise.middleware.

mobile : +94 713068779
web: http://wso2.com
 blog
:http://sanjeewamalalgoda.blogspot.com/

[image:
http://wso2.com/wp-content/themes/wso2ng-v2/images/logos/stratos_logo_h42.gif]
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


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  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.
> http://wso2.com
> http://wso2.org
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>

Thanks.
Ranga.
-- 
Ranga Siriwardena
Software Engineer
WSO2 Inc.
___
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  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
gadget.xml  for a zip file for the moment. We dont have a mechanism to do
bulk gadget uploads for the moment. As a workaround you can store related
resources inside a common collection in registry and refer to them from
gadgets.




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

Thanks.
Ranga.
-- 
Ranga Siriwardena
Software Engineer
WSO2 Inc.
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[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] gadget uploading with a zip file

2011-11-03 Thread Samisa Abeysinghe
On Thu, Nov 3, 2011 at 12:44 PM, Lalaji Sureshika  wrote:

> Hi,
>
> On Thu, Nov 3, 2011 at 11:40 AM, Samisa Abeysinghe 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.
>>
>
> Uploading gadget zip files with having sub folders is working.I tested
> this in SLive dev environment now and it works.My gadget sample contains
> gadget.xml file+thumbnail folder[with images] .
>

Then this must be  Windows bug. It is not working on my local setup. I am
using GS product, not the cloud.


>
> Thanks;
>
>>
>>
>>
>> On Thu, Nov 3, 2011 at 12:36 PM, Yumani Ranaweera wrote:
>>
>>> I think bundling everything in a .zip file and uploading to the
>>> repository is the right way. Ranga\Lalaji please correct me if there's a
>>> better way.
>>
>>
>
>>
>>> I tried uploading a zip content just now with the attached files and it
>>> worked.
>>>
>>> Thanks,
>>> Yumani
>>>
>>>
>>> On Thu, Nov 3, 2011 at 12:23 PM, Samisa Abeysinghe wrote:
>>>
 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 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.
>
> Thanks,
> Samisa...
>
> Samisa Abeysinghe
> VP Engineering
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
>
>  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


>>>
>>>
>>> --
>>> Yumani Ranaweera
>>> WSO2, Inc. - http://wso2.org
>>> Email : yum...@wso2.com
>>> Cell: +94 077 7795242
>>> Blog   : http://yumani.blogspot.com/
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>> Thanks,
>> Samisa...
>>
>> Samisa Abeysinghe
>> VP Engineering
>> WSO2 Inc.
>> http://wso2.com
>> http://wso2.org
>>
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Lalaji Sureshika
>
> Software Engineer
> WSO2 Inc.
>
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
> Thanks,
Samisa...

Samisa Abeysinghe
VP Engineering
WSO2 Inc.
http://wso2.com
http://wso2.org
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[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 list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


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

Uploading gadget zip files with having sub folders is working.I tested this
in SLive dev environment now and it works.My gadget sample contains
gadget.xml file+thumbnail folder[with images] .

Thanks;

>
>
>
> On Thu, Nov 3, 2011 at 12:36 PM, Yumani Ranaweera  wrote:
>
>> I think bundling everything in a .zip file and uploading to the
>> repository is the right way. Ranga\Lalaji please correct me if there's a
>> better way.
>
>

>
>> I tried uploading a zip content just now with the attached files and it
>> worked.
>>
>> Thanks,
>> Yumani
>>
>>
>> On Thu, Nov 3, 2011 at 12:23 PM, Samisa Abeysinghe wrote:
>>
>>> 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 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.

 Thanks,
 Samisa...

 Samisa Abeysinghe
 VP Engineering
 WSO2 Inc.
 http://wso2.com
 http://wso2.org

  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
>>>
>>>
>>
>>
>> --
>> Yumani Ranaweera
>> WSO2, Inc. - http://wso2.org
>> Email : yum...@wso2.com
>> Cell: +94 077 7795242
>> Blog   : http://yumani.blogspot.com/
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>> Thanks,
> Samisa...
>
> Samisa Abeysinghe
> VP Engineering
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
>
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Lalaji Sureshika

Software Engineer
WSO2 Inc.
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


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

> I think bundling everything in a .zip file and uploading to the repository
> is the right way. Ranga\Lalaji please correct me if there's a better way.
>
> I tried uploading a zip content just now with the attached files and it
> worked.
>
> Thanks,
> Yumani
>
>
> On Thu, Nov 3, 2011 at 12:23 PM, Samisa Abeysinghe wrote:
>
>> 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 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.
>>>
>>> Thanks,
>>> Samisa...
>>>
>>> Samisa Abeysinghe
>>> VP Engineering
>>> WSO2 Inc.
>>> http://wso2.com
>>> http://wso2.org
>>>
>>>  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
>>
>>
>
>
> --
> Yumani Ranaweera
> WSO2, Inc. - http://wso2.org
> Email : yum...@wso2.com
> Cell: +94 077 7795242
> Blog   : http://yumani.blogspot.com/
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
> Thanks,
Samisa...

Samisa Abeysinghe
VP Engineering
WSO2 Inc.
http://wso2.com
http://wso2.org
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[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 paste in the
gadget edit page on GS, it works.

Has anybody seen this? I assume this is 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] 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  wrote:

>
>
> On Thu, Nov 3, 2011 at 12:23 PM, Yumani Ranaweera  wrote:
>
>>
>>
>> On Thu, Nov 3, 2011 at 12:14 PM, Samisa Abeysinghe 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].
>>
>> [1] - https://wso2.org/jira/browse/STRATOS-1787
>>
>> Thanks,
>> Yumani
>>
>
>
> Am sorry Ranga has commented as its a configuration issue. I am verifying
> it in dev setup now. Will reply back with results.
>
> Thanks,
> Yumani
>
>>
>>
>>>  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
>>>
>>>
>>
>>
>> --
>> Yumani Ranaweera
>> WSO2, Inc. - http://wso2.org
>> Email : yum...@wso2.com
>> Cell: +94 077 7795242
>> Blog   : http://yumani.blogspot.com/
>>
>
>
>
> --
> Yumani Ranaweera
> WSO2, Inc. - http://wso2.org
> Email : yum...@wso2.com
> Cell: +94 077 7795242
> Blog   : http://yumani.blogspot.com/
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
> Thanks,
Samisa...

Samisa Abeysinghe
VP Engineering
WSO2 Inc.
http://wso2.com
http://wso2.org
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev