Re: [Dev] Stratos problem?

2013-02-14 Thread Kasun Perera
Hi Shariq

This is not the normal behavior plus I cannot access the webapp on the
> test1.* context .. can you share a working version of the webapp and let me
> know how
> to reproduce the dead page what you were talking about .?!
>
>>
>>

It just happened not sure how to reproduce it. But I will send you
the credentials to my testing tenant in a private mail so you can look at
it.
You can use this .WAR file to check.
https://docs.google.com/file/d/0B5A0W5SUykQqY1BLM1hmMjI4UGs/edit?usp=sharing

Just curious, Is there any RAM memory limitation to a tenant?
This may be the problem that i'm having related to the apache-lucene
libraries.
I was doing in-memory indexing since stratoes doesn't allow file access. I
was using "org.apache.lucene.store.*RAMDirectory*" for that.
If Physical memory is not enough it will swap out the *RAMDirectory. *I was
checking whether I could do this indexing operation in another way but i'm
out of options stuck :(

Thanks



-- 
Regards

Kasun Perera
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Regarding AS Module hot deployment issue

2013-02-14 Thread Supun Malinga
Hi,

On Fri, Feb 15, 2013 at 11:36 AM, Kishanthan Thangarajah <
kishant...@wso2.com> wrote:

>
>
> On Thu, Feb 14, 2013 at 12:39 PM, Rasika Kariyawasam wrote:
>
>> hi ,
>>
>> issue : https://wso2.org/jira/browse/WSAS-992
>> Tenant users are allowed to add modules. But they are not supposed to
>> restart the server. Are tenant users required to see 'Add Module' ?
>>
>
> This is an issue at axis2 level. Module hot deployment is not allowed in
> axis2. Hence we need to add correct notification saying that the server
> needs restart. And for tenants, we need to hide/remove the option of add
> modules.
>
> This needs to be added to our documentation.
>

Yes agreed. For the moment we have no option but to disable the option to
add axis2 modules for tenants.

thanks,

>
> Thanks,
> Kishanthan.
>
>>
>> /regards
>> Rasika
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Software Engineer,
> Development Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com*
> Twitter - *http://twitter.com/kishanthan*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Supun Malinga,

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


Re: [Dev] Stratos problem?

2013-02-14 Thread Muhammed Shariq
On Thu, Feb 14, 2013 at 1:40 PM, Kasun Perera  wrote:

> This is some other problem happened, I noticed it now.
>
> When I upload a .WAR file seems it goes in to another tenet
> Although my tenant is 
> /t/karsha.opensource.lk/
>  Main>Applications>
> list shows me it's under 
> /t/test1.chamara.com/webapps/KarshaAnnotate
>
> (Some other .WAR files are in correct context)
> It may not related to my libraries issue, but that's not normal behavior ?
>

This is not the normal behavior plus I cannot access the webapp on the
test1.* context .. can you share a working version of the webapp and let me
know how
to reproduce the dead page what you were talking about .?!

> --
> Regards
>
> Kasun Perera
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stratos problem?

2013-02-14 Thread Muhammed Shariq
On Thu, Feb 14, 2013 at 12:18 PM, Kasun Perera  wrote:

> Hi Shariq
>
> SLive AS Monitor -> System Logs dosen't list any errors.
>
> BTW does "SLive AS Monitor -> System Logs" under my tenant list logs
> related to others too?
> I can see a logs like "
> 2013-02-13 22:35:19,047 Loaded tenant test1.chamara.com in 4524 ms
> "
>
No it shouldn't will check on it.


> Any Ideas why i'm getting this on terminal when security manger enabled?
>
> JAVA_HOME environment variable is set to /usr/lib/jvm/java-6-sun-1.6.0.26
> CARBON_HOME environment variable is set to
> /home/kasun/Documents/wso2as-5.0.1
> Property pattern javax.net.ssl.trustStore is restricted for tenant code.
> Property pattern javax.net.ssl.trustStorePassword is restricted for tenant
> code.
> Property pattern denied.system.properties is restricted for tenant code.
> java.security.AccessControlException
>  - klass: 'java/security/AccessControlException'
>

You need to sign all the jars in the distro when starting with security
manager .. you can used to attached script to do so ,, if your on windows
you might
have to modify the script accordingly ..

>
> Thanks
>
> On Thu, Feb 14, 2013 at 11:26 AM, Muhammed Shariq  wrote:
>
>> Hi,
>>
>> We had an issue with regard to the DB user migration which we fixed
>> during the last weekend it self, then I by going through Kasun's code I
>> figured that he was using a wrong library which further prevented the app
>> from working ..
>>
>> It seems Kasun is working on Windows and is unable to enable security
>> manager and test his app using the server.sh i provided .. Kasun can you go
>> to SLive AS Monitor -> System Logs and check if there are any errors .. ?!
>>
>>
>> On Thu, Feb 14, 2013 at 10:46 AM, Sanjiva Weerawarana <
>> sanj...@opensource.lk> wrote:
>>
>>> Kasun is this working now?
>>>
>>>
>>> On Mon, Feb 11, 2013 at 10:39 AM, Muhammed Shariq wrote:
>>>
 Hi,

 On Mon, Feb 11, 2013 at 9:18 AM, Kasun Perera wrote:

> H Amila
>
> I have activated the the Storage Server, and now I can see the list of
> databases.
> But when I click on manage link on a perticuler database, it direct me
> to the "Attach database users" page.
>  From my previous experience this should direct me to the page where I
> can login to the database and run SQL queries?
> I tried to create a new database but the result was same as above
> mentioned
>

 The DB explorer is in the Data Services Server .. you can find it under
 Tools -> Database Explorer in the Data Services Server and execute your
 queries ...

>
> The exception occurs when trying to login for the webapp --> I think
> this is still a problem of database connectivity ?Can you suggest any work
> around?
>

 Can you send us any exceptions you are seeing so we can further
 investigate ..?

>
> BTW- Sometimes I'm experiencing some weird behavior on stratoes live
> It gives me "Authentication Failure" when I'm trying to login for
> "Data Service Server" and "Storage server"
> When I click some link instead of going to that page it start
> downloading the page. e.g when I click upload web application it start
> downloading the "upload.jsp" page.
>

 The pages being downloaded is an issue we also experience in Google
 Chrome .. you can use Firefox for the moment and it should work fine .

>
> Thanks
>
>
> On Sun, Feb 10, 2013 at 1:19 PM, Amila Maha Arachchi 
> wrote:
>
>> Hi Kasun,
>>
>> On Sun, Feb 10, 2013 at 12:22 PM, Kasun Perera 
>> wrote:
>>
>>>
>>>
>>> On Sun, Feb 10, 2013 at 10:55 AM, Amila Maha Arachchi <
>>> ami...@wso2.com> wrote:
>>>
  When we access your webapp, we can see it loading fine the styles.
>>>
>>>
>>> Yes this is due to changes I did on Friday!
>>> We had common JSP segment files "header.jspf" "footer.jspf" and
>>> I merged them with the login page on Friday in-order to see whether it
>>> works. So basically login was loading with fine styles since Friday.
>>>
>>> But I still can't see our MySql databases inside the Data Service
>>> Server interface. Is this same for your testing tenants?  I have another
>>> testing tenant and situation is same; I can see the databases there too.
>>>
>>
>> Yes, this is the expected behaviour. Your database will be found in
>> https://storage.stratoslive.wso2.com (Our new storage server
>> product). So, if you login to your tenant and go to above URL, you will 
>> see
>> it under the databases section (this was earlier included in Data Service
>> Server and now it is removed from it and included in Storage Server).
>>
>> *Note:
>>
>> You might not be able to login to storage server in your first
>> attempt. First, you need to go to Stratos Manager (
>> https://stratoslive.wso2.com) -> Configu

[Dev] [Bamboo-Build] WSO2 Carbon 4.0.x > Platform 4.0.7 > #49 was SUCCESSFUL (with 329 tests). Change made by krishantha.

2013-02-14 Thread Bamboo

---
WSO2 Carbon 4.0.x > Platform 4.0.7 > #49 was successful.
---
Code has been updated by krishantha.
329 tests in total.

http://wso2.org/bamboo/browse/WCB001-PLA007-49/




--
Code Changes
--
krishantha (162037):

>creating 1.0.7 clarity module

krishantha (162041):

>External changed to version 1.0.8

krishantha (162040):

>Updating clarity test vesion



--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Regarding AS Module hot deployment issue

2013-02-14 Thread Kishanthan Thangarajah
On Thu, Feb 14, 2013 at 12:39 PM, Rasika Kariyawasam wrote:

> hi ,
>
> issue : https://wso2.org/jira/browse/WSAS-992
> Tenant users are allowed to add modules. But they are not supposed to
> restart the server. Are tenant users required to see 'Add Module' ?
>

This is an issue at axis2 level. Module hot deployment is not allowed in
axis2. Hence we need to add correct notification saying that the server
needs restart. And for tenants, we need to hide/remove the option of add
modules.

This needs to be added to our documentation.

Thanks,
Kishanthan.

>
> /regards
> Rasika
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Kishanthan Thangarajah*
Software Engineer,
Development Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com*
Twitter - *http://twitter.com/kishanthan*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Bamboo-Build] WSO2 Carbon 4.0.x > Products 4.0.7 > #48 has FAILED (1 tests failed, no failures were new). Change made by suho.

2013-02-14 Thread Bamboo

---
WSO2 Carbon 4.0.x > Products 4.0.7 > #48 failed.
---
Code has been updated by suho.
1/10 tests failed, no failures were new.

http://wso2.org/bamboo/browse/WCB001-PRO007-48/

-
Currently Responsible
-

No one is responsible for fixing this build.



--
Failing Jobs
--
  - Default Job (Default Stage): 1 of 10 tests failed.



--
Code Changes
--
suho (162026):

>fixing typo



--
Tests
--
Existing Test Failures (1)
   - ServerStartupTestCase: Verify logs

--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Bamboo-Build] WSO2 Carbon 4.0.x - Nightly > Kernel_4.0.6 > #37 has FAILED

