[Dev] Please merge the changes to patch0009 of 4.2.0 kernel

2014-07-10 Thread Pradeep Fernando
Hi Kernel team,

Please review and merge the changes please.

https://wso2.org/jira/browse/CARBON-14861

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


[Dev] Encountered a compilation error in carbon 4.30

2014-07-10 Thread Pradeep Fernando
Hi guys,

I got the following error, what would be the cause;


INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 9:25.985s
[INFO] Finished at: Thu Jul 10 16:53:30 IST 2014
[INFO] Final Memory: 259M/1544M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project org.wso2.carbon.feature.mgt.core: Compilation
failure: Compilation failure:
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/operations/ProfileChangeOperation.java:[143,72]
error: incompatible types
[ERROR] Object
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/operations/ProfileChangeOperation.java:[159,72]
error: incompatible types
[ERROR] Object
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[92,50]
error: incompatible types
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[117,50]
error: incompatible types
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[122,50]
error: incompatible types
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[190,14]
error: type IQuery does not take parameters
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[207,14]
error: type IQuery does not take parameters
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[226,14]
error: type IQuery does not take parameters
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[238,14]
error: type IQuery does not take parameters
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/operations/RevertOperation.java:[54,104]
error: incompatible types
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/operations/RevertOperation.java:[59,105]
error: incompatible types
[ERROR] - [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/MojoFailureException



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


Re: [Dev] Please merge the changes to patch0009 of 4.2.0 kernel

2014-07-10 Thread Pradeep Fernando
Hi,

will attach the patch again. However, encountered some registry test
failures in patch0009/registry.core without my patch.

thanks


On Thu, Jul 10, 2014 at 4:46 PM, Shameera Rathnayaka shame...@wso2.com
wrote:

 Hi Pradeep,

 you have introduced a new API in your patch , please remove that as it is
 incorrect to do API changes with a patch. But when you provide a pull
 request to 4.3.0 you can do any API changes.

 Thanks,
 Shameera.


 On Thu, Jul 10, 2014 at 3:47 PM, Pradeep Fernando prad...@wso2.com
 wrote:

 Hi Kernel team,

 Please review and merge the changes please.

 https://wso2.org/jira/browse/CARBON-14861

 thanks




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org
 shame...@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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Please merge the changes to patch0009 of 4.2.0 kernel

2014-07-10 Thread Pradeep Fernando
Hi Shameera,

Attached the new patch with modifications. Ran tests. No new test failures,
AFAIU.

thanks,.


On Thu, Jul 10, 2014 at 5:12 PM, Pradeep Fernando prad...@wso2.com wrote:

 Hi,

 will attach the patch again. However, encountered some registry test
 failures in patch0009/registry.core without my patch.

 thanks


 On Thu, Jul 10, 2014 at 4:46 PM, Shameera Rathnayaka shame...@wso2.com
 wrote:

 Hi Pradeep,

 you have introduced a new API in your patch , please remove that as it is
 incorrect to do API changes with a patch. But when you provide a pull
 request to 4.3.0 you can do any API changes.

 Thanks,
 Shameera.


 On Thu, Jul 10, 2014 at 3:47 PM, Pradeep Fernando prad...@wso2.com
 wrote:

 Hi Kernel team,

 Please review and merge the changes please.

 https://wso2.org/jira/browse/CARBON-14861

 thanks




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org
 shame...@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




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Please merge the changes to patch0009 of 4.2.0 kernel

2014-07-10 Thread Pradeep Fernando
I did sent a pull request. What is the commit version of the patch


On Thu, Jul 10, 2014 at 7:17 PM, Shameera Rathnayaka shame...@wso2.com
wrote:

 Hi Pradeep,

 Please send the pull request to https://github.com/wso2-dev/carbon4-kernel
 , this is the carbon 4 kernel development branch.

 Regards,
 Shameera.


 On Thu, Jul 10, 2014 at 5:24 PM, Shameera Rathnayaka shame...@wso2.com
 wrote:

 Hi Pradeep,

 Which jdk version you are using to buile the kernel? if it is 1.7 then
 you probably hit with registry test failures.

 I will apply the new patch.

 Thanks,
 Shameera


 On Thu, Jul 10, 2014 at 5:22 PM, Pradeep Fernando prad...@wso2.com
 wrote:

 Hi Shameera,

 Attached the new patch with modifications. Ran tests. No new test
 failures, AFAIU.

 thanks,.


 On Thu, Jul 10, 2014 at 5:12 PM, Pradeep Fernando prad...@wso2.com
 wrote:

 Hi,

 will attach the patch again. However, encountered some registry test
 failures in patch0009/registry.core without my patch.

 thanks


 On Thu, Jul 10, 2014 at 4:46 PM, Shameera Rathnayaka shame...@wso2.com
  wrote:

 Hi Pradeep,

 you have introduced a new API in your patch , please remove that as it
 is incorrect to do API changes with a patch. But when you provide a pull
 request to 4.3.0 you can do any API changes.

 Thanks,
 Shameera.


 On Thu, Jul 10, 2014 at 3:47 PM, Pradeep Fernando prad...@wso2.com
 wrote:

 Hi Kernel team,

 Please review and merge the changes please.

 https://wso2.org/jira/browse/CARBON-14861

 thanks




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT
 apache.org shame...@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




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org
 shame...@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




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org
 shame...@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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Pradeep Fernando
The class,

org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey

properly exported ? i know its a dumb question. just checking... :)




On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena prab...@wso2.comwrote:

 Appreciate a lot any clue on this...?

 https://wso2.org/jira/browse/IDENTITY-2454

 - Error occurred while running CacheCleanupTask
 com.hazelcast.nio.serialization.HazelcastSerializationException:
 java.lang.ClassNotFoundException:
 org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
 at
 com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
 at
 com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)

 --
 Thanks  Regards,
 Prabath

 --
 Thanks  Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://blog.api-security.org




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Pradeep Fernando
I think this is a homogeneous cluster... if not, then it is the root cause.
I remember sometime ago, chamath and kishanthan working on a similar kind
of issue.


On Mon, May 19, 2014 at 1:09 AM, Afkham Azeez az...@wso2.com wrote:




 On Mon, May 19, 2014 at 1:05 AM, Prabath Siriwardena prab...@wso2.comwrote:




 On Mon, May 19, 2014 at 12:59 AM, Afkham Azeez az...@wso2.com wrote:

 That could be one reason, and another way this can happen is this cache
 entry getting replicated on to another node that cannot see this class, and
 the first time it tries to access the entry is when it tries to do a
 cleanup, and at that point, tries to load the class, and then this failure
 happens.


 If this is the case.. do we have a solution for it..?


 All nodes in a single cluster should be homogenous; which means, all nodes
 should see the same bundles/classes. Then this error will never happen.






 On Mon, May 19, 2014 at 12:55 AM, Pradeep Fernando prad...@wso2.comwrote:

 The class,

 org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey

 properly exported ? i know its a dumb question. just checking... :)




 On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena prab...@wso2.com
  wrote:

 Appreciate a lot any clue on this...?

 https://wso2.org/jira/browse/IDENTITY-2454

 - Error occurred while running CacheCleanupTask
 com.hazelcast.nio.serialization.HazelcastSerializationException:
 java.lang.ClassNotFoundException:
 org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
 at
 com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
 at
 com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)

 --
 Thanks  Regards,
 Prabath

 --
 Thanks  Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://blog.api-security.org




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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




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

 *Lean . Enterprise . Middleware*




 --
 Thanks  Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://blog.api-security.org




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

 *Lean . Enterprise . Middleware*




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] ClassNotFoundException in CacheCleanupTask

2014-05-18 Thread Pradeep Fernando
So i had a discussion with kishanthan. We saw the same issue sometime back.
The exception was in ELB side.


On Mon, May 19, 2014 at 10:22 AM, Pavithra Madurangi pavit...@wso2.comwrote:

 No didn't observe this in single node..Anyway most of the testing were
 done in cluster.. So I'm not sure whether this is reproducible in single
 node...

 Thanks,
 Pavithra


 On Mon, May 19, 2014 at 10:18 AM, Afkham Azeez az...@wso2.com wrote:

 So this happens when there is more than one node only, or are you seeing
 it with even a single node?


 On Mon, May 19, 2014 at 10:08 AM, Pavithra Madurangi 
 pavit...@wso2.comwrote:

 Yes this was reproduced in a homogeneous cluster. I'll again check this
 with today's pack as well.

 Regards,
 Pavithra


 On Mon, May 19, 2014 at 7:10 AM, Prabath Siriwardena 
 prab...@wso2.comwrote:

 Yes its a homogeneous cluster.. Asela is looking into the issue...

 Thanks  regards,
 -Prabath


  On Mon, May 19, 2014 at 5:52 AM, Pradeep Fernando prad...@wso2.comwrote:

  I think this is a homogeneous cluster... if not, then it is the root
 cause. I remember sometime ago, chamath and kishanthan working on a 
 similar
 kind of issue.


 On Mon, May 19, 2014 at 1:09 AM, Afkham Azeez az...@wso2.com wrote:




 On Mon, May 19, 2014 at 1:05 AM, Prabath Siriwardena 
 prab...@wso2.com wrote:




 On Mon, May 19, 2014 at 12:59 AM, Afkham Azeez az...@wso2.comwrote:

 That could be one reason, and another way this can happen is this
 cache entry getting replicated on to another node that cannot see this
 class, and the first time it tries to access the entry is when it 
 tries to
 do a cleanup, and at that point, tries to load the class, and then this
 failure happens.


 If this is the case.. do we have a solution for it..?


 All nodes in a single cluster should be homogenous; which means, all
 nodes should see the same bundles/classes. Then this error will never
 happen.






 On Mon, May 19, 2014 at 12:55 AM, Pradeep Fernando 
 prad...@wso2.com wrote:

 The class,


 org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey

 properly exported ? i know its a dumb question. just checking... :)




 On Mon, May 19, 2014 at 12:43 AM, Prabath Siriwardena 
 prab...@wso2.com wrote:

 Appreciate a lot any clue on this...?

 https://wso2.org/jira/browse/IDENTITY-2454

 - Error occurred while running CacheCleanupTask
 com.hazelcast.nio.serialization.HazelcastSerializationException:
 java.lang.ClassNotFoundException:
 org.wso2.carbon.identity.provisioning.cache.ProvisioningEntityCacheKey
 at
 com.hazelcast.nio.serialization.DefaultSerializers$ObjectSerializer.read(DefaultSerializers.java:190)
 at
 com.hazelcast.nio.serialization.StreamSerializerAdapter.read(StreamSerializerAdapter.java:59)

 --
 Thanks  Regards,
 Prabath

 --
 Thanks  Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://blog.api-security.org




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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




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

 *Lean . Enterprise . Middleware*




 --
 Thanks  Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://blog.api-security.org




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

 *Lean . Enterprise . Middleware*




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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

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




 --
 Thanks  Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://blog.api-security.org




 --
 *Pavithra Madurangi*
 Associate Technical Lead - QA.
 WSO2 Inc.: http://wso2.com/
 Mobile: +94777207357




 --
 *Afkham Azeez*
 Director of Architecture

Re: [Dev] [C5] Expose a RESTful service in Carbon Kernel 5

2014-05-01 Thread Pradeep Fernando
Hi kishanthan/devs,

I believe we already have the first cut implementation of that. If so shall
we do a quick review. I want to see the capabilities it has right now vs
things what we need...

thanks


On Wed, Apr 30, 2014 at 9:02 PM, Aruna Karunarathna ar...@wso2.com wrote:

 Thanks Kishanthan.


 On Wed, Apr 30, 2014 at 5:40 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Not with the latest milestone. The plan is to include this for the next
 milestone (a light weight RESTful admin services framework).


 On Wed, Apr 30, 2014 at 12:46 PM, Aruna Karunarathna ar...@wso2.comwrote:

 Hi all,

 Can we do the $subject with the current latest milestone release?

 Regards,
 --

 * Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com





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

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan*




 --

 * Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Could not find artifact org.wso2.maven:carbon-p2-plugin:pom:1.5.3 error while building features of App Factory

2014-04-09 Thread Pradeep Fernando
I think you have to configure plugin repositories as well.

add nexus repo to plugin repositories..

the artifact is availble in the dist/nexus repos
http://dist.wso2.org/maven2/org/wso2/maven/carbon-p2-plugin/1.5.3/


On Wed, Apr 9, 2014 at 1:40 PM, Punnadi Gunarathna punn...@wso2.com wrote:

 Hi All,

 I restructured App Factory code base in order to commit to GitHub project.
 I am getting this error when features are built in this new structure.

 [ERROR] Plugin org.wso2.maven:carbon-p2-plugin:1.5.3 or one of its
 dependencies could not be resolved: Failed to read artifact descriptor for
 org.wso2.maven:carbon-p2-plugin:jar:1.5.3: Could not find artifact
 org.wso2.maven:carbon-p2-plugin:pom:1.5.3 in central (
 http://repo.maven.apache.org/maven2) - [Help 1]

 I have configured below repositories in root parent.

repositories
   !-- Before adding ANYTHING in here, please start a discussion on
 the dev list.
 Ideally the Axis2 build should only use Maven central (which is
 available
 by default) and nothing else. We had troubles with other repositories
 in
 the past. Therefore configuring additional repositories here should be
 considered very carefully. --
   repository
  idwso2-nexus/id
  nameWSO2 internal Repository/name
  urlhttp://maven.wso2.org/nexus/content/groups/wso2-public/
 /url
  releases
 enabledtrue/enabled
 updatePolicydaily/updatePolicy
 checksumPolicyignore/checksumPolicy
  /releases
   /repository
   repository
  idwso2.releases/id
  nameWSO2 internal Repository/name
  urlhttp://maven.wso2.org/nexus/content/repositories/releases/
 /url
  releases
 enabledtrue/enabled
 updatePolicydaily/updatePolicy
 checksumPolicyignore/checksumPolicy
  /releases
   /repository
   repository
  idwso2.snapshots/id
  nameWSO2 Snapshot Repository/name
  urlhttp://maven.wso2.org/nexus/content/repositories/snapshots/
 /url
  snapshots
 enabledtrue/enabled
 updatePolicydaily/updatePolicy
  /snapshots
  releases
 enabledfalse/enabled
  /releases
   /repository
/repositories

 I have noted the simillar kind of error in below link also.
 http://builder4.us1.wso2.org:/bamboo/browse/WCB007-KER001-10/log

 org.wso2.carbon.appfactory.server.feature feature pom file is attached
 herewith.

 Please share your thought if you are familiar with this error.


 --
 Thanks and Regards,

 Punnadi Gunarathna
 Senior Software Engineer,
 WSO2, Inc.; http://wso2.com http://wso2
 Blog: http://hi-my-world.blogspot.com/
 Tel : 94 11 214 5345
 Fax :94 11 2145300



  http://lalajisureshika.blogspot.com/

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


[Dev] Please deploy released MB Jars to nexus repos

2014-03-16 Thread Pradeep Fernando
Hi MB team,

Can you please do the $subject. I need carbon 4.2.0 based MB features. I
think it is yet to be done since i can't find it here,

http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.andes.feature/

If not, it is understandable since latest MB got released days before. :)
Please be kind enough to deploy the jars asap..

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


Re: [Dev] Please deploy released MB Jars to nexus repos

2014-03-16 Thread Pradeep Fernando
Thanks Ishara,

We have requirement of embedding MB features in the apache stratos
distribution. Since the latest apache-stratos is based on 4.2.0 we need
4.2.0 based MB features.


--Pradeep


On Sun, Mar 16, 2014 at 7:06 PM, Ishara Premadasa ish...@wso2.com wrote:

 Hi Pradeep,

 MB 2.1.1 which was released this week is a Carbon 4.1.0 based patch
 release. MB 2.2.0 is scheduled be released on Carbon 4.2.0 end of this
 month or early April.

 However we will be deploying 4.1.7 andes features into nexus repo asap.

 Thanks!
 Ishara


 On Sun, Mar 16, 2014 at 5:05 PM, Pradeep Fernando prad...@wso2.comwrote:

 Hi MB team,

 Can you please do the $subject. I need carbon 4.2.0 based MB features. I
 think it is yet to be done since i can't find it here,


 http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.andes.feature/

 If not, it is understandable since latest MB got released days before. :)
 Please be kind enough to deploy the jars asap..

 thanks,
 --Pradeep


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




 --
 Ishara Premasada
 Software Engineer,
 WSO2 Inc. http://wso2.com/


 *Blog   :  http://isharapremadasa.blogspot.com/
 http://isharapremadasa.blogspot.com/Twitter   :
 https://twitter.com/ishadil https://twitter.com/ishadil Mobile   :
 +94 714445832 %2B94%20714445832*





-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] [Jaggery]Problem with response.sendRedirect

2014-02-07 Thread Pradeep Fernando
Use a function and then return after redirect..

--Pradeep


On Fri, Feb 7, 2014 at 9:00 AM, Venura Kahawala ven...@wso2.com wrote:

 Hi,

 You need to add a return statement at the end of the redirect. So it will
 look like below

 *response.sendRedirect(/InfraPortal/login.jag);*

 *return;*

 The issue is happening even though you redirect to the login page, flow in
 the sane page  will execute and you might have another redirect at the end.

 Regards,

 Venura



 On Thu, Feb 6, 2014 at 10:47 PM, Dimuthu Upeksha dimut...@wso2.comwrote:

 Hi all,

 In our project we use following commands to see whether an user has
 signed in to the system.

 -

 var user = session.get(user);

 if(user==null){

 response.sendRedirect(/InfraPortal/login.jag);

 }

 //some jaggery code

 

 What I need to do is, to see whether there is an user object in session
 scope. If it's not redirect to login page. If user exists, it just skips
 those lines and run rest of the code.

 Problem is when user object is null. Then response.sendRedirect method is
 invoked and server gives

 java.lang.IllegalStateException: Cannot call sendError() after the response 
 has been committed
  
 org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:451)
  
 org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:438)
  org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
  org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)

 It seems like rest of the code below response.sendRedirect method has been 
 executed although it has redirected to login page. How can I stop executing 
 that code below response.sendRedirect method?


 --
 Dimuthu Upeksha
 Engineering Intern
 WSO2 inc.

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




 --
 Senior Software Engineer

 Mobile: +94 71 82 300 20


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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] NPE in OAuth custom handler's validation code

2014-02-05 Thread Pradeep Fernando
*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj
 http://www.linkedin.com/in/bhathiyaj*
 *Twitter: https://twitter.com/bhathiyax https://twitter.com/bhathiyax*
 *Blog: http://movingaheadblog.blogspot.com
 http://movingaheadblog.blogspot.com/*

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Using sso-idp-config.xml in IS 4.6.0

2014-02-05 Thread Pradeep Fernando
Hi manu,
May be im bit off the topic..
its a stratos component. I now that stratos is not there anymore, it should
go under identity components. Ishara did some improvements to it recently.
@Johan : shall we make it a identity component.

--Pradeep


On Thu, Feb 6, 2014 at 10:56 AM, Lasantha Fernando lasan...@wso2.comwrote:

 Hi Manu,

 org.wso2.stratos.identity.saml2.sso.mgt.jar has been released. The
 relevant version for turing is 2.2.0. You can find it in [1] and also it is
 available in the p2-repo. I think you can install it from p2 as well
 without any issue.

 The pom for the component has the group as org.wso.carbon, which groups it
 to the wrong folder structure in nexus AFAIK.

 [1]
 http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.stratos.identity.saml2.sso.mgt/

 Thanks,
 Lasantha


 On 6 February 2014 03:05, Manuranga Perera m...@wso2.com wrote:

 org.wso2.stratos.identity.saml2.sso.mgt.jar has not been released for
 4.2.0 AFAIK, that's why I asked. coping 4.0.0 jar works, it doesn’t look
 like the correct solution.


 On Wed, Feb 5, 2014 at 12:41 PM, Pushpalanka Jayawardhana la...@wso2.com
  wrote:

 Hi Manu,

 You can do this by having org.wso2.stratos.identity.saml2.sso.mgt.jar
 in dropins and ss-idp-config.xml in repository/conf. At server start you
 will see the SPs getting registered.


 On Thu, Feb 6, 2014 at 1:39 AM, Manuranga Perera m...@wso2.com wrote:

 according to a mail thread [1] in architecture IS 4.6.0 should have the
 capability to add sso idPs using sso-idp-config.xml. but it seems like that
 feature is not in there.

 is it possible to get it working ?
 OR
 please suggest a way to configure idPs (without using UI).



 [1] [Architecture] Alternative to using sso-idp-config.xml
 http://wso2-oxygen-tank.10903.n7.nabble.com/Alternative-to-using-sso-idp-config-xml-td86326.html
 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com



 Thanks,
 --

 Pushpalanka Jayawardhana

 Software Engineer

 WSO2 Lanka (pvt) Ltd
 [image: 
 Facebook]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.facebook.com%2Fpushpalanka
  [image:
 Twitter]http://s.wisestamp.com/links?url=http%3A%2F%2Ftwitter.com%2FPushpalanka
  [image:
 LinkedIn]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.linkedin.com%2Fprofile%2Fview%3Fid%3D75175642%26trk%3Dtab_pro
  [image:
 Blogger]http://s.wisestamp.com/links?url=http%3A%2F%2Fpushpalankajaya.blogspot.com%2F
  [image:
 SlideShare]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.slideshare.net%2FPushpalanka
 Mobile: +94779716248




 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com

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




 --
 *Lasantha Fernando*
 Software Engineer - Data Technologies Team
 WSO2 Inc. http://wso2.com

 email: lasan...@wso2.com
 mobile: (+94) 71 5247551

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


[Dev] NPE from user core

2014-02-04 Thread Pradeep Fernando
Hi,

I'm using user core for authenticating my users. after a while i get this
exception while doing so. Have you guys come across this issue

java.lang.NullPointerException
at
org.wso2.carbon.user.core.authorization.AuthorizationKey.checkAttributesAreEqual(AuthorizationKey.java:116)
at
org.wso2.carbon.user.core.authorization.AuthorizationKey.equals(AuthorizationKey.java:61)
at
java.util.concurrent.ConcurrentHashMap$Segment.containsKey(ConcurrentHashMap.java:354)
at
java.util.concurrent.ConcurrentHashMap.containsKey(ConcurrentHashMap.java:783)
at org.wso2.carbon.caching.impl.CacheImpl.containsKey(CacheImpl.java:260)
at
org.wso2.carbon.user.core.authorization.AuthorizationCache.isUserAuthorized(AuthorizationCache.java:158)
at
org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.isUserAuthorized(JDBCAuthorizationManager.java:153)
at
org.apache.stratos.rest.endpoint.handlers.StratosAuthorizingHandler.isAuthorized(StratosAuthorizingHandler.java:122)
at
org.apache.stratos.rest.endpoint.handlers.StratosAuthorizingHandler.authorize(StratosAuthorizingHandler.java:105)
at
org.apache.stratos.rest.endpoint.handlers.StratosAuthorizingHandler.handleRequest(StratosAuthorizingHandler.java:77)
at
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:190)
at
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:101)
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.doGet(AbstractHTTPServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
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(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)


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


Re: [Dev] Is there a way to access userStoreManager within jaggery code.

2014-02-02 Thread Pradeep Fernando
Thanks chan, will look in to that...


On Mon, Feb 3, 2014 at 7:06 AM, Chan duli...@wso2.com wrote:

 Hi Pradeep,
 There is a module called carbon.server [1] - it has a method
 called authenticate. Please use that method to authenticate.

 [1] -
 https://github.com/wso2/jaggery/blob/master/modules/carbon/scripts/server/server.js

 Cheers ~


 On Sun, Feb 2, 2014 at 11:23 PM, Pradeep Fernando prad...@wso2.comwrote:

 Hi,

 I want to authenticate a user. Saw a 'carbon' module in jaggery. does it
 support above. The java code would be,

 userRealm.getUserStoreManager().authenticate(username, password)

 I could not find similar operation in user.js/user-manager.js under
 carbon module.

 thanks,
 --Pradeep


 ___
 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 duli...@wso2mobile.com*
 *  ~Mobile +94712112165 %2B94712112165*

 *  ~Website   dulithawijewantha.com http://dulithawijewantha.com/ *

 *  ~Blog blog.dulithawijewantha.com
 http://dulichan.github.io/chan/*
 *  ~Twitter @dulitharw https://twitter.com/dulitharw*




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] [DEV] Handling Circular Dependencies : OSGI

2014-01-22 Thread Pradeep Fernando
move one of the dependencies to a seperate component. you can have mulitple
components in the same OSGi bundle.

--Pradeep


On Thu, Jan 23, 2014 at 9:59 AM, Pamod Sylvester pa...@wso2.com wrote:

 Hi,

 If there're two components which are dependent on each other. What are the
 possibilities of handling them using OSGI ?

 Thanks,
 Pamod

 --
 *Pamod Sylvester *
  * Software Engineer *
 Integration Technologies Team, WSO2 Inc.; http://wso2.com
 email: pa...@wso2.com cell: +94 77 7779495




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Missing functionality in config file: sso-idp-config.xml

2014-01-14 Thread Pradeep Fernando
Hi Ishara,

Thanks for the patch. :)
Audience restriction is working fine. however claims seems to be not
working. I am using IS 4.6.0.

below is my config and SAML response im getting. Is something wrong with my
config.. ?


SSOIdentityProviderConfig
ServiceProviders
ServiceProvider
Issuerconsole/Issuer
AssertionConsumerService
https://localhost:9443/console/controllers/acs.jag
/AssertionConsumerService
UseFullyQualifiedUsernameInNameIDtrue/UseFullyQualifiedUsernameInNameID
SignResponsetrue/SignResponse
SignAssertiontrue/SignAssertion
EnableAttributeProfiletrue/EnableAttributeProfile
IncludeAttributeByDefaulttrue/IncludeAttributeByDefault
Claims
Claimhttp://wso2.org/claims/role/Claim
/Claims
EnableAudienceRestrictiontrue/EnableAudienceRestriction
AudiencesList
Audiencehttps://localhost:9445/oauth2/token/Audience
/AudiencesList
/ServiceProvider
/ServiceProviders
/SSOIdentityProviderConfig




?xml version=1.0 encoding=UTF-8?
saml2:Assertion ID=onegflcglhkcgcolageajagijpgjippfganmfokm
IssueInstant=2014-01-14T09:44:54.303Z Version=2.0
 xmlns:saml2=urn:oasis:names:tc:SAML:2.0:assertion
saml2:Issuer Format=urn:oasis:names:tc:SAML:2.0:nameid-format:entity
https://localhost:9443/samlsso
/saml2:Issuer
ds:Signature xmlns:ds=http://www.w3.org/2000/09/xmldsig#;
ds:SignedInfo
ds:CanonicalizationMethod Algorithm=
http://www.w3.org/2001/10/xml-exc-c14n#/
ds:SignatureMethod Algorithm=
http://www.w3.org/2000/09/xmldsig#rsa-sha1/
ds:Reference URI=#onegflcglhkcgcolageajagijpgjippfganmfokm
ds:Transforms
ds:Transform Algorithm=
http://www.w3.org/2000/09/xmldsig#enveloped-signature/
ds:Transform Algorithm=
http://www.w3.org/2001/10/xml-exc-c14n#/
/ds:Transforms
ds:DigestMethod Algorithm=
http://www.w3.org/2000/09/xmldsig#sha1/

ds:DigestValuevACM+j+xfTOYkFy9CtFCgeJtSqM=/ds:DigestValue
/ds:Reference
/ds:SignedInfo
ds:SignatureValue

jCwg4vqYMQePr4HGbyYQ2WPn0bS7qKJ/iuIn/f/zHwBiou/ibfTbdshp3IJkXH3bfcqeNB5SMbFpYtvUNNsYAzfmv0spltizUuiy415KiPy1Z/71tvLlTkpuw4MarPAOC3vayQIohMRu9Vp8t/dp6hSEj+WBtHOXz8/lxffSM10=
/ds:SignatureValue
ds:KeyInfo
ds:X509Data
ds:X509Certificate

MIICNTCCAZ6gAwIBAgIES343gjANBgkqhkiG9w0BAQUFADBVMQswCQYDVQQGEwJVUzELMAkGA1UECAwCQ0ExFjAUBgNVBAcMDU1vdW50YWluIFZpZXcxDTALBgNVBAoMBFdTTzIxEjAQBgNVBAMMCWxvY2FsaG9zdDAeFw0xMDAyMTkwNzAyMjZaFw0zNTAyMTMwNzAyMjZaMFUxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJDQTEWMBQGA1UEBwwNTW91bnRhaW4gVmlldzENMAsGA1UECgwEV1NPMjESMBAGA1UEAwwJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCUp/oV1vWc8/TkQSiAvTousMzOM4asB2iltr2QKozni5aVFu818MpOLZIr8LMnTzWllJvvaA5RAAdpbECb+48FjbBe0hseUdN5HpwvnH/DW8ZccGvk53I6Orq7hLCv1ZHtuOCokghz/ATrhyPq+QktMfXnRS4HrKGJTzxaCcU7OQIDAQABoxIwEDAOBgNVHQ8BAf8EBAMCBPAwDQYJKoZIhvcNAQEFBQADgYEAW5wPR7cr1LAdq+IrR44iQlRG5ITCZXY9hI0PygLP2rHANh+PYfTmxbuOnykNGyhM6FjFLbW2uZHQTY1jMrPprjOrmyK5sjJRO4d1DeGHT/YnIjs9JogRKv4XHECwLtIVdAbIdWHEtVZJyMSktcyysFcvuhPQK8Qc/E/Wq8uHSCo=
/ds:X509Certificate
/ds:X509Data
/ds:KeyInfo
/ds:Signature
saml2:Subject
saml2:NameID
Format=urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddressadmin/saml2:NameID
saml2:SubjectConfirmation
Method=urn:oasis:names:tc:SAML:2.0:cm:bearer
saml2:SubjectConfirmationData
InResponseTo=opllinmaahdgflfgilgkfmpoeijeknbnoclojbin

NotOnOrAfter=2014-01-14T09:49:54.303Z
   Recipient=
https://localhost:9443/console/controllers/acs.jag/
/saml2:SubjectConfirmation
/saml2:Subject
saml2:Conditions NotBefore=2014-01-14T09:44:54.303Z
NotOnOrAfter=2014-01-14T09:49:54.303Z
saml2:AudienceRestriction
saml2:Audienceconsole/saml2:Audience
saml2:Audiencehttps://localhost:9445/oauth2/token
/saml2:Audience
/saml2:AudienceRestriction
/saml2:Conditions
saml2:AuthnStatement AuthnInstant=2014-01-14T09:44:54.309Z
SessionIndex=f12b0e77-6ff6-4c31-8b57-d28f82820555
saml2:AuthnContext

saml2:AuthnContextClassRefurn:oasis:names:tc:SAML:2.0:ac:classes:Password/saml2:AuthnContextClassRef
/saml2:AuthnContext
/saml2:AuthnStatement
/saml2:Assertion







On Tue, Jan 14, 2014 at 2:36 PM, Ishara Karunarathna isha...@wso2.comwrote:

 Hi Pradeep,




 On Fri, Jan 10, 2014 at 5:15 PM, Pradeep Fernando prad...@wso2.comwrote:

 Hi,

 we can register SP s via sso-idp-config.xml. However we cant configure
 things such audience restrictions/etc.

 I have created
 org.wso2.stratos.identity.saml2.sso.mgt. 2.2.1
 org.wso2.stratos.identity.saml2.sso.mgt.ui 2.2.1
 components with adding the missing configurations.


 We are in need of the functionality for stratos upcoming release. Is it
 possible to sync up the config file capabilities with that of UI. IMHO

Re: [Dev] Missing functionality in config file: sso-idp-config.xml

2014-01-14 Thread Pradeep Fernando
Thanks Ishara, setting thr random number in config solved the issue,



On Tue, Jan 14, 2014 at 3:19 PM, Pradeep Fernando prad...@wso2.com wrote:

 Hi Ishara,

 Thanks for the patch. :)
 Audience restriction is working fine. however claims seems to be not
 working. I am using IS 4.6.0.

 below is my config and SAML response im getting. Is something wrong with
 my config.. ?


 SSOIdentityProviderConfig
 ServiceProviders
 ServiceProvider
 Issuerconsole/Issuer
 AssertionConsumerService
 https://localhost:9443/console/controllers/acs.jag
 /AssertionConsumerService
 UseFullyQualifiedUsernameInNameIDtrue/UseFullyQualifiedUsernameInNameID
 SignResponsetrue/SignResponse
 SignAssertiontrue/SignAssertion
 EnableAttributeProfiletrue/EnableAttributeProfile
 IncludeAttributeByDefaulttrue/IncludeAttributeByDefault
 Claims
 Claimhttp://wso2.org/claims/role/Claim
 /Claims
 EnableAudienceRestrictiontrue/EnableAudienceRestriction
 AudiencesList
 Audiencehttps://localhost:9445/oauth2/token/Audience
 /AudiencesList
 /ServiceProvider
 /ServiceProviders
 /SSOIdentityProviderConfig




 ?xml version=1.0 encoding=UTF-8?
 saml2:Assertion ID=onegflcglhkcgcolageajagijpgjippfganmfokm
 IssueInstant=2014-01-14T09:44:54.303Z Version=2.0
  xmlns:saml2=urn:oasis:names:tc:SAML:2.0:assertion
 saml2:Issuer
 Format=urn:oasis:names:tc:SAML:2.0:nameid-format:entity
 https://localhost:9443/samlsso
 /saml2:Issuer
 ds:Signature xmlns:ds=http://www.w3.org/2000/09/xmldsig#;
 ds:SignedInfo
 ds:CanonicalizationMethod Algorithm=
 http://www.w3.org/2001/10/xml-exc-c14n#/
 ds:SignatureMethod Algorithm=
 http://www.w3.org/2000/09/xmldsig#rsa-sha1/
 ds:Reference URI=#onegflcglhkcgcolageajagijpgjippfganmfokm
 ds:Transforms
 ds:Transform Algorithm=
 http://www.w3.org/2000/09/xmldsig#enveloped-signature/
 ds:Transform Algorithm=
 http://www.w3.org/2001/10/xml-exc-c14n#/
 /ds:Transforms
 ds:DigestMethod Algorithm=
 http://www.w3.org/2000/09/xmldsig#sha1/

 ds:DigestValuevACM+j+xfTOYkFy9CtFCgeJtSqM=/ds:DigestValue
 /ds:Reference
 /ds:SignedInfo
 ds:SignatureValue

 jCwg4vqYMQePr4HGbyYQ2WPn0bS7qKJ/iuIn/f/zHwBiou/ibfTbdshp3IJkXH3bfcqeNB5SMbFpYtvUNNsYAzfmv0spltizUuiy415KiPy1Z/71tvLlTkpuw4MarPAOC3vayQIohMRu9Vp8t/dp6hSEj+WBtHOXz8/lxffSM10=
 /ds:SignatureValue
 ds:KeyInfo
 ds:X509Data
 ds:X509Certificate

 MIICNTCCAZ6gAwIBAgIES343gjANBgkqhkiG9w0BAQUFADBVMQswCQYDVQQGEwJVUzELMAkGA1UECAwCQ0ExFjAUBgNVBAcMDU1vdW50YWluIFZpZXcxDTALBgNVBAoMBFdTTzIxEjAQBgNVBAMMCWxvY2FsaG9zdDAeFw0xMDAyMTkwNzAyMjZaFw0zNTAyMTMwNzAyMjZaMFUxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJDQTEWMBQGA1UEBwwNTW91bnRhaW4gVmlldzENMAsGA1UECgwEV1NPMjESMBAGA1UEAwwJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCUp/oV1vWc8/TkQSiAvTousMzOM4asB2iltr2QKozni5aVFu818MpOLZIr8LMnTzWllJvvaA5RAAdpbECb+48FjbBe0hseUdN5HpwvnH/DW8ZccGvk53I6Orq7hLCv1ZHtuOCokghz/ATrhyPq+QktMfXnRS4HrKGJTzxaCcU7OQIDAQABoxIwEDAOBgNVHQ8BAf8EBAMCBPAwDQYJKoZIhvcNAQEFBQADgYEAW5wPR7cr1LAdq+IrR44iQlRG5ITCZXY9hI0PygLP2rHANh+PYfTmxbuOnykNGyhM6FjFLbW2uZHQTY1jMrPprjOrmyK5sjJRO4d1DeGHT/YnIjs9JogRKv4XHECwLtIVdAbIdWHEtVZJyMSktcyysFcvuhPQK8Qc/E/Wq8uHSCo=
 /ds:X509Certificate
 /ds:X509Data
 /ds:KeyInfo
 /ds:Signature
 saml2:Subject
 saml2:NameID
 Format=urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddressadmin/saml2:NameID
 saml2:SubjectConfirmation
 Method=urn:oasis:names:tc:SAML:2.0:cm:bearer
 saml2:SubjectConfirmationData
 InResponseTo=opllinmaahdgflfgilgkfmpoeijeknbnoclojbin

 NotOnOrAfter=2014-01-14T09:49:54.303Z
Recipient=
 https://localhost:9443/console/controllers/acs.jag/
 /saml2:SubjectConfirmation
 /saml2:Subject
 saml2:Conditions NotBefore=2014-01-14T09:44:54.303Z
 NotOnOrAfter=2014-01-14T09:49:54.303Z
 saml2:AudienceRestriction
 saml2:Audienceconsole/saml2:Audience
 saml2:Audiencehttps://localhost:9445/oauth2/token
 /saml2:Audience
 /saml2:AudienceRestriction
 /saml2:Conditions
 saml2:AuthnStatement AuthnInstant=2014-01-14T09:44:54.309Z
 SessionIndex=f12b0e77-6ff6-4c31-8b57-d28f82820555
 saml2:AuthnContext

 saml2:AuthnContextClassRefurn:oasis:names:tc:SAML:2.0:ac:classes:Password/saml2:AuthnContextClassRef
 /saml2:AuthnContext
 /saml2:AuthnStatement
 /saml2:Assertion







 On Tue, Jan 14, 2014 at 2:36 PM, Ishara Karunarathna isha...@wso2.comwrote:

 Hi Pradeep,




 On Fri, Jan 10, 2014 at 5:15 PM, Pradeep Fernando prad...@wso2.comwrote:

 Hi,

 we can register SP s via sso-idp-config.xml. However we cant configure
 things such audience restrictions/etc.

 I have created
 org.wso2.stratos.identity.saml2.sso.mgt. 2.2.1
 org.wso2

Re: [Dev] Jaggery post() is not working when the response is empty.

2014-01-14 Thread Pradeep Fernando
Hi madhuka,

Little problem. The server doesnt even starts with the patch.. :) may be a
version issue. (?)

java.lang.ClassNotFoundException:
org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)


On Tue, Jan 14, 2014 at 9:30 AM, Madhuka Udantha madh...@wso2.com wrote:

 Hi Pradeep,

 Your issue is fixed my last sending patched(Attaching here as well), here
 I am sending sample app (json type) that matches for your requirement.

 The type, which the response is expected. Allowed types are json, xml or
 text[1].

 [1] http://jaggeryjs.org/apidocs/post.jag


 On Mon, Jan 13, 2014 at 10:42 AM, Madhuka Udantha madh...@wso2.comwrote:

 Hi Pradeep,

 Can you check provided patched, with sample jag file(app).


 On Mon, Jan 13, 2014 at 9:44 AM, Pradeep Fernando prad...@wso2.comwrote:

 Hi,

 Observed the $subject. (NPE) Madhuka is working on it to fix it. Hope
 this is not a spec violation. The same thing worked fine with
 curl/google-rest client.

 --Pradeep





 --
 *Madhuka* Udantha
 Senior Software Engineer
 Development Technologies
 WSO2 Inc. : http://wso2.com

 *Mobile*: +94774066336
 *Blog*: http://madhukaudantha.blogspot.com/




 --
 *Madhuka* Udantha
 Senior Software Engineer
 Development Technologies
 WSO2 Inc. : http://wso2.com

 *Mobile*: +94774066336
 *Blog*: http://madhukaudantha.blogspot.com/




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Jaggery post() is not working when the response is empty.

2014-01-14 Thread Pradeep Fernando
[2014-01-14 17:08:44,299] ERROR
{org.jaggeryjs.jaggery.core.manager.ModuleManager} -  Error while adding
HostObject : XMLHttpRequest
org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject
java.lang.ClassNotFoundException:
org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)


On Tue, Jan 14, 2014 at 5:14 PM, Pradeep Fernando prad...@wso2.com wrote:

 Hi madhuka,

 Little problem. The server doesnt even starts with the patch.. :) may be a
 version issue. (?)

 java.lang.ClassNotFoundException:
 org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
 at
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:169)


 On Tue, Jan 14, 2014 at 9:30 AM, Madhuka Udantha madh...@wso2.com wrote:

 Hi Pradeep,

 Your issue is fixed my last sending patched(Attaching here as well), here
 I am sending sample app (json type) that matches for your requirement.

 The type, which the response is expected. Allowed types are json, xml or
 text[1].

 [1] http://jaggeryjs.org/apidocs/post.jag


 On Mon, Jan 13, 2014 at 10:42 AM, Madhuka Udantha madh...@wso2.comwrote:

 Hi Pradeep,

 Can you check provided patched, with sample jag file(app).


 On Mon, Jan 13, 2014 at 9:44 AM, Pradeep Fernando prad...@wso2.comwrote:

 Hi,

 Observed the $subject. (NPE) Madhuka is working on it to fix it. Hope
 this is not a spec violation. The same thing worked fine with
 curl/google-rest client.

 --Pradeep





 --
 *Madhuka* Udantha
 Senior Software Engineer
 Development Technologies
 WSO2 Inc. : http://wso2.com

 *Mobile*: +94774066336
 *Blog*: http://madhukaudantha.blogspot.com/




 --
 *Madhuka* Udantha
 Senior Software Engineer
 Development Technologies
 WSO2 Inc. : http://wso2.com

 *Mobile*: +94774066336
 *Blog*: http://madhukaudantha.blogspot.com/




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Jaggery post() is not working when the response is empty.

2014-01-14 Thread Pradeep Fernando
)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at
org.jaggeryjs.rhino.console.controllers.c2._c_anonymous_1(/console/controllers/cartridgeDefintionSubmit.jag:7)
at
org.jaggeryjs.rhino.console.controllers.c2.call(/console/controllers/cartridgeDefintionSubmit.jag)
at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
at
org.jaggeryjs.rhino.console.controllers.c2._c_script_0(/console/controllers/cartridgeDefintionSubmit.jag:2)
at
org.jaggeryjs.rhino.console.controllers.c2.call(/console/controllers/cartridgeDefintionSubmit.jag)
at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at
org.jaggeryjs.rhino.console.controllers.c2.call(/console/controllers/cartridgeDefintionSubmit.jag)
at
org.jaggeryjs.rhino.console.controllers.c2.exec(/console/controllers/cartridgeDefintionSubmit.jag)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:570)
... 35 more
Caused by: java.lang.NullPointerException
at
org.jaggeryjs.scriptengine.util.HostObjectUtil.invalidArgsError(HostObjectUtil.java:41)
at
org.jaggeryjs.scriptengine.engine.RhinoTopLevel.parse(RhinoTopLevel.java:47)
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.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
... 62 more





On Tue, Jan 14, 2014 at 7:38 PM, Madhuka Udantha madh...@wso2.com wrote:




 On Tue, Jan 14, 2014 at 5:14 PM, Pradeep Fernando prad...@wso2.comwrote:

 Hi madhuka,

 Little problem. The server doesnt even starts with the patch.. :) may be
 a version issue. (?)

 Most of time could version problem, Any way I commit this jaggery master
 by now, you can verify on there.
 BTW I have sent  org.jaggeryjs.hostobjects.xhr_0.9.0.ALPHA4_wso2v1.jar on
 version '0.9.0.ALPHA4_wso2v1'
 I tryed it on github branch[1].

 [1] https://github.com/wso2/jaggery/tree/0.9.0.ALPHA4.wso2v1

 .


 java.lang.ClassNotFoundException:
 org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
 at
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:169)


 On Tue, Jan 14, 2014 at 9:30 AM, Madhuka Udantha madh...@wso2.comwrote:

 Hi Pradeep,

 Your issue is fixed my last sending patched(Attaching here as well),
 here I am sending sample app (json type) that matches for your requirement.

 The type, which the response is expected. Allowed types are json, xml
  or text[1].

 [1] http://jaggeryjs.org/apidocs/post.jag


 On Mon, Jan 13, 2014 at 10:42 AM, Madhuka Udantha madh...@wso2.comwrote:

 Hi Pradeep,

 Can you check provided patched, with sample jag file(app).


 On Mon, Jan 13, 2014 at 9:44 AM, Pradeep Fernando prad...@wso2.comwrote:

 Hi,

 Observed the $subject. (NPE) Madhuka is working on it to fix it. Hope
 this is not a spec violation. The same thing worked fine with
 curl/google-rest client.

 --Pradeep





 --
 *Madhuka* Udantha
 Senior Software Engineer
 Development Technologies
 WSO2 Inc. : http://wso2.com

 *Mobile*: +94774066336
 *Blog*: http://madhukaudantha.blogspot.com/




 --
 *Madhuka* Udantha
 Senior Software Engineer
 Development Technologies
 WSO2 Inc. : http://wso2.com

 *Mobile*: +94774066336
 *Blog*: http://madhukaudantha.blogspot.com/




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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




 --
 *Madhuka* Udantha
 Senior Software Engineer
 Development Technologies
 WSO2 Inc. : http://wso2.com

 *Mobile*: +94774066336
 *Blog*: http://madhukaudantha.blogspot.com/




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


[Dev] Jaggery post() is not working when the response is empty.

2014-01-12 Thread Pradeep Fernando
Hi,

Observed the $subject. (NPE) Madhuka is working on it to fix it. Hope this
is not a spec violation. The same thing worked fine with curl/google-rest
client.

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


[Dev] Missing functionality in config file: sso-idp-config.xml

2014-01-10 Thread Pradeep Fernando
Hi,

we can register SP s via sso-idp-config.xml. However we cant configure
things such audience restrictions/etc.

We are in need of the functionality for stratos upcoming release. Is it
possible to sync up the config file capabilities with that of UI. IMHO, we
should move the functionality to identity component.

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


Re: [Dev] [DEV] Cannot Install Jaggery features

2014-01-08 Thread Pradeep Fernando
seems like a issue in feature. The workaround would be to use pom.xml based
approach. :)

--Pradeep


On Wed, Jan 8, 2014 at 4:25 PM, Venura Kahawala ven...@wso2.com wrote:

 Hi,

 I tried to install Jaggery Server feature to IS 4.6.0. At the 'License
 Agreement(s)' step, there were no license option to select and therefore it
 is not possible to continue the installation.

 Repository was added from location [1].

 Please advise.

 [1] http://dist.wso2.org/p2/carbon/releases/turing/

 Regards,
 Venura


 --
 Senior Software Engineer

 Mobile: +94 71 82 300 20


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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


[Dev] Error while using jaggery post method.

2014-01-05 Thread Pradeep Fernando
Hi guys,

I tried the xhr client to send my B64 encoded + URL encoded saml assertion.
However it alters some of the content during the transfer process.


Below is the code bit that im using,

var endpoint = config.oauthConfiguration.tokenEndpoint;
var headers = {
Authorization: Basic +basicAuthToken,
Content-Type:
application/x-www-form-urlencoded;charset=UTF-8
};
var data = {
grant_type:urn:ietf:params:oauth:grant-type:saml2-bearer,
assertion:encodedSAMLToken
};
var response = post(endpoint,data,headers,text);



SAML assertion attached. I intercepted the request using tcp mon. when
json is used as type the assertion being truncated. when the type is
'text' the whole assertion get transferred, but still decoding errors.

you can use,

http://meyerweb.com/eric/tools/dencoder/
http://www.base64decode.org/

for testing purposes. Any help would be much appreciated.. :)

Thanks,
--Pradeep

Re: [Dev] Error while using jaggery post method.

2014-01-05 Thread Pradeep Fernando
Hi,

It seems that, post method in jaggery URL encodes the body by default. Is
this the correct behaviour.? curl doesnt do that sort of thing.

workaround was, not to URL encode SAML assertion.

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


[Dev] How about an ACL module for Jaggery

2013-12-28 Thread Pradeep Fernando
Hi,

This requirement comes up far too often. Do we have the $subject... :)

eg: http://dingoframework.com/docs/acl-library

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


[Dev] OAuth validation extension point in WSO2 IS

2013-11-11 Thread Pradeep Fernando
Hi,

The current token validation endpoint only performs basic level of
validation. That is it only checks whether the given token is valid. But
for complex authorization decision making this validation is not enough
IMHO.

@IS team:

can you guys please consider adding an extension point for custom
validation impls.

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


Re: [Dev] Latest OAuth playground code.

2013-10-30 Thread Pradeep Fernando
Thanks!


On Wed, Oct 30, 2013 at 12:11 PM, Asela Pathberiya as...@wso2.com wrote:




 On Wed, Oct 30, 2013 at 10:30 AM, Amila Maha Arachchi ami...@wso2.comwrote:

 Does the doc link needs to be changed?


 Yes..

 Thanks,
 Asela.




 On Wed, Oct 30, 2013 at 10:26 AM, Asela Pathberiya as...@wso2.comwrote:




 On Wed, Oct 30, 2013 at 10:23 AM, Pradeep Fernando prad...@wso2.comwrote:

 Hi devs,

 where can i find the latest code ?


 It is in SVN under product samples [1]...

 [1]
 http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/is/4.5.0/modules/samples/oauth2/playground2/

 Thanks,
 Asela.



 thanks,
 --Pradeep





 --
 Thanks  Regards,
 Asela

 ATL
 Mobile : +94 777 625 933

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




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --
 Thanks  Regards,
 Asela

 ATL
 Mobile : +94 777 625 933




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


[Dev] Use case of an OAuth2.0 - need some clarifications

2013-10-30 Thread Pradeep Fernando
Hi Devs,

I want to secure a set of APIs using OAuth 2.0. Resource server has APIs of
type,

X and Y.

Client authenticates itself with the authorization server (say resource
owner password credentials grant...) and gets an access token.

The authorization server has two types of users. (roles)

role A
role B

users of role A should be able to access both the resources X and Y
where as users of role B can only access resources of type Y.


Authorization is the concern here. How can we pass that info to the
resource server ? Since OAuth is a authorization framework, we dont' have
to deal with user roles at the resource server, right (correct me if i'm
wrong..) ?

if so, is the 'scope' parameter in the access token, the correct approach ?

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


[Dev] Latest OAuth playground code.

2013-10-29 Thread Pradeep Fernando
Hi devs,

where can i find the latest code ?

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


Re: [Dev] SSO-SAML UI 4.2.0 feature packing old httpcore/httpclient?

2013-10-23 Thread Pradeep Fernando
+1.

HttpCore libs inside SAML2 feature is a mistake, IMHO..

--Pradeep


On Wed, Oct 23, 2013 at 7:15 PM, Lasantha Fernando lasan...@wso2.comwrote:

 Hi Devs,

 CEP uses org.wso2.carbon.identity.sso.saml.ui.feature:4.2.0 which seems to
 be packing httpcore:4.1.0.wso2v1 and httpclient:4.1.1.wso2v1. The 4.2.0
 kernel packs httpcore:4.3.0.wso2v1 and httpclient:4.2.5.wso2v1.

 This causes OSGi classloader issues when using some event adaptors of CEP.
 Can we bump the version of saml.sso.ui and not pack httpcore,httpclient
 inside this particular feature?

 Thanks,
 Lasantha


 --
 *Lasantha Fernando*
 Software Engineer - Data Technologies Team
 WSO2 Inc. http://wso2.com

 email: lasan...@wso2.com
 mobile: (+94) 71 5247551

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


[Dev] Unacceptable starting delays due to patch verification in different environments

2013-10-14 Thread Pradeep Fernando
Hi,

We are starting carbon servers in CentOS env. It takes around ~5 mins to
complete patch verification process..

this is not acceptable, since this affects the deployment prcess at times.
Can we please have a way to disable the functionality if we want. (advanced
user scenario)

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


Re: [Dev] Usage of Transport Persistence Manger

2013-10-11 Thread Pradeep Fernando
IIUC, the persistant manager comes in to picture only when we do changes
using UI. However we only do transport cofnigs through config files now...
Hence +1 to removal.

Thanks,
--Pradeep


On Fri, Oct 11, 2013 at 1:29 PM, Kishanthan Thangarajah kishant...@wso2.com
 wrote:

 Hi,

 While working on removing the part on loading/persisting transport config
 from registry I came across several places that that
 TransportPersitenceManger class is used. From my understanding the above
 class is used to persist/load transport configurations to/from registry.

 What I'm thinking is to deprecate this class and remove its usages. I'm
 just checking on this that apart from registry related operations, any
 other usage that this class is intended for?

 Thanks,
 Kishanthan.

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] [Architecture] Why we are refactoring the CarbonContext API Usage in the Carbon platform?

2013-10-04 Thread Pradeep Fernando
: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*

 *
 *
 *Lean . Enterprise . Middleware*

 ___
 Architecture mailing list
 architect...@wso2.org
 https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] IS code reviews..

2013-10-03 Thread Pradeep Fernando
Hi Prabath/Johann/Chamath,

If the code review is on carbon authentication framework, then please
invite me. I would like to attend as well..

thanks,
--Pradeep




On Thu, Oct 3, 2013 at 11:27 AM, Prabath Siriwardena prab...@wso2.comwrote:

 Thanks Chamath...

 Create a schedule for next two weeks - lets extend that..


 https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AtS5Oii8ega9dHZqWHRRelFxRW1PZ1ZfaTBhaTdPRkE#gid=0

 Thanks  regards,
 -Prabath


 On Wed, Oct 2, 2013 at 9:45 PM, Chamath Gunawardana chama...@wso2.comwrote:

 Hi Prabath,

 We are planing to do the code review on Friday.


 Thanks,


 On Wed, Oct 2, 2013 at 3:19 PM, Prabath Siriwardena prab...@wso2.comwrote:

 Hi Chamath/Johann,

 What is the code review plan for this week...?

 Can we review the authentication framework...?

 Thanks  Regards,
 Prabath

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://RampartFAQ.com




 --
 Best Regards,
 Chamath Gunawardana
 Technical Lead; WSO2 Inc.
 Mobile : +94776322240




 --
 Thanks  Regards,
 Prabath

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://RampartFAQ.com

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Build Failure - Kernel/Patch0001

2013-09-16 Thread Pradeep Fernando
hi,


I think the parent from of that component should refer to, Otherwise it
cant find nexus repos -  it cant find dependencies, parent.

 artifactIdcarbon-kernel-patch/artifactId





On Mon, Sep 16, 2013 at 12:38 PM, Sumedha Rubasinghe sume...@wso2.comwrote:

 Sameera/Pradeep,
 Given that only 2 of you have commit rights, how can a patch in kernel
 fail during compilation?
 It seems G-Reg functionality is blocked (so does QA) due to this.


 On Mon, Sep 16, 2013 at 11:46 AM, Ruwan Yatawara ruw...@wso2.com wrote:

 wso2@builder3:~/4.2.0_branch/kernel/patches/patch0001$ mvn clean install
 [INFO] Scanning for projects...
 [ERROR] The build could not read 4 projects - [Help 1]
 [ERROR]
 [ERROR]   The project org.apache.axis2.wso2:axis2:1.6.1.wso2v10
 (/home/wso2/4.2.0_branch/kernel/patches/patch0001/dependencies/orbit/axis2/pom.xml)
 has 1 error
 [ERROR] Non-resolvable parent POM: Failure to find
 org.wso2.carbon:carbon-kernel-dependents:pom:4.2.0 in
 http://repo.maven.apache.org/maven2 was cached in the local repository,
 resolution will not be reattempted until the update interval of central has
 elapsed or updates are forced and 'parent.relativePath' points at wrong
 local POM @ line 22, column 13 - [Help 2]
 [ERROR]
 [ERROR]   The project org.wso2.carbon:org.wso2.carbon.user.core:4.2.0
 (/home/wso2/4.2.0_branch/kernel/patches/patch0001/core/org.wso2.carbon.user.core/4.2.0/pom.xml)
 has 1 error
 [ERROR] Non-resolvable parent POM: Failure to find
 org.wso2.carbon:carbon-kernel:pom:4.2.0 in
 http://repo.maven.apache.org/maven2 was cached in the local repository,
 resolution will not be reattempted until the update interval of central has
 elapsed or updates are forced and 'parent.relativePath' points at wrong
 local POM @ line 22, column 13 - [Help 2]
 [ERROR]
 [ERROR]   The project org.wso2.carbon:org.wso2.carbon.registry.core:4.2.0
 (/home/wso2/4.2.0_branch/kernel/patches/patch0001/core/org.wso2.carbon.registry.core/pom.xml)
 has 1 error
 [ERROR] Non-resolvable parent POM: Failure to find
 org.wso2.carbon:carbon-kernel:pom:4.2.0 in
 http://repo.maven.apache.org/maven2 was cached in the local repository,
 resolution will not be reattempted until the update interval of central has
 elapsed or updates are forced and 'parent.relativePath' points at wrong
 local POM @ line 22, column 13 - [Help 2]
 [ERROR]
 [ERROR]   The project org.wso2.carbon:org.wso2.carbon.core:4.2.0
 (/home/wso2/4.2.0_branch/kernel/patches/patch0001/core/org.wso2.carbon.core/pom.xml)
 has 1 error
 [ERROR] Non-resolvable parent POM: Failure to find
 org.wso2.carbon:carbon-kernel:pom:4.2.0 in
 http://repo.maven.apache.org/maven2 was cached in the local repository,
 resolution will not be reattempted until the update interval of central has
 elapsed or updates are forced and 'parent.relativePath' points at wrong
 local POM @ line 22, column 13 - [Help 2]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
 [ERROR] [Help 2]
 http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException


 Thanks and Regards,

 Ruwan Yatawara

 Software Engineer,
 WSO2 Inc.
 lean . enterprise . middleware

 email : ruw...@wso2.com
 mobile : +94 77 9110413
 blog : http://ruwansrants.blogspot.com/
 www: :http://wso2.com


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




 --
 /sumedha
 m: +94 773017743
 b :  bit.ly/sumedha




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Build Failure - Kernel/Patch0001

2013-09-16 Thread Pradeep Fernando
On Mon, Sep 16, 2013 at 12:38 PM, Sumedha Rubasinghe sume...@wso2.comwrote:

 Sameera/Pradeep,
 Given that only 2 of you have commit rights, how can a patch in kernel
 fail during compilation?
 It seems G-Reg functionality is blocked (so does QA) due to this.

This only happens in a new/clean repo. Hence little bit tricky to verify..
No i dont have commit rights.. AFAIK.





 On Mon, Sep 16, 2013 at 11:46 AM, Ruwan Yatawara ruw...@wso2.com wrote:

 wso2@builder3:~/4.2.0_branch/kernel/patches/patch0001$ mvn clean install
 [INFO] Scanning for projects...
 [ERROR] The build could not read 4 projects - [Help 1]
 [ERROR]
 [ERROR]   The project org.apache.axis2.wso2:axis2:1.6.1.wso2v10
 (/home/wso2/4.2.0_branch/kernel/patches/patch0001/dependencies/orbit/axis2/pom.xml)
 has 1 error
 [ERROR] Non-resolvable parent POM: Failure to find
 org.wso2.carbon:carbon-kernel-dependents:pom:4.2.0 in
 http://repo.maven.apache.org/maven2 was cached in the local repository,
 resolution will not be reattempted until the update interval of central has
 elapsed or updates are forced and 'parent.relativePath' points at wrong
 local POM @ line 22, column 13 - [Help 2]
 [ERROR]
 [ERROR]   The project org.wso2.carbon:org.wso2.carbon.user.core:4.2.0
 (/home/wso2/4.2.0_branch/kernel/patches/patch0001/core/org.wso2.carbon.user.core/4.2.0/pom.xml)
 has 1 error
 [ERROR] Non-resolvable parent POM: Failure to find
 org.wso2.carbon:carbon-kernel:pom:4.2.0 in
 http://repo.maven.apache.org/maven2 was cached in the local repository,
 resolution will not be reattempted until the update interval of central has
 elapsed or updates are forced and 'parent.relativePath' points at wrong
 local POM @ line 22, column 13 - [Help 2]
 [ERROR]
 [ERROR]   The project org.wso2.carbon:org.wso2.carbon.registry.core:4.2.0
 (/home/wso2/4.2.0_branch/kernel/patches/patch0001/core/org.wso2.carbon.registry.core/pom.xml)
 has 1 error
 [ERROR] Non-resolvable parent POM: Failure to find
 org.wso2.carbon:carbon-kernel:pom:4.2.0 in
 http://repo.maven.apache.org/maven2 was cached in the local repository,
 resolution will not be reattempted until the update interval of central has
 elapsed or updates are forced and 'parent.relativePath' points at wrong
 local POM @ line 22, column 13 - [Help 2]
 [ERROR]
 [ERROR]   The project org.wso2.carbon:org.wso2.carbon.core:4.2.0
 (/home/wso2/4.2.0_branch/kernel/patches/patch0001/core/org.wso2.carbon.core/pom.xml)
 has 1 error
 [ERROR] Non-resolvable parent POM: Failure to find
 org.wso2.carbon:carbon-kernel:pom:4.2.0 in
 http://repo.maven.apache.org/maven2 was cached in the local repository,
 resolution will not be reattempted until the update interval of central has
 elapsed or updates are forced and 'parent.relativePath' points at wrong
 local POM @ line 22, column 13 - [Help 2]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
 [ERROR] [Help 2]
 http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException


 Thanks and Regards,

 Ruwan Yatawara

 Software Engineer,
 WSO2 Inc.
 lean . enterprise . middleware

 email : ruw...@wso2.com
 mobile : +94 77 9110413
 blog : http://ruwansrants.blogspot.com/
 www: :http://wso2.com


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




 --
 /sumedha
 m: +94 773017743
 b :  bit.ly/sumedha




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Using synapse version 2.1.1-wso2v9 for chunk-02 product releases

2013-09-13 Thread Pradeep Fernando
Hi Kasun et al,

we should try to use one minor ESB version across chunk releases...
(2.1.2-wso2v1).
ESB team owns the synapse core. Others have to wait till they release..

Hence IMHO, ELB should use, 2.1.2-wso2v1.




On Sat, Sep 7, 2013 at 11:08 PM, Vanjikumaran Sivajothy va...@wso2.comwrote:

 Hi IsuruU,
 I have reverted back the changes.

 Best regards,
 Vanji


 On Sat, Sep 7, 2013 at 8:22 PM, Isuru Udana isu...@wso2.com wrote:




 On Sat, Sep 7, 2013 at 7:25 PM, Lasantha Fernando lasan...@wso2.comwrote:

 Hi all,

 It seems the features/synapse/pom.xml synapse version has been changed
 to 2.1.2-wso2v1. But I think features/synapse has already being released
 with version 2.1.1-wso2v8 for chunk 01 release. Shouldn't we revert that
 change back as well?

 Yes. This should be reverted.

 Vanji,
 Please revert these changes and set the synapse version only at newly
 created features, p2-profile . there itself.


 Also, I guess since chunk 02 is going with synapse-2.1.1-wso2v9, that
 version should be referred directly within the chunk02 release only and not
 in anywhere for the already released stuff as IsuruU has already pointed
 out..

 Thanks,
 Lasantha


 On 7 September 2013 17:51, Vanjikumaran Sivajothy va...@wso2.comwrote:

 Hi IsuruP,

 I have reverted it back to 2.1.1-wso2v8 using r184691.

 Thank you,
 Best regards,
 Vanji


 On Fri, Sep 6, 2013 at 11:44 PM, Isuru Udana isu...@wso2.com wrote:

 Hi IsuruP,

 On Fri, Sep 6, 2013 at 11:22 PM, Isuru Perera isu...@wso2.com wrote:

 Hi,

 We will be using synapse version 2.1.1-wso2v9 instead of 2.1.2-wso2v1
 for chunk-02 product releases.

 Please note that I committed version to platform parent pom.xml [1]
 with revision 184661.

 Parent is already released. So you can't commit to it.
 Instead of changing the synapse version in the parent pom, change the
 synapse version within relevant dependency, features, p2-profile there
 itself.


 Thanks!

 Best Regards,

 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.2.0/parent/pom.xml

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




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




 --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com/*
 *Mobile:(+94)777219209**
 *[image: Facebook] https://www.facebook.com/vanjikumaran [image:
 Twitter] https://twitter.com/vanjikumaran [image: 
 LinkedIn]http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 
 [image:
 Blogger] http://vanjikumaran.blogspot.com/ [image: 
 SlideShare]http://www.slideshare.net/vanjikumaran

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




 --
 *Lasantha Fernando*
 Software Engineer - Data Technologies Team
 WSO2 Inc. http://wso2.com

 email: lasan...@wso2.com
 mobile: (+94) 71 5247551




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




 --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com/*
 *Mobile:(+94)777219209**
 *[image: Facebook] https://www.facebook.com/vanjikumaran [image:
 Twitter] https://twitter.com/vanjikumaran [image: 
 LinkedIn]http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 
 [image:
 Blogger] http://vanjikumaran.blogspot.com/ [image: 
 SlideShare]http://www.slideshare.net/vanjikumaran

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Using synapse version 2.1.1-wso2v9 for chunk-02 product releases

2013-09-13 Thread Pradeep Fernando
Hi Kasun,

yes understood the reason, why we are doing this. However, we should also
note that this introduces interop issues at feature level. (p2 story)

--Pradeep


On Fri, Sep 13, 2013 at 12:11 PM, Kasun Indrasiri ka...@wso2.com wrote:

 The main issue here is that ELB/API-M releases go with chunk 2 while ESB
 is planned for chunk 3. We are doing quite a lot of changes in synapse-core
 for connector work and that's why we let ELB/API-M to go with 2.1.1v9
 version(We are applying all critical fixes for both synapse versions).
 Ideally, the dependent products should go after an ESB release, but it is
 not practical I guess.


 On Fri, Sep 13, 2013 at 11:32 AM, Pradeep Fernando prad...@wso2.comwrote:

 Hi Kasun et al,

 we should try to use one minor ESB version across chunk releases... 
 (2.1.2-wso2v1).
 ESB team owns the synapse core. Others have to wait till they release..

 Hence IMHO, ELB should use, 2.1.2-wso2v1.




 On Sat, Sep 7, 2013 at 11:08 PM, Vanjikumaran Sivajothy 
 va...@wso2.comwrote:

 Hi IsuruU,
 I have reverted back the changes.

 Best regards,
 Vanji


 On Sat, Sep 7, 2013 at 8:22 PM, Isuru Udana isu...@wso2.com wrote:




 On Sat, Sep 7, 2013 at 7:25 PM, Lasantha Fernando lasan...@wso2.comwrote:

 Hi all,

 It seems the features/synapse/pom.xml synapse version has been changed
 to 2.1.2-wso2v1. But I think features/synapse has already being released
 with version 2.1.1-wso2v8 for chunk 01 release. Shouldn't we revert that
 change back as well?

 Yes. This should be reverted.

 Vanji,
 Please revert these changes and set the synapse version only at newly
 created features, p2-profile . there itself.


 Also, I guess since chunk 02 is going with synapse-2.1.1-wso2v9, that
 version should be referred directly within the chunk02 release only and 
 not
 in anywhere for the already released stuff as IsuruU has already pointed
 out..

 Thanks,
 Lasantha


 On 7 September 2013 17:51, Vanjikumaran Sivajothy va...@wso2.comwrote:

 Hi IsuruP,

 I have reverted it back to 2.1.1-wso2v8 using r184691.

 Thank you,
 Best regards,
 Vanji


 On Fri, Sep 6, 2013 at 11:44 PM, Isuru Udana isu...@wso2.com wrote:

 Hi IsuruP,

 On Fri, Sep 6, 2013 at 11:22 PM, Isuru Perera isu...@wso2.comwrote:

 Hi,

 We will be using synapse version 2.1.1-wso2v9 instead of
 2.1.2-wso2v1 for chunk-02 product releases.

 Please note that I committed version to platform parent pom.xml [1]
 with revision 184661.

 Parent is already released. So you can't commit to it.
 Instead of changing the synapse version in the parent pom, change
 the synapse version within relevant dependency, features, p2-profile 
 there
 itself.


 Thanks!

 Best Regards,

 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.2.0/parent/pom.xml

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




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




 --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com/*
 *Mobile:(+94)777219209**
 *[image: Facebook] https://www.facebook.com/vanjikumaran [image:
 Twitter] https://twitter.com/vanjikumaran [image: 
 LinkedIn]http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 
 [image:
 Blogger] http://vanjikumaran.blogspot.com/ [image: 
 SlideShare]http://www.slideshare.net/vanjikumaran

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




 --
 *Lasantha Fernando*
 Software Engineer - Data Technologies Team
 WSO2 Inc. http://wso2.com

 email: lasan...@wso2.com
 mobile: (+94) 71 5247551




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




 --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com/*
 *Mobile:(+94)777219209**
 *[image: Facebook] https://www.facebook.com/vanjikumaran [image:
 Twitter] https://twitter.com/vanjikumaran [image: 
 LinkedIn]http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 
 [image:
 Blogger] http://vanjikumaran.blogspot.com/ [image: 
 SlideShare]http://www.slideshare.net/vanjikumaran

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




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

 blog: http

[Dev] Throttling does not work with ELB fronted setup.

2013-08-22 Thread Pradeep Fernando
Hi Devs,

We have the $subject. The service picks up the ELB's client IP instead of
original request IP.
setting the property x-forwarded-for is a solution...


[1] https://wso2.org/jira/browse/CARBON-14362

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


Re: [Dev] Shall we make 'wka' as the by default configuration in axis2.xml instead of multicast?

2013-08-20 Thread Pradeep Fernando
On Tue, Aug 20, 2013 at 1:31 PM, Afkham Azeez az...@wso2.com wrote:

 I meant for people who just extract  run the packs, mcast just works.

+1. it is the scheme we used even for our day to day testing.. (depsync
etc)



 On Tue, Aug 20, 2013 at 1:30 PM, Afkham Azeez az...@wso2.com wrote:

 No! mcast just works OOTB.


 On Tue, Aug 20, 2013 at 3:29 AM, Nirmal Fernando nir...@wso2.com wrote:

 $subject?

 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*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/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] java.lang.NullPointerException: Tenant domain has not been set in CarbonContext thrown when accessing Management Console with latest packs (18th August)

2013-08-20 Thread Pradeep Fernando
Hi Geeth, Piyum,

I beleive the above is a regression due to

https://wso2.org/jira/browse/WSAS-1473

can you please have a look..


On Tue, Aug 20, 2013 at 3:03 PM, Evanthika Amarasiri evanth...@wso2.comwrote:

 Hi,

 I was setting up a worker/manager separated setup with the latest packs
 (18th Aug) and noticed that I cannot access the Management console. It
 throws the below NPE at ELB side.



 
 TID: [0] [ELB] [2013-08-20 14:54:26,611]  WARN
 {org.apache.synapse.transport.passthru.SourceHandler} -  Connection time
 out after request is read: http-incoming-3
 {org.apache.synapse.transport.passthru.SourceHandler}
 TID: [0] [ELB] [2013-08-20 14:54:26,630] ERROR
 {org.apache.axis2.transport.base.threads.NativeWorkerPool} -  Uncaught
 exception {org.apache.axis2.transport.base.threads.NativeWorkerPool}
 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.security.pox.POXSecurityHandler.getPOXCache(POXSecurityHandler.java:329)
  at
 org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:123)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
  at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:337)
  at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:169)
  at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
  at java.lang.Thread.run(Thread.java:722)




 Regards,
 Evanthika Amarasiri
 Senior Technical Lead - Quality Assurance
 Mobile: +94773125935
 *
 *
 wso2.com Lean Enterprise Middleware




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] java.lang.NullPointerException: Tenant domain has not been set in CarbonContext thrown when accessing Management Console with latest packs (18th August)

2013-08-20 Thread Pradeep Fernando
no we did not remove. Can do for this release.. However going through the
commited code changes are similar to ones we reverted.
I asked to patch the security.mgt jar with previous packs one. That would
allow them to proceed with testing in the meantime. Code in the
POXSecurityHandler is very sensitive. We should be extra careful when
making changes..


On Tue, Aug 20, 2013 at 3:39 PM, Kasun Gajasinghe kas...@wso2.com wrote:

 Hi Pradeep,

 No, this isn't a regression due to the said issue. Although the changes
 are done in POXSecurityHandler, it's for a different issue related to
 performance.

 And, did we not remove POX security handler from ELB?




 On Tue, Aug 20, 2013 at 3:32 PM, Pradeep Fernando prad...@wso2.comwrote:

 Hi Geeth, Piyum,

 I beleive the above is a regression due to

 https://wso2.org/jira/browse/WSAS-1473

 can you please have a look..


 On Tue, Aug 20, 2013 at 3:03 PM, Evanthika Amarasiri 
 evanth...@wso2.comwrote:

 Hi,

 I was setting up a worker/manager separated setup with the latest packs
 (18th Aug) and noticed that I cannot access the Management console. It
 throws the below NPE at ELB side.



 
 TID: [0] [ELB] [2013-08-20 14:54:26,611]  WARN
 {org.apache.synapse.transport.passthru.SourceHandler} -  Connection time
 out after request is read: http-incoming-3
 {org.apache.synapse.transport.passthru.SourceHandler}
 TID: [0] [ELB] [2013-08-20 14:54:26,630] ERROR
 {org.apache.axis2.transport.base.threads.NativeWorkerPool} -  Uncaught
 exception {org.apache.axis2.transport.base.threads.NativeWorkerPool}
 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.security.pox.POXSecurityHandler.getPOXCache(POXSecurityHandler.java:329)
  at
 org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:123)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
  at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:337)
  at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:169)
  at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
  at java.lang.Thread.run(Thread.java:722)




 Regards,
 Evanthika Amarasiri
 Senior Technical Lead - Quality Assurance
 Mobile: +94773125935
 *
 *
 wso2.com Lean Enterprise Middleware




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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

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




 --
 *Kasun Gajasinghe*
 Software Engineer;
 Development Technologies Team, WSO2 Inc.; http://wso2.com


  ,
 *email: **kasung AT spamfree wso2.com


 ** cell: **+94 (77) 678-0813*
 *linked-in: *http://lk.linkedin.com/in/gajasinghe


 *
 *
 *blog: **http://kasunbg.org* http://kasunbg.org


 *
 twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg


 *
 *




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] java.lang.NullPointerException: Tenant domain has not been set in CarbonContext thrown when accessing Management Console with latest packs (18th August)

2013-08-20 Thread Pradeep Fernando
On Tue, Aug 20, 2013 at 3:46 PM, Kasun Gajasinghe kas...@wso2.com wrote:


 The real question here is why POXSecurityHandler tries to cache the
 requests to mgt console? In AppServer, we check for adminService axis2
 service parameter to filter the admin requests. We should have something
 similar in ELB.

 Further, why is not the tenant domain set at the time of POX handler got
 invoked?

ELB is not a MT runtime. Hence it should not depend in CC,
tenantDomain,tenantID


 Thanks,
 KasunG


 On Tue, Aug 20, 2013 at 3:39 PM, Kasun Gajasinghe kas...@wso2.com wrote:

 Hi Pradeep,

 No, this isn't a regression due to the said issue. Although the changes
 are done in POXSecurityHandler, it's for a different issue related to
 performance.

 And, did we not remove POX security handler from ELB?




 On Tue, Aug 20, 2013 at 3:32 PM, Pradeep Fernando prad...@wso2.comwrote:

 Hi Geeth, Piyum,

 I beleive the above is a regression due to

 https://wso2.org/jira/browse/WSAS-1473

 can you please have a look..


 On Tue, Aug 20, 2013 at 3:03 PM, Evanthika Amarasiri evanth...@wso2.com
  wrote:

 Hi,

 I was setting up a worker/manager separated setup with the latest packs
 (18th Aug) and noticed that I cannot access the Management console. It
 throws the below NPE at ELB side.



 
 TID: [0] [ELB] [2013-08-20 14:54:26,611]  WARN
 {org.apache.synapse.transport.passthru.SourceHandler} -  Connection time
 out after request is read: http-incoming-3
 {org.apache.synapse.transport.passthru.SourceHandler}
 TID: [0] [ELB] [2013-08-20 14:54:26,630] ERROR
 {org.apache.axis2.transport.base.threads.NativeWorkerPool} -  Uncaught
 exception {org.apache.axis2.transport.base.threads.NativeWorkerPool}
 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.security.pox.POXSecurityHandler.getPOXCache(POXSecurityHandler.java:329)
  at
 org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:123)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
  at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:337)
  at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:169)
  at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
  at java.lang.Thread.run(Thread.java:722)




 Regards,
 Evanthika Amarasiri
 Senior Technical Lead - Quality Assurance
 Mobile: +94773125935
 *
 *
 wso2.com Lean Enterprise Middleware




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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

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




 --
 *Kasun Gajasinghe*
 Software Engineer;
 Development Technologies Team, WSO2 Inc.; http://wso2.com


  ,
 *email: **kasung AT spamfree wso2.com


 ** cell: **+94 (77) 678-0813*
 *linked-in: *http://lk.linkedin.com/in/gajasinghe


 *
 *
 *blog: **http://kasunbg.org* http://kasunbg.org


 *
 twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg


 *
 *




 --
 *Kasun Gajasinghe*
 Software Engineer;
 Development Technologies Team, WSO2 Inc.; http://wso2.com


  ,
 *email: **kasung AT spamfree wso2.com


 ** cell: **+94 (77) 678-0813*
 *linked-in: *http://lk.linkedin.com/in/gajasinghe


 *
 *
 *blog: **http://kasunbg.org* http://kasunbg.org


 *
 twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg


 *
 *




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] java.lang.NullPointerException: Tenant domain has not been set in CarbonContext thrown when accessing Management Console with latest packs (18th August)

2013-08-20 Thread Pradeep Fernando
On Tue, Aug 20, 2013 at 3:48 PM, Pradeep Fernando prad...@wso2.com wrote:

 no we did not remove. Can do for this release..

I meant 'can not'


 However going through the commited code changes are similar to ones we
 reverted.
 I asked to patch the security.mgt jar with previous packs one. That would
 allow them to proceed with testing in the meantime. Code in the
 POXSecurityHandler is very sensitive. We should be extra careful when
 making changes..


 On Tue, Aug 20, 2013 at 3:39 PM, Kasun Gajasinghe kas...@wso2.com wrote:

 Hi Pradeep,

 No, this isn't a regression due to the said issue. Although the changes
 are done in POXSecurityHandler, it's for a different issue related to
 performance.

 And, did we not remove POX security handler from ELB?




 On Tue, Aug 20, 2013 at 3:32 PM, Pradeep Fernando prad...@wso2.comwrote:

 Hi Geeth, Piyum,

 I beleive the above is a regression due to

 https://wso2.org/jira/browse/WSAS-1473

 can you please have a look..


 On Tue, Aug 20, 2013 at 3:03 PM, Evanthika Amarasiri evanth...@wso2.com
  wrote:

 Hi,

 I was setting up a worker/manager separated setup with the latest packs
 (18th Aug) and noticed that I cannot access the Management console. It
 throws the below NPE at ELB side.



 
 TID: [0] [ELB] [2013-08-20 14:54:26,611]  WARN
 {org.apache.synapse.transport.passthru.SourceHandler} -  Connection time
 out after request is read: http-incoming-3
 {org.apache.synapse.transport.passthru.SourceHandler}
 TID: [0] [ELB] [2013-08-20 14:54:26,630] ERROR
 {org.apache.axis2.transport.base.threads.NativeWorkerPool} -  Uncaught
 exception {org.apache.axis2.transport.base.threads.NativeWorkerPool}
 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.security.pox.POXSecurityHandler.getPOXCache(POXSecurityHandler.java:329)
  at
 org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:123)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
  at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:337)
  at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:169)
  at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
  at java.lang.Thread.run(Thread.java:722)




 Regards,
 Evanthika Amarasiri
 Senior Technical Lead - Quality Assurance
 Mobile: +94773125935
 *
 *
 wso2.com Lean Enterprise Middleware




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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

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




 --
 *Kasun Gajasinghe*
 Software Engineer;
 Development Technologies Team, WSO2 Inc.; http://wso2.com


  ,
 *email: **kasung AT spamfree wso2.com


 ** cell: **+94 (77) 678-0813*
 *linked-in: *http://lk.linkedin.com/in/gajasinghe


 *
 *
 *blog: **http://kasunbg.org* http://kasunbg.org


 *
 twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg


 *
 *




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] java.lang.NullPointerException: Tenant domain has not been set in CarbonContext thrown when accessing Management Console with latest packs (18th August)

2013-08-20 Thread Pradeep Fernando
On Tue, Aug 20, 2013 at 3:56 PM, Kasun Gajasinghe kas...@wso2.com wrote:




 On Tue, Aug 20, 2013 at 3:48 PM, Pradeep Fernando prad...@wso2.comwrote:

 no we did not remove. Can do for this release..

 However going through the commited code changes are similar to ones we
 reverted.
 I asked to patch the security.mgt jar with previous packs one. That would
 allow them to proceed with testing in the meantime. Code in the
 POXSecurityHandler is very sensitive. We should be extra careful when
 making changes..



 I went through the svn commits, it seems that the changes we reverted has
 been added back in r181647. :(

Told you.. :)



 Even though the commit log say that it's a  fix for 
 WSAS-1473https://wso2.org/jira/browse/WSAS-1473,
 it's not. Don't understand why it got added. But I have reverted the change.

 Thanks,
 KasunG




 On Tue, Aug 20, 2013 at 3:39 PM, Kasun Gajasinghe kas...@wso2.comwrote:

 Hi Pradeep,

 No, this isn't a regression due to the said issue. Although the changes
 are done in POXSecurityHandler, it's for a different issue related to
 performance.

 And, did we not remove POX security handler from ELB?




 On Tue, Aug 20, 2013 at 3:32 PM, Pradeep Fernando prad...@wso2.comwrote:

 Hi Geeth, Piyum,

 I beleive the above is a regression due to

 https://wso2.org/jira/browse/WSAS-1473

 can you please have a look..


 On Tue, Aug 20, 2013 at 3:03 PM, Evanthika Amarasiri 
 evanth...@wso2.com wrote:

 Hi,

 I was setting up a worker/manager separated setup with the latest
 packs (18th Aug) and noticed that I cannot access the Management console.
 It throws the below NPE at ELB side.



 
 TID: [0] [ELB] [2013-08-20 14:54:26,611]  WARN
 {org.apache.synapse.transport.passthru.SourceHandler} -  Connection time
 out after request is read: http-incoming-3
 {org.apache.synapse.transport.passthru.SourceHandler}
 TID: [0] [ELB] [2013-08-20 14:54:26,630] ERROR
 {org.apache.axis2.transport.base.threads.NativeWorkerPool} -  Uncaught
 exception {org.apache.axis2.transport.base.threads.NativeWorkerPool}
 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.security.pox.POXSecurityHandler.getPOXCache(POXSecurityHandler.java:329)
  at
 org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:123)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
  at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:337)
  at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:169)
  at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
  at java.lang.Thread.run(Thread.java:722)




 Regards,
 Evanthika Amarasiri
 Senior Technical Lead - Quality Assurance
 Mobile: +94773125935
 *
 *
 wso2.com Lean Enterprise Middleware




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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

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




 --
 *Kasun Gajasinghe*
 Software Engineer;
 Development Technologies Team, WSO2 Inc.; http://wso2.com


  ,
 *email: **kasung AT spamfree wso2.com


 ** cell: **+94 (77) 678-0813*
 *linked-in: *http://lk.linkedin.com/in/gajasinghe


 *
 *
 *blog: **http://kasunbg.org* http://kasunbg.org


 *
 twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg


 *
 *




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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




 --
 *Kasun Gajasinghe*
 Software Engineer;
 Development Technologies Team, WSO2 Inc.; http://wso2.com


  ,
 *email: **kasung AT spamfree wso2.com


 ** cell: **+94 (77) 678-0813*
 *linked-in: *http://lk.linkedin.com/in/gajasinghe


 *
 *
 *blog: **http://kasunbg.org* http://kasunbg.org


 *
 twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg


 *
 *




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


[Dev] move the cassandra-jdbc out from platform/deps

2013-08-20 Thread Pradeep Fernando
AFAIU, we are not modifying the source. hence should go to external/orbit.

https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.2.0/dependencies/orbit/cassandra-jdbc/1.2.5.wso2v1


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


Re: [Dev] Two constant values for 'HTTP_METHOD' in axis2.wso2

2013-08-20 Thread Pradeep Fernando
Hi Sagara,

I made the above change and committed the code. Let me know if the approach
is wrong.


On Tue, Aug 20, 2013 at 10:11 AM, Pradeep Fernando prad...@wso2.com wrote:

 related JIRA,

 [1] https://wso2.org/jira/browse/CARBON-14390


 On Tue, Aug 20, 2013 at 10:10 AM, Pradeep Fernando prad...@wso2.comwrote:

 Hi Sagara.

 while working on the [1] noticed that root cause of the issue is having
 two constant values for HTTP_METHOD constant.

 one defined in , HTTPConstant class and other in
 Constants.Configuration.

 the values are , 'HTTP_METHOD_OBJECT' and 'HTTP_METHOD'.

 what is the value i should use.Changing the value in
 Constants.Configuration to HTTP_METHOD_OBJECT will solve the issue..
 however is that the correct thing to do ? will that introduce regression at
 large scale..

 thanks,
 --Pradeep





 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


[Dev] Lets work on lincense/readme/etc in distributions.

2013-08-20 Thread Pradeep Fernando
Hi devs,

Since we are in RC state, shall we do the $subject. This includes..

- readmes
- releasenotes
- license txt
- checking for duplicated jars in the distribution



@Manoj : can you please attend the same in carbon distribution..


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


Re: [Dev] Tenant DepSync is broken in latest packs

2013-08-19 Thread Pradeep Fernando
Sorry I didn't get you

--Pradeep
sent from my phone
On Aug 19, 2013 9:01 PM, Eranda Sooriyabandara era...@wso2.com wrote:

 Hi Pradeep,
 In the latest pack I see the workers not sync up with the cluster message
 for the registry based dep-sync. But it works for tenants.

 thanks
 Eranda


 On Mon, Aug 19, 2013 at 12:24 AM, Pradeep Fernando prad...@wso2.comwrote:

 @QA,

 Please patch the QA setup with following jar and proceed with tenant
 level depsync.

 thanks,
 --Pradeep


 On Mon, Aug 19, 2013 at 12:18 AM, Pradeep Fernando prad...@wso2.comwrote:

 Hi,

 Kasun and me looked in to the issue.
 The issue has surfaced due to Erandas commit to,
 SynchronizeRepositoryRequest#execute() method - setting tenant info to
 CC. However, it is the correct approach IMHO.
 In the current implementation the cluster message listener always passes
 mainConfigContext to the execute() method. Hence during the doDeployment()
 method call, the super-tenant CarbonAxisConfigurator get picked instead of
 TenantAxisConfigurator.

 thought of handling the multi-tenant aspects after message being passed
 to the receiving side. (after the execute method)

 Therefor modified the doDeployment method as follows,

  if
 (!MultitenantConstants.SUPER_TENANT_DOMAIN_NAME.equals(tenantDomain)) {
 // If the depsync request is for tenant repository..
 configContext =
 TenantAxisUtils.getTenantConfigurationContext(tenantDomain, configContext);
 }
 AxisConfigurator axisConfigurator =
 configContext.getAxisConfiguration().getConfigurator();
 if (axisConfigurator instanceof CarbonAxisConfigurator) {
 ((CarbonAxisConfigurator) axisConfigurator).runDeployment();
 } else if (axisConfigurator instanceof TenantAxisConfigurator) {
 ((TenantAxisConfigurator) axisConfigurator).runDeployment();
 }


 The functionality is working fine for me in my local setup. Please let
 me know if you find any issues with the above approach..

 thanks,
 --Pradeep



 On Tue, Aug 13, 2013 at 5:25 PM, Pradeep Fernando prad...@wso2.comwrote:

 i will have a look..


 On Tue, Aug 13, 2013 at 3:57 PM, Kasun Gajasinghe kas...@wso2.comwrote:

 The second issue seems to be because of a local issue when configuring
 the wka clustering. I'm trying to re-produce the first issue.

 Thanks,
 KasunG


 On Tue, Aug 13, 2013 at 3:33 PM, Kasun Gajasinghe kas...@wso2.comwrote:

 Hi,

 Tenant Deployment Synchronizing is broken in latest packs. This issue
 is of two fold.

 1. Tenants fail to update their svn repository when a cluster message
 is received. [1] The actual issue is that although the cluster message,
 SynchronizeRepositoryRequest, has the correct tenant id, the
 ConfigurationContext object passed by worker node is the CC of super
 tenant. The cluster message receiver node is supposed to pass the correct
 ConfigurationContext to SynchronizeRepositoryRequest#execute method. It
 seems like the HazelcastClusteringAgent is not tenant aware.

 2. Manager nodes fails to send cluster message  -  The reason is
 that ClusteringAgent that is used to send the cluster message is null.
 Noticed this in local setup even for super-tenant. Seems to be 
 intermittent
 since this is apparently working in the 9thAug QA setup.

 CarbonDeploymentSchedulerTask#sendRepositorySyncMessage
 CarbonCoreDataHolder.getInstance().getMainServerConfigContext().
 getAxisConfiguration().getClusteringAgent();
 == null


 https://wso2.org/jira/browse/CARBON-14346

 Thanks,
 KasunG

 --
 *Kasun Gajasinghe*
 Software Engineer;
 Development Technologies Team, WSO2 Inc.; http://wso2.com




  ,
 *email: **kasung AT spamfree wso2.com




 ** cell: **+94 (77) 678-0813*
 *linked-in: *http://lk.linkedin.com/in/gajasinghe




 *
 *
 *blog: **http://kasunbg.org* http://kasunbg.org




 *
 twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg




 *
 *




 --
 *Kasun Gajasinghe*
 Software Engineer;
 Development Technologies Team, WSO2 Inc.; http://wso2.com


  ,
 *email: **kasung AT spamfree wso2.com


 ** cell: **+94 (77) 678-0813*
 *linked-in: *http://lk.linkedin.com/in/gajasinghe


 *
 *
 *blog: **http://kasunbg.org* http://kasunbg.org


 *
 twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg


 *
 *




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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

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




 --
 *Eranda Sooriyabandara
 *Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise

Re: [Dev] Tenant DepSync is broken in latest packs

2013-08-19 Thread Pradeep Fernando
then,

.HazelcastClusterMessageListener.onMessage()

method should get called in the worker node. If not, something wrong with
your cluster setup.

thanks,
--Pradeep


On Mon, Aug 19, 2013 at 9:25 PM, Eranda Sooriyabandara era...@wso2.comwrote:

 Hi Pradeep,
 Following log appears on the manager node. But worker node not sync the
 artifact from the registry, even there is no ack for the cluster message
 reception. Any idea what is happening?

 [2013-08-19 21:22:02,974]  INFO
 {org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask} -  Sent
 [SynchronizeRepositoryRequest{tenantId=1, tenantDomain='wso2.com',
 messageId=f3d0afa3-1485-4a63-8ad4-6b8282f80a1d}]

 thanks
 Eranda




 On Mon, Aug 19, 2013 at 9:15 PM, Pradeep Fernando prad...@wso2.comwrote:

 Sorry I didn't get you

 --Pradeep
 sent from my phone
 On Aug 19, 2013 9:01 PM, Eranda Sooriyabandara era...@wso2.com wrote:

 Hi Pradeep,
 In the latest pack I see the workers not sync up with the cluster
 message for the registry based dep-sync. But it works for tenants.

 thanks
 Eranda


 On Mon, Aug 19, 2013 at 12:24 AM, Pradeep Fernando prad...@wso2.comwrote:

 @QA,

 Please patch the QA setup with following jar and proceed with tenant
 level depsync.

 thanks,
 --Pradeep


 On Mon, Aug 19, 2013 at 12:18 AM, Pradeep Fernando prad...@wso2.comwrote:

 Hi,

 Kasun and me looked in to the issue.
 The issue has surfaced due to Erandas commit to,
 SynchronizeRepositoryRequest#execute() method - setting tenant info to
 CC. However, it is the correct approach IMHO.
 In the current implementation the cluster message listener always
 passes mainConfigContext to the execute() method. Hence during the
 doDeployment() method call, the super-tenant CarbonAxisConfigurator get
 picked instead of  TenantAxisConfigurator.

 thought of handling the multi-tenant aspects after message being
 passed to the receiving side. (after the execute method)

 Therefor modified the doDeployment method as follows,

  if
 (!MultitenantConstants.SUPER_TENANT_DOMAIN_NAME.equals(tenantDomain)) {
 // If the depsync request is for tenant repository..
 configContext =
 TenantAxisUtils.getTenantConfigurationContext(tenantDomain, 
 configContext);
 }
 AxisConfigurator axisConfigurator =
 configContext.getAxisConfiguration().getConfigurator();
 if (axisConfigurator instanceof CarbonAxisConfigurator) {
 ((CarbonAxisConfigurator)
 axisConfigurator).runDeployment();
 } else if (axisConfigurator instanceof TenantAxisConfigurator)
 {
 ((TenantAxisConfigurator)
 axisConfigurator).runDeployment();
 }


 The functionality is working fine for me in my local setup. Please let
 me know if you find any issues with the above approach..

 thanks,
 --Pradeep



 On Tue, Aug 13, 2013 at 5:25 PM, Pradeep Fernando prad...@wso2.comwrote:

 i will have a look..


 On Tue, Aug 13, 2013 at 3:57 PM, Kasun Gajasinghe kas...@wso2.comwrote:

 The second issue seems to be because of a local issue when
 configuring the wka clustering. I'm trying to re-produce the first 
 issue.

 Thanks,
 KasunG


 On Tue, Aug 13, 2013 at 3:33 PM, Kasun Gajasinghe 
 kas...@wso2.comwrote:

 Hi,

 Tenant Deployment Synchronizing is broken in latest packs. This
 issue is of two fold.

 1. Tenants fail to update their svn repository when a cluster
 message is received. [1] The actual issue is that although the cluster
 message, SynchronizeRepositoryRequest, has the correct tenant id, the
 ConfigurationContext object passed by worker node is the CC of super
 tenant. The cluster message receiver node is supposed to pass the 
 correct
 ConfigurationContext to SynchronizeRepositoryRequest#execute method. It
 seems like the HazelcastClusteringAgent is not tenant aware.

 2. Manager nodes fails to send cluster message  -  The reason is
 that ClusteringAgent that is used to send the cluster message is null.
 Noticed this in local setup even for super-tenant. Seems to be 
 intermittent
 since this is apparently working in the 9thAug QA setup.

 CarbonDeploymentSchedulerTask#sendRepositorySyncMessage
 CarbonCoreDataHolder.getInstance().getMainServerConfigContext().

 getAxisConfiguration().getClusteringAgent(); == null


 https://wso2.org/jira/browse/CARBON-14346

 Thanks,
 KasunG

 --
 *Kasun Gajasinghe*
 Software Engineer;
 Development Technologies Team, WSO2 Inc.; http://wso2.com




  ,
 *email: **kasung AT spamfree wso2.com




 ** cell: **+94 (77) 678-0813*
 *linked-in: *http://lk.linkedin.com/in/gajasinghe




 *
 *
 *blog: **http://kasunbg.org* http://kasunbg.org




 *
 twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg




 *
 *




 --
 *Kasun Gajasinghe*
 Software Engineer;
 Development Technologies Team, WSO2 Inc.; http://wso2.com


  ,
 *email: **kasung AT spamfree wso2.com


 ** cell: **+94 (77) 678-0813*
 *linked-in: *http://lk.linkedin.com/in/gajasinghe


 *
 *
 *blog: **http://kasunbg.org* http://kasunbg.org


 *
 twitter

[Dev] Two constant values for 'HTTP_METHOD' in axis2.wso2

2013-08-19 Thread Pradeep Fernando
Hi Sagara.

while working on the [1] noticed that root cause of the issue is having two
constant values for HTTP_METHOD constant.

one defined in , HTTPConstant class and other in
Constants.Configuration.

the values are , 'HTTP_METHOD_OBJECT' and 'HTTP_METHOD'.

what is the value i should use.Changing the value in
Constants.Configuration to HTTP_METHOD_OBJECT will solve the issue..
however is that the correct thing to do ? will that introduce regression at
large scale..

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


Re: [Dev] Two constant values for 'HTTP_METHOD' in axis2.wso2

2013-08-19 Thread Pradeep Fernando
related JIRA,

[1] https://wso2.org/jira/browse/CARBON-14390


On Tue, Aug 20, 2013 at 10:10 AM, Pradeep Fernando prad...@wso2.com wrote:

 Hi Sagara.

 while working on the [1] noticed that root cause of the issue is having
 two constant values for HTTP_METHOD constant.

 one defined in , HTTPConstant class and other in
 Constants.Configuration.

 the values are , 'HTTP_METHOD_OBJECT' and 'HTTP_METHOD'.

 what is the value i should use.Changing the value in
 Constants.Configuration to HTTP_METHOD_OBJECT will solve the issue..
 however is that the correct thing to do ? will that introduce regression at
 large scale..

 thanks,
 --Pradeep





-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Test failure in XKMS

2013-08-18 Thread Pradeep Fernando
...
   RegisterRequestBuilderTest.testBuilder:35 » MissingResourceFailure The
 Referen...
   ValidateTest.testDocSigValidateRequest:83-getKI:270 » OM
 com.ctc.wstx.exc.Wst...
   ValidateTest.testDocSigValidateResult:135-getKI1:228 » OM
 com.ctc.wstx.exc.Ws...
   LocateTest.testDocSigLocateRequest:51 » OM
 com.ctc.wstx.exc.WstxParsingExcepti...
   LocateTest.testDocSigLocateResult:92-getKIResultElement:150 » OM
 com.ctc.wstx...

 Tests run: 12, Failures: 0, Errors: 6, Skipped: 0



 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT 
 apache.orgshame...@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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


[Dev] svn depsync does not work with subverion 1.7

2013-08-18 Thread Pradeep Fernando
FYI

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


Re: [Dev] Tenant DepSync is broken in latest packs

2013-08-18 Thread Pradeep Fernando
Hi,

Kasun and me looked in to the issue.
The issue has surfaced due to Erandas commit to,
SynchronizeRepositoryRequest#execute() method - setting tenant info to CC.
However, it is the correct approach IMHO.
In the current implementation the cluster message listener always passes
mainConfigContext to the execute() method. Hence during the doDeployment()
method call, the super-tenant CarbonAxisConfigurator get picked instead of
TenantAxisConfigurator.

thought of handling the multi-tenant aspects after message being passed to
the receiving side. (after the execute method)

Therefor modified the doDeployment method as follows,

 if (!MultitenantConstants.SUPER_TENANT_DOMAIN_NAME.equals(tenantDomain)) {
// If the depsync request is for tenant repository..
configContext =
TenantAxisUtils.getTenantConfigurationContext(tenantDomain, configContext);
}
AxisConfigurator axisConfigurator =
configContext.getAxisConfiguration().getConfigurator();
if (axisConfigurator instanceof CarbonAxisConfigurator) {
((CarbonAxisConfigurator) axisConfigurator).runDeployment();
} else if (axisConfigurator instanceof TenantAxisConfigurator) {
((TenantAxisConfigurator) axisConfigurator).runDeployment();
}


The functionality is working fine for me in my local setup. Please let me
know if you find any issues with the above approach..

thanks,
--Pradeep



On Tue, Aug 13, 2013 at 5:25 PM, Pradeep Fernando prad...@wso2.com wrote:

 i will have a look..


 On Tue, Aug 13, 2013 at 3:57 PM, Kasun Gajasinghe kas...@wso2.com wrote:

 The second issue seems to be because of a local issue when configuring
 the wka clustering. I'm trying to re-produce the first issue.

 Thanks,
 KasunG


 On Tue, Aug 13, 2013 at 3:33 PM, Kasun Gajasinghe kas...@wso2.comwrote:

 Hi,

 Tenant Deployment Synchronizing is broken in latest packs. This issue is
 of two fold.

 1. Tenants fail to update their svn repository when a cluster message is
 received. [1] The actual issue is that although the cluster message,
 SynchronizeRepositoryRequest, has the correct tenant id, the
 ConfigurationContext object passed by worker node is the CC of super
 tenant. The cluster message receiver node is supposed to pass the correct
 ConfigurationContext to SynchronizeRepositoryRequest#execute method. It
 seems like the HazelcastClusteringAgent is not tenant aware.

 2. Manager nodes fails to send cluster message  -  The reason is
 that ClusteringAgent that is used to send the cluster message is null.
 Noticed this in local setup even for super-tenant. Seems to be intermittent
 since this is apparently working in the 9thAug QA setup.

 CarbonDeploymentSchedulerTask#sendRepositorySyncMessage
 CarbonCoreDataHolder.getInstance().getMainServerConfigContext().
 getAxisConfiguration().getClusteringAgent(); ==
 null


 https://wso2.org/jira/browse/CARBON-14346

 Thanks,
 KasunG

 --
 *Kasun Gajasinghe*
 Software Engineer;
 Development Technologies Team, WSO2 Inc.; http://wso2.com




  ,
 *email: **kasung AT spamfree wso2.com




 ** cell: **+94 (77) 678-0813*
 *linked-in: *http://lk.linkedin.com/in/gajasinghe




 *
 *
 *blog: **http://kasunbg.org* http://kasunbg.org




 *
 twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg




 *
 *




 --
 *Kasun Gajasinghe*
 Software Engineer;
 Development Technologies Team, WSO2 Inc.; http://wso2.com


  ,
 *email: **kasung AT spamfree wso2.com


 ** cell: **+94 (77) 678-0813*
 *linked-in: *http://lk.linkedin.com/in/gajasinghe


 *
 *
 *blog: **http://kasunbg.org* http://kasunbg.org


 *
 twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg


 *
 *




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] [Startup Error- branch]Trusted IdP configuration not found

2013-08-17 Thread Pradeep Fernando
.carbon.idp.mgt.persistence.JDBCPersistenceManager.getInstance(JDBCPersistenceManager.java:58)
  at
 org.wso2.carbon.idp.mgt.internal.IdentityProviderMgtServiceComponent.activate(IdentityProviderMgtServiceComponent.java:69)
 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.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
  at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
  at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
  at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
  at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
  at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
  at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
  at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
  at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
 at
 org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:73)
  at
 org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
  at java.security.AccessController.doPrivileged(Native Method)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
  at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
 at
 org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
  at
 org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
 at
 org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
  at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
  at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
  at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
  at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
 [2013-08-17 17:49:32,049]  INFO
 {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} -  Configured
 Registry in 219ms


 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350


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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] [ELB] Null pointer while starting the pack.

2013-08-17 Thread Pradeep Fernando
Hi Sameera,

Due to recent httpcore refactoring I noticed that http client does not see
httpcore classes.

I fixed it for some other use case.(admin services).

I think same will apply here... Hopefully. (Enabling dynamic imports)

Build http client orbit and see. Just a guess.

--Pradeep
sent from my phone
On Aug 18, 2013 12:15 AM, Nirmal Fernando nir...@wso2.com wrote:

 This class should come from httpcore bundle, is it in active state?


 On Sun, Aug 18, 2013 at 12:12 AM, Sameera Jayasoma same...@wso2.comwrote:

 I am getting the following CNF error when I try to send a request to the
 mgt node.

 [2013-08-17 18:40:51,739] ERROR - NativeWorkerPool Uncaught exception
 java.lang.NoClassDefFoundError: *org/apache/http/HttpHost*
  at org.apache.http.conn.routing.HttpRoute.clinit(HttpRoute.java:47)
 at
 org.apache.synapse.transport.passthru.DeliveryAgent.submit(DeliveryAgent.java:129)
  at
 org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:246)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
  at
 org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(DynamicAxisOperation.java:185)
 at
 org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:167)
  at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:481)
  at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:57)
 at
 org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:342)
  at
 org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:329)
 at
 org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:59)
  at
 org.apache.synapse.endpoints.DynamicLoadbalanceEndpoint.sendToApplicationMember(DynamicLoadbalanceEndpoint.java:328)
 at
 org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint.send(TenantAwareLoadBalanceEndpoint.java:317)
  at
 org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:95)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:71)
  at
 org.apache.synapse.mediators.filters.InMediator.mediate(InMediator.java:55)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:71)
  at
 org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:114)
 at
 org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:199)
  at
 org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
  at
 org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:337)
 at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:169)
  at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 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)
 *Caused by: java.lang.ClassNotFoundException: org.apache.http.HttpHost*
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
  at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
  at
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  ... 28 more



 On Sat, Aug 17, 2013 at 2:47 AM, Pradeep Fernando prad...@wso2.comwrote:

 observed, below while starting up the branch built pack..




 java.lang.NullPointerException
 at
 org.apache.synapse.transport.passthru.PassThroughHttpListener.start(PassThroughHttpListener.java:213)
 at
 org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:168)
 at
 org.apache.axis2.engine.ListenerManager.startSystem(ListenerManager.java:186)
 at
 org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeInitialization(StartupFinalizerServiceComponent.java:166)
 at
 org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.serviceChanged(StartupFinalizerServiceComponent.java:284)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148

Re: [Dev] Compilation error in org.wso2.carbon.sequences.ui - 4.2.0 branch

2013-08-16 Thread Pradeep Fernando
Thanks..We did the same workaround and committed the code to branch.
However feels like it is not the right fix.

One should be extra careful when commiting code on fridays.. :)

thanks,
--Pradeep


On Sat, Aug 17, 2013 at 12:08 AM, Dushan Abeyruwan dus...@wso2.com wrote:

 Hi
   I did fix please take update in /sequence-editor/
 org.wso2.carbon.sequences.ui/4.2.0



 btw  Vanji,
  please review the commit at the  sequence-editor module which has been
 broken due to some of the  latest changers prior to my commit, anyway
 please check why it returns object instead of OMElement, you have the best
 reason since you worked for this module recently..


 Modified: carbon/platform/trunk/components/sequence-editor/
 org.wso2.carbon.sequences.ui/src/main/java/org/wso2/carbon/
 sequences/ui/client/SequenceAdminClient.java
 ===
 --- carbon/platform/trunk/components/sequence-editor/
 org.wso2.carbon.sequences.ui/src/main/java/org/wso2/carbon/
 sequences/ui/client/SequenceAdminClient.java2013-08-16 18:28:11 UTC
 (rev 181653)
 +++ carbon/platform/trunk/components/sequence-editor/
 org.wso2.carbon.sequences.ui/src/main/java/org/wso2/carbon/
 sequences/ui/client/SequenceAdminClient.java2013-08-16 18:30:35 UTC
 (rev 181654)
 @@ -145,7 +145,7 @@
  private OMElement getSequence(String sequenceName) throws
 SequenceEditorException {
  OMElement element = null;
  try {
 -element = sequenceAdminStub.getSequence(
 sequenceName).getFirstElement();
 +element = ((OMElement)(sequenceAdminStub.getSequence(
 sequenceName))).getFirstElement();
  } catch (Exception e) {
  handleException(Couldn't retrieve the sequence element with
 name '
  + sequenceName + ', e);
 @@ -197,7 +197,7 @@
  public OMElement getDynamicSequence(String key) throws
 SequenceEditorException {
  OMElement dynamicSequence = null;
  try {
 -dynamicSequence = sequenceAdminStub.getDynamicSequence(key);
 +dynamicSequence = (OMElement)sequenceAdminStub.
 getDynamicSequence(key);
  } catch (Exception e) {
  handleException(Couldn't get dynamic sequence with key ' +
 key + ', e);
  }


 On Fri, Aug 16, 2013 at 11:36 PM, Shameera Rathnayaka 
 shame...@wso2.comwrote:

 Hi ESB team,

 This will lead to many build failures in mediator module, Please consider
 this as urgent issue.

 Thanks,
 Shameera.


 On Fri, Aug 16, 2013 at 10:10 PM, Shameera Rathnayaka 
 shame...@wso2.comwrote:

 Hi

 Please fix the $subject.


 [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
 org.wso2.carbon.sequences.ui ---
 [INFO] Compiling 12 source files to
 /build/branches/platform/components/sequence-editor/org.wso2.carbon.sequences.ui/4.2.0/target/classes
 [INFO] -
 [ERROR] COMPILATION ERROR :
 [INFO] -
 [ERROR]
 /build/branches/platform/components/sequence-editor/org.wso2.carbon.sequences.ui/4.2.0/src/main/java/org/wso2/carbon/sequences/ui/client/SequenceAdminClient.java:[148,65]
 cannot find symbol
 symbol  : method getFirstElement()
 location: class java.lang.Object
 [ERROR]
 /build/branches/platform/components/sequence-editor/org.wso2.carbon.sequences.ui/4.2.0/src/main/java/org/wso2/carbon/sequences/ui/client/SequenceAdminClient.java:[200,66]
 incompatible types
 found   : java.lang.Object
 required: org.apache.axiom.om.OMElement
 [INFO] 2 errors

 Thanks,
 Shameera.



 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT
 apache.org shame...@apache.org*
 *phone:  +9471 922 1454*
 *
 *
 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT 
 apache.orgshame...@apache.org
 *
 *phone:  +9471 922 1454*
 *
 *
 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R




 --
 Dushan Abeyruwan
 Associate Tech Lead
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com/*
 *Mobile:(+94)714408632*

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] synapse/org.apache.synapse.wso2.feature/2.1.1-wso2v8 build failure

2013-08-16 Thread Pradeep Fernando
we dont have commons/throttle-core any more. we have moved/refactored the
code in to throttling component.
wonder why we didnt get this error while building branch. we did build in a
clean repo...

--Pradeep


On Fri, Aug 16, 2013 at 11:21 PM, Bhathiya Jayasekara bhath...@wso2.comwrote:

 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 1.755s
 [INFO] Finished at: Fri Aug 16 10:54:26 PDT 2013
 [INFO] Final Memory: 10M/153M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.wso2.maven:carbon-p2-plugin:1.5.3:p2-feature-gen
 (4-p2-feature-generation) on project org.apache.synapse.wso2.feature:
 Bundle-SymbolicName cannot be found in the bundle:
 /home/wso2/ss-1.1.0/m2repo/org/wso2/throttle/wso2throttle-core/3.3.0/wso2throttle-core-3.3.0.jar
 - [Help 1]
 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
 goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-feature-gen
 (4-p2-feature-generation) on project org.apache.synapse.wso2.feature:
 Bundle-SymbolicName cannot be found in the bundle:
 /home/wso2/ss-1.1.0/m2repo/org/wso2/throttle/wso2throttle-core/3.3.0/wso2throttle-core-3.3.0.jar
  at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
  at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
 at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
  at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
 at
 org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
  at
 org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
  at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
  at
 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
  at
 org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
 Caused by: org.apache.maven.plugin.MojoExecutionException:
 Bundle-SymbolicName cannot be found in the bundle:
 /home/wso2/ss-1.1.0/m2repo/org/wso2/throttle/wso2throttle-core/3.3.0/wso2throttle-core-3.3.0.jar
  at
 org.wso2.maven.p2.generate.feature.Bundle.resolveOSGIInfo(Bundle.java:330)
 at org.wso2.maven.p2.generate.feature.Bundle.setArtifact(Bundle.java:150)
  at
 org.wso2.maven.p2.generate.feature.FeatureGenMojo.getProcessedBundlesList(FeatureGenMojo.java:287)
 at
 org.wso2.maven.p2.generate.feature.FeatureGenMojo.execute(FeatureGenMojo.java:231)
  at
 org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
  ... 19 more
 [ERROR]
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

 --
 *Bhathiya Jayasekara*
 *Software Engineer,*
 *WSO2 inc., http://wso2.com*
 *
 *
 *Phone: +94715478185*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj*
 *Twitter: https://twitter.com/bhathiyax*

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


[Dev] [ELB] Null pointer while starting the pack.

2013-08-16 Thread Pradeep Fernando
observed, below while starting up the branch built pack..




java.lang.NullPointerException
at
org.apache.synapse.transport.passthru.PassThroughHttpListener.start(PassThroughHttpListener.java:213)
at
org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:168)
at
org.apache.axis2.engine.ListenerManager.startSystem(ListenerManager.java:186)
at
org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeInitialization(StartupFinalizerServiceComponent.java:166)
at
org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.serviceChanged(StartupFinalizerServiceComponent.java:284)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [GReg] startup errors in branch pack.

2013-08-16 Thread Pradeep Fernando
Seeing one error due to missing config file.

java.io.FileNotFoundException: Trusted IdP configuration not found
at
org.wso2.carbon.idp.mgt.config.ConfigParser.buildConfiguration(ConfigParser.java:97)
at
org.wso2.carbon.idp.mgt.config.ConfigParser.init(ConfigParser.java:50)
at
org.wso2.carbon.idp.mgt.config.ConfigParser.getInstance(ConfigParser.java:62)
at
org.wso2.carbon.idp.mgt.persistence.JDBCPersistenceManager.initDataSource(JDBCPersistenceManager.java:71)
at
org.wso2.carbon.idp.mgt.persistence.JDBCPersistenceManager.init(JDBCPersistenceManager.java:66)
at
org.wso2.carbon.idp.mgt.persistence.JDBCPersistenceManager.getInstance(JDBCPersistenceManager.java:58)
at
org.wso2.carbon.idp.mgt.internal.IdentityProviderMgtServiceComponent.activate(IdentityProviderMgtServiceComponent.java:69)
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.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at
org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GReg] startup errors in branch pack.

2013-08-16 Thread Pradeep Fernando
Error while resolving IP in EC2 machine

java.net.UnknownHostException: ip-10-142-137-71: ip-10-142-137-71
at java.net.InetAddress.getLocalHost(InetAddress.java:1402)
at
org.apache.synapse.commons.datasource.JNDIBasedDataSourceRepository.createJNDIEnvironment(JNDIBasedDataSourceRepository.java:464)
at
org.apache.synapse.commons.datasource.JNDIBasedDataSourceRepository.init(JNDIBasedDataSourceRepository.java:64)
at
org.apache.synapse.commons.datasource.DataSourceRepositoryManager.reConfigure(DataSourceRepositoryManager.java:126)
at
org.apache.synapse.commons.datasource.DataSourceInformationRepository.configure(DataSourceInformationRepository.java:58)
at
org.apache.synapse.commons.datasource.factory.DataSourceInformationRepositoryFactory.setupDataSourceInformationRepository(DataSourceInformationRepositoryFactory.java:85)
at
org.apache.synapse.commons.datasource.factory.DataSourceInformationRepositoryFactory.createDataSourceInformationRepository(DataSourceInformationRepositoryFactory.java:67)
at
org.apache.synapse.commons.datasource.factory.DataSourceInformationRepositoryFactory.createDataSourceInformationRepository(DataSourceInformationRepositoryFactory.java:44)
at
org.wso2.carbon.datasource.internal.DataSourceServiceComponent.getDSFromCarbonDSConfig(DataSourceServiceComponent.java:197)
at
org.wso2.carbon.datasource.internal.DataSourceServiceComponent.activate(DataSourceServiceComponent.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)


On Sat, Aug 17, 2013 at 3:20 AM, Pradeep Fernando prad...@wso2.com wrote:

 Seeing one error due to missing config file.

 java.io.FileNotFoundException: Trusted IdP configuration not found
 at
 org.wso2.carbon.idp.mgt.config.ConfigParser.buildConfiguration(ConfigParser.java:97)
 at
 org.wso2.carbon.idp.mgt.config.ConfigParser.init(ConfigParser.java:50)
 at
 org.wso2.carbon.idp.mgt.config.ConfigParser.getInstance(ConfigParser.java:62)
 at
 org.wso2.carbon.idp.mgt.persistence.JDBCPersistenceManager.initDataSource(JDBCPersistenceManager.java:71)
 at
 org.wso2.carbon.idp.mgt.persistence.JDBCPersistenceManager.init(JDBCPersistenceManager.java:66)
 at
 org.wso2.carbon.idp.mgt.persistence.JDBCPersistenceManager.getInstance(JDBCPersistenceManager.java:58)
 at
 org.wso2.carbon.idp.mgt.internal.IdentityProviderMgtServiceComponent.activate(IdentityProviderMgtServiceComponent.java:69)
 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.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)








-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Cannot build products 4.2.0 branch

2013-08-15 Thread Pradeep Fernando
Hi,

I will look in to this..


On Thu, Aug 15, 2013 at 8:30 PM, Pulasthi Supun pulas...@wso2.com wrote:

 Hi All

 I am getting the following error when building the products in the 4.2.0
 branch.

 Installing org.wso2.carbon.coordination.core.feature.group 4.2.0.
 Installing org.wso2.carbon.datasource.server.feature.group 4.2.0.
 Installation failed.
 An error occurred while configuring the installed items
  session context was:(profile=default,
 phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, operand=null
 -- [R]org.jaggeryjs.server.feature.group 0.9.0.07262013,
 action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CopyAction).
  I/O Error while copying
 /home/pulasthi/work/wso2/carbon/4.2.0/platform/products/greg/4.6.0/modules/p2-profile-gen/target/wso2carbon-core-4.2.0/repository/components/../features/org.jaggeryjs.server_0.9.0.07262013/modules
 - see details.
 *Caused by:  java.io.IOException: Source: 
 /home/pulasthi/work/wso2/carbon/4.2.0/platform/products/greg/4.6.0/modules/p2-profile-gen/target/wso2carbon-core-4.2.0/repository/components/../features/org.jaggeryjs.server_0.9.0.07262013/modulesdoes
 not exists*
 Application failed, log file location:
 /home/pulasthi/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1376578534405.log

 This is a blocker for release work please advice.

 Regards,
 Pulasthi


 --
 --
 Pulasthi Supun
 Software Engineer; WSO2 Inc.; http://wso2.com,
 Email: pulas...@wso2.com
 Mobile: +94 (71) 9258281
 Blog : http://pulasthisupun.blogspot.com/
 Git hub profile: https://github.com/pulasthi




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


[Dev] Jaggery features fail on branch

2013-08-15 Thread Pradeep Fernando
[ERROR] Failed to execute goal on project org.jaggeryjs.server.feature:
Could not resolve dependencies for project
org.jaggeryjs:org.jaggeryjs.server.feature:pom:0.9.0-07262013: The
following artifacts could not be resolved:
org.wso2.carbon:org.wso2.carbon.registry.ws.client:jar:4.2.0-SNAPSHOT,
org.wso2.carbon:org.wso2.carbon.ndatasource.core:jar:4.2.0-SNAPSHOT: Could
not find artifact
org.wso2.carbon:org.wso2.carbon.registry.ws.client:jar:4.2.0-SNAPSHOT in
wso2-maven2-repository (http://dist.wso2.org/maven2/) - [Help 1]


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


Re: [Dev] Cannot build products 4.2.0 branch

2013-08-15 Thread Pradeep Fernando
This is due to wrong plugin version derivation in your build tree.

options-

-build the parent pom
 - hard code p2 plugin to 1.5.3 in p2-profile-gen


--Pradeep




On Thu, Aug 15, 2013 at 8:40 PM, Pradeep Fernando prad...@wso2.com wrote:

 Hi,

 I will look in to this..


 On Thu, Aug 15, 2013 at 8:30 PM, Pulasthi Supun pulas...@wso2.com wrote:

 Hi All

 I am getting the following error when building the products in the 4.2.0
 branch.

 Installing org.wso2.carbon.coordination.core.feature.group 4.2.0.
 Installing org.wso2.carbon.datasource.server.feature.group 4.2.0.
 Installation failed.
 An error occurred while configuring the installed items
  session context was:(profile=default,
 phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, operand=null
 -- [R]org.jaggeryjs.server.feature.group 0.9.0.07262013,
 action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CopyAction).
  I/O Error while copying
 /home/pulasthi/work/wso2/carbon/4.2.0/platform/products/greg/4.6.0/modules/p2-profile-gen/target/wso2carbon-core-4.2.0/repository/components/../features/org.jaggeryjs.server_0.9.0.07262013/modules
 - see details.
 *Caused by:  java.io.IOException: Source: 
 /home/pulasthi/work/wso2/carbon/4.2.0/platform/products/greg/4.6.0/modules/p2-profile-gen/target/wso2carbon-core-4.2.0/repository/components/../features/org.jaggeryjs.server_0.9.0.07262013/modulesdoes
 not exists*
 Application failed, log file location:
 /home/pulasthi/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1376578534405.log

 This is a blocker for release work please advice.

 Regards,
 Pulasthi


 --
 --
 Pulasthi Supun
 Software Engineer; WSO2 Inc.; http://wso2.com,
 Email: pulas...@wso2.com
 Mobile: +94 (71) 9258281
 Blog : http://pulasthisupun.blogspot.com/
 Git hub profile: https://github.com/pulasthi




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Remove jgit orbit from platform/dependencies/orbit

2013-08-15 Thread Pradeep Fernando
if no usage, go ahead and remove..

--Pradeep


On Thu, Aug 15, 2013 at 11:03 PM, Shameera Rathnayaka shame...@wso2.comwrote:

 Hi,

 jgit orbit bundle has wrong dependency version for jgit jar. It should be
 2.3.1-wso2v2[1] but put it as 2.3.1.wso2v2.  I am wonder how it works :),
 It seems there is no usage for this bundle. Can we remove this from
 platform/dependecies/orbit ?

 [1]
 http://maven.wso2.org/nexus/content/groups/wso2-public/org/eclipse/jgit/org.eclipse.jgit.ant/2.3.1-wso2v2/

 Thanks,
 Shameera.

 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT 
 apache.orgshame...@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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] [Branch 4.2.0-G-REG] Server startup issue.

2013-08-15 Thread Pradeep Fernando
)
  at
 org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
 at
 org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
  at
 org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
 at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
  at java.lang.Thread.run(Thread.java:662)
 Caused by: org.wso2.carbon.ndatasource.common.DataSourceException: Error
 in initializing system data sources at
 '/home/ajith/wso2/build/branches/platform/4.2.0/products/greg/4.6.0/modules/distribution/target/wso2greg-4.6.0/repository/conf/datasources/master-datasources.xml'
 - unexpected element (uri:, local:datasources-configuration). Expected
 elements are (none)
  at
 org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSource(DataSourceManager.java:185)
 at
 org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSources(DataSourceManager.java:154)
  ... 40 more
 *Caused by: javax.xml.bind.UnmarshalException: unexpected element
 (uri:, local:datasources-configuration). Expected elements are (none)
 *
 * at
 com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:648)
 *
 * at
 com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:236)
 *
 * at
 com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:231)
 *
 * at
 com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:105)
 *
 * at
 com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1051)
 *
 * at
 com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:484)
 *
 * at
 com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:465)
 *
 * at
 com.sun.xml.internal.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:60)
 *
 * at
 com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:135)
 *
 * at
 com.sun.xml.internal.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:228)
 *
 * at
 com.sun.xml.internal.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:111)
 *
 * at
 com.sun.xml.internal.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:94)
 *
 * at
 com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:308)
 *
 * at
 com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:288)
 *
 * at
 org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSource(DataSourceManager.java:175)
 *
 ... 41 more


 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350




 --
 Sameera Jayasoma,
 Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://sameera.adahas.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections

 Lean . Enterprise . Middleware




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Can we move platform/dependecies/orbit/httpcore to orbit/httpcore

2013-08-14 Thread Pradeep Fernando
Hi,

kernel/axis2-client depends on http-core. This is a blocker. can you please
move this orbit ASAP... :)

thanks
--Pradeep


On Wed, Aug 14, 2013 at 2:51 PM, Kasun Indrasiri ka...@wso2.com wrote:




 On Wed, Aug 14, 2013 at 12:08 PM, Shameera Rathnayaka 
 shame...@wso2.comwrote:

 Hi,

 As i observe platform/dependencies pom doesn't have httpcore module (but
 there is a httpcore directory in platform/dependencies) and there is a
 platform/dependecies/orbit/httpcore orbit bundle. It seems the better place
 for put this httpcore orbit is orbit/httpcore not
 platform/dependecies/orbit/httpcore . do we have any blockers for this move?

 +1. We don't need to have httpcore source locally.


 Thank,
 Shameera.
 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT 
 apache.orgshame...@apache.org
 *
 *phone:  +9471 922 1454*
 *
 *
 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 71 536 4128
 Blog : http://kasunpanorama.blogspot.com/

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Can we move platform/dependecies/orbit/httpcore to orbit/httpcore

2013-08-14 Thread Pradeep Fernando
Hi Jeewantha.

please update the orbit version located in kernel/parent

orbit.version.httpcore4.1.0-wso2v1/orbit.version.httpcore


On Wed, Aug 14, 2013 at 6:28 PM, Pradeep Fernando prad...@wso2.com wrote:

 Hi,

 kernel/axis2-client depends on http-core. This is a blocker. can you
 please move this orbit ASAP... :)

 thanks
 --Pradeep


 On Wed, Aug 14, 2013 at 2:51 PM, Kasun Indrasiri ka...@wso2.com wrote:




 On Wed, Aug 14, 2013 at 12:08 PM, Shameera Rathnayaka 
 shame...@wso2.comwrote:

 Hi,

 As i observe platform/dependencies pom doesn't have httpcore module (but
 there is a httpcore directory in platform/dependencies) and there is a
 platform/dependecies/orbit/httpcore orbit bundle. It seems the better place
 for put this httpcore orbit is orbit/httpcore not
 platform/dependecies/orbit/httpcore . do we have any blockers for this move?

 +1. We don't need to have httpcore source locally.


 Thank,
 Shameera.
 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT
 apache.org shame...@apache.org*
 *phone:  +9471 922 1454*
 *
 *
 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 71 536 4128
 Blog : http://kasunpanorama.blogspot.com/

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




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Tenant DepSync is broken in latest packs

2013-08-13 Thread Pradeep Fernando
i will have a look..


On Tue, Aug 13, 2013 at 3:57 PM, Kasun Gajasinghe kas...@wso2.com wrote:

 The second issue seems to be because of a local issue when configuring the
 wka clustering. I'm trying to re-produce the first issue.

 Thanks,
 KasunG


 On Tue, Aug 13, 2013 at 3:33 PM, Kasun Gajasinghe kas...@wso2.com wrote:

 Hi,

 Tenant Deployment Synchronizing is broken in latest packs. This issue is
 of two fold.

 1. Tenants fail to update their svn repository when a cluster message is
 received. [1] The actual issue is that although the cluster message,
 SynchronizeRepositoryRequest, has the correct tenant id, the
 ConfigurationContext object passed by worker node is the CC of super
 tenant. The cluster message receiver node is supposed to pass the correct
 ConfigurationContext to SynchronizeRepositoryRequest#execute method. It
 seems like the HazelcastClusteringAgent is not tenant aware.

 2. Manager nodes fails to send cluster message  -  The reason is
 that ClusteringAgent that is used to send the cluster message is null.
 Noticed this in local setup even for super-tenant. Seems to be intermittent
 since this is apparently working in the 9thAug QA setup.

 CarbonDeploymentSchedulerTask#sendRepositorySyncMessage
 CarbonCoreDataHolder.getInstance().getMainServerConfigContext().
 getAxisConfiguration().getClusteringAgent(); ==
 null


 https://wso2.org/jira/browse/CARBON-14346

 Thanks,
 KasunG

 --
 *Kasun Gajasinghe*
 Software Engineer;
 Development Technologies Team, WSO2 Inc.; http://wso2.com




  ,
 *email: **kasung AT spamfree wso2.com




 ** cell: **+94 (77) 678-0813*
 *linked-in: *http://lk.linkedin.com/in/gajasinghe




 *
 *
 *blog: **http://kasunbg.org* http://kasunbg.org




 *
 twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg




 *
 *




 --
 *Kasun Gajasinghe*
 Software Engineer;
 Development Technologies Team, WSO2 Inc.; http://wso2.com


  ,
 *email: **kasung AT spamfree wso2.com


 ** cell: **+94 (77) 678-0813*
 *linked-in: *http://lk.linkedin.com/in/gajasinghe


 *
 *
 *blog: **http://kasunbg.org* http://kasunbg.org


 *
 twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg


 *
 *




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Issues with datasources created under tenants - after a restart.

2013-08-11 Thread Pradeep Fernando
Hi Prabath/Sumedha,

AFAIK, we ditched the inline data-source model and moved to a centrally
defined data-source model sometime back. Aren't we going backwards with
this modification ?

If i understand it correct, now we have,

master-datasource for super-tenant
registry stored datasources for tenants
user-store DB stored datasources for user-store needs.

IMHO, this looks like a hack. What we really should do is fixing the tenant
data-source model. May be registry is not the correct place to store
datasources...




On Mon, Aug 12, 2013 at 8:43 AM, Prabath Siriwardena prab...@wso2.comwrote:

 With the patch Darshana provided - the issue is fixed now.. Datasource
 configuration is stored with userstore manager for secondary user stores...

 Thanks  regards,
 -Prabath


 On Mon, Aug 12, 2013 at 8:30 AM, Sumedha Rubasinghe sume...@wso2.comwrote:

 Prabath,
 AFAIR data sources defined in user-store configuration are not stored in
 a multi tenanted manner. Since you already have the set up running, could
 you check if the same data source can be accessed from another tenant?


 On Mon, Aug 12, 2013 at 7:36 AM, Prabath Siriwardena prab...@wso2.comwrote:

 Applied the patch at revision 180626. Thanks Darshana...!

 Regards,
 -Prabath


 On Sun, Aug 11, 2013 at 9:38 PM, Darshana Gunawardana darsh...@wso2.com
  wrote:

 Hi,

 Asela, PrabathA and myself had offline chat regarding [1] which has the
 same root cause for this.

 The problem is that datasources created using UI which persists as
 registry resources and we need to access them user.core startup. But
 registry is not available in that time. With these constraints, proposed
 solution was defining data-source configurations in line with user-store
 configurations.

 [1] - https://wso2.org/jira/browse/IDENTITY-1526

 Thanks,


  On Sun, Aug 11, 2013 at 8:32 PM, Prabath Siriwardena prab...@wso2.com
  wrote:

  Created a datasource pointing to a mysql database - please see the
 configuration attached.

 Then created a secondary UserstoreManager from the UI - under the same
 tenant - pointing to the above datasource.

 All worked fine..

 Then restarted.. and getting the following error

 Caused by: javax.naming.NameNotFoundException: Name [jdbc/mysql] is
 not bound in this Context. Unable to find [jdbc].
  at org.apache.naming.NamingContext.lookup(NamingContext.java:820)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:168)
  at
 org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.lookup(CarbonContextDataHolder.java:916)
 at javax.naming.InitialContext.lookup(InitialContext.java:392)
  at javax.naming.InitialContext.doLookup(InitialContext.java:265)
 at
 org.wso2.carbon.user.core.util.DatabaseUtil.lookupDataSource(DatabaseUtil.java:91)

 Any thoughts ?


 --
 Thanks  Regards,
 Prabath

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://RampartFAQ.com

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




 --
 Regards,

 *
 Darshana Gunawardana
 *Software Engineer
 WSO2 Inc.; http://wso2.com*
 E-mail: darsh...@wso2.com
 **Mobile: +94718566859
 *Lean . Enterprise . Middleware




 --
 Thanks  Regards,
 Prabath

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://RampartFAQ.com




 --
 /sumedha
 b :  bit.ly/sumedha




 --
 Thanks  Regards,
 Prabath

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://RampartFAQ.com

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Issues with datasources created under tenants - after a restart.

2013-08-11 Thread Pradeep Fernando
Hi,

let me re-iterate the problem, i may be wrong here...

- when we create secondary user-stores for tenants those get persisted in
the file system.
- They get deployed via deployers during server-startup/hot deployment
- for user-core initialization we only need data-sources needed by the
user-mgt.xml
- Axis2Deployers get engaged during carbon-core initialization..
- by that time we have registry fully initialized.

so why this problem. Please help me to understand..

thanks.


On Mon, Aug 12, 2013 at 10:26 AM, Sumedha Rubasinghe sume...@wso2.comwrote:



 On Mon, Aug 12, 2013 at 10:10 AM, Pradeep Fernando prad...@wso2.comwrote:

 Hi Prabath/Sumedha,

 AFAIK, we ditched the inline data-source model and moved to a centrally
 defined data-source model sometime back. Aren't we going backwards with
 this modification ?

 If i understand it correct, now we have,

 master-datasource for super-tenant
 registry stored datasources for tenants
 user-store DB stored datasources for user-store needs.

 IMHO, this looks like a hack. What we really should do is fixing the
 tenant data-source model. May be registry is not the correct place to store
 datasources...


 Yes.. This is a hack. So far G-Reg is our de-facto location for storing
 configurations. The problem here is User core starts up before Registry
 does. Reverse order is not possible.
 How about updating tenant specific datasources.properties first (at the
 point of creating a datasource)  syncing with G-Reg later?







 On Mon, Aug 12, 2013 at 8:43 AM, Prabath Siriwardena prab...@wso2.comwrote:

 With the patch Darshana provided - the issue is fixed now.. Datasource
 configuration is stored with userstore manager for secondary user stores...

 Thanks  regards,
 -Prabath


 On Mon, Aug 12, 2013 at 8:30 AM, Sumedha Rubasinghe sume...@wso2.comwrote:

 Prabath,
 AFAIR data sources defined in user-store configuration are not stored
 in a multi tenanted manner. Since you already have the set up running,
 could you check if the same data source can be accessed from another
 tenant?


 On Mon, Aug 12, 2013 at 7:36 AM, Prabath Siriwardena 
 prab...@wso2.comwrote:

 Applied the patch at revision 180626. Thanks Darshana...!

 Regards,
 -Prabath


 On Sun, Aug 11, 2013 at 9:38 PM, Darshana Gunawardana 
 darsh...@wso2.com wrote:

 Hi,

 Asela, PrabathA and myself had offline chat regarding [1] which has
 the same root cause for this.

 The problem is that datasources created using UI which persists as
 registry resources and we need to access them user.core startup. But
 registry is not available in that time. With these constraints, proposed
 solution was defining data-source configurations in line with user-store
 configurations.

 [1] - https://wso2.org/jira/browse/IDENTITY-1526

 Thanks,


  On Sun, Aug 11, 2013 at 8:32 PM, Prabath Siriwardena 
 prab...@wso2.com wrote:

  Created a datasource pointing to a mysql database - please see the
 configuration attached.

 Then created a secondary UserstoreManager from the UI - under the
 same tenant - pointing to the above datasource.

 All worked fine..

 Then restarted.. and getting the following error

 Caused by: javax.naming.NameNotFoundException: Name [jdbc/mysql] is
 not bound in this Context. Unable to find [jdbc].
  at org.apache.naming.NamingContext.lookup(NamingContext.java:820)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:168)
  at
 org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.lookup(CarbonContextDataHolder.java:916)
 at javax.naming.InitialContext.lookup(InitialContext.java:392)
  at javax.naming.InitialContext.doLookup(InitialContext.java:265)
 at
 org.wso2.carbon.user.core.util.DatabaseUtil.lookupDataSource(DatabaseUtil.java:91)

 Any thoughts ?


 --
 Thanks  Regards,
 Prabath

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://RampartFAQ.com

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




 --
 Regards,

 *
 Darshana Gunawardana
 *Software Engineer
 WSO2 Inc.; http://wso2.com*
 E-mail: darsh...@wso2.com
 **Mobile: +94718566859
 *Lean . Enterprise . Middleware




 --
 Thanks  Regards,
 Prabath

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://RampartFAQ.com




 --
 /sumedha
 b :  bit.ly/sumedha




 --
 Thanks  Regards,
 Prabath

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://RampartFAQ.com

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




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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




 --
 /sumedha
 b :  bit.ly/sumedha




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

blog: http://pradeepfernando.blogspot.com
m: +94776603662
___
Dev mailing list
Dev@wso2.org
http://wso2

Re: [Dev] [BLOCKED] WSO2AS pack provided on Aug-07th not working on windows

2013-08-08 Thread Pradeep Fernando
Hi,

Im looking in to this issue..


On Thu, Aug 8, 2013 at 10:51 AM, Thayalan thaya...@wso2.com wrote:

 Hi All,

 None of the jsp pages loading in Windows 7 from the Management Console UI
 with the latest pack provided on Aug 7th. 
 WSAS-1437https://wso2.org/jira/browse/WSAS-1437


 Regards,
 Associate Technical Lead - QA
 Mob: +94(0)777872485




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Logging Tomcat logs in App-server startup

2013-08-07 Thread Pradeep Fernando
} -  Deploying Axis2
 service: xkms {super-tenant}
 [2013-08-08 07:32:17,808]  INFO
 {org.apache.axis2.deployment.DeploymentEngine} -  Deploying Web service:
 xkms -
 [2013-08-08 07:32:17,850]  INFO
 {org.wso2.carbon.core.init.CarbonServerManager} -  Repository   :
 /home/evanthika/WSO2/CARBON/CARBON-4.2.0/7thAug/wso2as-5.2.0-SNAPSHOT/repository/deployment/server/
 [2013-08-08 07:32:17,868]  INFO
 {org.wso2.carbon.bam.webapp.stat.publisher.internal.WebappStatisticsServiceComponent}
 -  BAM Web Apps Statistics Publishing is disabled
 [2013-08-08 07:32:17,894]  INFO
 {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} -
  Permission cache updated for tenant -1234
 [2013-08-08 07:32:18,149]  INFO
 {org.wso2.carbon.bam.service.data.publisher.internal.StatisticsServiceComponent}
 -  BAM Service Stat Publishing is disabled
 [2013-08-08 07:32:18,352]  INFO
 {org.wso2.carbon.core.transports.http.HttpsTransportListener} -  HTTPS port
   : 9443
 [2013-08-08 07:32:18,352]  INFO
 {org.wso2.carbon.core.transports.http.HttpTransportListener} -  HTTP port
  : 9763
 Aug 08, 2013 7:32:18 AM org.apache.coyote.AbstractProtocol start
 INFO: Starting ProtocolHandler [http-nio-9763]
 Aug 08, 2013 7:32:18 AM org.apache.tomcat.util.net.NioSelectorPool
 getSharedSelector
 INFO: Using a shared selector for servlet write/read
 Aug 08, 2013 7:32:18 AM org.apache.coyote.AbstractProtocol start
 INFO: Starting ProtocolHandler [http-nio-9443]
 Aug 08, 2013 7:32:18 AM org.apache.tomcat.util.net.NioSelectorPool
 getSharedSelector
 INFO: Using a shared selector for servlet write/read
 [2013-08-08 07:32:18,735]  INFO
 {org.wso2.carbon.core.init.JMXServerManager} -  JMX Service URL  :
 service:jmx:rmi://localhost:1/jndi/rmi://localhost:/jmxrmi
 [2013-08-08 07:32:18,736]  INFO
 {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Server
   :  Application Server-5.2.0
 [2013-08-08 07:32:18,737]  INFO
 {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  WSO2
 Carbon started in 19 sec


 Regards,
 Evanthika Amarasiri
 Senior Technical Lead - Quality Assurance
 Mobile: +94773125935
 *
 *
 wso2.com Lean Enterprise Middleware

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



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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


[Dev] Please fix thiis

2013-08-06 Thread Pradeep Fernando
The project org.wso2.carbon:appfactory:1.1.0-SNAPSHOT
(/home/pradeep/checkout/carbon-trunk/platform/components/appfac/pom.xml)
has 1 error
[ERROR] Child module
/home/pradeep/checkout/carbon-trunk/platform/components/appfac/org.wso2.carbon.appfactory.tenant.build.integration/pom.xml
of /home/pradeep/checkout/carbon-trunk/platform/components/appfac/pom.xml
does not exist

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


[Dev] AS worker profile is not correct..

2013-08-06 Thread Pradeep Fernando
Hi,

it has some of the UI bundles, including carbon.ui bundles. Please fix.

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


Re: [Dev] We may need to reimpliment HTTP session replication on top of Hazelcast

2013-08-05 Thread Pradeep Fernando
Hi,

I looked in the issue. we do few things in our session replication code..

- set our own simpleTCPCluster implementaiton  (to set the sessionManager)
- We have extended the default tomcat sessionManager.
- There we are making use of CarbonClusteringAgent to send messages ,
instead of using tcpCluster by tomcat default session manager.

AFAIU, the code should work, even with new clusteringManager. However
functionality seems to be broken. :)

As per my current understanding, we dont need a rewrite
Kishanthan, please add if my understanding is wrong..

thanks,
--Pradeep


On Thu, Aug 1, 2013 at 8:26 PM, Afkham Azeez az...@wso2.com wrote:

 Looks like the old implementation directly uses Tomcat+Tribes. Looks like
 we would need to rewrite it.

 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Registry based deployment synchronization fails

2013-08-02 Thread Pradeep Fernando
Hi,

we have to set the proper CC during sync up. This works fine with svn
depsync since the execution path does not include cache retrieval.

With registry based depsync in place, the error surfaces. (thread not
having tenant info).

if all the tenant artifacts are maintained in super-tenant registry space,
we can use super.tenant domain. (just an idea..)

Eranda please have a look..

--Pradeep




On Fri, Aug 2, 2013 at 3:51 PM, Evanthika Amarasiri evanth...@wso2.comwrote:

 Hi,

 Registry based deployment synchronization fails. Observed the following
 exception when artifacts are being synchronized at worker nodes.


 
 [2013-08-02 15:03:44,088]  INFO
 {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusterMessageListener}
 -  Received ClusteringMessage: SynchronizeRepositoryRequest{tenantId=-1234,
 tenantDomain='carbon.super', messageId=d4389bb6-16fb-4530-a6d2-48a5c2eb5765}
 [2013-08-02 15:03:44,088]  INFO
 {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest} -  Received
 [SynchronizeRepositoryRequest{tenantId=-1234, tenantDomain='carbon.super',
 messageId=d4389bb6-16fb-4530-a6d2-48a5c2eb5765}]
 [2013-08-02 15:03:44,088]  INFO
 {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest} -  Going to
 synchronize artifacts...
 [2013-08-02 15:03:44,090] ERROR
 {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest} -
  Repository update failed for tenant -1234
 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.registry.core.utils.RegistryUtils.getCacheManager(RegistryUtils.java:289)
 at
 org.wso2.carbon.registry.core.utils.RegistryUtils.getResourceCache(RegistryUtils.java:272)
  at
 org.wso2.carbon.registry.core.caching.CacheBackedRegistry.getCache(CacheBackedRegistry.java:62)
 at
 org.wso2.carbon.registry.core.caching.CacheBackedRegistry.resourceExists(CacheBackedRegistry.java:246)
  at
 org.wso2.carbon.registry.core.session.UserRegistry.resourceExists(UserRegistry.java:629)
 at
 org.wso2.carbon.deployment.synchronizer.internal.repository.CarbonRepositoryUtils.getDeploymentSyncConfigurationFromRegistry(CarbonRepositoryUtils.java:262)
  at
 org.wso2.carbon.deployment.synchronizer.internal.repository.CarbonRepositoryUtils.getActiveSynchronizerConfiguration(CarbonRepositoryUtils.java:108)
  at
 org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerServiceImpl.update(DeploymentSynchronizerServiceImpl.java:60)
 at
 org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest.updateDeploymentRepository(SynchronizeRepositoryRequest.java:101)
  at
 org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest.execute(SynchronizeRepositoryRequest.java:68)
 at
 org.wso2.carbon.core.clustering.hazelcast.HazelcastClusterMessageListener.onMessage(HazelcastClusterMessageListener.java:54)
  at
 com.hazelcast.impl.ListenerManager.callListener(ListenerManager.java:419)
 at
 com.hazelcast.impl.ListenerManager.callListeners(ListenerManager.java:334)
  at com.hazelcast.impl.BaseManager$2.run(BaseManager.java:1392)
 at
 com.hazelcast.impl.executor.ParallelExecutorService$ParallelExecutorImpl$ExecutionSegment.run(ParallelExecutorService.java:212)
  at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
  at java.lang.Thread.run(Thread.java:722)
 at
 com.hazelcast.impl.ExecutorThreadFactory$1.run(ExecutorThreadFactory.java:45)


 [1] - https://wso2.org/jira/browse/CARBON-14308


 Evanthika Amarasiri
 Senior Technical Lead - Quality Assurance
 Mobile: +94773125935
 *
 *
 wso2.com Lean Enterprise Middleware


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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Trunk Build Faillure - requires 'package javax.xml.transform 0.0.0' but it could not be found

2013-08-02 Thread Pradeep Fernando
Carbon kernel now has multiple profile support. The default profile is
called 'default'.
Earlier it used to be 'WSO2Carbon'

changing the above in p2-profile gen, should fix your isuue. I think we did
the change for trunk/products
may be i have missed one..

thanks,
--Pradeep


On Fri, Aug 2, 2013 at 12:48 PM, Dimuthu Leelarathne dimut...@wso2.comwrote:

 Hi,

 Has anyone got this? If so how did you manager overcome it?

 Installation failed.
 Cannot complete the install because one or more required items could not
 be found.
  Software being installed: WSO2 Carbon - Logging Management Feature
 4.2.0.SNAPSHOT (org.wso2.carbon.logging.mgt.feature.group 4.2.0.SNAPSHOT)
  Missing requirement: axiom 1.2.11.wso2v4 (axiom 1.2.11.wso2v4) requires
 'package javax.xml.transform 0.0.0' but it could not be found
  Cannot satisfy dependency:
   From: WSO2 Carbon - Carbon Common Feature 4.2.0.SNAPSHOT
 (org.wso2.carbon.core.common.feature.group 4.2.0.SNAPSHOT)
   To: axiom [1.2.11.wso2v4]

 And so the dependency failures go on .

 thanks,
 dimuthu

 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com
 Mobile : 0773661935

 Lean . Enterprise . Middleware

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Did we changed caching packages?

2013-07-26 Thread Pradeep Fernando
Hi Miyuru,

I did not change the commons/caching code. Created a caching component
instead. So this change should not break apache synapse level.

however this might break cache mediator. (I missed that refactoring it
seems).

tnanaks


On Fri, Jul 26, 2013 at 11:44 AM, Miyuru Wanninayaka miy...@wso2.comwrote:

 Note that even synapse code in apache will even break as we removed
 dependency/commons/caching


 On Fri, Jul 26, 2013 at 11:15 AM, Miyuru Wanninayaka miy...@wso2.comwrote:

 Hi Predeep ,

 Seems trunk synapse cache mediator compilation also fails once pointed to
 trunk caching component because all methods in CacheManager is commented

 What are the alternative methods which synapse can call in [1]

 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/dependencies/synapse/2.1.1-wso2v8/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java


 On Fri, Jul 26, 2013 at 10:39 AM, Miyuru Wanninayaka miy...@wso2.comwrote:

 Hi all,

 $subject
 I'm getting following when message hitting ESB

 [2013-07-26 10:36:26,133] ERROR - NativeWorkerPool Uncaught exception
 java.lang.NoClassDefFoundError: org/wso2/caching/CacheConfiguration
 at
 org.apache.synapse.transport.passthru.util.CacheMessageBuilderDispatchandler.invoke(CacheMessageBuilderDispatchandler.java:52)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:426)
 at
 org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(DynamicAxisOperation.java:185)
 at
 org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:167)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:481)
 at
 org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:57)
 at
 org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:342)
 at
 org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:329)
 at
 org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:59)
 at
 org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:183)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at
 org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:404)
 at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:184)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 *Caused by: java.lang.ClassNotFoundException:
 org.wso2.caching.CacheConfiguration*
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
 at
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)


 Thanks
 Miyuru
 --
 Miyuru Wanninayaka
 Technical Lead
 WSO2 Inc. : http://wso2.com

 Mobile : +94 77 209 9788
 Blog : http://miyurudw.blogspot.com
 Flickr : http://www.flickr.com/photos/miyuru_daminda




 --
 Miyuru Wanninayaka
 Technical Lead
 WSO2 Inc. : http://wso2.com

 Mobile : +94 77 209 9788
 Blog : http://miyurudw.blogspot.com
 Flickr : http://www.flickr.com/photos/miyuru_daminda




 --
 Miyuru Wanninayaka
 Technical Lead
 WSO2 Inc. : http://wso2.com

 Mobile : +94 77 209 9788
 Blog : http://miyurudw.blogspot.com
 Flickr : http://www.flickr.com/photos/miyuru_daminda




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


[Dev] ELB startup errors.

2013-07-25 Thread Pradeep Fernando
Hi,

I fixed the caching related issue.  Now getting the below error while
startup. Looking in to it.

[2013-07-25 13:14:56,270] FATAL - PassThroughHttpSSLListener Exception
encountered in the HTTPS Listener. No more connections will be accepted by
this transport
java.lang.IllegalArgumentException: Event dispatcher may not be null
at
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:330)
at
org.apache.synapse.transport.passthru.PassThroughHttpListener$2.run(PassThroughHttpListener.java:220)
at java.lang.Thread.run(Thread.java:662)
[2013-07-25 13:14:56,271]  INFO - PassThroughHttpSSLListener HTTPS Listener
shutdown.
[2013-07-25 13:14:56,270]  INFO - ListenerManager
java.lang.NullPointerException
at
org.apache.synapse.transport.passthru.PassThroughHttpListener.startEndpoints(PassThroughHttpListener.java:239)
at
org.apache.synapse.transport.passthru.PassThroughHttpListener.start(PassThroughHttpListener.java:230)
at
org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:168)
at
org.apache.axis2.engine.ListenerManager.startSystem(ListenerManager.java:186)
at
org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeInitialization(StartupFinalizerServiceComponent.java:166)
at
org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.serviceChanged(StartupFinalizerServiceComponent.java:284)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)

-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] ELB startup errors.

2013-07-25 Thread Pradeep Fernando
looks like theres a CNF.

@Miyuru: any recent refactoring.. ?

java.lang.ClassNotFoundException:
org.wso2.carbon.transport.nhttp.api.PassThroughNHttpGetProcessor
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)


On Thu, Jul 25, 2013 at 1:19 PM, Pradeep Fernando prad...@wso2.com wrote:

 Hi,

 I fixed the caching related issue.  Now getting the below error while
 startup. Looking in to it.

 [2013-07-25 13:14:56,270] FATAL - PassThroughHttpSSLListener Exception
 encountered in the HTTPS Listener. No more connections will be accepted by
 this transport
 java.lang.IllegalArgumentException: Event dispatcher may not be null
 at
 org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:330)
 at
 org.apache.synapse.transport.passthru.PassThroughHttpListener$2.run(PassThroughHttpListener.java:220)
 at java.lang.Thread.run(Thread.java:662)
 [2013-07-25 13:14:56,271]  INFO - PassThroughHttpSSLListener HTTPS
 Listener shutdown.
 [2013-07-25 13:14:56,270]  INFO - ListenerManager
 java.lang.NullPointerException
 at
 org.apache.synapse.transport.passthru.PassThroughHttpListener.startEndpoints(PassThroughHttpListener.java:239)
 at
 org.apache.synapse.transport.passthru.PassThroughHttpListener.start(PassThroughHttpListener.java:230)
 at
 org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:168)
 at
 org.apache.axis2.engine.ListenerManager.startSystem(ListenerManager.java:186)
 at
 org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeInitialization(StartupFinalizerServiceComponent.java:166)
 at
 org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.serviceChanged(StartupFinalizerServiceComponent.java:284)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)

 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] ELB startup errors.

2013-07-25 Thread Pradeep Fernando
we are using that as per axis2.xml

 transportReceiver name=http
class=org.apache.synapse.transport.passthru.PassThroughHttpListener
  parameter name=port8280/parameter
  parameter name=non-blocking true/parameter
  parameter name=httpGetProcessor
locked=falseorg.wso2.carbon.transport.nhttp.api.PassThroughNHttpGetProcessor/parameter
   /transportReceiver
   transportReceiver name=https
class=org.apache.synapse.transport.passthru.PassThroughHttpSSLListener
parameter name=port locked=false8243/parameter
parameter name=non-blocking locked=falsetrue/parameter



On Thu, Jul 25, 2013 at 1:38 PM, Miyuru Wanninayaka miy...@wso2.com wrote:

 This class is located @
 components/transport-mgt/org.wso2.carbon.transport.nhttp

 Are we packing that component in ELB?


 On Thu, Jul 25, 2013 at 1:29 PM, Pradeep Fernando prad...@wso2.comwrote:

 looks like theres a CNF.

 @Miyuru: any recent refactoring.. ?

 java.lang.ClassNotFoundException:
 org.wso2.carbon.transport.nhttp.api.PassThroughNHttpGetProcessor
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
 at
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
 at java.lang.Class.forName0(Native Method)


 On Thu, Jul 25, 2013 at 1:19 PM, Pradeep Fernando prad...@wso2.comwrote:

 Hi,

 I fixed the caching related issue.  Now getting the below error while
 startup. Looking in to it.

 [2013-07-25 13:14:56,270] FATAL - PassThroughHttpSSLListener Exception
 encountered in the HTTPS Listener. No more connections will be accepted by
 this transport
 java.lang.IllegalArgumentException: Event dispatcher may not be null
 at
 org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:330)
 at
 org.apache.synapse.transport.passthru.PassThroughHttpListener$2.run(PassThroughHttpListener.java:220)
 at java.lang.Thread.run(Thread.java:662)
 [2013-07-25 13:14:56,271]  INFO - PassThroughHttpSSLListener HTTPS
 Listener shutdown.
 [2013-07-25 13:14:56,270]  INFO - ListenerManager
 java.lang.NullPointerException
 at
 org.apache.synapse.transport.passthru.PassThroughHttpListener.startEndpoints(PassThroughHttpListener.java:239)
 at
 org.apache.synapse.transport.passthru.PassThroughHttpListener.start(PassThroughHttpListener.java:230)
 at
 org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:168)
 at
 org.apache.axis2.engine.ListenerManager.startSystem(ListenerManager.java:186)
 at
 org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeInitialization(StartupFinalizerServiceComponent.java:166)
 at
 org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.serviceChanged(StartupFinalizerServiceComponent.java:284)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)

 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

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




 --
 Miyuru Wanninayaka

 Technical Lead
 WSO2 Inc. : http://wso2.com

 Mobile : +94 77 209 9788
 Blog : http://miyurudw.blogspot.com
 Flickr : http://www.flickr.com/photos/miyuru_daminda




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


[Dev] Registry caching issue observed while ELB startup..

2013-07-25 Thread Pradeep Fernando
Hi Senaka/Ajith,

FYI,

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.registry.core.utils.RegistryUtils.getCacheManager(RegistryUtils.java:289)
at
org.wso2.carbon.registry.core.utils.RegistryUtils.getResourcePathCache(RegistryUtils.java:283)
at
org.wso2.carbon.registry.core.caching.PathCache.getCache(PathCache.java:35)
at
org.wso2.carbon.registry.core.jdbc.dao.JDBCPathCache.getPathID(JDBCPathCache.java:298)
at
org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.getResourceID(JDBCResourceDAO.java:67)
at
org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.resourceExists(JDBCResourceDAO.java:151)
at
org.wso2.carbon.registry.core.utils.RegistryUtils.systemResourceShouldBeAdded(RegistryUtils.java:630)
at
org.wso2.carbon.registry.core.session.UserRegistry.addRootCollection(UserRegistry.java:374)
at
org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:299)
at
org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:226)
at
org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:205)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getUserRegistry(EmbeddedRegistryService.java:427)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getSystemRegistry(EmbeddedRegistryService.java:292)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getLocalRepository(EmbeddedRegistryService.java:481)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getLocalRepository(EmbeddedRegistryService.java:477)
at
org.wso2.carbon.core.CarbonAxisConfigurator.populateAxisConfiguration(CarbonAxisConfigurator.java:294)
at
org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfiguration(CarbonAxisConfigurator.java:188)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
at
org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65)
at
org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:398)
at
org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:290)
at
org.wso2.carbon.core.init.OSGiAxis2ServicesListener.bundleChanged(OSGiAxis2ServicesListener.java:84)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
[2013-07-25 09:10:39,540] ERROR - CarbonAxisConfigurator Error occurred
while populating the CarbonContext on the AxisConfiguration
org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to add
the root collection to the coreRegistry.
at
org.wso2.carbon.registry.core.session.UserRegistry.addRootCollection(UserRegistry.java:399)
at
org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:299)
at
org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:226)
at
org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:205)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getUserRegistry(EmbeddedRegistryService.java:427)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getSystemRegistry(EmbeddedRegistryService.java:292)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getLocalRepository(EmbeddedRegistryService.java:481)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getLocalRepository(EmbeddedRegistryService.java:477)
at
org.wso2.carbon.core.CarbonAxisConfigurator.populateAxisConfiguration(CarbonAxisConfigurator.java:294)
at
org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfiguration(CarbonAxisConfigurator.java:188)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
at
org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65)
at
org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:398)
at
org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:290)
at
org.wso2.carbon.core.init.OSGiAxis2ServicesListener.bundleChanged(OSGiAxis2ServicesListener.java:84)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: 

Re: [Dev] Registry caching issue observed while ELB startup..

2013-07-25 Thread Pradeep Fernando
Hi,

Thanks, will look in to this..


On Thu, Jul 25, 2013 at 2:58 PM, Ajith Vitharana aji...@wso2.com wrote:

 AFAIK , The code accessing the registry should set the domain/id.

 Thanks
 Ajith.


 On Thu, Jul 25, 2013 at 2:54 PM, Senaka Fernando sen...@wso2.com wrote:

 Hi all,

 Should the registry set the tenant domain in this case, or the code
 accessing the registry set the tenant domain? AFAIU, its the code accessing
 the registry which needs to ensure that this is done isn't it? In other
 words, whoever responsible for creating this thread should be doing this
 isn't it?

 Thanks,
 Senaka.


 On Thu, Jul 25, 2013 at 2:43 PM, Pradeep Fernando prad...@wso2.comwrote:

 Hi Senaka/Ajith,

 FYI,

 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.registry.core.utils.RegistryUtils.getCacheManager(RegistryUtils.java:289)
 at
 org.wso2.carbon.registry.core.utils.RegistryUtils.getResourcePathCache(RegistryUtils.java:283)
 at
 org.wso2.carbon.registry.core.caching.PathCache.getCache(PathCache.java:35)
 at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCPathCache.getPathID(JDBCPathCache.java:298)
 at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.getResourceID(JDBCResourceDAO.java:67)
 at
 org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.resourceExists(JDBCResourceDAO.java:151)
 at
 org.wso2.carbon.registry.core.utils.RegistryUtils.systemResourceShouldBeAdded(RegistryUtils.java:630)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.addRootCollection(UserRegistry.java:374)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:299)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:226)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:205)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getUserRegistry(EmbeddedRegistryService.java:427)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getSystemRegistry(EmbeddedRegistryService.java:292)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getLocalRepository(EmbeddedRegistryService.java:481)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getLocalRepository(EmbeddedRegistryService.java:477)
 at
 org.wso2.carbon.core.CarbonAxisConfigurator.populateAxisConfiguration(CarbonAxisConfigurator.java:294)
 at
 org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfiguration(CarbonAxisConfigurator.java:188)
 at
 org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
 at
 org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65)
 at
 org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:398)
 at
 org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:290)
 at
 org.wso2.carbon.core.init.OSGiAxis2ServicesListener.bundleChanged(OSGiAxis2ServicesListener.java:84)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
 [2013-07-25 09:10:39,540] ERROR - CarbonAxisConfigurator Error occurred
 while populating the CarbonContext on the AxisConfiguration
 org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to
 add the root collection to the coreRegistry.
 at
 org.wso2.carbon.registry.core.session.UserRegistry.addRootCollection(UserRegistry.java:399)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:299)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:226)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:205)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getUserRegistry(EmbeddedRegistryService.java:427)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getSystemRegistry(EmbeddedRegistryService.java:292)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getLocalRepository(EmbeddedRegistryService.java:481)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getLocalRepository(EmbeddedRegistryService.java:477)
 at
 org.wso2.carbon.core.CarbonAxisConfigurator.populateAxisConfiguration(CarbonAxisConfigurator.java:294)
 at
 org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfiguration(CarbonAxisConfigurator.java:188)
 at
 org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64

[Dev] why we added juli-log manager to kernel dependencies ?

2013-07-24 Thread Pradeep Fernando
Hi KasunG,

Why $subject ?


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


Re: [Dev] Shall we remove _ (underscore) suffix component from kernel trunk

2013-07-23 Thread Pradeep Fernando
Hi Shameera,

Please create a tag of current kernel trunk in the scratch area (so that
prabath can continue work..) and remove the components with '_' from the
trunk.

--Pradeep


On Tue, Jul 23, 2013 at 12:45 PM, Shameera Rathnayaka shame...@wso2.comwrote:

 Hi Devs,

 Kernel trunk has 9 components with underscore suffix with it and those
 have nothing to do with kernel build.This will be a problem when cut the
 4.2.0 branch. Shall we remove these components from kernel trunk?

 @Prabath, have you copied these implementations to a scratch area. If not
 please do it.

 T
 hanks,
 Shameera.

 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT 
 apache.orgshame...@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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Jaggery test failure in AS

2013-07-23 Thread Pradeep Fernando
 by: org.mozilla.javascript.WrappedException: Wrapped
 org.jaggeryjs.scriptengine.exceptions.ScriptException: A module cannot be
 found with the specified name : ws (/testapp//wsstub.jag#2)
 at
 org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1654)
 at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:175)
 at
 org.mozilla.javascript.FunctionObject.call(FunctionObject.java:411)
 at
 org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
 at org.jaggeryjs.rhino.testapp.c0._c0(/testapp//wsstub.jag:2)
 at org.jaggeryjs.rhino.testapp.c0.call(/testapp//wsstub.jag)
 at
 org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401)
 at
 org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3003)
 at org.jaggeryjs.rhino.testapp.c0.call(/testapp//wsstub.jag)
 at org.jaggeryjs.rhino.testapp.c0.exec(/testapp//wsstub.jag)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:441)
 ... 29 more
 Caused by: org.jaggeryjs.scriptengine.exceptions.ScriptException: A
 module cannot be found with the specified name : ws
 at
 org.jaggeryjs.jaggery.core.manager.CommonManager.require(CommonManager.java:226)
 at
 org.jaggeryjs.jaggery.core.manager.WebAppManager.require(WebAppManager.java:218)
 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.mozilla.javascript.MemberBox.invoke(MemberBox.java:160)

 Thanks

 Geeth


 *G. K. S. Munasinghe
 *
 *Software Engineer,*
 *WSO2, Inc. http://wso2.com *
 *lean.enterprise.middleware.*
 *
 *
 email: ge...@wso2.com
 phone:(+94) 777911226




 --
 *Madhuka* Udantha
 Senior Software Engineer
 Development Technologies
 WSO2 Inc. : http://wso2.com

 *Mobile*: +94774066336
 *Blog*: http://madhukaudantha.blogspot.com/

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




 --
 Piyum Fernando
 Software Engineer

 Mobile: +94 77 22 93 880
 Home:  +94 31 22 75 715




 --
 Piyum Fernando
 Software Engineer

 Mobile: +94 77 22 93 880
 Home:  +94 31 22 75 715




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Response Caching/ throttling still in developer testing phase.

2013-07-23 Thread Pradeep Fernando
Hi,

you can proceed with testing. Testing should include (but not limited to)
below scenarios,

standalone (super tenant) with caching and throttling
multiple tenants in a single node
clustered super tenant mode
clustered tenant mode.

throttling should be tested for service and operation level.



@Krishantha,
@AS team

do we have auto tests for caching and throttling ?

--Pradeep




On Tue, Jul 23, 2013 at 10:29 AM, Evanthika Amarasiri evanth...@wso2.comwrote:

 Noted.

 - Evanthika


 On Tue, Jul 23, 2013 at 10:00 AM, Pradeep Fernando prad...@wso2.comwrote:

 Hi,

 Please note the $subject. I'm still working on them.

 --Pradeep





-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


[Dev] inconsistent access denied responses for super.tenant/tenant use cases while throttling

2013-07-23 Thread Pradeep Fernando
Hi devs,

I noticed the $subject. Please note the additional exception tag during
tenant access throttling. Is this a bug or by design ?

thanks,
--Pradeep

Below response is for super tenant access throttling..

soapenv:Envelope xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;
   soapenv:Body
  soapenv:Fault
 soapenv:Code
soapenv:Valuesoapenv:Receiver/soapenv:Value
 /soapenv:Code
 soapenv:Reason
soapenv:Text xml:lang=en-USAccess deny for a caller with IP
192.168.131.1  : Reason : You cannot access this service since you have
exceeded the allocated quota./soapenv:Text
 /soapenv:Reason
 soapenv:Detail/
  /soapenv:Fault
   /soapenv:Body
/soapenv:Envelope


Below is for tenant access throttling...


soapenv:Envelope xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;
   soapenv:Body
  soapenv:Fault
 soapenv:Code
soapenv:Valuesoapenv:Receiver/soapenv:Value
 /soapenv:Code
 soapenv:Reason
soapenv:Text xml:lang=en-USAccess deny for a caller with IP
192.168.131.1  : Reason : You cannot access this service since you have
exceeded the allocated quota./soapenv:Text
 /soapenv:Reason
 soapenv:Detail
Exceptionorg.apache.axis2.AxisFault:  Access deny for a
caller with IP 192.168.131.1  : Reason : You cannot access this service
since you have exceeded the allocated quota.
at
org.wso2.throttle.module.handler.ThrottleHandler.process(ThrottleHandler.java:317)
at
org.wso2.throttle.module.handler.ThrottleHandler.invoke(ThrottleHandler.java:540)
at
org.wso2.throttle.module.handler.ServiceLevelThrottleHandler.invoke(ServiceLevelThrottleHandler.java:37)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
at
org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.doSOAP(MultitenantMessageReceiver.java:262)
at
org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.processRequest(MultitenantMessageReceiver.java:210)
at
org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.receive(MultitenantMessageReceiver.java:80)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.eclipse.equinox.http.helper.FilterServletAdaptor$FilterChainImpl.doFilter(FilterServletAdaptor.java:56)
at
org.wso2.carbon.mashup.jsservices.custom.ui.CustomUIServletFilter.doFilter(CustomUIServletFilter.java:233)
at
org.eclipse.equinox.http.helper.FilterServletAdaptor.service(FilterServletAdaptor.java:37)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
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.invoke(CompositeValve.java:177)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:161)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
at

Re: [Dev] How to deploy secured web apps with AS current trunk

2013-07-23 Thread Pradeep Fernando
Hi Amila,

For my Information, what are these pre-fixes ?


On Tue, Jul 23, 2013 at 4:00 PM, Amila Suriarachchi am...@wso2.com wrote:

 hi,

 With AS 5.1.0 the attached web app works when we create a role with the
 name manager and assign to a user. But with the new model it seems to be
 not working due to some prefixes added to the role names.

 please have a look.

 thanks,
 Amila.

 --
 *Amila Suriarachchi*

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

 phone : +94 71 3082805

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


Re: [Dev] Why carbon servers not allowing to create two admin users

2013-07-22 Thread Pradeep Fernando
If that is the behavior, then it is a bug I guess.

--Pradeep
sent from my phone
On Jul 22, 2013 1:09 PM, Eranda Sooriyabandara era...@wso2.com wrote:

 Hi All,
 In carbon 4.0.5 releases we can see that we can't assign an admin role to
 a different user. Is it by design? If yes why? And why aren't we frozen the
 admin role from assigning than throw an exception after creating the user
 saying it's not allowed?

 thanks
 Eranda

 --
 *Eranda Sooriyabandara
 *Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise . Middleware

 E-mail: eranda AT wso2.com
 Mobile: +94 716 472 816
 Linked-In: http://www.linkedin.com/in/erandasooriyabandara
 Blog: http://emsooriyabandara.blogspot.com/



 *
 *

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


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


[Dev] Response Caching/ throttling still in developer testing phase.

2013-07-22 Thread Pradeep Fernando
Hi,

Please note the $subject. I'm still working on them.

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


[Dev] [Build Failure] RSS-Manager

2013-07-16 Thread Pradeep Fernando
[ERROR]
/home/pradeep/checkout/carbon-trunk/platform/components/rss-manager/org.wso2.carbon.rssmanager.core/src/main/java/org/wso2/carbon/rssmanager/core/dao/util/RSSDAOUtil.java:[26,50]
package org.wso2.carbon.rssmanager.common.exception does not exist
[ERROR]
/home/pradeep/checkout/carbon-trunk/platform/components/rss-manager/org.wso2.carbon.rssmanager.core/src/main/java/org/wso2/carbon/rssmanager/core/dao/util/RSSDAOUtil.java:[65,56]
cannot find symbol
[ERROR] symbol  : class RSSManagerCommonException
[ERROR] location: class org.wso2.carbon.rssmanager.core.dao.util.RSSDAOUtil
[ERROR]
/home/pradeep/checkout/carbon-trunk/platform/components/rss-manager/org.wso2.carbon.rssmanager.core/src/main/java/org/wso2/carbon/rssmanager/core/dao/util/RSSDAOUtil.java:[84,75]
cannot find symbol
[ERROR] symbol  : class RSSManagerCommonException
[ERROR] location: class org.wso2.carbon.rssmanager.core.dao.util.RSSDAOUtil
[ERROR]
/home/pradeep/checkout/carbon-trunk/platform/components/rss-manager/org.wso2.carbon.rssmanager.core/src/main/java/org/wso2/carbon/rssmanager/core/dao/impl/DatabaseUserDAOImpl.java:[23,50]
package org.wso2.carbon.rssmanager.common.exception does not exist
[ERROR]
/home/pradeep/checkout/carbon-trunk/platform/components/rss-manager/org.wso2.carbon.rssmanager.core/src/main/java/org/wso2/carbon/rssmanager/core/dao/impl/DatabaseDAOImpl.java:[23,50]
package org.wso2.carbon.rssmanager.common.exception does not exist
[ERROR]
/home/pradeep/checkout/carbon-trunk/platform/components/rss-manager/org.wso2.carbon.rssmanager.core/src/main/java/org/wso2/carbon/rssmanager/core/dao/util/RSSDAOUtil.java:[77,26]
cannot find symbol
[ERROR] symbol  : class RSSManagerCommonException
[ERROR] location: class org.wso2.carbon.rssmanager.core.dao.util.RSSDAOUtil
[ERROR]
/home/pradeep/checkout/carbon-trunk/platform/components/rss-manager/org.wso2.carbon.rssmanager.core/src/main/java/org/wso2/carbon/rssmanager/core/dao/util/RSSDAOUtil.java:[91,26]
cannot find symbol
[ERROR] symbol  : class RSSManagerCommonException
[ERROR] location: class org.wso2.carbon.rssmanager.core.dao.util.RSSDAOUtil
[ERROR]
/home/pradeep/checkout/carbon-trunk/platform/components/rss-manager/org.wso2.carbon.rssmanager.core/src/main/java/org/wso2/carbon/rssmanager/core/dao/impl/DatabaseUserDAOImpl.java:[55,17]
cannot find symbol
[ERROR] symbol  : class RSSManagerCommonException
[ERROR] location: class
org.wso2.carbon.rssmanager.core.dao.impl.DatabaseUserDAOImpl
[ERROR]
/home/pradeep/checkout/carbon-trunk/platform/components/rss-manager/org.wso2.carbon.rssmanager.core/src/main/java/org/wso2/carbon/rssmanager/core/dao/impl/DatabaseUserDAOImpl.java:[111,21]
cannot find symbol
[ERROR] symbol  : class RSSManagerCommonException
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Registry has taken a dependency on user.core

2013-07-14 Thread Pradeep Fernando
+1. We came across the same observation during our recent refactoring
efforts. This will eliminate registry specific user.APIs as well...( I
think they had their own userRealm with some additional methods)

--Pradeep
sent from my phone
On Jul 14, 2013 3:25 PM, Prabath Siriwardena prab...@wso2.com wrote:



 On Sun, Jul 14, 2013 at 2:57 PM, Afkham Azeez az...@wso2.com wrote:




 On Sun, Jul 14, 2013 at 2:38 PM, Prabath Siriwardena prab...@wso2.comwrote:

 $subject

 Ideally it should be on user.api. Due to this - we still need to keep an
 extended interface inside user.core.

 Or else shall we fix this in registry.core to refer user.api ?


 Would be better if Registry core can depend only on the user API


 +1. Since we are doing major refactoring - its better to do it cleanly.
 Did the changes - will commit to a temp svn location..

 Thanks  regards,
 -Prabath






 Thanks  Regards,
 Prabath

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://RampartFAQ.com




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




 --
 Thanks  Regards,
 Prabath

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://RampartFAQ.com

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


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


Re: [Dev] What is the purpose of Registry/InMemoryRealmService

2013-07-14 Thread Pradeep Fernando
Hi Senaka,


On Mon, Jul 15, 2013 at 9:49 AM, Senaka Fernando sen...@wso2.com wrote:

 Hi Prabath,

 These were originally designed for the older in-memory registry, but still
 being used for unit test-cases because the server environment is not
 available. We can probably move these to the test packages in the kernel,
 but I don't think we can get rid of them.

 However, if there aren't any major concerns we should probably wait for
 carbon 5.0.0, where there might be major API changes to the kernel. WDYT?


I'm afraid, there won't be big bang C5 release. All the changes other than
axis2 removal will be done during pre C5 releases, AFAIU...

--Pradeep




 Thanks,
 Senaka.


 On Sun, Jul 14, 2013 at 8:54 PM, Prabath Siriwardena prab...@wso2.comwrote:

 And also InMemoryEmbeddedRegistryService...? Can we please remove those
 if we are not using these any more...

  Thanks  regards,
 -Prabath


 On Sun, Jul 14, 2013 at 8:48 PM, Prabath Siriwardena prab...@wso2.comwrote:

 Found this code inside InMemoryRealmService - and called from the
 constructor..

 Are we ever using InMemoryRealmService ?

 public void setup() throws RegistryException {

 String derbyDBName = target/databasetest/CARBON_TEST;
 String dbDirectory = target/databasetest;
 if ((new File(dbDirectory)).exists()) {
 deleteDBDir(new File(dbDirectory));
 }
 // create an in-memory realm
 try {
 // check whether the driver is loaded.
 Class.forName(org.h2.Driver);
 } catch (ClassNotFoundException e) {
 String msg = Derby database embedded driver is not
 available in the class path. 
 + Could not create the database for the user
 manager.;
 log.error(msg, e);
 throw new RegistryException(msg, e);
 }

 dataSource = new BasicDataSource();
 String connectionUrl = jdbc:h2: + derbyDBName;
 dataSource.setUrl(connectionUrl);
 dataSource.setDriverClassName(org.h2.Driver);

 try {
 DatabaseCreator creator = new DatabaseCreator(dataSource);
 creator.createRegistryDatabase();
 RealmConfigXMLProcessor builder = new
 RealmConfigXMLProcessor();
 InputStream inStream = new FileInputStream(

 src/test/resources/user-test/user-mgt-registry-test.xml);
 try {
 bootstrapRealmConfig =
 builder.buildRealmConfiguration(inStream);
 } finally {
 inStream.close();
 }
 } catch (Exception e) {
 String msg = Failed to initialize the user manager.  +
 e.getMessage();
 log.error(msg, e);
 throw new RegistryException(msg, e);
 }
 this.tenantManager = new JDBCTenantManager(dataSource, null);
 }

 On Sun, Jul 14, 2013 at 6:58 PM, Prabath Siriwardena 
 prab...@wso2.comwrote:

 $subject

 --
 Thanks  Regards,
 Prabath

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://RampartFAQ.com




 --
 Thanks  Regards,
 Prabath

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://RampartFAQ.com




 --
 Thanks  Regards,
 Prabath

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://RampartFAQ.com




 --
 *Senaka Fernando*
 Member - Integration Technologies Management Committee;
 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; ext: 51736*; *M: +94 77 322 1818
 Linked-In: http://linkedin.com/in/senakafernando

 *Lean . Enterprise . Middleware

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




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

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


  1   2   3   4   5   6   7   8   9   10   >