Re: [Dev] WSO2 Committers += Isuruwan Herath

2014-01-24 Thread Gayan Dhanushka
Congratzzz Isuruwan...!!!

Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd


On Fri, Jan 24, 2014 at 12:48 PM, Malintha Adikari wrote:

> Congratulations Isuruwan ... !!!
>
> Regards,
> Malintha
>
>
> On Fri, Jan 24, 2014 at 12:47 PM, Waruna Jayaweera wrote:
>
>> Congratzz Isuruwan
>>
>>
>> On Fri, Jan 24, 2014 at 12:37 PM, Ramith Jayasinghe wrote:
>>
>>> Congrats Isuru1!
>>>
>>>
>>>
>>> On Fri, Jan 24, 2014 at 12:23 PM, Senaka Fernando wrote:
>>>
 Hi all,

 Its my pleasure to welcome Isuruwan Herath as a WSO2 Committer.
 Isuruwan has made some great contributions to our platform during the last
 few months and in recognition of his commitment and contributions he has
 been voted as a committer.

 Isuruwan, welcome aboard and keep up the good work.

 Best Regards,
 Senaka.

 --


 *[image: http://wso2.com]  Senaka Fernando*
 Senior Technical Lead; WSO2 Inc.; http://wso2.com



 * Member; Apache Software Foundation; http://apache.org
 E-mail: senaka AT wso2.com **P: +1
 408 754 7388 <%2B1%20408%20754%207388>; ext: 51736*;


 *M: +94 77 322 1818 <%2B94%2077%20322%201818> Linked-In:
 http://linkedin.com/in/senakafernando
 *Lean . Enterprise . Middleware

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


>>>
>>>
>>> --
>>> Ramith Jayasinghe
>>> Technical Lead
>>> WSO2 Inc., http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> E: ram...@wso2.com
>>> P: +94 776715671
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Regards,
>>
>> Waruna Lakshitha Jayaweera
>> Software Engineer
>> WSO2 Inc; http://wso2.com
>> phone: +94713255198
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Malintha Adikari*
>  Software Engineer
>
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 71 2312958
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Isuruwan Herath

2014-01-24 Thread Chan
Congratz Isuruwan


On Fri, Jan 24, 2014 at 1:31 PM, Gayan Dhanushka  wrote:

> Congratzzz Isuruwan...!!!
>
> Gayan Dhanuska
> Software Engineer
> http://wso2.com/
> Lean Enterprise Middleware
>
> Mobile
> 071 666 2327
>
> Office
> Tel   : 94 11 214 5345
> Fax  : 94 11 214 5300
>
> Twitter : https://twitter.com/gayanlggd
>
>
> On Fri, Jan 24, 2014 at 12:48 PM, Malintha Adikari wrote:
>
>> Congratulations Isuruwan ... !!!
>>
>> Regards,
>> Malintha
>>
>>
>> On Fri, Jan 24, 2014 at 12:47 PM, Waruna Jayaweera wrote:
>>
>>> Congratzz Isuruwan
>>>
>>>
>>> On Fri, Jan 24, 2014 at 12:37 PM, Ramith Jayasinghe wrote:
>>>
 Congrats Isuru1!



 On Fri, Jan 24, 2014 at 12:23 PM, Senaka Fernando wrote:

> Hi all,
>
> Its my pleasure to welcome Isuruwan Herath as a WSO2 Committer.
> Isuruwan has made some great contributions to our platform during the last
> few months and in recognition of his commitment and contributions he has
> been voted as a committer.
>
> Isuruwan, welcome aboard and keep up the good work.
>
> Best Regards,
> Senaka.
>
> --
>
>
> *[image: http://wso2.com]  Senaka Fernando*
> Senior Technical Lead; WSO2 Inc.; http://wso2.com
>
>
>
> * Member; Apache Software Foundation; http://apache.org
> E-mail: senaka AT wso2.com **P:
> +1 408 754 7388 <%2B1%20408%20754%207388>; ext: 51736*;
>
>
> *M: +94 77 322 1818 <%2B94%2077%20322%201818> Linked-In:
> http://linkedin.com/in/senakafernando
> *Lean . Enterprise . Middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 776715671


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


>>>
>>>
>>> --
>>> Regards,
>>>
>>> Waruna Lakshitha Jayaweera
>>> Software Engineer
>>> WSO2 Inc; http://wso2.com
>>> phone: +94713255198
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Malintha Adikari*
>>  Software Engineer
>>
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 71 2312958
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Chan (Dulitha Wijewantha)
Software Engineer - Mobile Development
WSO2Mobile
Lean.Enterprise.Mobileware
 * ~Email   duli...@wso2.com *
*  ~Mobile +94712112165*

*  ~Website   dulithawijewantha.com *

*  ~Blog blog.dulithawijewantha.com
*
*  ~Twitter @dulitharw *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] "HTTP DELETE with entity body" support for WSO2 ESB Passthru transport

2014-01-24 Thread Kishanthan Thangarajah
Please note that *No API* changes in a patch is allowed.


On Fri, Jan 24, 2014 at 12:51 PM, Manoj Kumara  wrote:

> Hi Jeewantha,
>
> I'm holding this for now without committing. Can you discuss with others
> and let me know.
>
> Thanks,
> Manoj
>
> Best Regards..
>
>
> Manoj Kumara
> Software Engineer
> WSO2, Inc.; http://wso2.com
>
> Twitter:  http://twitter.com/ManKuma
> Mobile: +94713448188
>
>
> On Fri, Jan 24, 2014 at 11:47 AM, Nuwan Dias  wrote:
>
>> Guys,
>>
>> This patch introduces an API change. We will have to redo it in such a
>> way so that we do not introduce API changes if we're committing this to
>> Carbon 4.2.0 patches.
>>
>> Thanks,
>> NuwanD.
>>
>>
>> On Fri, Jan 24, 2014 at 11:20 AM, Jeewantha Dharmaparakrama <
>> jeewan...@wso2.com> wrote:
>>
>>> Hi Manoj,
>>>
>>> Please find the new httpcore.diff. Sorry for the inconvenience.
>>>
>>> Thanks,
>>> Jeewantha
>>>
>>>
>>>
>>>
>>> On Thu, Jan 23, 2014 at 7:04 PM, Manoj Kumara  wrote:
>>>
 Hi Jeewantha,

 I'm getting some compilation errors when building httpcore module. Can
 you please check.


 [INFO] -
 [ERROR] COMPILATION ERROR :
 [INFO] -
 [ERROR]
 /media/carbon/carbon/kernal/branches/4.2.0/patches/patch0005/dependencies/httpcore/4.3.0-wso2v1/src/main/java/org/apache/http/impl/DefaultHttpRequestFactory.java:[36,31]
 cannot find symbol
   symbol:   class BasicHttpEntityPossibleEnclosingRequest
   location: package org.apache.http.message
 [ERROR]
 /media/carbon/carbon/kernal/branches/4.2.0/patches/patch0005/dependencies/httpcore/4.3.0-wso2v1/src/main/java/org/apache/http/impl/DefaultHttpRequestFactory.java:[93,24]
 cannot find symbol
   symbol:   class BasicHttpEntityPossibleEnclosingRequest
   location: class org.apache.http.impl.DefaultHttpRequestFactory
 [ERROR]
 /media/carbon/carbon/kernal/branches/4.2.0/patches/patch0005/dependencies/httpcore/4.3.0-wso2v1/src/main/java/org/apache/http/impl/DefaultHttpRequestFactory.java:[108,24]
 cannot find symbol
   symbol:   class BasicHttpEntityPossibleEnclosingRequest
   location: class org.apache.http.impl.DefaultHttpRequestFactory


 Thanks,
 Manoj

 Best Regards..


 Manoj Kumara
 Software Engineer
 WSO2, Inc.; http://wso2.com

 Twitter:  http://twitter.com/ManKuma
 Mobile: +94713448188


 On Thu, Jan 23, 2014 at 6:00 PM, Jeewantha Dharmaparakrama <
 jeewan...@wso2.com> wrote:

> Adding the bin.xml
>
>
> On Thu, Jan 23, 2014 at 5:29 PM, Jeewantha Dharmaparakrama <
> jeewan...@wso2.com> wrote:
>
>> Hi Manoj,
>>
>> Attached are the diffs to be committed to patch0005 in kernal 4.2.0.
>> Please do the needful.
>>
>> Thanks,
>> Jeewantha
>>
>>
>> On Thu, Jan 16, 2014 at 1:52 PM, Kasun Indrasiri wrote:
>>
>>> +1 This is looking good. Shall we incorporate the changes in to the
>>> latest ESB version and verify the fix with the integration tests.
>>>
>>>
>>> On Thu, Jan 16, 2014 at 11:45 AM, Jeewantha Dharmaparakrama <
>>> jeewan...@wso2.com> wrote:
>>>
 Hi Folks,

 We had been implementing this feature last week and thought it
 needed public attention. First of all, "HTTP/1.1 DELETE with entity 
 body"
 does NOT violate the spec [1] [2]. But the initial design of
 apache-httpcomponents considers DELETE as a "Non entity enclosing 
 request".
 To support this feature, we introduced a third category "Possible 
 entity
 enclosing request" because now a DELETE can be of either type, with or
 without entity body.

 Once the whole HTTP request is read, a "Possible entity enclosing
 request" will create the correct object "entity enclosing request" or a
 "non entity enclosing request" by looking at it headers. We look at the
 header Content-Length to determine if the request has a payload.

 So now, the following is a perfectly valid HTTP DELETE request.

 DELETE /order/delete HTTP/1.1
 Accept-Encoding: gzip,deflate
 Content-Type: text/xml;charset=UTF-8
 SOAPAction: "urn:echoInt"
 Content-Length: 290
 Host: jeewantha:8280
 Connection: Keep-Alive
 User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

 http://schemas.xmlsoap.org/soap/envelope/"; xmlns:echo="
 http://echo.services.core.carbon.wso2.org";>   

 5 

 Note that this is a sample POST to StockQuoteService of which I
 changed the method to DELETE. In other words, DELETE with payloads work
 exactly as POSTs.

 [1] http://stackoverflow.com/a/2996

Re: [Dev] Need help with Cassandra

2014-01-24 Thread Udara Rathnayake
Hi Chamila,

Were you able to solve your problem?
I'm using apache-cassandra-1.1.3 and able to get the cqlsh terminal without
any issues.
Simply run  ./cqlsh hostname port within apache-cassandra-1.1.3/bin
directory. In my instance ./cqlsh 10.100.0.128 9160

udara@thinkPad:~/wso2/workspace/support/apache-cassandra-1.1.3/bin$ ./cqlsh
10.100.0.128 9160
Connected to Test Cluster at 10.100.0.128:9160.
[cqlsh 2.2.0 | Cassandra 1.1.3 | CQL spec 2.0.0 | Thrift protocol 19.32.0]
Use HELP for help.
cqlsh>


Regards,
UdaraR


On Thu, Jan 23, 2014 at 10:37 PM, Chamila Wijayarathna wrote:

> Hi Udara,
> I'm using Python 2.7.4 .
> Thank You
>
>
> On Thu, Jan 23, 2014 at 3:59 PM, Udara Rathnayake  wrote:
>
>> Hi,
>>
>> Since cqlsh is python based, check your python version compatibility.
>>
>> Regards,
>> UdaraR
>>
>>
>> On Thu, Jan 23, 2014 at 1:09 PM, Chamila Wijayarathna 
>> wrote:
>>
>>>  Hi all,
>>> For out intern project, we are using CEP with cassandra output adapter.
>>> For observation purposes we downloaded cassandra from [1] and tried to
>>> run ./cqlsh from bin folder. It says that "bash: ./cqlsh: Permission
>>> denied", when I ran it with sudo it says "Command not found".
>>>  When I ran chmod u+x cqlsh and then tried ./cqlsh, now it says that
>>> "Can't locate transport factory function
>>> cqlshlib.tfactory.regular_transport_factory". What is the problem here?
>>>
>>> Thank You.
>>>
>>> --
>>> *Chamila Wijayarathna*
>>> Engineering Intern,
>>> WSO2 Inc.
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Udara Rathnayake*
>> Software Engineer
>> WSO2 Inc. : http://wso2.com
>>
>> Mobile : +94 772207239
>> Twitter : http://twitter.com/udarakr
>> Blog: http://udarakr.blogspot.com
>>
>>
>
>
> --
> *Chamila Wijayarathna*
> Engineering Intern,
> WSO2 Inc.
>
>


-- 
*Udara Rathnayake*
Software Engineer
WSO2 Inc. : http://wso2.com

Mobile : +94 772207239
Twitter : http://twitter.com/udarakr
Blog: http://udarakr.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] DefaultRealmService Tenant domain has not been set in CarbonContext

2014-01-24 Thread Rajith Vitharana
Hi,

I was going through this [1] EIP tutorial. According to that I have created
a Topic and configured ESB, but when I send the soap message to the ESB, it
throws an exception saying "DefaultRealmService Tenant domain has not been
set in CarbonContext" please find the full stack trace below. Am I missing
something? Appreciate some guidance

full stack trace -

java.lang.NullPointerException: Tenant domain has not been set in
CarbonContext
at
org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:79)
at
org.wso2.carbon.user.core.tenant.TenantCache.getTenantCache(TenantCache.java:39)
at
org.wso2.carbon.user.core.tenant.TenantCache.getValueFromCache(TenantCache.java:77)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:224)
at
org.wso2.carbon.user.core.tenant.JDBCTenantManager.getTenant(JDBCTenantManager.java:54)
at
org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:159)
at
org.wso2.carbon.event.core.internal.delivery.inmemory.InMemoryDeliveryManager.publish(InMemoryDeliveryManager.java:87)
at
org.wso2.carbon.event.core.internal.EventPublisher.run(EventPublisher.java:56)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
[2014-01-24 14:14:38,621] ERROR - EventPublisher Can not publish the
message
org.wso2.carbon.event.core.exception.EventBrokerException: Can not access
the user store manager
at
org.wso2.carbon.event.core.internal.delivery.inmemory.InMemoryDeliveryManager.publish(InMemoryDeliveryManager.java:109)
at
org.wso2.carbon.event.core.internal.EventPublisher.run(EventPublisher.java:56)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)