2013-02-14 Thread Bamboo

---
WSO2 Carbon 4.0.x - Nightly > Kernel_4.0.6 > #37 failed.
---
This build occurred because it is a dependant of WCB002-NORB004-38.
No failed tests found, a possible compilation error.

http://wso2.org/bamboo/browse/WCB002-NKER004-37/

-
Currently Responsible
-

No one is responsible for fixing this build.



--
Failing Jobs
--
  - Default Job (Default Stage): No tests found.




--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using Gitblit for Git repository management in Stratos 2.0

2013-02-14 Thread Nirmal Fernando
Paul,

On Thu, Feb 14, 2013 at 9:41 PM, Paul Fremantle  wrote:

> The Git repo should NOT have these directories by *default*. The directory
> structure is completely dependent on which cartridge(s) you are developing
> against.


This is what exactly we're doing now. You can define how your repository
should look like, by using the Cartridge definition,

>
> Paul
>
> PS we still need to address whether we are willing to support GitBlit as a
> new service.
>
>
> On 14 February 2013 14:44, Lahiru Sandaruwan  wrote:
>
>> Hi all,
>>
>> I think we could have use the Git repository created by App factory, when
>> AF and S2 integration.
>> But we have to have the folder structure relevant to WSO2 application
>> server as Sajith also mentioned.
>> i.e Git repository should include "axis2modules  axis2services
>>  jaggeryapps  jaxwebapps  modulemetafiles  servicemetafiles  webapps"
>> folders inside that.
>>
>> AF team,
>>
>> Is above possible?
>>
>> Thanks.
>>
>>
>>  On Thu, Feb 14, 2013 at 10:54 AM, Sajith Kariyawasam wrote:
>>
>>> Hi Paul,
>>>
>>> We support both the options, a Git repository hosted in somewhere else
>>> can be used. If no repository is given at the time of subscription, an
>>> internal repo is created
>>> and that will be used.
>>>
>>> When using an external repo, that has to have the proper folder
>>> structure depending on the cartridge type, which can be mentioned in the
>>> user guide (Folder structure per cartridge type is defined in cartridge
>>> specific config file).
>>>
>>>
>>> On Tue, Feb 12, 2013 at 5:28 PM, Paul Fremantle  wrote:
>>>
 Folks

 I like Gitblit. It seems like a good approach and its under the right
 license

 BUT!

 I don't think we've thought this through properly. Is Stratos 2.0 going
 to embed a Git server? If so that is a BIG architecture change for Stratos
 2.0.

 I see this as a potential option for App Factory, but I think Stratos
 2.0 should be assuming you have a Git or SVN somewhere else by default. If
 we are going to start offering Git serving as part of the product that has
 big implications:

 1) scalability
 2) disk requirements
 3) support
 etc

 Paul

 On 11 February 2013 19:03, Ramith Jayasinghe  wrote:

