Re: [Dev] Releasing Carbon Multitenancy

2015-08-06 Thread Supun Malinga
On Wed, Aug 5, 2015 at 9:14 PM, Supun Malinga  wrote:

> Hi,
>
> On Wed, Aug 5, 2015 at 12:59 PM, Prabath Ariyarathna 
> wrote:
>
>> Hi Supun.
>>
>> I did small changes on PR to fix the few issues existing in the URL
>> validation. Please check the new changes.
>>
>> Eg:-
>> http://wso2s-MacBook-Pro-2.local:8280//services/t/wso1.com/Proxy1
>>
>> http://wso2s-MacBook-Pro-2.local:8280/services//t/wso1.com/Proxy1
>> I checked basic scenarios like proxy service valid and invalid URLs with
>> super tenant and tenant modes and ran available test cases which are
>> related to the proxyServices/APIs in the ESB found no issues but
>> unfortunately at the moment we don't have enough automated test cases to
>> cover the multitenant edge cases.
>>
>
> OK this is good. I'll merge the PR then. We should add test cases if they
> are not there. Please create a jira for that.
>

Merged.

thanks,

>
>> Thanks.
>>
>>
>> On Wed, Aug 5, 2015 at 12:06 PM, Supun Malinga  wrote:
>>
>>> Hi,
>>>
>>> We need to release carbon-identity and carbon-registry once the commons
>>> is released. This is due to carbon-multitenancy being dependent on identity
>>> and registry.
>>>
>>> Greg and IS teams as we discussed shall we start on those once the
>>> commons is out ?.
>>>
>>> thanks,
>>>
>>> On Wed, Aug 5, 2015 at 9:14 AM, Supun Malinga  wrote:
>>>
 Hi All,

 We will be releasing carbon-multitenancy today..

 Hi Prabath AR,
 I looked at the diff and fix looks ok. Have we also verified this with
 ESB team in terms of the approach to the fix ?. If yes I can go ahead and
 merge this.

 thanks,

 On Tue, Aug 4, 2015 at 12:39 PM, Prabath Ariyarathna <
 prabat...@wso2.com> wrote:

> Hi Supun.
>
> Please review and merge the PR[1] for this issue[2].
>
> [1] = https://github.com/wso2/carbon-multitenancy/pull/46
> [2] = https://wso2.org/jira/browse/ESBJAVA-3992
>
>
> Thanks.
>
> On Tue, Aug 4, 2015 at 10:48 AM, Chanaka Fernando 
> wrote:
>
>> Hi Supun,
>>
>> We have come across several issues[1], [2], [3] related to tenancy
>> when testing the ESB 490 beta release. We are currently looking into 
>> these
>> issues. Did you guys face any issue related to dispatching when testing 
>> the
>> AS in multitenant scenarios?
>>
>> [1] https://wso2.org/jira/browse/ESBJAVA-3992
>>
>> [2] https://wso2.org/jira/browse/ESBJAVA-3989
>>
>> [3] https://wso2.org/jira/browse/ESBJAVA-3988
>>
>> Thanks,
>> Chanaka
>>
>>
>>
>> On Mon, Aug 3, 2015 at 10:13 PM, Supun Malinga 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> We are going to do $subject soon after carbon commons release. Shout
>>> if you have any fixes to be added.
>>>
>>> thanks,
>>> --
>>> Supun Malinga,
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>> http://wso2.com
>>> email: sup...@wso2.com 
>>> mobile: +94 (0)71 56 91 321
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> --
>> Chanaka Fernando
>> Senior Technical Lead
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 773337238
>> Blog : http://soatutorials.blogspot.com
>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
>> Twitter:https://twitter.com/chanakaudaya
>> Wordpress:http://chanakaudaya.wordpress.com
>>
>>
>>
>>
>
>
> --
>
> *Prabath Ariyarathna*
>
> *Associate Technical Lead*
>
> *WSO2, Inc. *
>
> *lean . enterprise . middleware *
>
>
> *Email: prabat...@wso2.com *
>
> *Blog: http://prabu-lk.blogspot.com *
>
> *Flicker : https://www.flickr.com/photos/47759189@N08
> *
>
> *Mobile: +94 77 699 4730 *
>
>
>
>
>
>


 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com 
 mobile: +94 (0)71 56 91 321

>>>
>>>
>>>
>>> --
>>> Supun Malinga,
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>> http://wso2.com
>>> email: sup...@wso2.com 
>>> mobile: +94 (0)71 56 91 321
>>>
>>
>>
>>
>> --
>>
>> *Prabath Ariyarathna*
>>
>> *Associate Technical Lead*
>>
>> *WSO2, Inc. *
>>
>> *lean . enterprise . middleware *
>>
>>
>> *Email: prabat...@wso2.com *
>>
>> *Blog: http://prabu-lk.blogspot.com *
>>
>> *Flicker : https://www.flickr.com/photos/47759189@N08
>> *
>>
>> *Mobile: +94 77 699 4730 *
>>
>>
>>
>>
>>
>>
>
>
> --
> Supun Malinga,
>
> Senior Software Engineer,
> WSO2 Inc.
> http://wso2.com
> email: sup...@wso2.co

[Dev] [PPaaS][4.1.0 Beta] VM puppet modules

2015-08-06 Thread Anuruddha Liyanarachchi
Hi Devs,

I am currently working on $subject and following is the proposed puppet
module structure. Please note that esb is an example product cartridge
reference.

*Manifests:*

 base*.*pp- Contains all the mandatory parameters

 default*.*pp - Contains default setting for default cartridge and
execution order of modules.

 esb*.*pp  - Contains ESB specific settings and execution order of
modules.
 (Class['stratos_base'] -> Class['java'] ->
Class['configurator']->
Class['python_agent'] -> Class['esb'] )

*Modules :*

 configurator : Copy and extract configurator zip file.

 esb : Copy and extract ESB pack, ESB template module and ESB cartridge
agent plugins.
  Start the python agent.

 java : Copy and extract java zip file.

 python_agent : Copy and extract python agent zip file.
  Install cartridge agent dependencies. (pip, pahoo
etc)

 stratos_base : Install basic utilities  (curl, zip, tar etc. )

The implementation up to now can be found at [1].
I will update this thread as I progress. Appreciate any suggestions and
thoughts towards $subject.

[1]
https://github.com/anuruddhal/product-private-paas/tree/puppet_vm/cartridges/vm/puppet

-- 
*Thanks and Regards,*
Anuruddha Lanka Liyanarachchi
Software Engineer - WSO2
Mobile : +94 (0) 712762611
Tel  : +94 112 145 345
a nurudd...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ ESB 4.8.0 ] How to parse a String to JSON within script mediator

2015-08-06 Thread Hasitha Amal De Silva
Hi,

Whats the best way to do $subject ?

The primitive way is to use

var obj = eval("(" + jsonStr + ')');

but thats vulnerable to executing anything other than simple JSON.

I did find a lot of samples using

JSON.parse(jsonStr)

But when trying this out, ESB fails to identify JSON module within the
script mediator.

Caused by: org.mozilla.javascript.EcmaError: ReferenceError: "JSON" is not
defined. (#1)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
at
org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3413)
at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1612)

Please advice. Are there any other in-built functions that can be used ?

-- 
Cheers,
Hasitha Amal De Silva
Software Engineer
Mobile : 0772037426
Blog: http://devnutshell.tumblr.com/
WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error building carbon-identity with carbon-commons 4.5.0

2015-08-06 Thread Supun Malinga
thanks Hasintha

On Fri, Aug 7, 2015 at 11:22 AM, Hasintha Indrajee 
wrote:

> This is fixed with [1]
>
> [1] https://github.com/wso2/carbon-identity/pull/761
>
> On Fri, Aug 7, 2015 at 1:20 AM, Supun Malinga  wrote:
>
>> Hi,
>>
>> Please have a look. Tried with carbon-identity master branch.
>>
>> [INFO] Compiling 6 source files to
>> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/target/classes
>> [INFO] -
>> [ERROR] COMPILATION ERROR :
>> [INFO] -
>> [ERROR]
>> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[32,15]
>> error: package org.json does not exist
>>
>> [ERROR]
>> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[33,15]
>> error: package org.json does not exist
>>
>> [ERROR]
>> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[34,15]
>> error: package org.json does not exist
>>
>> [ERROR]
>> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[35,15]
>> error: package org.json does not exist
>>
>> [ERROR]
>> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[125,12]
>> error: cannot find symbol
>>
>> [ERROR]  class SalesforceProvisioningConnector
>> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[308,45]
>> error: cannot find symbol
>>
>> [ERROR]  class SalesforceProvisioningConnector
>> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[140,8]
>> error: cannot find symbol
>>
>> [ERROR]  class SalesforceProvisioningConnector
>> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[140,30]
>> error: cannot find symbol
>>
>> [ERROR]  class SalesforceProvisioningConnector
>> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[197,17]
>> error: cannot find symbol
>>
>> [ERROR]  class SalesforceProvisioningConnector
>> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[216,8]
>> error: cannot find symbol
>>
>> [ERROR]  class SalesforceProvisioningConnector
>> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[240,16]
>> error: cannot find symbol
>>
>> [ERROR]  class SalesforceProvisioningConnector
>> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[240,42]
>> error: cannot find symbol
>>
>> [ERROR]  class SalesforceProvisioningConnector
>> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[240,57]
>> error: cannot find symbol
>>
>> [ERROR]  class SalesforceProvisioningConnector
>> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[259,31]
>> error: c

Re: [Dev] Error building carbon-identity with carbon-commons 4.5.0

2015-08-06 Thread Hasintha Indrajee
This is fixed with [1]

[1] https://github.com/wso2/carbon-identity/pull/761

On Fri, Aug 7, 2015 at 1:20 AM, Supun Malinga  wrote:

> Hi,
>
> Please have a look. Tried with carbon-identity master branch.
>
> [INFO] Compiling 6 source files to
> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/target/classes
> [INFO] -
> [ERROR] COMPILATION ERROR :
> [INFO] -
> [ERROR]
> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[32,15]
> error: package org.json does not exist
>
> [ERROR]
> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[33,15]
> error: package org.json does not exist
>
> [ERROR]
> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[34,15]
> error: package org.json does not exist
>
> [ERROR]
> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[35,15]
> error: package org.json does not exist
>
> [ERROR]
> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[125,12]
> error: cannot find symbol
>
> [ERROR]  class SalesforceProvisioningConnector
> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[308,45]
> error: cannot find symbol
>
> [ERROR]  class SalesforceProvisioningConnector
> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[140,8]
> error: cannot find symbol
>
> [ERROR]  class SalesforceProvisioningConnector
> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[140,30]
> error: cannot find symbol
>
> [ERROR]  class SalesforceProvisioningConnector
> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[197,17]
> error: cannot find symbol
>
> [ERROR]  class SalesforceProvisioningConnector
> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[216,8]
> error: cannot find symbol
>
> [ERROR]  class SalesforceProvisioningConnector
> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[240,16]
> error: cannot find symbol
>
> [ERROR]  class SalesforceProvisioningConnector
> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[240,42]
> error: cannot find symbol
>
> [ERROR]  class SalesforceProvisioningConnector
> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[240,57]
> error: cannot find symbol
>
> [ERROR]  class SalesforceProvisioningConnector
> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[259,31]
> error: cannot find symbol
>
> [ERROR]  class SalesforceProvisioningConnector
> /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.ide

[Dev] Fwd: [ESB][Pass Through Proxy] Added pass through proxy services are not visible in the lsit

2015-08-06 Thread Sachith Punchihewa
Hello,
Permanent Solution found for the above problem.

Reason for the problem :

Error in loading related wsdl file for the service.
log :

[2015-08-05 23:03:40,488] DEBUG - SynapsePropertiesLoader Retrieving
synapse properties from the cache

[2015-08-05 23:03:40,491] DEBUG - SynapsePropertiesLoader Retrieving
synapse properties from the cache

[2015-08-05 23:03:40,491] DEBUG - MiscellaneousUtil The name with
'synapse.connection.read_timeout' cannot be found. Using default value :
10

[2015-08-05 23:03:40,491] DEBUG - SynapsePropertiesLoader Retrieving
synapse properties from the cache

[2015-08-05 23:03:40,492] DEBUG - MiscellaneousUtil The name with
'synapse.connection.connect_timeout' cannot be found. Using default value :
2

[2015-08-05 23:03:40,496] ERROR - ProxyService Error reading from wsdl URI


Solution :

provide the publishing wsdl file as an inline wsdl file.or if using a file
form a  URL make sure the link is  (Hosted server is up and running in the
same ip and port used earlier ) available before start the ESB server
log :

[2015-08-05 23:48:39,313] DEBUG - SynapseArtifactDeploymentStore Added
restored file :
/opt/wso2esb-4.8.1/repository/deployment/server/synapse-configs/default/proxy-services/OrderProcessing.xml


Thanks and Regards.

Kamidu Sachith Punchihewa
*Software Engineer*
WSO2, Inc.
lean . enterprise . middleware
Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>


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.

On Wed, Aug 5, 2015 at 5:46 PM, Sachith Punchihewa 
wrote:

> The service is listed in the "Source View".Thank you FYI.I'll try removing
> that.is there is a possibility to use that service with put re
> configuring again.
>
> Thanks and Regards.
>
> Kamidu Sachith Punchihewa
> *Software Engineer*
> WSO2, Inc.
> lean . enterprise . middleware
> Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>
>
>
> 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.
>
> On Wed, Aug 5, 2015 at 5:38 PM, Hemika Kodikara  wrote:
>
>> The proxy should be there in the "Source View". Delete that proxy from
>> there so that you can add the proxy again.
>>
>> Hemika Kodikara
>> Software Engineer
>> WSO2 Inc.
>> lean . enterprise . middleware
>> http://wso2.com
>>
>> Mobile : +9477762
>>
>> On Wed, Aug 5, 2015 at 5:35 PM, Sachith Punchihewa 
>> wrote:
>>
>>> I have added a Pass Through Proxy named "OrderProcessing".And It was
>>> working as expected.after stopping the ESB and restarting PC, the service
>>> is not listed in LIST. (refer to the screen capture below )
>>>
>>> [image: Inline image 2]
>>> When I try to add the service again using the same name .an error is
>>> prompt indicating that there is a service with the name provided. (refer to
>>> the screen capture below )
>>>
>>> [image: Inline image 3]
>>>
>>> And i cannot access the service using the given proxy URL previously.Any
>>> particular reason for this behavior ?
>>>
>>> PS:
>>> OrderProcessing.xml  is available at
>>> */opt/esb/repository/deployment/server/synapse-configs/default/proxy-services/*
>>>
>>>
>>>
>>> Thanks & Best Regards.
>>> Kamidu Sachith Punchihewa
>>> *Software Engineer*
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>
>>>
>>>
>>> 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-f

Re: [Dev] [DSS] How to load tenant axis configurations without invoking the tenant service.

2015-08-06 Thread Madhawa Gunasekara
Hi Kishanthan,

I will move code into the core, thanks for pointing it.

Thanks,
Madhawa

On Thu, Aug 6, 2015 at 10:17 PM, Kishanthan Thangarajah  wrote:

> Why do you want to call this within a webapp?
>
> On Thu, Aug 6, 2015 at 9:00 PM, Madhawa Gunasekara 
> wrote:
>
>> Hi Kasun,
>>
>> Can I load the tenantConfiguation from the web app using above mentioned
>> approach ?
>>
>> Thanks,
>> Madhawa
>>
>> On Thu, Aug 6, 2015 at 1:59 PM, Madhawa Gunasekara 
>> wrote:
>>
>>> Hi Kasun,
>>>
>>> Thanks for the quick reply, will try it.
>>>
>>> Regards,
>>> Madhawa
>>>
>>> On Thu, Aug 6, 2015 at 1:52 PM, KasunG Gajasinghe 
>>> wrote:
>>>
 Hi Madhawa,

 When you call TenantAxisUtils#getTenantConfigurationContext, it will
 load the tenant if it's not loaded already. You can get the tenant
 AxisConfiguration from the tenant ConfigurationContext.

 On Thu, Aug 6, 2015 at 12:35 PM, Madhawa Gunasekara 
 wrote:

> Hi Devs,
>
> I have requirement to support multi-tenancy for a particular service
> type (OData). tenant users can expose their datasources as OData service.
> We handle REST ODATA requests using simple servlet. In this servlet we 
> find
> particular service handler for the each service and we process them. DBS
> should be deployed to find the handlers. therefore the tenant axis configs
> should be loaded.
>
> Normally tenant axis configs are load lazily. Therefore tenant axis
> configs were load when a tenant request invoked.  the problem is we are
> n't  using /services/t/test.com/fddf/ url type for the service. we
> use /odataservices/t/test.com/fddf/ therefore It doesn't load the
> tenant axis configuration for these OData services.
>
> How can we load the tenant axis configurations manually ?
>
> Any help on this matter is highly appreciated.
>
> Thanks,
> --
> *Madhawa Gunasekara*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 719411002 <+94+719411002>
> blog: *http://madhawa-gunasekara.blogspot.com
> *
> linkedin: *http://lk.linkedin.com/in/mgunasekara
> *
>



 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org



>>>
>>>
>>>
>>> --
>>> *Madhawa Gunasekara*
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 719411002 <+94+719411002>
>>> blog: *http://madhawa-gunasekara.blogspot.com
>>> *
>>> linkedin: *http://lk.linkedin.com/in/mgunasekara
>>> *
>>>
>>
>>
>>
>> --
>> *Madhawa Gunasekara*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 719411002 <+94+719411002>
>> blog: *http://madhawa-gunasekara.blogspot.com
>> *
>> linkedin: *http://lk.linkedin.com/in/mgunasekara
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 
*Madhawa Gunasekara*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 719411002 <+94+719411002>
blog: *http://madhawa-gunasekara.blogspot.com
*
linkedin: *http://lk.linkedin.com/in/mgunasekara
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Caramel] Rendering HTML using Caramel in client side

2015-08-06 Thread Sajith Ariyarathna
Hi All,

I want to update a portion of the web page using Caramel. Necessary data
(JSON) is obtained through an AJAX call. How do I accomplish this task? Any
examples will be very helpful.

PS: caramel.handlebars.client.js [1] and handlebars-1.1.2.js [2] acripts
are included in the page.

Thanks.

[1]
https://github.com/wso2/carbon-appmgt/blob/master/features/appmgt/org.wso2.carbon.appmgt.publisher.feature/src/main/resources/publisher/themes/mobileapp/js/caramel.handlebars.client.js
[2]
https://github.com/wso2/carbon-appmgt/blob/master/features/appmgt/org.wso2.carbon.appmgt.publisher.feature/src/main/resources/publisher/themes/appm/js/handlebars-1.1.2.js
-- 
Sajith Ariyarathna
Software Engineer; WSO2, Inc.;  http://wso2.com/
mobile: +94 77 6602284, +94 71 3951048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Architecture] WSO2 ESB v4.9.0 Beta Released!

2015-08-06 Thread Jagath Sisirakumara Ariyarathne
*WSO2 ESB 4.9.0-BETA Released*

ESB team is pleased to announce the release of the WSO2 ESB 4.9.0-BETA .
This release includes following bug-fixes, improvements and features.

Bugs

   - [ESBJAVA-1148 ] -
   [Scheduled Tasks] UI issues if cron expression is faulty
   - [ESBJAVA-1903 ] - Malformed
   XML not being detected in VFS Proxy
   - [ESBJAVA-2063 ] -
   [intermittent] wso2statistics.request.received.time is null in the IN
   MessageContext
   - [ESBJAVA-2089 ] - XQuery
   mediator, Target value cannot be removed from the UI, but only with source
   view
   - [ESBJAVA-2165 ] - VFS
   Transport: Sample 254: Placing an incorrect xml not moving to Failure folder
   - [ESBJAVA-2225 ] - One way
   operations are failing for tenant's proxy/api in stratos esb
   - [ESBJAVA-2251 ] - Context
   sensitive Help should contain details for HTTP end point
   - [ESBJAVA-2254 ] - QoS
   properties do not get synchronized properly to worker nodes
   - [ESBJAVA-2290 ] - ESB 4.6 -
   DBLookup mediator not working in UI mode
   - [ESBJAVA-2302 ] - [ESB 4.7]
   Design view error for DB* Mediators when datasource(postgres) is added
   - [ESBJAVA-2330 ] - Couldn't
   send a request to Tenant main sequence
   - [ESBJAVA-2348 ] - End point
   getting suppended
   - [ESBJAVA-2351 ] - [ESB 4.7]
   Message Stores in C-App deployed with errors
   - [ESBJAVA-2450 ] - JMS
   Message Store Edit Message Store name (switching to source view and vise
   verse)
   - [ESBJAVA-2461 ] - Printing
   an unnecessary log in the console when browsing connector operations
   - [ESBJAVA-2531 ] -
   [Intermittent] NPE and blank page when save & close while editing the proxy
   - [ESBJAVA-2534 ] - If you
   change a the endpoint of a target in a clone mediator all the targets get
   saved with that endpoint
   - [ESBJAVA-2536 ] - Filter
   mediator UI(Design View) failed to load configuration once xpath contain
   get-property() function
   - [ESBJAVA-2539 ] - "ERROR -
   JDBCLogsDAO Failed to update log batch records" returned when starting the
   servers after switching databases
   - [ESBJAVA-2641 ] - When a
   Non-existing Local Entry is Found in Proxy Deployment, Attempt to Deploy
   the Local Entry Fails Next Time
   - [ESBJAVA-2663 ] -
   WstxParsingException: Illegal to have multiple roots (start tag in epilog?)
   occurs when backend service is inactive in PTT
   - [ESBJAVA-2668 ] - Connector
   deployment in tenant mode not working in Windows environment
   - [ESBJAVA-2674 ] - Update
   help content on message store/message processor according to the new changes
   - [ESBJAVA-2759 ] - Deployed
   Message store and Message Processor details does not showing on the CApp
   dashboard
   - [ESBJAVA-2763 ] - Observing
   ERROR - CarbonDeploymentSchedulerTask Error while running deployment
   scheduler.. java.lang.NullPointerException
   - [ESBJAVA-2791 ] - Observing
   Errors on worker nodes when Activate and Deactivate message processors on
   cluster setup
   - [ESBJAVA-2800 ] -
   WSO2-ESB-4.5.0-SamplesSetup.pdf document inside samples folder should be
   WSO2-ESB-4.8.0-SamplesSetup.pdf
   - [ESBJAVA-2812 ] - the
   protocol if http the source view for API shows as 1 and for https the
   source view shows as 2
   - [ESBJAVA-2833 ] - JMS
   message selectors cannot be specified at the ui
   - [ESBJAVA-2840 ] - Wso2 esb
   4.8.0 is not working for repository rule or saved rule
   - [ESBJAVA-2865 ] -
   Sanitizing generated temp files by WSO2 ESB XSLT Mediator
   - [ESBJAVA-2897 ] - hl7 flow
   does not seem to work if the proxy created on esb is secured with ex:user
   name token
   - [ESBJAV

[Dev] Error building carbon-identity with carbon-commons 4.5.0

2015-08-06 Thread Supun Malinga
Hi,

Please have a look. Tried with carbon-identity master branch.

[INFO] Compiling 6 source files to
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/target/classes
[INFO] -
[ERROR] COMPILATION ERROR :
[INFO] -
[ERROR]
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[32,15]
error: package org.json does not exist

[ERROR]
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[33,15]
error: package org.json does not exist

[ERROR]
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[34,15]
error: package org.json does not exist

[ERROR]
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[35,15]
error: package org.json does not exist

[ERROR]
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[125,12]
error: cannot find symbol

[ERROR]  class SalesforceProvisioningConnector
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[308,45]
error: cannot find symbol

[ERROR]  class SalesforceProvisioningConnector
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[140,8]
error: cannot find symbol

[ERROR]  class SalesforceProvisioningConnector
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[140,30]
error: cannot find symbol

[ERROR]  class SalesforceProvisioningConnector
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[197,17]
error: cannot find symbol

[ERROR]  class SalesforceProvisioningConnector
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[216,8]
error: cannot find symbol

[ERROR]  class SalesforceProvisioningConnector
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[240,16]
error: cannot find symbol

[ERROR]  class SalesforceProvisioningConnector
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[240,42]
error: cannot find symbol

[ERROR]  class SalesforceProvisioningConnector
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[240,57]
error: cannot find symbol

[ERROR]  class SalesforceProvisioningConnector
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[259,31]
error: cannot find symbol

[ERROR]  class SalesforceProvisioningConnector
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[292,8]
error: cannot find symbol

[ERROR]  class SalesforceProvisioningConnector
/home/ubuntu/builds

[Dev] carbon-mediation 4.4.3 Released !

2015-08-06 Thread Ravindra Ranwala
Hi All,

org.wso2.carbon.mediation version 4.4.3 was released.

org.wso2.carbon.mediation
carbon-mediation
4.4.3



Thanks & Regards,
-- 
Ravindra Ranwala
Software Engineer
WSO2, Inc: http://wso2.com

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


[Dev] Synapse 2.1.3-wso2v6 Released!

2015-08-06 Thread Jagath Sisirakumara Ariyarathne
Hi All,

org.apache.synapse version 2.1.3-wso2v6 released.

org.apache.synapse
Apache-Synapse
2.1.3-wso2v6

Thanks.
-- 
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/
Email: jaga...@wso2.com
Mob  : +94 77 386 7048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ConcurrentModificationException at server startup (https://wso2.org/jira/browse/APIMANAGER-2241)

2015-08-06 Thread Kishanthan Thangarajah
Yes, you will mostly get into this error once because despite the error the
deployment schedular task will run continuously. But IMO instead of
ignoring this exception (which will be logged), why don't we try out the
2nd solution (get a clone of the deployer map and use that with iteration)
suggested above?

On Thu, Aug 6, 2015 at 10:10 PM, Amila De Silva  wrote:

> Hi,
>
> This issue has been observed again with the last release.
>
> Intention of this mail is to come to a conclusion about this issue, since
> it has been re-opened several times despite the fixes provided. While
> having an offline discussion with KasunG and Supun, got to know that this
> happens when Deployers get added/removed while RepositoryListener iterate
> through the Deployer map, looking for changes in the monitored directories.
>
> CarbonDeploymentSchedulerTask is written in a way, to start its execution
> after all the Deployers get added (if the Deployers are specified through
> component.xml), which would prevent Deployers list getting modified in the
> middle of an execution. But if Deployers are added programmatically, then
> this behaviour cannot be  guaranteed.
>
> After discussing this with KasunG and Sameera, got to know that there are
> several options to solve this issue;
>
> 1. Specifying the Deployer in component.xml
> 2. In RepositoryListener.loadOtherDirectories() method, getting a clone of
> the Deployers map before iterating.
>
>
> To see which option is viable, went through the list of Deployers that
> gets added when server starts up. These are the observations made:
>
> 1. Deployers listed below gets added before ConfigurationContext
> initializes
>
> [2015-08-06 18:33:07,889]  INFO - DeploymentEngine Added Deployed class :
> class org.jaggeryjs.jaggery.deployer.JaggeryDeployer , directory :
> jaggeryapps, extension : zip
> [2015-08-06 18:33:07,889]  INFO - DeploymentEngine Added Deployed class :
> class org.jaggeryjs.jaggery.deployer.JaggeryDeployer , directory :
> jaggeryapps, extension : null
> [2015-08-06 18:33:07,890]  INFO - DeploymentEngine Added Deployed class :
> class
> org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer
> , directory : userstores, extension : xml
> [2015-08-06 18:33:07,891]  INFO - DeploymentEngine Added Deployed class :
> class org.wso2.carbon.webapp.mgt.WebappMetadataDeployer , directory :
> artifactMetafiles/webapp, extension : xml
> [2015-08-06 18:33:07,892]  INFO - DeploymentEngine Added Deployed class :
> class
> org.wso2.carbon.core.persistence.file.deployer.PersistenceMetaDataDeployer
> , directory : servicemetafiles, extension : xml
> [2015-08-06 18:33:07,892]  INFO - DeploymentEngine Added Deployed class :
> class
> org.wso2.carbon.core.persistence.file.deployer.PersistenceMetaDataDeployer
> , directory : modulemetafiles, extension : xml
> [2015-08-06 18:33:07,893]  INFO - DeploymentEngine Added Deployed class :
> class org.wso2.carbon.webapp.deployer.WebappDeployer , directory : webapps,
> extension : war
> [2015-08-06 18:33:07,893]  INFO - DeploymentEngine Added Deployed class :
> class org.wso2.carbon.webapp.deployer.WebappDeployer , directory : webapps,
> extension : null
> [2015-08-06 18:33:07,895]  INFO - DeploymentEngine Added Deployed class :
> class
> org.wso2.carbon.stratos.landing.page.deployer.LandingPageWebappDeployer ,
> directory : stratos_home, extension : null
>
> 2. And the following list gets added after the CC initialisation.
>
> [2015-08-06 18:33:14,683]  INFO - DeploymentEngine Added Deployed class :
> class org.apache.synapse.deployers.ExtensionDeployer , directory :
> /Users/Amila/Tasks/1.9.1/PR/wso2am-1.9.1-SNAPSHOT/repository/deployment/server//mediators,
> extension : xar
> [2015-08-06 18:33:14,683]  INFO - DeploymentEngine Added Deployed class :
> class org.apache.synapse.deployers.ExtensionDeployer , directory :
> /Users/Amila/Tasks/1.9.1/PR/wso2am-1.9.1-SNAPSHOT/repository/deployment/server//extensions,
> extension : xar
> [2015-08-06 18:33:14,683]  INFO - DeploymentEngine Added Deployed class :
> class org.apache.synapse.deployers.ExtensionDeployer , directory :
> /Users/Amila/Tasks/1.9.1/PR/wso2am-1.9.1-SNAPSHOT/repository/deployment/server//mediators,
> extension : jar
> [2015-08-06 18:33:14,683]  INFO - DeploymentEngine Added Deployed class :
> class org.apache.synapse.deployers.ExtensionDeployer , directory :
> /Users/Amila/Tasks/1.9.1/PR/wso2am-1.9.1-SNAPSHOT/repository/deployment/server//extensions,
> extension : jar
> [2015-08-06 18:33:14,684]  INFO - DeploymentEngine Added Deployed class :
> class org.apache.synapse.deployers.ClassMediatorDeployer , directory :
> /Users/Amila/Tasks/1.9.1/PR/wso2am-1.9.1-SNAPSHOT/repository/deployment/server//class-mediators,
> extension : jar
>
> 3. And the following list, gets added, right at the place where exception
> was thrown.
>
> [2015-08-06 18:33:15,638]  INFO - DeploymentEngine Added Deployed class :
> class org.wso2.carbon.application.deployer.CappAxis2De

[Dev] Wso2-commons-vfs 2.0-wso2v11 Released !

2015-08-06 Thread Ravindra Ranwala
Hi All,

Wso2-commons-vfs version 2.0-wso2v11 Released.

  org.apache.commons
  commons-vfs2-project
  2.0-wso2v11



Thanks & Regards,

-- 
Ravindra Ranwala
Software Engineer
WSO2, Inc: http://wso2.com

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


Re: [Dev] [DSS] How to load tenant axis configurations without invoking the tenant service.

2015-08-06 Thread Kishanthan Thangarajah
Why do you want to call this within a webapp?

On Thu, Aug 6, 2015 at 9:00 PM, Madhawa Gunasekara 
wrote:

> Hi Kasun,
>
> Can I load the tenantConfiguation from the web app using above mentioned
> approach ?
>
> Thanks,
> Madhawa
>
> On Thu, Aug 6, 2015 at 1:59 PM, Madhawa Gunasekara 
> wrote:
>
>> Hi Kasun,
>>
>> Thanks for the quick reply, will try it.
>>
>> Regards,
>> Madhawa
>>
>> On Thu, Aug 6, 2015 at 1:52 PM, KasunG Gajasinghe 
>> wrote:
>>
>>> Hi Madhawa,
>>>
>>> When you call TenantAxisUtils#getTenantConfigurationContext, it will
>>> load the tenant if it's not loaded already. You can get the tenant
>>> AxisConfiguration from the tenant ConfigurationContext.
>>>
>>> On Thu, Aug 6, 2015 at 12:35 PM, Madhawa Gunasekara 
>>> wrote:
>>>
 Hi Devs,

 I have requirement to support multi-tenancy for a particular service
 type (OData). tenant users can expose their datasources as OData service.
 We handle REST ODATA requests using simple servlet. In this servlet we find
 particular service handler for the each service and we process them. DBS
 should be deployed to find the handlers. therefore the tenant axis configs
 should be loaded.

 Normally tenant axis configs are load lazily. Therefore tenant axis
 configs were load when a tenant request invoked.  the problem is we are
 n't  using /services/t/test.com/fddf/ url type for the service. we use
 /odataservices/t/test.com/fddf/ therefore It doesn't load the tenant
 axis configuration for these OData services.

 How can we load the tenant axis configurations manually ?

 Any help on this matter is highly appreciated.

 Thanks,
 --
 *Madhawa Gunasekara*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 719411002 <+94+719411002>
 blog: *http://madhawa-gunasekara.blogspot.com
 *
 linkedin: *http://lk.linkedin.com/in/mgunasekara
 *

>>>
>>>
>>>
>>> --
>>>
>>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>>> email: kasung AT spamfree wso2.com
>>> linked-in: http://lk.linkedin.com/in/gajasinghe
>>> blog: http://kasunbg.org
>>>
>>>
>>>
>>
>>
>>
>> --
>> *Madhawa Gunasekara*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 719411002 <+94+719411002>
>> blog: *http://madhawa-gunasekara.blogspot.com
>> *
>> linkedin: *http://lk.linkedin.com/in/mgunasekara
>> *
>>
>
>
>
> --
> *Madhawa Gunasekara*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 719411002 <+94+719411002>
> blog: *http://madhawa-gunasekara.blogspot.com
> *
> linkedin: *http://lk.linkedin.com/in/mgunasekara
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

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


Re: [Dev] ConcurrentModificationException at server startup (https://wso2.org/jira/browse/APIMANAGER-2241)

2015-08-06 Thread Amila De Silva
Hi,

This issue has been observed again with the last release.

Intention of this mail is to come to a conclusion about this issue, since
it has been re-opened several times despite the fixes provided. While
having an offline discussion with KasunG and Supun, got to know that this
happens when Deployers get added/removed while RepositoryListener iterate
through the Deployer map, looking for changes in the monitored directories.

CarbonDeploymentSchedulerTask is written in a way, to start its execution
after all the Deployers get added (if the Deployers are specified through
component.xml), which would prevent Deployers list getting modified in the
middle of an execution. But if Deployers are added programmatically, then
this behaviour cannot be  guaranteed.

After discussing this with KasunG and Sameera, got to know that there are
several options to solve this issue;

1. Specifying the Deployer in component.xml
2. In RepositoryListener.loadOtherDirectories() method, getting a clone of
the Deployers map before iterating.


To see which option is viable, went through the list of Deployers that gets
added when server starts up. These are the observations made:

1. Deployers listed below gets added before ConfigurationContext initializes

[2015-08-06 18:33:07,889]  INFO - DeploymentEngine Added Deployed class :
class org.jaggeryjs.jaggery.deployer.JaggeryDeployer , directory :
jaggeryapps, extension : zip
[2015-08-06 18:33:07,889]  INFO - DeploymentEngine Added Deployed class :
class org.jaggeryjs.jaggery.deployer.JaggeryDeployer , directory :
jaggeryapps, extension : null
[2015-08-06 18:33:07,890]  INFO - DeploymentEngine Added Deployed class :
class
org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer
, directory : userstores, extension : xml
[2015-08-06 18:33:07,891]  INFO - DeploymentEngine Added Deployed class :
class org.wso2.carbon.webapp.mgt.WebappMetadataDeployer , directory :
artifactMetafiles/webapp, extension : xml
[2015-08-06 18:33:07,892]  INFO - DeploymentEngine Added Deployed class :
class
org.wso2.carbon.core.persistence.file.deployer.PersistenceMetaDataDeployer
, directory : servicemetafiles, extension : xml
[2015-08-06 18:33:07,892]  INFO - DeploymentEngine Added Deployed class :
class
org.wso2.carbon.core.persistence.file.deployer.PersistenceMetaDataDeployer
, directory : modulemetafiles, extension : xml
[2015-08-06 18:33:07,893]  INFO - DeploymentEngine Added Deployed class :
class org.wso2.carbon.webapp.deployer.WebappDeployer , directory : webapps,
extension : war
[2015-08-06 18:33:07,893]  INFO - DeploymentEngine Added Deployed class :
class org.wso2.carbon.webapp.deployer.WebappDeployer , directory : webapps,
extension : null
[2015-08-06 18:33:07,895]  INFO - DeploymentEngine Added Deployed class :
class
org.wso2.carbon.stratos.landing.page.deployer.LandingPageWebappDeployer ,
directory : stratos_home, extension : null

2. And the following list gets added after the CC initialisation.

[2015-08-06 18:33:14,683]  INFO - DeploymentEngine Added Deployed class :
class org.apache.synapse.deployers.ExtensionDeployer , directory :
/Users/Amila/Tasks/1.9.1/PR/wso2am-1.9.1-SNAPSHOT/repository/deployment/server//mediators,
extension : xar
[2015-08-06 18:33:14,683]  INFO - DeploymentEngine Added Deployed class :
class org.apache.synapse.deployers.ExtensionDeployer , directory :
/Users/Amila/Tasks/1.9.1/PR/wso2am-1.9.1-SNAPSHOT/repository/deployment/server//extensions,
extension : xar
[2015-08-06 18:33:14,683]  INFO - DeploymentEngine Added Deployed class :
class org.apache.synapse.deployers.ExtensionDeployer , directory :
/Users/Amila/Tasks/1.9.1/PR/wso2am-1.9.1-SNAPSHOT/repository/deployment/server//mediators,
extension : jar
[2015-08-06 18:33:14,683]  INFO - DeploymentEngine Added Deployed class :
class org.apache.synapse.deployers.ExtensionDeployer , directory :
/Users/Amila/Tasks/1.9.1/PR/wso2am-1.9.1-SNAPSHOT/repository/deployment/server//extensions,
extension : jar
[2015-08-06 18:33:14,684]  INFO - DeploymentEngine Added Deployed class :
class org.apache.synapse.deployers.ClassMediatorDeployer , directory :
/Users/Amila/Tasks/1.9.1/PR/wso2am-1.9.1-SNAPSHOT/repository/deployment/server//class-mediators,
extension : jar

3. And the following list, gets added, right at the place where exception
was thrown.

[2015-08-06 18:33:15,638]  INFO - DeploymentEngine Added Deployed class :
class org.wso2.carbon.application.deployer.CappAxis2Deployer , directory :
carbonapps, extension : car
[2015-08-06 18:33:15,645]  INFO - DeploymentEngine Added Deployed class :
class org.wso2.carbon.localentry.LocalEntryDeployer , directory :
/Users/Amila/Tasks/1.9.1/PR/wso2am-1.9.1-SNAPSHOT/././repository/deployment/server/synapse-configs/default/local-entries,
extension : xml
[2015-08-06 18:33:15,654]  INFO - DeploymentEngine Added Deployed class :
class org.apache.synapse.deployers.APIDeployer , directory :
/Users/Amila/Tasks/1.9.1/PR/wso2am-1.9.1-SNAPSHOT/././repository/deploym

Re: [Dev] Pause/restart when processing a large file

2015-08-06 Thread Malaka Silva
Hi Rudy,

With [1] you can retrieve the processing file name, and with [2] you can
set the response (out) file name.

[1] 

[2] 

On Thu, Aug 6, 2015 at 2:29 PM, Rudy Hilado 
wrote:

> Malaka,
>
> Thanks for the information!
>
> When splitting the larger file into smaller files, how do you create the
> smaller files with a name based on the parent file? For example, if the
> source file is named “documentABC.txt”, I would like the smaller files to
> be named “documentABC_0001.txt” and “documentABC_0002.txt” etc. I’m having
> a difficult time figuring out how to access the name of the current file
> being processed by the VFS listener.
>
>
>
> Thanks,
>
> - Rudy
>
>
>
> *From:* Malaka Silva [mailto:mal...@wso2.com]
> *Sent:* Thursday, August 06, 2015 1:57 AM
> *To:* Rudy Hilado
> *Cc:* WSO2 Developers' List
> *Subject:* Re: [Dev] Pause/restart when processing a large file
>
>
>
> Hi Rudy,
>
>
>
> I am afraid currently this is not supported out of the box.
>
>
>
> However you can achieve your requirement with the following solution.
>
>
>
> You can split the file and put in a separate folder (One entry in a file).
> eg:- VFS Listerner [3] -> Iterator mediator [4] -> File Connector [1][2]
>
>
>
> Take one file and process it. eg:- VFS listener [3]
>
>
>
> Following doc links will help you to do this.
>
>
>
> [1]
> https://storepreview.wso2.com/store/assets/esbconnector/f0550184-88c4-4d5e-b73f-ea51b1b5ab98
>
> [2]
> https://docs.wso2.com/display/ESBCONNECTORS/Working+with+the+File+Connector#WorkingwiththeFileConnector-create
>
> [3] https://docs.wso2.com/display/ESB481/VFS+Transport
>
> [4] https://docs.wso2.com/display/ESB481/Iterate+Mediator
>
>
>
>
>
> On Wed, Aug 5, 2015 at 8:52 PM, Rudy Hilado 
> wrote:
>
>
>
> Is it possible in the WSO2 ESB to process a large file (with each line
> representing a single record/message), and stop or pause the processing
> within the file, then restart where it left off? (using the Smooks mediator
> and/or Iterate mediator, or any other mechanism)
>
> It appears that if you are processing a large file (say with 10K entries)
> you cannot stop or pause the processing (or if the ESB is brought down in
> the middle of processing the file), and then restart where it was stopped.
> Upon restarting either the whole file has to be reprocessed, or the file is
> dumped to the error folder and skipped. Is this correct?
>
> Thanks for any help on this.
>
> - Rudy
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
>
>
> --
>
>
>
> Best Regards,
>
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
>
> Tel : 94 11 214 5345
>
> Fax :94 11 2145300
>
> Skype : malaka.sampath.silva
>
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>
> Blog : http://mrmalakasilva.blogspot.com/
>
>
>
> WSO2, Inc.
>
> lean . enterprise . middleware
> http://www.wso2.com/
>
> http://www.wso2.com/about/team/malaka-silva/
> 
>
>
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/


Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DSS] How to load tenant axis configurations without invoking the tenant service.

2015-08-06 Thread Madhawa Gunasekara
Hi Kasun,

Can I load the tenantConfiguation from the web app using above mentioned
approach ?

Thanks,
Madhawa

On Thu, Aug 6, 2015 at 1:59 PM, Madhawa Gunasekara 
wrote:

> Hi Kasun,
>
> Thanks for the quick reply, will try it.
>
> Regards,
> Madhawa
>
> On Thu, Aug 6, 2015 at 1:52 PM, KasunG Gajasinghe  wrote:
>
>> Hi Madhawa,
>>
>> When you call TenantAxisUtils#getTenantConfigurationContext, it will load
>> the tenant if it's not loaded already. You can get the tenant
>> AxisConfiguration from the tenant ConfigurationContext.
>>
>> On Thu, Aug 6, 2015 at 12:35 PM, Madhawa Gunasekara 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> I have requirement to support multi-tenancy for a particular service
>>> type (OData). tenant users can expose their datasources as OData service.
>>> We handle REST ODATA requests using simple servlet. In this servlet we find
>>> particular service handler for the each service and we process them. DBS
>>> should be deployed to find the handlers. therefore the tenant axis configs
>>> should be loaded.
>>>
>>> Normally tenant axis configs are load lazily. Therefore tenant axis
>>> configs were load when a tenant request invoked.  the problem is we are
>>> n't  using /services/t/test.com/fddf/ url type for the service. we use
>>> /odataservices/t/test.com/fddf/ therefore It doesn't load the tenant
>>> axis configuration for these OData services.
>>>
>>> How can we load the tenant axis configurations manually ?
>>>
>>> Any help on this matter is highly appreciated.
>>>
>>> Thanks,
>>> --
>>> *Madhawa Gunasekara*
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 719411002 <+94+719411002>
>>> blog: *http://madhawa-gunasekara.blogspot.com
>>> *
>>> linkedin: *http://lk.linkedin.com/in/mgunasekara
>>> *
>>>
>>
>>
>>
>> --
>>
>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>> email: kasung AT spamfree wso2.com
>> linked-in: http://lk.linkedin.com/in/gajasinghe
>> blog: http://kasunbg.org
>>
>>
>>
>
>
>
> --
> *Madhawa Gunasekara*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 719411002 <+94+719411002>
> blog: *http://madhawa-gunasekara.blogspot.com
> *
> linkedin: *http://lk.linkedin.com/in/mgunasekara
> *
>



-- 
*Madhawa Gunasekara*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 719411002 <+94+719411002>
blog: *http://madhawa-gunasekara.blogspot.com
*
linkedin: *http://lk.linkedin.com/in/mgunasekara
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] rampart-1.6.1-wso2v16 released to staging

2015-08-06 Thread Hasintha Indrajee
Hi Kasun,

Please review and release to public [1].

[1] http://maven.wso2.org/nexus/content/repositories/orgapacherampart-003/

-- 
Hasintha Indrajee
Software Engineer
WSO2, Inc.
Mobile:+94 771892453
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Axis2 Transport 1.1.0-wso2v15 Released!

2015-08-06 Thread Jagath Sisirakumara Ariyarathne
Hi All,

Axis2 Transport version 1.1.0-wso2v15 Released.

org.apache.axis2.transport
axis2-transports
1.1.0-wso2v15

Thanks.
-- 
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/
Email: jaga...@wso2.com
Mob  : +94 77 386 7048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Status on JMS performance of WSO2 CEP

2015-08-06 Thread Rajeev Sampath
Hi,

I've done the tests added the results to the jira [1].


[1] https://wso2.org/jira/browse/CEP-1109


Thanks
Rajeev

On Tue, Aug 4, 2015 at 9:13 AM, Sriskandarajah Suhothayan 
wrote:

> Hi Rajeev
>
> Whats the progress on $Subject.
>
> Regards
> Suho
>
> --
>
> *S. Suhothayan*
> Technical Lead & Team Lead of WSO2 Complex Event Processor
> *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan *
>



-- 
Rajeev Sampath
Senior Software Engineer
WSO2, Inc.; http://www.wso2.com.

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


Re: [Dev] Engage org.apache.catalina.filters.HttpHeaderSecurityFilter to all the web apps - including the Management Console

2015-08-06 Thread Supun Malinga
Hi Kishanthan,

On Thu, Aug 6, 2015 at 5:47 PM, Kishanthan Thangarajah 
wrote:

> Ok. Targeting for next kernel release. For already released products, they
> can enable this by editing the global web.xml.
>
> @SupunM, can we include this for next AS release?
>

Since this is in kernel we cannot include this fix unless we do another
kernel release (i.e: 4.4.2) before AS 5.3.0. Other option would be to
duplicate the web.xml from carbon-deployment and add the changes there. If
this is important we can easily do this from second approach.


>
> On Thu, Aug 6, 2015 at 5:35 PM, Prabath Siriwardena 
> wrote:
>
>> Yes.. please engage it by default..
>>
>> Thanks & regards,
>> -Prabath
>>
>> On Thu, Aug 6, 2015 at 5:28 PM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Created a jira for this : https://wso2.org/jira/browse/CARBON-15354
>>>
>>> On Thu, Aug 6, 2015 at 5:22 PM, Kishanthan Thangarajah <
>>> kishant...@wso2.com> wrote:
>>>
 We can do this via the global web.xml at 
 $CARBON_HOME/repository/conf/tomcat/web.xml.
 Then it will be available for all the webapps (including mgt console).
 Should this be added as a default filter?

 Refer :
 https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#HTTP_Header_Security_Filter

 On Thu, Aug 6, 2015 at 3:48 PM, Prabath Siriwardena 
 wrote:

> Can we please do the $subject ?
>
>
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +1 650 625 7950
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>



 --
 *Kishanthan Thangarajah*
 Associate Technical Lead,
 Platform Technologies Team,
 WSO2, Inc.
 lean.enterprise.middleware

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

>>>
>>>
>>>
>>> --
>>> *Kishanthan Thangarajah*
>>> Associate Technical Lead,
>>> Platform Technologies Team,
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - +94773426635
>>> Blog - *http://kishanthan.wordpress.com
>>> *
>>> Twitter - *http://twitter.com/kishanthan
>>> *
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> Twitter : @prabath
>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>
>> Mobile : +1 650 625 7950
>>
>> http://blog.facilelogin.com
>> http://blog.api-security.org
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com 
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Does anyone needs carbon-commons/components/data-sources

2015-08-06 Thread Supun Malinga
Hi,

$subject?.
[1] is not included in the build and wasn't released so far. As per Anjana
its the old DS component.
I'm going to remove it from commons. If anyone still needs it pls holler.

[1]
https://github.com/wso2/carbon-commons/tree/master/components/data-sources


thanks,
-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com 
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Anuruddha Liyanarachchi

2015-08-06 Thread Chalitha Waldeniyage
Congratulations Anuruddha !!!

On Wed, Aug 5, 2015 at 4:45 PM, Maheshakya Wijewardena 
wrote:

> Congratulations!
>
> On Wed, Aug 5, 2015 at 2:03 PM, Dilan Udara Ariyaratne 
> wrote:
>
>> Congratulations, Anuruddha !!!
>>
>>
>> *Dilan U. Ariyaratne*
>> Software Engineer
>> WSO2 Inc. 
>> Mobile: +94775149066
>> lean . enterprise . middleware
>>
>> On Wed, Aug 5, 2015 at 11:12 AM, Lalanke Athauda 
>> wrote:
>>
>>> Congratulation Anuruddha..
>>>
>>> On Wed, Aug 5, 2015 at 11:09 AM, Sajith Abeywardhana 
>>> wrote:
>>>
 Congratulations Anuruddha !!!

 *Sajith Abeywardhana* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka.
 Mobile: +94772260485
 Email: saji...@wso2.com | Web: www.wso2.com

 On Mon, Aug 3, 2015 at 11:37 PM, Imesh Gunaratne 
 wrote:

> s/great contributors/great contributions/g
>
> On Mon, Aug 3, 2015 at 11:36 PM, Imesh Gunaratne 
> wrote:
>
>> Hi Devs,
>>
>> It's my pleasure to welcome Anuruddha Liyanarachchi as a WSO2
>> Committer.
>>
>> Anuruddha has done great contributors to the WSO2 Private PaaS
>> project. As a recognition of his work he has been voted as a WSO2
>> committer.
>>
>> Anuruddha, welcome aboard! Keep up the good work!
>>
>> Thanks
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.gunaratne.org
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

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


>>>
>>>
>>> --
>>> Lalanke Athauda
>>> Software Engineer
>>> Mobile: 0772264301
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> Pruthuvi Maheshakya Wijewardena
> Software Engineer
> WSO2 : http://wso2.com/
> Email: mahesha...@wso2.com
> Mobile: +94711228855
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Chalitha Maheshwari*
Software Engineer-QA,
WSO2 Inc.

*E-mail:* chali...@wso2.com
*Mobile: *+94710 411 112
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Engage org.apache.catalina.filters.HttpHeaderSecurityFilter to all the web apps - including the Management Console

2015-08-06 Thread Kishanthan Thangarajah
Ok. Targeting for next kernel release. For already released products, they
can enable this by editing the global web.xml.

@SupunM, can we include this for next AS release?

On Thu, Aug 6, 2015 at 5:35 PM, Prabath Siriwardena 
wrote:

> Yes.. please engage it by default..
>
> Thanks & regards,
> -Prabath
>
> On Thu, Aug 6, 2015 at 5:28 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Created a jira for this : https://wso2.org/jira/browse/CARBON-15354
>>
>> On Thu, Aug 6, 2015 at 5:22 PM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> We can do this via the global web.xml at 
>>> $CARBON_HOME/repository/conf/tomcat/web.xml.
>>> Then it will be available for all the webapps (including mgt console).
>>> Should this be added as a default filter?
>>>
>>> Refer :
>>> https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#HTTP_Header_Security_Filter
>>>
>>> On Thu, Aug 6, 2015 at 3:48 PM, Prabath Siriwardena 
>>> wrote:
>>>
 Can we please do the $subject ?


 Thanks & Regards,
 Prabath

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

 Mobile : +1 650 625 7950

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

>>>
>>>
>>>
>>> --
>>> *Kishanthan Thangarajah*
>>> Associate Technical Lead,
>>> Platform Technologies Team,
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - +94773426635
>>> Blog - *http://kishanthan.wordpress.com
>>> *
>>> Twitter - *http://twitter.com/kishanthan
>>> *
>>>
>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Associate Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> *
>> Twitter - *http://twitter.com/kishanthan *
>>
>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +1 650 625 7950
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>



-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

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


Re: [Dev] Default sessionIdLength for webapps

2015-08-06 Thread Supun Malinga
Fixed..

On Thu, Aug 6, 2015 at 3:55 PM, Prabath Siriwardena 
wrote:

> https://wso2.org/jira/browse/CARBON-15352
>
> Thanks & regards,
> -Prabath
>
> On Thu, Aug 6, 2015 at 3:52 PM, Supun Malinga  wrote:
>
>> Please create a jira and assign to me. I'll fix it for next
>> carbon-deployment release.
>>
>> thanks,
>>
>> On Thu, Aug 6, 2015 at 3:50 PM, Prabath Siriwardena 
>> wrote:
>>
>>> Please set the default value of *sessionIdLength* to 128.
>>>
>>> Thanks & regards,
>>> -Prabath
>>>
>>> On Thu, Oct 9, 2014 at 8:44 PM, Prabath Siriwardena 
>>> wrote:
>>>
 Any reason why we should stick to 16..?

 Thanks & regards,
 -Prabath

 On Thu, Oct 9, 2014 at 8:42 PM, Afkham Azeez  wrote:

> Can you keep it at 16, and make it possible to configure it?
>
> On Thu, Oct 9, 2014 at 8:37 PM, Supun Malinga  wrote:
>
>> Hi,
>>
>> I'm going to set $subject via config from platform 4.3 onward. What
>> should be the optimum value ?.
>>
>> Tomcat default value for this is 16 and seems not enough for security
>> purposes.
>>
>> https://wso2.org/jira/browse/WSAS-1818
>>
>> thanks,
>> --
>> Supun Malinga,
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> email: sup...@wso2.com 
>> mobile: +94 (0)71 56 91 321
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



 --
 Thanks & Regards,
 Prabath

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

 Mobile : +94 71 809 6732

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

>>>
>>>
>>>
>>> --
>>> Thanks & Regards,
>>> Prabath
>>>
>>> Twitter : @prabath
>>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>>
>>> Mobile : +1 650 625 7950
>>>
>>> http://blog.facilelogin.com
>>> http://blog.api-security.org
>>>
>>
>>
>>
>> --
>> Supun Malinga,
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> email: sup...@wso2.com 
>> mobile: +94 (0)71 56 91 321
>>
>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +1 650 625 7950
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>



-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com 
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Engage org.apache.catalina.filters.HttpHeaderSecurityFilter to all the web apps - including the Management Console

2015-08-06 Thread Prabath Siriwardena
Yes.. please engage it by default..

Thanks & regards,
-Prabath

On Thu, Aug 6, 2015 at 5:28 PM, Kishanthan Thangarajah 
wrote:

> Created a jira for this : https://wso2.org/jira/browse/CARBON-15354
>
> On Thu, Aug 6, 2015 at 5:22 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> We can do this via the global web.xml at 
>> $CARBON_HOME/repository/conf/tomcat/web.xml.
>> Then it will be available for all the webapps (including mgt console).
>> Should this be added as a default filter?
>>
>> Refer :
>> https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#HTTP_Header_Security_Filter
>>
>> On Thu, Aug 6, 2015 at 3:48 PM, Prabath Siriwardena 
>> wrote:
>>
>>> Can we please do the $subject ?
>>>
>>>
>>> Thanks & Regards,
>>> Prabath
>>>
>>> Twitter : @prabath
>>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>>
>>> Mobile : +1 650 625 7950
>>>
>>> http://blog.facilelogin.com
>>> http://blog.api-security.org
>>>
>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Associate Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> *
>> Twitter - *http://twitter.com/kishanthan *
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 
Thanks & Regards,
Prabath

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

Mobile : +1 650 625 7950

http://blog.facilelogin.com
http://blog.api-security.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Engage org.apache.catalina.filters.HttpHeaderSecurityFilter to all the web apps - including the Management Console

2015-08-06 Thread Kishanthan Thangarajah
Created a jira for this : https://wso2.org/jira/browse/CARBON-15354

On Thu, Aug 6, 2015 at 5:22 PM, Kishanthan Thangarajah 
wrote:

> We can do this via the global web.xml at 
> $CARBON_HOME/repository/conf/tomcat/web.xml.
> Then it will be available for all the webapps (including mgt console).
> Should this be added as a default filter?
>
> Refer :
> https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#HTTP_Header_Security_Filter
>
> On Thu, Aug 6, 2015 at 3:48 PM, Prabath Siriwardena 
> wrote:
>
>> Can we please do the $subject ?
>>
>>
>> Thanks & Regards,
>> Prabath
>>
>> Twitter : @prabath
>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>
>> Mobile : +1 650 625 7950
>>
>> http://blog.facilelogin.com
>> http://blog.api-security.org
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

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


Re: [Dev] Engage org.apache.catalina.filters.HttpHeaderSecurityFilter to all the web apps - including the Management Console

2015-08-06 Thread Kishanthan Thangarajah
We can do this via the global web.xml at
$CARBON_HOME/repository/conf/tomcat/web.xml.
Then it will be available for all the webapps (including mgt console).
Should this be added as a default filter?

Refer :
https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#HTTP_Header_Security_Filter

On Thu, Aug 6, 2015 at 3:48 PM, Prabath Siriwardena 
wrote:

> Can we please do the $subject ?
>
>
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +1 650 625 7950
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>



-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

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


[Dev] [ES] It takes considerable amount of time to start the ES 2.0 sever for the first time

2015-08-06 Thread Chankami Maddumage
Hi ES Team,

As  mention in [1] it takes considerable amount of time to start the sever
for the first time.

We need to clarify that this issue cause due to the  amount of data that is
logged into the registry at the initial start up.

As an example we can see that disabled asset type details are logged in to
the registry where sites and gadgets are the only asset types that comes as
default with ES.


[1] -  https://wso2.org/jira/browse/STORE-958


-- 
Best Regards ,


*Chankami Maddumage*
Software Engineer - QA Team
WSO2 Inc; http://www.wso2.com/.
Mobile: +94 (0) 770 030 469 <%2B94%20%280%29%20773%20381%20250>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Orbit] Adding Storm 0.9.5 and Disruptor 3.3.2

2015-08-06 Thread Sriskandarajah Suhothayan
Thanks

On Thu, Aug 6, 2015 at 4:29 PM, Maheshika Goonetilleke 
wrote:

> Hi Suho
>
> Both have been successfully deployed.
>
> On Thu, Aug 6, 2015 at 4:28 PM, Sriskandarajah Suhothayan 
> wrote:
>
>> Hi,
>>
>> Can you please review and release Storm 0.9.5 and Disruptor 3.3.2 with
>> wso2v1 versions[1].
>>
>> Best regards,
>>
>> [1] 
>> *https://github.com/wso2/orbit/commit/ba0a7ea38de2b3c5e5de905695f6f79e9165dcce
>> *
>>
>> --
>>
>> *S. Suhothayan*
>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>> *WSO2 Inc. *http://wso2.com
>> * *
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>> http://suhothayan.blogspot.com/ twitter:
>> http://twitter.com/suhothayan  | linked-in:
>> http://lk.linkedin.com/in/suhothayan *
>>
>
>
>
> --
>
> Thanks & Best Regards,
>
> Maheshika Goonetilleke
> Engineering Process Coordinator
>
> *WSO2 Inc*
> *email   : mahesh...@wso2.com *
> *mobile : +94 773 596707 <%2B94%20773%20596707>*
> *www: :http://wso2.com *lean . enterprise . middleware
>
>
>
>
>


-- 

*S. Suhothayan*
Technical Lead & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Orbit] Adding Storm 0.9.5 and Disruptor 3.3.2

2015-08-06 Thread Maheshika Goonetilleke
Hi Suho

Both have been successfully deployed.

On Thu, Aug 6, 2015 at 4:28 PM, Sriskandarajah Suhothayan 
wrote:

> Hi,
>
> Can you please review and release Storm 0.9.5 and Disruptor 3.3.2 with
> wso2v1 versions[1].
>
> Best regards,
>
> [1] 
> *https://github.com/wso2/orbit/commit/ba0a7ea38de2b3c5e5de905695f6f79e9165dcce
> *
>
> --
>
> *S. Suhothayan*
> Technical Lead & Team Lead of WSO2 Complex Event Processor
> *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan *
>



-- 

Thanks & Best Regards,

Maheshika Goonetilleke
Engineering Process Coordinator

*WSO2 Inc*
*email   : mahesh...@wso2.com *
*mobile : +94 773 596707*
*www: :http://wso2.com *lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Orbit] Adding Storm 0.9.5 and Disruptor 3.3.2

2015-08-06 Thread Sriskandarajah Suhothayan
Hi,

Can you please review and release Storm 0.9.5 and Disruptor 3.3.2 with
wso2v1 versions[1].

Best regards,

[1] 
*https://github.com/wso2/orbit/commit/ba0a7ea38de2b3c5e5de905695f6f79e9165dcce
*

-- 

*S. Suhothayan*
Technical Lead & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Default sessionIdLength for webapps

2015-08-06 Thread Prabath Siriwardena
https://wso2.org/jira/browse/CARBON-15352

Thanks & regards,
-Prabath

On Thu, Aug 6, 2015 at 3:52 PM, Supun Malinga  wrote:

> Please create a jira and assign to me. I'll fix it for next
> carbon-deployment release.
>
> thanks,
>
> On Thu, Aug 6, 2015 at 3:50 PM, Prabath Siriwardena 
> wrote:
>
>> Please set the default value of *sessionIdLength* to 128.
>>
>> Thanks & regards,
>> -Prabath
>>
>> On Thu, Oct 9, 2014 at 8:44 PM, Prabath Siriwardena 
>> wrote:
>>
>>> Any reason why we should stick to 16..?
>>>
>>> Thanks & regards,
>>> -Prabath
>>>
>>> On Thu, Oct 9, 2014 at 8:42 PM, Afkham Azeez  wrote:
>>>
 Can you keep it at 16, and make it possible to configure it?

 On Thu, Oct 9, 2014 at 8:37 PM, Supun Malinga  wrote:

> Hi,
>
> I'm going to set $subject via config from platform 4.3 onward. What
> should be the optimum value ?.
>
> Tomcat default value for this is 16 and seems not enough for security
> purposes.
>
> https://wso2.org/jira/browse/WSAS-1818
>
> thanks,
> --
> Supun Malinga,
>
> Senior Software Engineer,
> WSO2 Inc.
> http://wso2.com
> email: sup...@wso2.com 
> mobile: +94 (0)71 56 91 321
>



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

 *Lean . Enterprise . Middleware*

>>>
>>>
>>>
>>> --
>>> Thanks & Regards,
>>> Prabath
>>>
>>> Twitter : @prabath
>>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>>
>>> Mobile : +94 71 809 6732
>>>
>>> http://blog.facilelogin.com
>>> http://blog.api-security.org
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> Twitter : @prabath
>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>
>> Mobile : +1 650 625 7950
>>
>> http://blog.facilelogin.com
>> http://blog.api-security.org
>>
>
>
>
> --
> Supun Malinga,
>
> Senior Software Engineer,
> WSO2 Inc.
> http://wso2.com
> email: sup...@wso2.com 
> mobile: +94 (0)71 56 91 321
>



-- 
Thanks & Regards,
Prabath

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

Mobile : +1 650 625 7950

http://blog.facilelogin.com
http://blog.api-security.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Default sessionIdLength for webapps

2015-08-06 Thread Supun Malinga
Please create a jira and assign to me. I'll fix it for next
carbon-deployment release.

thanks,

On Thu, Aug 6, 2015 at 3:50 PM, Prabath Siriwardena 
wrote:

> Please set the default value of *sessionIdLength* to 128.
>
> Thanks & regards,
> -Prabath
>
> On Thu, Oct 9, 2014 at 8:44 PM, Prabath Siriwardena 
> wrote:
>
>> Any reason why we should stick to 16..?
>>
>> Thanks & regards,
>> -Prabath
>>
>> On Thu, Oct 9, 2014 at 8:42 PM, Afkham Azeez  wrote:
>>
>>> Can you keep it at 16, and make it possible to configure it?
>>>
>>> On Thu, Oct 9, 2014 at 8:37 PM, Supun Malinga  wrote:
>>>
 Hi,

 I'm going to set $subject via config from platform 4.3 onward. What
 should be the optimum value ?.

 Tomcat default value for this is 16 and seems not enough for security
 purposes.

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

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com 
 mobile: +94 (0)71 56 91 321

>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * *
>>> *email: **az...@wso2.com* 
>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: **http://twitter.com/afkham_azeez*
>>> 
>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> Twitter : @prabath
>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>
>> Mobile : +94 71 809 6732
>>
>> http://blog.facilelogin.com
>> http://blog.api-security.org
>>
>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +1 650 625 7950
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>



-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com 
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Default sessionIdLength for webapps

2015-08-06 Thread Prabath Siriwardena
Please set the default value of *sessionIdLength* to 128.

Thanks & regards,
-Prabath

On Thu, Oct 9, 2014 at 8:44 PM, Prabath Siriwardena 
wrote:

> Any reason why we should stick to 16..?
>
> Thanks & regards,
> -Prabath
>
> On Thu, Oct 9, 2014 at 8:42 PM, Afkham Azeez  wrote:
>
>> Can you keep it at 16, and make it possible to configure it?
>>
>> On Thu, Oct 9, 2014 at 8:37 PM, Supun Malinga  wrote:
>>
>>> Hi,
>>>
>>> I'm going to set $subject via config from platform 4.3 onward. What
>>> should be the optimum value ?.
>>>
>>> Tomcat default value for this is 16 and seems not enough for security
>>> purposes.
>>>
>>> https://wso2.org/jira/browse/WSAS-1818
>>>
>>> thanks,
>>> --
>>> Supun Malinga,
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>> http://wso2.com
>>> email: sup...@wso2.com 
>>> mobile: +94 (0)71 56 91 321
>>>
>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> 
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>



-- 
Thanks & Regards,
Prabath

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

Mobile : +1 650 625 7950

http://blog.facilelogin.com
http://blog.api-security.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Engage org.apache.catalina.filters.HttpHeaderSecurityFilter to all the web apps - including the Management Console

2015-08-06 Thread Prabath Siriwardena
Can we please do the $subject ?


Thanks & Regards,
Prabath

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

Mobile : +1 650 625 7950

http://blog.facilelogin.com
http://blog.api-security.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Releasing carbon-registry repo 4.4.5

2015-08-06 Thread Shazni Nazeer
Hi all,

We are to release carbon-registry 4.4.5. You can find the staging repo at
[1]. Could you'll update the registry version to 4.4.5 with the staging
repo and verify this?

We'll release carbon-governance 4.5.2 after carbon-registry 4.4.5 gets
released.

[1]
http://maven.wso2.org/nexus/content/repositories/orgwso2carbonregistry-002/

Shazni Nazeer
Mob : +94 37331
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Orbit] Adding Spark MLlib 1.4.1

2015-08-06 Thread Maheshika Goonetilleke
Hi Both

The orbit bundles are deployed successfully.




On Thu, Aug 6, 2015 at 3:16 PM, Maheshakya Wijewardena 
wrote:

> Thanks Niranjan.
>
> On Thu, Aug 6, 2015 at 3:04 PM, Niranjan Karunanandham 
> wrote:
>
>> Hi Maheshakya,
>>
>> I have merged the PR.
>>
>> Regards,
>> Nira
>>
>> On Thu, Aug 6, 2015 at 2:57 PM, Niranjan Karunanandham > > wrote:
>>
>>> Noted!
>>>
>>> On Thu, Aug 6, 2015 at 2:13 PM, KasunG Gajasinghe 
>>> wrote:
>>>
 Hi Niranjan,

 Can you review this?

 Thanks.

 On Thu, Aug 6, 2015 at 1:59 PM, Maheshakya Wijewardena <
 mahesha...@wso2.com> wrote:

> Hi,
>
> Can you please review and merge this PR[1] for wso2v1 of the Spark
> mllib 1.4.1.
> The latest patch release addition of Spark 1.4.1 has not included
> MLlib, so I have added that.
>
> Best regards,
>
> [1] https://github.com/wso2/orbit/pull/116
> --
> Pruthuvi Maheshakya Wijewardena
> Software Engineer
> WSO2 : http://wso2.com/
> Email: mahesha...@wso2.com
> Mobile: +94711228855
>
>
>


 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org



>>>
>>>
>>>
>>> --
>>>
>>> *Niranjan Karunanandham*
>>> Senior Software Engineer - WSO2 Inc.
>>> WSO2 Inc.: http://www.wso2.com
>>>
>>
>>
>>
>> --
>>
>> *Niranjan Karunanandham*
>> Senior Software Engineer - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>
>
>
> --
> Pruthuvi Maheshakya Wijewardena
> Software Engineer
> WSO2 : http://wso2.com/
> Email: mahesha...@wso2.com
> Mobile: +94711228855
>
>
>


-- 

Thanks & Best Regards,

Maheshika Goonetilleke
Engineering Process Coordinator

*WSO2 Inc*
*email   : mahesh...@wso2.com *
*mobile : +94 773 596707*
*www: :http://wso2.com *lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Orbit] Adding Spark MLlib 1.4.1

2015-08-06 Thread Maheshakya Wijewardena
Thanks Niranjan.

On Thu, Aug 6, 2015 at 3:04 PM, Niranjan Karunanandham 
wrote:

> Hi Maheshakya,
>
> I have merged the PR.
>
> Regards,
> Nira
>
> On Thu, Aug 6, 2015 at 2:57 PM, Niranjan Karunanandham 
> wrote:
>
>> Noted!
>>
>> On Thu, Aug 6, 2015 at 2:13 PM, KasunG Gajasinghe 
>> wrote:
>>
>>> Hi Niranjan,
>>>
>>> Can you review this?
>>>
>>> Thanks.
>>>
>>> On Thu, Aug 6, 2015 at 1:59 PM, Maheshakya Wijewardena <
>>> mahesha...@wso2.com> wrote:
>>>
 Hi,

 Can you please review and merge this PR[1] for wso2v1 of the Spark
 mllib 1.4.1.
 The latest patch release addition of Spark 1.4.1 has not included
 MLlib, so I have added that.

 Best regards,

 [1] https://github.com/wso2/orbit/pull/116
 --
 Pruthuvi Maheshakya Wijewardena
 Software Engineer
 WSO2 : http://wso2.com/
 Email: mahesha...@wso2.com
 Mobile: +94711228855



>>>
>>>
>>> --
>>>
>>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>>> email: kasung AT spamfree wso2.com
>>> linked-in: http://lk.linkedin.com/in/gajasinghe
>>> blog: http://kasunbg.org
>>>
>>>
>>>
>>
>>
>>
>> --
>>
>> *Niranjan Karunanandham*
>> Senior Software Engineer - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



-- 
Pruthuvi Maheshakya Wijewardena
Software Engineer
WSO2 : http://wso2.com/
Email: mahesha...@wso2.com
Mobile: +94711228855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Orbit] Adding Spark MLlib 1.4.1

2015-08-06 Thread Niranjan Karunanandham
Hi Maheshakya,

I have merged the PR.

Regards,
Nira

On Thu, Aug 6, 2015 at 2:57 PM, Niranjan Karunanandham 
wrote:

> Noted!
>
> On Thu, Aug 6, 2015 at 2:13 PM, KasunG Gajasinghe  wrote:
>
>> Hi Niranjan,
>>
>> Can you review this?
>>
>> Thanks.
>>
>> On Thu, Aug 6, 2015 at 1:59 PM, Maheshakya Wijewardena <
>> mahesha...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> Can you please review and merge this PR[1] for wso2v1 of the Spark mllib
>>> 1.4.1.
>>> The latest patch release addition of Spark 1.4.1 has not included MLlib,
>>> so I have added that.
>>>
>>> Best regards,
>>>
>>> [1] https://github.com/wso2/orbit/pull/116
>>> --
>>> Pruthuvi Maheshakya Wijewardena
>>> Software Engineer
>>> WSO2 : http://wso2.com/
>>> Email: mahesha...@wso2.com
>>> Mobile: +94711228855
>>>
>>>
>>>
>>
>>
>> --
>>
>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>> email: kasung AT spamfree wso2.com
>> linked-in: http://lk.linkedin.com/in/gajasinghe
>> blog: http://kasunbg.org
>>
>>
>>
>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Orbit] Adding Spark MLlib 1.4.1

2015-08-06 Thread Niranjan Karunanandham
Noted!

On Thu, Aug 6, 2015 at 2:13 PM, KasunG Gajasinghe  wrote:

> Hi Niranjan,
>
> Can you review this?
>
> Thanks.
>
> On Thu, Aug 6, 2015 at 1:59 PM, Maheshakya Wijewardena <
> mahesha...@wso2.com> wrote:
>
>> Hi,
>>
>> Can you please review and merge this PR[1] for wso2v1 of the Spark mllib
>> 1.4.1.
>> The latest patch release addition of Spark 1.4.1 has not included MLlib,
>> so I have added that.
>>
>> Best regards,
>>
>> [1] https://github.com/wso2/orbit/pull/116
>> --
>> Pruthuvi Maheshakya Wijewardena
>> Software Engineer
>> WSO2 : http://wso2.com/
>> Email: mahesha...@wso2.com
>> Mobile: +94711228855
>>
>>
>>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pause/restart when processing a large file

2015-08-06 Thread Rudy Hilado
Malaka,

Thanks for the information!

When splitting the larger file into smaller files, how do you create the 
smaller files with a name based on the parent file? For example, if the source 
file is named “documentABC.txt”, I would like the smaller files to be named 
“documentABC_0001.txt” and “documentABC_0002.txt” etc. I’m having a difficult 
time figuring out how to access the name of the current file being processed by 
the VFS listener.

 

Thanks,

- Rudy

 

From: Malaka Silva [mailto:mal...@wso2.com] 
Sent: Thursday, August 06, 2015 1:57 AM
To: Rudy Hilado
Cc: WSO2 Developers' List
Subject: Re: [Dev] Pause/restart when processing a large file

 

Hi Rudy,

 

I am afraid currently this is not supported out of the box.

 

However you can achieve your requirement with the following solution.

 

You can split the file and put in a separate folder (One entry in a file). eg:- 
VFS Listerner [3] -> Iterator mediator [4] -> File Connector [1][2]

 

Take one file and process it. eg:- VFS listener [3]

 

Following doc links will help you to do this.

 

[1] 
https://storepreview.wso2.com/store/assets/esbconnector/f0550184-88c4-4d5e-b73f-ea51b1b5ab98

[2] 
https://docs.wso2.com/display/ESBCONNECTORS/Working+with+the+File+Connector#WorkingwiththeFileConnector-create

[3] https://docs.wso2.com/display/ESB481/VFS+Transport

[4] https://docs.wso2.com/display/ESB481/Iterate+Mediator

 

 

On Wed, Aug 5, 2015 at 8:52 PM, Rudy Hilado  
wrote:


 

Is it possible in the WSO2 ESB to process a large file (with each line 
representing a single record/message), and stop or pause the processing within 
the file, then restart where it left off? (using the Smooks mediator and/or 
Iterate mediator, or any other mechanism)

It appears that if you are processing a large file (say with 10K entries) you 
cannot stop or pause the processing (or if the ESB is brought down in the 
middle of processing the file), and then restart where it was stopped. Upon 
restarting either the whole file has to be reprocessed, or the file is dumped 
to the error folder and skipped. Is this correct?

Thanks for any help on this.

- Rudy

 


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





 

-- 

 

Best Regards,


Malaka Silva
Senior Tech Lead
M: +94 777 219 791

Tel : 94 11 214 5345

Fax :94 11 2145300 

Skype : malaka.sampath.silva

LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77

Blog : http://mrmalakasilva.blogspot.com/

 

WSO2, Inc. 

lean . enterprise . middleware 
http://www.wso2.com/

http://www.wso2.com/about/team/malaka-silva/ 
 

 

Save a tree -Conserve nature & Save the world for your future. Print this email 
only if it is absolutely necessary.

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


Re: [Dev] InMemory message store losing namespace

2015-08-06 Thread John Hawkins
Hi,
Created a JIRA [1] for this problem - many thanks.
[1] https://wso2.org/jira/browse/ESBJAVA-4028

John Hawkins
Director: Solutions Architecture


On Wed, Aug 5, 2015 at 3:27 PM, John Hawkins  wrote:

> Hi Folks,
>
> Got an interesting case here - can some one help please?
>
> I'm using a MessageStore in a proxy flow. I have a message which I send to
> a SOAP endpoint. When I use a JMS store it works fine - the correct message
> gets sent to the endpoint.
> However, when I swap that out for an in-memory store the ns is lost and
> the message fails to get processed at the EP.
>
> I have copied three versions of the message below: [1] is the message as I
> sent it before I used a messagestore. [2] is the message that works when I
> send it through a JMS message store [3] is the failing message as is sent
> when it comes out of the JMSStore. I'm assuming that the message is
> serialised in and out of the message store and this is probably where the
> problem is ?
>
> [1] ORIGINAL MESSAGE
> 
> http://schemas.xmlsoap.org/soap/envelope/
> "
>   xmlns:cof="http://coffee.suppliers.com/";>
>
>
>   
>  mylovelyshop
>  morecoffee !!
>  3
>   
>
> 
>
> [2] WORKING JMS_MESSAGE_STORE MESSAGE
> 
> http://schemas.xmlsoap.org/soap/envelope/
> ">
>
>   http://coffee.suppliers.com/";>
>  mylovelyshop
>  morecoffee !!
>  3
>   
>
> 
>
>
> [3] FAILING IN-MEMORY MESSAGE
> 
> http://schemas.xmlsoap.org/soap/envelope/
> ">
>
>   
>  mylovelyshop
>  morecoffee !!
>  3
>   
>
> 
>
>
> Is this a bug in the in-memory message store serialisation or a feature of
> my configuration ?
>
> many thanks !
> John.
>
>
> John Hawkins
> Director: Solutions Architecture
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Orbit] Adding Spark MLlib 1.4.1

2015-08-06 Thread KasunG Gajasinghe
Hi Niranjan,

Can you review this?

Thanks.

On Thu, Aug 6, 2015 at 1:59 PM, Maheshakya Wijewardena 
wrote:

> Hi,
>
> Can you please review and merge this PR[1] for wso2v1 of the Spark mllib
> 1.4.1.
> The latest patch release addition of Spark 1.4.1 has not included MLlib,
> so I have added that.
>
> Best regards,
>
> [1] https://github.com/wso2/orbit/pull/116
> --
> Pruthuvi Maheshakya Wijewardena
> Software Engineer
> WSO2 : http://wso2.com/
> Email: mahesha...@wso2.com
> Mobile: +94711228855
>
>
>


-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DSS] How to load tenant axis configurations without invoking the tenant service.

2015-08-06 Thread Madhawa Gunasekara
Hi Kasun,

Thanks for the quick reply, will try it.

Regards,
Madhawa

On Thu, Aug 6, 2015 at 1:52 PM, KasunG Gajasinghe  wrote:

> Hi Madhawa,
>
> When you call TenantAxisUtils#getTenantConfigurationContext, it will load
> the tenant if it's not loaded already. You can get the tenant
> AxisConfiguration from the tenant ConfigurationContext.
>
> On Thu, Aug 6, 2015 at 12:35 PM, Madhawa Gunasekara 
> wrote:
>
>> Hi Devs,
>>
>> I have requirement to support multi-tenancy for a particular service type
>> (OData). tenant users can expose their datasources as OData service. We
>> handle REST ODATA requests using simple servlet. In this servlet we find
>> particular service handler for the each service and we process them. DBS
>> should be deployed to find the handlers. therefore the tenant axis configs
>> should be loaded.
>>
>> Normally tenant axis configs are load lazily. Therefore tenant axis
>> configs were load when a tenant request invoked.  the problem is we are
>> n't  using /services/t/test.com/fddf/ url type for the service. we use
>> /odataservices/t/test.com/fddf/ therefore It doesn't load the tenant
>> axis configuration for these OData services.
>>
>> How can we load the tenant axis configurations manually ?
>>
>> Any help on this matter is highly appreciated.
>>
>> Thanks,
>> --
>> *Madhawa Gunasekara*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 719411002 <+94+719411002>
>> blog: *http://madhawa-gunasekara.blogspot.com
>> *
>> linkedin: *http://lk.linkedin.com/in/mgunasekara
>> *
>>
>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



-- 
*Madhawa Gunasekara*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 719411002 <+94+719411002>
blog: *http://madhawa-gunasekara.blogspot.com
*
linkedin: *http://lk.linkedin.com/in/mgunasekara
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Orbit] Adding Spark MLlib 1.4.1

2015-08-06 Thread Maheshakya Wijewardena
Hi,

Can you please review and merge this PR[1] for wso2v1 of the Spark mllib
1.4.1.
The latest patch release addition of Spark 1.4.1 has not included MLlib, so
I have added that.

Best regards,

[1] https://github.com/wso2/orbit/pull/116
-- 
Pruthuvi Maheshakya Wijewardena
Software Engineer
WSO2 : http://wso2.com/
Email: mahesha...@wso2.com
Mobile: +94711228855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DSS] How to load tenant axis configurations without invoking the tenant service.

2015-08-06 Thread KasunG Gajasinghe
Hi Madhawa,

When you call TenantAxisUtils#getTenantConfigurationContext, it will load
the tenant if it's not loaded already. You can get the tenant
AxisConfiguration from the tenant ConfigurationContext.

On Thu, Aug 6, 2015 at 12:35 PM, Madhawa Gunasekara 
wrote:

> Hi Devs,
>
> I have requirement to support multi-tenancy for a particular service type
> (OData). tenant users can expose their datasources as OData service. We
> handle REST ODATA requests using simple servlet. In this servlet we find
> particular service handler for the each service and we process them. DBS
> should be deployed to find the handlers. therefore the tenant axis configs
> should be loaded.
>
> Normally tenant axis configs are load lazily. Therefore tenant axis
> configs were load when a tenant request invoked.  the problem is we are
> n't  using /services/t/test.com/fddf/ url type for the service. we use
> /odataservices/t/test.com/fddf/ therefore It doesn't load the tenant axis
> configuration for these OData services.
>
> How can we load the tenant axis configurations manually ?
>
> Any help on this matter is highly appreciated.
>
> Thanks,
> --
> *Madhawa Gunasekara*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 719411002 <+94+719411002>
> blog: *http://madhawa-gunasekara.blogspot.com
> *
> linkedin: *http://lk.linkedin.com/in/mgunasekara
> *
>



-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Jaggery] Retrieving public IP of the HTTP Servlet Transport

2015-08-06 Thread Rasika Perera
Hi Ruwan,

Thanks for the quick info. When given environment property is set
"-Dserver.host"; all Jaggery "get()" XMLHTTPRequest wrapper calls for
JAX-RS deployed on the same server fails with a "Connection timed out".

[2015-08-05 18:29:59,509] ERROR
> {org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject} -  Connection
> timed out
> java.net.ConnectException: Connection timed out


For further reference full error trace is in [1]. Any idea on how to
resolve this issue would be greatly appreciated. Meanwhile I'll try to debug
"XMLHttpRequestHostObject".

[1] Server Log
[2015-08-05 18:29:59,509] ERROR
{org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject} -  Connection
timed out
java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:625)
at sun.security.ssl.SSLSocketImpl.(SSLSocketImpl.java:457)
at
sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:140)
at
org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:82)
at
org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:127)
at
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at
org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.executeRequest(XMLHttpRequestHostObject.java:538)
at
org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.send(XMLHttpRequestHostObject.java:532)
at
org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.jsFunction_send(XMLHttpRequestHostObject.java:284)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at
org.jaggeryjs.rhino.<>.META_INF.scripts.c0._c_anonymous_5(<>/META-INF/scripts/http.js:220)
at
org.jaggeryjs.rhino.<>.META_INF.scripts.c0.call(<>/META-INF/scripts/http.js)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
at
org.jaggeryjs.rhino.<>.META_INF.scripts.c0._c_anonymous_7(<>/META-INF/scripts/http.js:228)
at
org.jaggeryjs.rhino.<>.META_INF.scripts.c0.call(<>/META-INF/scripts/http.js)
at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
at
org.jaggeryjs.rhino.iotserver.api.c1._c_script_0(/iotserver/api/device-api.jag:127)


On Wed, Aug 5, 2015 at 7:33 PM, Ruwan Abeykoon  wrote:

> Hi Rasika,
> Try setting -Dserver.host=2.2.2.2 in your "wso2server.sh"
>
> Cheers,
> Ruwanm
>
> On Wed, Aug 5, 2015 at 7:13 PM, Rasika Perera  wrote:
>
>> Hi,
>>
>> When we have setup a public IP (eg. 2.2.2.2) and a private IP (eg.
>> 1.1.1.1) for a server setup given that [1] changes done on carbon.xml.
>>
>> How can I retrieve the public IP from the following jaggery code;
>>
>>> ​var carbon = require('carbon');
>>> print (carbon.server.address('http'));
>>
>>
>> This still prints "http://1.1.1.1:9763";. Is there any additional
>> configurations needed to be done on carbon.xml?
>>
>> [1] carbon.xml
>>
>> 2.2.2.2
>>
>> 2.2.2.2​
>>
>> --
>> With Regards,
>>
>> *Rasika Perera*
>> Software Engineer
>> M: +94 71 680 9060 E: rasi...@wso2.com
>> LinkedIn: http://lk.linkedin.com/in/rasika90
>>
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Ruwan Abeykoon*
> *Architect,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ruw...@wso2.com
> phone:(+94) 39736
>



-- 
With Regards,

*Rasika Perera*
Software Engineer
M: +94 71 680 9060 E: rasi...@wso2.com
LinkedIn: http://lk.linkedin.com/in/rasika90

WSO2 Inc. www.wso2.com
lean.enterprise.middleware
_

Re: [Dev] How to add a Servlet in DSS

2015-08-06 Thread Madhawa Gunasekara
Hi All,

Please refer [1]

[1] [Dev][DSS] How to load tenant axis configurations without invoking the
tenant service

Thanks,
Madhawa

On Thu, Aug 6, 2015 at 7:14 AM, Shashika Karunatilaka <
shashikabo...@gmail.com> wrote:

> Hi Madhawa,
>
> AFAIK if you want the same web app in each tenant you have to deploy that
> web app in each tenant,
> what do you mean by loading tenant configuration manually?
>
> Thank you.
>
> On Wed, Aug 5, 2015 at 8:14 PM, Madhawa Gunasekara 
> wrote:
>
>> Hi Kasun,
>>
>> How can we use web app for multi-tenancy? Do we have to deploy the web
>> app in each tenant folder?
>> if not how can we load the tenant configuration manually ?
>>
>> Thanks,
>> Madhawa
>>
>> On Wed, Aug 5, 2015 at 12:58 PM, Anjana Fernando  wrote:
>>
>>> Hi Kasun,
>>>
>>> I see, make sense, with the security scenarios and so on. Just wondering
>>> since, we got a patch for the earlier wild cards scenario. Thanks for the
>>> clarification.
>>>
>>> Cheers,
>>> Anjana.
>>>
>>> On Wed, Aug 5, 2015 at 12:54 PM, KasunG Gajasinghe 
>>> wrote:
>>>
 Hi Anjana,

 The servlet registration provided via component.xml only provides a
 basic set of features. As we discussed here, it does not support wild
 cards. And, it does not support things such as security-constraints which
 we configure through web.xml of a webapp. I believe Madhawa requested this
 as well in the thread [1]. And, there can be other requirements that might
 pop-up as the integration goes on.

 Since we have a viable approach for these problems by using webapps,
 it's better to go on that path because of the above.

 [1] How to handle QOS Security for servlet request


 On Wed, Aug 5, 2015 at 12:36 PM, Anjana Fernando 
 wrote:

> Hi Kasun,
>
> But, still, it is an extra hassle to create another webapp and copy it
> to the deployment directory separately, it is not there with the other
> components. What is wrong with the other existing approach? ..
>
> Cheers,
> Anjana.
>
> On Wed, Aug 5, 2015 at 12:33 PM, KasunG Gajasinghe 
> wrote:
>
>> Hi Anjana/Madhawa,
>>
>> The webapp is there to expose a servlet. The actual logic does not
>> need to be in the webapp itself, and can be put in a carbon component. 
>> So,
>> there's no separation.
>>
>> IS etc. does the same where they have JAX-RS webapps that only has
>> the jax-rs resource class to expose a REST service. The actual logic is
>> there in identity components.
>>
>> On Tue, Aug 4, 2015 at 11:25 PM, Madhawa Gunasekara <
>> madha...@wso2.com> wrote:
>>
>>> Hi Carbon Team,
>>>
>>> Can we add this improvement to the upcoming carbon minor version
>>> release ?
>>>
>>> Thanks,
>>> Madhawa
>>>
>>> On Wed, Jul 29, 2015 at 10:36 PM, Anjana Fernando 
>>> wrote:
>>>
 Hi Niranjan,

 Why exactly is that? .. it doesn't look right to put one of the
 server's core logic in a webapp. Also it has to be specially copied to 
 the
 deployment folder and all, and also, will all the tenant's get it's own
 context? .. Basically, just having a separate web app feels like, it's
 separated from the other components.

 Cheers,
 Anjana.

 On Wed, Jul 29, 2015 at 12:25 PM, Niranjan Karunanandham <
 niran...@wso2.com> wrote:

> Hi Madhawa,
>
> As per the offline discussion with the team (Kernel), we
> recommended to use webapp. Therefore we will be reverting this.
>
> Regards,
> Nira
>
> On Wed, Jul 22, 2015 at 3:46 PM, Madhawa Gunasekara <
> madha...@wso2.com> wrote:
>
>> Hi All,
>>
>> Please find the created JIRA
>> https://wso2.org/jira/browse/CARBON-15322
>>
>> Thanks
>> Madhawa
>>
>> On Wed, Jul 22, 2015 at 2:46 PM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Madhawa,
>>>
>>> Can you raise a JIRA in Kernel as an improvement for this?
>>>
>>> Regards,
>>> Nira
>>>
>>> On Wed, Jul 22, 2015 at 2:14 PM, Madhawa Gunasekara <
>>> madha...@wso2.com> wrote:
>>>
 Hi Thusitha,

 Can we add wild-card option for the implementation ?

 Thanks

 On Wed, Jul 22, 2015 at 2:12 PM, Thusitha Thilina Dayaratne <
 thusit...@wso2.com> wrote:

> Hi Madhawa,
>
> AFAIU In the implementation it get the links and add them to a
> Map where key and value both are same. When we do a request it 
> check from
> the map whether the key exist for the path. If exist it will be 
>>>

[Dev] [Arduino] Connection Time-Out

2015-08-06 Thread Shabir Mohamed
Hi,

I am using a CC3000 Wifi-Sheild to connect an Arduino to our wifi-network
and push some data to our IoT platform. The server returns just a *"204 No
Content"* upon receiving device data. The code can be found at [1].

However, one issue we faced was that the Wifi-Sheild fails after a couple
of pushes to the server. As a work-around I have set the Arduino to reset
upon certain timeout limit. However, this is not reliable.

Experimenting the sheild from an external network (home or Dialog 4G)
produced no failures and it operated without failure for over 45 minutes.

Can the behaviour be attributed to the network-congestion/routing-order  in
our routers? Or is it some other behaviour with regards to Arduino
Wifi-Sheilds and their firmware?

Is there a possible solution to overcome this whilst connected to our
internal network?

[1]
https://github.com/wso2-dev/device-cloud-agents/tree/master/FireAlarmWifiAgent

Thanks In Advance
-
*Shabir Mohamed*
*Software Engineer*
WSO2 Inc.; http://wso2.com
Email: sha...@wso2.com 
Mobile: +94 77 3516019 | +94 71 6583393
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] Throttling Tiers

2015-08-06 Thread Shabir Mohamed
Hi,

According to our APIM docs[1], throttling is handled in the following
order:

*API-Level*
*Application-Level *
*Resource-Level*.

As per my understanding the purpose of an Application is to group a set of
similar user-subscribed APIs.

Then shouldn't we be checking for the Application-Level first and then
check whether the API can be granted access to? Because we could have
multiple APIs in an application which haven't reached their throttling
level whilst the application itself could have passed the limit?

Please correct me if I'm missing anything here

[1] https://docs.wso2.com/display/AM190/Key+Concepts
-
*Shabir Mohamed*
*Software Engineer*
WSO2 Inc.; http://wso2.com
Email: sha...@wso2.com 
Mobile: +94 77 3516019 | +94 71 6583393
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DSS] How to load tenant axis configurations without invoking the tenant service.

2015-08-06 Thread Madhawa Gunasekara
Hi Devs,

I have requirement to support multi-tenancy for a particular service type
(OData). tenant users can expose their datasources as OData service. We
handle REST ODATA requests using simple servlet. In this servlet we find
particular service handler for the each service and we process them. DBS
should be deployed to find the handlers. therefore the tenant axis configs
should be loaded.

Normally tenant axis configs are load lazily. Therefore tenant axis configs
were load when a tenant request invoked.  the problem is we are n't  using
/services/t/test.com/fddf/ url type for the service. we use
/odataservices/t/test.com/fddf/ therefore It doesn't load the tenant axis
configuration for these OData services.

How can we load the tenant axis configurations manually ?

Any help on this matter is highly appreciated.

Thanks,
-- 
*Madhawa Gunasekara*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 719411002 <+94+719411002>
blog: *http://madhawa-gunasekara.blogspot.com
*
linkedin: *http://lk.linkedin.com/in/mgunasekara
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge PR for IDENTITY-3488

2015-08-06 Thread Indunil Upeksha Rathnayake
Hi,

Please $subject. The PR [1] as the fix for the public JIRA [2].

[1] https://github.com/wso2/carbon-identity/pull/751
[2] https://wso2.org/jira/browse/IDENTITY-3488

Thanks and Regards
-- 
Indunil Upeksha Rathnayake
Software Engineer | WSO2 Inc
Emailindu...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev