Re: [Dev] Disabling hostname verification on Kernel 4.4.17-SNAPSHOT

2017-08-18 Thread Kishanthan Thangarajah
Hi ViduraN,

Shall we make sure that all the above information is captured in the
documentation?

Thanks,

On Thu, Aug 17, 2017 at 3:22 PM, Vidura Nanayakkara <vidu...@wso2.com>
wrote:

> ​​Hi,
>
> On Thu, Aug 17, 2017 at 7:49 AM, Chandana Napagoda <chand...@wso2.com>
> wrote:
>
>> Hi
>>
>> Could you please point the fix you have made to address this issue?
>>
>
> ​As Shariq mentioned, *org.wso2.ignoreHostnameVerification *property was
> removed from Kernel 4.4.17 onwards. With PR [1], commons-httpclient library
> coming from kernel will handle host name verification by itself.  The
> property  *org.wso2.ignoreHostnameVerification* is replaced by
> *httpclient.hostnameVerifier*. The possible values for
> *httpclient.hostnameVerifier *is as described below:
>
>- DefaultAndLocalhost - Verify host name without being strict with
>sub-domains (*.foo.com is allowed to match with a.b.foo.com) and also
>allow local host
>- AllowAll - Allows all hosts
>- Strict - Verify all hosts while being strict with sub-domains (*.
>foo.com is not allowed to match with a.b.foo.com)
>
> Example: httpclient.hostnameVerifier="Strict"
>
> By default, host name verification will happen for all hosts without being
> strict with sub-domains (*.foo.com is allowed to match with a.b.foo.com)
>
> Since host name verification is handled by the commons-httpclient library
> coming from the kernel (with PR [1]), other components do not need to worry
> about handling host name verification. For instance, handling host name
> verification is removed from the jaggery component in PR [2].
>
> [1] https://github.com/wso2/wso2-commons-httpclient/pull/5
> [2] https://github.com/wso2/jaggery/pull/174/
>
>
>>
>> Regards,
>> Chandana
>>
>> On Thu, Aug 17, 2017 at 7:20 AM, Muhammed Shariq <sha...@wso2.com> wrote:
>>
>>> On Wed, Aug 16, 2017 at 11:45 PM, Kishanthan Thangarajah <
>>> kishant...@wso2.com> wrote:
>>>
>>>>
>>>>
>>>> On Wed, Aug 16, 2017 at 9:48 PM, Nuwandi Wickramasinghe <
>>>> nuwan...@wso2.com> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> With the latest IS pack built with kernel 4.4.17-SNAPSHOT, we can
>>>>> successfully turn off the hostname verification with
>>>>> *-Dhttpclient.hostnameVerifier=AllowAll*.
>>>>>
>>>>
>>>> What was the original issue? Farasath has followed the same steps (IS
>>>> with 4.4.17-SNAPSHOT) and mentioned that the above property was not working
>>>> according to the mail above.
>>>>
>>>>
>>>>> Need to do some code changes from Identity Server side to make the
>>>>> newly introduced property effective for some components.
>>>>>
>>>>
>>>> What are the code changes? This property is only used in httpclient
>>>> coming from kernel. So why changes are required at IS side?
>>>>
>>>
>>> Prior to kernel 4.4.17 there was a property 
>>> *-Dorg.wso2.ignoreHostnameVerification=true
>>> *that was used to disable hostname verification. IINM, the issue here
>>> is some components use this property to disable hostname verification, but
>>> since it's that property has been removed since 4.4.17 that might be
>>> causing some issue, so they are investigating on IS side.
>>>
>>> Nuwandi / Fara - correct me if I am wrong.
>>>
>>>>
>>>>
>>>>> Since no improvement is needed from kernel side, can we please go
>>>>> ahead with the kernel 4.4.17 release?
>>>>>
>>>>> *-Dhttpclient.hostnameVerifier *is only applicable since 4.4.17, but
>>>>> our documentation says it's applicable from 4.4.10 ([1]). Better to fix 
>>>>> the
>>>>> documentation as well. Reopened [2] since the doc need to be corrected.
>>>>>
>>>>> [1] https://docs.wso2.com/display/ADMIN44x/Enabling+HostName
>>>>> +Verification
>>>>> [2] https://wso2.org/jira/browse/DOCUMENTATION-4071
>>>>>
>>>>> thanks
>>>>> Nuwandi
>>>>>
>>>>> On Wed, Aug 16, 2017 at 5:39 PM, Farasath Ahamed <farasa...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, Aug 15, 2017 at 8:22 PM, Farasath Ahamed <farasa...@wso2.com>
>>>>>> wrote:
>>>

Re: [Dev] Disabling hostname verification on Kernel 4.4.17-SNAPSHOT

2017-08-16 Thread Kishanthan Thangarajah
a:1729)
>>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>>>> Executor.java:1142)
>>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>>>> lExecutor.java:617)
>>>> at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.r
>>>> un(TaskThread.java:61)
>>>> at java.lang.Thread.run(Thread.java:748)
>>>> Caused by: javax.net.ssl.SSLHandshakeException:
>>>> java.security.cert.CertificateException: No name matching idp.wso2.com
>>>> found
>>>> at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
>>>> at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
>>>> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
>>>> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
>>>> at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHa
>>>> ndshaker.java:1514)
>>>> at sun.security.ssl.ClientHandshaker.processMessage(ClientHands
>>>> haker.java:216)
>>>> at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)
>>>> at sun.security.ssl.Handshaker.process_record(Handshaker.java:961)
>>>> at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
>>>> at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSo
>>>> cketImpl.java:1375)
>>>> at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.
>>>> java:1403)
>>>> at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.
>>>> java:1387)
>>>> at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsCli
>>>> ent.java:559)
>>>> at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnectio
>>>> n.connect(AbstractDelegateHttpsURLConnection.java:185)
>>>> at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Ht
>>>> tpsURLConnectionImpl.java:153)
>>>> at org.apache.jsp.login_jsp._jspService(login_jsp.java:777)
>>>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>>>> at org.apache.jasper.servlet.JspServletWrapper.service(JspServl
>>>> etWrapper.java:439)
>>>> ... 44 more
>>>> Caused by: java.security.cert.CertificateException: No name matching
>>>> idp.wso2.com found
>>>> at sun.security.util.HostnameChecker.matchDNS(HostnameChecker.java:221)
>>>> at sun.security.util.HostnameChecker.match(HostnameChecker.java:95)
>>>> at sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509Trus
>>>> tManagerImpl.java:455)
>>>> at sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509Trus
>>>> tManagerImpl.java:436)
>>>> at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509Trust
>>>> ManagerImpl.java:200)
>>>> at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X50
>>>> 9TrustManagerImpl.java:124)
>>>> at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHa
>>>> ndshaker.java:1496)
>>>> ... 58 more
>>>>
>>>>
>>>> Is the information in [1] still valid?
>>>>
>>>> Chandana pointed out there has been a http client version upgrade in
>>>> Kernel 4.4.17. Could this be a reason for this?
>>>>
>>>>
>>>> [1] https://docs.wso2.com/display/ADMIN44x/Enabling+HostName
>>>> +Verification
>>>>
>>>>
>>>> Thanks,
>>>> Farasath Ahamed
>>>> Software Engineer, WSO2 Inc.; http://wso2.com
>>>> Mobile: +94777603866
>>>> Blog: blog.farazath.com
>>>> Twitter: @farazath619 <https://twitter.com/farazath619>
>>>> <http://wso2.com/signature>
>>>>
>>>>
>>>>
>>>> ___
>>>> 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
>>
>>
>
>
> --
>
> Best Regards,
>
> Nuwandi Wickramasinghe
>
> Software Engineer
>
> WSO2 Inc.
>
> Web : http://wso2.com
>
> Mobile : 0719214873
>



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

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


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.17 RC3

2017-07-20 Thread Kishanthan Thangarajah
Dropping this due to an important fix needed from commons-httpclient -
https://github.com/wso2/carbon-kernel/issues/1447

Will fix them and call for the vote soon.

On Thu, Jul 20, 2017 at 9:49 AM, Kishanthan Thangarajah <kishant...@wso2.com
> wrote:

> Hi All,
>
> This is the 3rd release candidate of WSO2 Carbon Kernel 4.4.17.
>
> This release fixes the following issues:
> https://github.com/wso2/carbon-kernel/milestone/15?closed=1
>
> Please download and test your products with kernel 4.4.17 RC3 and vote.
> The vote will be open for 72 hours or as long as needed.
>
> Maven staging repository:
> https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1186/
>
> The tag to be voted upon:
> https://github.com/wso2/carbon-kernel/releases/tag/v4.4.17-rc3
>
> [ ] Broken - Do not release (explain why)
> [ ] Stable  - Go ahead and release
>
> Thank you,
> Platform Team.
>



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

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


[Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.17 RC3

2017-07-19 Thread Kishanthan Thangarajah
Hi All,

This is the 3rd release candidate of WSO2 Carbon Kernel 4.4.17.

This release fixes the following issues:
https://github.com/wso2/carbon-kernel/milestone/15?closed=1

Please download and test your products with kernel 4.4.17 RC3 and vote. The
vote will be open for 72 hours or as long as needed.

Maven staging repository:
https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1186/

The tag to be voted upon:
https://github.com/wso2/carbon-kernel/releases/tag/v4.4.17-rc3

[ ] Broken - Do not release (explain why)
[ ] Stable  - Go ahead and release

Thank you,
Platform Team.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.17 RC1

2017-07-05 Thread Kishanthan Thangarajah
There is an L1 in axis2 level which we need to fix it properly -
https://github.com/wso2/wso2-axis2/issues/113

This has to go with the the kernel release, hence we need to cancel this
vote.

On Thu, Jun 29, 2017 at 3:36 PM, Chandana Napagoda <chand...@wso2.com>
wrote:

> Hi Devs,
>
> This is the 1st release candidate of WSO2 Carbon Kernel 4.4.17.
>
> This release fixes the following issues
> https://github.com/wso2/carbon-kernel/milestone/15?closed=1
>
> Please test your products with kernel 4.4.17 RC1 and vote. The vote will
> be open for 72 hours or as longer as needed.
>
> Maven staging repository
> https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1177/
>
> The tag to be voted upon :
> https://github.com/wso2/carbon-kernel/releases/tag/v4.4.17-rc1
>
> [ ] Broken - Do not release (explain why)
> [ ] Stable  - Go ahead and release
>
> Thank you
> Platform Team
>
> --
> *Chandana Napagoda*
> Associate Technical Lead
> WSO2 Inc. - http://wso2.org
>
> *Email  :  chand...@wso2.com <chand...@wso2.com>**Mobile : +94718169299
> <+94%2071%20816%209299>*
>
> *Blog  :http://cnapagoda.blogspot.com <http://cnapagoda.blogspot.com>
> | http://chandana.napagoda.com <http://chandana.napagoda.com>*
>
> *Linkedin : http://www.linkedin.com/in/chandananapagoda
> <http://www.linkedin.com/in/chandananapagoda>*
>
>


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

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


Re: [Dev] WSO2 Standard on naming component artifact IDs

2017-06-14 Thread Kishanthan Thangarajah
We use a wso2 name space qualified pattern (org.wso2.xxx) for our bundles
to avoid any conflicts with other 3rd party OSGi bundles. We have to fix
this and the bundle names should be consistent.

Thanks,

On Tue, Jun 13, 2017 at 3:37 PM, Dilan Udara Ariyaratne <dil...@wso2.com>
wrote:

> Hi Folks,
>
> I have seen occasions where we have interchangeably used dashes and dots
> for naming component artifact IDs and some having "org.wso2.carbon" as
> prefix while others are not.
>
> For example,
>
>  
>   org.wso2.carbon.utils
>   carbon-utils
>  
>  
>   org.wso2.carbon
>   org.wso2.carbon.core
>  
>
> Bringing your focus on what should be the exact standard ?
>
> Thanks,
> Dilan.
>
> *Dilan U. Ariyaratne*
> Senior Software Engineer
> WSO2 Inc. <http://wso2.com/>
> Mobile: +94766405580 <%2B94766405580>
> lean . enterprise . middleware
>
>


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

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


Re: [Dev] MSF4J next release

2017-06-08 Thread Kishanthan Thangarajah
Hi Jayanga, Danesh, Thusitha,

Please have a look on this and provide an estimate on the release timeline
for kernel and msf4j.

Thanks,

On Tue, Jun 6, 2017 at 9:45 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Ishara,
>
> In order to do an MSF4J GA release, we need to first do a GA release for
> the kernel 5.2.0 (the latest is 5.2.0-m4). Once the 5.2.0 GA is done then
> we can do an MSF4J GA release on using that. But AFAIK it might take
> sometime since we need to port the changes done in the kernel for other
> dependent repos.
>
> Thanks
> Thusitha
>
> On Tue, Jun 6, 2017 at 4:18 AM, Ishara Cooray <isha...@wso2.com> wrote:
>
>> Hi Kernel Team,
>>
>> APIM 3.0 scope validation feature depends on latest changes[1] that are
>> available in msf4j 2.3.0-m2
>>
>> We also have a dependency to ballerina composer which depends on msf4j
>> 2.1.0
>>
>> In order for us to get latest changes in msf4j2.3.0-m2 we also need
>> ballerina parent to upgrade it's msf4j version to latest.
>> (The problem has discussed in [2].)
>>
>> But, they can only be upgraded to a released version of msf4j(as per off
>> line chat with Viraj).
>>
>> Therefore, can we please get a released version of msf4j with the recent
>> changes?
>>
>>  [1] https://github.com/wso2/msf4j/blob/v2.3.0-m2/core/src/m
>> ain/java/org/wso2/msf4j/internal/router/HttpMethodInfo.java#L174
>>
>> [2] *@dev* [DEV] MSF4J level support to get resource template of a http
>> request
>>
>>
>> Thanks & Regards,
>> Ishara Cooray
>> Senior Software Engineer
>> Mobile : +9477 262 9512 <+94%2077%20262%209512>
>> WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>
>
>
> --
> Thusitha Dayaratne
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809 <+94%2071%20275%206809>
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
> <http://wso2.com/signature>
>
>


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

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


Re: [Dev] [C5] Archetypes Tests for Kernel

2017-05-17 Thread Kishanthan Thangarajah
Merged.

Thanks,

On Tue, May 16, 2017 at 10:50 PM, Manuri Amaya Perera <manu...@wso2.com>
wrote:

> Hi Kishanthan,
>
> I have replied to the comments.
>
> Thanks,
> Manuri
>
> On Tue, May 16, 2017 at 10:32 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Hi Manuri,
>>
>> Thank you for looking into this. I have added some review comments on the
>> PR.
>>
>> Thanks,
>>
>> On Mon, May 15, 2017 at 10:23 PM, Manuri Amaya Perera <manu...@wso2.com>
>> wrote:
>>
>>> Hi Carbon Team,
>>>
>>> Please review and merge this PR[1] for $subject. The tests were written
>>> before C5 5.0.0 release but later were reverted due to a test failure in
>>> windows caused by a bug in the maven archetype plugin. Now, after more than
>>> an year an archetype plugin release has taken place with this bug fixed, so
>>> I upgraded the plugin version and added the tests back.
>>>
>>> [1] https://github.com/wso2/carbon-kernel/pull/1370
>>>
>>> Thanks,
>>> Manuri
>>>
>>> --
>>>
>>> *Manuri Amaya Perera*
>>>
>>> *Software Engineer*
>>>
>>> *WSO2 Inc.*
>>>
>>> *Blog: http://manuriamayaperera.blogspot.com
>>> <http://manuriamayaperera.blogspot.com>*
>>>
>>>
>>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635 <+94%2077%20342%206635>
>> Blog - *http://kishanthan.wordpress.com
>> <http://kishanthan.wordpress.com>*
>> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>>
>
>
>
> --
>
> *Manuri Amaya Perera*
>
> *Software Engineer*
>
> *WSO2 Inc.*
>
> *Blog: http://manuriamayaperera.blogspot.com
> <http://manuriamayaperera.blogspot.com>*
>
>
>


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

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


Re: [Dev] [C5] Archetypes Tests for Kernel

2017-05-16 Thread Kishanthan Thangarajah
Hi Manuri,

Thank you for looking into this. I have added some review comments on the
PR.

Thanks,

On Mon, May 15, 2017 at 10:23 PM, Manuri Amaya Perera <manu...@wso2.com>
wrote:

> Hi Carbon Team,
>
> Please review and merge this PR[1] for $subject. The tests were written
> before C5 5.0.0 release but later were reverted due to a test failure in
> windows caused by a bug in the maven archetype plugin. Now, after more than
> an year an archetype plugin release has taken place with this bug fixed, so
> I upgraded the plugin version and added the tests back.
>
> [1] https://github.com/wso2/carbon-kernel/pull/1370
>
> Thanks,
> Manuri
>
> --
>
> *Manuri Amaya Perera*
>
> *Software Engineer*
>
> *WSO2 Inc.*
>
> *Blog: http://manuriamayaperera.blogspot.com
> <http://manuriamayaperera.blogspot.com>*
>
>
>


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

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


Re: [Dev] Folder Structure for C5 based MB

2017-04-27 Thread Kishanthan Thangarajah
With this approach, all the components required for the product will be in
the proposed product repo and any changes to components (bug fixes, etc),
will require a product release.

You also have to use the new product directory structure proposed for C5
based servers.

And don't use carbon.product file, unless it is necessary. Not to have a
"carbon.prodcut" is supported with the latest carbon feature plugin.
Otherwise, you can't automate the release with CI/CD. if required.

Thanks,

On Thu, Apr 27, 2017 at 11:32 AM, Eranda Rajapakshe <eran...@wso2.com>
wrote:

> Hi, HasithaD and I are working on bootstrapping the C5 based Message
> Broker product.
>
> In the current version of WSO2 Message broker (3.x) we have following 3
> repos.
>
>
>1.
>
>Andes - contains the messaging core, apache qpid fork and JMX
>monitoring objects.
>2.
>
>Carbon-business-messaging - contains admin services, wraps andes as a
>osgi service, and the UI impl.
>3.
>
>Product-mb - contains test cases, and distribution configurations.
>
>
> For MB 4x, we have come up with a more unified structure based on a single
> repo (refer [2] as an example). The intention here is to reduce build and
> maintenance complexity. However, if there is a need to use separate
> components/features within MB into other products, we need to go for
> separate repos as and when required.
>
> We will be working on product-mb/4.x.x branch [1]. Please let us know any
> suggestion and comments on this.
>
> [1]. https://github.com/wso2/product-mb/tree/4.x.x
>
> [2].
>
> product-mb
>
> ├── components
>
> │ ├── org.wso2.carbon.andes
>
> │ ├── org.wso2.carbon.mb.services
>
> │ ├── org.wso2.carbon.mb.ui
>
> │ └── …..
>
> ├── features
>
> │ ├── org.wso2.carbon.andes.feature
>
> │ ├── org.wso2.carbon.mb.services.feature
>
> │ ├── org.wso2.carbon.mb.ui.feature
>
> │ └── …...
>
> ├── pom.xml
>
> ├── LICENSE.txt
>
> ├── README.md
>
> └── product
>
>   ├── carbon-home
>
>   │   └── README.md
>
>   ├── carbon.product
>
>   ├── pom.xml
>
>   └── src
>
>   └── assembly
>
>  ├── bin.xml
>   └── filter.properties
>
> Thanks,
> --
> *Eranda Rajapakshe*
> Software Engineer
> WSO2 Inc.
> Mobile : +94784822608
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


Re: [Dev] OSGI tests for secure vault and configuration provider

2017-04-18 Thread Kishanthan Thangarajah
As discussed, please use the OSGi services exposed for both sec-vault and
config-provider separately when writing test cases for these.

On Tue, Apr 18, 2017 at 10:10 AM, Lakshman Udayakantha <lakshm...@wso2.com>
wrote:

> Hi,
>
> I was working on writing test cases for secure vault and configuration
> provider. I was planning to port the same unit tests written for secure
> vault and configuration provider into kernel OSGi tests. Anyway since
> secure vault is not directly used by the kernel and kernel used the
> configuration provider in order to invoke secure vault functionalities,
> shall we write test cases for the secure vault using configuration
> provider?
>
> Thanks,
> Lakshman.
>
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0717429601*
>
>


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

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


Re: [Dev] Please review and merge the pull request

2017-04-05 Thread Kishanthan Thangarajah
Can you also create a github issue with the proper description for this and
link it with the PR?

On Wed, Apr 5, 2017 at 9:44 PM, Vijitha Ekanayake <vijit...@wso2.com> wrote:

> Hi Carbon team,
>
> Please merge the pull request [1] which contains critical fixes to
> support DSS multitenancy over passthru transport.
>
> [1]. https://github.com/wso2/carbon-kernel/pull/1349
>
> Thanks.
>
> --
> Vijitha Ekanayake
> Software Engineer*, *WSO2, Inc.; http://wso2.com/
> Mobile : +94 777 24 73 39 | +94 718 74 44 08
> lean.enterprise.middleware
>



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

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


Re: [Dev] [C5] NPE in Utils.getCarbonConfigHome()

2017-03-01 Thread Kishanthan Thangarajah
Thanks Gokul. Added a review comment on your PR. Please look into it.

On Tue, Feb 28, 2017 at 5:45 PM, Gokul Balakrishnan <go...@wso2.com> wrote:

> Hi,
>
> In our component, we have a piece of code that has a possibility of being
> called from within a Carbon server as well as from outside. This code uses
> the Utils.getCarbonConfigHome() method from the kernel.
>
> In the second case, since the required system property is not found in the
> runtime, it's a given that the call should fail. However, rather than
> failing gracefully, this method throws an NPE since in [1], there's an
> attempt to set a null as a system property.
>
> The proper fix here should be that a null check be introduced and the
> calling party notified (e.g. through an exception). Added the fix at [2].
> Could you check please?
>
> [1] https://github.com/wso2/carbon-kernel/blob/master/
> core/src/main/java/org/wso2/carbon/kernel/utils/Utils.java#L67
>
> [2] https://github.com/wso2/carbon-kernel/issues/1309
>
> Thanks,
>
> --
> Gokul Balakrishnan
> Senior Software Engineer,
> WSO2, Inc. http://wso2.com
> M +94 77 5935 789 | +44 7563 570502 <+44%207563%20570502>
>
>


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

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


Re: [Dev] Please Review and Merge (WebSocket Suppport for Carbon-Messaging)

2017-01-27 Thread Kishanthan Thangarajah
Looks ok.

Senduran/Shafreen, can we merge this PR?

On Thu, Jan 26, 2017 at 7:27 PM, Irunika Weeraratne <irun...@wso2.com>
wrote:

> Hi,
> Fixed the issues mentioned.
> Please review and merge.
>
> Thanks,
> Irunika
>
> *Irunika Weeraratne*
> *Software Engineer | WSO2, Inc. <http://wso2.com/>*
> *Email : irun...@wso2.com <irun...@wso2.com>*
> *LinkedIn : https://lk.linkedin.com/in/irunika
> <https://lk.linkedin.com/in/irunika>*
> *Mobile : +94712403314 <+94%2071%20240%203314>*
> *Lean . Enterprise . Middleware*
>
>
> On Thu, Jan 26, 2017 at 7:04 PM, Irunika Weeraratne <irun...@wso2.com>
> wrote:
>
>> Noted.
>>
>> Thanks,
>> Irunika
>>
>> *Irunika Weeraratne*
>> *Software Engineer | WSO2, Inc. <http://wso2.com/>*
>> *Email : irun...@wso2.com <irun...@wso2.com>*
>> *LinkedIn : https://lk.linkedin.com/in/irunika
>> <https://lk.linkedin.com/in/irunika>*
>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Thu, Jan 26, 2017 at 4:34 PM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> PR has some formatting issue to be fixed. Can you look into it?
>>>
>>> On Thu, Jan 26, 2017 at 12:03 PM, Irunika Weeraratne <irun...@wso2.com>
>>> wrote:
>>>
>>>> Hi all,
>>>> Can you please review and merge the PR?
>>>>
>>>> Thanks,
>>>> Irunika
>>>>
>>>> *Irunika Weeraratne*
>>>> *Software Engineer | WSO2, Inc. <http://wso2.com/>*
>>>> *Email : irun...@wso2.com <irun...@wso2.com>*
>>>> *LinkedIn : https://lk.linkedin.com/in/irunika
>>>> <https://lk.linkedin.com/in/irunika>*
>>>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>>>> *Lean . Enterprise . Middleware*
>>>>
>>>>
>>>> On Wed, Jan 25, 2017 at 3:35 PM, Irunika Weeraratne <irun...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi all,
>>>>> I modified the Carbon-Messaging according to the requirements.
>>>>> Please review and merge.
>>>>> https://github.com/wso2/carbon-messaging/pull/40
>>>>>
>>>>> Thanks,
>>>>> Irunika
>>>>>
>>>>> *Irunika Weeraratne*
>>>>> *Software Engineer | WSO2, Inc. <http://wso2.com/>*
>>>>> *Email : irun...@wso2.com <irun...@wso2.com>*
>>>>> *LinkedIn : https://lk.linkedin.com/in/irunika
>>>>> <https://lk.linkedin.com/in/irunika>*
>>>>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>>>>> *Lean . Enterprise . Middleware*
>>>>>
>>>>>
>>>>> On Mon, Jan 2, 2017 at 12:47 PM, Irunika Weeraratne <irun...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi all,
>>>>>> I did necessary changes after the review.
>>>>>> Please review and merge
>>>>>> https://github.com/wso2/carbon-messaging/pull/40
>>>>>>
>>>>>> Thanks,
>>>>>> Irunika
>>>>>>
>>>>>> *Irunika Weeraratne*
>>>>>> *Software Engineer | WSO2, Inc. <http://wso2.com/>*
>>>>>> *Email : irun...@wso2.com <irun...@wso2.com>*
>>>>>> *LinkedIn : https://lk.linkedin.com/in/irunika
>>>>>> <https://lk.linkedin.com/in/irunika>*
>>>>>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>>>>>> *Lean . Enterprise . Middleware*
>>>>>>
>>>>>>
>>>>>> On Fri, Dec 23, 2016 at 1:36 PM, Irunika Weeraratne <irun...@wso2.com
>>>>>> > wrote:
>>>>>>
>>>>>>> Noted.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Irunika
>>>>>>>
>>>>>>> *Irunika Weeraratne*
>>>>>>> *Software Engineer | WSO2, Inc. <http://wso2.com/>*
>>>>>>> *Email : irun...@wso2.com <irun...@wso2.com>*
>>>>>>> *LinkedIn : https://lk.linkedin.com/in/irunika
>>>>>>> <https://lk.linkedin.com/in/irunika>*
>>>>>>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>>>>>>> *Lean . Enterprise . Middleware*
>>>>>>>
>>>>>>

Re: [Dev] [C5] Obtaining hostname in carbon kernel 5

2017-01-26 Thread Kishanthan Thangarajah
Providing hostname information is part of the transport framework. That is
why it is not provided from the kernel in C5. We have to see how to expose
these kind of information from the relevant transport implementation level.

On Thu, Jan 26, 2017 at 5:10 PM, Charini Nanayakkara <chari...@wso2.com>
wrote:

> Hi,
>
> We are in the process of moving carbon analytics common to C5. When
> migrating, it was noted that C5 disallows us to obtain the hostname (or the
> server url) unlike in C4. Since the hostname is required in many instances,
> is it going to be supported in a latter version of C5? Or is there an
> alternative way of obtaining the server hostname?
>
> Thank you
> Charini
> --
> *Charini Vimansha Nanayakkara*
> Software Engineer at WSO2
>
> Mobile: 0714126293
> E-mail: chari...@wso2.com
> Blog: http://www.charini.me/
>
> <http://wso2.com/signature>
>



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

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


Re: [Dev] Please Review and Merge (WebSocket Suppport for Carbon-Messaging)

2017-01-26 Thread Kishanthan Thangarajah
PR has some formatting issue to be fixed. Can you look into it?

On Thu, Jan 26, 2017 at 12:03 PM, Irunika Weeraratne <irun...@wso2.com>
wrote:

> Hi all,
> Can you please review and merge the PR?
>
> Thanks,
> Irunika
>
> *Irunika Weeraratne*
> *Software Engineer | WSO2, Inc. <http://wso2.com/>*
> *Email : irun...@wso2.com <irun...@wso2.com>*
> *LinkedIn : https://lk.linkedin.com/in/irunika
> <https://lk.linkedin.com/in/irunika>*
> *Mobile : +94712403314 <+94%2071%20240%203314>*
> *Lean . Enterprise . Middleware*
>
>
> On Wed, Jan 25, 2017 at 3:35 PM, Irunika Weeraratne <irun...@wso2.com>
> wrote:
>
>> Hi all,
>> I modified the Carbon-Messaging according to the requirements.
>> Please review and merge.
>> https://github.com/wso2/carbon-messaging/pull/40
>>
>> Thanks,
>> Irunika
>>
>> *Irunika Weeraratne*
>> *Software Engineer | WSO2, Inc. <http://wso2.com/>*
>> *Email : irun...@wso2.com <irun...@wso2.com>*
>> *LinkedIn : https://lk.linkedin.com/in/irunika
>> <https://lk.linkedin.com/in/irunika>*
>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Mon, Jan 2, 2017 at 12:47 PM, Irunika Weeraratne <irun...@wso2.com>
>> wrote:
>>
>>> Hi all,
>>> I did necessary changes after the review.
>>> Please review and merge
>>> https://github.com/wso2/carbon-messaging/pull/40
>>>
>>> Thanks,
>>> Irunika
>>>
>>> *Irunika Weeraratne*
>>> *Software Engineer | WSO2, Inc. <http://wso2.com/>*
>>> *Email : irun...@wso2.com <irun...@wso2.com>*
>>> *LinkedIn : https://lk.linkedin.com/in/irunika
>>> <https://lk.linkedin.com/in/irunika>*
>>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Fri, Dec 23, 2016 at 1:36 PM, Irunika Weeraratne <irun...@wso2.com>
>>> wrote:
>>>
>>>> Noted.
>>>>
>>>> Thanks,
>>>> Irunika
>>>>
>>>> *Irunika Weeraratne*
>>>> *Software Engineer | WSO2, Inc. <http://wso2.com/>*
>>>> *Email : irun...@wso2.com <irun...@wso2.com>*
>>>> *LinkedIn : https://lk.linkedin.com/in/irunika
>>>> <https://lk.linkedin.com/in/irunika>*
>>>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>>>> *Lean . Enterprise . Middleware*
>>>>
>>>>
>>>> On Fri, Dec 23, 2016 at 1:30 PM, Kishanthan Thangarajah <
>>>> kishant...@wso2.com> wrote:
>>>>
>>>>> Adding @dev
>>>>>
>>>>> @Irunika, always copy the relevant mailing list.
>>>>>
>>>>> On Fri, Dec 23, 2016 at 1:17 PM, Irunika Weeraratne <irun...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>> Please review and merge
>>>>>> https://github.com/wso2/carbon-messaging/pull/39
>>>>>>
>>>>>> Thanks,
>>>>>> Irunika
>>>>>> *Irunika Weeraratne*
>>>>>> *Software Engineer | WSO2, Inc. <http://wso2.com/>*
>>>>>> *Email : irun...@wso2.com <irun...@wso2.com>*
>>>>>> *LinkedIn : https://lk.linkedin.com/in/irunika
>>>>>> <https://lk.linkedin.com/in/irunika>*
>>>>>> *Mobile : +94712403314 <+94%2071%20240%203314>*
>>>>>> *Lean . Enterprise . Middleware*
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Kishanthan Thangarajah*
>>>>> Technical Lead,
>>>>> Platform Technologies Team,
>>>>> WSO2, Inc.
>>>>> lean.enterprise.middleware
>>>>>
>>>>> Mobile - +94773426635 <+94%2077%20342%206635>
>>>>> Blog - *http://kishanthan.wordpress.com
>>>>> <http://kishanthan.wordpress.com>*
>>>>> Twitter - *http://twitter.com/kishanthan
>>>>> <http://twitter.com/kishanthan>*
>>>>>
>>>>
>>>>
>>>
>>
>


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

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


Re: [Dev] Please review and merge

2017-01-19 Thread Kishanthan Thangarajah
Hi Maheshika,

Have we enabled auto release for carbon-deployment 4.7.x branch [1]? If
not, we have to enable it.

[1] https://github.com/wso2/carbon-deployment/tree/4.7.x

On Thu, Jan 19, 2017 at 6:39 PM, Kishanthan Thangarajah <kishant...@wso2.com
> wrote:

> This is merged.
>
> On Thu, Jan 19, 2017 at 6:07 PM, Malith Munasinghe <mali...@wso2.com>
> wrote:
>
>> Fixed.
>>
>> On Thu, Jan 19, 2017 at 5:39 PM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> There is a formatting issue in the PR, please fix it.
>>>
>>> On Thu, Jan 19, 2017 at 2:22 PM, Malith Munasinghe <mali...@wso2.com>
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> Please review and merge [1]. This is used to fix [2].
>>>>
>>>> [1] https://github.com/wso2/carbon-deployment/pull/247
>>>> [2] https://github.com/wso2/carbon-deployment/issues/248
>>>>
>>>> Regards,
>>>> Malith
>>>>
>>>> --
>>>> Malith Munasinghe | Software Engineer
>>>> M: +94 (71) 9401122 <+94%2071%20940%201122>
>>>> E: mali...@wso2.com
>>>> W: http://wso2.com
>>>> <http://wso2.com/signature>
>>>>
>>>
>>>
>>>
>>> --
>>> *Kishanthan Thangarajah*
>>> Technical Lead,
>>> Platform Technologies Team,
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - +94773426635 <+94%2077%20342%206635>
>>> Blog - *http://kishanthan.wordpress.com
>>> <http://kishanthan.wordpress.com>*
>>> Twitter - *http://twitter.com/kishanthan
>>> <http://twitter.com/kishanthan>*
>>>
>>
>>
>>
>> --
>> Malith Munasinghe | Software Engineer
>> M: +94 (71) 9401122 <+94%2071%20940%201122>
>> E: mali...@wso2.com
>> W: http://wso2.com
>> <http://wso2.com/signature>
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635 <+94%2077%20342%206635>
> Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>*
> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>



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

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


Re: [Dev] [Identity Server] Creating a server configuration Identity.yaml vs component wise yaml files and Reading the server configurations

2017-01-19 Thread Kishanthan Thangarajah
On Thu, Jan 19, 2017 at 2:03 PM, Johann Nallathamby <joh...@wso2.com> wrote:

> Hi Danushka,
>
> Did you see [1]? The thread talks about a single config file for the most
> commonly changed config files. However the thread doesn't seem to have a
> conclusion.
>
> @Kernel Team,
> Is this something we have completed implementing? If so can you share some
> latest details of how we should be using it?
>

Yes, please check the doc - https://github.com/wso2/
carbon-kernel/blob/master/docs/DeveloperTools/UpdatingConfigurations.md

>
> @Danushka,
> In any case one mistake we made in C4 based IS is reading and parsing the
> identity.xml from a single component - identity.core. We must not make the
> same mistake again. Each component must pass its own configuration in the
> yaml file using snakeyaml and build its own configuration model. This will
> achieve less coupling among bundles. Of course you can have utilities in
> [2] if needed to pass identity.yaml but nothing specific to a specific
> feature.
>
> So I think to summarize, the configuration file is specific to the product
> and a single file for the whole server, but parsing the file is the
> responsibility of each component. This doesn't apply for more complex
> configurations such as claim-config.yaml, user-store-config.yaml, etc.
>
> [1] [Architecture] Configuration files in C5
> [2] https://github.com/wso2/carbon-identity-commons/tree/mas
> ter/components/org.wso2.carbon.identity.common/src/main/java
> /org/wso2/carbon/identity/common/util
>
> Regards,
> Johann.
>
> On Thu, Jan 19, 2017 at 1:46 PM, Danushka Fernando <danush...@wso2.com>
> wrote:
>
>> Hi All
>> We are currently working on setting challenge questions feature for IS
>> 6.0.0-M1. We need some configurations specific to security questions /
>> account recovery section. In C4 based products it was in identity.xml which
>> is the server configuration. In C5 code we dont have created a such file.
>> We have several user management related configs which are deployed
>> separately in C4 as well. But when we are moving towards C5, what should be
>> the way of creating these configs. Is it component wise or server wise?
>>
>> Any ideas are appreciated.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729 <+94%2071%20633%202729>
>>
>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Technical Lead & Product Lead of WSO2 Identity Server
> Governance Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
>



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

Mobile - +94773426635 <+94%2077%20342%206635>
Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>*
Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [UUF] Boolean values are not get stored properly in injected js variable from sendToClient()

2017-01-19 Thread Kishanthan Thangarajah
We are using gson to serialize the json sent to client [1]. But we need the
sample data used here to test what could be the issue.

[1]
https://github.com/wso2/carbon-uuf/blob/master/components/uuf-renderablecreator-hbs/src/main/java/org/wso2/carbon/uuf/renderablecreator/hbs/impl/js/JsFunctionsImpl.java#L152

On Thu, Jan 19, 2017 at 7:04 PM, Manuranga Perera <m...@wso2.com> wrote:

> I think it's a java object. I think we need to use something like gson
> here
>
> On Thu, Jan 19, 2017 at 1:30 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Can we have the json object to investigate this?
>>
>> On Thu, Jan 19, 2017 at 6:22 PM, SajithAR Ariyarathna <sajit...@wso2.com>
>> wrote:
>>
>>> +{UUF Team]
>>>
>>> On Thu, Jan 19, 2017 at 5:34 PM, Indunil Upeksha Rathnayake <
>>> indu...@wso2.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> Having some problem when using sendToClient() method in the UUF Server
>>>> Side JS API. I am trying to send an array with a set of map elements as in
>>>> [1] including some boolean values. When we are sending this value to client
>>>> side using the sendToClient(), it's injecting the variables to the
>>>> "js" placeholder in the layout. But when evaluating the variable, boolean
>>>> values are not stored as it is but as follows.
>>>> *function Boolean() { [native code] }*
>>>>
>>>> Seems like in there, it's getting the value of
>>>> "booleanVaribale.constructor". I'm using uuf version "1.0.0-m9". Is
>>>> this expectable or an issue?
>>>>
>>>> [1] [ {"claimURI":"http://wso2.org/claims/givenname
>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org%2Fclaims%2Fgivenname=D=1=AFQjCNHhpHtMY1eVUFZfM8A2n2iOnajUvg>
>>>> ","required":"function Boolean() { [native code] }"},
>>>> {"claimURI":"http://wso2.org/claims/lastname
>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org%2Fclaims%2Flastname=D=1=AFQjCNGDQuIZMXiN8WMbgitjy9uIJ_jKDw>
>>>> ","required":"function Boolean() { [native code] }"}]
>>>>
>>>> Thanks and Regards
>>>> --
>>>> Indunil Upeksha Rathnayake
>>>> Software Engineer | WSO2 Inc
>>>> Emailindu...@wso2.com
>>>> Mobile   0772182255
>>>>
>>>
>>>
>>>
>>> --
>>> Sajith Janaprasad Ariyarathna
>>> Software Engineer; WSO2, Inc.;  http://wso2.com/
>>> <https://wso2.com/signature>
>>>
>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635 <+94%2077%20342%206635>
>> Blog - *http://kishanthan.wordpress.com
>> <http://kishanthan.wordpress.com>*
>> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@wso2.com
>



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

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


Re: [Dev] [UUF] Boolean values are not get stored properly in injected js variable from sendToClient()

2017-01-19 Thread Kishanthan Thangarajah
Can we have the json object to investigate this?

On Thu, Jan 19, 2017 at 6:22 PM, SajithAR Ariyarathna <sajit...@wso2.com>
wrote:

> +{UUF Team]
>
> On Thu, Jan 19, 2017 at 5:34 PM, Indunil Upeksha Rathnayake <
> indu...@wso2.com> wrote:
>
>> Hi,
>>
>> Having some problem when using sendToClient() method in the UUF Server
>> Side JS API. I am trying to send an array with a set of map elements as in
>> [1] including some boolean values. When we are sending this value to client
>> side using the sendToClient(), it's injecting the variables to the "js"
>> placeholder in the layout. But when evaluating the variable, boolean values
>> are not stored as it is but as follows.
>> *function Boolean() { [native code] }*
>>
>> Seems like in there, it's getting the value of
>> "booleanVaribale.constructor". I'm using uuf version "1.0.0-m9". Is this
>> expectable or an issue?
>>
>> [1] [ {"claimURI":"http://wso2.org/claims/givenname
>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org%2Fclaims%2Fgivenname=D=1=AFQjCNHhpHtMY1eVUFZfM8A2n2iOnajUvg>
>> ","required":"function Boolean() { [native code] }"},
>> {"claimURI":"http://wso2.org/claims/lastname
>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.org%2Fclaims%2Flastname=D=1=AFQjCNGDQuIZMXiN8WMbgitjy9uIJ_jKDw>
>> ","required":"function Boolean() { [native code] }"}]
>>
>> Thanks and Regards
>> --
>> Indunil Upeksha Rathnayake
>> Software Engineer | WSO2 Inc
>> Emailindu...@wso2.com
>> Mobile   0772182255
>>
>
>
>
> --
> Sajith Janaprasad Ariyarathna
> Software Engineer; WSO2, Inc.;  http://wso2.com/
> <https://wso2.com/signature>
>



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

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


Re: [Dev] Please review and merge

2017-01-19 Thread Kishanthan Thangarajah
This is merged.

On Thu, Jan 19, 2017 at 6:07 PM, Malith Munasinghe <mali...@wso2.com> wrote:

> Fixed.
>
> On Thu, Jan 19, 2017 at 5:39 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> There is a formatting issue in the PR, please fix it.
>>
>> On Thu, Jan 19, 2017 at 2:22 PM, Malith Munasinghe <mali...@wso2.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> Please review and merge [1]. This is used to fix [2].
>>>
>>> [1] https://github.com/wso2/carbon-deployment/pull/247
>>> [2] https://github.com/wso2/carbon-deployment/issues/248
>>>
>>> Regards,
>>> Malith
>>>
>>> --
>>> Malith Munasinghe | Software Engineer
>>> M: +94 (71) 9401122 <+94%2071%20940%201122>
>>> E: mali...@wso2.com
>>> W: http://wso2.com
>>> <http://wso2.com/signature>
>>>
>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635 <+94%2077%20342%206635>
>> Blog - *http://kishanthan.wordpress.com
>> <http://kishanthan.wordpress.com>*
>> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>>
>
>
>
> --
> Malith Munasinghe | Software Engineer
> M: +94 (71) 9401122 <+94%2071%20940%201122>
> E: mali...@wso2.com
> W: http://wso2.com
> <http://wso2.com/signature>
>



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

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


Re: [Dev] Please review and merge

2017-01-19 Thread Kishanthan Thangarajah
There is a formatting issue in the PR, please fix it.

On Thu, Jan 19, 2017 at 2:22 PM, Malith Munasinghe <mali...@wso2.com> wrote:

> Hi All,
>
> Please review and merge [1]. This is used to fix [2].
>
> [1] https://github.com/wso2/carbon-deployment/pull/247
> [2] https://github.com/wso2/carbon-deployment/issues/248
>
> Regards,
> Malith
>
> --
> Malith Munasinghe | Software Engineer
> M: +94 (71) 9401122 <+94%2071%20940%201122>
> E: mali...@wso2.com
> W: http://wso2.com
> <http://wso2.com/signature>
>



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

Mobile - +94773426635 <+94%2077%20342%206635>
Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>*
Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Print UUF Application URLs in server startup logs

2017-01-17 Thread Kishanthan Thangarajah
@Shan, shall we trigger the auto release for the master branch using next
milestone version?

On Tue, Jan 17, 2017 at 10:35 AM, SajithAR Ariyarathna <sajit...@wso2.com>
wrote:

> Hi All,
>
> This feature is implemented and available in the latest snapshot
> (1.0.0-SNAPSHOT) of 'carbon-uuf'.
>
> Thanks.
>
> On Fri, Jan 13, 2017 at 10:28 AM, KasunG Gajasinghe <kas...@wso2.com>
> wrote:
>
>>
>> On Fri, Jan 13, 2017 at 10:14 AM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> https://github.com/wso2/carbon-uuf/issues/136 :)
>>>
>>>
>> +1. :)
>>
>>
>>> On Fri, Jan 13, 2017 at 10:12 AM, KasunG Gajasinghe <kas...@wso2.com>
>>> wrote:
>>>
>>>>
>>>> Thanks Kishanthan. Where can I raise a ticket for this?
>>>>
>>>> On Fri, Jan 13, 2017 at 7:17 AM, Kishanthan Thangarajah <
>>>> kishant...@wso2.com> wrote:
>>>>
>>>>> +1 for this suggestion. Yes, we get the app context(s) during server
>>>>> startup and uuf-core could log the context or the URL when starting up.
>>>>>
>>>>> On Fri, Jan 13, 2017 at 1:01 AM, KasunG Gajasinghe <kas...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Kishanthan/Sajith,
>>>>>>
>>>>>> Since the applications are lazily deployed, there is no sign of UUF
>>>>>> applications available in the system in the server startup logs. But, I
>>>>>> believe the UUF deployer receives the apps during startup. Therefore, can
>>>>>> we do $subject?
>>>>>>
>>>>>> Thanks,
>>>>>> KasunG
>>>>>>
>>>>>> --
>>>>>>
>>>>>> *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
>>>>>> email: kasung AT spamfree wso2.com
>>>>>> linked-in: http://lk.linkedin.com/in/gajasinghe
>>>>>> blog: http://kasunbg.org
>>>>>> phone: +1 650-745-4499 <(650)%20745-4499>, 77 678 0813
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Kishanthan Thangarajah*
>>>>> Technical Lead,
>>>>> Platform Technologies Team,
>>>>> WSO2, Inc.
>>>>> lean.enterprise.middleware
>>>>>
>>>>> Mobile - +94773426635 <+94%2077%20342%206635>
>>>>> Blog - *http://kishanthan.wordpress.com
>>>>> <http://kishanthan.wordpress.com>*
>>>>> Twitter - *http://twitter.com/kishanthan
>>>>> <http://twitter.com/kishanthan>*
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
>>>> email: kasung AT spamfree wso2.com
>>>> linked-in: http://lk.linkedin.com/in/gajasinghe
>>>> blog: http://kasunbg.org
>>>> phone: +1 650-745-4499 <(650)%20745-4499>, 77 678 0813
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> *Kishanthan Thangarajah*
>>> Technical Lead,
>>> Platform Technologies Team,
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - +94773426635 <077%20342%206635>
>>> Blog - *http://kishanthan.wordpress.com
>>> <http://kishanthan.wordpress.com>*
>>> Twitter - *http://twitter.com/kishanthan
>>> <http://twitter.com/kishanthan>*
>>>
>>
>>
>>
>> --
>>
>> *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
>> email: kasung AT spamfree wso2.com
>> linked-in: http://lk.linkedin.com/in/gajasinghe
>> blog: http://kasunbg.org
>> phone: +1 650-745-4499 <(650)%20745-4499>, 77 678 0813
>>
>>
>
>
>
> --
> Sajith Janaprasad Ariyarathna
> Software Engineer; WSO2, Inc.;  http://wso2.com/
> <https://wso2.com/signature>
>



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

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


Re: [Dev] [UUF] Document onRequest() method in the UUF developer's guide

2017-01-13 Thread Kishanthan Thangarajah
On Wed, Jan 11, 2017 at 6:15 PM, Sagara Gunathunga <sag...@wso2.com> wrote:

>
> Shouldn't we add and maintain this doc in UUF Github repo itself ?
>

Its already added to github -
https://github.com/wso2/carbon-uuf-maven-tools/tree/master/plugin

>
> Thanks !
>
> On Wed, Jan 11, 2017 at 5:59 PM, SajithAR Ariyarathna <sajit...@wso2.com>
> wrote:
>
>> [+ShanM]
>>
>> On Wed, Jan 11, 2017 at 5:54 PM, Indunil Upeksha Rathnayake <
>> indu...@wso2.com> wrote:
>>
>>> Hi UUF team,
>>>
>>> I think it's better to give some description about the "onRequest()"
>>> method and how it works in [1], since for a beginner, it might be somewhat
>>> difficult to understand.
>>>
>>> [1] https://docs.google.com/document/d/10UDdArHV1eYEfiONu8saqPnn
>>> JyUjH3vxOrv0k0rK5hc/edit
>>>
>>> Thanks and Regards
>>> --
>>> Indunil Upeksha Rathnayake
>>> Software Engineer | WSO2 Inc
>>> Emailindu...@wso2.com
>>> Mobile   0772182255
>>>
>>
>>
>>
>> --
>> Sajith Janaprasad Ariyarathna
>> Software Engineer; WSO2, Inc.;  http://wso2.com/
>> <https://wso2.com/signature>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sagara Gunathunga
>
> Associate Director / Architect; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


Re: [Dev] Print UUF Application URLs in server startup logs

2017-01-12 Thread Kishanthan Thangarajah
https://github.com/wso2/carbon-uuf/issues/136 :)

On Fri, Jan 13, 2017 at 10:12 AM, KasunG Gajasinghe <kas...@wso2.com> wrote:

>
> Thanks Kishanthan. Where can I raise a ticket for this?
>
> On Fri, Jan 13, 2017 at 7:17 AM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> +1 for this suggestion. Yes, we get the app context(s) during server
>> startup and uuf-core could log the context or the URL when starting up.
>>
>> On Fri, Jan 13, 2017 at 1:01 AM, KasunG Gajasinghe <kas...@wso2.com>
>> wrote:
>>
>>> Hi Kishanthan/Sajith,
>>>
>>> Since the applications are lazily deployed, there is no sign of UUF
>>> applications available in the system in the server startup logs. But, I
>>> believe the UUF deployer receives the apps during startup. Therefore, can
>>> we do $subject?
>>>
>>> Thanks,
>>> KasunG
>>>
>>> --
>>>
>>> *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
>>> email: kasung AT spamfree wso2.com
>>> linked-in: http://lk.linkedin.com/in/gajasinghe
>>> blog: http://kasunbg.org
>>> phone: +1 650-745-4499 <(650)%20745-4499>, 77 678 0813
>>>
>>>
>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635 <+94%2077%20342%206635>
>> Blog - *http://kishanthan.wordpress.com
>> <http://kishanthan.wordpress.com>*
>> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>>
>
>
>
> --
>
> *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
> phone: +1 650-745-4499 <(650)%20745-4499>, 77 678 0813
>
>



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

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


Re: [Dev] Print UUF Application URLs in server startup logs

2017-01-12 Thread Kishanthan Thangarajah
+1 for this suggestion. Yes, we get the app context(s) during server
startup and uuf-core could log the context or the URL when starting up.

On Fri, Jan 13, 2017 at 1:01 AM, KasunG Gajasinghe <kas...@wso2.com> wrote:

> Hi Kishanthan/Sajith,
>
> Since the applications are lazily deployed, there is no sign of UUF
> applications available in the system in the server startup logs. But, I
> believe the UUF deployer receives the apps during startup. Therefore, can
> we do $subject?
>
> Thanks,
> KasunG
>
> --
>
> *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
> phone: +1 650-745-4499 <(650)%20745-4499>, 77 678 0813
>
>



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

Mobile - +94773426635 <+94%2077%20342%206635>
Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>*
Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [C5] MSF4J Interceptors need to be configurable.

2017-01-04 Thread Kishanthan Thangarajah
t goes to next Interceptor.
>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks & Regards,
>>>>>>>> Ishara Cooray
>>>>>>>> Senior Software Engineer
>>>>>>>> Mobile : +9477 262 9512 <077%20262%209512>
>>>>>>>> WSO2, Inc. | http://wso2.com/
>>>>>>>> Lean . Enterprise . Middleware
>>>>>>>>
>>>>>>>> On Wed, Dec 7, 2016 at 2:33 PM, Afkham Azeez <az...@wso2.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> How about supporting JAXRS filters?
>>>>>>>>>
>>>>>>>>> On Wed, Dec 7, 2016 at 12:52 PM, Thusitha Thilina Dayaratne <
>>>>>>>>> thusit...@wso2.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hi Ishara,
>>>>>>>>>>
>>>>>>>>>> As you have mentioned, with the current architecture we can't set
>>>>>>>>>> the specific interceptor for a particular service but rather to all
>>>>>>>>>> services in the registry. And also if there are multiple 
>>>>>>>>>> interceptors and
>>>>>>>>>> one interceptor returns false from its' preCaall then the invocation 
>>>>>>>>>> chain
>>>>>>>>>> will not continue further.
>>>>>>>>>>
>>>>>>>>>> IMHO we have few options
>>>>>>>>>>
>>>>>>>>>>- We can implement a way to register specific interceptors to
>>>>>>>>>>specific services
>>>>>>>>>>- We can support JAX-RS Filters
>>>>>>>>>>- We can provide a way to skip some interceptors for specific
>>>>>>>>>>services
>>>>>>>>>>
>>>>>>>>>> @Azeez WDYT?
>>>>>>>>>>
>>>>>>>>>> Thanks
>>>>>>>>>> Thusitha
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Wed, Dec 7, 2016 at 10:56 AM, Ishara Cooray <isha...@wso2.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> HI,
>>>>>>>>>>>
>>>>>>>>>>> We are using MSF4J interceptor for securing REST APIs in API
>>>>>>>>>>> Manager. [1] As for now Interceptor registration happens at the 
>>>>>>>>>>> class level
>>>>>>>>>>> @Component annotation as below.
>>>>>>>>>>>
>>>>>>>>>>> @Component(
>>>>>>>>>>> name = "org.wso2.carbon.apimgt.rest.a
>>>>>>>>>>> pi.common.interceptors.OAUTH2SecurityInterceptor",
>>>>>>>>>>> service = Interceptor.class,
>>>>>>>>>>> immediate = true
>>>>>>>>>>> )
>>>>>>>>>>> The limitations here are
>>>>>>>>>>>
>>>>>>>>>>>1. it is not possible to have more than one interceptor that
>>>>>>>>>>>will dynamically pick when an api call is received(Because the 
>>>>>>>>>>> order
>>>>>>>>>>>matters and we are not certain which interceptor will take into 
>>>>>>>>>>> effect ).
>>>>>>>>>>>2. We cannot explicitly configure to use Custom interceptors
>>>>>>>>>>>because of the above[1] reason.
>>>>>>>>>>>
>>>>>>>>>>> Do we have any plans for these limitations?
>>>>>>>>>>>
>>>>>>>>>>> Thanks & Regards,
>>>>>>>>>>> Ishara Cooray
>>>>>>>>>>> Senior Software Engineer
>>>>>>>>>>> Mobile : +9477 262 9512 <+94%2077%20262%209512>
>>>>>>>>>>> WSO2, Inc. | http://wso2.com/
>>>>>>>>>>> Lean . Enterprise . Middleware
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ___
>>>>>>>>>>> Dev mailing list
>>>>>>>>>>> Dev@wso2.org
>>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Thusitha Dayaratne
>>>>>>>>>> Software Engineer
>>>>>>>>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>>>>>>>>
>>>>>>>>>> Mobile  +94712756809 <071%20275%206809>
>>>>>>>>>> Blog  alokayasoya.blogspot.com
>>>>>>>>>> Abouthttp://about.me/thusithathilina
>>>>>>>>>> <http://wso2.com/signature>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ___
>>>>>>>>>> Architecture mailing list
>>>>>>>>>> architect...@wso2.org
>>>>>>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> *Afkham Azeez*
>>>>>>>>> Senior Director, Platform Architecture; WSO2, Inc.;
>>>>>>>>> http://wso2.com
>>>>>>>>> Member; Apache Software Foundation; http://www.apache.org/
>>>>>>>>> * <http://www.apache.org/>*
>>>>>>>>> *email: **az...@wso2.com* <az...@wso2.com>
>>>>>>>>> * cell: +94 77 3320919 <+94%2077%20332%200919>blog: *
>>>>>>>>> *http://blog.afkham.org* <http://blog.afkham.org>
>>>>>>>>> *twitter: **http://twitter.com/afkham_azeez*
>>>>>>>>> <http://twitter.com/afkham_azeez>
>>>>>>>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>>>>>>>> <http://lk.linkedin.com/in/afkhamazeez>*
>>>>>>>>>
>>>>>>>>> *Lean . Enterprise . Middleware*
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Afkham Azeez*
>>>>>>> Senior Director, Platform Architecture; WSO2, Inc.; http://wso2.com
>>>>>>> Member; Apache Software Foundation; http://www.apache.org/
>>>>>>> * <http://www.apache.org/>*
>>>>>>> *email: **az...@wso2.com* <az...@wso2.com>
>>>>>>> * cell: +94 77 3320919 <+94%2077%20332%200919>blog: *
>>>>>>> *http://blog.afkham.org* <http://blog.afkham.org>
>>>>>>> *twitter: **http://twitter.com/afkham_azeez*
>>>>>>> <http://twitter.com/afkham_azeez>
>>>>>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>>>>>> <http://lk.linkedin.com/in/afkhamazeez>*
>>>>>>>
>>>>>>> *Lean . Enterprise . Middleware*
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Sagara Gunathunga
>>>>
>>>> Associate Director / Architect; WSO2, Inc.;  http://wso2.com
>>>> V.P Apache Web Services;http://ws.apache.org/
>>>> Linkedin; http://www.linkedin.com/in/ssagara
>>>> Blog ;  http://ssagara.blogspot.com
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> *Sanjeewa Malalgoda*
>>> WSO2 Inc.
>>> Mobile : +94713068779 <+94%2071%20306%208779>
>>>
>>> <http://sanjeewamalalgoda.blogspot.com/>blog
>>> :http://sanjeewamalalgoda.blogspot.com/
>>> <http://sanjeewamalalgoda.blogspot.com/>
>>>
>>>
>>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Associate Director / Architect; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>


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

Mobile - +94773426635 <+94%2077%20342%206635>
Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>*
Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] C5 Carbon JNDI implementation does not support for LDAP

2017-01-04 Thread Kishanthan Thangarajah
On Tue, Jan 3, 2017 at 11:24 AM, Ishara Karunarathna <isha...@wso2.com>
wrote:

> Hi Kernel team,
>
> Current carbon JNDI Implementation does not support for LDAPs. Basically
> it does not support for
> DirContext operations.
>

We did not have a requirement to support this that is why it is not
implemented. Since IS will mostly be using LDAP related JNDI lookups and it
should be supported with the provider implementation (may be apache
directory and need to check whether this would work with jre supported
providers), it is best that if you guys can work on it and add to
carbon-jndi?



> In addition to that it need to support to load JRE supported context
> providers.
>
> To implement LDAP connector for User management core in C5 base IS we need
> this.
> Can we get improvement  ?
>
> Thanks,
> Ishara
>
> --
> Ishara Karunarathna
> Associate Technical Lead
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
> +94717996791 <+94%2071%20799%206791>
>
>
>


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

Mobile - +94773426635 <+94%2077%20342%206635>
Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>*
Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please Review and Merge (WebSocket Suppport for Carbon-Messaging)

2016-12-23 Thread Kishanthan Thangarajah
Adding @dev

@Irunika, always copy the relevant mailing list.

On Fri, Dec 23, 2016 at 1:17 PM, Irunika Weeraratne <irun...@wso2.com>
wrote:

> Hi,
> Please review and merge
> https://github.com/wso2/carbon-messaging/pull/39
>
> Thanks,
> Irunika
> *Irunika Weeraratne*
> *Software Engineer | WSO2, Inc. <http://wso2.com/>*
> *Email : irun...@wso2.com <irun...@wso2.com>*
> *LinkedIn : https://lk.linkedin.com/in/irunika
> <https://lk.linkedin.com/in/irunika>*
> *Mobile : +94712403314 <+94%2071%20240%203314>*
> *Lean . Enterprise . Middleware*
>
>


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

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


Re: [Dev] [C5] [carbon-datasources] Use of tomcat JDBC connection pool implementation

2016-11-29 Thread Kishanthan Thangarajah
We first started off with tomcat jdbc pool based impl, but later decided to
move on Hikari due it's performance reliability over tomcat. We can safely
remove the tomcat impl.

On Tue, Nov 29, 2016 at 2:07 PM, Anjana Fernando <anj...@wso2.com> wrote:

> Hi,
>
> We ourselves are specifically not. Kicha or Sameera may know, I guess they
> just implemented both ways initially. I also think we shouldn't have two
> separate implementations of the same thing, and just get one implementation
> tested and used properly.
>
> Cheers,
> Anjana.
>
> On Tue, Nov 29, 2016 at 1:43 PM, Thanuja Uruththirakodeeswaran <
> thanu...@wso2.com> wrote:
>
>> Hi Anjana and Team,
>>
>> Are we using the tomcat JDBC connection pool implementation[1] in
>> carbon-datasources repo anywhere? If not, shall we remove it from the repo.
>> Please give your suggestions.
>>
>> [1]. https://github.com/wso2/carbon-datasources/tree/master/
>> components/org.wso2.carbon.datasource.core/src/main/java/org
>> /wso2/carbon/datasource/rdbms/tomcat
>>
>> Thanks.
>>
>> --
>> Thanuja Uruththirakodeeswaran
>> Software Engineer
>> WSO2 Inc.;http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 774363167
>>
>> <http://wso2.com/signature>
>>
>
>
>
> --
> *Anjana Fernando*
> Associate Director / Architect
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>



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

Mobile - +94773426635 <+94%2077%20342%206635>
Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>*
Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Enable/Disabling hostname verification in carbon 4.4.10

2016-11-23 Thread Kishanthan Thangarajah
Please add this info to kernel 4.4.x docs as well.

On Wed, Sep 28, 2016 at 12:31 PM, Lakshman Udayakantha <lakshm...@wso2.com>
wrote:

> Hi Folks,
>
> Enabling/disabling hostname verification was added to carbon kernel 4.4.10
> onwards as a system property. The property added was
> httpclient.hostnameVerifier. Possible values can be Strict, AllowAll,
> DefaultAndLocalhost. These values will behave same as synapse host name
> verification options.
>
> 1. Strict - A wildcard such as "*.foo.com" matches only subdomains in the
> same level, for example "a.foo.com".  It does not match deeper
> subdomains such as "a.b.foo.com".
> 2. AllowAll - Turn off the host name verification. Note that this is not
> recommended in production setup. This is only for demo and testing purposes
> only.
> 3. DefaultAndLocalhost - Works same way as default, except one with one
> additional relaxation: a host of "localhost", "localhost.localdomain",
> "127.0.0.1", "::1" will always pass, no matter what is in the server's
> certificate.
> 4. If any of the above parameter not provided, it behaves in default
> way. The only difference between default and Strict is that a wildcard
> (such as "*.foo.com") with default matches all subdomains, including "
> a.b.foo.com".
>
> example usage:
>
> -Dhttpclient.hostnameVerifier=AllowAll
>
> Thanks
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0717429601*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


Re: [Dev] [APIM][UUF] - Client-side Rendering

2016-11-18 Thread Kishanthan Thangarajah
This improvement is now added to the master branch with -
https://github.com/wso2/carbon-uuf/pull/76

Syntax of the helper is as follows.

1. Defining the template inline.

{{#template }}
  
 
  {{/template}}


2. Using a already defined fragment within the template.

{{template  }}


In #2, fragment name should be full qualified maven name if the fragment is
from a dependent component, else the direct fragment name if its within the
same component.

On the client side, the template will be added to   tag.

Thanks,
Kishanthan.

On Fri, Nov 11, 2016 at 5:08 PM, Chanaka Jayasena  wrote:

> +1 for reusing the same template in both client side and server side. For
> that I think we need the support from UUF side.
>
> If there is handebars helper method we defined such way that it will
> render the server side template. But before doing that it copies an
> uncompiled copy of the template to a 

Re: [Dev] wso2-uri-templates-1.6.5.jar MANIFEST does not contain version in it's exported packages.

2016-11-10 Thread Kishanthan Thangarajah
This was moved to synapse and then maintained from there IIRC. So why are
we still using the old lib?

On Thu, Nov 10, 2016 at 9:55 AM, Ishara Cooray <isha...@wso2.com> wrote:

>
>
> *Hi,*Please note $Subject. Due to that it gives an ClassNotFound error at
> runtime when i try to use 1.6.5 version.
>
> Please find the jar at [1].
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *Manifest-Version: 1.0 Export-Package:
> org.wso2.uri.template.parser;uses:="org.wso2.uri.templ
>  ate",org.wso2.uri.template;uses:="org.wso2.uri.template.parser"
> Ignore-Package: org.wso2.uri.template.parser,org.wso2.uri.template
> Bundle-Version: 1.6.5 Build-Jdk: 1.6.0_45 Built-By: wso2 Tool: Bnd-0.0.238
> Bnd-LastModified: 1397381009735 Bundle-Name: wso2-uri-templates
> Bundle-ManifestVersion: 2 Created-By: Apache Maven Bundle Plugin
> Bundle-SymbolicName: wso2-uri-templates[1]
> https://mvnrepository.com/artifact/org.wso2.uri.template/wso2-uri-templates/1.6.5
> <https://mvnrepository.com/artifact/org.wso2.uri.template/wso2-uri-templates/1.6.5>*
> Thanks & Regards,
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>



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

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


Re: [Dev] Why Deployment Synchronizer is running from a ScheduledThreadPoolExecutor?

2016-11-08 Thread Kishanthan Thangarajah
On Tue, Nov 8, 2016 at 11:36 AM, Isuru Perera <isu...@wso2.com> wrote:

> Hi,
>
> Thanks for the detailed explanation.
>
> On Tue, Nov 8, 2016 at 11:23 AM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> DepSynch update/commit on manager node is designed to run with deployment
>> scheduler task. So on every run, we check whether any changes to the local
>> repo and then commit those to remote. The above trace is for doing a svn
>> status check and find whether there are any local file changes
>> (modification, addition etc) before deciding on executing the svn commit
>> command.
>>
>> The above can run only on a manager / read-write node. What's the impact
>> with performance? Are we seeing any bottleneck with this task running or is
>> the resource consumption?
>>
> There is an impact on performance as the dep sync task utilizes the CPU
> most of the time. We noticed the performance issue in a 2 CPU machine.
> Since the dep sync task is running every 15 seconds, there is not much CPU
> time for other threads.
>

We haven't seen this behaviour previously. According to the trace and
source of sqljet, SqlJetBtreeTable.getCurrentState() does a stack.peek. So
we need to check why this call takes up CPU resource. Could this be
environment specific?



>
>> On Mon, Nov 7, 2016 at 1:35 PM, Isuru Perera <isu...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> When analyzing a performance issue using Java Flight Recorder, I noticed
>>> that the server is running Deployment Synchronizer task most of the time.
>>>
>>> Please see the stack trace below.
>>>
>>>
>>> Stack TraceSample CountPercentage(%)
>>> java.util.Stack.peek()201.661
>>>
>>> org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeTable.getCurrentState()
>>> 201.661
>>>   org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeTable.getCursor()
>>> 191.578
>>>  
>>> org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeTable.hasMoved()
>>> 110.914
>>> org.tmatesoft.sqljet.core.internal.table.SqlJetBtreeTable.eof()
>>> 100.831
>>>org.tmatesoft.sqljet.core.inte
>>> rnal.table.SqlJetBtreeTable.getRecord()80.664
>>>   org.tmatesoft.sqljet.core.inte
>>> rnal.table.SqlJetBtreeTable.getValueMem(int)60.498
>>>  org.tmatesoft.sqljet.core.inte
>>> rnal.table.SqlJetBtreeDataTable.getValueMem(int)60.498
>>> org.tmatesoft.sqljet.core.inte
>>> rnal.table.SqlJetBtreeTable.getValueUncached(int)60.498
>>>org.tmatesoft.sqljet.core.inte
>>> rnal.table.SqlJetBtreeTable.getValue(int)60.498
>>>   org.tmatesoft.sqljet.core.inte
>>> rnal.table.SqlJetBtreeDataTable.getValue(int)60.498
>>>  org.tmatesoft.sqljet.core.inte
>>> rnal.table.SqlJetBtreeTable.getValues()60.498
>>> org.tmatesoft.sqljet.core.inte
>>> rnal.table.SqlJetTableDataCursor$16.run(SqlJetDb)60.498
>>>org.tmatesoft.sqljet.core.tabl
>>> e.SqlJetDb$3.run(SqlJetEngine)60.498
>>>   org.tmatesoft.sqljet.core.tabl
>>> e.engine.SqlJetEngine$12.runSynchronized(SqlJetEngine)60.498
>>>
>>> org.tmatesoft.sqljet.core.table.engine.SqlJetEngine.runSynch
>>> ronized(ISqlJetEngineSynchronized)60.498
>>>
>>> org.tmatesoft.sqljet.core.table.engine.SqlJetEngine.runEngin
>>> eTransaction(ISqlJetEngineTransaction, SqlJetTransactionMode)6
>>> 0.498
>>>
>>> org.tmatesoft.sqljet.core.table.SqlJetDb.runTransaction(ISqlJetTransaction,
>>> SqlJetTransactionMode)60.498
>>>
>>> org.tmatesoft.sqljet.core.table.SqlJetDb.runReadTransaction(ISqlJetTransaction)
>>> 60.498
>>>
>>> org.tmatesoft.sqljet.core.internal.table.SqlJetTableDataCursor.getRowValues()
>>> 60.498
>>>
>>> org.tmatesoft.svn.core.internal.db.SVNSqlJetSelectStatement.getRowValues2(Map)
>>> 50.415
>>>
>>> org.tmatesoft.svn.core.internal.db.SVNSqlJetSelectStatement.loadRowValues(boolean)
>>> 50.415
>>>
>>> org.tmatesoft.svn.core.internal.db.SVNSqlJetSelectStatement.next()
>>> 50.415
>>>
>>> org.tmatesoft.svn.

Re: [Dev] Why Deployment Synchronizer is running from a ScheduledThreadPoolExecutor?

2016-11-07 Thread Kishanthan Thangarajah
   org.tmatesoft.svn.core.
> internal.wc2.ng.SvnNgOperationRunner.run()10.083
>
>  org.tmatesoft.svn.core.
> internal.wc2.SvnOperationRunner.run(SvnOperation)10.083
>
>
> org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperation)1
> 0.083
>
>
> org.tmatesoft.svn.core.wc2.SvnOperation.run()10.083
>
>
> org.tmatesoft.svn.core.javahl17.SVNClientImpl.cleanup(String)1
> 0.083
>
>
> org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.cleanup(File)
> 10.083
>
>
> org.wso2.carbon.deployment.synchronizer.subversion.
> SVNBasedArtifactRepository.commit(int, String)10.083
>
>
> org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizer.commit()
> 10.083
>
>
> org.wso2.carbon.deployment.synchronizer.internal.
> DeploymentSynchronizerServiceImpl.commit(int)10.083
>
>
> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.deploymentSyncCommit()
> 10.083
>
>
> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run()
> 10.083
>
>
> java.util.concurrent.Executors$RunnableAdapter.call()10.083
>
>
> java.util.concurrent.FutureTask.runAndReset()10.083
>
>
> java.util.concurrent.ScheduledThreadPoolExecutor$
> ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor$ScheduledFutureTask)
> 10.083
>
>
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run()
> 10.083
>
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor$Worker)
> 10.083
>
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run()10.083
>
>
>  java.lang.Thread.run()10.083
>
> Why is this running periodically? How to configure the time period?
>

This can be configured via carbon.xml (DeploymentUpdateInterval), but this
is the same task that does the deployment too (on every 15 sec). I would
recommend not to change this.

Is there a way to disable this scheduled task  and update only when there's
> a notification?
>

This is run only on a read-write node. So we have to have this as there is
no other way to find out whether there were any local modification and then
commit those to remote.


>
> Product is WSO2 API Manager 1.10.
>
> Thanks!
>
> Best Regards,
>
> --
> Isuru Perera
> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
> Contact: +IsuruPereraWSO2 <https://www.google.com/+IsuruPereraWSO2/about>
>



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

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


[Dev] uuf-maven archetypes updated with project structure changes

2016-11-03 Thread Kishanthan Thangarajah
We have updated the uuf archetypes (app, component and theme) to reflect
and generate the projects directory structure changes. You can use the
m6/SNAPSHOT release to get the latest changes of these archetypes.

mvn archetype:generate
-DarchetypeVersion=1.0.0-SNAPSHOT -DarchetypeGroupId=org.wso2.carbon.uuf.maven
-DarchetypeArtifactId=uuf-application-archetype

mvn archetype:generate
-DarchetypeVersion=1.0.0-SNAPSHOT -DarchetypeGroupId=org.wso2.carbon.uuf.maven
-DarchetypeArtifactId=uuf-component-archetype

mvn archetype:generate
-DarchetypeVersion=1.0.0-SNAPSHOT -DarchetypeGroupId=org.wso2.carbon.uuf.maven
-DarchetypeArtifactId=uuf-theme-archetype
Thanks,
Kishanthan.
-- 
*Kishanthan Thangarajah*
Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

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


Re: [Dev] Can't connect to JMX Service

2016-10-31 Thread Kishanthan Thangarajah
Did we try setting the host via jmx.xml at CARBON_HOME/repository/conf/etc ?

On Tue, Oct 25, 2016 at 9:39 AM, Nirmal Fernando <nir...@wso2.com> wrote:

> So, setting the hostname in jmx.xml didn't work.
>
> @Platform team any thoughts?
>
> On Tue, Oct 25, 2016 at 9:37 AM, Nadheesh Jihan <nadhe...@wso2.com> wrote:
>
>> Hi,
>>
>> I found the solution. The problem was with the way I started the server.
>>
>> To establish a remote connection, we have to start the server with
>>   -Djava.rmi.server.hostname = > ONNECT_TO_SERVER>
>>
>> Thanks
>>
>>
>>
>> On Mon, Oct 24, 2016 at 3:45 PM, Nadheesh Jihan <nadhe...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I need to connect to the JMX Service of DAS in order to monitor JVM
>>> usage data. I tried using the JConsole to connect to JMX Service of DAS.
>>>
>>>  1) When I tried to connect to the JMX service(of DAS) which is running
>>> in same machine(localhost), I can connect without any problem.
>>>
>>>  2) But when I tried to connect to JMX service, which is running on
>>> another machine, I get an error saying "Connection failed" and I can't
>>> connect to the service.
>>>
>>>  The JMX Service URL used for 2nd scenario : service:jmx:rmi://10.100.4.
>>> xxx:1/jndi/rmi://10.100.4.xxx:/jmxrmi (Used
>>> default credentials)
>>>
>>> Error Message :
>>> "The connection to admin@service:jmx:rmi://10.100
>>> .4.206:1/jndi/rmi://10.100.4.206:/jmxrmi did not succeed."
>>>
>>> Can you please help me to connect to JMX service remotely?
>>>
>>>
>>> --
>>> Best regards,
>>> *J. Nadheesh Jihan*
>>> Software Engineering Intern
>>> WSO2 Inc
>>>
>>> Mobile: *+9476 8525534 <%2B9476%208525534> *
>>>
>>
>>
>>
>> --
>> Best regards,
>> *J. Nadheesh Jihan*
>> Software Engineering Intern
>> WSO2 Inc
>>
>> Mobile: *+9476 8525534 <%2B9476%208525534> *
>>
>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Team Lead - WSO2 Machine Learner
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


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

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


Re: [Dev] logging in C5

2016-10-28 Thread Kishanthan Thangarajah
We use SLF4J as the common logging API in the platform.

On Fri, Oct 28, 2016 at 3:17 PM, Sajith Kariyawasam <saj...@wso2.com> wrote:

>
>
> On Mon, Oct 24, 2016 at 10:05 AM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Use the below dependency and refer the link more info -
>> https://docs.wso2.com/display/Carbon500/Configuring+the+Logging+Framework
>>
>> 
>> org.ops4j.pax.logging
>> pax-logging-api
>> 1.9.0
>> 
>>
>>
> Once this is configured, both Commons logging and SLF4j logging will be
> available.
> Out of those what API should be used in the Java code to do the logging ?
>
> for eg,
> private static final Logger log = LoggerFactory.getLogger(...);  vs
> private static final Log log = LogFactory.getLog(...);
>
> IMO, its  better to follow a common pattern to keep the code consistent
> across modules.
>
>
>> On Sat, Oct 22, 2016 at 10:37 AM, Fazlan Nazeem <fazl...@wso2.com> wrote:
>>
>>> Hi Jayanga,
>>>
>>> What dependency should we use in order to import the
>>> "org.apache.commons.logging" classes going forward? Previously it was
>>> imported via
>>>
>>>
>>> org.wso2.carbon
>>> org.wso2.carbon.logging
>>>
>>>
>>>
>>> On Fri, Oct 21, 2016 at 3:26 PM, Jayanga Dissanayake <jaya...@wso2.com>
>>> wrote:
>>>
>>>> Hi Fazlan,
>>>>
>>>> It was moved into "base" [1] component to make the pax logging
>>>> initialized at an early stage befoe the other bundles are activated.
>>>> This was due to some unexpected config reset due to the OSGi Managed
>>>> Service and ConfgiAdmin.
>>>>
>>>> We contributed a fix for this to pax-loggin and we no longer needed
>>>> that implementation.
>>>>
>>>> [1] https://github.com/wso2/carbon-kernel/tree/v5.1.0/base/s
>>>> rc/main/java/org/wso2/carbon/base/logging
>>>>
>>>> Thanks,
>>>> Jayanga.
>>>>
>>>>
>>>> *Jayanga Dissanayake*
>>>> Associate Technical Lead
>>>> WSO2 Inc. - http://wso2.com/
>>>> lean . enterprise . middleware
>>>> email: jaya...@wso2.com
>>>> mobile: +94772207259
>>>> <http://wso2.com/signature>
>>>>
>>>> On Fri, Oct 21, 2016 at 3:00 PM, Fazlan Nazeem <fazl...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> Have we removed org.wso2.carbon.logging from carbon kernel 5.1.0? It's
>>>>> there in 5.1.0-M2 but not in 5.1.0 release. Is there any reason for this?
>>>>>
>>>>> --
>>>>> Thanks & Regards,
>>>>>
>>>>> Fazlan Nazeem
>>>>>
>>>>> *Software Engineer*
>>>>>
>>>>> *WSO2 Inc*
>>>>> Mobile : +94772338839
>>>>> <%2B94%20%280%29%20773%20451194>
>>>>> fazl...@wso2.com
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Thanks & Regards,
>>>
>>> Fazlan Nazeem
>>>
>>> *Software Engineer*
>>>
>>> *WSO2 Inc*
>>> Mobile : +94772338839
>>> <%2B94%20%280%29%20773%20451194>
>>> fazl...@wso2.com
>>>
>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> <http://kishanthan.wordpress.com>*
>> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sajith Kariyawasam
> *Associate Tech Lead*
> *WSO2 Inc.; http://wso2.com <http://wso2.com/>*
> *Committer and PMC member, Apache Stratos *
> *AMIE (SL)*
> *Mobile: 0772269575*
>



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

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


Re: [Dev] Admin Service in C5

2016-10-25 Thread Kishanthan Thangarajah
Hi Abimaran,

Can you explain the requirement in detail?

There will not be any "admin" service concept in C5. What we will have are
some well defined API's (RESTful) exposed at product level.

Thanks,
Kishanthan.

On Tue, Oct 25, 2016 at 6:09 PM, Jayanga Dissanayake <jaya...@wso2.com>
wrote:

> Hi Abimaran,
>
> There are no admin services in the C5 as of now. If there will be any,
> those will be based on REST.
>
> Thanks,
> Jayanga.
>
> *Jayanga Dissanayake*
> Associate Technical Lead
> WSO2 Inc. - http://wso2.com/
> lean . enterprise . middleware
> email: jaya...@wso2.com
> mobile: +94772207259
> <http://wso2.com/signature>
>
> On Tue, Oct 25, 2016 at 6:01 PM, Abimaran Kugathasan <abima...@wso2.com>
> wrote:
>
>> +Thusitha, Jayanga
>>
>> On Tue, Oct 25, 2016 at 11:16 AM, Abimaran Kugathasan <abima...@wso2.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> Does C5 support any Admin APIs (REST or SOAP) for server administrative
>>> tasks? Or everything will be done through configurations?
>>>
>>> I can't find any documentation for this.
>>>
>>> --
>>> Thanks
>>> Abimaran Kugathasan
>>> Senior Software Engineer - API Technologies
>>>
>>> Email : abima...@wso2.com
>>> Mobile : +94 773922820
>>>
>>> <http://stackoverflow.com/users/515034>
>>> <http://lk.linkedin.com/in/abimaran>
>>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>>> <https://twitter.com/abimaran>
>>>
>>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer - API Technologies
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820
>>
>> <http://stackoverflow.com/users/515034>
>> <http://lk.linkedin.com/in/abimaran>
>> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimarank>
>> <https://twitter.com/abimaran>
>>
>>
>


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

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


Re: [Dev] [UUF] maven plugin 1.0.0-m5 fails. Error creating assembly archive make-jar: You must set at least one file.

2016-10-24 Thread Kishanthan Thangarajah
On Mon, Oct 24, 2016 at 6:17 PM, Ruwan Abeykoon <ruw...@wso2.com> wrote:

> Hi Sajith,
>
> We need proper documentation to understand what goes to which directory.
> Samples only helps ones we know the basics. Otherwise it becomes a
> reverse-engineering effort and not productive work.
>

We are working on documentation. But I think, the samples has enough and
more information to continue the work as they are written in a generic
manner (features-app) and easy to understand.

Best think is to just copy the samples (app, component, theme) to your
project and add the changes and continue.

Thanks,
Kishanthan.


> Cheers,
> Ruwan
>
> On Mon, Oct 24, 2016 at 6:02 PM, SajithAR Ariyarathna <sajit...@wso2.com>
> wrote:
>
>> Please refer UUF samples [1]. Those sample apps, components, and themes
>> are up-to-date with new changes in the UUF Maven plugin.
>>
>> [1] https://github.com/wso2/carbon-uuf/tree/master/samples
>>
>> On Mon, Oct 24, 2016 at 5:56 PM, Ruwan Abeykoon <ruw...@wso2.com> wrote:
>>
>>> Hi Sajith,
>>> Could you point me a documentation of the structure, if there is any;
>>> please. That will help us to move faster.
>>>
>>> Cheers,
>>> Ruwan
>>>
>>> On Mon, Oct 24, 2016 at 5:44 PM, SajithAR Ariyarathna <sajit...@wso2.com
>>> > wrote:
>>>
>>>> UUF Theme source structure should be as following.
>>>>
>>>>
>>>> |-- src
>>>>
>>>> |  |-- main
>>>>
>>>> |  |   |-- public/
>>>>
>>>> |  |   |-- theme.yaml
>>>>
>>>> |-- pom.xml
>>>>
>>>>
>>>> On Mon, Oct 24, 2016 at 5:23 PM, Ruwan Abeykoon <ruw...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi UUF team,
>>>>> I get the $subject while building the UUF application for IS. Any
>>>>> document to resolve this is highly appreciated.
>>>>>
>>>>> carbon-uuf-maven-plugin.version=1.0.0-m5
>>>>>
>>>>>
>>>>> [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @
>>>>> org.wso2.is.portal.user.theme.default ---
>>>>>
>>>>> [INFO] Building jar: /Users/ruwan/Dev/wso2/product-
>>>>> is/6.0.x/product-is/portal/user/theme/org.wso2.is.portal.use
>>>>> r.theme.default/target/org.wso2.is.portal.user.theme.default
>>>>> -1.0.0-SNAPSHOT.jar
>>>>>
>>>>> [ERROR] Failed to execute goal org.wso2.carbon.uuf.maven:carb
>>>>> on-uuf-maven-plugin:1.0.0-m5:create-theme (create) on project
>>>>> org.wso2.is.portal.user.theme.default: Failed to create assembly
>>>>> 'org.wso2.is.portal.user.theme.default-1.0.0-SNAPSHOT'. Error
>>>>> creating assembly archive make-jar: You must set at least one file.
>>>>>
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Ruwan
>>>>>
>>>>
>>>
>>
>>
>> --
>> Sajith Janaprasad Ariyarathna
>> Software Engineer; WSO2, Inc.;  http://wso2.com/
>> <https://wso2.com/signature>
>>
>
>
>
> --
>
> *Ruwan Abeykoon*
> *Associate Director/Architect**,*
> *WSO2, Inc. http://wso2.com <https://wso2.com/signature> *
> *lean.enterprise.middleware.*
>
>


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

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


Re: [Dev] File not found(claim-store.yml) exception with carbon-security when starting wso2uuf pack

2016-10-23 Thread Kishanthan Thangarajah
Hi Akalaka and Maduranga,

Can we get an update on the M3 status?

Thanks,
Kishanthan.



On Wed, Oct 19, 2016 at 8:27 PM, Akalanka Pagoda Arachchi <
darsha...@wso2.com> wrote:

> Hi Kishanthan,
>
> I'm creating a file based connector to be bundled with User Core so that
> jdbc-connector dependency is not required. Let's do a M3 after this is
> complete.
>
> Thanks
> Akalanka.
>
> On Wed, Oct 19, 2016 at 7:54 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> We can use the 1.0.0-m2 release of carbon-security and jdbc-connector but
>> with some changes needed at DB level to have the user populated. I have
>> shared a working pack with Irham for now.
>>
>> But we need a stable milestone release of caas and jdbc-connector, may be
>> an M3, to get this working on UUF side with DB changes required for the
>> jdbc-connector.
>>
>> @Akalanka, Maduranga, can we get this done? We can't use the SNAPSHOT as
>> there are major changes happening at user-core level. So better to go with
>> the latest stable milestone release.
>>
>> On Wed, Oct 19, 2016 at 5:57 PM, Akalanka Pagoda Arachchi <
>> darsha...@wso2.com> wrote:
>>
>>> Hi Irham,
>>>
>>> C5 User-Core Snapshot is still under development. Therefore,
>>> authentication will not work until the implementation is complete. The
>>> given configurations are sample configurations. Further, you have to use
>>> [1] which has implementations for provided interfaces of User-Core.
>>>
>>> @SameeraM/Kishanthan,
>>>
>>> Can we implement dummy authentication which authenticates any request
>>> until the proper implementation is complete?
>>>
>>> [1] - https://github.com/wso2-extensions/carbon-security-user-store-jdbc
>>>
>>> Thanks,
>>> Akalanka.
>>>
>>> On Wed, Oct 19, 2016 at 5:32 PM, Irham Iqbal <iq...@wso2.com> wrote:
>>>
>>>> Hi Akalanka,
>>>>
>>>> Server is starting up but we can't login. This error[1] is printing on
>>>> the webpage.
>>>>
>>>> [1] Login Error! java.lang.IllegalStateException: Carbon Realm Service
>>>> is null. at org.wso2.carbon.security.caas.
>>>> internal.CarbonSecurityDataHolder.getCarbonRealmService(CarbonSecurityDataHolder.java:72)
>>>> at org.wso2.carbon.security.caas.api.module.UsernamePasswordLog
>>>> inModule.login(UsernamePasswordLoginModule.java:119) at
>>>> org.wso2.carbon.security.caas.boot.ProxyLoginModule.login(ProxyLoginModule.java:91)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>> at 
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:498) at
>>>> javax.security.auth.login.LoginContext.invoke(LoginContext.java:755)
>>>> at javax.security.auth.login.LoginContext.access$000(LoginContext.java:195)
>>>> at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682)
>>>> at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680)
>>>> at java.security.AccessController.doPrivileged(Native Method) at
>>>> javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
>>>> at javax.security.auth.login.LoginContext.login(LoginContext.java:587)
>>>> at org.wso2.carbon.uuf.sample.simpleauth.bundle.SimpleAuthHandl
>>>> er.authenticate(SimpleAuthHandler.java:67) at
>>>> jdk.nashorn.internal.scripts.Script$Recompilation$27$1343AA$
>>>> login.authenticate(/Users/irham/workspace/carbon-uuf/carbon-
>>>> uuf/product/target/wso2uuf-1.0.0-SNAPSHOT/deployment/uufapps/
>>>> org.wso2.carbon.uuf.sample.pets-store/components/simple-auth/pages/login.js:41)
>>>> at jdk.nashorn.internal.scripts.Script$Recompilation$29$672A$lo
>>>> gin.onRequest(/Users/irham/workspace/carbon-uuf/carbon-uuf/p
>>>> roduct/target/wso2uuf-1.0.0-SNAPSHOT/deployment/uufapps/org.
>>>> wso2.carbon.uuf.sample.pets-store/components/simple-auth/pages/login.js:27)
>>>> at 
>>>> jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:625)
>>>> at 
>>>> jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
>>>> at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
>>>> at 
>>>> jdk.nashorn.api.sc

Re: [Dev] logging in C5

2016-10-23 Thread Kishanthan Thangarajah
Use the below dependency and refer the link more info -
https://docs.wso2.com/display/Carbon500/Configuring+the+Logging+Framework


org.ops4j.pax.logging
pax-logging-api
1.9.0


On Sat, Oct 22, 2016 at 10:37 AM, Fazlan Nazeem <fazl...@wso2.com> wrote:

> Hi Jayanga,
>
> What dependency should we use in order to import the
> "org.apache.commons.logging" classes going forward? Previously it was
> imported via
>
>
> org.wso2.carbon
> org.wso2.carbon.logging
>
>
>
> On Fri, Oct 21, 2016 at 3:26 PM, Jayanga Dissanayake <jaya...@wso2.com>
> wrote:
>
>> Hi Fazlan,
>>
>> It was moved into "base" [1] component to make the pax logging
>> initialized at an early stage befoe the other bundles are activated.
>> This was due to some unexpected config reset due to the OSGi Managed
>> Service and ConfgiAdmin.
>>
>> We contributed a fix for this to pax-loggin and we no longer needed that
>> implementation.
>>
>> [1] https://github.com/wso2/carbon-kernel/tree/v5.1.0/base/
>> src/main/java/org/wso2/carbon/base/logging
>>
>> Thanks,
>> Jayanga.
>>
>>
>> *Jayanga Dissanayake*
>> Associate Technical Lead
>> WSO2 Inc. - http://wso2.com/
>> lean . enterprise . middleware
>> email: jaya...@wso2.com
>> mobile: +94772207259
>> <http://wso2.com/signature>
>>
>> On Fri, Oct 21, 2016 at 3:00 PM, Fazlan Nazeem <fazl...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> Have we removed org.wso2.carbon.logging from carbon kernel 5.1.0? It's
>>> there in 5.1.0-M2 but not in 5.1.0 release. Is there any reason for this?
>>>
>>> --
>>> Thanks & Regards,
>>>
>>> Fazlan Nazeem
>>>
>>> *Software Engineer*
>>>
>>> *WSO2 Inc*
>>> Mobile : +94772338839
>>> <%2B94%20%280%29%20773%20451194>
>>> fazl...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> Thanks & Regards,
>
> Fazlan Nazeem
>
> *Software Engineer*
>
> *WSO2 Inc*
> Mobile : +94772338839
> <%2B94%20%280%29%20773%20451194>
> fazl...@wso2.com
>



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

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


Re: [Dev] File not found(claim-store.yml) exception with carbon-security when starting wso2uuf pack

2016-10-19 Thread Kishanthan Thangarajah
;>>>> I think we need a slash in between CarbonHomeDirectory and
>>>>>>> conf/security/.That can be seen in the exception as well, I have
>>>>>>> highlighted the problem in the execption as 
>>>>>>> /Users/irham/workspace/carbon-
>>>>>>> uuf/carbon-uuf/product/target/wso2uuf-1.0.0-SNAPSHOTconf/sec
>>>>>>> urity/claim-store.yml.
>>>>>>>
>>>>>>> [1] [2016-10-19 11:59:19,909]  INFO {org.wso2.carbon.transport.htt
>>>>>>> p.netty.internal.NettyTransportServiceComponent} - All
>>>>>>> CarbonNettyServerInitializers are available
>>>>>>>
>>>>>>> [2016-10-19 11:59:19,921] ERROR {org.wso2.carbon.security.caas
>>>>>>> .internal.CarbonSecurityComponent} - Error initializing claim store
>>>>>>> from file java.io.IOException: Claim Store file
>>>>>>> /Users/irham/workspace/carbon-uuf/carbon-uuf/product/target/
>>>>>>> wso2uuf-1.0.0-SNAPSHOTconf/security/claim-store.yml' is not
>>>>>>> available.
>>>>>>>
>>>>>>> at org.wso2.carbon.security.caas.user.core.claim.FileBasedMetaC
>>>>>>> laimStore.(FileBasedMetaClaimStore.java:46)
>>>>>>>
>>>>>>> at org.wso2.carbon.security.caas.internal.CarbonSecurityCompone
>>>>>>> nt.onAllRequiredCapabilitiesAvailable(CarbonSecurityComponen
>>>>>>> t.java:330)
>>>>>>>
>>>>>>> at org.wso2.carbon.kernel.internal.startupresolver.StartupCompo
>>>>>>> nentManager.lambda$notifySatisfiableComponents$27(StartupCom
>>>>>>> ponentManager.java:237)
>>>>>>>
>>>>>>> at java.util.ArrayList.forEach(ArrayList.java:1249)
>>>>>>>
>>>>>>> at org.wso2.carbon.kernel.internal.startupresolver.StartupCompo
>>>>>>> nentManager.notifySatisfiableComponents(StartupComponentMana
>>>>>>> ger.java:225)
>>>>>>>
>>>>>>> at org.wso2.carbon.kernel.internal.startupresolver.StartupOrder
>>>>>>> Resolver$1.run(StartupOrderResolver.java:186)
>>>>>>>
>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:555)
>>>>>>>
>>>>>>> at java.util.TimerThread.run(Timer.java:505)
>>>>>>>
>>>>>>>
>>>>>>> [2] https://github.com/wso2/carbon-uuf
>>>>>>>
>>>>>>> [3] MetaClaimStore metaClaimStore = new FileBasedMetaClaimStore(
>>>>>>> CarbonSecurityConstants.getCarbonHomeDirectory().toString() +
>>>>>>> "conf/security/" + CarbonSecurityConstants.CLAIM_STORE_FILE);
>>>>>>>
>>>>>>> [4] carbon-security/components/org.wso2.carbon.security.caas/src
>>>>>>> /main/java/org/wso2/carbon/security/caas/internal/CarbonSecu
>>>>>>> rityComponent.java
>>>>>>>
>>>>>>> [4] https://github.com/wso2/carbon-security
>>>>>>> Thanks,
>>>>>>> Iqbal
>>>>>>>
>>>>>>> --
>>>>>>> Irham Iqbal
>>>>>>> Software Engineer
>>>>>>> WSO2
>>>>>>> phone: +94 777888452
>>>>>>> <http://wso2.com/signature>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Darshana Akalanka Pagoda Arachchi,*
>>>>> *Senior Software Engineer, WSO2*
>>>>> *+94777118016 <%2B94777118016>*
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Irham Iqbal
>>>> Software Engineer
>>>> WSO2
>>>> phone: +94 777888452
>>>> <http://wso2.com/signature>
>>>>
>>>>
>>>
>>>
>>> --
>>> *Darshana Akalanka Pagoda Arachchi,*
>>> *Senior Software Engineer, WSO2*
>>> *+94777118016 <%2B94777118016>*
>>>
>>
>>
>>
>> --
>> Irham Iqbal
>> Software Engineer
>> WSO2
>> phone: +94 777888452
>> <http://wso2.com/signature>
>>
>>
>
>
> --
> *Darshana Akalanka Pagoda Arachchi,*
> *Senior Software Engineer, WSO2*
> *+94777118016 <%2B94777118016>*
>



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

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


Re: [Dev] How to get a connection from the carbon datasources

2016-09-28 Thread Kishanthan Thangarajah
Hi Niranda,

What you have given is mostly used when accessing datasources within
webapps. This is where using JNDI lookup will be helpful. But if this is
within an OSGi component that you want to access datasources, then best way
is to use relevant OSGi services as mentioned by Rajith above.

Thanks,
Kishanthan.

On Tue, Sep 27, 2016 at 9:29 AM, Rajith Vitharana <raji...@wso2.com> wrote:

> Hi Niranda,
>
> Since we use jndi, IMO this approach is also ok. Other than that, you can
> also get carbon datasource using Ndatasource component as well. Sample will
> be as below
>
> CarbonDataSource cds = dataSourceService.getDataSource("datasourceName");
>
> You will need to get the datasourceService[2] as osgi service.
>
> AFAIR you need to mention datasource name from "name" tag [1]
>
> [1] - 
> WSO2_CARBON_DB
> [2] - org.wso2.carbon.ndatasource.core.DataSourceService
>
> Thanks,
>
>
> On 27 September 2016 at 08:03, Niranda Perera <nira...@wso2.com> wrote:
>
>> Hi all,
>>
>> I want to use a jdbc connection provided by a carbon-datasource.
>>
>> I found the following blog from Kishanthan [1], which was done in 2013.
>>
>> it uses the org.wso2.carbon.tomcat.jndi.CarbonJavaURLContextFactory as
>> follows
>>
>> Hashtable environment = new Hashtable();
>>  environment.put("java.naming.factory.initialoorg.wso2.carbo
>> n.tomcat.jndi.CarbonJavaURLContextFactory");
>> Context initContext = new InitialContext(environment);
>> Object result = initContext.lookup("jdbc/MyCarbonDataSource");
>> if (result != null) {
>> // Do your work here
>> } else {
>> System.out.println(“Cannot find MyCarbonDataSource”);
>> }
>>
>> My question is, is there a better way of doing this now (a util method
>> may be?) or is this method still applicable?
>>
>> Best
>>
>> [1] https://kishanthan.wordpress.com/2013/02/11/access-
>> cabon-data-sources-within-webapps-in-wso2-application-server/
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 <https://twitter.com/N1R44>
>> https://pythagoreanscript.wordpress.com/
>>
>> _______
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rajith Vitharana
>
> Senior Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94715883223
> Blog : http://lankavitharana.blogspot.com/
> <http://wso2.com/signature>
>



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

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


Re: [Dev] Enable/Disabling hostname verification in carbon 4.4.10

2016-09-28 Thread Kishanthan Thangarajah
FYI.

Thanks,

On Wed, Sep 28, 2016 at 12:31 PM, Lakshman Udayakantha <lakshm...@wso2.com>
wrote:

> Hi Folks,
>
> Enabling/disabling hostname verification was added to carbon kernel 4.4.10
> onwards as a system property. The property added was
> httpclient.hostnameVerifier. Possible values can be Strict, AllowAll,
> DefaultAndLocalhost. These values will behave same as synapse host name
> verification options.
>
> 1. Strict - A wildcard such as "*.foo.com" matches only subdomains in the
> same level, for example "a.foo.com".  It does not match deeper
> subdomains such as "a.b.foo.com".
> 2. AllowAll - Turn off the host name verification. Note that this is not
> recommended in production setup. This is only for demo and testing purposes
> only.
> 3. DefaultAndLocalhost - Works same way as default, except one with one
> additional relaxation: a host of "localhost", "localhost.localdomain",
> "127.0.0.1", "::1" will always pass, no matter what is in the server's
> certificate.
> 4. If any of the above parameter not provided, it behaves in default
> way. The only difference between default and Strict is that a wildcard
> (such as "*.foo.com") with default matches all subdomains, including "
> a.b.foo.com".
>
> example usage:
>
> -Dhttpclient.hostnameVerifier=AllowAll
>
> Thanks
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0717429601*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


Re: [Dev] [AS-6.0.0] [SAML-SSO] Sending authenticated user attributes to webapp

2016-08-30 Thread Kishanthan Thangarajah
AS 6.0.0 is not an OSGi runtime. It's pure tomcat plus WSO2 features
as tomcat extensions. We could reuse the code here from App Manager.

@Johann/Sagara, shall we send the user attributes as JWT token to backend
webapp?

On Tue, Aug 30, 2016 at 11:27 AM, Dinusha Senanayaka <dinu...@wso2.com>
wrote:

> In App Manager, we process the SAML response and add SAML response
> assertions as JWT token and send to backend as a header. Shouldn't we try
> to install AppM features and get the gateway features into AS without
> redoing the same ?
>
> Regards,
> Dinusha.
>
> On Mon, Aug 29, 2016 at 8:50 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> We need to send the user attributes that are returned from SAML response
>> with the successful authentication, to the webapp using some way. We
>> discussed whether we could send this as a session attribute or using a
>> request parameter.
>>
>> @Kalpa, let's create a jira for this and add this to change to upcoming
>> milestone release.
>>
>> Thanks,
>>
>> --
>> *Kishanthan Thangarajah*
>> Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> <http://kishanthan.wordpress.com>*
>> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Dinusha Dilrukshi
> Associate Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94725255071
> Blog: http://dinushasblog.blogspot.com/
>



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

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


Re: [Dev] [AS-6.0.0] [SAML-SSO] Sending authenticated user attributes to webapp

2016-08-29 Thread Kishanthan Thangarajah
On Mon, Aug 29, 2016 at 8:57 PM, Sagara Gunathunga <sag...@wso2.com> wrote:

>
>
> On Mon, Aug 29, 2016 at 8:50 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> We need to send the user attributes that are returned from SAML response
>> with the successful authentication, to the webapp using some way. We
>> discussed whether we could send this as a session attribute or using a
>> request parameter.
>>
>> @Kalpa, let's create a jira for this and add this to change to upcoming
>> milestone release.
>>
>
> +1
>
> There are 2 tasks here,
>
> 1. Per each web app admin/developer should able to configure required
> claims for  SAML request.
> 2. Java API to extract values for above claims from SAML response, either
> through session or parameters.
>
> Also this need to be consistent with approach used in OpenID Connect value
> project.
>

Yes, we are including this for the OpenID Connect based SSO project. But
for SAML, we do not have a way currently, so we can use a common approach
for both. We need to first come up with the proper API here.


>
> Thanks !
>
>>
>> Thanks,
>>
>> --
>> *Kishanthan Thangarajah*
>> Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> <http://kishanthan.wordpress.com>*
>> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>>
>
>
>
> --
> Sagara Gunathunga
>
> Associate Director / Architect; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>


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

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


[Dev] [AS-6.0.0] [SAML-SSO] Sending authenticated user attributes to webapp

2016-08-29 Thread Kishanthan Thangarajah
We need to send the user attributes that are returned from SAML response
with the successful authentication, to the webapp using some way. We
discussed whether we could send this as a session attribute or using a
request parameter.

@Kalpa, let's create a jira for this and add this to change to upcoming
milestone release.

Thanks,

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

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


Re: [Dev] Writing an OSGI Component to Create a Tenant during ESB Startup

2016-08-11 Thread Kishanthan Thangarajah
Okey great.

On Thu, Aug 11, 2016 at 11:43 AM, Maheeka Jayasuriya <mahe...@wso2.com>
wrote:

> Hi Kishanthan,
>
> Yes I tested by providing a random TenantID which were not available in
> the ESB pack earlier (screenshot attached). We are building the docker
> image from a vanilla ESB pack and hence there won't be any other tenants in
> the pack.
>
> ​
>  Screen Shot 2016-08-11 at 11.42.29 AM.png
> <https://drive.google.com/a/wso2.com/file/d/0B_Ml_gi-3jYrbHpobXM3NFhsQlk/view?usp=drive_web>
> ​
>
> Thanks,
> Maheeka
>
> Maheeka Jayasuriya
> Senior Software Engineer
> Mobile : +9450661
>
> On Thu, Aug 11, 2016 at 11:36 AM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> No, I may be wrong. This approach will work if the given tenant-id is not
>> taken already at the table level.
>>
>> On Thu, Aug 11, 2016 at 11:32 AM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>>
>>>
>>> On Thu, Aug 11, 2016 at 7:56 AM, Maheeka Jayasuriya <mahe...@wso2.com>
>>> wrote:
>>>
>>>> Hi Devs,
>>>>
>>>>
>>>> We need to start an ESB in a docker container, with a capp deployed in
>>>> tenant space. So in order to have the tenant space already created and to
>>>> get the tenant initialized when the container is serving requests, we have
>>>> tried out the following approach manually which works.
>>>>
>>>>
>>>>1.
>>>>
>>>>Have the capp copied to [ESB_HOME]/repository/tenants/[tenantId]/
>>>>when building the docker image. This tenantId may not be incremental and
>>>>could be any number
>>>>2.
>>>>
>>>>Run the docker and wait for ESB to start
>>>>3.
>>>>
>>>>Invoke the TenantMgtAdminService’s addTenant method specifying the
>>>>‘tenantId’ and  other tenant details (username, password, etc)
>>>>4.
>>>>
>>>>Invoke an API that is available in the copied capp (1) to
>>>>initialize the tenant
>>>>
>>>>
>>>> Basically, we need to have the tenant space created during ESB server
>>>> startup. Tenant could be initialized later for the first request. Therefore
>>>> we started writing an OSGI declarative component which waits for
>>>> TenantMgtServiceComponent and calls the TenantMgtAdminService to create the
>>>> tenant. The capps will be already copied to the tenant space when building
>>>> the docker image. Following is what we have tried so far.
>>>>
>>>>
>>>>1.
>>>>
>>>>When trying to write a new OSGI component, say
>>>>TenantInitializerComponent, we wanted to add a TenantMgtServiceComponent
>>>>registered OSGI service as dependency. But there were no OSGI services
>>>>available in either of any tenant management components. Due to this we
>>>>were not able to get the TenantInitializerComponent activated.
>>>>2.
>>>>
>>>>Since there were no OSGI services of TenantMgtServiceComponent
>>>>available, we tried by adding the dependencies of 
>>>> TenantMgtServiceComponent
>>>>to TenantInitializerComponent as below.
>>>>
>>>> * @scr.reference name="org.wso2.carbon.tenant.mgt.listener.service"
>>>>
>>>> *interface="org.wso2.carbon.stratos.common.lis
>>>> teners.TenantMgtListener"
>>>>
>>>> *cardinality="1..n" policy="dynamic"
>>>>
>>>> *bind="setTenantMgtListenerService"
>>>>
>>>> *unbind="unsetTenantMgtListenerService"
>>>>
>>>> * @scr.reference name="default.tenant.billing.service"
>>>>
>>>> *interface="org.wso2.carbon.stratos.common.Ten
>>>> antBillingService"
>>>>
>>>> *cardinality="0..1" policy="dynamic"
>>>>
>>>> *bind="setTenantBillingService"
>>>>
>>>> *unbind="unsetTenantBillingService"
>>>>
>>>> TenantMgtListener is available in ESB and therefore set the cardinality
>>>> to 1..n. TenantBillingService is not available in ESB an

Re: [Dev] Writing an OSGI Component to Create a Tenant during ESB Startup

2016-08-11 Thread Kishanthan Thangarajah
No, I may be wrong. This approach will work if the given tenant-id is not
taken already at the table level.

On Thu, Aug 11, 2016 at 11:32 AM, Kishanthan Thangarajah <
kishant...@wso2.com> wrote:

>
>
> On Thu, Aug 11, 2016 at 7:56 AM, Maheeka Jayasuriya <mahe...@wso2.com>
> wrote:
>
>> Hi Devs,
>>
>>
>> We need to start an ESB in a docker container, with a capp deployed in
>> tenant space. So in order to have the tenant space already created and to
>> get the tenant initialized when the container is serving requests, we have
>> tried out the following approach manually which works.
>>
>>
>>1.
>>
>>Have the capp copied to [ESB_HOME]/repository/tenants/[tenantId]/
>>when building the docker image. This tenantId may not be incremental and
>>could be any number
>>2.
>>
>>Run the docker and wait for ESB to start
>>3.
>>
>>Invoke the TenantMgtAdminService’s addTenant method specifying the
>>‘tenantId’ and  other tenant details (username, password, etc)
>>4.
>>
>>Invoke an API that is available in the copied capp (1) to initialize
>>the tenant
>>
>>
>> Basically, we need to have the tenant space created during ESB server
>> startup. Tenant could be initialized later for the first request. Therefore
>> we started writing an OSGI declarative component which waits for
>> TenantMgtServiceComponent and calls the TenantMgtAdminService to create the
>> tenant. The capps will be already copied to the tenant space when building
>> the docker image. Following is what we have tried so far.
>>
>>
>>1.
>>
>>When trying to write a new OSGI component, say
>>TenantInitializerComponent, we wanted to add a TenantMgtServiceComponent
>>registered OSGI service as dependency. But there were no OSGI services
>>available in either of any tenant management components. Due to this we
>>were not able to get the TenantInitializerComponent activated.
>>2.
>>
>>Since there were no OSGI services of TenantMgtServiceComponent
>>available, we tried by adding the dependencies of 
>> TenantMgtServiceComponent
>>to TenantInitializerComponent as below.
>>
>> * @scr.reference name="org.wso2.carbon.tenant.mgt.listener.service"
>>
>> *interface="org.wso2.carbon.stratos.common.lis
>> teners.TenantMgtListener"
>>
>> *cardinality="1..n" policy="dynamic"
>>
>> *bind="setTenantMgtListenerService"
>>
>> *unbind="unsetTenantMgtListenerService"
>>
>> * @scr.reference name="default.tenant.billing.service"
>>
>> *interface="org.wso2.carbon.stratos.common.Ten
>> antBillingService"
>>
>> *cardinality="0..1" policy="dynamic"
>>
>> *bind="setTenantBillingService"
>>
>> *unbind="unsetTenantBillingService"
>>
>> TenantMgtListener is available in ESB and therefore set the cardinality
>> to 1..n. TenantBillingService is not available in ESB and hence cardinality
>> is 0..1.
>>
>> Following is the implementation in the TenantInitializerComponent’s
>> activate method.
>>
>> TenantMgtAdminService tenantMgtAdminService = new
>> TenantMgtAdminService();
>>
>> TenantInfoBean tenantInfoBean = new TenantInfoBean();
>>
>> tenantInfoBean.setActive(true);
>>
>> tenantInfoBean.setAdmin("admin");
>>
>> tenantInfoBean.setAdminPassword("admin123");
>>
>> tenantInfoBean.setFirstname("Maheeka");
>>
>> tenantInfoBean.setLastname("Maheeka");
>>
>> tenantInfoBean.setEmail("ad...@maheeka.com");
>>
>> tenantInfoBean.setTenantDomain("maheeka.com");
>>
>> tenantInfoBean.setSuccessKey("");
>>
>> tenantInfoBean.setTenantId(250);
>>
>
> This may not work because, the tenant id is generated and returned by the
> tenant persister once a new tenant is persisted properly in DB. The tenant
> id is basically the row id in the table.
>
> Did you test this?
>
>
> tenantInfoBean.setUsagePlan("Demo");
>>
>> try {
>>
>>   tenantMgtAdminService.addTenant(tenantInfoBean);
>>
>>   log.info("Tenant added successfully");
>>
>> } catch (Exception e) {
>>
>>   log.error(“Error adding

Re: [Dev] Writing an OSGI Component to Create a Tenant during ESB Startup

2016-08-11 Thread Kishanthan Thangarajah
and perform addTenant. Since this
>captures all bundle statuses this might not be an effective approach.
>3.
>
>Finally, took a look at StartupFinalizerServiceComponent. This seems
>to register a service after all the components are initialized as
>org.apache.axis2.engine.ListenerManager. I was able to successfully
>create the tenant by adding a reference to this service as below.
>
> * @scr.reference name="listener.manager"
>
> *interface="org.apache.axis2.
> engine.ListenerManager"
>
> *cardinality="1..1" policy="dynamic"
>
> *bind="setListenerManager"
>
> *unbind="unsetListenerManager"
>
>
> Adding reference to org.apache.axis2.engine.ListenerManager seems to
> solve the problem. However, need to verify whether there are any other
> better ways to solve this problem. Or shall we proceed with this approach?
> Appreciate your feedback on this.
>
>
> Thanks Kalpa and Jayanga for helping out on the details.
>
> [1] https://docs.wso2.com/display/Carbon447/Server+Startup+Observer
>
> [2] https://github.com/wso2/carbon-kernel/blob/4.4.x/core/
> org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/internal/
> StartupFinalizerServiceComponent.java#L199
>
> [3] http://eclipsesource.com/blogs/2013/01/23/how-to-track-
> lifecycle-changes-of-osgi-bundles/
>
> Thanks,
>
> Maheeka Jayasuriya
> Senior Software Engineer
> Mobile : +9450661
>



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

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


Re: [Dev] Merge changes done for https://wso2.org/jira/browse/CPARENT-6

2016-08-09 Thread Kishanthan Thangarajah
Hi Jayanga,

Let's merge this and do a release along with kernel 5.2.0.

On Wed, Jul 27, 2016 at 3:44 PM, Isuru Perera <isu...@wso2.com> wrote:

> Hi,
>
> Could you please review the PR in [1].
>
> I also noticed that carbon-parent version 5 is released [2], but the
> master branch still has 5-SNAPSHOT [3].
>
> [1] https://wso2.org/jira/browse/CPARENT-6
> [2] https://github.com/wso2/carbon-parent/releases/tag/carbon-parent-5
> [3] https://github.com/wso2/carbon-parent/blob/master/pom.xml#L22
>
> --
> Isuru Perera
> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
> Contact: +IsuruPereraWSO2 <https://www.google.com/+IsuruPereraWSO2/about>
>



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

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


Re: [Dev] EventPublisherConfigurationException at IS 5.2.0 Snapshot Startup

2016-07-25 Thread Kishanthan Thangarajah
ork.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>> at
>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
>> at
>> org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81)
>> at
>> org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:60)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:40)
>> at
>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(DelegationServlet.java:38)
>> at
>> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1282)
>> at
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1195)
>> at
>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1085)
>> at
>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5318)
>> at
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5610)
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
>> at
>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)
>> at
>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: java.nio.file.InvalidPathException: Illegal char <:> at index
>> 2:
>> /D:/packs/WSO2IS~1.0-S/bin/../repository/deployment/server/\eventpublishers
>> at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
>> at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
>> at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
>> at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
>> at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
>> at java.nio.file.Paths.get(Paths.java:84)
>> at
>> org.wso2.carbon.event.publisher.core.internal.util.EventPublisherUtil.validateFilePath(EventPublisherUtil.java:235)
>> at
>> org.wso2.carbon.event.publisher.core.internal.util.helper.EventPublisherConfigurationFilesystemInvoker.delete(EventPublisherConfigurationFilesystemInvoker.java:116)
>> ... 84 more
>>
>> I'm testing on Windows 10. According to the startup log this Windows
>> version is not supported:
>>
>> The running OS : Windows 8.1 is not a tested Operating System for running 
>> WSO2 Carbon
>>
>> But could this be coming in older Windows versions also? Also, I haven't
>> tried in a Linux box.  Please check.
>>
>> More details can be found at the public JIRA [1]. Got the pack from [2] -
>> hope it's the correct location.
>>
>> [1] https://wso2.org/jira/browse/IDENTITY-4839
>> [2]
>> https://wso2.org/jenkins/job/product-is_release-productis-5.2.0/lastBuild/org.wso2.is$wso2is/artifact/org.wso2.is/wso2is/5.2.0-SNAPSHOT/wso2is-5.2.0-SNAPSHOT.zip
>>
>> --
>> Thanks & Regards,
>> Dulanja Liyanage
>> Lead, Platform Security Team
>> WSO2 Inc.
>>
>
>
>
> --
> Thanks & Regards,
> Dulanja Liyanage
> Lead, Platform Security Team
> WSO2 Inc.
>



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

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


Re: [Dev] [MySql5.7] Concern about MySql 5.7 scripts running with -Dsetup

2016-07-22 Thread Kishanthan Thangarajah
"-Dsetup" is a development time option and in production it is not used
mostly. Users manually populate the DB's using relevant scripts by
executing them separately. Due to this fact only, we did not invest time in
supporting mysql 5.7 with "-Dsetup" option. We have documented this also :
https://docs.wso2.com/display/ADMIN447/Setting+up+MySQL

We cannot remove this option from 4.4.x kernel as we do only patch releases
on top of it.

On Wed, Jul 13, 2016 at 11:42 AM, Pubudu Priyashan <pubu...@wso2.com> wrote:

> +1 to Nuwan's suggestion.
>
> I too have experienced inconsistencies in the past while using the -Dsetup
> when configuring the databases where we still have to manually execute the
> scripts. Since we are not using this feature in production environments I
> think it wouldn't hurt to get rid of this all together. Since we can always
> run the relevant scripts manually, if there is no significant advantage of
> keeping this feature I think it's a good idea to remove it. Just my
> personal opinion.
>
> Cheers,
> Pubudu.
>
> Pubudu D.P
> Senior Software Engineer - QA Team | WSO2 inc.
> Mobile : +94775464547
>
> Linkedin: https://uk.linkedin.com/in/pubududp
> Medium: https://medium.com/@pubududp
>
>
> On Wed, Jul 13, 2016 at 11:35 AM, Nuwan Dias <nuw...@wso2.com> wrote:
>
>> Practically the -Dsetup option is never used in production. All "real"
>> users of our products have DB admins and all that who carefully evaluate
>> and execute our DB scripts on their Database servers. They would never
>> allow a product startup process to create tables and indexes at will on
>> their database servers.
>>
>> So I think we should just remove this option all together. I know we've
>> done that on C5 but it probably makes sense to remove this option in C4
>> products as well. We sometimes even have to make design changes to our
>> features to support this option (when two features have their own DB
>> scripts). And I think its a complete waste because we're compromising the
>> design of our products to support a feature thats never used in the real
>> world.
>>
>> Thanks,
>> NuwanD.
>>
>> On Wed, Jul 13, 2016 at 11:05 AM, Pubudu Priyashan <pubu...@wso2.com>
>> wrote:
>>
>>>
>>> Hi all,
>>>
>>> When we use MySql 5.7 as the DB and start the server with -Dsetup
>>> without manually executing the scripts at DB level, we have observed the
>>> issue logged at [1] while testing wso2esb-5.0.0-PRE-BETA2-PACK1.zip pack.
>>> The reason behind this is, by default the pack is picking up mysql.sql
>>> script located at [$HOME]/dbscripts directory when started with -Dsetup. A
>>> solution was suggested in this comment [2] to rename the mysql5.7.sql
>>> scripts as mysql.sql when using MySql 5.7 db and we have verified that this
>>> suggestion fixed the issue. We have logged a doc JIRA to include that
>>> information at [3] for now.
>>>
>>> Our concern is since this is going to affect all the products when using
>>> MySql5.7 do we have a better solution to automatically select the
>>> mysql version without having to rename the script? Is it possible to add a
>>> property to define the db version somewhere and then point to the relevant
>>> script without renaming the script when starting with -Dsetup? Or any
>>> better solution if possible. Appreciate your feedback on this. Thanks!
>>>
>>>
>>> [1] https://wso2.org/jira/browse/ESBJAVA-4748
>>> [2]
>>> https://wso2.org/jira/browse/ESBJAVA-4748?focusedCommentId=123463=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-123463
>>> [3] https://wso2.org/jira/browse/DOCUMENTATION-3604
>>>
>>>
>>> Cheers,
>>> Pubudu D.P
>>> Senior Software Engineer - QA Team | WSO2 inc.
>>> Mobile : +94775464547
>>>
>>> Linkedin: https://uk.linkedin.com/in/pubududp
>>> Medium: https://medium.com/@pubududp
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Nuwan Dias
>>
>> Technical Lead - WSO2, Inc. http://wso2.com
>> email : nuw...@wso2.com
>> Phone : +94 777 775 729
>>
>
>


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

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


Re: [Dev] WSO2 AS integration with TomEE

2016-07-18 Thread Kishanthan Thangarajah
8)
>>>>>>
>>>>>> at
>>>>>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:138)
>>>>>>
>>>>>> at
>>>>>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:94)
>>>>>>
>>>>>> at
>>>>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
>>>>>>
>>>>>> at
>>>>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:392)
>>>>>>
>>>>>> ... 26 more
>>>>>>
>>>>>> Caused by: java.lang.NoClassDefFoundError:
>>>>>> org/springframework/beans/factory/xml/NamespaceHandlerSupport
>>>>>>
>>>>>> at java.lang.ClassLoader.defineClass1(Native Method)
>>>>>>
>>>>>> at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
>>>>>>
>>>>>> at
>>>>>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
>>>>>>
>>>>>> at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
>>>>>>
>>>>>> at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
>>>>>>
>>>>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
>>>>>>
>>>>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
>>>>>>
>>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>>>
>>>>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
>>>>>>
>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>>>>>
>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>>>>>
>>>>>> at java.lang.Class.forName0(Native Method)
>>>>>>
>>>>>> at java.lang.Class.forName(Class.java:348)
>>>>>>
>>>>>> at
>>>>>> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1268)
>>>>>>
>>>>>> at
>>>>>> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1116)
>>>>>>
>>>>>> at org.springframework.util.ClassUtils.forName(ClassUtils.java:250)
>>>>>>
>>>>>> at
>>>>>> org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:125)
>>>>>>
>>>>>> ... 33 more
>>>>>>
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> On Fri, Jul 8, 2016 at 11:27 AM, Lakshman Udayakantha <
>>>>>> lakshm...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> We are working on $subject. Anyway after integration, custom runtime
>>>>>>> environment feature is broken because TomEE is using different class
>>>>>>> loading behaviour. We need to override the class loading behaviour in 
>>>>>>> TomEE
>>>>>>> in order to preserve the behaviour of this feature of AS. After a
>>>>>>> discussion on TomEE dev mailing thread, It was suggested to use
>>>>>>> ClassLoaderEnricher API They provided. After fixing this we need to
>>>>>>> test the distribution with java EE samples.
>>>>>>>
>>>>>>> Thanks
>>>>>>> --
>>>>>>> Lakshman Udayakantha
>>>>>>> WSO2 Inc. www.wso2.com
>>>>>>> lean.enterprise.middleware
>>>>>>> Mobile: *0714388124 <0714388124>*
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Lakshman Udayakantha
>>>>>> WSO2 Inc. www.wso2.com
>>>>>> lean.enterprise.middleware
>>>>>> Mobile: *0714388124 <0714388124>*
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
>>>>> email: kasung AT spamfree wso2.com
>>>>> linked-in: http://lk.linkedin.com/in/gajasinghe
>>>>> blog: http://kasunbg.org
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Lakshman Udayakantha
>>>> WSO2 Inc. www.wso2.com
>>>> lean.enterprise.middleware
>>>> Mobile: *0714388124*
>>>>
>>>>
>>>
>>>
>>> --
>>> Lakshman Udayakantha
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>> Mobile: *0714388124*
>>>
>>>
>>
>>
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0714388124*
>>
>>
>
>
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0714388124*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


[Dev] AS 6.0.0 SSO Quick Start Guide

2016-07-18 Thread Kishanthan Thangarajah
Hi ChanakaS,

Let's work on $subject. Basically, what we need is to provide minimum
number of steps needed to get an SSO sample working with AS and IS.

Requirements.

   1. A script to automate the IS side configuration (setting up the SP and
   stuffs)
   2. A webapp sample at AS side with all the configuration setup and
   script to automatically build and/or directly deploy.

We can perform the above with the single script. Users do not have to do
any config changes, but they would just execute the script/goal which would
perform above tasks and its related sub tasks. With this, we can come up
with the structure for all the quick start sample guides to follow from AS
side.

Thanks,

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

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


Re: [Dev] Web Context path issue

2016-07-12 Thread Kishanthan Thangarajah
WebContextRoot is only applicable to carbon webapp. Other webapps (store
and publisher in this case) will still be deployed under their respective
context. The issue here is with the log messages printed on to the console
which still has the web context root appended to those additional contexts
urls. That is where the fix would be.

On Tue, Jul 12, 2016 at 4:24 PM, Chamin Dias <cham...@wso2.com> wrote:

> Please refer : https://wso2.org/jira/browse/CARBON-15987 to track the
> fixes.
>
> Thanks
>
> On Tue, Jul 12, 2016 at 3:39 PM, Chamin Dias <cham...@wso2.com> wrote:
>
>> Hi,
>>
>> Scenario :
>>
>> 1) Change the  in carbon.xml as "/apim" (this is the only
>> change)
>>
>> 2) Start the servers and urls can be visible as below.
>> Management console url- https://localhost:9443/apim/carbon
>> Publisher url- https://localhost:9443/apim/publisher
>> Store url-https://localhost:9443/apim/store
>>
>> 3) When we tried to access the publisher and store urls, still it's
>> redirected to the management console (i.e :
>> https://localhost:9443/apim/carbon)
>>
>>
>> We have tested the same scenario for the previous APIM versions
>> (1.10,1.9.1,1.9.0,1.8.0,1.7.0,1.6.0 and 1.5.0) and noticed the same
>> behaviour. Do we need some other configuration in addition to modifying
>>  in carbon.xml? If not, we wonder if this is a known fact.
>>
>> Tested the scenario with App manager 1.1.0 as well. Observed the same
>> behaviour.
>>
>> Thanks.
>>
>> On Tue, Jul 12, 2016 at 11:47 AM, Chamin Dias <cham...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> We were working on APIMANAGER-5043
>>> <https://wso2.org/jira/browse/APIMANAGER-5043> issue (for upcoming APIM
>>> 2.0.0 release). The issue was reproduced. We did a background search and
>>> tried the workaround suggested in the Dev mail thread : *[Dev] How to
>>> deploy Jaggery application as web root context*
>>>
>>> Unfortunately we were not able to solve the issue by following the
>>> workaround. Any help will be appreciated since we are about the release
>>> APIM 2.0.0 soon.
>>>
>>> Thanks.
>>>
>>> --
>>> Chamin Dias
>>> *Software Engineer*
>>> Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
>>> Email : cham...@wso2.com
>>> Blog : https://chamindias.wordpress.com/
>>>
>>
>>
>>
>> --
>> Chamin Dias
>> *Software Engineer*
>> Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
>> Email : cham...@wso2.com
>> Blog : https://chamindias.wordpress.com/
>>
>
>
>
> --
> Chamin Dias
> *Software Engineer*
> Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
> Email : cham...@wso2.com
> Blog : https://chamindias.wordpress.com/
>



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

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


Re: [Dev] Update - Provide runtime environment for jaggery apps in AS6

2016-07-06 Thread Kishanthan Thangarajah
Hi Maheshika,

Can we add a jenkins build job for this branch?

On Thu, Jun 30, 2016 at 7:17 AM, Nisala Nanayakkara <nis...@wso2.com> wrote:

> Hi all,
>
> Please find the branch here.
>
> [1] - https://github.com/wso2/jaggery/tree/tomcat-8.0.x-jaggery
>
> Thanks,
> Nisala
>
> On Thu, Jun 30, 2016 at 7:12 AM, Nisala Nanayakkara <nis...@wso2.com>
> wrote:
>
>> Hi all,
>>
>> We have created a seperate branch[1] with the changes required for
>> providing runtime environment for jaggery apps in AS6. Currently there is
>> no jenkins builder setup for this, Please get the 1.0.0-SNAPSHOT version by
>> building the branch in local repo. Please inform me if there are any issues.
>>
>> Thanks,
>> Nisala
>>
>> --
>> *Nisala Niroshana Nanayakkara,*
>> Software Engineer
>> Mobile:(+94)717600022
>> WSO2 Inc., http://wso2.com/
>>
>
>
>
> --
> *Nisala Niroshana Nanayakkara,*
> Software Engineer
> Mobile:(+94)717600022
> WSO2 Inc., http://wso2.com/
>



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

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


Re: [Dev] carbon-datasources: Supporting Database Properties

2016-06-29 Thread Kishanthan Thangarajah
Great.

@Isuru, hope you can verify this now.

On Tue, Jun 28, 2016 at 6:04 PM, Chanaka Cooray <chana...@wso2.com> wrote:

> Hi,
>
> The issue is resolved now [1].
>
> [1] https://github.com/wso2/carbon-datasources/pull/17
>
> Thanks,
> Chanaka.
>
> On Fri, Jun 24, 2016 at 12:00 PM, Chanaka Cooray <chana...@wso2.com>
> wrote:
>
>> Hi all,
>>
>> I will look into the issue.
>>
>> Thanks,
>> Chanaka.
>>
>> On Fri, Jun 24, 2016 at 11:01 AM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> We will add this for the next minor release.
>>>
>>> @Isuru, you can go ahead with the version range as you mentioned for
>>> package imports.
>>>
>>> On Thu, Jun 23, 2016 at 1:21 PM, Afkham Azeez <az...@wso2.com> wrote:
>>>
>>>> Can we get a quick turnaround on this please?
>>>>
>>>> On Thu, Jun 23, 2016 at 12:10 PM, Isuru Perera <isu...@wso2.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> This regarding CDATASRCS-2 <https://wso2.org/jira/browse/CDATASRCS-2>.
>>>>> I guess that won't be fixed soon. But as I mentioned, this issue is a
>>>>> blocker for Metrics release. Since we need to release Metrics soon (by 
>>>>> next
>>>>> week), I'll release the Metrics with datasources import range "[1.0.0,
>>>>> 2.0.0)"
>>>>>
>>>>> I hope this issue will be fixed in a Minor release. I also hope the
>>>>> datasource properties will be supported using the same configuration
>>>>> elements used in C4. See:
>>>>> https://github.com/wso2/carbon-metrics/blob/v1.2.1/features/carbon-metrics/org.wso2.carbon.metrics.server.feature/src/main/resources/conf/metrics-datasources.xml#L144-L146
>>>>>
>>>>> Please let me know the plan to support datasource properties in C5.
>>>>>
>>>>> Thanks!
>>>>>
>>>>> Best Regards,
>>>>>
>>>>> On Thu, Jun 2, 2016 at 12:25 PM, Isuru Perera <isu...@wso2.com> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> This is regarding [1]. Supporting database properties is required for
>>>>>> Carbon Metrics.
>>>>>>
>>>>>> It will be a blocker when someone wants to use Carbon Metrics with
>>>>>> Oracle database.
>>>>>>
>>>>>> Can we get it fixed soon?
>>>>>>
>>>>>> Thanks!
>>>>>>
>>>>>> Best Regards,
>>>>>>
>>>>>> [1] https://wso2.org/jira/browse/CDATASOURC-2
>>>>>>
>>>>>> --
>>>>>> Isuru Perera
>>>>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>>>>>> Lean . Enterprise . Middleware
>>>>>>
>>>>>> about.me/chrishantha
>>>>>> Contact: +IsuruPereraWSO2
>>>>>> <https://www.google.com/+IsuruPereraWSO2/about>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Isuru Perera
>>>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>>>>> Lean . Enterprise . Middleware
>>>>>
>>>>> about.me/chrishantha
>>>>> Contact: +IsuruPereraWSO2
>>>>> <https://www.google.com/+IsuruPereraWSO2/about>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Afkham Azeez*
>>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>>> Member; Apache Software Foundation; http://www.apache.org/
>>>> * <http://www.apache.org/>*
>>>> *email: **az...@wso2.com* <az...@wso2.com>
>>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>>> *http://blog.afkham.org* <http://blog.afkham.org>
>>>> *twitter: **http://twitter.com/afkham_azeez*
>>>> <http://twitter.com/afkham_azeez>
>>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>>> <http://lk.linkedin.com/in/afkhamazeez>*
>>>>
>>>> *Lean . Enterprise . Middleware*
>>>>
>>>
>>>
>>>
>>> --
>>> *Kishanthan Thangarajah*
>>> Technical Lead,
>>> Platform Technologies Team,
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - +94773426635
>>> Blog - *http://kishanthan.wordpress.com
>>> <http://kishanthan.wordpress.com>*
>>> Twitter - *http://twitter.com/kishanthan
>>> <http://twitter.com/kishanthan>*
>>>
>>
>>
>>
>> --
>> Chanaka Cooray
>> Software Engineer, WSO2 Inc. http://wso2.com
>> Email: chana...@wso2.com
>> Mobile: +94713149860
>>
>>
>
>
> --
> Chanaka Cooray
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: chana...@wso2.com
> Mobile: +94713149860
>
>


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

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


Re: [Dev] SnakeYAML is already an OSGi bundle. Why do we have SnakeYAML in orbit?

2016-06-29 Thread Kishanthan Thangarajah
Thanks Isuru.

@Shan, let's check on this and try to fix it.

On Wed, Jun 29, 2016 at 6:12 PM, Isuru Perera <isu...@wso2.com> wrote:

> Hi Kishanthan,
>
> I created a JIRA: https://wso2.org/jira/browse/CARBON-15972
>
> I just saw that stackoverflow question when searching for some other issue.
>
> Thanks!
>
> Best Regards,
> It would also be great if you can create a jira for this with the
> information so that we could add this for next kernel release.
>
> On Wed, Jun 29, 2016 at 4:51 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Thanks Isuru. We can try and add this option, which would remove the need
>> for Dynamic-Import.
>>
>> On Wed, Jun 29, 2016 at 3:42 PM, Isuru Perera <isu...@wso2.com> wrote:
>>
>>> I just saw that SnakeYaml provides a "CustomClassLoaderConstructor".
>>> Could you please check on that.
>>>
>>> See:
>>> http://stackoverflow.com/questions/4940379/using-snakeyaml-under-osgi/4944346#4944346
>>>
>>>
>>> On Thu, May 19, 2016 at 1:31 PM, Isuru Perera <isu...@wso2.com> wrote:
>>>
>>>> Thanks for info.
>>>>
>>>> Shall we ask the snakeyaml developers to add the Dynamic-Import header.
>>>> May be we can create an issue [1]. Otherwise, that library is not useful in
>>>> an OSGi container, right?
>>>>
>>>> [1]
>>>> https://bitbucket.org/asomov/snakeyaml/issues?status=new=open
>>>>
>>>> On Thu, May 5, 2016 at 7:25 AM, Kishanthan Thangarajah <
>>>> kishant...@wso2.com> wrote:
>>>>
>>>>> This is because we had to add Dynamic-Import header to this bundle,
>>>>> which is missing in the original bundle, as snakeyaml was loading classes
>>>>> dynamically when trying to build and construct the bean object for the
>>>>> configuration.
>>>>>
>>>>> On Wed, May 4, 2016 at 12:16 PM, Isuru Perera <isu...@wso2.com> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> $subject [1]. See manifest entries in latest JARs [2]
>>>>>>
>>>>>> [1] https://github.com/wso2/orbit/tree/master/snakeyaml/1.16.0.wso2v1
>>>>>> [2]
>>>>>> http://search.maven.org/#search|gav|1|g%3A%22org.yaml%22%20AND%20a%3A%22snakeyaml%22
>>>>>> <http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.yaml%22%20AND%20a%3A%22snakeyaml%22>
>>>>>>
>>>>>> --
>>>>>> Isuru Perera
>>>>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>>>>>> Lean . Enterprise . Middleware
>>>>>>
>>>>>> about.me/chrishantha
>>>>>> Contact: +IsuruPereraWSO2
>>>>>> <https://www.google.com/+IsuruPereraWSO2/about>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Kishanthan Thangarajah*
>>>>> Associate Technical Lead,
>>>>> Platform Technologies Team,
>>>>> WSO2, Inc.
>>>>> lean.enterprise.middleware
>>>>>
>>>>> Mobile - +94773426635
>>>>> Blog - *http://kishanthan.wordpress.com
>>>>> <http://kishanthan.wordpress.com>*
>>>>> Twitter - *http://twitter.com/kishanthan
>>>>> <http://twitter.com/kishanthan>*
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Isuru Perera
>>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>>>> Lean . Enterprise . Middleware
>>>>
>>>> about.me/chrishantha
>>>> Contact: +IsuruPereraWSO2
>>>> <https://www.google.com/+IsuruPereraWSO2/about>
>>>>
>>>
>>>
>>>
>>> --
>>> Isuru Perera
>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> about.me/chrishantha
>>> Contact: +IsuruPereraWSO2
>>> <https://www.google.com/+IsuruPereraWSO2/about>
>>>
>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> <http://kishanthan.wordpress.com>*
>> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>*
> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>



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

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


Re: [Dev] SnakeYAML is already an OSGi bundle. Why do we have SnakeYAML in orbit?

2016-06-29 Thread Kishanthan Thangarajah
It would also be great if you can create a jira for this with the
information so that we could add this for next kernel release.

On Wed, Jun 29, 2016 at 4:51 PM, Kishanthan Thangarajah <kishant...@wso2.com
> wrote:

> Thanks Isuru. We can try and add this option, which would remove the need
> for Dynamic-Import.
>
> On Wed, Jun 29, 2016 at 3:42 PM, Isuru Perera <isu...@wso2.com> wrote:
>
>> I just saw that SnakeYaml provides a "CustomClassLoaderConstructor".
>> Could you please check on that.
>>
>> See:
>> http://stackoverflow.com/questions/4940379/using-snakeyaml-under-osgi/4944346#4944346
>>
>>
>> On Thu, May 19, 2016 at 1:31 PM, Isuru Perera <isu...@wso2.com> wrote:
>>
>>> Thanks for info.
>>>
>>> Shall we ask the snakeyaml developers to add the Dynamic-Import header.
>>> May be we can create an issue [1]. Otherwise, that library is not useful in
>>> an OSGi container, right?
>>>
>>> [1] https://bitbucket.org/asomov/snakeyaml/issues?status=new=open
>>>
>>> On Thu, May 5, 2016 at 7:25 AM, Kishanthan Thangarajah <
>>> kishant...@wso2.com> wrote:
>>>
>>>> This is because we had to add Dynamic-Import header to this bundle,
>>>> which is missing in the original bundle, as snakeyaml was loading classes
>>>> dynamically when trying to build and construct the bean object for the
>>>> configuration.
>>>>
>>>> On Wed, May 4, 2016 at 12:16 PM, Isuru Perera <isu...@wso2.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> $subject [1]. See manifest entries in latest JARs [2]
>>>>>
>>>>> [1] https://github.com/wso2/orbit/tree/master/snakeyaml/1.16.0.wso2v1
>>>>> [2]
>>>>> http://search.maven.org/#search|gav|1|g%3A%22org.yaml%22%20AND%20a%3A%22snakeyaml%22
>>>>> <http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.yaml%22%20AND%20a%3A%22snakeyaml%22>
>>>>>
>>>>> --
>>>>> Isuru Perera
>>>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>>>>> Lean . Enterprise . Middleware
>>>>>
>>>>> about.me/chrishantha
>>>>> Contact: +IsuruPereraWSO2
>>>>> <https://www.google.com/+IsuruPereraWSO2/about>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Kishanthan Thangarajah*
>>>> Associate Technical Lead,
>>>> Platform Technologies Team,
>>>> WSO2, Inc.
>>>> lean.enterprise.middleware
>>>>
>>>> Mobile - +94773426635
>>>> Blog - *http://kishanthan.wordpress.com
>>>> <http://kishanthan.wordpress.com>*
>>>> Twitter - *http://twitter.com/kishanthan
>>>> <http://twitter.com/kishanthan>*
>>>>
>>>
>>>
>>>
>>> --
>>> Isuru Perera
>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> about.me/chrishantha
>>> Contact: +IsuruPereraWSO2
>>> <https://www.google.com/+IsuruPereraWSO2/about>
>>>
>>
>>
>>
>> --
>> Isuru Perera
>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>> Contact: +IsuruPereraWSO2 <https://www.google.com/+IsuruPereraWSO2/about>
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>*
> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>



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

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


Re: [Dev] SnakeYAML is already an OSGi bundle. Why do we have SnakeYAML in orbit?

2016-06-29 Thread Kishanthan Thangarajah
Thanks Isuru. We can try and add this option, which would remove the need
for Dynamic-Import.

On Wed, Jun 29, 2016 at 3:42 PM, Isuru Perera <isu...@wso2.com> wrote:

> I just saw that SnakeYaml provides a "CustomClassLoaderConstructor". Could
> you please check on that.
>
> See:
> http://stackoverflow.com/questions/4940379/using-snakeyaml-under-osgi/4944346#4944346
>
>
> On Thu, May 19, 2016 at 1:31 PM, Isuru Perera <isu...@wso2.com> wrote:
>
>> Thanks for info.
>>
>> Shall we ask the snakeyaml developers to add the Dynamic-Import header.
>> May be we can create an issue [1]. Otherwise, that library is not useful in
>> an OSGi container, right?
>>
>> [1] https://bitbucket.org/asomov/snakeyaml/issues?status=new=open
>>
>> On Thu, May 5, 2016 at 7:25 AM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> This is because we had to add Dynamic-Import header to this bundle,
>>> which is missing in the original bundle, as snakeyaml was loading classes
>>> dynamically when trying to build and construct the bean object for the
>>> configuration.
>>>
>>> On Wed, May 4, 2016 at 12:16 PM, Isuru Perera <isu...@wso2.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> $subject [1]. See manifest entries in latest JARs [2]
>>>>
>>>> [1] https://github.com/wso2/orbit/tree/master/snakeyaml/1.16.0.wso2v1
>>>> [2]
>>>> http://search.maven.org/#search|gav|1|g%3A%22org.yaml%22%20AND%20a%3A%22snakeyaml%22
>>>> <http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.yaml%22%20AND%20a%3A%22snakeyaml%22>
>>>>
>>>> --
>>>> Isuru Perera
>>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>>>> Lean . Enterprise . Middleware
>>>>
>>>> about.me/chrishantha
>>>> Contact: +IsuruPereraWSO2
>>>> <https://www.google.com/+IsuruPereraWSO2/about>
>>>>
>>>
>>>
>>>
>>> --
>>> *Kishanthan Thangarajah*
>>> Associate Technical Lead,
>>> Platform Technologies Team,
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - +94773426635
>>> Blog - *http://kishanthan.wordpress.com
>>> <http://kishanthan.wordpress.com>*
>>> Twitter - *http://twitter.com/kishanthan
>>> <http://twitter.com/kishanthan>*
>>>
>>
>>
>>
>> --
>> Isuru Perera
>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>> Contact: +IsuruPereraWSO2 <https://www.google.com/+IsuruPereraWSO2/about>
>>
>
>
>
> --
> Isuru Perera
> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
> Contact: +IsuruPereraWSO2 <https://www.google.com/+IsuruPereraWSO2/about>
>



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

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


Re: [Dev] Fixing APIMANAGER-4202 at carbon-mediation level

2016-06-27 Thread Kishanthan Thangarajah
On Mon, Jun 27, 2016 at 12:13 PM, Uvindra Dias Jayasinha <uvin...@wso2.com>
wrote:

> Before I just apply the stated fix I would like some feedback from the
> Carbon team regarding what maybe causing this issue.
>
> So here is what we are seeing so far,
>
> 1. IllegalStateException is being thrown by
> CarbonContextDataHolder.setTenantDomain()
>
> 2. The logic in setTenantDomain() is as follows,
>   a) If the this.tenantDomain of the CarbonContextDataHolder is null
> or is equal to the super tenant domain then its fine
>
>   b) But if the this.tenantDomain of the CarbonContextDataHolder is
> Not Equal to the tenant domain value that is being set then there is a
> chance for the IllegalStateException to be thrown.
>
> So what this seems to indicate is that you cannot call setTenantDomain()
> if the current tenantDomain within the carbon context is already set to
> another tenants domain. This could be due to startTenantFlow() not being
> called before setting the tenant domain. Could this be the cause?
>

If the tenant domain is already set, then it can not be set again within
the same thread flow, unless you start a new tenant flow or setting a
tenant domain other than super tenant.

Starting a new tenant flow means, the current ContextHolder instance will
be pushed onto the stack and then the thread would see a new ContextHolder
instance until that tenant flow is properly ended (popped from the stack),
which then the thread would see the previous ContextHolder instance which
was there before starting the tenant flow.


> On 24 June 2016 at 14:44, Uvindra Dias Jayasinha <uvin...@wso2.com> wrote:
>
>> Problem is the issue is intermittent so its difficult to verify but I
>> will test the fix out and send a PR
>>
>> On 24 June 2016 at 13:52, Chanaka Fernando <chana...@wso2.com> wrote:
>>
>>> Hi Uvindra,
>>>
>>> Could you please verify the fix and send us a PR so that we can merge it?
>>>
>>> On Fri, Jun 24, 2016 at 1:02 PM, Uvindra Dias Jayasinha <
>>> uvin...@wso2.com> wrote:
>>>
>>>> Hi All,
>>>>
>>>> The original issue encountered in [1] was fixed via the resolution of
>>>> [2].
>>>>
>>>> But now this has been reopened and in this case the same issue has got
>>>> exposed, but on this occasion the call stack is different. This is
>>>> happening when setting the tenant info at [3]. So we need to apply the same
>>>> fix that was done in resolving [2] to the WSO2Registry class when setting
>>>> the tenant info.
>>>>
>>>> Can we get this fixed?
>>>>
>>>>
>>>> [1] https://wso2.org/jira/browse/APIMANAGER-4202
>>>> [2] https://wso2.org/jira/browse/ESBJAVA-4333
>>>> [3]
>>>> https://github.com/wso2/carbon-mediation/blob/v4.6.1-BETA3/components/mediation-registry/org.wso2.carbon.mediation.registry/src/main/java/org/wso2/carbon/mediation/registry/WSO2Registry.java#L747
>>>>
>>>>
>>>> --
>>>> Regards,
>>>> Uvindra
>>>>
>>>> Mobile: 33962
>>>>
>>>
>>>
>>>
>>> --
>>> Thank you and Best Regards,
>>> 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
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Regards,
>> Uvindra
>>
>> Mobile: 33962
>>
>
>
>
> --
> Regards,
> Uvindra
>
> Mobile: 33962
>



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

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


Re: [Dev] [C5] How do we get IP address of the Carbon Server?

2016-06-24 Thread Kishanthan Thangarajah
Since there is no transport level information at C5 kernel level, we can't
add this to kernel. The relevant transport implementation should provide
such information IMO. For example, netty based http implementation can
provide information about the IP or Ports when server is ready serve
requests.

On Fri, Jun 24, 2016 at 2:09 PM, Rasika Perera <rasi...@wso2.com> wrote:

> Hi All,
>
> How do we retrieve $subject that the server has binded? In 4.4.x it was
> available via java system property "bind.address" ?
>
> There are use-cases such as in IoTS we need to provide server ip address
> for downloading device agents. "localhost" would not work when the invoker
> is remote.
>
> ​Thanks​
>
> --
> 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
>



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

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


Re: [Dev] carbon-datasources: Supporting Database Properties

2016-06-23 Thread Kishanthan Thangarajah
We will add this for the next minor release.

@Isuru, you can go ahead with the version range as you mentioned for
package imports.

On Thu, Jun 23, 2016 at 1:21 PM, Afkham Azeez <az...@wso2.com> wrote:

> Can we get a quick turnaround on this please?
>
> On Thu, Jun 23, 2016 at 12:10 PM, Isuru Perera <isu...@wso2.com> wrote:
>
>> Hi,
>>
>> This regarding CDATASRCS-2 <https://wso2.org/jira/browse/CDATASRCS-2>. I
>> guess that won't be fixed soon. But as I mentioned, this issue is a blocker
>> for Metrics release. Since we need to release Metrics soon (by next week),
>> I'll release the Metrics with datasources import range "[1.0.0, 2.0.0)"
>>
>> I hope this issue will be fixed in a Minor release. I also hope the
>> datasource properties will be supported using the same configuration
>> elements used in C4. See:
>> https://github.com/wso2/carbon-metrics/blob/v1.2.1/features/carbon-metrics/org.wso2.carbon.metrics.server.feature/src/main/resources/conf/metrics-datasources.xml#L144-L146
>>
>> Please let me know the plan to support datasource properties in C5.
>>
>> Thanks!
>>
>> Best Regards,
>>
>> On Thu, Jun 2, 2016 at 12:25 PM, Isuru Perera <isu...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> This is regarding [1]. Supporting database properties is required for
>>> Carbon Metrics.
>>>
>>> It will be a blocker when someone wants to use Carbon Metrics with
>>> Oracle database.
>>>
>>> Can we get it fixed soon?
>>>
>>> Thanks!
>>>
>>> Best Regards,
>>>
>>> [1] https://wso2.org/jira/browse/CDATASOURC-2
>>>
>>> --
>>> Isuru Perera
>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> about.me/chrishantha
>>> Contact: +IsuruPereraWSO2
>>> <https://www.google.com/+IsuruPereraWSO2/about>
>>>
>>
>>
>>
>> --
>> Isuru Perera
>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>> Contact: +IsuruPereraWSO2 <https://www.google.com/+IsuruPereraWSO2/about>
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>*
> *email: **az...@wso2.com* <az...@wso2.com>
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* <http://blog.afkham.org>
> *twitter: **http://twitter.com/afkham_azeez*
> <http://twitter.com/afkham_azeez>
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> <http://lk.linkedin.com/in/afkhamazeez>*
>
> *Lean . Enterprise . Middleware*
>



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

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


Re: [Dev] Removing only a jar file inside a patch directory will not reflected on patch applying process

2016-06-08 Thread Kishanthan Thangarajah
I don't think this a major issue to fix. Normally if you apply a patch, you
don't partially remove some jars from the patch directory as if you are
trying to update a patch. Either you remove that patch completely or apply
a new patch. IMO there is no concept of updating a patch rather you update
your system with a patch.

On Wed, Jun 8, 2016 at 6:55 AM, Niranjan Karunanandham <niran...@wso2.com>
wrote:

> Hi Nuwan,
>
> As per the logic in [1], when the jar is removed, the patches are not
> updated. But as mentioned by you, as a solution we can revert the jar by
> removing the patch directory and restarting the server.
>
> [1] -
> https://github.com/wso2/carbon-kernel/blob/v4.4.5/core/org.wso2.carbon.server/src/main/java/org/wso2/carbon/server/extensions/PatchInstaller.java
>
> Regards,
> Nira
>
> On Tue, Jun 7, 2016 at 7:22 PM, Nuwan Wimalasekara <nuw...@wso2.com>
> wrote:
>
>> Hi,
>>
>> Seems this is a bug. reported a JIRA[1] to track the issue further.
>>
>> [1] https://wso2.org/jira/browse/CARBON-15939
>>
>> Thanks,
>> Nuwanw
>>
>> On Wed, Jun 1, 2016 at 12:21 PM, Nuwan Wimalasekara <nuw...@wso2.com>
>> wrote:
>>
>>> Hi Manoj,
>>>
>>> Yes. Even if the jar is removed, plugin directory has the same md5 value
>>> of removed jar. means It is not reverted.
>>>
>>> To revert the jar, we have to remove the patch directory and restart the
>>> server.
>>>
>>> Thanks,
>>> Nuwanw
>>>
>>> On Wed, Jun 1, 2016 at 12:03 PM, Manoj Kumara <ma...@wso2.com> wrote:
>>>
>>>> During patch application it validate the md5sum's of the jars as well.
>>>> Can you please verify the removed jar has a different md5 value from what's
>>>> there in the server ?
>>>>
>>>> *Manoj Kumara*
>>>> WSO2 Inc. *| **lean. enterprise. middleware.*
>>>> *Mobile:* +94 713 448188
>>>>
>>>> On Wed, Jun 1, 2016 at 11:53 AM, Nuwan Wimalasekara <nuw...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Carbon Team,
>>>>>
>>>>> I have observed $subject when I try to remove a jar file from patch
>>>>> directory. I know removing a jar file from patch directory is not a good
>>>>> practise when applying patches. But it may happen and then the behaviour 
>>>>> is
>>>>> confusing. However if we update the a jar file inside a patch , it will
>>>>> reflect and update the plugins directory and works as expected.
>>>>>
>>>>> To reproduce the issue, we can apply a patch having two jar file and
>>>>> restart the server. Then it will apply the patch. after that, remove one 
>>>>> of
>>>>> jar file in the patch directory and restart the server. The it will not
>>>>> detect as a patch change and will not revert the removed jar from 
>>>>> patch.
>>>>>
>>>>> Is this a limitation in patch applying process or bug?
>>>>>
>>>>> Thanks,
>>>>> Nuwanw
>>>>>
>>>>> --
>>>>> Nuwan Wimalasekara
>>>>> Senior Software Engineer - Test Automation
>>>>> WSO2, Inc.: http://wso2.com
>>>>> lean. enterprise. middleware
>>>>>
>>>>> phone: +94 71 668 4620
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Nuwan Wimalasekara
>>> Senior Software Engineer - Test Automation
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> phone: +94 71 668 4620
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Nuwan Wimalasekara
>> Associate Technical Lead
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> phone: +94 71 668 4620
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
>
> *Niranjan Karunanandham*
> Associate Technical Lead - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


Re: [Dev] [GREG] Invalid value error for REG_CREATED_TIME column in REG_RESOURCE with mysql 5.7

2016-05-25 Thread Kishanthan Thangarajah
We can verify and fix this for 4.4.6.

On Tue, May 24, 2016 at 3:17 PM, Nuwan Dias <nuw...@wso2.com> wrote:

> This issue is still open.
>
> If we don't fix this before kernel 4.4.6, none of our new products are
> going to be compatible with MySQL 5.7. Which would be a major limitation in
> the platform.
>
> Thanks,
> NuwanD.
>
> On Tue, May 10, 2016 at 4:15 PM, Chandana Napagoda <chand...@wso2.com>
> wrote:
>
>> Hi Janaka,
>>
>> Please note that, this fix will be available in the next kernel release.
>>
>> Regards,
>> Chandana
>> On May 10, 2016 3:14 PM, "Thilini Cooray" <thili...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> A public JIRA is raised in [1].
>>>
>>> [1] https://wso2.org/jira/browse/REGISTRY-3610
>>>
>>> Thanks.
>>>
>>> On Tue, May 10, 2016 at 12:11 PM, Janaka Ranabahu <jan...@wso2.com>
>>> wrote:
>>>
>>>> Hi Thushara
>>>>
>>>> On Tue, May 10, 2016 at 12:06 PM, Thushara Ranawaka <thusha...@wso2.com
>>>> > wrote:
>>>>
>>>>> Hi Thilini,
>>>>>
>>>>> AFAIU you workaround need to be updated with the current
>>>>> timestamp[1][2]. Setting default value to zero is not nice. You might have
>>>>> to figure out the correct syntax for other DB types and test against them.
>>>>>
>>>> ​What Thilini is pointing is an issue in the Registry database creation
>>>> script. Hence we will create a public JIRA and assign it to you guys.
>>>> Please fix them.
>>>>
>>>> We can not modify the Registry database creation script since API
>>>> Manager would not capture the complete scenarios of G-Reg.
>>>>
>>>> Thanks,
>>>> Janaka​
>>>>
>>>>
>>>>>
>>>>>
>>>>> [1] - DEFAULT CURRENT_TIMESTAMP
>>>>> [2] -
>>>>> http://stackoverflow.com/questions/168736/how-do-you-set-a-default-value-for-a-mysql-datetime-column
>>>>>
>>>>> Thanks,
>>>>> Thushara.
>>>>>
>>>>> On Tue, May 10, 2016 at 11:52 AM, Thilini Cooray <thili...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi GReg team,
>>>>>>
>>>>>> We encounter following issue [1] while testing API Manager with MySQL
>>>>>> 5.7
>>>>>> MySQL 5.7 has enabled NO_ZERO_IN_DATE, NO_ZERO_DATE policies by
>>>>>> default. Therefore it does not allow 0 as a valid default value for
>>>>>> date/time.
>>>>>>
>>>>>> As a workaround we can set MySQL server to accept 0 changing the
>>>>>> default server settings if the database owner agrees on it.
>>>>>> [2] contains the related table creation script.
>>>>>>
>>>>>> Appreciate your feedback on a fix for this.
>>>>>>
>>>>>> [1] https://wso2.org/jira/browse/APIMANAGER-4645
>>>>>>
>>>>>> [2] CREATE TABLE IF NOT EXISTS REG_RESOURCE (
>>>>>> REG_PATH_ID INTEGER NOT NULL,
>>>>>> REG_NAMEVARCHAR(256),
>>>>>> REG_VERSION INTEGER NOT NULL AUTO_INCREMENT,
>>>>>> REG_MEDIA_TYPE  VARCHAR(500),
>>>>>> REG_CREATOR VARCHAR(31) NOT NULL,
>>>>>> REG_CREATED_TIMETIMESTAMP NOT NULL *DEFAULT 0*,
>>>>>> REG_LAST_UPDATORVARCHAR(31),
>>>>>> REG_LAST_UPDATED_TIMETIMESTAMP NOT NULL *DEFAULT 0*,
>>>>>> REG_DESCRIPTION VARCHAR(1000),
>>>>>> REG_CONTENT_ID  INTEGER,
>>>>>> REG_TENANT_ID INTEGER DEFAULT 0,
>>>>>> REG_UUID VARCHAR(100) NOT NULL,
>>>>>> CONSTRAINT PK_REG_RESOURCE PRIMARY KEY(REG_VERSION,
>>>>>> REG_TENANT_ID)
>>>>>> )ENGINE INNODB;
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> --
>>>>>> Best Regards,
>>>>>>
>>>>>> *Thilini Cooray*
>>>>>> Software Engineer
>>>>>> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
>>>>>> E-mail : thili...@wso2

Re: [Dev] Releasing carbon-appmgt 1.1.3

2016-05-12 Thread Kishanthan Thangarajah
gt;>>>>>>
>>>>>>>>>>>>>> org.wso2.carbon.appmgt
>>>>>>>>>>>>>> carbon-appmgt
>>>>>>>>>>>>>> 1.1.3
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>> Dinusha.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --
>>>>>>>>>>>>>> Dinusha Dilrukshi
>>>>>>>>>>>>>> Associate Technical Lead
>>>>>>>>>>>>>> WSO2 Inc.: http://wso2.com/
>>>>>>>>>>>>>> Mobile: +94725255071
>>>>>>>>>>>>>> Blog: http://dinushasblog.blogspot.com/
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks & Best Regards,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Maheshika Goonetilleke
>>>>>>>>>>>>> Engineering Process Coordinator
>>>>>>>>>>>>>
>>>>>>>>>>>>> *WSO2 Inc*
>>>>>>>>>>>>> *email   : mahesh...@wso2.com <mahesh...@wso2.com>*
>>>>>>>>>>>>> *mobile : +94 773 596707 <%2B94%20773%20596707>*
>>>>>>>>>>>>> *www: :http://wso2.com <http://wso2.com/>*lean . enterprise .
>>>>>>>>>>>>> middleware
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Dinusha Dilrukshi
>>>>>>>>>>>> Associate Technical Lead
>>>>>>>>>>>> WSO2 Inc.: http://wso2.com/
>>>>>>>>>>>> Mobile: +94725255071
>>>>>>>>>>>> Blog: http://dinushasblog.blogspot.com/
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> You received this message because you are subscribed to the
>>>>>>>>>>>> Google Groups "WSO2 Engineering Group" group.
>>>>>>>>>>>> To unsubscribe from this group and stop receiving emails from
>>>>>>>>>>>> it, send an email to engineering-group+unsubscr...@wso2.com.
>>>>>>>>>>>> For more options, visit
>>>>>>>>>>>> https://groups.google.com/a/wso2.com/d/optout.
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> *Hasunie Adikari*
>>>>>>>>>>> Software Engineer
>>>>>>>>>>> WSO2 Inc.; http://wso2.com
>>>>>>>>>>> lean.enterprise.middleware
>>>>>>>>>>> blog http://hasuniea.blogspot.com
>>>>>>>>>>> Mobile:+94715139495
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Inosh Perera
>>>>>>>>>> Software Engineer, WSO2 Inc.
>>>>>>>>>> Tel: 077813 7285, 0785293686
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Thilini Shanika
>>>>>>>>> Software Engineer
>>>>>>>>> WSO2, Inc.; http://wso2.com
>>>>>>>>> 20, Palmgrove Avenue, Colombo 3
>>>>>>>>>
>>>>>>>>> E-mail: tgtshan...@gmail.com
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Dinusha Dilrukshi
>>>>>>>> Associate Technical Lead
>>>>>>>> WSO2 Inc.: http://wso2.com/
>>>>>>>> Mobile: +94725255071
>>>>>>>> Blog: http://dinushasblog.blogspot.com/
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Dinusha Dilrukshi
>>>>>>> Associate Technical Lead
>>>>>>> WSO2 Inc.: http://wso2.com/
>>>>>>> Mobile: +94725255071
>>>>>>> Blog: http://dinushasblog.blogspot.com/
>>>>>>>
>>>>>>> --
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "WSO2 Engineering Group" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>> send an email to engineering-group+unsubscr...@wso2.com.
>>>>>>> For more options, visit
>>>>>>> https://groups.google.com/a/wso2.com/d/optout.
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> Thanks & Best Regards,
>>>>>>
>>>>>> Maheshika Goonetilleke
>>>>>> Engineering Process Coordinator
>>>>>>
>>>>>> *WSO2 Inc*
>>>>>> *email   : mahesh...@wso2.com <mahesh...@wso2.com>*
>>>>>> *mobile : +94 773 596707 <%2B94%20773%20596707>*
>>>>>> *www: :http://wso2.com <http://wso2.com/>*lean . enterprise .
>>>>>> middleware
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Dinusha Dilrukshi
>>>>> Associate Technical Lead
>>>>> WSO2 Inc.: http://wso2.com/
>>>>> Mobile: +94725255071
>>>>> Blog: http://dinushasblog.blogspot.com/
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Hasunie Adikari*
>>>> Software Engineer
>>>> WSO2 Inc.; http://wso2.com
>>>> lean.enterprise.middleware
>>>> blog http://hasuniea.blogspot.com
>>>> Mobile:+94715139495
>>>>
>>>
>>>
>>>
>>> --
>>> *Hasunie Adikari*
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> blog http://hasuniea.blogspot.com
>>> Mobile:+94715139495
>>>
>>
>>
>>
>> --
>> Dinusha Dilrukshi
>> Associate Technical Lead
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94725255071
>> Blog: http://dinushasblog.blogspot.com/
>>
>
>
>
> --
> Dinusha Dilrukshi
> Associate Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94725255071
> Blog: http://dinushasblog.blogspot.com/
>



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

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


Re: [Dev] ClassNotFoundException on deserializing a custom message object in Hazelcast

2016-05-11 Thread Kishanthan Thangarajah
Kalpa has already merged this. I hope you can continue the work with this
fix.

On Wed, May 11, 2016 at 1:43 PM, Asitha Nanayakkara <asi...@wso2.com> wrote:

> I raised the question in Hazelcast Gitter community and they got back to
> me saying to use the com.hazelcast.config.Config#setClassLoader(...) to set
> the requeired class loader as the solution.
>
> Since the issue affects all the users of carbon Hzelcast module we have to
> fix this in carbon Hazelcast module.
>
> @Kishanthan I've created a PR [1] with the suggested fix (by Hazelcast) to
> add the carbon hazelcast module class loader as the class loader of
> hazelcast bundle. Please review and merge.
>
> [1] https://github.com/wso2/carbon-kernel/pull/974
>
>
> On Tue, May 10, 2016 at 5:13 PM, Asitha Nanayakkara <asi...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> We came across an issue with Hazelcast topics when passing custom message
>> objects (Can occur for Maps and all the other data structures in Hazelcast)
>> with C5 Hazelcast module. We have created an issue for this as well [1].
>> Use case
>>
>> I'm working with Hazelcast reliable topics in an OSGi environment. I'm
>> using a custom message object with Hazelcast topics ClusterNotification
>> <https://github.com/wso2/andes/blob/v3.1.5/modules/andes-core/broker/src/main/java/org/wso2/andes/server/cluster/coordination/ClusterNotification.java>
>> .
>>
>> public class ClusterSubscriptionChangedListener implements 
>> MessageListener {
>>
>> /**
>>  * This method is triggered when a subscription is changed in clustered 
>> environment.
>>  *
>>  * @param message contains the ClusterNotification
>>  */
>> @Override
>> public void onMessage(Message message) {
>>// message handling logic
>> }
>>  }
>>
>> I'm publishing/receiving messages to/from Hazelcast topics from another
>> OSGi bundle.
>> Issue
>>
>> I can publish messages to the topic successfully. But I don't receive the
>> messages from the listener. This is because, when the Hazelcast topic ring
>> buffer runners try to pick the serialized message and de-serialize, it
>> throws a ClassNotFoundException. *And the exception is silently ignored*
>> and the message never received.
>> Root cause
>>
>> Class loader of the Hazelcast bundle cannot see the classes of my bundle.
>> Therefore even though I can publish the message from my bundle, Within
>> Hazelcast it can't de-serialize the ClusterNotification
>> <https://github.com/wso2/andes/blob/v3.1.5/modules/andes-core/broker/src/main/java/org/wso2/andes/server/cluster/coordination/ClusterNotification.java>
>> object since the class loader of Hazelcast bundle cannot see the class.
>> Solution, way forward?
>>
>>
>>1. After having an offline discussion with Kishanthan we built the
>>hazelcast bundle with *
>>in the hazelcast pom.xml
>><https://github.com/hazelcast/hazelcast/blob/v3.6/hazelcast/pom.xml>
>>and we successfully received the messages (We didn't get the
>>ClassNotFoundException). But we need a fix from Hazelcast.
>>2. Another way Hazelcast has provided is to set the class loader for
>>the HazelcastInstance. So Internally Hazelcast instance will use the
>>provided class loader to deserialize the objects. If we provide our bundle
>>class loader it will properly deserialize the object without an issue.
>>
>>
>> @Kishanthan I tried to set the class loader of the carbon-kernel
>> hazelcast module to the hazelcast instance (when creating the hazelcast
>> instance[2]) and added dynamic imports * property (to get the solution 2
>> working from the carbon kernel hazelcast module itself). Still I'm having
>> issues in loading the Andes classes thorough the carbon Hazelcast module
>> class loader.
>> [1] https://github.com/hazelcast/hazelcast/issues/8139
>> [2]
>> https://github.com/wso2/carbon-kernel/blob/hamming-release-poc/modules/carbon-hazelcast/component/src/main/java/org/wso2/carbon/hazelcast/internal/CarbonHazelcastComponent.java#L60
>>
>> Regards,
>> Asitha
>>
>> --
>> *Asitha Nanayakkara*
>> Software Engineer
>> WSO2, Inc. http://wso2.com/
>> Mob: +94 77 853 0682
>>
>>
>
>
> --
> *Asitha Nanayakkara*
> Software Engineer
> WSO2, Inc. http://wso2.com/
> Mob: +94 77 853 0682
>
>


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

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


Re: [Dev] Java LinkageError on AS 6.0.0 when webapp's contain libraries exist on server lib directory

2016-05-10 Thread Kishanthan Thangarajah
+1, let's use the AS repo and at build time, which can get installed during
build time and this will also become part of release which will be deployed
onto nexus.

Is the naming is correct? Shouldn't it be "shaded"?

On Tue, May 10, 2016 at 3:00 PM, Manoj Kumara <ma...@wso2.com> wrote:

> Hi Dev's,
>
> During testing WSO2AS 6.0.0 we encounters $Subject error when SLF4j
> library available on the webapp libs directory as /lib also
> contain the same library to be used by libthrift library used during stat
> publishing. After analyzing the issue  with the team realized that this
> occurred as Tomcat has a flat class path and multiple package versions
> cannot be used as in OSGI runtime.
>
> To resolve this as per the recommendation provided by KasunG we used '*Maven
> Shade Plugin* [1]' to shade package name (rename package structure and
> usages) as other open-source projects like Tomcat, Maven use similar
> patterns when using commonly used packages.
>
> As these shaded libraries required for AS distribution these libs need to
> be maintained inside product it self I suggest to maintain them as below
> with '*org.wso2.shade*' prefix on groupID. Thoughts ?
>
> /modules/*shade-libs*
>  |- slf4j
>  |- libthrift
>
> [1] https://maven.apache.org/plugins/maven-shade-plugin/
>
>
> Regards,
> Manoj
>



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

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


Re: [Dev] How to create database tables with -Dsetup in Carbon 5?

2016-04-12 Thread Kishanthan Thangarajah
Can you create a jira for this, so that will track and add it to
kernel/platform?

On Thu, Apr 7, 2016 at 5:37 PM, Isuru Perera <isu...@wso2.com> wrote:

> Hi Carbon team,
>
> When will this feature be implemented in Carbon? As I understand, most of
> the products need this feature.
>
> Thanks!
>
> On Tue, Mar 29, 2016 at 11:51 AM, Asitha Nanayakkara <asi...@wso2.com>
> wrote:
>
>> +1 for having this as a common feature. MB will also be using this
>> feature to create the database schema based on the database vendor.
>>
>> On Tue, Mar 29, 2016 at 11:09 AM, Isuru Perera <isu...@wso2.com> wrote:
>>
>>> Hi Aruna,
>>>
>>> I think this feature will be important for other products as most of the
>>> products will eventually need to create the database schema based on the
>>> database vendor.
>>>
>>> I hope MB team will also need this feature soon and it would be good if
>>> this feature can be supported in next platform release.
>>>
>>> Thanks!
>>>
>>> On Fri, Mar 25, 2016 at 2:03 PM, Aruna Karunarathna <ar...@wso2.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Fri, Mar 25, 2016 at 1:45 PM, Isuru Perera <isu...@wso2.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> In Carbon 4.x.x, we extend [1]
>>>>> org.wso2.carbon.utils.dbcreator.DatabaseCreator [2]. How can we do the 
>>>>> same
>>>>> in Carbon 5?
>>>>>
>>>>
>>>> Hi Isuru,
>>>>
>>>> There is no such feature planned or available ATM for hamming platform
>>>> release.
>>>> Regards,
>>>> Aruna
>>>>
>>>>>
>>>>> Thanks!
>>>>>
>>>>> [1]
>>>>> https://github.com/search?l==DatabaseCreator++user%3Awso2=advsearch=Code=%E2%9C%93
>>>>> [2]
>>>>> https://github.com/wso2/carbon-kernel/blob/4.4.x/core/org.wso2.carbon.utils/src/main/java/org/wso2/carbon/utils/dbcreator/DatabaseCreator.java
>>>>>
>>>>> --
>>>>> Isuru Perera
>>>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>>>>> Lean . Enterprise . Middleware
>>>>>
>>>>> about.me/chrishantha
>>>>> Contact: +IsuruPereraWSO2
>>>>> <https://www.google.com/+IsuruPereraWSO2/about>
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> *Aruna Sujith Karunarathna *
>>>> WSO2, Inc | lean. enterprise. middleware.
>>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>>> Email: ar...@wso2.com | Web: www.wso2.com
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Isuru Perera
>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> about.me/chrishantha
>>> Contact: +IsuruPereraWSO2
>>> <https://www.google.com/+IsuruPereraWSO2/about>
>>>
>>
>>
>>
>> --
>> *Asitha Nanayakkara*
>> Software Engineer
>> WSO2, Inc. http://wso2.com/
>> Mob: +94 77 853 0682
>>
>>
>
>
> --
> Isuru Perera
> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
> Contact: +IsuruPereraWSO2 <https://www.google.com/+IsuruPereraWSO2/about>
>



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

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


Re: [Dev] "org.wso2.carbon.core.server.feature" packs "poi-ooxml"

2016-04-08 Thread Kishanthan Thangarajah
Not for 4.4.6 as its now ready for release. We will have to verify this and
remove this, if this is not needed for any kernel dependents. Will track
this and fix for next release - https://wso2.org/jira/browse/CARBON-15852

On Fri, Apr 8, 2016 at 11:55 AM, Aruna Karunarathna <ar...@wso2.com> wrote:

>
>
> On Fri, Apr 8, 2016 at 11:38 AM, Prabath Abeysekera <praba...@wso2.com>
> wrote:
>
>> Hi Kicha,
>>
>> Looks like "org.wso2.carbon.core.server.feature" packs "poi-ooxml", even
>> though it is not currently used in the underlying implementation, which
>> claims for 7.6M. IOW, there's no sign of any usage of the above except for
>> a couple of stale imports.
>>
>> Considering the above, is there any possibility to remove this?
>>
>
> Adding Jayanga, Can we remove this in 4.4.6 release?
> BTW not sure, if this is already used since this comes from the kernel, If
> so there will be problems in product level.
>
>>
>> Cheers,
>> Prabath
>> --
>> Prabath Abeysekara
>> Technical Lead
>> WSO2 Inc.
>> Email: praba...@wso2.com
>> Mobile: +94774171471
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Aruna Sujith Karunarathna *
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



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

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


Re: [Dev] [C5] Must Inject CarbonServerInfo when writing OSGi Test Cases

2016-04-07 Thread Kishanthan Thangarajah
Can we also add this to the kernel osgi test framework documentation as a
best practice guideline?

On Thu, Apr 7, 2016 at 6:21 PM, Aruna Karunarathna <ar...@wso2.com> wrote:

> Hi Devs,
>
> When writing OSGi Test Cases, Please Inject the CarbonServerInfo service
> [1]. Otherwise the container wont start properly and the test cases will
> fail.
>
> After injecting the service it will guarantee that the server will fully
> start, before running the test cases. e.g. [2]
>
>
> [1].
> https://github.com/wso2/carbon-kernel/blob/master/core/src/main/java/org/wso2/carbon/kernel/utils/CarbonServerInfo.java
> [2].
> https://github.com/wso2/carbon-kernel/blob/master/tests/osgi-tests/src/test/java/org/wso2/carbon/osgi/startupresolver/SampleStartupOrderResolverOSGiTest.java#L71
>
> Regards,
> Aruna
> --
>
> *Aruna Sujith Karunarathna *
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



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

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


Re: [Dev] Carbon kernel branch 4.2.0 build failure

2016-04-06 Thread Kishanthan Thangarajah
alone Server ... SKIPPED
> [INFO] WSO2 Carbon - Coordination Core ... SKIPPED
> [INFO] WSO2 Carbon - Services  SKIPPED
> [INFO] WSO2 Carbon - Server Administration ... SKIPPED
> [INFO] WSO2 Carbon - carbon tomcat bundle  SKIPPED
> [INFO] WSO2 Carbon - Carbon specific tomcat extensions ... SKIPPED
> [INFO] WSO2 Carbon Kernel Kernel Patch 0001 .. SKIPPED
> [INFO] WSO2 Carbon Kernel Kernel Core Patch 0001 . SKIPPED
> [INFO] Distribution-Aggregate  SKIPPED
> [INFO] WSO2 Carbon - Kernel Patch0001 Feature  SKIPPED
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 3:11.088s
> [INFO] Finished at: Mon Apr 04 12:00:41 IST 2016
> [INFO] Final Memory: 74M/1132M
> [INFO]
> 
> *[ERROR] Failed to execute goal on project axis2-transport-jms: Could not
> resolve dependencies for project
> org.apache.axis2:axis2-transport-jms:bundle:1.1.0-wso2v9: The following
> artifacts could not be resolved:
> org.apache.qpid:qpid-broker:jar:1.0-incubating-M2.1,
> org.apache.qpid:qpid-client:jar:1.0-incubating-M2.1: Failure to find
> org.apache.qpid:qpid-broker:jar:1.0-incubating-M2.1 in
> http://people.apache.org/repo/m2-incubating-repository/
> <http://people.apache.org/repo/m2-incubating-repository/> was cached in the
> local repository, resolution will not be reattempted until the update
> interval of apache-incubating has elapsed or updates are forced -> [Help 1]*
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR] mvn  -rf :axis2-transport-jms
>
> Thanks,
> Suhan
>
> Suhan Dharmasuriya
> Software Engineer - Test Automation
>
> *WSO2, Inc. *
>
> lean . enterprise . middleware
> Tel: +94 112 145345
> Mob: +94 779 869138
> Blog: http://suhan-opensource.blogspot.com/
>



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

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


Re: [Dev] [Architecture] WSO2 Application Server 6.0.0-M1 Released !

2016-04-06 Thread Kishanthan Thangarajah
Thanks Lahiru for testing this release. Did you also get a chance to test
the HTTP stat publishing valve?

On Tue, Apr 5, 2016 at 10:45 PM, Lahiru Manohara <lahir...@wso2.com> wrote:

> Hi All,
>
> We tested WSO2 Application Server 6.0.0 M1 with AppCloud and now we can
> deploy java run-time's application with WSO2 AS.
>
> Thanks!
>
> On Tue, Apr 5, 2016 at 9:39 PM, Kalpa Welivitigoda <kal...@wso2.com>
> wrote:
>
>> Hi all,
>>
>> Please use https://github.com/wso2/product-as/releases/tag/v6.0.0-m1 to
>> download the distribution.
>>
>> On Tue, Apr 5, 2016 at 7:14 PM, Kalpa Welivitigoda <kal...@wso2.com>
>> wrote:
>>
>>> WSO2 Application Server 6.0.0-M1 Released
>>>
>>> Welcome to WSO2 Application Server, the successor of WSO2 Carbon based
>>> Application Server. WSO2 Application Server 6.0.0 is a complete revamp and
>>> is based on vanilla Apache Tomcat. WSO2 provides a number of features by
>>> means of extensions to Tomcat to add/enhance the functionality. It provides
>>> first class support for generic web applications and JAX-RS/JAX-WS web
>>> applications. The performance of the server and individual application can
>>> be monitored by integrating WSO2 Application Server with WSO2 Data
>>> Analytics Server.
>>>
>>> WSO2 Application Server is an open source project and it is available
>>> under the Apache Software License (v2.0)
>>> <http://www.apache.org/licenses/LICENSE-2.0.html> .
>>> Key Features
>>>
>>>- HTTP Statistics Monitoring
>>>- Webapp Classloading Runtimes
>>>
>>> Fixed Issues
>>>
>>>- https://wso2.org/jira/browse/WSAS-2202?filter=13011
>>>
>>> Known Issues
>>>
>>>- https://wso2.org/jira/browse/WSAS-2212?filter=13012
>>>
>>> Reporting Issues
>>>
>>> Issues, documentation errors and feature requests regarding WSO2
>>> Application Server can be reported through the public issue tracking
>>> system. https://wso2.org/jira/browse/WSAS.
>>> Contact us WSO2 Application Server developers can be contacted via the
>>> Development <dev@wso2.org> and Architecture <architect...@wso2.org>
>>> mailing lists.
>>> Alternatively, questions can also be raised in the stackoverflow forum :
>>> http://stackoverflow.com/questions/tagged/wso2
>>>
>>> Thank you for your interest in WSO2 Application Server.
>>>
>>> * -The WSO2 Application Server Development Team - *
>>>
>>
>>
>>
>> --
>> Best Regards,
>>
>> Kalpa Welivitigoda
>> Software Engineer, WSO2 Inc. http://wso2.com
>> Email: kal...@wso2.com
>> Mobile: +94776509215
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best regards,
>
> *Lahiru Manohara*
> *Software Engineer*
> Mobile: +94716561576
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


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

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


Re: [Dev] Need clarification on how export package versions are specified

2016-04-05 Thread Kishanthan Thangarajah
We only need to provide the version here and we don't need to wso2vxx
postfix. We have faced feature installation issues with import versions
when "wso2vxx" goes to double digits. So we now recommend to use only the
major.minor.patch version with exports. But the jar/bundle version, will
still use the same scheme as before for example - 1.6.1.wso2v12-SNAPSHOT

So to answer your question
1. jar/bundle version - use the same scheme as before for example
- 1.6.1.wso2v12-SNAPSHOT to identify the bundles we generated.
2. package export version - use only major.minor.patch version for example
1.6.1


On Tue, Apr 5, 2016 at 3:22 PM, Buddhima Wijeweera <buddh...@wso2.com>
wrote:

> Hi All,
>
> Recently I came across a need to creating a repository which create a jar
> file and orbit bundle. (Since the repository needs to be self-contained)
>
> For my work I am referring wso2-axis2 repo as an example:
> https://github.com/wso2/wso2-axis2
>
> I have a confusion on the versions mentioned in the orbit's pom file at [1]
>
> 1. What's the reason behind keeping this orbit's pom file isolated (not
> using a parent pom file) ?
>
> 2. pom file version is given as 1.6.1.wso2v12-SNAPSHOT
>  , but later
> 1.6.1.wso2v13  is using as
> the exporting versions. Aren't they should be the same ?
>
> I really appreciate if someone can explain the reason behind this.
>
> [1]
> https://github.com/wso2/wso2-axis2/blob/master/orbit/axis2-jibx/pom.xml
>
>
> Thank you,
>
> --
> Buddhima Wijeweera
> Software Engineer; WSO2 Inc.; http://wso2.com ,
>
> Mobile: +94 71 427 9966
> Email: buddh...@wso2.com
> Blog:   https://buddhimawijeweera.wordpress.com
> GitHub Profile: https://github.com/Buddhima
>



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

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


Re: [Dev] [BPS] Dependency conflict when using xmlschema-core with Axis2 and CXF

2016-04-05 Thread Kishanthan Thangarajah
On Tue, Apr 5, 2016 at 3:09 PM, Natasha Wijesekara <nata...@wso2.com> wrote:

> Hi,
>
> I have created a SOAP client with Apache CXF which uses Dispatch and
> Service.Mode.MESSAGE to construct a JAX-WS dynamic call which is going to
> be the base class used by BPMN to call any web service. By looking at the
> activated OSGI bundles I was able to notice a dependancy conflict of 
> *xmlschema-core
> *when using Axis2 and CXF.
>
> Axis2 uses *xmlschema-core *version="1.4.7.wso2v3" and CXF uses
> *xmlschema-core *version="2.0.3" . When the SOAP client is invoked CXF
> would require the 2.0.3 version of *xmlschema-core  *but its picking up
> the 1.4.7 version.
>

Which CXF version (osgi bundle) you are using? What are its imports for the
above xmlschema related packages? Why it is getting wired to 1.4.7 version?
Is this client an OSGi bundle and how does it use CXF packages?

You could restrict which package to use using the version at OSGi imports.
For it to work, you need to answer the above questions.

To resolve this, I added the *xmlschema-core-2.0.3.jar *to
>  repositary/components/dropins folder. When I do so and start the server  I
> get the following exception:
>

You cant use the new xmlschema version as there are some significant code
changes needed with previous axis2 version (1.6.x) which were fixed with
the upgrade - https://issues.apache.org/jira/browse/AXIS2-5239


> *[2016-04-05 14:01:13,902] FATAL
> {org.wso2.carbon.core.init.CarbonServerManager} -  WSO2 Carbon
> initialization Failed*
>
> *org.apache.axis2.AxisFault: Exception occured while loading the Axis
> configuration from
> /home/natasha/Documents/repos/temp/product-bps/modules/distribution/target/wso2bps-3.6.0-SNAPSHOT/repository/conf/axis2/axis2.xml*
>
> * at
> org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfiguration(CarbonAxisConfigurator.java:194)*
>
> * at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)*
>
> * at
> org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65)*
>
> * at
> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:398)*
>
> * at
> org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)*
>
> * at
> org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:94)*
>
>
> *Caused by: org.apache.axis2.deployment.DeploymentException:
> org.wso2.carbon.core.multitenancy.MultitenantAddressingBasedDispatcher
> cannot be found by axis2_1.6.1.wso2v17*
>
> * at org.apache.axis2.deployment.util.Utils.loadHandler(Utils.java:149)*
>
> * at
> org.apache.axis2.deployment.AxisConfigBuilder.processPhaseList(AxisConfigBuilder.java:549)*
>
> * at
> org.apache.axis2.deployment.AxisConfigBuilder.processPhaseOrders(AxisConfigBuilder.java:580)*
>
> How can I specify the version of *xmlschema-core *to be used by CXF when
> creating the client?  Appreciate any help on this.
>
>
> Best Regards,
> *Natasha Wijesekare*
>
> *Software Engineering Intern, WSO2  Inc:  http://wso2.com
> <http://wso2.com/>*
> *email  : nata...@wso2.com <nata...@wso2.com>*
> *mobile: +94 771358651 <%2B94%20771358651>*
>



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

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


Re: [Dev] Include carbon.yml and other config files in Carbon Core feature

2016-04-05 Thread Kishanthan Thangarajah
On Tue, Apr 5, 2016 at 3:32 PM, Niranjan Karunanandham <niran...@wso2.com>
wrote:

> Hi Kishanthan,
>
> On Tue, Apr 5, 2016 at 3:23 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> +1
>>
>> Also by default, we need to have place holders for name, id and version
>> properties rather than having hard coded values. The product team can then
>> put their relevant values at build time. Let's add this also along with
>> this change.
>>
> By default shall we have the above values as empty in the carbon.yml. If
> it is not defined pick it up from System properties (using the place holder
> carbon.name, carbon.id and carbon.version for name, id and version
> respectively). If both are not define then get the values from a Constant.
> WDYT?
>

IMO, let's have it like this.

id: ${server.key}
name: ${server.name}
version: ${server.version}

If no value is set for this under system property or env property, we
should use the default values which comes from the configuration bean. The
product team can use their own values when building a product.


>
>>
>>
>> On Tue, Apr 5, 2016 at 3:14 PM, Aruna Karunarathna <ar...@wso2.com>
>> wrote:
>>
>>> On Fri, Apr 1, 2016 at 2:31 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
>>>> Hi Devs,
>>>>
>>>> In Carbon 5, the carbon.yml, log4j2.xml and etc., are in the
>>>> distribution folder and copied to the distribution pack via bin.xml. Why
>>>> don't we add these configuration files to Carbon Server Feature
>>>> (org.wso2.carbon.core.server.feature) which are copied to the packed when
>>>> the feature is installed. WDYT?
>>>>
>>>> +1. we should bring the configurations also when we install the core
>>> feature.
>>>
>>> Regards,
>>>> Nira
>>>>
>>>> --
>>>>
>>>> *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
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> *Aruna Sujith Karunarathna *
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>> Email: ar...@wso2.com | Web: www.wso2.com
>>>
>>>
>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Associate Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> <http://kishanthan.wordpress.com>*
>> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>>
>
>
> Regards,
> Nira
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



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

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


Re: [Dev] Include carbon.yml and other config files in Carbon Core feature

2016-04-05 Thread Kishanthan Thangarajah
+1

Also by default, we need to have place holders for name, id and version
properties rather than having hard coded values. The product team can then
put their relevant values at build time. Let's add this also along with
this change.


On Tue, Apr 5, 2016 at 3:14 PM, Aruna Karunarathna <ar...@wso2.com> wrote:

> On Fri, Apr 1, 2016 at 2:31 PM, Niranjan Karunanandham <niran...@wso2.com>
> wrote:
>
>> Hi Devs,
>>
>> In Carbon 5, the carbon.yml, log4j2.xml and etc., are in the distribution
>> folder and copied to the distribution pack via bin.xml. Why don't we add
>> these configuration files to Carbon Server Feature
>> (org.wso2.carbon.core.server.feature) which are copied to the packed when
>> the feature is installed. WDYT?
>>
>> +1. we should bring the configurations also when we install the core
> feature.
>
> Regards,
>> Nira
>>
>> --
>>
>> *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
>>
>>
>
>
> --
>
> *Aruna Sujith Karunarathna *
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



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

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


Re: [Dev] C5 Server startup hangs intermittently

2016-04-04 Thread Kishanthan Thangarajah
Can we enable debug logs for "org.wso2.carbon.kernel.
internal.startupresolver" package and check which component is causing the
issue? I can take a look at this and find the root cause, if needed.

On Mon, Apr 4, 2016 at 1:11 PM, Sumedha Rubasinghe <sume...@wso2.com> wrote:

> But it's intermittent. Manu also said he has faced this several times.
> AFAIU, fix to be applied @ C5 level?
>
>
>
>
> On Mon, Apr 4, 2016 at 1:08 PM, Sameera Jayasoma <same...@wso2.com> wrote:
>
>> Hi Sumedha,
>>
>> This because of a failure in netty component. It has failed to register
>> transports.
>>
>> Thanks,
>> Sameera.
>>
>> On Mon, Apr 4, 2016 at 1:01 PM, Sumedha Rubasinghe <sume...@wso2.com>
>> wrote:
>>
>>> # Normal server bootup
>>> #
>>>
>>> Sumedha-2:wso2uuf-1.0.0-SNAPSHOT sumedha$ bin/carbon.sh
>>> JAVA_HOME environment variable is set to
>>> /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
>>> CARBON_HOME environment variable is set to
>>> /Volumes/data/projects/wso2/uuf/M3/wso2uuf-1.0.0-SNAPSHOT
>>> osgi> [2016-04-04 09:46:13,407]  INFO
>>> {org.wso2.msf4j.internal.MicroservicesServerSC} - All microservices are
>>> available
>>> [2016-04-04 09:46:13,422]  INFO
>>> {org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent}
>>> - All CarbonNettyServerInitializers are available
>>> [2016-04-04 09:46:13,423]  INFO
>>> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Starting
>>> Netty Http Transport Listener
>>> [2016-04-04 09:46:13,428]  INFO
>>> {org.wso2.msf4j.internal.MicroservicesRegistry} - Added microservice:
>>> org.wso2.carbon.uuf.UUFService@7f932479
>>> [2016-04-04 09:46:13,509]  INFO
>>> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Netty
>>> Listener starting on port 8080
>>> [2016-04-04 09:46:13,511]  INFO
>>> {org.wso2.carbon.kernel.internal.CarbonStartupHandler} - WSO2 Carbon
>>> started in 1.303 sec
>>>
>>>
>>>
>>> # Same Server, hanged during bootup
>>> #
>>> Sumedha-2:wso2uuf-1.0.0-SNAPSHOT sumedha$ bin/carbon.sh
>>> JAVA_HOME environment variable is set to
>>> /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
>>> CARBON_HOME environment variable is set to
>>> /Volumes/data/projects/wso2/uuf/M3/wso2uuf-1.0.0-SNAPSHOT
>>> osgi> [2016-04-04 09:45:12,668]  INFO
>>> {org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent}
>>> - All CarbonNettyServerInitializers are available
>>> [2016-04-04 09:45:12,672]  INFO
>>> {org.wso2.msf4j.internal.MicroservicesRegistry} - Added microservice:
>>> org.wso2.carbon.uuf.UUFService@51f5356e
>>> [2016-04-04 09:45:42,625]  WARN
>>> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
>>> - Waiting on pending capability registration. Capability:
>>> org.wso2.msf4j.Interceptor
>>> [2016-04-04 09:45:42,626]  WARN
>>> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
>>> - Waiting on pending capability registration. Capability:
>>> org.wso2.msf4j.Microservice
>>> [2016-04-04 09:45:42,626]  WARN
>>> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
>>> - Waiting on pending capability registration. Capability:
>>> org.wso2.msf4j.internal.MicroservicesServerSC
>>> [2016-04-04 09:45:42,626]  WARN
>>> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
>>> - Waiting on pending capability registration. Capability:
>>> org.wso2.carbon.kernel.transports.CarbonTransport
>>> [2016-04-04 09:45:42,626]  WARN
>>> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
>>> - Waiting on pending capability registration. Capability:
>>> org.wso2.carbon.kernel.deployment.DeploymentService
>>> [2016-04-04 09:45:42,626]  WARN
>>> {org.wso2.carbon.kernel.internal.startupresolver.RequireCapabilityCoordinator}
>>> - Waiting on pending capability registration. Capability:
>>> org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent
>>>
>>>
>>>
>>>
>>>
>>> --
>>> /sumedha
>>> m: +94 773017743
>>> b :  bit.ly/sumedha
>>>
>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Software Architect,
>>
>> WSO2, Inc. (http://wso2.com)
>> email: same...@wso2.com
>> blog: http://blog.sameera.org
>> twitter: https://twitter.com/sameerajayasoma
>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>> Mobile: 0094776364456
>>
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> /sumedha
> m: +94 773017743
> b :  bit.ly/sumedha
>



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

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


Re: [Dev] C5 - mention the port in use as part of error message

2016-04-04 Thread Kishanthan Thangarajah
Yes, the error message needs to be more descriptive. Looks like this is
coming all the way from NettyListener (carbon-transports) [1] and we do not
have a way to catch this error as the bind call is started using a thread
in netty and it is the one which logs this error too.

@IsuruR and IsuruU, do we have way to fix this from calling netty api level?

[1]
https://github.com/wso2/carbon-transports/blob/master/http/netty/components/org.wso2.carbon.transport.http.netty/src/main/java/org/wso2/carbon/transport/http/netty/listener/NettyListener.java#L106

On Mon, Apr 4, 2016 at 8:40 AM, Sumedha Rubasinghe <sume...@wso2.com> wrote:

> It's port 8080 that is being used here. But no way to find that through
> the exception through from
> Netty HTTP Transport listener.
>
>
> >>>>
> [2016-04-04 08:37:03,872]  INFO
> {org.wso2.carbon.transport.http.netty.listener.NettyListener} - Starting
> Netty Http Transport Listener
> [2016-04-04 08:37:03,876]  INFO
> {org.wso2.msf4j.internal.MicroservicesRegistry} - Added microservice:
> org.wso2.carbon.uuf.UUFService@5f33122c
> Exception in thread "Timer-0" java.net.BindException: Address already in
> use
> at sun.nio.ch.Net.bind0(Native Method)
> at sun.nio.ch.Net.bind(Net.java:433)
> at sun.nio.ch.Net.bind(Net.java:425)
> at
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
> at
> io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:125)
> at
> io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:485)
> at
> io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1089)
> at
> io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:430)
> at
> io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:415)
> at
> io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:903)
> at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:198)
> at
> io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:348)
> at
> io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:356)
> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
> at
> io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:110)
> at
> io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
> at java.lang.Thread.run(Thread.java:745)
> >>>
>
>
> --
> /sumedha
>
>


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

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


Re: [Dev] Defining ​instructions.configure in p2.inf using carbon-feature-plugin

2016-04-04 Thread Kishanthan Thangarajah
There is a known issue with this : https://wso2.org/jira/browse/CMVNPLG-1

You should be able to use the same approach (defining your own p2.inf) with
the current SNAPSHOT of carbon-feature plugin. We are working a new release
targeting this week.

On Mon, Apr 4, 2016 at 11:57 AM, Hasitha Aravinda <hasi...@wso2.com> wrote:

> Hi Kernel team,
>
> Is it possible to define instructions.configure sections as [1]
> using carbon-feature-plugin ? carbon-feature-plugin takes configuration [2]
> and generates p2.inf content [3].
>
> [1] - p2.inf
>
> ​​
> instructions.configure = \
> ​​
>
> org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../../features/org.wso2.carbon.bpmn.server_${feature.version}/conf/activiti.xml,target:${installFolder}/../../../conf/activiti.xml,overwrite:true);\
>
> org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../../features/org.wso2.carbon.bpmn.server_${feature.version}/conf/datasources/activiti-datasources.xml,target:${installFolder}/../../../conf/datasources/activiti-datasources.xml,overwrite:true);\
>
> [2]
>
> <
> ​​
> adviceFileContents>
> 
> org.wso2.carbon.p2.category.type
> server
> 
> 
> org.eclipse.equinox.p2.type.group
> true
> 
> 
>
> ​[3]​ - p2.inf
>
> properties.0.name=org.wso2.carbon.p2.category.type
> properties.0.value=server
> properties.1.name=org.eclipse.equinox.p2.type.group
> properties.1.value=true
>
>
> Thanks,
> Hasitha.
>
>
> --
> --
> Hasitha Aravinda,
> Senior Software Engineer,
> WSO2 Inc.
> Email: hasi...@wso2.com
> Mobile : +94 718 210 200
>



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

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


Re: [Dev] Common configuration for publishing events from carbon servers to DAS/CEP

2016-03-20 Thread Kishanthan Thangarajah
This new change is only for OSGi based servers in the platform right? Are
there any changes for standalone data publishing API's used with non-OSGi
servers in the platform or is it still the same as before? We have AS 6.0.0
which is based on pure tomcat and currently we are using the minimum
required data publishing libs and the standalone data publishing API's to
publish HTTP stats to DAS.

On Mon, Mar 14, 2016 at 4:51 PM, Malith Dhanushka <mal...@wso2.com> wrote:

> Hi all,
>
> Please follow the steps bellow when publishing events from carbon servers
> to DAS/CEP. Here we keep the DAS/CEP server location in
> CARBON_HOME/repository/deployment/server/eventpublishers directory and this
> is common across platform.
>
> - Install the Event Publisher Aggregate feature from p2_repo [1]
>
> - Install Registry Core feature if not installed
>
> - Create event stream and deploy that to
> CARBON_HOME/repository/deployment/server/eventstreams
>
> - Create publishers for the created stream and deploy that to
>  CARBON_HOME/repository/deployment/server/eventpublishers
> Following is a sample configuration,
>
> 
> http://wso2.org/carbon/eventpublisher;>
>   
>   
>   
> admin
> thrift
> non-blocking
> 0
> tcp://localhost:7611
> X
>   
> 
>
> - Publish events to the created stream using
> org.wso2.carbon.event.stream.core.EventStreamService OSGI service.
> Following is a sample code snippet.
>
> Event event = new Event();
> event.setTimeStamp(System.currentTimeMillis());
> event.setStreamId("streamTest:1.0.0");
> event.setPayloadData(new Object[]{data});
> eventStreamService.publish(event);
>
> Please note that Event Publisher Aggregate feature is not yet included
> in carbon feature repo. It will be available with the immediate analytics
> feature release.
>
> [1]
> https://github.com/wso2/carbon-analytics-common/tree/master/features/event-publisher/org.wso2.carbon.event.publisher.aggregate.feature
>
> Thanks,
> Malith
> --
> Malith Dhanushka
> Senior Software Engineer - Data Technologies
> *WSO2, Inc. : wso2.com <http://wso2.com/>*
> *Mobile*  : +94 716 506 693
>
> ___
> 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 <http://kishanthan.wordpress.com>*
Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] C5- Datasource startup order issue

2016-03-15 Thread Kishanthan Thangarajah
On Tue, Mar 15, 2016 at 11:28 AM, Himasha Guruge <himas...@wso2.com> wrote:

> Hi Sameera,
>
> Thanks for the provided info.In bpmn component   to  build  activiti
> engine, we require the datasource bundle to be available. Therefore we
> tried adding  @Reference annotation  of
> org.wso2.carbon.kernel.datasource.core.internal.DataSourceListenerComponent
> (for activate method of ActivitiEngineBuilder) but this did not work.
>

Why this did not work? What's the issue?

>
>  AFAIU what you suggest is to implement a Listener class that would
> contain onJNDIReady() method, which would require other bundles(activiti
> bundle in this case) to wait until this method is executed.  Could you
> please provide any suggestions on this?
>

To use JNDI in carbon OSGi env, you have to add a mandatory reference to
JNDIContextManager and then wait on until it's available. This will be our
recommendation. Can you explain the use case of activity bundle and
datasources and the ordering issue you are facing with the above approach?



> Regards,
>
>
> On Tue, Mar 15, 2016 at 8:52 AM, Sameera Jayasoma <same...@wso2.com>
> wrote:
>
>> HI Himasha,
>>
>> You can refer following documents and samples.
>>
>> https://github.com/wso2/carbon-jndi
>>
>> https://github.com/wso2/carbon-datasources/blob/master/sample/src/main/java/org/wso2/carbon/datasource/sample/DataSourceServiceListenerComponent.java
>>
>> On Tue, Mar 15, 2016 at 4:08 AM, Himasha Guruge <himas...@wso2.com>
>> wrote:
>>
>>> Hi Sameera,
>>>
>>> With regards to $subject, so far we have used the workaround of manually
>>> renaming the bundle's symbolic name which works perfectly. However is it
>>> possible to know when this fix will be available?
>>>
>>> Regards,
>>>
>>> Himasha Guruge
>>> *Software Engineer*
>>> WS*O2* *Inc.*
>>> Mobile: +94 777459299
>>> himas...@wso2.com
>>>
>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Software Architect,
>>
>> WSO2, Inc. (http://wso2.com)
>> email: same...@wso2.com
>> blog: http://blog.sameera.org
>> twitter: https://twitter.com/sameerajayasoma
>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>> Mobile: 0094776364456
>>
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> himas...@wso2.com
>
> ___
> 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 <http://kishanthan.wordpress.com>*
Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Annotations are not processed correctly with maven-bundle-plugin 3.0.1 version

2016-03-14 Thread Kishanthan Thangarajah
Hi Aruna,

Let's contact maven-bundle plugin mailing list and bndtools github project
and check with them first on this. bndtools is the internal lib used with
processing ds_annotations in bundles.

On Tue, Mar 15, 2016 at 10:41 AM, Sameera Jayasoma <same...@wso2.com> wrote:

> Yes. Following JIRA is related to this issue. We need to find out why they
> have done this change.
>
> https://wso2.org/jira/browse/CARBON-15810
>
> On Tue, Mar 15, 2016 at 5:31 AM, Aruna Karunarathna <ar...@wso2.com>
> wrote:
>
>> Hi all,
>>
>> With the upgrade of wso2 parent pom version 3, the maven-bundle-plugin
>> version is upgraded to 3.0.1.
>>
>> The property annotation inside the Component are not being added to the
>> Manifest headers with this new version. See the below example.
>>
>> @Component(
>> name =
>> "org.wso2.carbon.kernel.internal.deployment.DeploymentEngineListenerComponent",
>> immediate = true,
>>
>>
>>
>> *property = {
>> "capability-name=org.wso2.carbon.kernel.deployment.Deployer",
>> "component-key=carbon-deployment-service"}*
>> )
>>
>> for the 2.5.4 version's generated MANIFEST.MF I could see the following
>> in Provide-Capability section.
>>
>> Provide-Capability: osgi.service;effective:=active;objectClass="org.wso2
>>  .carbon.kernel.startupresolver.RequiredCapabilityListener";
>>
>> *capability-n
>>  ame="org.wso2.carbon.sample.deployer.mgt.Deployer";component-key=carbon
>>  -sample-deployment-engine*
>>
>> And for the 3.0.1 version's generated MANIFEST.MF I could see the
>> following in Provide-Capability section. the property tag inside the
>> Component annotation is missing.
>>
>> Provide-Capability: osgi.service;objectClass:List="org.wso2.carb
>>  on.kernel.startupresolver.RequiredCapabilityListener"
>>
>> Also the objectClass is changed to objectClass:List.
>>
>> Regards,
>> Aruna
>> --
>>
>> *Aruna Sujith Karunarathna *
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 9040362 | Work: +94 112145345
>> Email: ar...@wso2.com | Web: www.wso2.com
>>
>>
>
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://blog.sameera.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


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

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


Re: [Dev] [AS 6.0.0] Webapp Loader Modue - Parent First Configuration

2016-03-12 Thread Kishanthan Thangarajah
Did we also look into how we can use ParallelWebappClassLoader with our
class loaded enhancements?

https://tomcat.apache.org/tomcat-8.0-doc/config/loader.html#Standard_Implementation

On Sun, Mar 13, 2016 at 11:42 AM, Kishanthan Thangarajah <
kishant...@wso2.com> wrote:

> If tomcat is already providing a way to configure the parent first
> behaviour we should use that instead of our own. But most of the times, we
> do not need to change this class loading behaviour to parent first as we
> mostly use the default (child first) behaviour. This config was added
> during OSGi based tomcat class loading time (AS 5.3.0) to make use of the
> parent class loading behaviour, but this is no longer a valid use case with
> plain tomcat. So let's go ahead with tomcat based config.
>
> On Fri, Mar 11, 2016 at 11:02 AM, Miraj Abeysekara <mi...@wso2.com> wrote:
>
>> Hi all,
>>
>> Currently in the wso2as-web.xml contains a parent first configuration
>> parameter per web app class loading. Also tomcat it self provide
>> configurable parent first class loading behavior in side the context.xml.
>>
>> One benefit of using the tomcat configuration for controlling parent
>> first behavior is, we can reuse their methods. But if we separate the
>> parent first parameter from wso2as-web.xml we need to add context.xml file
>> per web app just for changing the class loading behavior. Also for each
>> context.xml, the Loader element must be added with specifying app-sever web
>> app loader class if the web app requires wso2 web app loader module.
>> Therefore it is bit complex to configure a web app if it requires to change
>> parent first behavior.
>>
>> Which approach should we use for the configuration?
>>
>> Thanks
>> --
>> Miraj Abeysekara
>> Intern (Software Engineering)
>> Mobile: +94775690822
>> Twitter: https://twitter.com/MiRAGECreator
>> GooglePlus: https://plus.google.com/u/0/+MirageAbeysekara
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>*
> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>



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

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


Re: [Dev] [AS 6.0.0] Webapp Loader Modue - Parent First Configuration

2016-03-12 Thread Kishanthan Thangarajah
If tomcat is already providing a way to configure the parent first
behaviour we should use that instead of our own. But most of the times, we
do not need to change this class loading behaviour to parent first as we
mostly use the default (child first) behaviour. This config was added
during OSGi based tomcat class loading time (AS 5.3.0) to make use of the
parent class loading behaviour, but this is no longer a valid use case with
plain tomcat. So let's go ahead with tomcat based config.

On Fri, Mar 11, 2016 at 11:02 AM, Miraj Abeysekara <mi...@wso2.com> wrote:

> Hi all,
>
> Currently in the wso2as-web.xml contains a parent first configuration
> parameter per web app class loading. Also tomcat it self provide
> configurable parent first class loading behavior in side the context.xml.
>
> One benefit of using the tomcat configuration for controlling parent first
> behavior is, we can reuse their methods. But if we separate the parent
> first parameter from wso2as-web.xml we need to add context.xml file per web
> app just for changing the class loading behavior. Also for each
> context.xml, the Loader element must be added with specifying app-sever web
> app loader class if the web app requires wso2 web app loader module.
> Therefore it is bit complex to configure a web app if it requires to change
> parent first behavior.
>
> Which approach should we use for the configuration?
>
> Thanks
> --
> Miraj Abeysekara
> Intern (Software Engineering)
> Mobile: +94775690822
> Twitter: https://twitter.com/MiRAGECreator
> GooglePlus: https://plus.google.com/u/0/+MirageAbeysekara
>



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

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


Re: [Dev] Fwd: SPI-Fly Mediator Service for Bundle Ordering

2016-03-04 Thread Kishanthan Thangarajah
Yes, we need to find a way to identify what bundles to weave on the fly
when framework is starting.

On Fri, Mar 4, 2016 at 2:19 PM, Miraj Abeysekara <mi...@wso2.com> wrote:

> Hi Kishanthan,
>
> 3rd option is also use static weaving isn't it? Is it ok to persist the
> modified SPI bundles?
>
> Thanks.
>
> On Fri, Mar 4, 2016 at 1:58 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Hi Miraj,
>>
>> On Fri, Mar 4, 2016 at 10:25 AM, Miraj Abeysekara <mi...@wso2.com> wrote:
>>
>>>
>>> -- Forwarded message --
>>> From: David Bosschaert <david.bosscha...@gmail.com>
>>> Date: Mon, Feb 15, 2016 at 3:04 PM
>>> Subject: Re: SPI-Fly Mediator Service for Bundle Ordering
>>> To: u...@aries.apache.org
>>>
>>>
>>> Hi Miraj,
>>>
>>> It's an interesting idea, however I'm not sure it will always work. The
>>> problem is that you need to have your weaving hook registered before the
>>> class to be woven is *loaded*, and I'm wondering whether this will provide
>>> enough guarantees to know that the class is not yet loaded. I mean there
>>> could be another bundle that loads the class that needs to be woven for
>>> whatever reason and suddenly this approach will stop working...
>>>
>>> The possibilities as they are right now are:
>>> * Use start levels. Run the dynamic weaving bundle on a very low start
>>> level (like 1) and run your other bundles on a higher start level (e.g. 2
>>> or 4 or 50).
>>>
>>
>> We tried start level based solutions before too but the issue we faced
>> was wedid not have control over this as people will try to use this for all
>> the scenarios, which then became complex. Start level should be brought in
>> as a platform wide solution and we need to properly design and use it. So
>> for the moment, let's not go with this approach.
>>
>>
>>> * Use static weaving [1]. This will do the weaving on a bundle at build
>>> time and replace the to-be-woven classfiles with woven ones in the .jar.
>>> This approach does not have any ordering constraints at runtime.
>>> ** You could even run the static weaving tool as part of your OSGi
>>> framework provisioning phase, so statically weave bundles on-the-fly before
>>> you are installing them.
>>>
>>
>> IMO, let's go with the 3rd option mentioned above, rather than statically
>> weaving the bundles before starting the server.
>>
>>
>>> I'm just wondering, is there any reason why one of these two approaches
>>> doesn't work for you?
>>>
>>> Cheers,
>>>
>>> David
>>>
>>> [1] See 'Use with Static Weaving' in
>>> http://aries.apache.org/modules/spi-fly.html
>>>
>>> On 15 February 2016 at 08:45, Miraj Abeysekara <mi...@wso2.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> We are currently developing a caching API which provides caching
>>>> service for the consumers. Currently the SPI-Fly dynamic weaving bundle
>>>> should started first in order to weave the consumer bundles otherwise the
>>>> consumers does not weave and can not see the class-loader of the service
>>>> provider bundle.
>>>>
>>>> We came up with an idea to solve this issue by exposing a OSGi service
>>>> from the mediator after it was started. So the consumers can use
>>>> declarative service to delay the startup until the mediator service
>>>> available.
>>>>
>>>> Is it possible to add this feature to the SPI-Fly?
>>>>
>>>> Thanks.
>>>>
>>>> Best regards,
>>>> Miraj Abeysekara.
>>>>
>>>
>>>
>>>
>>>
>>> --
>>> Miraj Abeysekara
>>> Intern (Software Engineering)
>>> Mobile: +94775690822
>>> Twitter: https://twitter.com/MiRAGECreator
>>> GooglePlus: https://plus.google.com/u/0/+MirageAbeysekara
>>>
>>> ___
>>> 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
>> <http://kishanthan.wordpress.com>*
>> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>>
>
>
>
> --
> Miraj Abeysekara
> Intern (Software Engineering)
> Mobile: +94775690822
> Twitter: https://twitter.com/MiRAGECreator
> GooglePlus: https://plus.google.com/u/0/+MirageAbeysekara
>



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

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


Re: [Dev] Fwd: SPI-Fly Mediator Service for Bundle Ordering

2016-03-04 Thread Kishanthan Thangarajah
Hi Miraj,

On Fri, Mar 4, 2016 at 10:25 AM, Miraj Abeysekara <mi...@wso2.com> wrote:

>
> -- Forwarded message --
> From: David Bosschaert <david.bosscha...@gmail.com>
> Date: Mon, Feb 15, 2016 at 3:04 PM
> Subject: Re: SPI-Fly Mediator Service for Bundle Ordering
> To: u...@aries.apache.org
>
>
> Hi Miraj,
>
> It's an interesting idea, however I'm not sure it will always work. The
> problem is that you need to have your weaving hook registered before the
> class to be woven is *loaded*, and I'm wondering whether this will provide
> enough guarantees to know that the class is not yet loaded. I mean there
> could be another bundle that loads the class that needs to be woven for
> whatever reason and suddenly this approach will stop working...
>
> The possibilities as they are right now are:
> * Use start levels. Run the dynamic weaving bundle on a very low start
> level (like 1) and run your other bundles on a higher start level (e.g. 2
> or 4 or 50).
>

We tried start level based solutions before too but the issue we faced was
wedid not have control over this as people will try to use this for all the
scenarios, which then became complex. Start level should be brought in as a
platform wide solution and we need to properly design and use it. So for
the moment, let's not go with this approach.


> * Use static weaving [1]. This will do the weaving on a bundle at build
> time and replace the to-be-woven classfiles with woven ones in the .jar.
> This approach does not have any ordering constraints at runtime.
> ** You could even run the static weaving tool as part of your OSGi
> framework provisioning phase, so statically weave bundles on-the-fly before
> you are installing them.
>

IMO, let's go with the 3rd option mentioned above, rather than statically
weaving the bundles before starting the server.


> I'm just wondering, is there any reason why one of these two approaches
> doesn't work for you?
>
> Cheers,
>
> David
>
> [1] See 'Use with Static Weaving' in
> http://aries.apache.org/modules/spi-fly.html
>
> On 15 February 2016 at 08:45, Miraj Abeysekara <mi...@wso2.com> wrote:
>
>> Hi,
>>
>> We are currently developing a caching API which provides caching service
>> for the consumers. Currently the SPI-Fly dynamic weaving bundle should
>> started first in order to weave the consumer bundles otherwise the
>> consumers does not weave and can not see the class-loader of the service
>> provider bundle.
>>
>> We came up with an idea to solve this issue by exposing a OSGi service
>> from the mediator after it was started. So the consumers can use
>> declarative service to delay the startup until the mediator service
>> available.
>>
>> Is it possible to add this feature to the SPI-Fly?
>>
>> Thanks.
>>
>> Best regards,
>> Miraj Abeysekara.
>>
>
>
>
>
> --
> Miraj Abeysekara
> Intern (Software Engineering)
> Mobile: +94775690822
> Twitter: https://twitter.com/MiRAGECreator
> GooglePlus: https://plus.google.com/u/0/+MirageAbeysekara
>
> ___
> 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 <http://kishanthan.wordpress.com>*
Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Dinusha Boteju

2016-02-14 Thread Kishanthan Thangarajah
Hi Folks,

It's my pleasure to welcome Dinusha Boteju as a WSO2 Committer.
Dinusha has been a key contributor to WSO2 Carbon in various forms,
especially in rewriting the Carbon Feature Plugin. As a recognition of his
work, he has been voted as a WSO2 Committer.

Dinusha, congratulations & keep up the good work !!!

Thanks,
Kishanthan.

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

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


Re: [Dev] Fail to deploy wso2.war after upgrading opensaml version in carbon identity

2016-02-12 Thread Kishanthan Thangarajah
On Fri, Feb 12, 2016 at 4:10 PM, Malithi Edirisinghe <malit...@wso2.com>
wrote:

> Hi All,
>
> We upgraded the opensaml version from 2.4.1 to 2.6.4 in carbon-identity.
> With this upgrade there are two opensaml versions at IS server runtime,
> opensaml 2.4.1 coming from org.wso2.carbon.core.common.feature in kernel
> and opensaml 2.6.4 coming from carbon identity features.
> On the product built with this upgrade, the SCIM endpoint web
> application(wso2.war) deployement fails intermittently with error [1] at
> server startup.
>
> As we found out this is being caused due to a failure on building the
> class space as one of the webapps dependencies wires to the older version
> while another wires to the upgraded version.
> So, as it seems, there is an older version of
> org.wso2.carbon.identity.sso.agent coming from
> org.wso2.carbon.webapp.mgt.server.feature in carbon deployment repo (carbon
> deployment 4.5.3). This specifically uses opensaml 2.4.1 version.
> The tomcat bundle uses dynamic imports, thus, if it wires with
> org.wso2.carbon.identity.sso.agent, it wires with opensaml 2.4.1 version.
> But, org.wso2.carbon.identity.core, which includes the class that reports
> to be missing, always wires with opensaml 2.6.4 version as specified.
> This causes the NoClassDefFoundError.
>
> p org.opensaml.xml.security.x509;
> version="2.6.4.wso2v1"
>   org.jaggeryjs.modules.sso_1.5.0 [170] imports
>   org.wso2.carbon.hostobjects.sso_4.3.2 [225] imports
>
> org.wso2.carbon.identity.application.authenticator.passive.sts_5.0.8.SNAPSHOT
> [239] imports
>
> org.wso2.carbon.identity.application.authenticator.samlsso_5.0.8.SNAPSHOT
> [242] imports
>   org.wso2.carbon.identity.authenticator.saml2.sso_5.0.8.SNAPSHOT [252]
> imports
>   org.wso2.carbon.identity.authenticator.saml2.sso.common_5.0.8.SNAPSHOT
> [253] imports
>   org.wso2.carbon.identity.entitlement_5.0.8.SNAPSHOT [260] imports
>   org.wso2.carbon.identity.oauth_5.0.8.SNAPSHOT [270] imports
>   org.wso2.carbon.identity.provider_5.0.8.SNAPSHOT [274] imports
>   org.wso2.carbon.identity.sso.saml_5.0.8.SNAPSHOT [282] imports
>   org.wso2.carbon.identity.tools.saml.validator_5.0.8.SNAPSHOT [292]
> imports
>   org.wso2.carbon.webapp.mgt_4.5.3 [421] imports
>   rampart-trust_1.6.1.wso2v17 [433] imports
>   wss4j_1.5.11.wso2v11 [460] imports
> org.opensaml.xml.security.x509;
> version="2.4.1.wso2v1"
>   org.wso2.carbon.identity.sso.agent_4.5.6 [281] imports
>   tomcat_7.0.59.wso2v3 [450] imports
>
> org.wso2.carbon.identity.sso.agent bundle is an unwanted bundle in IS. So,
> AFAIU, we have below options to solve this issue and successfully upgrade
> the opensaml version.
>
> 1. Bundle org.wso2.carbon.identity.sso.agent_4.5.6 in a separate feature,
> and import the feature from org.wso2.carbon.webapp.mgt.server.feature
> rather than bundling the bundle itself. With this option, we will not have
> the unwanted sso.agent bundle at IS server runtime.
>

If we create a feature for this, we will end up with multiple features for
a bundle. There is already a feature for this at carbon-identity
(org.wso2.carbon.identity.sso.agent.server.feature).

IMO, if we can make this feature a standalone one, both carbon-deployment
and carbon-identity can use it and we can remove the duplicate packaging of
this bundle in multiple features.


> 2. Upgrade the sso.agent version in
> org.wso2.carbon.webapp.mgt.server.feature
>
> I think it's better if we could do the first option.
> Please share your thoughts.
>
> [1]
> java.lang.NoClassDefFoundError:
> org/wso2/carbon/identity/core/util/IdentityConfigParser
> at
> org.wso2.carbon.identity.scim.provider.auth.SCIMAuthConfigReader.buildSCIMAuthenticators(SCIMAuthConfigReader.java:42)
> at
> org.wso2.carbon.identity.scim.provider.impl.ApplicationInitializer.initSCIMAuthenticatorRegistry(ApplicationInitializer.java:69)
> at
> org.wso2.carbon.identity.scim.provider.impl.ApplicationInitializer.contextInitialized(ApplicationInitializer.java:48)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
> at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
> at
> org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:290)
> at
> org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:198)
> --
>
> *Malithi Edirisinghe*
> Senior Software E

Re: [Dev] Using OSGI "Configuration Property Types" - for interpretation of configurations

2016-02-10 Thread Kishanthan Thangarajah
We can use this and this used within a DS component in a dynamic manner.
Can you tell me the exact use case you are trying out?

On Wed, Feb 10, 2016 at 11:54 AM, Pamod Sylvester <pa...@wso2.com> wrote:

> Hi All,
>
> DS 1.3 provides the capability of defining custom types for
> configurations. This might be a cleaner approach we could use to interpret
> our configurations. using @interface annotation.
>
> WDYT ?
>
> [1] http://njbartlett.name/2015/08/17/osgir6-declarative-services.html
>
> Thanks,
> Pamod
>
> --
> *Pamod Sylvester *
>
> *WSO2 Inc.; http://wso2.com <http://wso2.com>*
> cell: +94 77 7779495
>



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

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


Re: [Dev] Adding .inf files to orbit repo

2016-02-04 Thread Kishanthan Thangarajah
git add -f 

On Wed, Feb 3, 2016 at 8:43 PM, Buddhima Wijeweera <buddh...@wso2.com>
wrote:

> Hi All,
>
> When we move smooks orbit bundle to git repo, it requires some ".inf"
> files in git repo.
> In current svn repo those files are exists[1]. But in git Orbit repo,
> those files are ignored via gitignore file [2].
>
> So, would like to know, how can we add ".inf" files to Orbit repo?
>
>
> [1] https://svn.wso2.org/repos/wso2/trunk/orbit/smooks/META-INF/
> [2] https://github.com/wso2/orbit/blob/master/.gitignore#L6
>
> Thank you,
>
> --
> Buddhima Wijeweera
> Software Engineer; WSO2 Inc.; http://wso2.com ,
>
> Mobile: +94 71 427 9966
> Email: buddh...@wso2.com
> Blog:   https://buddhimawijeweera.wordpress.com
> GitHub Profile: https://github.com/Buddhima
>



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

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


Re: [Dev] Upgrading Smooks to version 1.5

2016-01-31 Thread Kishanthan Thangarajah
Can we try with [1] or [2] as the FreeMaker OSGi bundle? If these doesn't
bring any additional OSGi dependencies, we can use it, but let's try out
these first.

[1]
http://ebr.springsource.com/repository/app/bundle/version/detail?name=com.springsource.freemarker=2.3.15
[2]
http://mvnrepository.com/artifact/org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker/2.3.15_5

On Mon, Feb 1, 2016 at 12:04 PM, Buddhima Wijeweera <buddh...@wso2.com>
wrote:

> Thanks Kasun,
>
> [Adding dev mailing list]
>
> On Mon, Feb 1, 2016 at 12:02 PM, Kasun Indrasiri <ka...@wso2.com> wrote:
>
>> Shouldn't we discuss this in a mailing list?
>>
>> On Mon, Feb 1, 2016 at 12:00 PM, Buddhima Wijeweera <buddh...@wso2.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> For the the next ESB release we need to upgrade Smooks version from 1.4
>>> to 1.5. Currently Smooks bundle is created through orbit which reside in
>>> location [1].
>>>
>>> According to offline discussion had with Kishanthan, we have asked to
>>> try directly using smooks osgi bundle in carbon-mediation but we ended up
>>> with a problem activating Smooks OSGI bundle as it required certain
>>> additional dependencies.
>>>
>>> example:
>>>
>>> BundleException: The bundle "org.milyn.smooks.osgi_1.5.0 [142]" could
>>> not be resolved. Reason: Missing Constraint: Import-Package:
>>> freemarker.cache; version="2.3.15"
>>>
>>> Which means smooks osgi bundle is searching for freemarker dependency.
>>>
>>> The freemarker can be found as a jar [2]. But even after we add it to
>>> "/lib" folder, still the smooks bundle fails to activate, since it can't
>>> find the matching version (freemarker bundle is in active state).
>>>
>>> The reason behind this is the version of free marker carbon server
>>> generated. Even by bundling freemarker as a orbit bundle (which adds "wso2"
>>> post-fix to version), the exact version "2.3.15" cannot be satisfied,
>>> according to my knowledge.
>>>
>>> The best option so far can be seen is to re-bundle smooks along
>>> with dependencies as an orbit bundle, which is the way it was there before.
>>>
>>> Please let us know if there's any other alternative to overcome this
>>> confusion.
>>> [1] https://svn.wso2.org/repos/wso2/trunk/orbit/smooks/
>>> [2] http://mvnrepository.com/artifact/org.freemarker/freemarker/2.3.15
>>>
>>> Thank you,
>>> --
>>> Buddhima Wijeweera
>>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>>>
>>> Mobile: +94 71 427 9966
>>> Email: buddh...@wso2.com
>>> Blog:   https://buddhimawijeweera.wordpress.com
>>> GitHub Profile: https://github.com/Buddhima
>>>
>>
>>
>>
>> --
>> Kasun Indrasiri
>> Software Architect
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> cell: +94 77 556 5206
>> Blog : http://kasunpanorama.blogspot.com/
>>
>
>
>
> --
> Buddhima Wijeweera
> Software Engineer; WSO2 Inc.; http://wso2.com ,
>
> Mobile: +94 71 427 9966
> Email: buddh...@wso2.com
> Blog:   https://buddhimawijeweera.wordpress.com
> GitHub Profile: https://github.com/Buddhima
>



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

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


Re: [Dev] [VOTE] Release WSO2 Microservices Server 1.0.0 RC4

2016-01-22 Thread Kishanthan Thangarajah
[X] Stable - go ahead and release

Tested the security scenarios with WSO2 IS 5.1.0 and introspect endpoint
along with basic deployment scenarios on lite mode.

Thanks,
Kishanthan.

On Tue, Jan 19, 2016 at 5:49 PM, Samiyuru Senarathne <samiy...@wso2.com>
wrote:

> Hi Devs,
>
> This is the 4th Release Candidate of WSO2 Microservices Server 1.0.0.
>
> Please download, test the product and vote.
>
> *​Source and binary distribution files:*
> *https://github.com/wso2/product-mss/releases/tag/v1.0.0-RC4
> <https://github.com/wso2/product-mss/releases/tag/v1.0.0-RC4>*
>
> *Maven staging repository:*
> http://maven.wso2.org/nexus/content/repositories/orgwso2carbonmss-298/
>
> *The tag to be voted upon:*
> *https://github.com/wso2/product-mss/tree/v1.0.0-RC4
> <https://github.com/wso2/product-mss/tree/v1.0.0-RC4>*
>
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
> Note: Since the artifacts that have to be uploaded to the maven central
> are not yet uploaded, please make sure to first build the project from the
> source in order to make all artifacts available in the maven local
> repository.
>
> Thank you,
> Carbon Team
>
> --
> Samiyuru Senarathne
> *Software Engineer*
> Mobile : +94 (0) 71 134 6087
> samiy...@wso2.com
>



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

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


Re: [Dev] [DEV][AS] Ideas and ways to integrate with Hot Swap Agent

2016-01-21 Thread Kishanthan Thangarajah
Hi Clovis,

On Wed, Jan 20, 2016 at 6:06 PM, Clovis Wichoski <clo...@neoinix.com.br>
wrote:

> Hi,
>
> I'm researching for some ways to improve speed of development and redeploy
> on WSO2 Application Server, for example I have a scenario here where a
> simple change on a class, to test, get about 5 minutes. (as the test must
> pass by web interfaces in Jaggery, until reach the REST Api implemented in
> JAX-RS with Jersey and some JPA using EclipseLink.
>
> The Jaggery part is very easy, just rsync files, and all works fine.
>
> For the java part, in this research I found the HotSwapAgent -
> http://www.hotswapagent.org/
>
> My first try was to follow HotSwapAgent quick start as is, and check if it
> works with WSO2 AS 5.2.1 out of the box, but dont worked, HotSwapAgent dont
> detect changes when I copy one updated .class file to WEB-INF/classes.
>
> Then my question is about, if anyone tried this before with WSO2, and if
> is a good way to invest time to implement a WSO2 plugin that work better
> with HotSwapAgent and what is the steps I must follow to implement this
> plugin or integrate this type of speed with redeploy with WSO2 AS? Maybe
> some problems with OSGi?
>

This is a good thing to have with webap deployment. But we do have a
concept of hot update of webapps which is the default behaviour. If you
update the webapp, it will be redeployed by the Application Server where it
keeps track of the changes using the scheduled task which runs on every 15
seconds interval. Since this redeploys the entire webapp, all the classes
loaded will be removed and will be loaded again. Do find any issues with
this behaviour?

Thanks,
Kishanthan.


> ps: Note that the idea, is just change one class, rsync the binary .class
> file over respective WEB-INF/classes and got the results.
>
> Best regards
>
> Clóvis Wichoski
> CEO, Neoinix
> Mobile: +554588233181
>
> _______
> 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 <http://kishanthan.wordpress.com>*
Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-19 Thread Kishanthan Thangarajah
IIRC, we already have a way (tool) to delete tenants in a cluster which is
used by cloud team. So what's the requirement for this component here?

With hazelcast based clustering, we assume that the first (oldest) member
as the coordinator for the cluster. We set this member as the coordinator
and you can check whether the current node is the coordinator
using ClusteringAgent#isCoordinator method.

On Mon, Jan 18, 2016 at 6:24 PM, Nipuna Prashan <pras...@wso2.com> wrote:

> Hi all,
>
> I am building an osgi component for tenant deletion task. This will be
> deployed in every server (APIM, AS, AF, BAM, IS..). I have a requirement to
> do this task in one node in the cluster while there is no single point of
> failure. Only one node should start deletion while other nodes waiting on
> the same server.
> Is there a way to find the leader node/ contributor in a cluster? Any help
> would be appreciated.
>
>
>
> --
> *Nipuna Prashan*
> Software Engineering Intern
> +94711852792
>



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

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


Re: [Dev] Maven Build for Application Server 6.0

2015-12-23 Thread Kishanthan Thangarajah
We need to use the same configs location as how it is found in tomcat. For
example, the catalina-server.xml should be used for default server.xml and
copied to /conf directory. There are other config files (context.xml,
web.xml) that should follow the same approach. The custom extensions
(Valves, WebappClassLoaders, etc) may come from different repos. So the
product build should take it dependency when assembling them with the final
distribution.

Can we also check whether we could use the tomcat maven dependency to
download the distribution with the build?

On Sat, Dec 5, 2015 at 1:23 PM, Miraj Abeysekara <mi...@wso2.com> wrote:

> Hi Kishanthan,
>
> Are there any specific folder structure which I follow when adding the
> custom configuration files to the build?
>
> Currently the configuration files are copied from
> *{AS_DEV_HOME}/extensions/conf/* directory to
> *{AS_HOME}/conf/app-server/* directory after the build.
>
> Thanks.
>
> On Fri, Dec 4, 2015 at 6:24 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Hi Miraj,
>>
>> This is a good starting point and your are on the right path. Next steps
>> are to see how to use our own tomcat configuration files, integrate our own
>> extensions developed for tomcat and pack them with AS/Tomcat distribution
>> with the build.
>>
>> It's better to use @dev for these type of mails.
>>
>> On Sun, Nov 29, 2015 at 1:31 PM, Miraj Abeysekara <mi...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> I am currently working on creating a maven build for Application Server
>>> 6.0. Up-to now the following features are included with the maven build,
>>>
>>>- Automatically download and extract tomcat server distribution
>>>given by the maven properties.
>>>- Repack the tomcat server distribution by adding extensions in the
>>>extensions directory (currently including lib's and webapps as 
>>> extensions)
>>>
>>> Any feedback and suggestions are highly appreciated.
>>>
>>> Thanks.
>>> --
>>> Miraj Abeysekara
>>> Intern (Software Engineering)
>>> Mobile: +94775690822
>>> Twitter: https://twitter.com/MiRAGECreator
>>> GooglePlus: https://plus.google.com/u/0/+MirageAbeysekara
>>>
>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Associate Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> <http://kishanthan.wordpress.com>*
>> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>>
>
>
>
> --
> Miraj Abeysekara
> Intern (Software Engineering)
> Mobile: +94775690822
> Twitter: https://twitter.com/MiRAGECreator
> GooglePlus: https://plus.google.com/u/0/+MirageAbeysekara
>



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

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


[Dev] Release carbon archetypes to maven central

2015-12-22 Thread Kishanthan Thangarajah
Hi Manuri,

Now that carbon kernel 5.0.0 is released, we can now proceed with releasing
both carbon archetypes to maven central. Can we start on this task?

Thanks,
Kishanthan.

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

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


Re: [Dev] Release carbon archetypes to maven central

2015-12-22 Thread Kishanthan Thangarajah
+1

Thanks,

On Tue, Dec 22, 2015 at 2:34 PM, Manuri Amaya Perera <manu...@wso2.com>
wrote:

> Hi,
>
> According to [1] I have created a jira account in [2]. Now we need to
> create a ticket for a new project there like[3].
>
> Shall I proceed with creating the ticket with following information.
>
> Priority: Major
> Group Id: org.wso2.carbon
> Project URL:https://github.com/wso2/carbon-kernel
> SCM url: https://github.com/wso2/carbon-kernel.git
> Already Synced to Central: No
>
> According to sonatype docs the process takes less than 2 business days[4]
>
> [1]
> https://docs.google.com/a/wso2.com/document/d/1wiJUcia398iStT-nUrVnIil_eJEsEofqurY-gBG6gZk/edit?usp=sharing
> [2] https://issues.sonatype.org
> [3] https://issues.sonatype.org/browse/OSSRH-12494
> [4] http://central.sonatype.org/pages/ossrh-guide.html
>
> Thank you.
>
> On Tue, Dec 22, 2015 at 2:05 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Hi Manuri,
>>
>> Now that carbon kernel 5.0.0 is released, we can now proceed with
>> releasing both carbon archetypes to maven central. Can we start on this
>> task?
>>
>> Thanks,
>> Kishanthan.
>>
>> --
>> *Kishanthan Thangarajah*
>> Associate Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> <http://kishanthan.wordpress.com>*
>> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>>
>
>
>
> --
>
> *Manuri Amaya Perera*
>
> *Software Engineer*
>
> *WSO2 Inc.*
>
> *Blog: http://manuriamayaperera.blogspot.com
> <http://manuriamayaperera.blogspot.com>*
>



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

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


  1   2   3   4   5   6   7   >