> This would help:
>
> https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/appfac/org.wso2.carbon.appfactory.repository/src/main/java/org/wso2/carbon/appfactory/git/repository/provider/
>
>
> On Mon, Feb 11, 2013 at 10:57 AM, Sajith Kariyawasam 
> wrote:
>
>>
>> On Mon, Feb 11, 2013 at 11:13 PM, Ramith Jayasinghe 
>> wrote:
>>
>>> Appfactory already integrates with GIT.
>>> It might be useful to check code there.
>>>
>>>
>> Great.! Will have a look into it,
>>
>> Appfactory team, are you guys having a Git repository management
>> component that can be reused in S2 ?
>>
>> What is the library being used?
>>
>>
>>>
>>> On Mon, Feb 11, 2013 at 9:31 AM, Sajith Kariyawasam >> > wrote:
>>>

 On Mon, Feb 11, 2013 at 5:57 PM, Lahiru Sandaruwan <
 lahi...@wso2.com> wrote:

> +1 for this improvement as it is critical to handle the
> concurrency in subscriptions.
> Sajith please create an improvement Jira to track this.
>
>
 Its already in JIRA https://wso2.org/jira/browse/SPI-101


> Thanks.
>
>
> On Mon, Feb 11, 2013 at 5:43 PM, Isuru Haththotuwa <
> isu...@wso2.com> wrote:
>
>>
>>
>> On Mon, Feb 11, 2013 at 3:57 PM, Isuru Haththotuwa <
>> isu...@wso2.com> wrote:
>>
>>>
>>> On Mon, Feb 11, 2013 at 3:22 PM, Sajith Kariyawasam <
>>> saj...@wso2.com> wrote:
>>>
 Hi all,

 This is to keep track of the improvements to be done in Git
 repo management functionality in Stratos 2.0, since we faced some 
 issues
 when creating Git repositories concurrently, in our current 
 implementation
 which uses set of shell scripts to do that.

 So we are looking for a way to replace those shell scripts with
 a Java Client,

 found [1] provides a nice way to manage git repositories, and
 is equipped with a Java API [2]  as well, so that in Stratos 2 
 code, I
 think we can use this API instead of our bash scripts..

 I did some basic tests and were able to create users and git
 repositories using a Java program..

 So I think we can use Gitblit WAR [3] as the repository server,
 and use [2] to create / manage repos and, use Jgit [4] to do Git 
 pull/push

>>

Re: [Dev] Using Gitblit for Git repository management in Stratos 2.0

2013-02-14 Thread Lahiru Sandaruwan
On Thu, Feb 14, 2013 at 9:41 PM, Paul Fremantle  wrote:

> The Git repo should NOT have these directories by *default*. The directory
> structure is completely dependent on which cartridge(s) you are developing
> against.

+1, This is already possible. I mean we have to have directory separation
to identify the application types. It is also possible that Git repository
is empty in default and user add the folder when he add the application.
The directory names will be different from cartridge to cartridge.
e.g. for PHP it is 'www' and App server - axis2 services it is
'axis2services' etc.




> Paul
>
> PS we still need to address whether we are willing to support GitBlit as a
> new service.
>
>
> On 14 February 2013 14:44, Lahiru Sandaruwan  wrote:
>
>> Hi all,
>>
>> I think we could have use the Git repository created by App factory, when
>> AF and S2 integration.
>> But we have to have the folder structure relevant to WSO2 application
>> server as Sajith also mentioned.
>> i.e Git repository should include "axis2modules  axis2services
>>  jaggeryapps  jaxwebapps  modulemetafiles  servicemetafiles  webapps"
>> folders inside that.
>>
>> AF team,
>>
>> Is above possible?
>>
>> Thanks.
>>
>>
>>  On Thu, Feb 14, 2013 at 10:54 AM, Sajith Kariyawasam wrote:
>>
>>> Hi Paul,
>>>
>>> We support both the options, a Git repository hosted in somewhere else
>>> can be used. If no repository is given at the time of subscription, an
>>> internal repo is created
>>> and that will be used.
>>>
>>> When using an external repo, that has to have the proper folder
>>> structure depending on the cartridge type, which can be mentioned in the
>>> user guide (Folder structure per cartridge type is defined in cartridge
>>> specific config file).
>>>
>>>
>>> On Tue, Feb 12, 2013 at 5:28 PM, Paul Fremantle  wrote:
>>>
 Folks

 I like Gitblit. It seems like a good approach and its under the right
 license

 BUT!

 I don't think we've thought this through properly. Is Stratos 2.0 going
 to embed a Git server? If so that is a BIG architecture change for Stratos
 2.0.

 I see this as a potential option for App Factory, but I think Stratos
 2.0 should be assuming you have a Git or SVN somewhere else by default. If
 we are going to start offering Git serving as part of the product that has
 big implications:

 1) scalability
 2) disk requirements
 3) support
 etc

 Paul

 On 11 February 2013 19:03, Ramith Jayasinghe  wrote:

> This would help:
>
> https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/appfac/org.wso2.carbon.appfactory.repository/src/main/java/org/wso2/carbon/appfactory/git/repository/provider/
>
>
> On Mon, Feb 11, 2013 at 10:57 AM, Sajith Kariyawasam 
> wrote:
>
>>
>> On Mon, Feb 11, 2013 at 11:13 PM, Ramith Jayasinghe 
>> wrote:
>>
>>> Appfactory already integrates with GIT.
>>> It might be useful to check code there.
>>>
>>>
>> Great.! Will have a look into it,
>>
>> Appfactory team, are you guys having a Git repository management
>> component that can be reused in S2 ?
>>
>> What is the library being used?
>>
>>
>>>
>>> On Mon, Feb 11, 2013 at 9:31 AM, Sajith Kariyawasam >> > wrote:
>>>

 On Mon, Feb 11, 2013 at 5:57 PM, Lahiru Sandaruwan <
 lahi...@wso2.com> wrote:

> +1 for this improvement as it is critical to handle the
> concurrency in subscriptions.
> Sajith please create an improvement Jira to track this.
>
>
 Its already in JIRA https://wso2.org/jira/browse/SPI-101


> Thanks.
>
>
> On Mon, Feb 11, 2013 at 5:43 PM, Isuru Haththotuwa <
> isu...@wso2.com> wrote:
>
>>
>>
>> On Mon, Feb 11, 2013 at 3:57 PM, Isuru Haththotuwa <
>> isu...@wso2.com> wrote:
>>
>>>
>>> On Mon, Feb 11, 2013 at 3:22 PM, Sajith Kariyawasam <
>>> saj...@wso2.com> wrote:
>>>
 Hi all,

 This is to keep track of the improvements to be done in Git
 repo management functionality in Stratos 2.0, since we faced some 
 issues
 when creating Git repositories concurrently, in our current 
 implementation
 which uses set of shell scripts to do that.

 So we are looking for a way to replace those shell scripts with
 a Java Client,

 found [1] provides a nice way to manage git repositories, and
 is equipped with a Java API [2]  as well, so that in Stratos 2 
 code, I
 think we can use this API instead of our bash scripts..

 I did some basic tests and were able to create users and git
 reposit

Re: [Dev] Using Gitblit for Git repository management in Stratos 2.0

2013-02-14 Thread Paul Fremantle
The Git repo should NOT have these directories by *default*. The directory
structure is completely dependent on which cartridge(s) you are developing
against.

Paul

PS we still need to address whether we are willing to support GitBlit as a
new service.


On 14 February 2013 14:44, Lahiru Sandaruwan  wrote:

> Hi all,
>
> I think we could have use the Git repository created by App factory, when
> AF and S2 integration.
> But we have to have the folder structure relevant to WSO2 application
> server as Sajith also mentioned.
> i.e Git repository should include "axis2modules  axis2services
>  jaggeryapps  jaxwebapps  modulemetafiles  servicemetafiles  webapps"
> folders inside that.
>
> AF team,
>
> Is above possible?
>
> Thanks.
>
>
>  On Thu, Feb 14, 2013 at 10:54 AM, Sajith Kariyawasam wrote:
>
>> Hi Paul,
>>
>> We support both the options, a Git repository hosted in somewhere else
>> can be used. If no repository is given at the time of subscription, an
>> internal repo is created
>> and that will be used.
>>
>> When using an external repo, that has to have the proper folder structure
>> depending on the cartridge type, which can be mentioned in the user guide
>> (Folder structure per cartridge type is defined in cartridge specific
>> config file).
>>
>>
>> On Tue, Feb 12, 2013 at 5:28 PM, Paul Fremantle  wrote:
>>
>>> Folks
>>>
>>> I like Gitblit. It seems like a good approach and its under the right
>>> license
>>>
>>> BUT!
>>>
>>> I don't think we've thought this through properly. Is Stratos 2.0 going
>>> to embed a Git server? If so that is a BIG architecture change for Stratos
>>> 2.0.
>>>
>>> I see this as a potential option for App Factory, but I think Stratos
>>> 2.0 should be assuming you have a Git or SVN somewhere else by default. If
>>> we are going to start offering Git serving as part of the product that has
>>> big implications:
>>>
>>> 1) scalability
>>> 2) disk requirements
>>> 3) support
>>> etc
>>>
>>> Paul
>>>
>>> On 11 February 2013 19:03, Ramith Jayasinghe  wrote:
>>>
 This would help:

 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/appfac/org.wso2.carbon.appfactory.repository/src/main/java/org/wso2/carbon/appfactory/git/repository/provider/


 On Mon, Feb 11, 2013 at 10:57 AM, Sajith Kariyawasam 
 wrote:

>
> On Mon, Feb 11, 2013 at 11:13 PM, Ramith Jayasinghe 
> wrote:
>
>> Appfactory already integrates with GIT.
>> It might be useful to check code there.
>>
>>
> Great.! Will have a look into it,
>
> Appfactory team, are you guys having a Git repository management
> component that can be reused in S2 ?
>
> What is the library being used?
>
>
>>
>> On Mon, Feb 11, 2013 at 9:31 AM, Sajith Kariyawasam 
>> wrote:
>>
>>>
>>> On Mon, Feb 11, 2013 at 5:57 PM, Lahiru Sandaruwan >> > wrote:
>>>
 +1 for this improvement as it is critical to handle the concurrency
 in subscriptions.
 Sajith please create an improvement Jira to track this.


>>> Its already in JIRA https://wso2.org/jira/browse/SPI-101
>>>
>>>
 Thanks.


 On Mon, Feb 11, 2013 at 5:43 PM, Isuru Haththotuwa >>> > wrote:

>
>
> On Mon, Feb 11, 2013 at 3:57 PM, Isuru Haththotuwa <
> isu...@wso2.com> wrote:
>
>>
>> On Mon, Feb 11, 2013 at 3:22 PM, Sajith Kariyawasam <
>> saj...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> This is to keep track of the improvements to be done in Git repo
>>> management functionality in Stratos 2.0, since we faced some issues 
>>> when
>>> creating Git repositories concurrently, in our current 
>>> implementation which
>>> uses set of shell scripts to do that.
>>>
>>> So we are looking for a way to replace those shell scripts with
>>> a Java Client,
>>>
>>> found [1] provides a nice way to manage git repositories, and is
>>> equipped with a Java API [2]  as well, so that in Stratos 2 code, I 
>>> think
>>> we can use this API instead of our bash scripts..
>>>
>>> I did some basic tests and were able to create users and git
>>> repositories using a Java program..
>>>
>>> So I think we can use Gitblit WAR [3] as the repository server,
>>> and use [2] to create / manage repos and, use Jgit [4] to do Git 
>>> pull/push
>>>
>>> Will update the thread as work progresses.
>>>
>>> Appreciate feedback on this
>>>
>>
>> +1. I have used jgit [4], and it supports all git operations
>> through java code. Will look in to see if it supports the management 
>> aspect
>> as well, if so we can use a single library for this.
>>
>
>>>

Re: [Dev] Using Gitblit for Git repository management in Stratos 2.0

2013-02-14 Thread Lahiru Sandaruwan
Hi all,

I think we could have use the Git repository created by App factory, when
AF and S2 integration.
But we have to have the folder structure relevant to WSO2 application
server as Sajith also mentioned.
i.e Git repository should include "axis2modules  axis2services  jaggeryapps
 jaxwebapps  modulemetafiles  servicemetafiles  webapps" folders inside
that.

AF team,

Is above possible?

Thanks.


On Thu, Feb 14, 2013 at 10:54 AM, Sajith Kariyawasam wrote:

> Hi Paul,
>
> We support both the options, a Git repository hosted in somewhere else can
> be used. If no repository is given at the time of subscription, an internal
> repo is created
> and that will be used.
>
> When using an external repo, that has to have the proper folder structure
> depending on the cartridge type, which can be mentioned in the user guide
> (Folder structure per cartridge type is defined in cartridge specific
> config file).
>
>
> On Tue, Feb 12, 2013 at 5:28 PM, Paul Fremantle  wrote:
>
>> Folks
>>
>> I like Gitblit. It seems like a good approach and its under the right
>> license
>>
>> BUT!
>>
>> I don't think we've thought this through properly. Is Stratos 2.0 going
>> to embed a Git server? If so that is a BIG architecture change for Stratos
>> 2.0.
>>
>> I see this as a potential option for App Factory, but I think Stratos 2.0
>> should be assuming you have a Git or SVN somewhere else by default. If we
>> are going to start offering Git serving as part of the product that has big
>> implications:
>>
>> 1) scalability
>> 2) disk requirements
>> 3) support
>> etc
>>
>> Paul
>>
>> On 11 February 2013 19:03, Ramith Jayasinghe  wrote:
>>
>>> This would help:
>>>
>>> https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/appfac/org.wso2.carbon.appfactory.repository/src/main/java/org/wso2/carbon/appfactory/git/repository/provider/
>>>
>>>
>>> On Mon, Feb 11, 2013 at 10:57 AM, Sajith Kariyawasam wrote:
>>>

 On Mon, Feb 11, 2013 at 11:13 PM, Ramith Jayasinghe wrote:

> Appfactory already integrates with GIT.
> It might be useful to check code there.
>
>
 Great.! Will have a look into it,

 Appfactory team, are you guys having a Git repository management
 component that can be reused in S2 ?

 What is the library being used?


>
> On Mon, Feb 11, 2013 at 9:31 AM, Sajith Kariyawasam 
> wrote:
>
>>
>> On Mon, Feb 11, 2013 at 5:57 PM, Lahiru Sandaruwan 
>> wrote:
>>
>>> +1 for this improvement as it is critical to handle the concurrency
>>> in subscriptions.
>>> Sajith please create an improvement Jira to track this.
>>>
>>>
>> Its already in JIRA https://wso2.org/jira/browse/SPI-101
>>
>>
>>> Thanks.
>>>
>>>
>>> On Mon, Feb 11, 2013 at 5:43 PM, Isuru Haththotuwa 
>>> wrote:
>>>


 On Mon, Feb 11, 2013 at 3:57 PM, Isuru Haththotuwa >>> > wrote:

>
> On Mon, Feb 11, 2013 at 3:22 PM, Sajith Kariyawasam <
> saj...@wso2.com> wrote:
>
>> Hi all,
>>
>> This is to keep track of the improvements to be done in Git repo
>> management functionality in Stratos 2.0, since we faced some issues 
>> when
>> creating Git repositories concurrently, in our current 
>> implementation which
>> uses set of shell scripts to do that.
>>
>> So we are looking for a way to replace those shell scripts with a
>> Java Client,
>>
>> found [1] provides a nice way to manage git repositories, and is
>> equipped with a Java API [2]  as well, so that in Stratos 2 code, I 
>> think
>> we can use this API instead of our bash scripts..
>>
>> I did some basic tests and were able to create users and git
>> repositories using a Java program..
>>
>> So I think we can use Gitblit WAR [3] as the repository server,
>> and use [2] to create / manage repos and, use Jgit [4] to do Git 
>> pull/push
>>
>> Will update the thread as work progresses.
>>
>> Appreciate feedback on this
>>
>
> +1. I have used jgit [4], and it supports all git operations
> through java code. Will look in to see if it supports the management 
> aspect
> as well, if so we can use a single library for this.
>

 It seems that jgit only provides Git software capabilities, and
 does not support Git-hosting. Therefore we can't use it for the git 
 server
 and repository management requirements. I had a look at gitlib as 
 well, and
 it seems to fit in to the picture nicely. +1 for using it.

>
>>
>> [1] http://gitblit.com/
>>  [2]
>> http://code.google.com/p/gitblit/downloads/detail?name=gbapi-1.2.1.zip
>> [3]

[Dev] Fwd: [Carbon-jira] [jira] (CARBON-14059) Mashup services cannot reference external Java libraries

2013-02-14 Thread Sameera Jayasoma
-- Forwarded message --
From: Joshua Gould (JIRA) 
Date: Wed, Feb 13, 2013 at 4:12 PM
Subject: [Carbon-jira] [jira] (CARBON-14059) Mashup services cannot
reference external Java libraries
To: carbon-j...@wso2.org


Mashup services cannot reference external Java libraries


 Key: CARBON-14059
 URL: https://wso2.org/jira/browse/CARBON-14059
 Project: WSO2 Carbon
  Issue Type: Bug
  Components: Carbon Core, Mashup
Affects Versions: 4.0.1, 4.0.0, 4.0.2, 4.0.3
Reporter: Joshua Gould
Assignee: Sameera Jayasoma


I am attempting to upgrade from WSO2 Carbon 3.0.0 to Carbon 4.0.3. Using
Carbon 3.0.0, after installing the necessary features, I'm able to write
JavaScript Mashup services that can call external Java libraries--and since
WSO2 carbon uses Rhino, I'm able to use importPackage. I have not been able
to get the same functionality working on Carbon 4.0.3.

I have reproduced this issue on Carbon 4.0.0, and 4.0.1.

The procedure I've followed is:

Download and unzip WSO2 Carbon 4.0.3
Start Carbon
Navigate to the "Feature Management" page
Add the 4.0.3 Carbon p2 repository (
http://dist.wso2.org/p2/carbon/releases/4.0.3/)
Search for and install the "Application Server" feature
Restart Carbon
Deploy my test Mashup service
Execute the echo operation of my test Mashup service using the "tryit"
tool.

My test Mashup service (TestMashup.js):

this.serviceName = "TestMashup";
echo.inputTypes = "#raw";
echo.outputType = "#raw";
function echo(parameter) {
var javaDate = new Packages.java.util.Date();
var response = "" + parameter.toXMLString() +
"" + javaDate.getTime() + "";

return new XML(response);
}

I've installed this Mashup service to
CARBON_HOME/repository/deployment/server/jsservices/admin/

When I run this operation on Carbon 3.0.0, I get the following response:


  
test
  
  1360699125311


When I attempt to run this operation on Carbon 4.0.3, I get the following
stack-trace:

[2013-02-12 14:46:32,511] ERROR
{org.jaggeryjs.scriptengine.engine.RhinoEngine} -
 org.mozilla.javascript.EcmaError: ReferenceError: "Packages" is not
defined.(//C:\WSO2CA~1\WSO2CA~1.3\bin\..\repository\deployment\server\jsservices\admin\TestMashup.js#6)
[2013-02-12 14:46:32,512] ERROR
{org.jaggeryjs.scriptengine.engine.RhinoEngine} -
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EcmaError: ReferenceError: "Packages" is not
defined.
(//C:\WSO2CA~1\WSO2CA~1.3\bin\..\repository\deployment\server\jsservices\admin\TestMashup.js#6)
[2013-02-12 14:46:32,512] ERROR
{org.apache.axis2.receivers.AbstractMessageReceiver} -
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EcmaError: ReferenceError: "Packages" is not
defined.
(//C:\WSO2CA~1\WSO2CA~1.3\bin\..\repository\deployment\server\jsservices\admin\TestMashup.js#6)
org.apache.axis2.AxisFault:
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EcmaError: ReferenceError: "Packages" is not
defined.(//C:\WSO2CA~1\WSO2CA~1.3\bin\..\repository\deployment\server\jsservices\admin\TestMashup.js#6)
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at
org.wso2.carbon.mashup.javascript.messagereceiver.JavaScriptEngine.call(JavaScriptEngine.java:176)
at
org.wso2.carbon.mashup.javascript.messagereceiver.JavaScriptEngine.call(JavaScriptEngine.java:208)
at
org.wso2.carbon.mashup.javascript.messagereceiver.JavaScriptReceiver.invokeBusinessLogic(JavaScriptReceiver.java:185)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at
org.eclipse.equinox.http.helper.FilterServletAdaptor$FilterChainImpl.doFilter(FilterServletAdaptor.java:56)
at
org.wso2.carbon.mashup.jsservices.custom.ui.CustomUIServletFilter.doFilter(CustomUIServletFilter.java:233)
at
org.eclipse.equinox.http.helper.FilterServletAdaptor.service(FilterServletAdaptor.java:37)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
at
org.eclipse.equinox.http.se

[Dev] What is the accepted behaviour when adding EPs to services in Greg through UI

2013-02-14 Thread Ashansa Perera
Hi all,

I am using Greg 4.5.3 and I have added a wsdl to Greg through a service
deployed in AS. When I log in to Greg and add an EP to the service related
to that wsdl through UI, it shows up the EP in the UI for service. But
nither it creates an EP (I do not see that EP under /endpoints ) nor the EP
is added to the wsdl related to that service.
Is it the correct behavior?
When we add an EP to the service don't we need to create an EP add it as a
dependency to service and add the same EP as a dependency to the wsdl
related to that service?

-- 
Thanks & Regards,

Ashansa Perera
Software Engineer
WSO2, Inc
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Bamboo-Build] WSO2 Carbon 4.0.x > Platform 4.0.7 > #48 was SUCCESSFUL (with 329 tests). Change made by suho.

2013-02-14 Thread Bamboo

---
WSO2 Carbon 4.0.x > Platform 4.0.7 > #48 was successful.
---
Code has been updated by suho.
329 tests in total.

http://wso2.org/bamboo/browse/WCB001-PLA007-48/




--
Code Changes
--
suho (162026):

>fixing typo



--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Bamboo-Build] WSO2 Carbon 4.0.x - Nightly > Platform_4.0.7 > #13 has FAILED. Change made by 7 authors.

2013-02-14 Thread Bamboo

---
WSO2 Carbon 4.0.x - Nightly > Platform_4.0.7 > #13 failed.
---
Scheduled with changes by suho, ajanthan, dileepa, nuwand, Isuru Udana Loku 
Narangoda, lalaji, thilini.
No failed tests found, a possible compilation error.

http://wso2.org/bamboo/browse/WCB002-NPLA005-13/

-
Currently Responsible
-

No one is responsible for fixing this build.



--
Failing Jobs
--
  - Default Job (Default Stage): 147 tests passed.



--
Code Changes
--
thilini (162021):

>making ui texts configurable

nuwand (162011):

>Fixing APIMANAGER-835

nuwand (162014):

>Updating gateway to version 1.0.7



--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stratos problem?

2013-02-14 Thread Kasun Perera
This is some other problem happened, I noticed it now.

When I upload a .WAR file seems it goes in to another tenet
Although my tenant is
/t/karsha.opensource.lk/
Main>Applications>
list shows me it's under
/t/test1.chamara.com/webapps/KarshaAnnotate

(Some other .WAR files are in correct context)
It may not related to my libraries issue, but that's not normal behavior ?
-- 
Regards

Kasun Perera
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev