Re: [Dev] Some bundles getting activated only after Manager start-up

2012-04-01 Thread Amila Maha Arachchi
Hi Shariq,

This is not the behaviour we see in a 1.5.2 released pack. In that pack,
Billing bundle gets started before the server starts up. I checked a 1.5.2
pack with DEBUG logs and confirmed.

So, is this due to a change in one of those bundles? Billing components has
the same code as the 1.5.2 branch (I copied from branch to trunk).

Thanks,
AmilaM.

On Mon, Apr 2, 2012 at 11:50 AM, Muhammed Shariq  wrote:

> Hi,
>
> Since starting to write integration test for Manager I am facing an issue
> in that, even though the server starts up and the ports are open some
> bundles are not even activated. Initially the idea was that the ther server
> getting started up before the relevant admin services gets deployed, so I
> tried marking that service as an Axis2RequiredService, with this change the
> server never starts up at all (presumably due to deadlock). Next I enabled
> debug logs in tennat-mgt, billing, usage bundles and noticed that some
> bundles only get activated after the server start up. However adding a 30
> sec sleep solves the issue, meaning within that interval all the bundles
> get activated ...
>
> I tried many ways like figure out what causes this delay, but still
> haven't managed to pinpoint which bundle+reference is causing the issue.
> Any tips on sorting this issue out if highly appreciated. Some logs
> extracted with some sysouts are as follows,
>
>
> [2012-04-02 11:28:58,826]  INFO
> {org.wso2.carbon.identity.core.internal.IdentityCoreServiceComponent} -
>  Initialized Identity Persistence Store.
> [2012-04-02 11:28:58,872]  INFO
> {org.wso2.carbon.core.transports.http.HttpsTransportListener} -  HTTPS port
>   : 9443
> [2012-04-02 11:28:58,872]  INFO
> {org.wso2.carbon.core.transports.http.HttpTransportListener} -  HTTP port
>  : 9763
> [2012-04-02 11:28:59,443]  INFO
> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Started
> Transport Listener Manager
> [2012-04-02 11:28:59,443]  INFO
> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Server
>   :  WSO2 Stratos Manager-3.2.0
> [2012-04-02 11:28:59,444]  INFO
> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  WSO2
> Carbon started in 33 sec
> [2012-04-02 11:28:59,457] DEBUG
> {org.wso2.carbon.tenant.activity.internal.TenantActivityServiceComponent} -
>  *** Tenant Activity bundle is activated ***
> [2012-04-02 11:28:59,459] ERROR
> {org.wso2.carbon.tenant.activity.ui.internal.TenantActivityUIServiceComponent}
> -  *** Tenant Activity UI bundle is activated ***
> [2012-04-02 11:28:59,481]  INFO
> {org.wso2.carbon.tenant.dispatcher.internal.TenantDispatcherServiceComponent}
> -  Deployed __MultitenantDispatcherService
> [2012-04-02 11:28:59,482]  INFO
> {org.wso2.carbon.tenant.dispatcher.internal.TenantDispatcherServiceComponent}
> -  Added multitenant dispatchers
> [2012-04-02 11:29:00,301] DEBUG
> {org.wso2.carbon.throttling.agent.internal.ThrottlingAgentServiceComponent}
> -  *** Multitenancy Throttling Agent bundle is activated ***
> *[2012-04-02 11:29:00,636]  INFO
> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} -  Mgt Console URL
>  : https://172.16.172.1:9443/carbon/*
> [2012-04-02 11:29:00,649]  WARN
> {org.wso2.carbon.identity.authenticator.saml2.sso.ui.internal.SAML2SSOAuthenticatorUIDSComponent}
> -  Initialization failed for SSO Authenticator. Starting with the default
> authenticator
> [2012-04-02 11:29:00,677] DEBUG
> {org.wso2.carbon.billing.mgt.internal.MultitenancyBillingServiceComponent}
> -  Receiving billingManager service
> [2012-04-02 11:29:00,678] DEBUG
> {org.wso2.carbon.billing.mgt.internal.MultitenancyBillingServiceComponent}
> -  Setting Tenant Usage Retriever service
> [2012-04-02 11:29:00,720] DEBUG
> {org.wso2.carbon.throttling.manager.internal.ThrottlingManagerServiceComponent}
> -  Setting MT billing info service
> [2012-04-02 11:29:00,723] DEBUG
> {org.wso2.carbon.throttling.manager.internal.ThrottlingManagerServiceComponent}
> -  Receiving billingManager service
> [2012-04-02 11:29:00,729] DEBUG
> {org.wso2.carbon.throttling.manager.internal.ThrottlingManagerServiceComponent}
> -  Setting Tenant Usage Retriever service
> [2012-04-02 11:29:04,055] DEBUG
> {org.wso2.carbon.throttling.manager.internal.ThrottlingManagerServiceComponent}
> -   Multitenancy Throttling Manager bundle is activated
> [2012-04-02 11:29:04,106] DEBUG
> {org.wso2.carbon.tenant.mgt.internal.TenantMgtServiceComponent} -
>  Receiving ConfigurationContext Service
> *[2012-04-02 11:29:04,123] DEBUG
> {org.wso2.carbon.tenant.mgt.internal.TenantMgtServiceComponent} -  ***
> Governance Tenant Config bundle is activated *** *
> *[2012-04-02 11:29:04,123] DEBUG
> {org.wso2.carbon.billing.mgt.internal.MultitenancyBillingServiceComponent}
> -  *** Multitenancy Billing bundle is activated *** *
> *[2012-04-02 11:29:04,124] DEBUG
> {org.wso2.carbon.usage.internal.UsageServiceComponent} -  *** Usage
> bundle is activated 

Re: [Dev] Some bundles getting activated only after Manager start-up

2012-04-01 Thread Afkham Azeez
Try making those "ListenerManager-RequiredServices"

Add that "ListenerManager-RequiredServices" OSGi header and declare the
services in the respective bundles. Until those become available, ports
will not be open.

On Mon, Apr 2, 2012 at 11:50 AM, Muhammed Shariq  wrote:

> Hi,
>
> Since starting to write integration test for Manager I am facing an issue
> in that, even though the server starts up and the ports are open some
> bundles are not even activated. Initially the idea was that the ther server
> getting started up before the relevant admin services gets deployed, so I
> tried marking that service as an Axis2RequiredService, with this change the
> server never starts up at all (presumably due to deadlock). Next I enabled
> debug logs in tennat-mgt, billing, usage bundles and noticed that some
> bundles only get activated after the server start up. However adding a 30
> sec sleep solves the issue, meaning within that interval all the bundles
> get activated ...
>
> I tried many ways like figure out what causes this delay, but still
> haven't managed to pinpoint which bundle+reference is causing the issue.
> Any tips on sorting this issue out if highly appreciated. Some logs
> extracted with some sysouts are as follows,
>
>
> [2012-04-02 11:28:58,826]  INFO
> {org.wso2.carbon.identity.core.internal.IdentityCoreServiceComponent} -
>  Initialized Identity Persistence Store.
> [2012-04-02 11:28:58,872]  INFO
> {org.wso2.carbon.core.transports.http.HttpsTransportListener} -  HTTPS port
>   : 9443
> [2012-04-02 11:28:58,872]  INFO
> {org.wso2.carbon.core.transports.http.HttpTransportListener} -  HTTP port
>  : 9763
> [2012-04-02 11:28:59,443]  INFO
> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Started
> Transport Listener Manager
> [2012-04-02 11:28:59,443]  INFO
> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Server
>   :  WSO2 Stratos Manager-3.2.0
> [2012-04-02 11:28:59,444]  INFO
> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  WSO2
> Carbon started in 33 sec
> [2012-04-02 11:28:59,457] DEBUG
> {org.wso2.carbon.tenant.activity.internal.TenantActivityServiceComponent} -
>  *** Tenant Activity bundle is activated ***
> [2012-04-02 11:28:59,459] ERROR
> {org.wso2.carbon.tenant.activity.ui.internal.TenantActivityUIServiceComponent}
> -  *** Tenant Activity UI bundle is activated ***
> [2012-04-02 11:28:59,481]  INFO
> {org.wso2.carbon.tenant.dispatcher.internal.TenantDispatcherServiceComponent}
> -  Deployed __MultitenantDispatcherService
> [2012-04-02 11:28:59,482]  INFO
> {org.wso2.carbon.tenant.dispatcher.internal.TenantDispatcherServiceComponent}
> -  Added multitenant dispatchers
> [2012-04-02 11:29:00,301] DEBUG
> {org.wso2.carbon.throttling.agent.internal.ThrottlingAgentServiceComponent}
> -  *** Multitenancy Throttling Agent bundle is activated ***
> *[2012-04-02 11:29:00,636]  INFO
> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} -  Mgt Console URL
>  : https://172.16.172.1:9443/carbon/*
> [2012-04-02 11:29:00,649]  WARN
> {org.wso2.carbon.identity.authenticator.saml2.sso.ui.internal.SAML2SSOAuthenticatorUIDSComponent}
> -  Initialization failed for SSO Authenticator. Starting with the default
> authenticator
> [2012-04-02 11:29:00,677] DEBUG
> {org.wso2.carbon.billing.mgt.internal.MultitenancyBillingServiceComponent}
> -  Receiving billingManager service
> [2012-04-02 11:29:00,678] DEBUG
> {org.wso2.carbon.billing.mgt.internal.MultitenancyBillingServiceComponent}
> -  Setting Tenant Usage Retriever service
> [2012-04-02 11:29:00,720] DEBUG
> {org.wso2.carbon.throttling.manager.internal.ThrottlingManagerServiceComponent}
> -  Setting MT billing info service
> [2012-04-02 11:29:00,723] DEBUG
> {org.wso2.carbon.throttling.manager.internal.ThrottlingManagerServiceComponent}
> -  Receiving billingManager service
> [2012-04-02 11:29:00,729] DEBUG
> {org.wso2.carbon.throttling.manager.internal.ThrottlingManagerServiceComponent}
> -  Setting Tenant Usage Retriever service
> [2012-04-02 11:29:04,055] DEBUG
> {org.wso2.carbon.throttling.manager.internal.ThrottlingManagerServiceComponent}
> -   Multitenancy Throttling Manager bundle is activated
> [2012-04-02 11:29:04,106] DEBUG
> {org.wso2.carbon.tenant.mgt.internal.TenantMgtServiceComponent} -
>  Receiving ConfigurationContext Service
> *[2012-04-02 11:29:04,123] DEBUG
> {org.wso2.carbon.tenant.mgt.internal.TenantMgtServiceComponent} -  ***
> Governance Tenant Config bundle is activated *** *
> *[2012-04-02 11:29:04,123] DEBUG
> {org.wso2.carbon.billing.mgt.internal.MultitenancyBillingServiceComponent}
> -  *** Multitenancy Billing bundle is activated *** *
> *[2012-04-02 11:29:04,124] DEBUG
> {org.wso2.carbon.usage.internal.UsageServiceComponent} -  *** Usage
> bundle is activated *** *
> [2012-04-02 11:29:04,165]  INFO
> {org.wso2.carbon.usage.summary.generator.internal.UsageSummaryGeneratorServiceComponent}
> -  St

[Dev] Some bundles getting activated only after Manager start-up

2012-04-01 Thread Muhammed Shariq
Hi,

Since starting to write integration test for Manager I am facing an issue
in that, even though the server starts up and the ports are open some
bundles are not even activated. Initially the idea was that the ther server
getting started up before the relevant admin services gets deployed, so I
tried marking that service as an Axis2RequiredService, with this change the
server never starts up at all (presumably due to deadlock). Next I enabled
debug logs in tennat-mgt, billing, usage bundles and noticed that some
bundles only get activated after the server start up. However adding a 30
sec sleep solves the issue, meaning within that interval all the bundles
get activated ...

I tried many ways like figure out what causes this delay, but still haven't
managed to pinpoint which bundle+reference is causing the issue. Any tips
on sorting this issue out if highly appreciated. Some logs extracted with
some sysouts are as follows,


[2012-04-02 11:28:58,826]  INFO
{org.wso2.carbon.identity.core.internal.IdentityCoreServiceComponent} -
 Initialized Identity Persistence Store.
[2012-04-02 11:28:58,872]  INFO
{org.wso2.carbon.core.transports.http.HttpsTransportListener} -  HTTPS port
  : 9443
[2012-04-02 11:28:58,872]  INFO
{org.wso2.carbon.core.transports.http.HttpTransportListener} -  HTTP port
 : 9763
[2012-04-02 11:28:59,443]  INFO
{org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Started
Transport Listener Manager
[2012-04-02 11:28:59,443]  INFO
{org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Server
  :  WSO2 Stratos Manager-3.2.0
[2012-04-02 11:28:59,444]  INFO
{org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  WSO2
Carbon started in 33 sec
[2012-04-02 11:28:59,457] DEBUG
{org.wso2.carbon.tenant.activity.internal.TenantActivityServiceComponent} -
 *** Tenant Activity bundle is activated ***
[2012-04-02 11:28:59,459] ERROR
{org.wso2.carbon.tenant.activity.ui.internal.TenantActivityUIServiceComponent}
-  *** Tenant Activity UI bundle is activated ***
[2012-04-02 11:28:59,481]  INFO
{org.wso2.carbon.tenant.dispatcher.internal.TenantDispatcherServiceComponent}
-  Deployed __MultitenantDispatcherService
[2012-04-02 11:28:59,482]  INFO
{org.wso2.carbon.tenant.dispatcher.internal.TenantDispatcherServiceComponent}
-  Added multitenant dispatchers
[2012-04-02 11:29:00,301] DEBUG
{org.wso2.carbon.throttling.agent.internal.ThrottlingAgentServiceComponent}
-  *** Multitenancy Throttling Agent bundle is activated ***
*[2012-04-02 11:29:00,636]  INFO
{org.wso2.carbon.ui.internal.CarbonUIServiceComponent} -  Mgt Console URL
 : https://172.16.172.1:9443/carbon/*
[2012-04-02 11:29:00,649]  WARN
{org.wso2.carbon.identity.authenticator.saml2.sso.ui.internal.SAML2SSOAuthenticatorUIDSComponent}
-  Initialization failed for SSO Authenticator. Starting with the default
authenticator
[2012-04-02 11:29:00,677] DEBUG
{org.wso2.carbon.billing.mgt.internal.MultitenancyBillingServiceComponent}
-  Receiving billingManager service
[2012-04-02 11:29:00,678] DEBUG
{org.wso2.carbon.billing.mgt.internal.MultitenancyBillingServiceComponent}
-  Setting Tenant Usage Retriever service
[2012-04-02 11:29:00,720] DEBUG
{org.wso2.carbon.throttling.manager.internal.ThrottlingManagerServiceComponent}
-  Setting MT billing info service
[2012-04-02 11:29:00,723] DEBUG
{org.wso2.carbon.throttling.manager.internal.ThrottlingManagerServiceComponent}
-  Receiving billingManager service
[2012-04-02 11:29:00,729] DEBUG
{org.wso2.carbon.throttling.manager.internal.ThrottlingManagerServiceComponent}
-  Setting Tenant Usage Retriever service
[2012-04-02 11:29:04,055] DEBUG
{org.wso2.carbon.throttling.manager.internal.ThrottlingManagerServiceComponent}
-   Multitenancy Throttling Manager bundle is activated
[2012-04-02 11:29:04,106] DEBUG
{org.wso2.carbon.tenant.mgt.internal.TenantMgtServiceComponent} -
 Receiving ConfigurationContext Service
*[2012-04-02 11:29:04,123] DEBUG
{org.wso2.carbon.tenant.mgt.internal.TenantMgtServiceComponent} -  ***
Governance Tenant Config bundle is activated *** *
*[2012-04-02 11:29:04,123] DEBUG
{org.wso2.carbon.billing.mgt.internal.MultitenancyBillingServiceComponent}
-  *** Multitenancy Billing bundle is activated *** *
*[2012-04-02 11:29:04,124] DEBUG
{org.wso2.carbon.usage.internal.UsageServiceComponent} -  *** Usage
bundle is activated *** *
[2012-04-02 11:29:04,165]  INFO
{org.wso2.carbon.usage.summary.generator.internal.UsageSummaryGeneratorServiceComponent}
-  Stratos Usage Summary Generation Enabled.


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


[Dev] wss4j build time warning

2012-04-01 Thread Afkham Azeez
The Java version has not been set in the compiler plugin

[WARNING] File encoding has not been set, using platform encoding MacRoman,
i.e. build is platform dependent!
[WARNING] Error while parsing
/Users/azeez/projects/wso2/org/carbon/kernel/trunk/dependencies/wss4j/1.5.11-wso2v3/src/org/apache/ws/security/KerberosTokenPrincipal.java:
Can't use annotations when running in JDK 1.4 mode!
[WARNING] Error while parsing
/Users/azeez/projects/wso2/org/carbon/kernel/trunk/dependencies/wss4j/1.5.11-wso2v3/src/org/apache/ws/security/KerberosTokenPrincipal.java:
Can't use annotations when running in JDK 1.4 mode!
[WARNING] Error while parsing
/Users/azeez/projects/wso2/org/carbon/kernel/trunk/dependencies/wss4j/1.5.11-wso2v3/src/org/apache/ws/security/KerberosTokenPrincipal.java:
Can't use annotations when running in JDK 1.4 mode!
[WARNING] Error while parsing
/Users/azeez/projects/wso2/org/carbon/kernel/trunk/dependencies/wss4j/1.5.11-wso2v3/src/org/apache/ws/security/kerberos/KrbSessionCache.java:
Can't use generics unless running in JDK 1.5 mode!
[WARNING] Error while parsing
/Users/azeez/projects/wso2/org/carbon/kernel/trunk/dependencies/wss4j/1.5.11-wso2v3/src/org/apache/ws/security/kerberos/KrbSessionCache.java:
Can't use generics unless running in JDK 1.5 mode!
[WARNING] Error while parsing
/Users/azeez/projects/wso2/org/carbon/kernel/trunk/dependencies/wss4j/1.5.11-wso2v3/src/org/apache/ws/security/kerberos/KrbSessionCache.java:
Can't use generics unless running in JDK 1.5 mode!
[WARNING] Error while parsing
/Users/azeez/projects/wso2/org/carbon/kernel/trunk/dependencies/wss4j/1.5.11-wso2v3/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:
Can't use generics unless running in JDK 1.5 mode!
[WARNING] Error while parsing
/Users/azeez/projects/wso2/org/carbon/kernel/trunk/dependencies/wss4j/1.5.11-wso2v3/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:
Can't use generics unless running in JDK 1.5 mode!
[WARNING] Error while parsing
/Users/azeez/projects/wso2/org/carbon/kernel/trunk/dependencies/wss4j/1.5.11-wso2v3/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:
Can't use generics unless running in JDK 1.5 mode!
[WARNING] Error while parsing
/Users/azeez/projects/wso2/org/carbon/kernel/trunk/dependencies/wss4j/1.5.11-wso2v3/src/org/apache/ws/security/message/WSSecKerberosToken.java:
Can't use generics unless running in JDK 1.5 mode!
[WARNING] Error while parsing
/Users/azeez/projects/wso2/org/carbon/kernel/trunk/dependencies/wss4j/1.5.11-wso2v3/src/org/apache/ws/security/message/WSSecKerberosToken.java:
Can't use generics unless running in JDK 1.5 mode!
[WARNING] Error while parsing
/Users/azeez/projects/wso2/org/carbon/kernel/trunk/dependencies/wss4j/1.5.11-wso2v3/src/org/apache/ws/security/message/WSSecKerberosToken.java:
Can't use generics unless running in JDK 1.5 mode!
[WARNING] Error while parsing
/Users/azeez/projects/wso2/org/carbon/kernel/trunk/dependencies/wss4j/1.5.11-wso2v3/src/org/apache/ws/security/processor/KerberosTokenProcessor.java:
Can't use generics unless running in JDK 1.5 mode!
[WARNING] Error while parsing
/Users/azeez/projects/wso2/org/carbon/kernel/trunk/dependencies/wss4j/1.5.11-wso2v3/src/org/apache/ws/security/processor/KerberosTokenProcessor.java:
Can't use generics unless running in JDK 1.5 mode!
[WARNING] Error while parsing
/Users/azeez/projects/wso2/org/carbon/kernel/trunk/dependencies/wss4j/1.5.11-wso2v3/src/org/apache/ws/security/processor/KerberosTokenProcessor.java:
Can't use generics unless running in JDK 1.5 mode!
[WARNING] Error while parsing
/Users/azeez/projects/wso2/org/carbon/kernel/trunk/dependencies/wss4j/1.5.11-wso2v3/src/org/apache/ws/security/saml/SAML2Util.java:
Can't use generics unless running in JDK 1.5 mode!
[WARNING] Error while parsing
/Users/azeez/projects/wso2/org/carbon/kernel/trunk/dependencies/wss4j/1.5.11-wso2v3/src/org/apache/ws/security/saml/SAML2Util.java:
Can't use generics unless running in JDK 1.5 mode!
[WARNING] Error while parsing
/Users/azeez/projects/wso2/org/carbon/kernel/trunk/dependencies/wss4j/1.5.11-wso2v3/src/org/apache/ws/security/saml/SAML2Util.java:
Can't use generics unless running in JDK 1.5 mode!


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


Re: [Dev] Is -DenableOsgiDebug working?

2012-04-01 Thread Rajika Kumarasiri
Off the topic.

I noticed that Main.java#processCmdLineArgs(
https://svn.wso2.org/repos/wso2/carbon/kernel/trunk/core/org.wso2.carbon.server/src/main/java/org/wso2/carbon/server/Main.java)
has used a manual way of parsing command line options. You can use
commons-cli for this purposes(http://commons.apache.org/cli/).

Rajika

On Mon, Apr 2, 2012 at 11:28 AM, Pradeep Fernando  wrote:

> Hi,
>
> not sure whether its working (I haven't used it, honestly). I created a
> JIRA to track this.
>
> [1] https://wso2.org/jira/browse/CARBON-12761
>
> ___
> 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] smoke testing - alpha packs

2012-04-01 Thread Rajika Kumarasiri
Do you know where to get p2 repo ?

Rajika

On Mon, Apr 2, 2012 at 11:13 AM, Pradeep Fernando  wrote:

> Hi RMs,
>
> please do smoke testing on these packs [1] . Once you are done with smoke
> testing of your product, please send a mail to this thread, stating QA
> readiness of the product.
>
> [1] http://wso2.org/bamboo/browse/WSO2CARBON-PRODUCTS-24/artifact
>
> thanks,
> --Pradeep
> ___
> 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] Is -DenableOsgiDebug working?

2012-04-01 Thread Pradeep Fernando
Hi,

not sure whether its working (I haven't used it, honestly). I created a
JIRA to track this.

[1] https://wso2.org/jira/browse/CARBON-12761
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] smoke testing - alpha packs

2012-04-01 Thread Pradeep Fernando
Hi RMs,

please do smoke testing on these packs [1] . Once you are done with smoke
testing of your product, please send a mail to this thread, stating QA
readiness of the product.

[1] http://wso2.org/bamboo/browse/WSO2CARBON-PRODUCTS-24/artifact

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


Re: [Dev] Cannot add integration tests to LB due to authentication failure

2012-04-01 Thread Afkham Azeez
Yes, I discussed this with Asela last week. Irrespective of the incoming
request, the dispatching happens to _SynapseService and then the main
sequence. This is because we removed all the dispatchers to avoid requests
being accidentally dispatched into the LB instead of the BE node.

Our integration test framework automatically includes logging in code, and
also calls ServerAdmin.shutdown to shutdown the server. So, LB integration
tests don't work like other integration tests.

On Mon, Apr 2, 2012 at 7:24 AM, Asela Pathberiya  wrote:

> As Azeez explained ,  Issue is that the service dispatching does not
> happen correctly, because in LB some of the normal normal dispatch
> handlers has been removed, Therefore when UI authenticator,  calls the
> "LoggedUserInfoAdmin" admin service in BE, it goes to _SynapseService. So 
> AuthenticationHandler
> treats this as generic service and any authentication would not be happened.
>
> Thanks,
> Asela.
>
> On Sun, Apr 1, 2012 at 10:23 PM, Amila Jayasekara  wrote:
>
>> On Sun, Apr 1, 2012 at 10:11 PM, Kathiravelu Pradeeban
>>  wrote:
>> >
>> >
>> > On Thu, Mar 29, 2012 at 7:52 PM, Afkham Azeez  wrote:
>> >>
>> >> For some reason, authentication is failing when you try to login to the
>> >> LB. There is no error stacktrace. Only an error message which says that
>> >
>> >
>> > Hi Azeez,
>> > How are you trying to log in to the load balancer? Logging into LB
>> through
>> > the management console is impossible, since the LB-1.0 times, as all
>> the FE
>> > features are removed.
>> >
>> > I don't think it was possible at all, at any time, and the log in was
>> never
>> > tested, as it was not intended to log in to an LB.
>> >
>> > Do you plan to have some feature that requires a management console or
>> FE,
>> > or logging into the load balancer using the BE service calls, for some
>> > reason? Otherwise, I think the log in test is inapplicable to LB.
>> >
>> > Let me know, if we have misunderstood your requirement.
>>
>> But, if LB is build on top of carbon core, we should be able to login
>> to LB (irrespective of the functionality of LB). Let me also
>> investigate this.
>>
>> @Dimuthu, if you have make any progress on this issue, please let me know.
>>
>> Thanks
>> AmilaJ
>>
>> >
>> > Thank you.
>> > Regards,
>> > Pradeeban.
>> >
>> >>
>> >> the authenticators.xml file is not found, and the default one is used.
>> >>
>> >> On a related note, that message about using the default
>> authenticators.xml
>> >> file should just be a debug level message. Most frameworks use default
>> >> config files, and don't print error messages if a config file is not
>> >> explicitly added.
>> >>
>> >> Can somebody look into this?
>> >>
>> >> --
>> >> Afkham Azeez
>> >> Director of Architecture; WSO2, Inc.; http://wso2.com
>> >> Member; Apache Software Foundation; http://www.apache.org/
>> >>
>> >> email: az...@wso2.com cell: +94 77 3320919
>> >> blog: http://blog.afkham.org
>> >> twitter: http://twitter.com/afkham_azeez
>> >> linked-in: http://lk.linkedin.com/in/afkhamazeez
>> >>
>> >> Lean . Enterprise . Middleware
>> >>
>> >>
>> >> ___
>> >> Dev mailing list
>> >> Dev@wso2.org
>> >> http://wso2.org/cgi-bin/mailman/listinfo/dev
>> >>
>> >
>> >
>> >
>> > --
>> > Kathiravelu Pradeeban.
>> > Software Engineer.
>> > Cloud Technologies Team.
>> > WSO2 Inc.
>> >
>> > Blog: [Llovizna] http://kkpradeeban.blogspot.com/
>> > M: +94 776 477 976
>> >
>>
>>
>>
>> --
>> Mobile : +94773330538
>> ___
>> 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
>
>


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


[Dev] [Bamboo-Build] WSO2 Carbon > Products > #27 has FAILED. Change made by sumedha.

2012-04-01 Thread Bamboo

---
WSO2 Carbon > Products > #27 failed.
---
This build occurred because it is a dependant of WSO2CARBON-PLATFORM-49.
No failed tests found, a possible compilation error.

http://builder4.us1.wso2.org:/bamboo/browse/WSO2CARBON-PRODUCTS-27/


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


--
Code Changes
--
sumedha (124541):

>cleaning up providers & subscribers

sumedha (124539):

>Fixed paths relative to extract binary. Renamed default task

sumedha (124543):

>README.txt - draft version



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


Re: [Dev] Status of Stratos Services in trunk

2012-04-01 Thread Muhammed Shariq
On Sat, Mar 31, 2012 at 11:51 AM, Afkham Azeez  wrote:

> Folks,
> Are all the Stratos stuff running fine? Is anybody extensively testing
> them? We cannot release the kernel without Stratos working because most of
> the core Stratos functionality is in the kernel.
>

I have been working on several issues related to Manager which was
introduced by changes in the kernel (persistence managers related issues
and tenant authentication issues which was fixed with the help of KasunG
and AmilaJ respectively). In the mean time I started migrating
billing/usage DB's to h2 in order to have some integration tests
implemented. Amidst these stuff I haven't been able to check each and every
Stratos services, event hough I did test IS (for sso functionality) and
also Stratos AS. I think it would be more productive if each product team
owned the service as well, since they can do a thorough job ensuring
the functionality of the Stratos service ...

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


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


[Dev] Carbon Kernel integration test failure in windows.

2012-04-01 Thread Selvaratnam Uthaiyashankar
$subject due to emma. I am looking into this.

---
 T E S T S
---
Running TestSuite
[2012-04-01 21:18:19,201]  INFO
{org.wso2.carbon.integration.framework.utils.TestUtil} -  Copying
E:\src\java\carbon_trunk\kernel\distribution\integration\tests\..\security-verifier\target\SecVerifier
.aar => 
E:\src\java\carbon_trunk\kernel\distribution\integration\tests\target\carbontmp1333295297244\wso2carbon-core-4.0.0-SNAPSHOT\repository\deployment\server\axis2services\SecVerifier.aar
[EMMA v2.1, build 5320 (stable)]
emmarun: could not rename temporary file
[E:\src\java\carbon_trunk\kernel\distribution\integration\tests\target\carbontmp1333295297244\wso2carbon-core-4.0.0-SNAPSHOT\repository\components\plugins\org.
wso2.carbon.addressing_4.0.0.SNAPSHOTemma1330264654003562852.et] to
[E:\src\java\carbon_trunk\kernel\distribution\integration\tests\target\carbontmp1333295297244\wso2carbon-core-4.0.0-SNAPSHOT\reposit
ory\components\plugins\org.wso2.carbon.addressing_4.0.0.SNAPSHOT.jar]:
make sure the original file is not locked and can be deleted
Tests run: 28, Failures: 1, Errors: 0, Skipped: 27, Time elapsed:
2.823 sec <<< FAILURE!

Results :

Failed tests:
  startServer(org.wso2.carbon.integration.tests.CarbonTestServerManager):
org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
com.vladium.emma.EMMARuntimeException: could not rename tempo
rary file 
[E:\src\java\carbon_trunk\kernel\distribution\integration\tests\target\carbontmp1333295297244\wso2carbon-core-4.0.0-SNAPSHOT\repository\components\plugins\org.wso2.carbon.addressing_4.0.0.SN
APSHOTemma1330264654003562852.et] to
[E:\src\java\carbon_trunk\kernel\distribution\integration\tests\target\carbontmp1333295297244\wso2carbon-core-4.0.0-SNAPSHOT\repository\components\plugins\org.wso2
.carbon.addressing_4.0.0.SNAPSHOT.jar]: make sure the original file is
not locked and can be deleted

Tests run: 28, Failures: 1, Errors: 0, Skipped: 27





-- 
S.Uthaiyashankar
Senior Architect
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"

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


Re: [Dev] Don't declare a plugin multiple times

2012-04-01 Thread Dimuthu Leelarathne
Hi Pradeeban,

Nice work. I can see a visible improvement in the building time.

thanks,
dimuthu

On Sat, Mar 31, 2012 at 3:46 PM, Supun Malinga  wrote:

> +1
> Hope everyone will stick to best practices.
>
> thanks,
>
>
> On Sat, Mar 31, 2012 at 11:39 AM, Isuru Suriarachchi wrote:
>
>> +1 Good job..
>>
>> On Fri, Mar 30, 2012 at 9:51 PM, Afkham Azeez  wrote:
>>
>>> Nice work Pradeeban. Thanks for taking up this task & fixing all these
>>> problems which were lingering for some time.
>>>
>>> Thanks
>>> Azeez
>>>
>>> On Fri, Mar 30, 2012 at 8:52 PM, Kathiravelu Pradeeban <
>>> pradee...@wso2.com> wrote:
>>>
 The attached patch fixes all the maven3 warnings and bad practices
 found in products/pom.xml's. Will commit it after finishing this full build
 with tests.

 Regards,
 Pradeeban.


 On Fri, Mar 30, 2012 at 3:47 PM, Kathiravelu Pradeeban <
 pradee...@wso2.com> wrote:

> Also to avoid declaring the dependencies and versions multiple times,
> where there exists dependencies defined multiple times in a pom with
> different versions.
> I have already fixed all these maven3 violations. Will commit these
> after building with tests. So do *NOT* work on fixing these now. Just
> mentioning to the list for the completeness.
>
> For example, I can see the below, in many of the modules/distribution
> poms.
>
> *
> org.apache.maven.plugins
> maven-antrun-plugin
> 1.1
> 
> 
> extract-docs-from-components
> package
> 
> run
> 
> 
> 
> ... ...
> 
> 
> 
> 
> 
>
> 
> org.apache.maven.plugins
> maven-antrun-plugin
> 1.1
> 
> 
> clean_target
> install
> 
> 
> ... ...
> 
> 
> 
> run
> 
> 
> 
> 
>
> *Which actually should have been defined like this.
>
> *
> org.apache.maven.plugins
> maven-antrun-plugin
> 1.1
> 
> 
> extract-docs-from-components
> package
> 
> run
> 
> 
> 
> ... ...
> 
> 
> 
> 
> clean_target
> install
> 
> 
> ... ...
> 
> 
> 
> run
> 
> 
> 
> 
> *
> Thank you.
> Regards,
> Pradeeban.
> --
> Kathiravelu Pradeeban.
> Software Engineer.
> Cloud Technologies Team.
> WSO2 Inc.
>
> Blog: [Llovizna] http://kkpradeeban.blogspot.com/
> M: +94 776 477 976
>
>


 --
 Kathiravelu Pradeeban.
 Software Engineer.
 Cloud Technologies Team.
 WSO2 Inc.

 Blog: [Llovizna] http://kkpradeeban.blogspot.com/
 M: +94 776 477 976


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


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

[Dev] WSO2 Developer Studio M11 Released !

2012-04-01 Thread Chathuri Wimalasena
Hi All,

WSO2 Developer Studio M11 is ready to be downloaded at [1] (with
dependencies) and [2] (without dependencies). We will use these packs for
test hackaton that is going to happen with ESB team 2nd and 3rd of April.

Following are the issues that has been fixed for M11.
Bug

   - [TOOLS-133 ] - Alert user when
   restore is successful.
   - [TOOLS-168 ] - Deleting a
   deployed .car
   - [TOOLS-266 ] - Security
   warning while installing carbon studion in Helios
   - [TOOLS-307 ] - Prints an extra
   set of log lines when hot deploying an application
   - [TOOLS-322 ] - Help link dead
   - [TOOLS-323 ] - Backup file
   creation of main files due to hot updates
   - [TOOLS-324 ] - Gadgets on ESB
   Dashboard; doesn't get loaded
   - [TOOLS-328 ] - When
   configuring a Script mediator via tools it sets a function attribute by
   defaullt
   - [TOOLS-390 ] - Proper error
   message should be provided when a user tries to connect to remote registry
   with an erroneous URL
   - [TOOLS-489 ] -
   InstanceAlreadyExistsException WARN error thrown when removing projects
   from the server
   - [TOOLS-614 ] - Running
   validate always report problems, even if the header mediator is valid
   - [TOOLS-658 ] - Need a
   mechanism to completely remove a particular artifact
   - [TOOLS-868 ] - Cannot access
   /_system path of Stratos Governance from registry eclipse plugin for carbon
   studio
   - [TOOLS-902 ] - no able to view
   carbon remote server option
   - [TOOLS-905 ] - Cursor should
   move to the end after selecting an 'Export Destination'
   - [TOOLS-958 ] - Proxy service
   source editor applies an incorrect Synapse namespace URI when updating the
   source after copying
   - [TOOLS-960 ] - ESB Sequence
   mediator dynamic sequence XPath expression is incorrectly serialized in the
   Dev Studio ESB Editor Source view
   - [TOOLS-963 ] - Cannot add
   Remote Carbon server with defined webapp context root
   - [TOOLS-964 ] - When creating a
   ESB Custom Mediator, older version of commons-io is been imported
   - [TOOLS-966 ] - Entering 'tab'
   does not go to the next input field
   - [TOOLS-968 ] - Error when
   trying to save an imported .dbs file
   - [TOOLS-969 ] - Cannot import
   the same .dbs to different Carbon projects in the same work-space
   - [TOOLS-971 ] - When creating a
   new carbon application even user alter the location before changing the
   name of the project ,when name filed changing, location change back to the
   default
   - [TOOLS-972 ] - When creating a
   new carbon application if user alter the location to the same workspace
   wizard not finish the process and no warning or error message why it is
   hanging there.

Improvement

   - [TOOLS-252 ] - Proxy Service -
   show default transports
   - [TOOLS-707 ] - Product Chart
   Gadget Sample - Left side (Y axis) of the bar graph is not visible
   - [TOOLS-776 ] - After changing
   a property value of an artifact from the property sheet, user should be
   able to save it by pressing Ctrl+S, without clicking on the editor
   - [TOOLS-819 ] - Provide a
   solution where the workflow can be deployed to the WSO2-BPS without
   requiring the base directory to be configured.
   - [TOOLS-955 ] - When deleting
   an Artifact/Artifact Project, need to update the references including pom
   file and metadata files


Thanks and Regards,
WSO2 Developer Studio Team

[1]
http://builder1.us1.wso2.org/~developerstudio/developer-studio/2.0.0/M11/wso2-developer-studio_2.0.0.M11_with_dependencies-SNAPSHOT.zip
[2]
http://builder1.us1.wso2.org/~developerstudio/developer-studio/2.0.0/M11/wso2-developer-studio_2.0.0.M11_without_dependencies-SNAPSHOT.zip


-- 
Chathuri Wimalasena
Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
email: chath...@wso2.com; phone: +94 772 608 596
blog: http://chathuriw

[Dev] API Manager - Pre alpha 1 available for download

2012-04-01 Thread Sumedha Rubasinghe
Pre alpha 1 pack of WSO2 API Manager can be downloaded from -
http://people.wso2.com/~sumedha/builds/am/02-04-2012/wso2am-1.0.0-SNAPSHOT.zip

A README on how to test functionality is available inside
samples/TwitterSearch (also available @
http://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/apimgt/modules/samples/TwitterSearch/README.txt
 )

We welcome feedback in the form of JIRA issues via
https://wso2.org/jira/browse/APISTORE

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


[Dev] Error with running web app on Stratos Live

2012-04-01 Thread Kasun Perera
On Sun, Apr 1, 2012 at 8:49 AM, Supun Malinga  wrote:

> Hi Kasun,
>
> On Fri, Mar 30, 2012 at 1:28 PM, Kasun Perera wrote:
>
>> Hi supun
>>
>> About reading files- I can Access other tables and read data on data
>> servise server?
>> What I'm doing here is read a PDF file that stored as a Blob and extract
>> the phrases from it, I'm not writing anything to the files.
>>
>
>> I can read the PDF file from database and show it on the webpage, Only
>> thing is can't extract the phrases from it.
>>
>
> Can you mention exact steps for extracting phrases in your webapp.. (from
> the webapp UI)
>


when go go to this URL
http://appserver.stratoslive.wso2.com/t/karsha.opensource.lk/webapps/KarshaMarkUp/login
you can login with usrname-admin paswd-admin

then on leftside menu go to Select Doc submenu
then you can select a document from drop down menu and press Extract phrases.
It will show a blank page but it should show extracted phrses in a table.

The document names for above dropdown List comes from stratos database, if
you go to
http://appserver.stratoslive.wso2.com/t/karsha.opensource.lk/webapps/KarshaMarkUp/classify
the
content is comming from the database. So i think database connection is
working

>
> Also can you point to the stratos DSS database in your local webapp and
> see if it's working?
>

I havent installed Stratos DSS localy I ll install and try that
or can use jdbc:mysql://
rss1.stratoslive.wso2.com/karshamarkuptool_karsha_opensource_lk URL
to access database direcly from local setup? using this URL directly from
local set up is not working for any functionality

>
>> here is my project folder
>> https://docs.google.com/open?id=0B5A0W5SUykQqbGc0Vlg5UDJSTHFiTzdIV0hGZEZnQQ
>>
>> If you want to run here is the login details on Stratoes Live server
>> username- kas...@karsha.opensource.lk
>> passwd-  Haknrr4k
>>
>> thanks
>>
>>
>>> Hi Supun
>>> I Have attached .war file.  you want the project folder?
>>>  database is at dataservise server.
>>>
>>>
>>>
>>> thanks
>>>
>>>
>>>
 On Fri, Mar 30, 2012 at 12:02 PM, Supun Malinga wrote:

> Hi,
>
> Looks like you have some file conversion there. From where these files
> are being read?. If it needs to access the server file system, security
> manager will block this.
> Are you running your local setup with security manager enabled?
>
> thanks,
>
>
> On Fri, Mar 30, 2012 at 11:50 AM, Kasun Perera 
> wrote:
>
>> Hi Supun
>>
>> I'm getting this error on webpage now when running my web app on
>> StratoesLive App server, but I'm not getting this error on the local App
>> server. A bug? Although I have debugged on my local machine I can't find
>> the error.
>>
>> code- http://paste.org/47396
>>
>> type Exception report
>>
>> message
>>
>> description The server encountered an internal error () that
>> prevented it from fulfilling this request.
>>
>> exception
>>
>> java.lang.NullPointerException
>>  controler.ControlerServelet.pdfDocToSentence(ControlerServelet.java:755)
>>   // I have mentioned thses two lines
>>  controler.ControlerServelet.doPost(ControlerServelet.java:585)
>>//   in
>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>>  sun.reflect.GeneratedMethodAccessor1724.invoke(Unknown Source)
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>  java.lang.reflect.Method.invoke(Method.java:597)
>> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:273)
>>
>> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:270)
>> java.security.AccessController.doPrivileged(Native Method)
>>  javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>>
>> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:305)
>>
>> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
>> note The full stack trace of the root cause is available in the
>> Apache Tomcat/7.0.14 logs.
>>
>>
>>
>> On Thu, Mar 29, 2012 at 4:52 PM, Kasun Perera 
>> wrote:
>>
>>> Hi Supun
>>>
>>> Yes I have the external libraries in the META-INF/lib of my
>>> application. I have used the same .war file in locally running App 
>>> server,
>>> There I don't have this problem
>>>
>>>  The log file is attached
>>>
>>> Thanks
>>>
>>>
>>> On Thu, Mar 29, 2012 at 4:39 PM, Supun Malinga wrote:
>>>
 Hi Kasun,

 On Thu, Mar 29, 2012 at 4:28 PM, Kasun Perera >>> > wrote:

> Hi
>
> I have deployed web app on Stratos Live I can run the web app
> there. But When I go to a particular a jsp page that calling to 
> external
> libraris(Stanforsp

Re: [Dev] Let's increase default value for session timeout

2012-04-01 Thread Sanjiva Weerawarana
Guys we also ship the product with admin/admin as the password. I'm willing
to bet there are tons of production machines with this unchanged :(.

If the security risk at hand is that someone will leave their machine
unlocked and someone else can come in and access the admin console because
the session didn't time out honestly for me that's a theoretical problem.
Shouldn't the person have a screen saver + lock on their machine?? Any real
admin would.

I'm +1 for changing the default to 30 mins. The session growth scenario is
real but again very unlikely for the console .. many people don't log in at
once to a boring server console, even if its as hot as ours!

Sanjiva.

On Mon, Apr 2, 2012 at 1:18 AM, Amila Jayasekara  wrote:

> On Sun, Apr 1, 2012 at 11:51 PM, Tharindu Mathew 
> wrote:
> >
> >
> > On Sun, Apr 1, 2012 at 9:26 PM, Amila Jayasekara 
> wrote:
> >>
> >> On Fri, Mar 30, 2012 at 3:34 PM, Dimuthu Leelarathne  >
> >> wrote:
> >> > Hi,
> >> >
> >> > I am - 0 for this. There are some negative effects of increasing
> session
> >> > timeout.
> >> >
> >> > 1) Objects we keep in the session can grow. This will be multiplied by
> >> > the
> >> > number of users with active sessions
> >> > 2) Security risk is marginally increase.
> >>
> >> I agree with Dimuthu. In default implementation we should ship
> >> products with maximum security. If needed users can change security
> >> levels by modifying config files.
> >>
> > I disagree. In default implementation we should ship products with
> maximum
> > usability. If needed users can change security by modifying config files.
>
> Hi Tharindu,
>
> I was not comparing security and usability. Of course the product must
> be usable with maximum security.
> If we ship the product with medium/low security level, most probably,
> users will get to know that, they have to tweak some configurations
> in-order to achieve maximum security, only after facing an attack.
> Therefore it is better to ship default configurations with maximum
> available security. When I say maximum security it doesnt mean user is
> not allowed to login. User will get all available functionalities with
> maximum security. This is the norm followed by most of other software
> products. (Including Operating Systems, such as Windows)
> E.g :-
>Shipping product with support for only strong SSL ciphers. If a
> customer want to support for medium/low SSL cipher, he/she have to
> change configurations. But in default configuration, we should only
> support strong SSL ciphers, so that an attacker will be unable to
> carry out a brute force attack.
>
> For this particular scenario, one vulnerability I see is, some
> UN-authorized user gaining access to management console after keeping
> user's machine unlocked for some time. I am not quite sure about the
> correct value for the session time. But if we are increasing that
> value, we need to reason out the “new value” properly, based on real
> usage.
>
> Thanks
> AmilaJ
>
> >>
> >> Thanks
> >> AmilaJ
> >>
> >> >
> >> > tx,
> >> > dimuthu
> >> >
> >> >
> >> >
> >> > On Fri, Mar 30, 2012 at 3:26 PM, Amila Suriarachchi 
> >> > wrote:
> >> >>
> >> >>
> >> >>
> >> >> On Thu, Mar 29, 2012 at 3:21 PM, Tharindu Mathew 
> >> >> wrote:
> >> >>>
> >> >>> Hi,
> >> >>>
> >> >>> Let's do $subject. What we ship by default is a toy value good for
> >> >>> running samples.
> >> >>>
> >> >>> When we are doing some lengthy work it will definitely timeout in
> the
> >> >>> middle of work and this is really frustrating for users.
> >> >>>
> >> >>> It should at least be 30 mins IMO
> >> >>
> >> >>
> >> >> +1
> >> >>
> >> >> thanks,
> >> >> Amila.
> >> >>>
> >> >>>
> >> >>> --
> >> >>> Regards,
> >> >>>
> >> >>> Tharindu
> >> >>>
> >> >>> blog: http://mackiemathew.com/
> >> >>> M: +9459908
> >> >>>
> >> >>>
> >> >>> ___
> >> >>> Dev mailing list
> >> >>> Dev@wso2.org
> >> >>> http://wso2.org/cgi-bin/mailman/listinfo/dev
> >> >>>
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> 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
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > Dimuthu Leelarathne
> >> > Technical Lead
> >> >
> >> > WSO2, Inc. (http://wso2.com)
> >> > email: dimut...@wso2.com
> >> >
> >> > Lean . Enterprise . Middleware
> >> >
> >> >
> >> > ___
> >> > Dev mailing list
> >> > Dev@wso2.org
> >> > http://wso2.org/cgi-bin/mailman/listinfo/dev
> >> >
> >>
> >>
> >>
> >> --
> >> Mobile : +94773330538
> >> ___
> >> Dev mailing list
> >> Dev@wso2.org
> >> http://wso2.org/cgi-bin/mailman/listinfo/dev
> >
> >
> >
> >
> > --
> > Regards,
> >
> > Tharindu
> >

Re: [Dev] Cannot add integration tests to LB due to authentication failure

2012-04-01 Thread Amila Jayasekara
On Mon, Apr 2, 2012 at 7:24 AM, Asela Pathberiya  wrote:
> As Azeez explained ,  Issue is that the service dispatching does not
> happen correctly, because in LB some of the normal normal dispatch
> handlers has been removed, Therefore when UI authenticator,  calls the
> "LoggedUserInfoAdmin" admin service in BE, it goes to _SynapseService.
> So AuthenticationHandler treats this as generic service and
> any authentication would not be happened.

Understood.

Thanks
AmilaJ

>
> Thanks,
> Asela.
>
> On Sun, Apr 1, 2012 at 10:23 PM, Amila Jayasekara  wrote:
>>
>> On Sun, Apr 1, 2012 at 10:11 PM, Kathiravelu Pradeeban
>>  wrote:
>> >
>> >
>> > On Thu, Mar 29, 2012 at 7:52 PM, Afkham Azeez  wrote:
>> >>
>> >> For some reason, authentication is failing when you try to login to the
>> >> LB. There is no error stacktrace. Only an error message which says that
>> >
>> >
>> > Hi Azeez,
>> > How are you trying to log in to the load balancer? Logging into LB
>> > through
>> > the management console is impossible, since the LB-1.0 times, as all the
>> > FE
>> > features are removed.
>> >
>> > I don't think it was possible at all, at any time, and the log in was
>> > never
>> > tested, as it was not intended to log in to an LB.
>> >
>> > Do you plan to have some feature that requires a management console or
>> > FE,
>> > or logging into the load balancer using the BE service calls, for some
>> > reason? Otherwise, I think the log in test is inapplicable to LB.
>> >
>> > Let me know, if we have misunderstood your requirement.
>>
>> But, if LB is build on top of carbon core, we should be able to login
>> to LB (irrespective of the functionality of LB). Let me also
>> investigate this.
>>
>> @Dimuthu, if you have make any progress on this issue, please let me know.
>>
>> Thanks
>> AmilaJ
>>
>> >
>> > Thank you.
>> > Regards,
>> > Pradeeban.
>> >
>> >>
>> >> the authenticators.xml file is not found, and the default one is used.
>> >>
>> >> On a related note, that message about using the default
>> >> authenticators.xml
>> >> file should just be a debug level message. Most frameworks use default
>> >> config files, and don't print error messages if a config file is not
>> >> explicitly added.
>> >>
>> >> Can somebody look into this?
>> >>
>> >> --
>> >> Afkham Azeez
>> >> Director of Architecture; WSO2, Inc.; http://wso2.com
>> >> Member; Apache Software Foundation; http://www.apache.org/
>> >>
>> >> email: az...@wso2.com cell: +94 77 3320919
>> >> blog: http://blog.afkham.org
>> >> twitter: http://twitter.com/afkham_azeez
>> >> linked-in: http://lk.linkedin.com/in/afkhamazeez
>> >>
>> >> Lean . Enterprise . Middleware
>> >>
>> >>
>> >> ___
>> >> Dev mailing list
>> >> Dev@wso2.org
>> >> http://wso2.org/cgi-bin/mailman/listinfo/dev
>> >>
>> >
>> >
>> >
>> > --
>> > Kathiravelu Pradeeban.
>> > Software Engineer.
>> > Cloud Technologies Team.
>> > WSO2 Inc.
>> >
>> > Blog: [Llovizna] http://kkpradeeban.blogspot.com/
>> > M: +94 776 477 976
>> >
>>
>>
>>
>> --
>> Mobile : +94773330538
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>



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


Re: [Dev] Cannot add integration tests to LB due to authentication failure

2012-04-01 Thread Asela Pathberiya
As Azeez explained ,  Issue is that the service dispatching does not
happen correctly, because in LB some of the normal normal dispatch
handlers has been removed, Therefore when UI authenticator,  calls the
"LoggedUserInfoAdmin" admin service in BE, it goes to _SynapseService.
So AuthenticationHandler
treats this as generic service and any authentication would not be happened.

Thanks,
Asela.

On Sun, Apr 1, 2012 at 10:23 PM, Amila Jayasekara  wrote:

> On Sun, Apr 1, 2012 at 10:11 PM, Kathiravelu Pradeeban
>  wrote:
> >
> >
> > On Thu, Mar 29, 2012 at 7:52 PM, Afkham Azeez  wrote:
> >>
> >> For some reason, authentication is failing when you try to login to the
> >> LB. There is no error stacktrace. Only an error message which says that
> >
> >
> > Hi Azeez,
> > How are you trying to log in to the load balancer? Logging into LB
> through
> > the management console is impossible, since the LB-1.0 times, as all the
> FE
> > features are removed.
> >
> > I don't think it was possible at all, at any time, and the log in was
> never
> > tested, as it was not intended to log in to an LB.
> >
> > Do you plan to have some feature that requires a management console or
> FE,
> > or logging into the load balancer using the BE service calls, for some
> > reason? Otherwise, I think the log in test is inapplicable to LB.
> >
> > Let me know, if we have misunderstood your requirement.
>
> But, if LB is build on top of carbon core, we should be able to login
> to LB (irrespective of the functionality of LB). Let me also
> investigate this.
>
> @Dimuthu, if you have make any progress on this issue, please let me know.
>
> Thanks
> AmilaJ
>
> >
> > Thank you.
> > Regards,
> > Pradeeban.
> >
> >>
> >> the authenticators.xml file is not found, and the default one is used.
> >>
> >> On a related note, that message about using the default
> authenticators.xml
> >> file should just be a debug level message. Most frameworks use default
> >> config files, and don't print error messages if a config file is not
> >> explicitly added.
> >>
> >> Can somebody look into this?
> >>
> >> --
> >> Afkham Azeez
> >> Director of Architecture; WSO2, Inc.; http://wso2.com
> >> Member; Apache Software Foundation; http://www.apache.org/
> >>
> >> email: az...@wso2.com cell: +94 77 3320919
> >> blog: http://blog.afkham.org
> >> twitter: http://twitter.com/afkham_azeez
> >> linked-in: http://lk.linkedin.com/in/afkhamazeez
> >>
> >> Lean . Enterprise . Middleware
> >>
> >>
> >> ___
> >> Dev mailing list
> >> Dev@wso2.org
> >> http://wso2.org/cgi-bin/mailman/listinfo/dev
> >>
> >
> >
> >
> > --
> > Kathiravelu Pradeeban.
> > Software Engineer.
> > Cloud Technologies Team.
> > WSO2 Inc.
> >
> > Blog: [Llovizna] http://kkpradeeban.blogspot.com/
> > M: +94 776 477 976
> >
>
>
>
> --
> Mobile : +94773330538
> ___
> 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] [Bamboo-Build] WSO2 Carbon > P2-Repo > #17 has FAILED. Change made by sumedha.

2012-04-01 Thread Bamboo

---
WSO2 Carbon > P2-Repo > #17 failed.
---
Code has been updated by sumedha.
No failed tests found, a possible compilation error.

http://builder4.us1.wso2.org:/bamboo/browse/WSO2CARBON-P2REPO-17/


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


--
Code Changes
--
sumedha (124538):

>Sample user populator script & an Ant build file to run it



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


Re: [Dev] Let's increase default value for session timeout

2012-04-01 Thread Amila Jayasekara
On Sun, Apr 1, 2012 at 11:51 PM, Tharindu Mathew  wrote:
>
>
> On Sun, Apr 1, 2012 at 9:26 PM, Amila Jayasekara  wrote:
>>
>> On Fri, Mar 30, 2012 at 3:34 PM, Dimuthu Leelarathne 
>> wrote:
>> > Hi,
>> >
>> > I am - 0 for this. There are some negative effects of increasing session
>> > timeout.
>> >
>> > 1) Objects we keep in the session can grow. This will be multiplied by
>> > the
>> > number of users with active sessions
>> > 2) Security risk is marginally increase.
>>
>> I agree with Dimuthu. In default implementation we should ship
>> products with maximum security. If needed users can change security
>> levels by modifying config files.
>>
> I disagree. In default implementation we should ship products with maximum
> usability. If needed users can change security by modifying config files.

Hi Tharindu,

I was not comparing security and usability. Of course the product must
be usable with maximum security.
If we ship the product with medium/low security level, most probably,
users will get to know that, they have to tweak some configurations
in-order to achieve maximum security, only after facing an attack.
Therefore it is better to ship default configurations with maximum
available security. When I say maximum security it doesnt mean user is
not allowed to login. User will get all available functionalities with
maximum security. This is the norm followed by most of other software
products. (Including Operating Systems, such as Windows)
E.g :-
Shipping product with support for only strong SSL ciphers. If a
customer want to support for medium/low SSL cipher, he/she have to
change configurations. But in default configuration, we should only
support strong SSL ciphers, so that an attacker will be unable to
carry out a brute force attack.

For this particular scenario, one vulnerability I see is, some
UN-authorized user gaining access to management console after keeping
user's machine unlocked for some time. I am not quite sure about the
correct value for the session time. But if we are increasing that
value, we need to reason out the “new value” properly, based on real
usage.

Thanks
AmilaJ

>>
>> Thanks
>> AmilaJ
>>
>> >
>> > tx,
>> > dimuthu
>> >
>> >
>> >
>> > On Fri, Mar 30, 2012 at 3:26 PM, Amila Suriarachchi 
>> > wrote:
>> >>
>> >>
>> >>
>> >> On Thu, Mar 29, 2012 at 3:21 PM, Tharindu Mathew 
>> >> wrote:
>> >>>
>> >>> Hi,
>> >>>
>> >>> Let's do $subject. What we ship by default is a toy value good for
>> >>> running samples.
>> >>>
>> >>> When we are doing some lengthy work it will definitely timeout in the
>> >>> middle of work and this is really frustrating for users.
>> >>>
>> >>> It should at least be 30 mins IMO
>> >>
>> >>
>> >> +1
>> >>
>> >> thanks,
>> >> Amila.
>> >>>
>> >>>
>> >>> --
>> >>> Regards,
>> >>>
>> >>> Tharindu
>> >>>
>> >>> blog: http://mackiemathew.com/
>> >>> M: +9459908
>> >>>
>> >>>
>> >>> ___
>> >>> Dev mailing list
>> >>> Dev@wso2.org
>> >>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>> >>>
>> >>
>> >>
>> >>
>> >> --
>> >> 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
>> >>
>> >
>> >
>> >
>> > --
>> > Dimuthu Leelarathne
>> > Technical Lead
>> >
>> > WSO2, Inc. (http://wso2.com)
>> > email: dimut...@wso2.com
>> >
>> > Lean . Enterprise . Middleware
>> >
>> >
>> > ___
>> > Dev mailing list
>> > Dev@wso2.org
>> > http://wso2.org/cgi-bin/mailman/listinfo/dev
>> >
>>
>>
>>
>> --
>> Mobile : +94773330538
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
>
> --
> Regards,
>
> Tharindu
>
> blog: http://mackiemathew.com/
> M: +9459908
>



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


Re: [Dev] Let's increase default value for session timeout

2012-04-01 Thread Tharindu Mathew
On Sun, Apr 1, 2012 at 9:26 PM, Amila Jayasekara  wrote:

> On Fri, Mar 30, 2012 at 3:34 PM, Dimuthu Leelarathne 
> wrote:
> > Hi,
> >
> > I am - 0 for this. There are some negative effects of increasing session
> > timeout.
> >
> > 1) Objects we keep in the session can grow. This will be multiplied by
> the
> > number of users with active sessions
> > 2) Security risk is marginally increase.
>
> I agree with Dimuthu. In default implementation we should ship
> products with maximum security. If needed users can change security
> levels by modifying config files.
>
> I disagree. In default implementation we should ship products with maximum
usability. If needed users can change security by modifying config files.

> Thanks
> AmilaJ
>
> >
> > tx,
> > dimuthu
> >
> >
> >
> > On Fri, Mar 30, 2012 at 3:26 PM, Amila Suriarachchi 
> wrote:
> >>
> >>
> >>
> >> On Thu, Mar 29, 2012 at 3:21 PM, Tharindu Mathew 
> >> wrote:
> >>>
> >>> Hi,
> >>>
> >>> Let's do $subject. What we ship by default is a toy value good for
> >>> running samples.
> >>>
> >>> When we are doing some lengthy work it will definitely timeout in the
> >>> middle of work and this is really frustrating for users.
> >>>
> >>> It should at least be 30 mins IMO
> >>
> >>
> >> +1
> >>
> >> thanks,
> >> Amila.
> >>>
> >>>
> >>> --
> >>> Regards,
> >>>
> >>> Tharindu
> >>>
> >>> blog: http://mackiemathew.com/
> >>> M: +9459908
> >>>
> >>>
> >>> ___
> >>> Dev mailing list
> >>> Dev@wso2.org
> >>> http://wso2.org/cgi-bin/mailman/listinfo/dev
> >>>
> >>
> >>
> >>
> >> --
> >> 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
> >>
> >
> >
> >
> > --
> > Dimuthu Leelarathne
> > Technical Lead
> >
> > WSO2, Inc. (http://wso2.com)
> > email: dimut...@wso2.com
> >
> > Lean . Enterprise . Middleware
> >
> >
> > ___
> > Dev mailing list
> > Dev@wso2.org
> > http://wso2.org/cgi-bin/mailman/listinfo/dev
> >
>
>
>
> --
> Mobile : +94773330538
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Regards,

Tharindu

blog: http://mackiemathew.com/
M: +9459908
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Cannot add integration tests to LB due to authentication failure

2012-04-01 Thread Amila Jayasekara
On Sun, Apr 1, 2012 at 10:11 PM, Kathiravelu Pradeeban
 wrote:
>
>
> On Thu, Mar 29, 2012 at 7:52 PM, Afkham Azeez  wrote:
>>
>> For some reason, authentication is failing when you try to login to the
>> LB. There is no error stacktrace. Only an error message which says that
>
>
> Hi Azeez,
> How are you trying to log in to the load balancer? Logging into LB through
> the management console is impossible, since the LB-1.0 times, as all the FE
> features are removed.
>
> I don't think it was possible at all, at any time, and the log in was never
> tested, as it was not intended to log in to an LB.
>
> Do you plan to have some feature that requires a management console or FE,
> or logging into the load balancer using the BE service calls, for some
> reason? Otherwise, I think the log in test is inapplicable to LB.
>
> Let me know, if we have misunderstood your requirement.

But, if LB is build on top of carbon core, we should be able to login
to LB (irrespective of the functionality of LB). Let me also
investigate this.

@Dimuthu, if you have make any progress on this issue, please let me know.

Thanks
AmilaJ

>
> Thank you.
> Regards,
> Pradeeban.
>
>>
>> the authenticators.xml file is not found, and the default one is used.
>>
>> On a related note, that message about using the default authenticators.xml
>> file should just be a debug level message. Most frameworks use default
>> config files, and don't print error messages if a config file is not
>> explicitly added.
>>
>> Can somebody look into this?
>>
>> --
>> Afkham Azeez
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>>
>> email: az...@wso2.com cell: +94 77 3320919
>> blog: http://blog.afkham.org
>> twitter: http://twitter.com/afkham_azeez
>> linked-in: http://lk.linkedin.com/in/afkhamazeez
>>
>> Lean . Enterprise . Middleware
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
>
> --
> Kathiravelu Pradeeban.
> Software Engineer.
> Cloud Technologies Team.
> WSO2 Inc.
>
> Blog: [Llovizna] http://kkpradeeban.blogspot.com/
> M: +94 776 477 976
>



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


Re: [Dev] Cannot add integration tests to LB due to authentication failure

2012-04-01 Thread Kathiravelu Pradeeban
On Thu, Mar 29, 2012 at 7:52 PM, Afkham Azeez  wrote:

> For some reason, authentication is failing when you try to login to the
> LB. There is no error stacktrace. Only an error message which says that


Hi Azeez,
How are you trying to log in to the load balancer? Logging into LB through
the management console is impossible, since the LB-1.0 times, as all the FE
features are removed.

I don't think it was possible at all, at any time, and the log in was never
tested, as it was not intended to log in to an LB.

Do you plan to have some feature that requires a management console or FE,
or logging into the load balancer using the BE service calls, for some
reason? Otherwise, I think the log in test is inapplicable to LB.

Let me know, if we have misunderstood your requirement.

Thank you.
Regards,
Pradeeban.


> the authenticators.xml file is not found, and the default one is used.
>
> On a related note, that message about using the default authenticators.xml
> file should just be a debug level message. Most frameworks use default
> config files, and don't print error messages if a config file is not
> explicitly added.
>
> Can somebody look into this?
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * **
> email: **az...@wso2.com* * cell: +94 77 3320919
> blog: **http://blog.afkham.org* *
> twitter: **http://twitter.com/afkham_azeez*
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Kathiravelu Pradeeban.
Software Engineer.
Cloud Technologies Team.
WSO2 Inc.

Blog: [Llovizna] http://kkpradeeban.blogspot.com/
M: +94 776 477 976
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to create a durable subscriber for a topic in WSO2 MB

2012-04-01 Thread Amila Maha Arachchi
Hi Waruna,

I found this [1]. It says TopicSession.createDurableSubscriber instead of
TopicSession.createSubscriber

[1]
http://docs.oracle.com/javaee/1.3/jms/tutorial/1_3_1-fcs/doc/advanced.html#1024758
Regards,
AmilaM.

On Sun, Apr 1, 2012 at 10:58 AM, Waruna Ranasinghe  wrote:

> Link to the tutorial
>
> [1] - http://wso2.org/library/articles/2011/12/wso2-esb-example-pubsub-soa
>
>
> On Sun, Apr 1, 2012 at 10:44 AM, Waruna Ranasinghe wrote:
>
>> Hi folks,
>>
>> I tried to extend the JMS Java subscriber, provided at tutorial [1], to
>> be a durable subscriber.
>> I added the following property
>>   properties.put("transport.jms.SubscriptionDurable", true);
>> Then stop the jms client and send some messages to the topic. But when I
>> start the jms client, it does not receive the messages.
>>
>> Can some one let me know how to create a durable subscriber.
>> My requirement is to receive the messages when the jms subscriber comes
>> online.
>>
>>
> Thanks,
>> Waruna
>>
>>
>> --
>> -
>> Waruna Ranasinghe
>> Senior Software Engineer, WSO2
>>
>> Mobile: +94 724 318285
>> BLOG: http://warunapw.blogspot.com
>>
>> www.wso2.com - "Lean . Enterprise . Middleware"
>>
>
>
>
> --
> -
> Waruna Ranasinghe
> Senior Software Engineer, WSO2
>
> Mobile: +94 724 318285
> BLOG: http://warunapw.blogspot.com
>
> www.wso2.com - "Lean . Enterprise . Middleware"
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Amila Maharachchi*
Senior Software Engineer; WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] BasicAuth security headers vs. AuthenticationAdmin.login

2012-04-01 Thread Amila Jayasekara
On Thu, Mar 29, 2012 at 11:07 PM, Senaka Fernando  wrote:
> Hi all,
>
> Can someone explain in detail how this new mechanism works? Please explain
> how this would be used in UI bundles, and how are we supposed to retrieve
> passwords etc for invoking,
>
> CarbonUtils.setBasicAccessSecurityHeaders(..)

Hi Senaka,

Please, also see "Cleaning up Carbon Authenticator Framework" mail
thread in dev list [1].

[1] 
http://old.nabble.com/Re%3A-Cleaning-up-Carbon-Authenticator-Framework-p33398189.html

Thanks
AmilaJ

>
> Thanks,
> Senaka.
>
> --
> Senaka Fernando
> Product Manager - WSO2 Governance Registry;
> Associate 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
>



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


Re: [Dev] Let's increase default value for session timeout

2012-04-01 Thread Amila Jayasekara
On Fri, Mar 30, 2012 at 3:34 PM, Dimuthu Leelarathne  wrote:
> Hi,
>
> I am - 0 for this. There are some negative effects of increasing session
> timeout.
>
> 1) Objects we keep in the session can grow. This will be multiplied by the
> number of users with active sessions
> 2) Security risk is marginally increase.

I agree with Dimuthu. In default implementation we should ship
products with maximum security. If needed users can change security
levels by modifying config files.

Thanks
AmilaJ

>
> tx,
> dimuthu
>
>
>
> On Fri, Mar 30, 2012 at 3:26 PM, Amila Suriarachchi  wrote:
>>
>>
>>
>> On Thu, Mar 29, 2012 at 3:21 PM, Tharindu Mathew 
>> wrote:
>>>
>>> Hi,
>>>
>>> Let's do $subject. What we ship by default is a toy value good for
>>> running samples.
>>>
>>> When we are doing some lengthy work it will definitely timeout in the
>>> middle of work and this is really frustrating for users.
>>>
>>> It should at least be 30 mins IMO
>>
>>
>> +1
>>
>> thanks,
>> Amila.
>>>
>>>
>>> --
>>> Regards,
>>>
>>> Tharindu
>>>
>>> blog: http://mackiemathew.com/
>>> M: +9459908
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>
>>
>>
>> --
>> 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
>>
>
>
>
> --
> Dimuthu Leelarathne
> Technical Lead
>
> WSO2, Inc. (http://wso2.com)
> email: dimut...@wso2.com
>
> Lean . Enterprise . Middleware
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



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


Re: [Dev] How to use an Endpoint/XSLT file stored in a GReg instance when creating a proxy service with Developer studio?

2012-04-01 Thread Amila Suriarachchi
On Sun, Apr 1, 2012 at 9:01 PM, Amila Suriarachchi  wrote:

>
>
> On Sun, Apr 1, 2012 at 7:36 PM, Chathuri Wimalasena wrote:
>
>> Hi Amila,
>>
>> To browse the registry, your remote registry instance should be up and
>> running. If your ESB instance is up and runing after mounted, resources
>> should be shown.
>>
>
> This is what I did.
> First started GReg 4.1.1. Then created an ESB Config project. Then start
> adding a Proxy service as shown in the picture.
>
> Now I can observe the following exception in GReg console (Sorry I did not
> look at the GReg console at first time)
>

Sorry this is in Carbon studio console.

thanks,
Amila.

>
> org.wso2.carbonstudio.eclipse.greg.core.exception.UnknownRegistryException:
> Unknown error occured: Method Not Allowed
> at
> org.wso2.carbonstudio.eclipse.greg.base.core.Registry.getResourcesPerCollection(Registry.java:272)
> at
> org.wso2.carbonstudio.eclipse.greg.base.model.RegistryResourceNode.getResourceType(RegistryResourceNode.java:225)
> at
> org.wso2.carbonstudio.eclipse.greg.base.ui.controls.RegistryTreeViewer$1.selectionChanged(RegistryTreeViewer.java:112)
> at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
> at
> org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
> at
> org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2162)
> at
> org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1190)
> at
> org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1220)
> at
> org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:228)
> at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:222)
> at
> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:389)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
> at org.eclipse.jface.window.Window.open(Window.java:801)
> at
> org.wso2.carbonstudio.eclipse.artifact.proxyservice.ui.wizard.AdvancedConfigComposite.SelectRegistryResource(AdvancedConfigComposite.java:800)
> at
> org.wso2.carbonstudio.eclipse.artifact.proxyservice.ui.wizard.AdvancedConfigComposite.access$11(AdvancedConfigComposite.java:789)
> at
> org.wso2.carbonstudio.eclipse.artifact.proxyservice.ui.wizard.AdvancedConfigComposite$6.widgetSelected(AdvancedConfigComposite.java:272)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
> at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
> at org.eclipse.jface.window.Window.open(Window.java:801)
> at
> org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:254)
> at
> org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:274)
> at
> org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
> at
> org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
> at
> org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
> at
> org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
> at
> org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
> at
> org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
> at org.eclipse.ui.internal.Workbench.acc

Re: [Dev] How to use an Endpoint/XSLT file stored in a GReg instance when creating a proxy service with Developer studio?

2012-04-01 Thread Amila Suriarachchi
On Sun, Apr 1, 2012 at 7:36 PM, Chathuri Wimalasena wrote:

> Hi Amila,
>
> To browse the registry, your remote registry instance should be up and
> running. If your ESB instance is up and runing after mounted, resources
> should be shown.
>

This is what I did.
First started GReg 4.1.1. Then created an ESB Config project. Then start
adding a Proxy service as shown in the picture.

Now I can observe the following exception in GReg console (Sorry I did not
look at the GReg console at first time)

org.wso2.carbonstudio.eclipse.greg.core.exception.UnknownRegistryException:
Unknown error occured: Method Not Allowed
at
org.wso2.carbonstudio.eclipse.greg.base.core.Registry.getResourcesPerCollection(Registry.java:272)
at
org.wso2.carbonstudio.eclipse.greg.base.model.RegistryResourceNode.getResourceType(RegistryResourceNode.java:225)
at
org.wso2.carbonstudio.eclipse.greg.base.ui.controls.RegistryTreeViewer$1.selectionChanged(RegistryTreeViewer.java:112)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at
org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
at
org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2162)
at
org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1190)
at
org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1220)
at
org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:228)
at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:222)
at
org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:389)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at
org.wso2.carbonstudio.eclipse.artifact.proxyservice.ui.wizard.AdvancedConfigComposite.SelectRegistryResource(AdvancedConfigComposite.java:800)
at
org.wso2.carbonstudio.eclipse.artifact.proxyservice.ui.wizard.AdvancedConfigComposite.access$11(AdvancedConfigComposite.java:789)
at
org.wso2.carbonstudio.eclipse.artifact.proxyservice.ui.wizard.AdvancedConfigComposite$6.widgetSelected(AdvancedConfigComposite.java:272)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at
org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:254)
at
org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:274)
at
org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at
org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at
org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at
org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
at
org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.

Re: [Dev] BackwardAssociationHandlerTestCase and WSDLTestCase are failing in G-Reg

2012-04-01 Thread Vijitha Kumara
I'm looking into this.

Regards,

On Fri, Mar 30, 2012 at 8:33 PM, Senaka Fernando  wrote:

> Hi Subash, Vijitha,
>
> Please test this on a clean M2 repo, and before you start to compile edit
> the POM in the integration tests for G-Reg and make sure you enable the
> excluded tests. If we can reproduce this issue, it shouldn't be hard figure
> out how this broke.
>
> Thanks,
> Senaka.
>
>
> On Fri, Mar 30, 2012 at 8:12 PM, Senaka Fernando  wrote:
>
>> Hi all,
>>
>> I have moved it. The new issue can be accessed from
>> https://wso2.org/jira/browse/CARBON-12758, and also the old issue ID.
>>
>> Thanks,
>> Senaka.
>>
>>
>> On Fri, Mar 30, 2012 at 7:53 PM, Sameera Jayasoma wrote:
>>
>>> +1. Senaka, please create these issues under CARBON project as L1s.
>>> Otherwise, its hard to track these stuff.
>>>
>>>  Thanks,
>>> Sameera.
>>>
>>> On Fri, Mar 30, 2012 at 7:10 PM, Charitha Kankanamge 
>>> wrote:
>>>
 Hi Senaka,
 Should not these failures reported as CARBON jira instead of product
 specific JIRA? Have we changed our process of reporting JIRAs in C4
 release? Or am I missing something?

 Thanks,
 Charitha


 On Friday, March 30, 2012, Senaka Fernando wrote:

> FYI,  https://wso2.org/jira/browse/REGISTRY-717
>
> Thanks,
> Senaka.
>
> On Fri, Mar 30, 2012 at 5:35 PM, Senaka Fernando wrote:
>
>> Hi Subash,
>>
>> Can you have a look into this? I tried this out with a build starting
>> from orbit -> kernel -> platform, and was unable to reproduce.
>>
>> Thanks,
>> Senaka.
>>
>> --
>> *Senaka Fernando*
>> Product Manager - WSO2 Governance Registry;
>> Associate 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
>>
>>
>
>
> --
> *Senaka Fernando*
> Product Manager - WSO2 Governance Registry;
> Associate 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
>
>

 --
 Charitha Kankanamge
 cell: +94 718 359 265
 blog: http://charithaka.blogspot.com 


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


>>>
>>>
>>> --
>>> Sameera Jayasoma
>>> Technical Lead and Product Manager, WSO2 Carbon
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email: same...@wso2.com
>>> blog: http://tech.jayasoma.org
>>>
>>>
>>> Lean . Enterprise . Middleware
>>>
>>
>>
>>
>> --
>> *Senaka Fernando*
>> Product Manager - WSO2 Governance Registry;
>> Associate 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
>>
>>
>
>
> --
> *Senaka Fernando*
> Product Manager - WSO2 Governance Registry;
> Associate 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
>
>


-- 
Vijitha Kumara
Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
email: viji...@wso2.com

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


Re: [Dev] How to use an Endpoint/XSLT file stored in a GReg instance when creating a proxy service with Developer studio?

2012-04-01 Thread Chathuri Wimalasena
Hi Amila,

To browse the registry, your remote registry instance should be up and
running. If your ESB instance is up and runing after mounted, resources
should be shown.

Regards,
Chathuri

On Sun, Apr 1, 2012 at 3:33 PM, Amila Suriarachchi  wrote:

> hi,
>
> I want to use some registry key references from a GReg instance when
> creating a proxy service. Here I assume that the ESB instance I am going to
> deploy this
> .car file has mounted the same GReg instance properly.
>
> I tried to do that as show in the attachment. But that does not show the
> entries under governance registry.
>
> How can I do this?
>
> 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
>
>


-- 
Chathuri Wimalasena
Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
email: chath...@wso2.com; phone: +94 772 608 596
blog: http://chathuriwimalasena.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error while retrieving WSDL in Carbon 4.0.0 Snapshot

2012-04-01 Thread Shelan Perera
Hi,

I am getting following error [1] while trying to retrieve a WSDL . getting
 ?wsdl fails while wsdl2 is working. I suspect this is due to
some error in trunk build as same configuration worked in 3.2.0. Please
advice if i am doing anything wrong.

I saw the same error in mail discussion [2]. So is this fixed now?

Environment
---
Carbon 4.0.0 Snapshot with Cassandra feature installed.


[1]

Apr 1, 2012 6:57:06 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [delegationServlet] in context with
path [/] threw exception
org.apache.axis2.AxisFault: 0
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at
org.wso2.carbon.core.transports.CarbonServlet.doGet(CarbonServlet.java:133)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
 at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:45)
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:224)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
 at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:60)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:155)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
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:987)
 at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1600)
 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.ArrayIndexOutOfBoundsException: 0
at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:1651)
 at
org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1421)
at
org.wso2.carbon.core.transports.util.Wsdl11Processor$1.printWSDL(Wsdl11Processor.java:43)
 at
org.wso2.carbon.core.transports.util.AbstractWsdlProcessor.printWSDL(AbstractWsdlProcessor.java:90)
at
org.wso2.carbon.core.transports.util.Wsdl11Processor.process(Wsdl11Processor.java:57)
 at
org.wso2.carbon.core.transports.CarbonServlet.processWithGetProcessor(CarbonServlet.java:160)
at
org.wso2.carbon.core.transports.CarbonServlet.doGet(CarbonServlet.java:123)
 ... 25 more


-- 
*Shelan Perera*

Software Engineer
**
*WSO2, Inc. : wso2.com*
lean.enterprise.middleware.

*Home Page*  :shelan.org
*Blog* : blog.shelan.org
*Linked-i*n  :http://www.linkedin.com/pub/shelan-perera/a/194/465
*Twitter* :https://twitter.com/#!/shelan

*Mobile*  : +94 772 604 402





http://org.apache.axis2/xsd"; elementFormDefaultQualified="true"/>

https
http


This service will help to access Cassandra's data store for browsing and modifying it.

org.wso2.carbon.cassandra.mgt.CassandraKeyspaceAdmin
false

http://www.w3.org/ns/wsdl/robust-in-only";
 class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
http://www.w3.org/ns/wsdl/in-only";
 class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
http://www.w3.org/ns/wsdl/in-out";
 class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>

 




http://org.apache.axis2/xsd"; elementFormDefaultQualified="true"/>

https

org.wso2.carbon.cassandra.mgt.CassandraClusterAdmin
false

http://www.w3.org/ns/wsdl/robust-in-only";
 class="org.apache

[Dev] Windows Debugging Tip

2012-04-01 Thread Senaka Fernando
Hi all,

For those on Windows, you might have noticed that you cannot create a
separation between lines using the ENTER key, to separate stack traces.
This can be done on the Linux shell, and that was somewhat inconvenient.
But luckily, the OSGi console in Carbon works much better on Windows. It
retains command history and also accepts the ENTER key, so debugging is
much much easier that way. Simply start the server using -DosgiConsole.

HTH.

Thanks,
Senaka.

-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate 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


[Dev] [Bamboo-Build] Developer-Studio > Eclipse-Tools > #26 was SUCCESSFUL

2012-04-01 Thread Bamboo

---
Developer-Studio > Eclipse-Tools > #26 was successful.
---
This build was manually triggered by BambooBuilder.

http://builder4.us1.wso2.org:/bamboo/browse/DS0001-DSET01-26/



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


Re: [Dev] How to use an Endpoint/XSLT file stored in a GReg instance when creating a proxy service with Developer studio?

2012-04-01 Thread Senaka Fernando
Hi all,

Can those from ESB/G-Reg respond to this. By the way things like this
should be obvious to do. Right now, ESB and G-Reg are not 100% in-sync for
these types of operations, and we need to follow some best practices to get
it right. We should,

1. Improve documentation on those.
2. Make the simplest case very easy and obvious.

Its better if we can sort these out for this release.

Thanks,
Senaka.

On Sun, Apr 1, 2012 at 3:33 PM, Amila Suriarachchi  wrote:

> hi,
>
> I want to use some registry key references from a GReg instance when
> creating a proxy service. Here I assume that the ESB instance I am going to
> deploy this
> .car file has mounted the same GReg instance properly.
>
> I tried to do that as show in the attachment. But that does not show the
> entries under governance registry.
>
> How can I do this?
>
> 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
>
>


-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate 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


[Dev] [Bamboo-Build] WSO2 Carbon > P2-Repo > #16 has FAILED. Change made by 53 authors.

2012-04-01 Thread Bamboo

---
WSO2 Carbon > P2-Repo > #16 failed.
---
This build was manually triggered by BambooBuilder.
No failed tests found, a possible compilation error.

http://builder4.us1.wso2.org:/bamboo/browse/WSO2CARBON-P2REPO-16/


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


--
Code Changes
--
johann (124302):

>removing dependency usage.client

nuwan (124478):

>image upload fix

nuwan (124322):

>axis2client xml location fix



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


Re: [Dev] [Stratos-dev] Tenant Aware load balance implementation

2012-04-01 Thread Afkham Azeez
This is different. The main sequence may not change at all, but the
loadbalancer.conf file will be changed to modify the tenant partitioning.
We will need a separate hot deployer to handle the loadbalancer config
change.

On Sun, Apr 1, 2012 at 4:54 PM, Sanjeewa Malalgoda wrote:

> yes we can make it dynamic. Once main sequence updated it pick up
> loadbalancer.xml changes and work according to that. So we can improve that
> or we can update config as per admin request.
> Thanks.
>
>
> On Sun, Apr 1, 2012 at 3:06 PM, Paul Fremantle  wrote:
>
>> Great. I think that is what one of our other customers is looking for
>> right now.
>>
>> Paul
>>
>>
>> On 1 April 2012 10:34, Afkham Azeez  wrote:
>>
>>>
>>>
>>> On Sun, Apr 1, 2012 at 2:57 PM, Paul Fremantle  wrote:
>>>
 Let me understand: can I use this to put a specific tenant to cluster
 and no-one else?
>>>
>>>
>>> Yes, you can define a cluster that contains a single tenant. So, we can
>>> now support private jet mode. The number of nodes in that cluster is done
>>> through the autoscaling configuration. Does that answer your question?
>>>
>>>

 Also: can the config be dynamic? e.g. can I modify this definition at
 runtime? Or only static?

>>>
>>> Tenant partition definitions are static. Processes which have loaded a
>>> tenant cannot unload that tenant and reload it with the state etc. on a
>>> different cluster. However, I believe we can support hotUpdate of the
>>> loadbalancer.conf file, which will allow you to change the tenant
>>> partitions, so that new requests can be handled by a different cluster. The
>>> way we have implemented it currently, only the LB is aware of the
>>> partitioning and not the worker nodes.
>>>
>>>

 Paul

 On 12 March 2012 13:31, Sanjeewa Malalgoda  wrote:

> Hi,
>
> Here i'm attaching the design diagram of this implementation, And
> configurations will be as follows.
>
> *01.LoadBalancer.xml file we can define domain and corresponding
> clusters and their tenant ranges as follows*
>
>  
> 
> appserver.cloud-test.wso2.com
> 
>  
> 
> 
>  wso2.as1.domain
> 1,100
>  
> 
> wso2.as2.domain
>  101,200
> 
> 
>  wso2.as3.domain
> 201,300
>  
> 
> wso2.as4.domain
>  *
> 
> 
> 
>
> *In synapse main.xml Endpoint Defines as follows*
> *
> *
> 
>    ="org.wso2.carbon.endpoint.service.TenantAwareLoadBalanceEndpoint">
>  
> org.apache.synapse.endpoints.algorithms.RoundRobin
>   name="configuration">$system:loadbalancer.xml
>  true
>
> 
>   
>
> Thanks.
>
>
> On Sun, Mar 4, 2012 at 2:09 AM, Afkham Azeez  wrote:
>
>> User management in the LB is not configured properly? We never used
>> this in the LB before. Even CarbonContext will not be created
>>
>> --
>> Afkham Azeez
>> Sent from my phone
>> On Mar 3, 2012 9:30 PM, "Sanjeewa Malalgoda" 
>> wrote:
>>
>>> Hi All,
>>> I was able to setup 2 app services clusters that maps to same host
>>> address and setup load balancer according to static
>>> configuration(host/domain/tenant range). with this implementation *we
>>> can send requests to correct cluster based on tenant domain in url*.For
>>> this i created new TenantAwareLoadBalancer endpoint in carbon end points
>>> and configure loadbalancer to use that end point(We can use external
>>> endpoints after azeez latest change to synapse trunk). First we get
>>> domainTenantContext(Which holds map of tenatid, cluster domain) object
>>> according to host address. Then we can get cluster domain
>>> from domainTenantContext object by passing tenant id (if there no any 
>>> value
>>> that maps to tenantId key we will send that request to cluster with
>>> constant tenant id something like 0 or 1000 by this we can avoid upper
>>> range mapping). Map holds values something like below.
>>>
>>> tenat id   cluster domain
>>> 1-200  as1.domain
>>> 201-400   as2.domain
>>> 0 as3.domain
>>>
>>> so if request comes to 401 tenant request will send to as3.domain
>>> cluster(default cluster). And regard sticky session implementation 
>>> which we
>>> discussed in separate mail i will work with azeez. For this moment all
>>> configurations are hard coded and easily we can make them configurable.
>>> Ideas and comments are welcome on this.
>>>
>>> And i have one question inside loadbalancer product we are always
>>> getting getRealmService().getTenantManager().getTenantId(domainName) as 
>>> -1
>>> (which means no such tenant). What did we miss here ?
>>>
>>>
>>>
>>> 

Re: [Dev] [Stratos-dev] Tenant Aware load balance implementation

2012-04-01 Thread Sanjeewa Malalgoda
yes we can make it dynamic. Once main sequence updated it pick up
loadbalancer.xml changes and work according to that. So we can improve that
or we can update config as per admin request.
Thanks.

On Sun, Apr 1, 2012 at 3:06 PM, Paul Fremantle  wrote:

> Great. I think that is what one of our other customers is looking for
> right now.
>
> Paul
>
>
> On 1 April 2012 10:34, Afkham Azeez  wrote:
>
>>
>>
>> On Sun, Apr 1, 2012 at 2:57 PM, Paul Fremantle  wrote:
>>
>>> Let me understand: can I use this to put a specific tenant to cluster
>>> and no-one else?
>>
>>
>> Yes, you can define a cluster that contains a single tenant. So, we can
>> now support private jet mode. The number of nodes in that cluster is done
>> through the autoscaling configuration. Does that answer your question?
>>
>>
>>>
>>> Also: can the config be dynamic? e.g. can I modify this definition at
>>> runtime? Or only static?
>>>
>>
>> Tenant partition definitions are static. Processes which have loaded a
>> tenant cannot unload that tenant and reload it with the state etc. on a
>> different cluster. However, I believe we can support hotUpdate of the
>> loadbalancer.conf file, which will allow you to change the tenant
>> partitions, so that new requests can be handled by a different cluster. The
>> way we have implemented it currently, only the LB is aware of the
>> partitioning and not the worker nodes.
>>
>>
>>>
>>> Paul
>>>
>>> On 12 March 2012 13:31, Sanjeewa Malalgoda  wrote:
>>>
 Hi,

 Here i'm attaching the design diagram of this implementation, And
 configurations will be as follows.

 *01.LoadBalancer.xml file we can define domain and corresponding
 clusters and their tenant ranges as follows*

  
 
 appserver.cloud-test.wso2.com
 
  
 
 
  wso2.as1.domain
 1,100
  
 
 wso2.as2.domain
  101,200
 
 
  wso2.as3.domain
 201,300
  
 
 wso2.as4.domain
  *
 
 
 

 *In synapse main.xml Endpoint Defines as follows*
 *
 *
 
   >>> ="org.wso2.carbon.endpoint.service.TenantAwareLoadBalanceEndpoint">
  
 org.apache.synapse.endpoints.algorithms.RoundRobin
  >>> name="configuration">$system:loadbalancer.xml
  true

 
   

 Thanks.


 On Sun, Mar 4, 2012 at 2:09 AM, Afkham Azeez  wrote:

> User management in the LB is not configured properly? We never used
> this in the LB before. Even CarbonContext will not be created
>
> --
> Afkham Azeez
> Sent from my phone
> On Mar 3, 2012 9:30 PM, "Sanjeewa Malalgoda" 
> wrote:
>
>> Hi All,
>> I was able to setup 2 app services clusters that maps to same host
>> address and setup load balancer according to static
>> configuration(host/domain/tenant range). with this implementation *we
>> can send requests to correct cluster based on tenant domain in url*.For
>> this i created new TenantAwareLoadBalancer endpoint in carbon end points
>> and configure loadbalancer to use that end point(We can use external
>> endpoints after azeez latest change to synapse trunk). First we get
>> domainTenantContext(Which holds map of tenatid, cluster domain) object
>> according to host address. Then we can get cluster domain
>> from domainTenantContext object by passing tenant id (if there no any 
>> value
>> that maps to tenantId key we will send that request to cluster with
>> constant tenant id something like 0 or 1000 by this we can avoid upper
>> range mapping). Map holds values something like below.
>>
>> tenat id   cluster domain
>> 1-200  as1.domain
>> 201-400   as2.domain
>> 0 as3.domain
>>
>> so if request comes to 401 tenant request will send to as3.domain
>> cluster(default cluster). And regard sticky session implementation which 
>> we
>> discussed in separate mail i will work with azeez. For this moment all
>> configurations are hard coded and easily we can make them configurable.
>> Ideas and comments are welcome on this.
>>
>> And i have one question inside loadbalancer product we are always
>> getting getRealmService().getTenantManager().getTenantId(domainName) as 
>> -1
>> (which means no such tenant). What did we miss here ?
>>
>>
>>
>> Thanks.
>> --
>> *Sanjeewa Malalgoda*
>> Software Engineer
>> **
>> *WSO2, Inc.*
>> lean.enterprise.middleware.
>>
>> mobile : +94 713068779
>> web: http://wso2.com
>>  blog
>> :http://sanjeewamalalgoda.blogspot.com/
>>
>> [image:
>> http://wso2.com/wp-content/themes/wso2ng-v2/images/logos/strato

Re: [Dev] Cannot add integration tests to LB due to authentication failure

2012-04-01 Thread Nirmal Fernando
Hi Azeez,

On Thu, Mar 29, 2012 at 7:52 PM, Afkham Azeez  wrote:

> For some reason, authentication is failing when you try to login to the
> LB. There is no error stacktrace. Only an error message which says that the
> authenticators.xml file is not found, and the default one is used.


I can't understand the possibility of an user login to LB, if there's no
members fronted by it?


> On a related note, that message about using the default authenticators.xml
> file should just be a debug level message. Most frameworks use default
> config files, and don't print error messages if a config file is not
> explicitly added.
>
> Can somebody look into this?
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * **
> email: **az...@wso2.com* * cell: +94 77 3320919
> blog: **http://blog.afkham.org* *
> twitter: **http://twitter.com/afkham_azeez*
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Thanks & regards,
Nirmal

Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Stratos-dev] Tenant Aware load balance implementation

2012-04-01 Thread Paul Fremantle
Great. I think that is what one of our other customers is looking for right
now.

Paul

On 1 April 2012 10:34, Afkham Azeez  wrote:

>
>
> On Sun, Apr 1, 2012 at 2:57 PM, Paul Fremantle  wrote:
>
>> Let me understand: can I use this to put a specific tenant to cluster and
>> no-one else?
>
>
> Yes, you can define a cluster that contains a single tenant. So, we can
> now support private jet mode. The number of nodes in that cluster is done
> through the autoscaling configuration. Does that answer your question?
>
>
>>
>> Also: can the config be dynamic? e.g. can I modify this definition at
>> runtime? Or only static?
>>
>
> Tenant partition definitions are static. Processes which have loaded a
> tenant cannot unload that tenant and reload it with the state etc. on a
> different cluster. However, I believe we can support hotUpdate of the
> loadbalancer.conf file, which will allow you to change the tenant
> partitions, so that new requests can be handled by a different cluster. The
> way we have implemented it currently, only the LB is aware of the
> partitioning and not the worker nodes.
>
>
>>
>> Paul
>>
>> On 12 March 2012 13:31, Sanjeewa Malalgoda  wrote:
>>
>>> Hi,
>>>
>>> Here i'm attaching the design diagram of this implementation, And
>>> configurations will be as follows.
>>>
>>> *01.LoadBalancer.xml file we can define domain and corresponding
>>> clusters and their tenant ranges as follows*
>>>
>>>  
>>> 
>>> appserver.cloud-test.wso2.com
>>> 
>>>  
>>> 
>>> 
>>>  wso2.as1.domain
>>> 1,100
>>>  
>>> 
>>> wso2.as2.domain
>>>  101,200
>>> 
>>> 
>>>  wso2.as3.domain
>>> 201,300
>>>  
>>> 
>>> wso2.as4.domain
>>>  *
>>> 
>>> 
>>> 
>>>
>>> *In synapse main.xml Endpoint Defines as follows*
>>> *
>>> *
>>> 
>>>   >> ="org.wso2.carbon.endpoint.service.TenantAwareLoadBalanceEndpoint">
>>>  
>>> org.apache.synapse.endpoints.algorithms.RoundRobin
>>>  >> name="configuration">$system:loadbalancer.xml
>>>  true
>>>
>>> 
>>>   
>>>
>>> Thanks.
>>>
>>>
>>> On Sun, Mar 4, 2012 at 2:09 AM, Afkham Azeez  wrote:
>>>
 User management in the LB is not configured properly? We never used
 this in the LB before. Even CarbonContext will not be created

 --
 Afkham Azeez
 Sent from my phone
 On Mar 3, 2012 9:30 PM, "Sanjeewa Malalgoda"  wrote:

> Hi All,
> I was able to setup 2 app services clusters that maps to same host
> address and setup load balancer according to static
> configuration(host/domain/tenant range). with this implementation *we
> can send requests to correct cluster based on tenant domain in url*.For
> this i created new TenantAwareLoadBalancer endpoint in carbon end points
> and configure loadbalancer to use that end point(We can use external
> endpoints after azeez latest change to synapse trunk). First we get
> domainTenantContext(Which holds map of tenatid, cluster domain) object
> according to host address. Then we can get cluster domain
> from domainTenantContext object by passing tenant id (if there no any 
> value
> that maps to tenantId key we will send that request to cluster with
> constant tenant id something like 0 or 1000 by this we can avoid upper
> range mapping). Map holds values something like below.
>
> tenat id   cluster domain
> 1-200  as1.domain
> 201-400   as2.domain
> 0 as3.domain
>
> so if request comes to 401 tenant request will send to as3.domain
> cluster(default cluster). And regard sticky session implementation which 
> we
> discussed in separate mail i will work with azeez. For this moment all
> configurations are hard coded and easily we can make them configurable.
> Ideas and comments are welcome on this.
>
> And i have one question inside loadbalancer product we are always
> getting getRealmService().getTenantManager().getTenantId(domainName) as -1
> (which means no such tenant). What did we miss here ?
>
>
>
> Thanks.
> --
> *Sanjeewa Malalgoda*
> Software Engineer
> **
> *WSO2, Inc.*
> lean.enterprise.middleware.
>
> mobile : +94 713068779
> web: http://wso2.com
>  blog
> :http://sanjeewamalalgoda.blogspot.com/
>
> [image:
> http://wso2.com/wp-content/themes/wso2ng-v2/images/logos/stratos_logo_h42.gif]
>
>
> ___
> Stratos-dev mailing list
> stratos-...@wso2.org
> https://wso2.org/cgi-bin/mailman/listinfo/stratos-dev
>
>
>>>
>>>
>>> --
>>> *Sanjeewa Malalgoda*
>>> Software Engineer
>>> **
>>> *WSO2, Inc.*
>>> lean.enterprise.middleware.
>>>
>>> mobile : +94 713068779
>>> web: http://wso2.com
>>>  

Re: [Dev] [Stratos-dev] Tenant Aware load balance implementation

2012-04-01 Thread Afkham Azeez
On Sun, Apr 1, 2012 at 2:57 PM, Paul Fremantle  wrote:

> Let me understand: can I use this to put a specific tenant to cluster and
> no-one else?


Yes, you can define a cluster that contains a single tenant. So, we can now
support private jet mode. The number of nodes in that cluster is done
through the autoscaling configuration. Does that answer your question?


>
> Also: can the config be dynamic? e.g. can I modify this definition at
> runtime? Or only static?
>

Tenant partition definitions are static. Processes which have loaded a
tenant cannot unload that tenant and reload it with the state etc. on a
different cluster. However, I believe we can support hotUpdate of the
loadbalancer.conf file, which will allow you to change the tenant
partitions, so that new requests can be handled by a different cluster. The
way we have implemented it currently, only the LB is aware of the
partitioning and not the worker nodes.


>
> Paul
>
> On 12 March 2012 13:31, Sanjeewa Malalgoda  wrote:
>
>> Hi,
>>
>> Here i'm attaching the design diagram of this implementation, And
>> configurations will be as follows.
>>
>> *01.LoadBalancer.xml file we can define domain and corresponding
>> clusters and their tenant ranges as follows*
>>
>>  
>> 
>> appserver.cloud-test.wso2.com
>> 
>>  
>> 
>> 
>>  wso2.as1.domain
>> 1,100
>>  
>> 
>> wso2.as2.domain
>>  101,200
>> 
>> 
>>  wso2.as3.domain
>> 201,300
>>  
>> 
>> wso2.as4.domain
>>  *
>> 
>> 
>> 
>>
>> *In synapse main.xml Endpoint Defines as follows*
>> *
>> *
>> 
>>   > ="org.wso2.carbon.endpoint.service.TenantAwareLoadBalanceEndpoint">
>>  
>> org.apache.synapse.endpoints.algorithms.RoundRobin
>>  > name="configuration">$system:loadbalancer.xml
>>  true
>> 
>>   
>>
>> Thanks.
>>
>>
>> On Sun, Mar 4, 2012 at 2:09 AM, Afkham Azeez  wrote:
>>
>>> User management in the LB is not configured properly? We never used this
>>> in the LB before. Even CarbonContext will not be created
>>>
>>> --
>>> Afkham Azeez
>>> Sent from my phone
>>> On Mar 3, 2012 9:30 PM, "Sanjeewa Malalgoda"  wrote:
>>>
 Hi All,
 I was able to setup 2 app services clusters that maps to same host
 address and setup load balancer according to static
 configuration(host/domain/tenant range). with this implementation *we
 can send requests to correct cluster based on tenant domain in url*.For
 this i created new TenantAwareLoadBalancer endpoint in carbon end points
 and configure loadbalancer to use that end point(We can use external
 endpoints after azeez latest change to synapse trunk). First we get
 domainTenantContext(Which holds map of tenatid, cluster domain) object
 according to host address. Then we can get cluster domain
 from domainTenantContext object by passing tenant id (if there no any value
 that maps to tenantId key we will send that request to cluster with
 constant tenant id something like 0 or 1000 by this we can avoid upper
 range mapping). Map holds values something like below.

 tenat id   cluster domain
 1-200  as1.domain
 201-400   as2.domain
 0 as3.domain

 so if request comes to 401 tenant request will send to as3.domain
 cluster(default cluster). And regard sticky session implementation which we
 discussed in separate mail i will work with azeez. For this moment all
 configurations are hard coded and easily we can make them configurable.
 Ideas and comments are welcome on this.

 And i have one question inside loadbalancer product we are always
 getting getRealmService().getTenantManager().getTenantId(domainName) as -1
 (which means no such tenant). What did we miss here ?



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

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

 [image:
 http://wso2.com/wp-content/themes/wso2ng-v2/images/logos/stratos_logo_h42.gif]


 ___
 Stratos-dev mailing list
 stratos-...@wso2.org
 https://wso2.org/cgi-bin/mailman/listinfo/stratos-dev


>>
>>
>> --
>> *Sanjeewa Malalgoda*
>> Software Engineer
>> **
>> *WSO2, Inc.*
>> lean.enterprise.middleware.
>>
>> mobile : +94 713068779
>> web: http://wso2.com
>>  blog
>> :http://sanjeewamalalgoda.blogspot.com/
>>
>> [image:
>> http://wso2.com/wp-content/themes/wso2ng-v2/images/logos/stratos_logo_h42.gif]
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/li

Re: [Dev] [Stratos-dev] Tenant Aware load balance implementation

2012-04-01 Thread Paul Fremantle
Let me understand: can I use this to put a specific tenant to cluster and
no-one else?

Also: can the config be dynamic? e.g. can I modify this definition at
runtime? Or only static?

Paul

On 12 March 2012 13:31, Sanjeewa Malalgoda  wrote:

> Hi,
>
> Here i'm attaching the design diagram of this implementation, And
> configurations will be as follows.
>
> *01.LoadBalancer.xml file we can define domain and corresponding clusters
> and their tenant ranges as follows*
>
>  
> 
> appserver.cloud-test.wso2.com
> 
>  
> 
> 
>  wso2.as1.domain
> 1,100
>  
> 
> wso2.as2.domain
>  101,200
> 
> 
>  wso2.as3.domain
> 201,300
>  
> 
> wso2.as4.domain
>  *
> 
> 
> 
>
> *In synapse main.xml Endpoint Defines as follows*
> *
> *
> 
>="org.wso2.carbon.endpoint.service.TenantAwareLoadBalanceEndpoint">
>  
> org.apache.synapse.endpoints.algorithms.RoundRobin
>   name="configuration">$system:loadbalancer.xml
>  true
> 
>   
>
> Thanks.
>
>
> On Sun, Mar 4, 2012 at 2:09 AM, Afkham Azeez  wrote:
>
>> User management in the LB is not configured properly? We never used this
>> in the LB before. Even CarbonContext will not be created
>>
>> --
>> Afkham Azeez
>> Sent from my phone
>> On Mar 3, 2012 9:30 PM, "Sanjeewa Malalgoda"  wrote:
>>
>>> Hi All,
>>> I was able to setup 2 app services clusters that maps to same host
>>> address and setup load balancer according to static
>>> configuration(host/domain/tenant range). with this implementation *we
>>> can send requests to correct cluster based on tenant domain in url*.For
>>> this i created new TenantAwareLoadBalancer endpoint in carbon end points
>>> and configure loadbalancer to use that end point(We can use external
>>> endpoints after azeez latest change to synapse trunk). First we get
>>> domainTenantContext(Which holds map of tenatid, cluster domain) object
>>> according to host address. Then we can get cluster domain
>>> from domainTenantContext object by passing tenant id (if there no any value
>>> that maps to tenantId key we will send that request to cluster with
>>> constant tenant id something like 0 or 1000 by this we can avoid upper
>>> range mapping). Map holds values something like below.
>>>
>>> tenat id   cluster domain
>>> 1-200  as1.domain
>>> 201-400   as2.domain
>>> 0 as3.domain
>>>
>>> so if request comes to 401 tenant request will send to as3.domain
>>> cluster(default cluster). And regard sticky session implementation which we
>>> discussed in separate mail i will work with azeez. For this moment all
>>> configurations are hard coded and easily we can make them configurable.
>>> Ideas and comments are welcome on this.
>>>
>>> And i have one question inside loadbalancer product we are always
>>> getting getRealmService().getTenantManager().getTenantId(domainName) as -1
>>> (which means no such tenant). What did we miss here ?
>>>
>>>
>>>
>>> Thanks.
>>> --
>>> *Sanjeewa Malalgoda*
>>> Software Engineer
>>> **
>>> *WSO2, Inc.*
>>> lean.enterprise.middleware.
>>>
>>> mobile : +94 713068779
>>> web: http://wso2.com
>>>  blog
>>> :http://sanjeewamalalgoda.blogspot.com/
>>>
>>> [image:
>>> http://wso2.com/wp-content/themes/wso2ng-v2/images/logos/stratos_logo_h42.gif]
>>>
>>>
>>> ___
>>> Stratos-dev mailing list
>>> stratos-...@wso2.org
>>> https://wso2.org/cgi-bin/mailman/listinfo/stratos-dev
>>>
>>>
>
>
> --
> *Sanjeewa Malalgoda*
> Software Engineer
> **
> *WSO2, Inc.*
> lean.enterprise.middleware.
>
> mobile : +94 713068779
> web: http://wso2.com
>  blog
> :http://sanjeewamalalgoda.blogspot.com/
>
> [image:
> http://wso2.com/wp-content/themes/wso2ng-v2/images/logos/stratos_logo_h42.gif]
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Paul Fremantle
CTO and Co-Founder, WSO2
OASIS WS-RX TC Co-chair, VP, Apache Synapse

UK: +44 207 096 0336
US: +1 646 595 7614

blog: http://pzf.fremantle.org
twitter.com/pzfreo
p...@wso2.com

wso2.com Lean Enterprise Middleware

Disclaimer: This communication may contain privileged or other confidential
information and is intended exclusively for the addressee/s. If you are not
the intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print, copy,
retransmit, disseminate, or otherwise use the information contained in this
communication. Internet communications cannot be guaranteed to be timely,
secure, error or virus-free. The sender does not accept liability for any
errors or omissions.
_