[1] http://docs.wso2.org/display/IntegrationPatterns/Event+Message

Thanks,
-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Integration test failure - Zip is null

2014-01-24 Thread Bhathiya Jayasekara
Hi,

I'm getting following error while trying to run integration tests in SS.
There is SS pack in *modules/distribution/target. *Any reason why this
error occurs?

---
 T E S T S
---
Running TestSuite
[2014-01-24 14:48:15,693]  INFO
{org.wso2.carbon.automation.core.PlatformExecutionManager} -
 ---Test Execution Started --
[2014-01-24 14:48:15,702]  INFO
{org.wso2.carbon.automation.core.ServerGroupManager} -  *Carbon zip file -
null*
org.apache.maven.surefire.util.SurefireReflectionException:
java.lang.reflect.InvocationTargetException; nested exception is
java.lang.reflect.InvocationTargetException: null
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
 at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
 at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
Caused by: java.lang.IllegalArgumentException: carbon zip file is null
at
org.wso2.carbon.automation.core.ServerGroupManager.startServer(ServerGroupManager.java:82)
 at
org.wso2.carbon.automation.core.ServerGroupManager.startServersForBuilder(ServerGroupManager.java:98)
at
org.wso2.carbon.automation.core.PlatformExecutionManager.startSevers(PlatformExecutionManager.java:187)
 at
org.wso2.carbon.automation.core.PlatformExecutionManager.onExecutionStart(PlatformExecutionManager.java:76)
at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)
 at org.testng.TestNG.run(TestNG.java:983)
at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:177)
 at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:105)
 ... 9 more



Thanks,

-- 
*Bhathiya Jayasekara*
*Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Integration test failure - Zip is null

2014-01-24 Thread Krishantha Samaraweera
Did you set carbon.zip file property in SS integration test pom ?

Thanks,
Krishantha.


On Fri, Jan 24, 2014 at 2:53 PM, Bhathiya Jayasekara wrote:

> Hi,
>
> I'm getting following error while trying to run integration tests in SS.
> There is SS pack in *modules/distribution/target. *Any reason why this
> error occurs?
>
> ---
>  T E S T S
> ---
> Running TestSuite
> [2014-01-24 14:48:15,693]  INFO
> {org.wso2.carbon.automation.core.PlatformExecutionManager} -
>  ---Test Execution Started --
> [2014-01-24 14:48:15,702]  INFO
> {org.wso2.carbon.automation.core.ServerGroupManager} -  *Carbon zip file
> - null*
> org.apache.maven.surefire.util.SurefireReflectionException:
> java.lang.reflect.InvocationTargetException; nested exception is
> java.lang.reflect.InvocationTargetException: null
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
>  at
> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> at
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>  at
> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
>  at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
> Caused by: java.lang.IllegalArgumentException: carbon zip file is null
> at
> org.wso2.carbon.automation.core.ServerGroupManager.startServer(ServerGroupManager.java:82)
>  at
> org.wso2.carbon.automation.core.ServerGroupManager.startServersForBuilder(ServerGroupManager.java:98)
> at
> org.wso2.carbon.automation.core.PlatformExecutionManager.startSevers(PlatformExecutionManager.java:187)
>  at
> org.wso2.carbon.automation.core.PlatformExecutionManager.onExecutionStart(PlatformExecutionManager.java:76)
> at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)
>  at org.testng.TestNG.run(TestNG.java:983)
> at
> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:177)
>  at
> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
> at
> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:105)
>  ... 9 more
>
>
>
> Thanks,
>
> --
> *Bhathiya Jayasekara*
> *Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>



-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Integration test failure - Zip is null

2014-01-24 Thread Bhathiya Jayasekara
Hi Krishantha,

Are you referring to following part in [1]?

  

${basedir}/../../distribution/target/wso2ss-${project.version}.zip
  

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/ss/1.1.0/modules/integration/tests/pom.xml

Thanks,
Bhathiya


On Fri, Jan 24, 2014 at 3:04 PM, Krishantha Samaraweera  wrote:

> Did you set carbon.zip file property in SS integration test pom ?
>
> Thanks,
> Krishantha.
>
>
> On Fri, Jan 24, 2014 at 2:53 PM, Bhathiya Jayasekara wrote:
>
>> Hi,
>>
>> I'm getting following error while trying to run integration tests in SS.
>> There is SS pack in *modules/distribution/target. *Any reason why this
>> error occurs?
>>
>> ---
>>  T E S T S
>> ---
>> Running TestSuite
>> [2014-01-24 14:48:15,693]  INFO
>> {org.wso2.carbon.automation.core.PlatformExecutionManager} -
>>  ---Test Execution Started --
>> [2014-01-24 14:48:15,702]  INFO
>> {org.wso2.carbon.automation.core.ServerGroupManager} -  *Carbon zip file
>> - null*
>> org.apache.maven.surefire.util.SurefireReflectionException:
>> java.lang.reflect.InvocationTargetException; nested exception is
>> java.lang.reflect.InvocationTargetException: null
>> java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>  at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>>  at
>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>> at
>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>>  at
>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
>>  at
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
>> Caused by: java.lang.IllegalArgumentException: carbon zip file is null
>> at
>> org.wso2.carbon.automation.core.ServerGroupManager.startServer(ServerGroupManager.java:82)
>>  at
>> org.wso2.carbon.automation.core.ServerGroupManager.startServersForBuilder(ServerGroupManager.java:98)
>> at
>> org.wso2.carbon.automation.core.PlatformExecutionManager.startSevers(PlatformExecutionManager.java:187)
>>  at
>> org.wso2.carbon.automation.core.PlatformExecutionManager.onExecutionStart(PlatformExecutionManager.java:76)
>> at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)
>>  at org.testng.TestNG.run(TestNG.java:983)
>> at
>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:177)
>>  at
>> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
>> at
>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:105)
>>  ... 9 more
>>
>>
>>
>> Thanks,
>>
>> --
>> *Bhathiya Jayasekara*
>> *Software Engineer,*
>> *WSO2 inc., http://wso2.com *
>>
>> *Phone: +94715478185 <%2B94715478185>*
>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>> *
>> *Twitter: https://twitter.com/bhathiyax *
>> *Blog: http://movingaheadblog.blogspot.com
>> *
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
*Bhathiya Jayasekara*
*Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Integration test failure - Zip is null

2014-01-24 Thread Krishantha Samaraweera
The property should be "carbon.zip" not "ss.carbon.zip"

Thanks,
Krishantha.


On Fri, Jan 24, 2014 at 3:07 PM, Bhathiya Jayasekara wrote:

> Hi Krishantha,
>
> Are you referring to following part in [1]?
>
>   
>
> ${basedir}/../../distribution/target/wso2ss-${project.version}.zip
>   
>
> [1]
> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/ss/1.1.0/modules/integration/tests/pom.xml
>
> Thanks,
> Bhathiya
>
>
> On Fri, Jan 24, 2014 at 3:04 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Did you set carbon.zip file property in SS integration test pom ?
>>
>> Thanks,
>> Krishantha.
>>
>>
>> On Fri, Jan 24, 2014 at 2:53 PM, Bhathiya Jayasekara 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm getting following error while trying to run integration tests in SS.
>>> There is SS pack in *modules/distribution/target. *Any reason why this
>>> error occurs?
>>>
>>> ---
>>>  T E S T S
>>> ---
>>> Running TestSuite
>>> [2014-01-24 14:48:15,693]  INFO
>>> {org.wso2.carbon.automation.core.PlatformExecutionManager} -
>>>  ---Test Execution Started --
>>> [2014-01-24 14:48:15,702]  INFO
>>> {org.wso2.carbon.automation.core.ServerGroupManager} -  *Carbon zip
>>> file - null*
>>> org.apache.maven.surefire.util.SurefireReflectionException:
>>> java.lang.reflect.InvocationTargetException; nested exception is
>>> java.lang.reflect.InvocationTargetException: null
>>> java.lang.reflect.InvocationTargetException
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>  at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>  at
>>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>>> at
>>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>>>  at
>>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>>> at
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
>>>  at
>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
>>> Caused by: java.lang.IllegalArgumentException: carbon zip file is null
>>> at
>>> org.wso2.carbon.automation.core.ServerGroupManager.startServer(ServerGroupManager.java:82)
>>>  at
>>> org.wso2.carbon.automation.core.ServerGroupManager.startServersForBuilder(ServerGroupManager.java:98)
>>> at
>>> org.wso2.carbon.automation.core.PlatformExecutionManager.startSevers(PlatformExecutionManager.java:187)
>>>  at
>>> org.wso2.carbon.automation.core.PlatformExecutionManager.onExecutionStart(PlatformExecutionManager.java:76)
>>> at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)
>>>  at org.testng.TestNG.run(TestNG.java:983)
>>> at
>>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:177)
>>>  at
>>> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
>>> at
>>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:105)
>>>  ... 9 more
>>>
>>>
>>>
>>> Thanks,
>>>
>>> --
>>> *Bhathiya Jayasekara*
>>> *Software Engineer,*
>>> *WSO2 inc., http://wso2.com *
>>>
>>> *Phone: +94715478185 <%2B94715478185>*
>>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>>> *
>>> *Twitter: https://twitter.com/bhathiyax *
>>> *Blog: http://movingaheadblog.blogspot.com
>>> *
>>>
>>
>>
>>
>> --
>> Krishantha Samaraweera
>> Senior Technical Lead - Test Automation
>> Mobile: +94 77 7759918
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
>
> --
> *Bhathiya Jayasekara*
> *Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>



-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Build failure while building GREG 4.6.0

2014-01-24 Thread Nuwan Silva
building from
/platform/turing/products/greg/4.6.0

[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 Governance Registry - Distribution ... FAILURE [55.533s]
[INFO] WSO2 Governance Registry - Integration Tests .. SKIPPED
[INFO] WSO2 Governance Registry Test Framework - Registry Test Module
Group  SKIPPED
[INFO] Registry TCK Test Module .. SKIPPED
[INFO] Registry TestNG Test Samples .. SKIPPED
[INFO] Backward association handler Sample ... SKIPPED
[INFO] Registry TestNG Test Module ... SKIPPED
[INFO] Registry Resources TestNG Test Module . SKIPPED
[INFO] Registry Metadata TestNG Test Module .. SKIPPED
[INFO] Registry Extensibility TestNG Test Module . SKIPPED
[INFO] Registry JIRA TestNG Test Module .. SKIPPED
[INFO] Registry Lifecycle TestNG Test Module . SKIPPED
[INFO] Registry Search and Versioning TestNG Test Module . SKIPPED
[INFO] Registry Permissions TestNG Test Module ... SKIPPED
[INFO] Registry Governance API TestNG Test Module  SKIPPED
[INFO] Registry TestNG Test Module ... SKIPPED
[INFO] Registry UI Test Module ... SKIPPED
[INFO] Integration Test Reporting  SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 56.671s
[INFO] Finished at: Fri Jan 24 13:55:28 IST 2014
[INFO] Final Memory: 124M/1325M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-2:attached (dist)
on project wso2greg: Failed to create assembly: File to filter not found:
/home/nuwan/wso2/qa/automation_sessions/platform/turing/products/greg/4.6.0/modules/distribution/../p2-profile-gen/target/wso2carbon-core-4.2.0/repository/deployment/server/jaggeryapps/publisher/publisherLogo/logo.png
(No such file or directory) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


-- 


*Nuwan Silva*
*Senior Software Engineer - QA*
Mobile: +94779804543

WSO2 Inc.
lean . enterprise . middlewear.
http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Git push fails for cloudpreview

2014-01-24 Thread Isuru Perera
This is for readers' information.

The issue was with the commit size.

Please note that the I did not need to commit the jars inside the
WEB-INF/lib.

After I pushed the sources, the jenkins could build the project
successfully. However the App Cloud has failed to commit the git repository
used for Deployment Synchronizer. The reason again here was the commit size.

Cloud Team has fixed this issue now.

Thanks!


On Wed, Jan 22, 2014 at 7:59 PM, Ramith Jayasinghe  wrote:

> What do u think about having ssh based urls for cloud preview?
>
>
>
> On Wed, Jan 22, 2014 at 7:31 PM, Amila Maha Arachchi wrote:
>
>> If they are needed in runtime, you need to push them, right?
>>
>>
>> On Wed, Jan 22, 2014 at 6:51 PM, Isuru Perera  wrote:
>>
>>> Hi Isuru,
>>>
>>> Thanks a lot for checking this.
>>>
>>> Yes. it seems the error is due commit size. The maven build copies the
>>> dependent jars to WebContent/WEB-INF/lib/
>>>
>>> And I was trying to push all.
>>>
>>> Do we need to commit the jars as well?
>>>
>>>
>>>
>>>
>>> On Wed, Jan 22, 2014 at 6:27 PM, Isuru Wimalasundera wrote:
>>>
 Hi IsuruP

 According to [1] the reason for this error can be due to git/https
 buffer settings, May be the the default file post size for Git has been
 exceeded by your push request. Can you please try the given below command
 from inside your cloned repo before executing your push request.

 git config http.postBuffer 524288000

 [1] -
 http://stackoverflow.com/questions/15240815/git-fatal-the-remote-end-hung-up-unexpectedly

 - IsuruW


 On Wed, Jan 22, 2014 at 6:01 PM, Isuru Perera  wrote:

> Hi,
>
> I'm trying "git push" for my application in App Cloud and I cannot
> push changes.
>
> Following is the error:
>
> Username for 'https://git.cloudpreview.wso2.com':
> ad...@chrishantha.com
> Password for 'https://ad...@chrishantha.com@git.cloudpreview.wso2.com':
>
> Counting objects: 53, done.
> Delta compression using up to 4 threads.
> Compressing objects: 100% (36/36), done.
> error: RPC failed; result=22, HTTP code = 411
> fatal: The remote end hung up unexpectedly
> Writing objects: 100% (45/45), 9.79 MiB | 109.00 KiB/s, done.
> Total 45 (delta 3), reused 0 (delta 0)
> *fatal: The remote end hung up unexpectedly*
> Everything up-to-date
>
> What could be the reason?
>
> Thanks!
>
> Best Regards,
>
> --
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
>



 --
 *Isuru Wimalasundera*
 Senior Software Engineer;
 WSO2, Inc.; http://wso2.com,
 mobile: +94 77 920 5641
 Blog : http://isurupw.blogspot.com/


 

>>>
>>>
>>>
>>> --
>>> Isuru Perera
>>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> about.me/chrishantha
>>>
>>
>>
>>
>> --
>> *Amila Maharachchi*
>> Senior Technical Lead
>> WSO2, Inc.; http://wso2.com
>>
>> Blog: http://maharachchi.blogspot.com
>> Mobile: +94719371446
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Ramith Jayasinghe
> Technical Lead
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> E: ram...@wso2.com
> P: +94 776715671
>
>


-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please provide an update on stabilizing the current branches & chunks?

2014-01-24 Thread Isuruwan Herath
Hi Krishantha,

I executed all chunks with the with the feature to run UI tests remotely.
Chunk02 was successfully built but there were failures in chunk05 and
chunk06 [1] . Noted the following exception in APIM UI tests in chunk06:

error   24-Jan-2014 02:17:51at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
error   24-Jan-2014 02:17:51Caused by: java.lang.RuntimeException: Port
9763 is not open
error   24-Jan-2014 02:17:51at
org.wso2.carbon.automation.core.utils.ClientConnectionUtil.waitForPort(ClientConnectionUtil.java:111)
error   24-Jan-2014 02:17:51at
org.wso2.carbon.automation.core.utils.serverutils.ServerUtils.startServerUsingCarbonHome(ServerUtils.java:133)
error   24-Jan-2014 02:17:51at
org.wso2.carbon.automation.core.ServerGroupManager.startServer(ServerGroupManager.java:92)
error   24-Jan-2014 02:17:51at
org.wso2.carbon.automation.core.ServerGroupManager.startServersForBuilder(ServerGroupManager.java:98)

Could this be an infrastructure issue with the remote UI test server
and bamboo builder?

[1] http://wso2.org/bamboo/browse/TEST001

Regards!



On Wed, Jan 22, 2014 at 12:04 PM, Isuruwan Herath  wrote:

> Yes, rebuilding the failures did not give the mentioned error again. As
> the UI tests have been worked around I'm running bamboo plans again from
> chunk02 and let's see if the p2-profile-gen fails again. Thanks for looking
> into this.
>
> Cheers!
> Isuruwan
>
>
> On Wed, Jan 22, 2014 at 11:51 AM, Lasantha Fernando wrote:
>
>>
>>
>>
>> On 21 January 2014 12:55, Isuruwan Herath  wrote:
>>
>>> Hi Lasantha,
>>>
>>> Following is the error occurred in Bamboo log [1] :
>>>
>>> [ERROR] Failed to execute goal
>>> org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
>>> (p2-profile-generation-for-gateway-manager-profile) on project
>>> am-p2-profile: P2 publisher return code was 137 -> [Help 1]
>>>
>>> Bamboo plan is configured to build from chunk06 folder in branch.
>>>
>>> [1] http://wso2.org/bamboo/browse/TEST001-EPC6-1/log
>>>
>>
>> Hi Isuruwan,
>>
>> Asked for the logs since thought I might have made a mistake in creating
>> the tag for chunk-06. I did verify it in a clean repo build. AFAIK, there
>> were some changes done to the p2-repo after the tag was created. But no
>> changes were done to the product builds. Guess those commits also need to
>> go into the tag.
>>
>> Anyway, looks like the current build failure in chunk-06 is due to UI
>> integration tests.
>>
>> Thanks,
>> Lasantha
>>
>>
>>
>>>
>>> Regards!
>>>
>>>
>>>
>>> On Tue, Jan 21, 2014 at 11:28 AM, Lasantha Fernando 
>>> wrote:
>>>
 Hi Isuruwan,

 Can you post the error you encountered in building chunk-06? Are you
 building from the chunk-06 tag?

 Thanks,
 Lasantha


 On 21 January 2014 10:45, Afkham Azeez  wrote:

>  Krishantha,
> If the UI tests cannot be fixed by EOD today, let's disable them until
> we find a proper solution.
>
>
> On Tue, Jan 21, 2014 at 10:28 AM, Isuruwan Herath 
> wrote:
>
>> Hi Azeez,
>> I created plans and executed all released chunks under Bamboo plan
>> TEST 4.2.0. Apart from the failure in 'WSO2 API Manager - P2 Profile
>> Generation' (noted yesterday) in chunk06 other failures are related to UI
>> integration tests (in chunk02, chunk05, chunk06). Krishantha is working 
>> on
>> the failures in UI tests to run them remotely (I see chunk02 is being 
>> built
>> at the moment). If we get that through we can run all plans once more and
>> confirm all released chunks are clean.
>>
>> Regards!
>> Isuruwan
>>
>>
>> On Tue, Jan 21, 2014 at 8:53 AM, Afkham Azeez  wrote:
>>
>>> Isuruwan,
>>> $subject please.
>>>
>>> --
>>> *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 <%2B94%2077%203320919> blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: 
>>> **http://twitter.com/afkham_azeez*
>>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>
>>
>>
>> --
>> Isuruwan Herath
>> Technical Lead
>>
>> Contact: +94 776 273 296
>>
>
>
>
> --
> *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 <%2B94%2077%203320919> blog: *
> *http://blog.afkham.org* 
> *twitter: 
> **http://twitter.com/afkham_azeez*

Re: [Dev] [ESB] How to configure BAM Profile outside the Dashboard?

2014-01-24 Thread Imesh Gunaratne
Hi,

I found a better approach than using the G-Reg check-in tool.
We could create a CAR archive including a Registry Resources Project and
deploy the CAR file directly in the ESB.

Thanks


On Thu, Jan 23, 2014 at 5:00 PM, Imesh Gunaratne  wrote:

> Hi,
>
> I was able to do the following with G-Reg check-in tool and successfully
> configure the BAM Server Profile outside the ESB Dashboard:
>
> 1. Start a fresh ESB instance.
> 2. Checkout _system/config path to a local folder (A1) using check in
> client.
> 3. Create bamServerProfiles folder at A1.
> 4. Copy BAM Server Profile file to above bamServerProfiles folder.
> 5. Add bamServerProfiles using check in client.
> 6. Check in changes using check in client.
>
> Thanks
> Imesh
>
>
> On Thu, Jan 23, 2014 at 10:22 AM, Imesh Gunaratne  wrote:
>
>> Hi,
>>
>> As I found BAM Profiles in ESB are stored in the registry (ESB 4.8.0).
>> Is there a way to configure this without accessing the ESB Dashboard (if
>> we could export the required configuration to a file)?
>>
>> I tried to use the G-Reg check-in tool but it was not successful with the
>> H2 database.
>>
>> Thanks
>>
>> --
>> *Imesh Gunaratne*
>> Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.gunaratne.org
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> *Imesh Gunaratne*
> Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


-- 
*Imesh Gunaratne*
Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.gunaratne.org
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Shouldn't we be switching to SLf4J for Carbon 5?

2014-01-24 Thread Afkham Azeez
I was reading
http://javarevisited.blogspot.com/2013/08/why-use-sl4j-over-log4j-for-logging-in.html&;
we could remove a lot of boiler plate code, and bring in any logging
implementation if we use SLF4J. Thoughts?

-- 
*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*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] How to configure BAM Profile outside the Dashboard?

2014-01-24 Thread Subash Chaturanga
Hi Imesh,
CAR method is also a good option. But when it comes to deployment, ideally
it should be a one time operation for an instance. Once this car in place,
it will get deployed in each server restart which I believe unnecessary for
this particular scenario. In such case checkin client makes more sense.


On Fri, Jan 24, 2014 at 6:19 PM, Imesh Gunaratne  wrote:

> Hi,
>
> I found a better approach than using the G-Reg check-in tool.
> We could create a CAR archive including a Registry Resources Project and
> deploy the CAR file directly in the ESB.
>
> Thanks
>
>
> On Thu, Jan 23, 2014 at 5:00 PM, Imesh Gunaratne  wrote:
>
>> Hi,
>>
>> I was able to do the following with G-Reg check-in tool and successfully
>> configure the BAM Server Profile outside the ESB Dashboard:
>>
>> 1. Start a fresh ESB instance.
>> 2. Checkout _system/config path to a local folder (A1) using check in
>> client.
>> 3. Create bamServerProfiles folder at A1.
>> 4. Copy BAM Server Profile file to above bamServerProfiles folder.
>> 5. Add bamServerProfiles using check in client.
>> 6. Check in changes using check in client.
>>
>> Thanks
>> Imesh
>>
>>
>> On Thu, Jan 23, 2014 at 10:22 AM, Imesh Gunaratne  wrote:
>>
>>> Hi,
>>>
>>> As I found BAM Profiles in ESB are stored in the registry (ESB 4.8.0).
>>> Is there a way to configure this without accessing the ESB Dashboard (if
>>> we could export the required configuration to a file)?
>>>
>>> I tried to use the G-Reg check-in tool but it was not successful with
>>> the H2 database.
>>>
>>> Thanks
>>>
>>> --
>>> *Imesh Gunaratne*
>>> Technical Lead
>>> WSO2 Inc: http://wso2.com
>>> T: +94 11 214 5345 M: +94 77 374 2057
>>> W: http://imesh.gunaratne.org
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.gunaratne.org
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> *Imesh Gunaratne*
> Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
/subash

*Subash Chaturanga*
Senior Software Engineer :Integration TG; WSO2 Inc. http://wso2.com

email: sub...@wso2.com
blog:  http://subashsdm.blogspot.com/
twitter: @subash89
phone: +9477 2225922
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Getting OperationNotSupportedException when creating the initial context for tenants

2014-01-24 Thread Melan Nimesh
Hi,

We noticed the error mentioned in $subject when creating tenants on Stratos
manager (Carbon 4.2 based),  Any idea why this error occurring?

TID: [0] [SCC] [2014-01-24 13:03:06,436] ERROR
{org.apache.stratos.messaging.broker.publish.TopicPublisher} -  Error while
publishing to the topic: tenant
{org.apache.stratos.messaging.broker.publish.TopicPublisher}
java.lang.RuntimeException: An error occurred while creating the initial
context for tenant: 4
at
org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.getInitialContext(CarbonContextDataHolder.java:873)
 at
org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.lookup(CarbonContextDataHolder.java:916)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
 at
org.apache.stratos.messaging.broker.connect.TopicConnector.init(TopicConnector.java:60)
at
org.apache.stratos.messaging.broker.publish.TopicPublisher.setPublisher(TopicPublisher.java:120)
 at
org.apache.stratos.messaging.broker.publish.TopicPublisher.doPublish(TopicPublisher.java:95)
at
org.apache.stratos.messaging.broker.publish.TopicPublisher.publish(TopicPublisher.java:75)
 at
org.apache.stratos.messaging.broker.publish.EventPublisher.publish(EventPublisher.java:48)
at
org.apache.stratos.manager.subscription.utils.CartridgeSubscriptionUtils.publishTenantSubscribedEvent(CartridgeSubscriptionUtils.java:117)
 at
org.apache.stratos.manager.manager.CartridgeSubscriptionManager.subscribeToCartridgeWithProperties(CartridgeSubscriptionManager.java:230)
at
org.apache.stratos.rest.endpoint.services.ServiceUtils.subscribe(ServiceUtils.java:645)
 at
org.apache.stratos.rest.endpoint.services.StratosAdmin.subscribe(StratosAdmin.java:278)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
 at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
 at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100)
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)
 at
org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
 at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
 at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
 at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
 at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
 at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
 at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
 at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
 at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngin

Re: [Dev] WSO2 Committers += Isuruwan Herath

2014-01-24 Thread Shameera Rathnayaka
Congrat Isuruwan !!!


Thanks,
Shameera.


On Fri, Jan 24, 2014 at 1:38 PM, Chan  wrote:

> Congratz Isuruwan
>
>
> On Fri, Jan 24, 2014 at 1:31 PM, Gayan Dhanushka  wrote:
>
>> Congratzzz Isuruwan...!!!
>>
>> Gayan Dhanuska
>> Software Engineer
>> http://wso2.com/
>> Lean Enterprise Middleware
>>
>> Mobile
>> 071 666 2327
>>
>> Office
>> Tel   : 94 11 214 5345
>> Fax  : 94 11 214 5300
>>
>> Twitter : https://twitter.com/gayanlggd
>>
>>
>> On Fri, Jan 24, 2014 at 12:48 PM, Malintha Adikari wrote:
>>
>>> Congratulations Isuruwan ... !!!
>>>
>>> Regards,
>>> Malintha
>>>
>>>
>>> On Fri, Jan 24, 2014 at 12:47 PM, Waruna Jayaweera wrote:
>>>
 Congratzz Isuruwan


 On Fri, Jan 24, 2014 at 12:37 PM, Ramith Jayasinghe wrote:

> Congrats Isuru1!
>
>
>
> On Fri, Jan 24, 2014 at 12:23 PM, Senaka Fernando wrote:
>
>> Hi all,
>>
>> Its my pleasure to welcome Isuruwan Herath as a WSO2 Committer.
>> Isuruwan has made some great contributions to our platform during the 
>> last
>> few months and in recognition of his commitment and contributions he has
>> been voted as a committer.
>>
>> Isuruwan, welcome aboard and keep up the good work.
>>
>> Best Regards,
>> Senaka.
>>
>> --
>>
>>
>> *[image: http://wso2.com]  Senaka Fernando*
>> Senior Technical Lead; WSO2 Inc.; http://wso2.com
>>
>>
>>
>> * Member; Apache Software Foundation; http://apache.org
>> E-mail: senaka AT wso2.com **P:
>> +1 408 754 7388 <%2B1%20408%20754%207388>; ext: 51736*;
>>
>>
>> *M: +94 77 322 1818 <%2B94%2077%20322%201818> Linked-In:
>> http://linkedin.com/in/senakafernando
>> *Lean . Enterprise .
>> Middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Ramith Jayasinghe
> Technical Lead
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> E: ram...@wso2.com
> P: +94 776715671
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Regards,

 Waruna Lakshitha Jayaweera
 Software Engineer
 WSO2 Inc; http://wso2.com
 phone: +94713255198

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


>>>
>>>
>>> --
>>> *Malintha Adikari*
>>>  Software Engineer
>>>
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 71 2312958
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Chan (Dulitha Wijewantha)
> Software Engineer - Mobile Development
>  WSO2Mobile
> Lean.Enterprise.Mobileware
>  * ~Email   duli...@wso2.com *
> *  ~Mobile +94712112165 <%2B94712112165>*
>
> *  ~Website   dulithawijewantha.com  *
>
> *  ~Blog blog.dulithawijewantha.com
> *
> *  ~Twitter @dulitharw *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Software Engineer - WSO2 Inc.*
*email: shameera AT wso2.com  , shameera AT apache.org
*
*phone:  +9471 922 1454*

*Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
*Twitter : *https://twitter.com/Shameera_R
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Shouldn't we be switching to SLf4J for Carbon 5?

2014-01-24 Thread Isuru Perera
Hi Azeez,

+1 for this and I agree with your points. I also brought this up last year.
See "Using Simple Logging Facade for Java (SLF4J) for Carbon 5" on dev@ [1].

AFAIK, many projects moved to SLF4J [2] during last few years and I think
now is a good time to start using it in WSO2 code.

Thanks!

Best Regards,

[1]
http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-Using-Simple-Logging-Facade-for-Java-SLF4J-for-Carbon-5-td76481.html
[2] http://www.slf4j.org/


On Fri, Jan 24, 2014 at 6:26 PM, Afkham Azeez  wrote:

> I was reading
> http://javarevisited.blogspot.com/2013/08/why-use-sl4j-over-log4j-for-logging-in.html&;
>  we could remove a lot of boiler plate code, and bring in any logging
> implementation if we use SLF4J. Thoughts?
>
> --
> *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 <%2B94%2077%203320919> blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Invitation: Invitation: [Code Review] HDFS Multitenancy @ Wed Jan 29, 2014 10:30am - 11:30am (sh...@wso2.com)

2014-01-24 Thread Shani Ranasinghe
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20140129T05Z
DTEND:20140129T06Z
DTSTAMP:20140124T150256Z
ORGANIZER;CN=Shani Ranasinghe:mailto:sh...@wso2.com
UID:h7otb6qrphai3dgrg6t6s8l...@google.com
ATTENDEE;CUTYPE=RESOURCE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TR
 UE;CN=LK 6th Floor Meeting Room - Turing;X-NUM-GUESTS=0:mailto:wso2.com_383
 1383731343438313...@resource.calendar.google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Deependra Ariyadewa;X-NUM-GUESTS=0:mailto:d...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Prabath Abeysekera;X-NUM-GUESTS=0:mailto:praba...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Afkham Azeez;X-NUM-GUESTS=0:mailto:az...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Dhanuka Ranasinghe;X-NUM-GUESTS=0:mailto:dhan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Jaminda Batuwangala;X-NUM-GUESTS=0:mailto:jami...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Bhathiya Jayasekara;X-NUM-GUESTS=0:mailto:bhath...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Shani Ranasinghe;X-NUM-GUESTS=0:mailto:sh...@wso2.com
CREATED:20140124T150255Z
DESCRIPTION:Crucible - \nProject Name : WSO2PlatformHdfs\nRepo Name : WSO2B
 ranchPlatformHdfs\nView your event at http://www.google.com/calendar/event?
 action=VIEW&eid=aDdvdGI2cXJwaGFpM2Rncmc2dDZzOGwwbG8gZGV2QHdzbzIub3Jn&tok=MT
 Qjc2hhbmlAd3NvMi5jb200Njk5ZmYyMWM3MmExYjIzMTJkMmUzM2Q5YzQ5ODdmOGQ0ZTU1MDU3&
 ctz=Asia/Colombo&hl=en.
LAST-MODIFIED:20140124T150255Z
LOCATION:LK 6th Floor Meeting Room - Turing
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:[Dev] Invitation: [Code Review] HDFS Multitenancy
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


invite.ics
Description: application/ics
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Isuruwan Herath

2014-01-24 Thread Shani Ranasinghe
Congrats Isuruwan


On Fri, Jan 24, 2014 at 7:28 PM, Shameera Rathnayaka wrote:

> Congrat Isuruwan !!!
>
>
> Thanks,
> Shameera.
>
>
> On Fri, Jan 24, 2014 at 1:38 PM, Chan  wrote:
>
>> Congratz Isuruwan
>>
>>
>> On Fri, Jan 24, 2014 at 1:31 PM, Gayan Dhanushka  wrote:
>>
>>> Congratzzz Isuruwan...!!!
>>>
>>> Gayan Dhanuska
>>> Software Engineer
>>> http://wso2.com/
>>> Lean Enterprise Middleware
>>>
>>> Mobile
>>> 071 666 2327
>>>
>>> Office
>>> Tel   : 94 11 214 5345
>>> Fax  : 94 11 214 5300
>>>
>>> Twitter : https://twitter.com/gayanlggd
>>>
>>>
>>> On Fri, Jan 24, 2014 at 12:48 PM, Malintha Adikari wrote:
>>>
 Congratulations Isuruwan ... !!!

 Regards,
 Malintha


 On Fri, Jan 24, 2014 at 12:47 PM, Waruna Jayaweera wrote:

> Congratzz Isuruwan
>
>
> On Fri, Jan 24, 2014 at 12:37 PM, Ramith Jayasinghe 
> wrote:
>
>> Congrats Isuru1!
>>
>>
>>
>> On Fri, Jan 24, 2014 at 12:23 PM, Senaka Fernando wrote:
>>
>>> Hi all,
>>>
>>> Its my pleasure to welcome Isuruwan Herath as a WSO2 Committer.
>>> Isuruwan has made some great contributions to our platform during the 
>>> last
>>> few months and in recognition of his commitment and contributions he has
>>> been voted as a committer.
>>>
>>> Isuruwan, welcome aboard and keep up the good work.
>>>
>>> Best Regards,
>>> Senaka.
>>>
>>> --
>>>
>>>
>>> *[image: http://wso2.com]  Senaka Fernando*
>>> Senior Technical Lead; WSO2 Inc.; http://wso2.com
>>>
>>>
>>>
>>> * Member; Apache Software Foundation; http://apache.org
>>> E-mail: senaka AT wso2.com **P:
>>> +1 408 754 7388 <%2B1%20408%20754%207388>; ext: 51736*;
>>>
>>>
>>> *M: +94 77 322 1818 <%2B94%2077%20322%201818> Linked-In:
>>> http://linkedin.com/in/senakafernando
>>> *Lean . Enterprise .
>>> Middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Ramith Jayasinghe
>> Technical Lead
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> E: ram...@wso2.com
>> P: +94 776715671
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Regards,
>
> Waruna Lakshitha Jayaweera
> Software Engineer
> WSO2 Inc; http://wso2.com
> phone: +94713255198
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Malintha Adikari*
  Software Engineer

 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 2312958

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


>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Chan (Dulitha Wijewantha)
>> Software Engineer - Mobile Development
>>  WSO2Mobile
>> Lean.Enterprise.Mobileware
>>  * ~Email   duli...@wso2.com *
>> *  ~Mobile +94712112165 <%2B94712112165>*
>>
>> *  ~Website   dulithawijewantha.com  *
>>
>> *  ~Blog blog.dulithawijewantha.com
>> *
>> *  ~Twitter @dulitharw *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Software Engineer - WSO2 Inc.*
> *email: shameera AT wso2.com  , shameera AT apache.org
> *
> *phone:  +9471 922 1454 <%2B9471%20922%201454>*
>
> *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
> *Twitter : *https://twitter.com/Shameera_R
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks and Regards
*,Shani Ranasinghe*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273555
linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Shouldn't we be switching to SLf4J for Carbon 5?

2014-01-24 Thread Sagara Gunathunga
I'm not quite sure whether we can really compare SLF4J with Log4J where
SLF4J is a logging API while Log4J is a logging implementation ( Log4J can
be used with SLF4J and most common SLF4J binding as well), instead we
should compare SLF4J API with Commons-Logging API. In my POV recent
versions of both SLF4J and Commons-Logging are more or less similar. I
don't have any objection to use SLF4J but have we consider JUL ?


Please refer required dependencies for each option.

- Commons-logging -  Need 2 dependencies on runtime as  Commons-logging API
and implementation ( e.g -  SLF4J API, Commons-logging-LOG4J bridge)
- SLF4J  -  Need 3 dependencies on run time as  SLF4J API,
SLF4J-X binding, X logging framework ( e.g  - SLF4J API, SLF4J-LOG4J
binding , LOG4J )
- JUL -  0 dependencies just JDK

If there is no found limitations I would prefer to use JUL and worth to
consider it before make a conclusion.

Thanks !


On Fri, Jan 24, 2014 at 6:26 PM, Afkham Azeez  wrote:

> I was reading
> http://javarevisited.blogspot.com/2013/08/why-use-sl4j-over-log4j-for-logging-in.html&;
>  we could remove a lot of boiler plate code, and bring in any logging
> implementation if we use SLF4J. Thoughts?
>
> --
> *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 <%2B94%2077%203320919> blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sagara Gunathunga

Senior Technical Lead; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Deploying Class Mediators created from Developer studio

2014-01-24 Thread Sagara Gunathunga
On Thu, Jan 23, 2014 at 11:00 PM, Isuru Udana  wrote:

> Hi,
>
> Class Mediators created from Dev Studio can be deployed into ESB using a
> CAR.
> But current implementation of this feature has lot of known issues. So we
> are in the process of implementing this using a different approach.
>
>
> All artifact types starting from "lib/", get installed as an osgi bundle
> by the carbon.application.deployer which is placed in the kernel.
> For the new implementation we need to stop this for artifact type
> "lib/synapse/mediator" since deployment is handled at the synapse level.
>
> We cannot change the artifact type of Mediators to a different one because
> it will cause configuration migration issues (previously created CARs will
> not work).
>

I don't think we need to be backward compatible with previously created
CARs for any server extension projects instead we can provide some
tool/guideline to migrate CAR to new type.  At least from beginning  of
2012 we are keep educating users not to use CAR projects to develop/deploy
server extensions as it fundamentally incorrect so we better to focus on
clear solution instead of  backward compatibility. Basically hosted
artifacts and server extensions having two different lifecycles and need to
be managed separately. Here Axis2 Modules, Class and custom Mediators,
custom transport and message processors should consider as
server extensions.

Thanks !


>
> The only option I see is to skip the above osgi bundle installation for
> "lib/synapse/mediator" type at the kernel.
> That will introduce a check for this particular artifact type at the
> kernel. So this is not a elegant solution.
> However we already have a logic specific to "service/dataservice" artifact
> type at the kernel capp deployer.
>
> Do we have any other option ?
>
> Thank you.
>
> --
> *Isuru Udana*
>  Senior
> * Software Engineer*
> WSO2 Inc.; http://wso2.com
> email: isu...@wso2.com cell: +94 77 3791887
> blog: http://mytecheye.blogspot.com/
> twitter: http://twitter.com/isudana
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sagara Gunathunga

Senior Technical Lead; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Shouldn't we be switching to SLf4J for Carbon 5?

2014-01-24 Thread Afkham Azeez
http://glauche.de/2009/09/09/java-util-logging-vs-slf4j/

We should go with SLF4J


On Fri, Jan 24, 2014 at 8:59 PM, Sagara Gunathunga  wrote:

>
>
> I'm not quite sure whether we can really compare SLF4J with Log4J where
> SLF4J is a logging API while Log4J is a logging implementation ( Log4J can
> be used with SLF4J and most common SLF4J binding as well), instead we
> should compare SLF4J API with Commons-Logging API. In my POV recent
> versions of both SLF4J and Commons-Logging are more or less similar. I
> don't have any objection to use SLF4J but have we consider JUL ?
>
>
> Please refer required dependencies for each option.
>
> - Commons-logging -  Need 2 dependencies on runtime as  Commons-logging
> API and implementation ( e.g -  SLF4J API, Commons-logging-LOG4J bridge)
> - SLF4J  -  Need 3 dependencies on run time as  SLF4J API,
> SLF4J-X binding, X logging framework ( e.g  - SLF4J API, SLF4J-LOG4J
> binding , LOG4J )
> - JUL -  0 dependencies just JDK
>
> If there is no found limitations I would prefer to use JUL and worth to
> consider it before make a conclusion.
>
> Thanks !
>
>
>  On Fri, Jan 24, 2014 at 6:26 PM, Afkham Azeez  wrote:
>
>>  I was reading
>> http://javarevisited.blogspot.com/2013/08/why-use-sl4j-over-log4j-for-logging-in.html&;
>>  we could remove a lot of boiler plate code, and bring in any logging
>> implementation if we use SLF4J. Thoughts?
>>
>> --
>> *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 <%2B94%2077%203320919> blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sagara Gunathunga
>
> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>


-- 
*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*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Shouldn't we be switching to SLf4J for Carbon 5?

2014-01-24 Thread Afkham Azeez
The most appealing feature to me is the parametrized log messages, and
there is no need to wrap statements in if(log.isDebugEnabled()),
isInfoEnabled() and so on.


On Fri, Jan 24, 2014 at 9:21 PM, Afkham Azeez  wrote:

> http://glauche.de/2009/09/09/java-util-logging-vs-slf4j/
>
> We should go with SLF4J
>
>
> On Fri, Jan 24, 2014 at 8:59 PM, Sagara Gunathunga wrote:
>
>>
>>
>> I'm not quite sure whether we can really compare SLF4J with Log4J where
>> SLF4J is a logging API while Log4J is a logging implementation ( Log4J can
>> be used with SLF4J and most common SLF4J binding as well), instead we
>> should compare SLF4J API with Commons-Logging API. In my POV recent
>> versions of both SLF4J and Commons-Logging are more or less similar. I
>> don't have any objection to use SLF4J but have we consider JUL ?
>>
>>
>> Please refer required dependencies for each option.
>>
>> - Commons-logging -  Need 2 dependencies on runtime as  Commons-logging
>> API and implementation ( e.g -  SLF4J API, Commons-logging-LOG4J bridge)
>> - SLF4J  -  Need 3 dependencies on run time as  SLF4J
>> API, SLF4J-X binding, X logging framework ( e.g  - SLF4J API, SLF4J-LOG4J
>> binding , LOG4J )
>> - JUL -  0 dependencies just JDK
>>
>> If there is no found limitations I would prefer to use JUL and worth to
>> consider it before make a conclusion.
>>
>> Thanks !
>>
>>
>>  On Fri, Jan 24, 2014 at 6:26 PM, Afkham Azeez  wrote:
>>
>>>  I was reading
>>> http://javarevisited.blogspot.com/2013/08/why-use-sl4j-over-log4j-for-logging-in.html&;
>>>  we could remove a lot of boiler plate code, and bring in any logging
>>> implementation if we use SLF4J. Thoughts?
>>>
>>> --
>>> *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 <%2B94%2077%203320919> blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: 
>>> **http://twitter.com/afkham_azeez*
>>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>
>
> --
> *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 <%2B94%2077%203320919> blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



-- 
*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*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting OperationNotSupportedException when creating the initial context for tenants

2014-01-24 Thread Isuru Haththotuwa
[looping in dev list]


On Fri, Jan 24, 2014 at 7:04 PM, Melan Nimesh  wrote:

> Hi,
>
> We noticed the error mentioned in $subject when creating tenants on
> Stratos manager (Carbon 4.2 based),  Any idea why this error occurring?
>
> TID: [0] [SCC] [2014-01-24 13:03:06,436] ERROR
> {org.apache.stratos.messaging.broker.publish.TopicPublisher} -  Error while
> publishing to the topic: tenant
> {org.apache.stratos.messaging.broker.publish.TopicPublisher}
> java.lang.RuntimeException: An error occurred while creating the initial
> context for tenant: 4
> at
> org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.getInitialContext(CarbonContextDataHolder.java:873)
>  at
> org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.lookup(CarbonContextDataHolder.java:916)
> at javax.naming.InitialContext.lookup(InitialContext.java:392)
>  at
> org.apache.stratos.messaging.broker.connect.TopicConnector.init(TopicConnector.java:60)
> at
> org.apache.stratos.messaging.broker.publish.TopicPublisher.setPublisher(TopicPublisher.java:120)
>  at
> org.apache.stratos.messaging.broker.publish.TopicPublisher.doPublish(TopicPublisher.java:95)
> at
> org.apache.stratos.messaging.broker.publish.TopicPublisher.publish(TopicPublisher.java:75)
>  at
> org.apache.stratos.messaging.broker.publish.EventPublisher.publish(EventPublisher.java:48)
> at
> org.apache.stratos.manager.subscription.utils.CartridgeSubscriptionUtils.publishTenantSubscribedEvent(CartridgeSubscriptionUtils.java:117)
>  at
> org.apache.stratos.manager.manager.CartridgeSubscriptionManager.subscribeToCartridgeWithProperties(CartridgeSubscriptionManager.java:230)
> at
> org.apache.stratos.rest.endpoint.services.ServiceUtils.subscribe(ServiceUtils.java:645)
>  at
> org.apache.stratos.rest.endpoint.services.StratosAdmin.subscribe(StratosAdmin.java:278)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
>  at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
>  at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100)
> at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)
>  at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
>  at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
> at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
>  at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
> at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
>  at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
> at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
>  at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>  at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>  at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>  at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
>  at
> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
> at
> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>  at
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
>  at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetec

Re: [Dev] Shouldn't we be switching to SLf4J for Carbon 5?

2014-01-24 Thread Kishanthan Thangarajah
With C5 logging framework (based on Pax Logging [1]), the log4j is used as
the logging back-end. But the framework support number of logging API's and
SLF4J is also one of that. This allows us to use any logging API in the
components we develop with C5.

IMO, its a matter of deciding which API to use and follow it as a best
practice. I'm +1 on using SLF4J.

Thanks,
Kishanthan.
[1] https://ops4j1.jira.com/wiki/display/paxlogging/Pax+Logging


On Fri, Jan 24, 2014 at 9:23 PM, Afkham Azeez  wrote:

> The most appealing feature to me is the parametrized log messages, and
> there is no need to wrap statements in if(log.isDebugEnabled()),
> isInfoEnabled() and so on.
>
>
> On Fri, Jan 24, 2014 at 9:21 PM, Afkham Azeez  wrote:
>
>> http://glauche.de/2009/09/09/java-util-logging-vs-slf4j/
>>
>> We should go with SLF4J
>>
>>
>> On Fri, Jan 24, 2014 at 8:59 PM, Sagara Gunathunga wrote:
>>
>>>
>>>
>>> I'm not quite sure whether we can really compare SLF4J with Log4J where
>>> SLF4J is a logging API while Log4J is a logging implementation ( Log4J can
>>> be used with SLF4J and most common SLF4J binding as well), instead we
>>> should compare SLF4J API with Commons-Logging API. In my POV recent
>>> versions of both SLF4J and Commons-Logging are more or less similar. I
>>> don't have any objection to use SLF4J but have we consider JUL ?
>>>
>>>
>>> Please refer required dependencies for each option.
>>>
>>> - Commons-logging -  Need 2 dependencies on runtime as  Commons-logging
>>> API and implementation ( e.g -  SLF4J API, Commons-logging-LOG4J bridge)
>>> - SLF4J  -  Need 3 dependencies on run time as  SLF4J
>>> API, SLF4J-X binding, X logging framework ( e.g  - SLF4J API, SLF4J-LOG4J
>>> binding , LOG4J )
>>> - JUL -  0 dependencies just JDK
>>>
>>> If there is no found limitations I would prefer to use JUL and worth to
>>> consider it before make a conclusion.
>>>
>>> Thanks !
>>>
>>>
>>>  On Fri, Jan 24, 2014 at 6:26 PM, Afkham Azeez  wrote:
>>>
  I was reading
 http://javarevisited.blogspot.com/2013/08/why-use-sl4j-over-log4j-for-logging-in.html&;
  we could remove a lot of boiler plate code, and bring in any logging
 implementation if we use SLF4J. Thoughts?

 --
 *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 <%2B94%2077%203320919> blog: *
 *http://blog.afkham.org* 
 *twitter: 
 **http://twitter.com/afkham_azeez*
 * linked-in: **http://lk.linkedin.com/in/afkhamazeez
 *

 *Lean . Enterprise . Middleware*

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


>>>
>>>
>>> --
>>> Sagara Gunathunga
>>>
>>> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
>>> V.P Apache Web Services;http://ws.apache.org/
>>> Linkedin; http://www.linkedin.com/in/ssagara
>>> Blog ;  http://ssagara.blogspot.com
>>>
>>>
>>
>>
>> --
>> *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 <%2B94%2077%203320919> blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> *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 <%2B94%2077%203320919> blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Kishanthan Thangarajah*
Senior Software Engineer,
Platform 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] Jaggery2 status

2014-01-24 Thread Buddhi Mihara
hi all,

today we had a review on the jaggery2 process.

jaggery 2 can be accessed via command line using ./jjs command
here is the summary what we have implemented so far

   1.) we registered a global object to nashorn global called
'jaggery'.this obj
takecare all the house keeping stuff of jaggery2.
you can call this object from command line just using 'var jaggery
= jaggery'

these are the properties implemented in jaggery obj
* version - - jaggery version(return 'jaggery
2.0')
* moduleLoadList - - module loaded to the jaggery
* arch - - platform architecture jaggery
running on
* platform
* argv - - conatain all the argument pass
to jaggery
* cwd  - - current working dir

 there is a special function in jaggery object call
'bind'.access via
 var foo = jag.bind(param);

 at the moment user can supply two parameters, 'natives' and
'contextify'
 bind function make a glue between java and js

 *a parameter to bind*

 1. 'natives'
 to get script object which contain all the core module
content to
 the js environment
eg: var natives = jag.bind('natives');
  var path = natives.path;

   2. 'contextify'
 script object contain three methods
  * isContext(not implemented)
  * makeContext
  * contextifyScript

 2.) jaggery.js file implemented the core module loading system.

 3.) user defined module will load to jaggery via module.js
file.'module' is a core
  module which is require by jaggery.js file when jaggery2 star.
  inside user js file user can require a module using following
syntax
* var foo =  require('foo') ,
   var foo = require('./foo')
   var foo = require('../foo');
   var foo = require('/home/buddhi/jaggery/foo ');
   this foo can be a core module,js file or folder as a module.user
can require
   js file by ommiting file extension(or user can mention extension
as well)

   if module is a folder as a module jaggery2 tries to read
package.json
   inside that module foler.if no package.json then reads
index.js(using .jag
   extension is not implemented yet)

   all of above algorithms were written.but still we tested first
scenario(if
   module is a core module)

   user must use keyword 'exports' to expose properties of one js
file to
   outside world
 eg: in foo.js file --- >exports.name = 'buddhi';
   then in bar.js file if bar.js file require foo.js
   var foo = require('foo');
   print(foo.name);


  4.) path.js implemented all path relevant manpilation. only works for
unix
   systems(single root systems)
   functions in path.js
* normalize(path); - - normalize a path  taking
care of ../
and ./
parts of a path string
* join(path1 ,[paths ...])  - - join paths
* resolve(path1, [paths ...])- - resolve to abs path
* relative(path1, path2)  - - if two path relative
to each other
* baseName(path) - - base name of the path
* dirName(path)- - dir name of the path
* extName(path)   - - extension name of the
file
* isAbsolute(path) - - is absolute path
* getRoot(path) - - root dir of the path


use ant to build project.(Nas/make/build.xml)


-- 
Thanks & Best Regards,

*Buddhi Nipun Mihara*
Software Engineer(intern)
WSO2, Inc.:http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Isuruwan Herath

2014-01-24 Thread Lasantha Fernando
Congrats Isuruwan!... :-)


On 24 January 2014 20:33, Shani Ranasinghe  wrote:

> Congrats Isuruwan
>
>
> On Fri, Jan 24, 2014 at 7:28 PM, Shameera Rathnayaka wrote:
>
>> Congrat Isuruwan !!!
>>
>>
>> Thanks,
>> Shameera.
>>
>>
>> On Fri, Jan 24, 2014 at 1:38 PM, Chan  wrote:
>>
>>> Congratz Isuruwan
>>>
>>>
>>> On Fri, Jan 24, 2014 at 1:31 PM, Gayan Dhanushka wrote:
>>>
 Congratzzz Isuruwan...!!!

 Gayan Dhanuska
 Software Engineer
 http://wso2.com/
 Lean Enterprise Middleware

 Mobile
 071 666 2327

 Office
 Tel   : 94 11 214 5345
 Fax  : 94 11 214 5300

 Twitter : https://twitter.com/gayanlggd


 On Fri, Jan 24, 2014 at 12:48 PM, Malintha Adikari 
 wrote:

> Congratulations Isuruwan ... !!!
>
> Regards,
> Malintha
>
>
> On Fri, Jan 24, 2014 at 12:47 PM, Waruna Jayaweera 
> wrote:
>
>> Congratzz Isuruwan
>>
>>
>> On Fri, Jan 24, 2014 at 12:37 PM, Ramith Jayasinghe 
>> wrote:
>>
>>> Congrats Isuru1!
>>>
>>>
>>>
>>> On Fri, Jan 24, 2014 at 12:23 PM, Senaka Fernando 
>>> wrote:
>>>
 Hi all,

 Its my pleasure to welcome Isuruwan Herath as a WSO2 Committer.
 Isuruwan has made some great contributions to our platform during the 
 last
 few months and in recognition of his commitment and contributions he 
 has
 been voted as a committer.

 Isuruwan, welcome aboard and keep up the good work.

 Best Regards,
 Senaka.

 --


 *[image: http://wso2.com]  Senaka Fernando*
 Senior Technical Lead; WSO2 Inc.; http://wso2.com



 * Member; Apache Software Foundation; http://apache.org
 E-mail: senaka AT wso2.com **P:
 +1 408 754 7388 <%2B1%20408%20754%207388>; ext: 51736*;


 *M: +94 77 322 1818 <%2B94%2077%20322%201818> Linked-In:
 http://linkedin.com/in/senakafernando
 *Lean . Enterprise .
 Middleware

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


>>>
>>>
>>> --
>>> Ramith Jayasinghe
>>> Technical Lead
>>> WSO2 Inc., http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> E: ram...@wso2.com
>>> P: +94 776715671
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Regards,
>>
>> Waruna Lakshitha Jayaweera
>> Software Engineer
>> WSO2 Inc; http://wso2.com
>> phone: +94713255198
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Malintha Adikari*
>  Software Engineer
>
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 71 2312958
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

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


>>>
>>>
>>> --
>>> Chan (Dulitha Wijewantha)
>>> Software Engineer - Mobile Development
>>>  WSO2Mobile
>>> Lean.Enterprise.Mobileware
>>>  * ~Email   duli...@wso2.com *
>>> *  ~Mobile +94712112165 <%2B94712112165>*
>>>
>>> *  ~Website   dulithawijewantha.com  *
>>>
>>> *  ~Blog blog.dulithawijewantha.com
>>> *
>>> *  ~Twitter @dulitharw *
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Software Engineer - WSO2 Inc.*
>> *email: shameera AT wso2.com  , shameera AT apache.org
>> *
>> *phone:  +9471 922 1454 <%2B9471%20922%201454>*
>>
>> *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
>> *Twitter : *https://twitter.com/Shameera_R
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks and Regards
> *, Shani Ranasinghe*
>
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273555
> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>
> ___
> Dev mailing list
> Dev@wso2.

Re: [Dev] Shouldn't we be switching to SLf4J for Carbon 5?

2014-01-24 Thread Afkham Azeez
On Fri, Jan 24, 2014 at 11:39 PM, Kishanthan Thangarajah <
kishant...@wso2.com> wrote:

> With C5 logging framework (based on Pax Logging [1]), the log4j is used as
> the logging back-end. But the framework support number of logging API's and
> SLF4J is also one of that. This allows us to use any logging API in the
> components we develop with C5.
>
> IMO, its a matter of deciding which API to use and follow it as a best
> practice. I'm +1 on using SLF4J.
>

Excellent! Let's start converting all the log statements to slf4j syntax.


>
> Thanks,
> Kishanthan.
> [1] https://ops4j1.jira.com/wiki/display/paxlogging/Pax+Logging
>
>
> On Fri, Jan 24, 2014 at 9:23 PM, Afkham Azeez  wrote:
>
>> The most appealing feature to me is the parametrized log messages, and
>> there is no need to wrap statements in if(log.isDebugEnabled()),
>> isInfoEnabled() and so on.
>>
>>
>> On Fri, Jan 24, 2014 at 9:21 PM, Afkham Azeez  wrote:
>>
>>> http://glauche.de/2009/09/09/java-util-logging-vs-slf4j/
>>>
>>> We should go with SLF4J
>>>
>>>
>>> On Fri, Jan 24, 2014 at 8:59 PM, Sagara Gunathunga wrote:
>>>


 I'm not quite sure whether we can really compare SLF4J with Log4J where
 SLF4J is a logging API while Log4J is a logging implementation ( Log4J
 can be used with SLF4J and most common SLF4J binding as well), instead we
 should compare SLF4J API with Commons-Logging API. In my POV recent
 versions of both SLF4J and Commons-Logging are more or less similar. I
 don't have any objection to use SLF4J but have we consider JUL ?


 Please refer required dependencies for each option.

 - Commons-logging -  Need 2 dependencies on runtime as  Commons-logging
 API and implementation ( e.g -  SLF4J API, Commons-logging-LOG4J
 bridge)
 - SLF4J  -  Need 3 dependencies on run time as  SLF4J
 API, SLF4J-X binding, X logging framework ( e.g  - SLF4J API,
 SLF4J-LOG4J binding , LOG4J )
 - JUL -  0 dependencies just JDK

 If there is no found limitations I would prefer to use JUL and worth
 to consider it before make a conclusion.

 Thanks !


  On Fri, Jan 24, 2014 at 6:26 PM, Afkham Azeez  wrote:

>  I was reading
> http://javarevisited.blogspot.com/2013/08/why-use-sl4j-over-log4j-for-logging-in.html&;
>  we could remove a lot of boiler
> plate code, and bring in any logging implementation if we use SLF4J.
> Thoughts?
>
> --
> *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 <%2B94%2077%203320919> blog: *
> *http://blog.afkham.org* 
> * twitter: 
> **http://twitter.com/afkham_azeez*
> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Sagara Gunathunga

 Senior Technical Lead; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  http://ssagara.blogspot.com


>>>
>>>
>>> --
>>> *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 <%2B94%2077%203320919> blog: *
>>> *http://blog.afkham.org* 
>>> * twitter: 
>>> **http://twitter.com/afkham_azeez*
>>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>
>>
>>
>> --
>> *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 <%2B94%2077%203320919> blog: *
>> *http://blog.afkham.org* 
>> * twitter: 
>> **http://twitter.com/afkham_azeez*
>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Senior Software Engineer,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> 

Re: [Dev] WSO2 Committers += Isuruwan Herath

2014-01-24 Thread Chamil Jeewantha
Congratulations!


On Sat, Jan 25, 2014 at 1:41 AM, Lasantha Fernando wrote:

> Congrats Isuruwan!... :-)
>
>
> On 24 January 2014 20:33, Shani Ranasinghe  wrote:
>
>> Congrats Isuruwan
>>
>>
>> On Fri, Jan 24, 2014 at 7:28 PM, Shameera Rathnayaka 
>> wrote:
>>
>>> Congrat Isuruwan !!!
>>>
>>>
>>> Thanks,
>>> Shameera.
>>>
>>>
>>> On Fri, Jan 24, 2014 at 1:38 PM, Chan  wrote:
>>>
 Congratz Isuruwan


 On Fri, Jan 24, 2014 at 1:31 PM, Gayan Dhanushka wrote:

> Congratzzz Isuruwan...!!!
>
> Gayan Dhanuska
> Software Engineer
> http://wso2.com/
> Lean Enterprise Middleware
>
> Mobile
> 071 666 2327
>
> Office
> Tel   : 94 11 214 5345
> Fax  : 94 11 214 5300
>
> Twitter : https://twitter.com/gayanlggd
>
>
> On Fri, Jan 24, 2014 at 12:48 PM, Malintha Adikari 
> wrote:
>
>> Congratulations Isuruwan ... !!!
>>
>> Regards,
>> Malintha
>>
>>
>> On Fri, Jan 24, 2014 at 12:47 PM, Waruna Jayaweera 
>> wrote:
>>
>>> Congratzz Isuruwan
>>>
>>>
>>> On Fri, Jan 24, 2014 at 12:37 PM, Ramith Jayasinghe >> > wrote:
>>>
 Congrats Isuru1!



 On Fri, Jan 24, 2014 at 12:23 PM, Senaka Fernando 
 wrote:

> Hi all,
>
> Its my pleasure to welcome Isuruwan Herath as a WSO2 Committer.
> Isuruwan has made some great contributions to our platform during the 
> last
> few months and in recognition of his commitment and contributions he 
> has
> been voted as a committer.
>
> Isuruwan, welcome aboard and keep up the good work.
>
> Best Regards,
> Senaka.
>
> --
>
>
> *[image: http://wso2.com]  Senaka Fernando*
> Senior Technical Lead; WSO2 Inc.; http://wso2.com
>
>
>
> * Member; Apache Software Foundation; http://apache.org
> E-mail: senaka AT wso2.com **P:
> +1 408 754 7388 <%2B1%20408%20754%207388>; ext: 51736*;
>
>
> *M: +94 77 322 1818 <%2B94%2077%20322%201818> Linked-In:
> http://linkedin.com/in/senakafernando
> *Lean . Enterprise .
> Middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 776715671


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


>>>
>>>
>>> --
>>> Regards,
>>>
>>> Waruna Lakshitha Jayaweera
>>> Software Engineer
>>> WSO2 Inc; http://wso2.com
>>> phone: +94713255198
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Malintha Adikari*
>>  Software Engineer
>>
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 71 2312958
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Chan (Dulitha Wijewantha)
 Software Engineer - Mobile Development
  WSO2Mobile
 Lean.Enterprise.Mobileware
  * ~Email   duli...@wso2.com *
 *  ~Mobile +94712112165 <%2B94712112165>*

 *  ~Website   dulithawijewantha.com  *

 *  ~Blog blog.dulithawijewantha.com
 *
 *  ~Twitter @dulitharw *

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


>>>
>>>
>>> --
>>> *Software Engineer - WSO2 Inc.*
>>> *email: shameera AT wso2.com  , shameera AT
>>> apache.org *
>>> *phone:  +9471 922 1454 <%2B9471%20922%201454>*
>>>
>>> *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
>>> *Twitter : *https://twitter.com/Shameera_R
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Th