Re: [Dev] Where to find org.wso2.carbon.identity.core 5.7.5 source?

2018-01-22 Thread lakshman udayakantha
Thanks Omindu. Surprisingly it does not show on tag drop down list.

Thanks,
Lakshman.

On Mon, Jan 22, 2018 at 4:41 PM, Omindu Rathnaweera <omi...@wso2.com> wrote:

> To be precise, identity.core is at [2].
>
> [2] - https://github.com/wso2/carbon-identity-framework/
> tree/v5.7.5/components/identity-core/org.wso2.carbon.identity.core
>
> On Mon, Jan 22, 2018 at 4:39 PM, Omindu Rathnaweera <omi...@wso2.com>
> wrote:
>
>> Hi Lakshaman,
>>
>> You can find the source at [1].
>>
>> [1] - https://github.com/wso2/carbon-identity-framework/tree/v5.7.5
>>
>> On Mon, Jan 22, 2018 at 4:31 PM, lakshman udayakantha <nylud...@gmail.com
>> > wrote:
>>
>>> Hi,
>>>
>>> I have checked the $subject in [1] and [2]. But 5.7.5 version is not
>>> there. By googling also I could not found the source.
>>>
>>> [1] https://github.com/wso2/carbon-identity-framework/
>>> [2] https://github.com/wso2-attic/carbon-identity
>>>
>>> Thanks,
>>> Lakshman.
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Omindu Rathnaweera
>> Senior Software Engineer, WSO2 Inc.
>> Mobile: +94 771 197 211 <+94%2077%20119%207211>
>>
>
>
>
> --
> Omindu Rathnaweera
> Senior Software Engineer, WSO2 Inc.
> Mobile: +94 771 197 211 <077%20119%207211>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Where to find org.wso2.carbon.identity.core 5.7.5 source?

2018-01-22 Thread lakshman udayakantha
Hi,

I have checked the $subject in [1] and [2]. But 5.7.5 version is not there.
By googling also I could not found the source.

[1] https://github.com/wso2/carbon-identity-framework/
[2] https://github.com/wso2-attic/carbon-identity

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


Re: [Dev] Get geolocation based on ip returns null country

2017-06-07 Thread Lakshman Udayakantha
Hi All,

After offline discussion with Tharindu, we identified this was a data
import issue. After using below commands to import data from CSV, we could
get the country without any issue.

*mysqlimport -u root -p --ignore-lines=2 --fields-terminated-by=,
--fields-optionally-enclosed-by='"' --local GEO_LOCATION_DATA
/Users/Lakshman/Downloads/GeolocationData/data/LOCATION.csv *

*mysqlimport -u root -p --ignore-lines=2 --fields-terminated-by=,
--fields-optionally-enclosed-by='"' --local GEO_LOCATION_DATA
/Users/Lakshman/Downloads/GeolocationData/data/BLOCKS.csv*

In that case, we need to check data imported properly or not, we can use
below query,

*SELECT loc.country_name,loc.subdivision_1_name FROM BLOCKS block ,
LOCATION loc WHERE block.network_blocks = '203.94' AND 3411959556 BETWEEN
block.network AND block.broadcast AND block.geoname_id=loc.geoname_id;*

It should return following result set

+--++

| country_name | subdivision_1_name |

+--++

| Sri Lanka||

+--++

1 row in set (0.02 sec)

@Doc Team: Note that This was not mentioned in docs[1], we should clear
about how data import and check whether data imported or not properly.
Please include this in docs.

[1]
https://docs.wso2.com/display/AM210/Configuring+Geolocation+Based+Statistics

Thanks,

Lakshman





On Tue, Jun 6, 2017 at 10:13 PM, Lakshman Udayakantha <lakshm...@wso2.com>
wrote:

> Hi Megala,
>
> No. That is not the issue. When I use online services [1] I can see the
> country.
>
> [1] https://www.iplocation.net/
>
> Thanks,
> Lakshman
>
> On Tue, Jun 6, 2017 at 10:04 PM, Megala Uthayakumar <meg...@wso2.com>
> wrote:
>
>> Hi Lakshman,
>>
>> "getCountry" method will return empty value if we have used an internal
>> ip address. We need to give the public ip address as the parameter. We can
>> get the public ip address using following command,
>>
>> *dig +short myip.opendns.com <http://myip.opendns.com>
>> @resolver1.opendns.com <http://resolver1.opendns.com>*
>>
>> Thanks
>>
>> Regards,
>> Megala
>>
>>
>> On Tue, Jun 6, 2017 at 4:36 PM, Lakshman Udayakantha <lakshm...@wso2.com>
>> wrote:
>>
>>> Hi Tharindu,
>>>
>>> I tried this feature [1] with the instructions given [2], [3]. Note that
>>> I need to check only getCountry method. Below is the steps I have done
>>>
>>> 1. Created a data source called GEO_LOCATION_DATA and imported CSV files
>>> downloaded from given location in [2].
>>> 2. Installed following features in DAS 3.1.0.
>>>
>>>- Analytics Spark Geolocation UDF
>>>- Analytics Spark scripts Common
>>>- Analytics Spark Useragent
>>>
>>> 3. Invoked the getCountry method from analytics console in DAS 3.1.0.
>>> But it returns an empty country in the console. What am I missing here?
>>> Or any hint to troubleshoot. According to the code, it searches for an
>>> entry in IP_LOCATION table. but we are not importing data to that table as
>>> specified in the doc?
>>>
>>> [1] https://github.com/wso2/shared-analytics/tree/v1.0.0/com
>>> ponents/spark-udf/org.wso2.carbon.analytics.shared.geolocation.udf
>>> [2] https://docs.wso2.com/display/AM200/Configuring+Geolocat
>>> ion+Based+Statistics
>>> [3] http://blog.rukspot.com/2016/10/configure-wso2-das-310-for-w
>>> so2-apim.html
>>>
>>> Thanks,
>>> Lakshman.
>>>
>>> --
>>> 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
>>>
>>>
>>
>>
>> --
>> Megala Uthayakumar
>>
>> Software Engineer
>> Mobile : 0779967122
>>
>
>
>
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0717429601*
>
>


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


Re: [Dev] Get geolocation based on ip returns null country

2017-06-06 Thread Lakshman Udayakantha
Hi Megala,

No. That is not the issue. When I use online services [1] I can see the
country.

[1] https://www.iplocation.net/

Thanks,
Lakshman

On Tue, Jun 6, 2017 at 10:04 PM, Megala Uthayakumar <meg...@wso2.com> wrote:

> Hi Lakshman,
>
> "getCountry" method will return empty value if we have used an internal ip
> address. We need to give the public ip address as the parameter. We can get
> the public ip address using following command,
>
> *dig +short myip.opendns.com <http://myip.opendns.com>
> @resolver1.opendns.com <http://resolver1.opendns.com>*
>
> Thanks
>
> Regards,
> Megala
>
>
> On Tue, Jun 6, 2017 at 4:36 PM, Lakshman Udayakantha <lakshm...@wso2.com>
> wrote:
>
>> Hi Tharindu,
>>
>> I tried this feature [1] with the instructions given [2], [3]. Note that
>> I need to check only getCountry method. Below is the steps I have done
>>
>> 1. Created a data source called GEO_LOCATION_DATA and imported CSV files
>> downloaded from given location in [2].
>> 2. Installed following features in DAS 3.1.0.
>>
>>- Analytics Spark Geolocation UDF
>>- Analytics Spark scripts Common
>>- Analytics Spark Useragent
>>
>> 3. Invoked the getCountry method from analytics console in DAS 3.1.0.
>> But it returns an empty country in the console. What am I missing here?
>> Or any hint to troubleshoot. According to the code, it searches for an
>> entry in IP_LOCATION table. but we are not importing data to that table as
>> specified in the doc?
>>
>> [1] https://github.com/wso2/shared-analytics/tree/v1.0.0/com
>> ponents/spark-udf/org.wso2.carbon.analytics.shared.geolocation.udf
>> [2] https://docs.wso2.com/display/AM200/Configuring+Geolocat
>> ion+Based+Statistics
>> [3] http://blog.rukspot.com/2016/10/configure-wso2-das-310-for-w
>> so2-apim.html
>>
>> Thanks,
>> Lakshman.
>>
>> --
>> 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
>>
>>
>
>
> --
> Megala Uthayakumar
>
> Software Engineer
> Mobile : 0779967122
>



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


[Dev] Get geolocation based on ip returns null country

2017-06-06 Thread Lakshman Udayakantha
Hi Tharindu,

I tried this feature [1] with the instructions given [2], [3]. Note that I
need to check only getCountry method. Below is the steps I have done

1. Created a data source called GEO_LOCATION_DATA and imported CSV files
downloaded from given location in [2].
2. Installed following features in DAS 3.1.0.

   - Analytics Spark Geolocation UDF
   - Analytics Spark scripts Common
   - Analytics Spark Useragent

3. Invoked the getCountry method from analytics console in DAS 3.1.0.
But it returns an empty country in the console. What am I missing here? Or
any hint to troubleshoot. According to the code, it searches for an entry
in IP_LOCATION table. but we are not importing data to that table as
specified in the doc?

[1]
https://github.com/wso2/shared-analytics/tree/v1.0.0/components/spark-udf/org.wso2.carbon.analytics.shared.geolocation.udf
[2]
https://docs.wso2.com/display/AM200/Configuring+Geolocation+Based+Statistics
[3]
http://blog.rukspot.com/2016/10/configure-wso2-das-310-for-wso2-apim.html

Thanks,
Lakshman.

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


Re: [Dev] [Dashboard] Refactoring dashboard API patterns

2017-05-31 Thread Lakshman Udayakantha
Hi Lasantha,

On Wed, May 31, 2017 at 1:57 PM, Lasantha Samarakoon <lasant...@wso2.com>
wrote:

> ​​Hi all,
>
> ATM Dashboard UUF component is exposing set of REST APIs to perform CRUD
> operations on the artifacts such as dashboards, layouts and widgets. But
> these APIs don't have proper URL patterns associated, hence we are planning
> on refactoring these APIs [1]. We had a offline discussion regarding this
> and came-up with the following URLs.
>
> *Dashboards:*
>
>- GET apis/dashboards
>Returns list of dashboards.
>
>- GET apis/dashboards/{id}
>Returns specific dashboard identified by Id.
>
>- POST apis/dashboards
>Create new dashboard.
>
>- PUT apis/dashboards/{id}
>Update existing dashboard identified by Id.
>
> Is this a partial update or complete replace?

>
>-
>- DELETE apis/dashboards/{id}
>Delete existing dashboard identified by Id.
>
> *Layouts:*
>
>- GET apis/layouts
>Returns list of layouts.
>
> *Widgets:*
>
>- GET apis/widgets/
>Returns list of widgets.
>
>- GET apis/widgets/{id}/conf
>Returns configurations of a widget identified by Id.
>
>- GET apis/widgets/{id}/thumbnail
>Returns thumbnail of a widget identified by Id.
>
>
> Appreciate your feedback on this.
>
> [1] https://github.com/wso2/carbon-dashboards/issues/496
>
>
> Thanks,
>
> *Lasantha Samarakoon* | Software Engineer
> WSO2, Inc.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 (71) 214 1576 <+94%2071%20214%201576>
> Email:  lasant...@wso2.com
> Web:www.wso2.com
>
> lean . enterprise . middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] [WSO2-IoTS] What is correct tag or branch of cdmf-agent-android for use with v3.0.0

2017-05-23 Thread Lakshman Udayakantha
Hi Clovis,

Since error says 500 internal server error, you have to look at the
wso2carbon.log for server errors.

Thanks,
Lakshman

On Wed, May 24, 2017 at 6:12 AM, Clovis Wichoski <clo...@neoinix.com.br>
wrote:

> Hi Lakshman,
>
> I reviewed and can build better with version tag 3.1.7 of the agent, the
> problem before was about SSLv3 disabled on server, then on agent I forced
> to use a lower version. Now I can do enrollment, but cant get the
> notifications from server, debuging on device I get follow error:
>
> 05-23 20:41:43.474 2692-2692/org.wso2.iot.agent E/APIController:
> {"code":500,"message":"Internal server error.","description":"The server
> encountered an internal error. Please contact administrator.","moreInfo":"",
> "error":[]}
> 05-23 20:41:43.474 2692-2692/org.wso2.iot.agent E/APIController:
> com.android.volley.ServerError
>
> I tried to enable some DEBUG log, but cant find a usefull message, appears
> to be a problem at server side now on 
> org.wso2.carbon.device.mgt.mobile.android.api
> plugin.
>
> on Server I got:
> ==> core/repository/logs/http_access_2017-05-23.log <==
> 10.0.0.4 - - [23/May/2017:20:52:11 -0300] "PUT
> /api/device-mgt/android/v1.0/devices/17e2fad557210525/pending-operations
> HTTP/1.1" 500 160 "-" "Synapse-PT-HttpComponents-NIO"
> 10.0.0.4 - - [23/May/2017:20:54:30 -0300] "PUT
> /api/device-mgt/android/v1.0/devices/17e2fad557210525/pending-operations
> HTTP/1.1" 500 160 "-" "Synapse-PT-HttpComponents-NIO"
> 10.0.0.4 - - [23/May/2017:20:55:50 -0300] "POST /oauth2/token HTTP/1.1"
> 400 87 "-" "Synapse-PT-HttpComponents-NIO"
> 10.0.0.4 - - [23/May/2017:20:56:09 -0300] "POST 
> /services/APIKeyValidationService
> HTTP/1.1" 200 3408 "-" "Axis2"
> 10.0.0.4 - - [23/May/2017:20:56:09 -0300] "PUT
> /api/device-mgt/android/v1.0/devices/17e2fad557210525/pending-operations
> HTTP/1.1" 500 160 "-" "Synapse-PT-HttpComponents-NIO"
> 10.0.0.4 - - [23/May/2017:20:56:49 -0300] "PUT
> /api/device-mgt/android/v1.0/devices/17e2fad557210525/pending-operations
> HTTP/1.1" 500 160 "-" "Synapse-PT-HttpComponents-NIO"
> 10.0.0.4 - - [23/May/2017:20:58:20 -0300] "PUT
> /api/device-mgt/android/v1.0/devices/17e2fad557210525/pending-operations
> HTTP/1.1" 500 160 "-" "Synapse-PT-HttpComponents-NIO"
> 10.0.0.4 - - [23/May/2017:20:59:59 -0300] "POST 
> /services/APIKeyValidationService
> HTTP/1.1" 200 7832 "-" "Axis2"
> 10.0.0.4 - - [23/May/2017:20:59:59 -0300] "PUT
> /api/device-mgt/android/v1.0/devices/17e2fad557210525/pending-operations
> HTTP/1.1" 500 160 "-" "Synapse-PT-HttpComponents-NIO"
> 10.0.0.4 - - [23/May/2017:21:00:50 -0300] "POST /oauth2/token HTTP/1.1"
> 400 87 "-" "Synapse-PT-HttpComponents-NIO"
> 10.0.0.4 - - [23/May/2017:21:02:11 -0300] "PUT
> /api/device-mgt/android/v1.0/devices/17e2fad557210525/pending-operations
> HTTP/1.1" 500 160 "-" "Synapse-PT-HttpComponents-NIO"
> 10.0.0.4 - - [23/May/2017:21:03:46 -0300] "PUT
> /api/device-mgt/android/v1.0/devices/17e2fad557210525/pending-operations
> HTTP/1.1" 500 160 "-" "Synapse-PT-HttpComponents-NIO"
> 10.0.0.4 - - [23/May/2017:21:04:12 -0300] "PUT
> /api/device-mgt/android/v1.0/devices/17e2fad557210525/pending-operations
> HTTP/1.1" 500 160 "-" "Synapse-PT-HttpComponents-NIO"
> 10.0.0.4 - - [23/May/2017:21:05:52 -0300] "POST /oauth2/token HTTP/1.1"
> 400 87 "-" "Synapse-PT-HttpComponents-NIO"
> 10.0.0.4 - - [23/May/2017:21:06:01 -0300] "PUT
> /api/device-mgt/android/v1.0/devices/17e2fad557210525/pending-operations
> HTTP/1.1" 500 160 "-" "Synapse-PT-HttpComponents-NIO"
>
> Now I will try to check how to figure out why got these errors.
>
> Best regards.
>
> Clóvis
>
>
>
> Em 22 de mai de 2017 05:24, "Lakshman Udayakantha" <lakshm...@wso2.com>
> escreveu:
>
> Hi Clovis,
>
> According to the compatibility doc [1], IOT 3.0.0 should work with agent
> 2.0.0 version. Could you check the tag and build and see? Anyway, can you
> see any error in log (server log or logcat)?
>
> [1] https://docs.wso2.com/display/IoTS300/WSO2+IoT+Server+an
> d+Agent+Compatibility
>
> Thanks,
> Lakshman.
>
> On Sun, May 21, 2017 at 7:41 PM, Clovis Wichoski <clo...@neoinix.com.br>
> wrote:
>
>>
>> Hi,
>>
>> I'm try t

Re: [Dev] [DEV] [BPS] BPS 3.5.0. signals

2017-05-22 Thread Lakshman Udayakantha
On Mon, May 22, 2017 at 6:22 PM, Igor Golovko <igor.golo...@eleks.com>
wrote:

> Thanks for a quick answer.
>
>
>
> We use BPS 3.5.0 because of kubernetes support. But as far as I know BPS
> 3.6.0 doesn’t support kubernetes.
>
> Do you plan to fix BPS 3.5.0. signals or maybe you plan add kubernetes
> support on 3.6.0 ?
>

How you build the kubernets artifacts?

Thanks,
Lakshman.

>
>
> Thanks,
>
> Igor Golovko
>
>
>
>
>
> *From:* Lakshman Udayakantha [mailto:lakshm...@wso2.com]
> *Sent:* Monday, May 22, 2017 3:11 PM
> *To:* Igor Golovko <igor.golo...@eleks.com>
> *Cc:* dev@wso2.org; Hasitha Aravinda <hasi...@wso2.com>; Amal Gunatilake <
> am...@wso2.com>; Vinod Kavinda <vi...@wso2.com>; Isuru Wijesinghe <
> isur...@ws02.com>; Milinda Perera <milin...@wso2.com>
> *Subject:* Re: [Dev] [DEV] [BPS] BPS 3.5.0. signals
>
>
>
> Hi Igor,
>
>
>
> You can migrate to the 3.6.0 by following migration doc [1] version since
> this issue is resolved there.
>
>
>
> [1] https://docs.wso2.com/display/BPS360/Upgrading+to+
> the+Latest+BPS+Version
>
>
>
> Thanks,
>
> Lakshman.
>
>
>
> On Mon, May 22, 2017 at 5:34 PM, Lakshman Udayakantha <lakshm...@wso2.com>
> wrote:
>
> [Adding BPS folks]
>
>
>
> On Mon, May 22, 2017 at 5:26 PM, Igor Golovko <igor.golo...@eleks.com>
> wrote:
>
> Dear dev team, we have a problem with wso2 BPS 3.5.0.
>
> We have bps-process with signal boundary events.
>
> We try to activate request and when send request from rest api, this
> signal events didn’t activate.
>
> We send next request:
>
>
>
>
>
> Response:
>
> P.S In version 3.6.0 of WSO2 BPS, that works well.
>
>
>
> Best regards,
>
> Igor Golovko
>
>
>
>
> --
>
>
> This e-mail may contain privileged and confidential information. If you
> are not the intended recipient, be aware that any use, disclosure, copying
> or distribution of this e-mail or any attachments is prohibited. If you
> have received this e-mail in error, please notify us immediately by
> returning it to the sender and delete this copy from your system. Thank you.
>
>
> --
>
>
> This e-mail may contain privileged and confidential information. If you
> are not the intended recipient, be aware that any use, disclosure, copying
> or distribution of this e-mail or any attachments is prohibited. If you
> have received this e-mail in error, please notify us immediately by
> returning it to the sender and delete this copy from your system. Thank you.
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
>
>
> --
>
> Lakshman Udayakantha
>
> WSO2 Inc. www.wso2.com
>
> lean.enterprise.middleware
>
> Mobile: *0717429601*
>
>
>
>
>
>
>
> --
>
> Lakshman Udayakantha
>
> WSO2 Inc. www.wso2.com
>
> lean.enterprise.middleware
>
> Mobile: *0717429601*
>
>
>
> --
>
> This e-mail may contain privileged and confidential information. If you
> are not the intended recipient, be aware that any use, disclosure, copying
> or distribution of this e-mail or any attachments is prohibited. If you
> have received this e-mail in error, please notify us immediately by
> returning it to the sender and delete this copy from your system. Thank you.
>



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


Re: [Dev] [DEV] [BPS] BPS 3.5.0. signals

2017-05-22 Thread Lakshman Udayakantha
Hi Igor,

You can migrate to the 3.6.0 by following migration doc [1] version since
this issue is resolved there.

[1] https://docs.wso2.com/display/BPS360/Upgrading+to+the+Latest+BPS+Version

Thanks,
Lakshman.

On Mon, May 22, 2017 at 5:34 PM, Lakshman Udayakantha <lakshm...@wso2.com>
wrote:

> [Adding BPS folks]
>
> On Mon, May 22, 2017 at 5:26 PM, Igor Golovko <igor.golo...@eleks.com>
> wrote:
>
>> Dear dev team, we have a problem with wso2 BPS 3.5.0.
>>
>> We have bps-process with signal boundary events.
>>
>> We try to activate request and when send request from rest api, this
>> signal events didn’t activate.
>>
>> We send next request:
>>
>>
>>
>>
>>
>> Response:
>>
>> P.S In version 3.6.0 of WSO2 BPS, that works well.
>>
>>
>>
>> Best regards,
>>
>> Igor Golovko
>>
>>
>>
>>
>> --
>>
>>
>> This e-mail may contain privileged and confidential information. If you
>> are not the intended recipient, be aware that any use, disclosure, copying
>> or distribution of this e-mail or any attachments is prohibited. If you
>> have received this e-mail in error, please notify us immediately by
>> returning it to the sender and delete this copy from your system. Thank you.
>>
>> --
>>
>> This e-mail may contain privileged and confidential information. If you
>> are not the intended recipient, be aware that any use, disclosure, copying
>> or distribution of this e-mail or any attachments is prohibited. If you
>> have received this e-mail in error, please notify us immediately by
>> returning it to the sender and delete this copy from your system. Thank you.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0717429601*
>
>


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


Re: [Dev] [DEV] [BPS] BPS 3.5.0. signals

2017-05-22 Thread Lakshman Udayakantha
[Adding BPS folks]

On Mon, May 22, 2017 at 5:26 PM, Igor Golovko <igor.golo...@eleks.com>
wrote:

> Dear dev team, we have a problem with wso2 BPS 3.5.0.
>
> We have bps-process with signal boundary events.
>
> We try to activate request and when send request from rest api, this
> signal events didn’t activate.
>
> We send next request:
>
>
>
>
>
> Response:
>
> P.S In version 3.6.0 of WSO2 BPS, that works well.
>
>
>
> Best regards,
>
> Igor Golovko
>
>
>
>
> --
>
>
> This e-mail may contain privileged and confidential information. If you
> are not the intended recipient, be aware that any use, disclosure, copying
> or distribution of this e-mail or any attachments is prohibited. If you
> have received this e-mail in error, please notify us immediately by
> returning it to the sender and delete this copy from your system. Thank you.
>
> --
>
> This e-mail may contain privileged and confidential information. If you
> are not the intended recipient, be aware that any use, disclosure, copying
> or distribution of this e-mail or any attachments is prohibited. If you
> have received this e-mail in error, please notify us immediately by
> returning it to the sender and delete this copy from your system. Thank you.
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] [WSO2-IoTS] What is correct tag or branch of cdmf-agent-android for use with v3.0.0

2017-05-22 Thread Lakshman Udayakantha
Hi Clovis,

According to the compatibility doc [1], IOT 3.0.0 should work with agent
2.0.0 version. Could you check the tag and build and see? Anyway, can you
see any error in log (server log or logcat)?

[1]
https://docs.wso2.com/display/IoTS300/WSO2+IoT+Server+and+Agent+Compatibility

Thanks,
Lakshman.

On Sun, May 21, 2017 at 7:41 PM, Clovis Wichoski <clo...@neoinix.com.br>
wrote:

>
> Hi,
>
> I'm try to configure and test with Sansung Tablet SM-T560 that uses
> Android Kitkat 4.4.4, when I try the application on emulator with same
> version all works fine, but when use with physical device dont get
> enrollment, I'm compiling the sources from git on branch release-2.0.0 (as
> I see that some changes in APIs dont worked with new branches) that work
> with version 3.0.0 of WSO2 IoTS.
>
> Can be any specific issue with physical devices that differ from emulator?
> Any clue? Maybe using another branch or tag?
>
> Best regards
>
> Clóvis
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] [IS] Vulnerabilities detected through Dependency Check

2017-05-22 Thread Lakshman Udayakantha
Hi Hanen,

You can go through the security advisory docs[1] and apply the patches
given. These fixes may be already available in these patches.

[1] https://docs.wso2.com/display/Security/Security+Advisories

Thanks,
Lakshman

On Mon, May 22, 2017 at 1:28 PM, Hanen Ben Rhouma <hanen...@gmail.com>
wrote:

> Hello guys,
>
> I scanned WSO2 IS with Dependency Check 1.4.5 and the report shows many
> vulnerabilities, I raised a Jira
> <https://wso2.org/jira/browse/IDENTITY-5960> for this concern, could you
> please let me know if there is any upcoming actions like dependencies
> version upgrade or libraries stack change. It's important to validate the
> security level for IS in order to fully adopt the solution and sign a
> support contract.
>
>
> Regards,
> Hanen
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] [DAS]CApp deployment fails due to spark script

2017-05-19 Thread Lakshman Udayakantha
Hi Sajith,

As per the offline discussion with Kishanthan, This is ok, If your insert
query insert data according to your logic properly.

Thanks,
Lakshman.

On Fri, May 19, 2017 at 1:07 PM, Sajith Abeywardhana <
sabeywardh...@mitrai.com> wrote:

> Hi Lakshman,
>
> Thanks for the reply.
> But I do so the parser may parse the xml file without any error. Does it
> mean that the spark engine will be executing the spark query correctly?
>
> Thanks,
> Sajith.
>
> On 19 May 2017 at 12:13, Lakshman Udayakantha <lakshm...@wso2.com> wrote:
>
>> Hi Sajith,
>>
>> I suspect that It is because of greater than sign and lesser than sign in
>> insert queries. Did you try out using CDATA between those queries because
>> text between CDATA will be considered as text, not as tags. If that is the
>> case there should be a way to escaping those characters.
>>
>> Thanks,
>> Lakshman.
>>
>> On Fri, May 19, 2017 at 11:48 AM, Sajith Abeywardhana <
>> sabeywardh...@mitrai.com> wrote:
>>
>>> Hi DAS Team,
>>>
>>> I'm using wso2das-3.1.0 and here[1] is my spark script. When I bundle
>>> this script to a capp, and when I'm deploying that capp, the capp
>>> deployment fails. Error log printed as this[2].
>>> I can deploy the capp if I build the capp without two insert queries in
>>> the script. But I can edit and save the script using carbon console with
>>> two insert scripts. Am I missing anything when I deploying the capp?
>>>
>>>
>>>
>>> [1]
>>> CREATE TEMPORARY TABLE device_update_notification USING
>>> org.wso2.carbon.analytics.spark.event.EventStreamProvider OPTIONS
>>> (receiverURL "tcp://localhost:7611", username "admin", password "admin",
>>> streamName "generated_notifications_stream", version "1.0.0", payload
>>> "bs_id string, alert string");
>>>
>>> CREATE TEMPORARY TABLE sensor_data USING CarbonAnalytics OPTIONS
>>> (tableName "PROCESSED_GRAMPA_EVENTS_STREAM",
>>> schema "BS_ID STRING, PIR INT, A_T DOUBLE, SOUND INT, LIGHT INT,
>>> EVENT_TIME LONG, FROM_TIME LONG, TO_TIME LONG, _timestamp LONG");
>>>
>>> INSERT OVERWRITE TABLE device_update_notification
>>> SELECT bs_id, alert FROM (
>>> SELECT BS_ID AS bs_id, 'offline' as alert, MAX(_timestamp) as event_time
>>> FROM sensor_data
>>> GROUP BY BS_ID
>>> ) as max_time_table
>>> WHERE (unix_timestamp() - event_time) > 900;
>>>
>>> INSERT OVERWRITE TABLE device_update_notification
>>> SELECT bs_id, alert FROM (
>>> SELECT BS_ID AS bs_id, 'connected' as alert, MAX(_timestamp) as
>>> event_time
>>> FROM sensor_data
>>> GROUP BY BS_ID
>>> ) as max_time_table
>>> WHERE (unix_timestamp() - event_time) < 900;
>>>
>>>
>>> [2]
>>> TID: [-1234] [] [2017-05-19 05:57:01,683] ERROR
>>> {org.wso2.carbon.analytics.spark.core.SparkScriptCAppDeployer} -  Error
>>> while reading the analytics script : /mnt/wso2/wso2das-3.1.0/tmp/ca
>>> rbonapps/-1234/1495173421409kraydel-das-artifacts.car/device_update_spark_script
>>> _1.0.0/device_update_spark_script.xml {org.wso2.carbon.analytics.spa
>>> rk.core.SparkScriptCAppDeployer}
>>> javax.xml.bind.UnmarshalException
>>>  - with linked exception:
>>> [org.xml.sax.SAXParseException: The content of elements must consist of
>>> well-formed character data or markup.]
>>> at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmars
>>> halException(AbstractUnmarshallerImpl.java:335)
>>> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Unmarshall
>>> erImpl.createUnmarshalException(UnmarshallerImpl.java:563)
>>> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Unmarshall
>>> erImpl.unmarshal0(UnmarshallerImpl.java:249)
>>> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Unmarshall
>>> erImpl.unmarshal(UnmarshallerImpl.java:214)
>>> at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Ab
>>> stractUnmarshallerImpl.java:157)
>>> at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Ab
>>> stractUnmarshallerImpl.java:162)
>>> at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Ab
>>> stractUnmarshallerImpl.java:171)
>>> at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Ab
>>> stractUnmarshallerImpl.java:189)
>>> 

Re: [Dev] [DAS]CApp deployment fails due to spark script

2017-05-19 Thread Lakshman Udayakantha
r.java:180)
> at java.util.concurrent.ScheduledThreadPoolExecutor$
> ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: javax.xml.bind.UnmarshalException
>  - with linked exception:
> [org.xml.sax.SAXParseException: The content of elements must consist of
> well-formed character data or markup.]
> at javax.xml.bind.helpers.AbstractUnmarshallerImpl.
> createUnmarshalException(AbstractUnmarshallerImpl.java:335)
> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.
> UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:563)
> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.
> UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:249)
> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.
> UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:214)
> at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(
> AbstractUnmarshallerImpl.java:157)
> at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(
> AbstractUnmarshallerImpl.java:162)
> at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(
> AbstractUnmarshallerImpl.java:171)
> at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(
> AbstractUnmarshallerImpl.java:189)
> at org.wso2.carbon.analytics.spark.core.SparkScriptCAppDeployer.
> deploy(SparkScriptCAppDeployer.java:97)
> ... 20 more
> Caused by: org.xml.sax.SAXParseException: The content of elements must
> consist of well-formed character data or markup.
> at org.apache.xerces.util.ErrorHandlerWrapper.
> createSAXParseException(Unknown Source)
> at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
> Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
> at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
> at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
> Source)
> at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
> $FragmentContentDispatcher.dispatch(Unknown Source)
> at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
> at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)
> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.
> UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:243)
> ... 26 more
>
> Thanks,
> Sajith.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


[Dev] Basic Authentication will skip for publishing to HTTP endpoint

2017-05-04 Thread Lakshman Udayakantha
Hi Analytics team,

I have come across the $subject while publishing data to DAS 3.1.0. I was
publishing data to an http event receiver in DAS. It seems like
exposedTransport "all" case, it checks for the request has been made with a
secure channel [1]. So basic auth will work only in https case. Created an
issue [2] for this.

[1]
https://github.com/wso2/carbon-analytics-common/blob/5.1.x/components/event-receiver/event-input-adapters/org.wso2.carbon.event.input.adapter.http/src/main/java/org/wso2/carbon/event/input/adapter/http/HTTPMessageServlet.java#L161
[2] https://github.com/wso2/carbon-analytics-common/issues/339

Thanks,
Lakshman.

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


[Dev] [DAS] Even though data publish failed 200 response is getting

2017-05-03 Thread Lakshman Udayakantha
Hi DAS team,

We have a scenario in which data publishing failed because of incorrect
data. We are using 200 ok for health check in data publishing. So even
though data was not published, we are getting 200 ok responses. In that
case, how do we differ data successfully published case from data publish
fail case?

Thanks,
Lakshman

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


Re: [Dev] WSO2 Jaggery Project

2017-04-25 Thread Lakshman Udayakantha
[Adding folks from jaggery team]

On Tue, Apr 25, 2017 at 1:39 PM, 김대경 <dkg@gmail.com> wrote:

> Hi
>
> Is the Jaggery project under control?
>
> I created issue and pull request in github, and issue in jira about
> jaggery project.
>
> But no one read issue and project leader who is default assignee is not an
> active user...
>
> Will my issue be handled??
>
> Thank you...
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] [C5][Secure-Vault] Resolve function gives empty char array for alias

2017-04-23 Thread Lakshman Udayakantha
Hi,

Since cipher object is created from JKS file and doCipher function works
properly for wso2carbon.jks file in carbon-secvault repo. I have added the
same wso2carbon.jks file from carbon-secvault repo to the kernel. After
adding jks file secure vault OSGi service return correct decrypted
password. So we can go with that. right?

Thanks,
Lakshman

On Fri, Apr 21, 2017 at 6:10 PM, Lakshman Udayakantha <lakshm...@wso2.com>
wrote:

> Hi JayangaD,
>
> For issue [1], While debugging the code, I found that
> JKSBasedCipherProvider.doCipher(Cipher cipher, byte[] original) method is
> received the same byte array when I decrypt same encrypted string for
> both osgi service and cipher tool command line argument. But this returns
> an empty array for osgi service and correct decrypted value for command
> line arguments case. So the problem may be with the cipher object used. In
> case how I defer cipher object used for both scenarios? Or any idea to
> narrow down the issue?
>
> [1] https://github.com/wso2/carbon-secvault/issues/32
>
> Thanks,
> Lakshman.
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0717429601*
>
>


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


[Dev] [C5][Secure-Vault] Resolve function gives empty char array for alias

2017-04-21 Thread Lakshman Udayakantha
Hi JayangaD,

For issue [1], While debugging the code, I found that
JKSBasedCipherProvider.doCipher(Cipher cipher, byte[] original) method is
received the same byte array when I decrypt same encrypted string for
both osgi service and cipher tool command line argument. But this returns
an empty array for osgi service and correct decrypted value for command
line arguments case. So the problem may be with the cipher object used. In
case how I defer cipher object used for both scenarios? Or any idea to
narrow down the issue?

[1] https://github.com/wso2/carbon-secvault/issues/32

Thanks,
Lakshman.
-- 
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


[Dev] [C5][OSGI-Tests] ExamReactorStrategy

2017-04-18 Thread Lakshman Udayakantha
Hi,

We have used PerClass ExamReactorStrategy as the default strategy. This
means test distribution will start for every class in the test suite. Is
there any particular reason to select that strategy? This will increase the
build time when the test class space grows. So we can go with PerSuite as
the default strategy to reduce the build time. WDYT?

Thanks,
Lakshman.

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


[Dev] OSGI tests for secure vault and configuration provider

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


[Dev] [APIM] Read only source view not allowed to edit single API

2017-04-15 Thread Lakshman Udayakantha
Hi Folks,

I was trying to add a custom handler to a single API in API Manager.
According to [1], we can edit the source view of API and add customer
handler in handler section. Anyway, I can't do that in APIM 2.0.0 because
source view is read-only. This can be done in earlier versions like 1.10.0.
Any way we can edit API file from the file system and engage the handler.
What is the reason for making ESB source view read only? If it should be
read only then we have to update the documentation and point a way to add
handlers for single API as well.

[1] https://docs.wso2.com/display/AM200/Writing+Custom+Handlers

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


Re: [Dev] [Carbon-Utils] Carbon Utils

2017-04-05 Thread Lakshman Udayakantha
As Thusitha pointed out in [1], Can't we use it from kernel feature?

On Wed, Apr 5, 2017 at 4:28 PM, Vidura Nanayakkara <vidu...@wso2.com> wrote:

> Hi All,
>
> We have moved carbon utils out of carbon kernel to a separate repo [1]
> <https://github.com/wso2/carbon-utils>. However, there is no carbon utils
> feature implemented for carbon utils yet. Since we are using carbon utils
> dependency inside the carbon kernel, IMO we should create a carbon utils
> feature as well.
> We also will be needing this feature when building a carbon kernel
> distribution and else where required.
>
> WDYT?
>
> [1] Carbon Utils <https://github.com/wso2/carbon-utils>
>
> Best Regards,
>
> *Vidura Nanayakkara*
> Software Engineer
>
> Email : vidu...@wso2.com
> Mobile : +94 (0) 717 919277 <+94%2071%20791%209277>
> Web : http://wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] [VOTE] Release WSO2 MSF4J 2.2.0 RC1

2017-03-19 Thread Lakshman Udayakantha
I have tested the following samples as well.

1. http-session
2. fileserver

[x] Stable - go ahead and release

Thanks,
Lakshman

On Mon, Mar 20, 2017 at 9:17 AM, Lakshman Udayakantha <lakshm...@wso2.com>
wrote:

> I have tested the following samples.
>
> 1. basicauth-security
> 2. jpa
> 3. lifecycle
> 4. spring profile
> 5. template
>
> [x] Stable - go ahead and release
>
> Thanks,
>
> On Thu, Mar 16, 2017 at 5:46 PM, Danesh Kuruppu <dan...@wso2.com> wrote:
>
>> Hi Devs,
>>
>> This is the 1st Release Candidate of WSO2 MSF4J(Microservices Framework
>> for Java) 2.2.0.
>>
>> Please download, test the framework and vote. The vote will be open for
>> 72 hours or as needed.
>> Refer to GitHub readmes for guides.
>>
>> * Source and binary distribution files:*
>> <https://github.com/wso2/msf4j/releases/tag/v2.1.0-rc1>
>> https://github.com/wso2/msf4j/releases/tag/v2.2.0-rc1
>>
>>
>> *Maven staging repository:*https://maven.wso2.org/nexus/c
>> ontent/repositories/orgwso2msf4j-1013
>>
>> *The tag to be voted upon:*
>> https://github.com/wso2/msf4j/tree/v2.2.0-rc1
>>
>>
>> [ ] Broken - do not release (explain why)
>> [ ] Stable - go ahead and release
>>
>> Thank you,
>> Platform Team
>>
>>
>> --
>>
>> *Danesh Kuruppu*
>> Senior Software Engineer | WSO2
>>
>> Email: dan...@wso2.com
>> Mobile: +94 (77) 1690552 <+94%2077%20169%200552>
>> Web: WSO2 Inc <https://wso2.com/signature>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0717429601*
>
>


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


Re: [Dev] [VOTE] Release WSO2 MSF4J 2.2.0 RC1

2017-03-19 Thread Lakshman Udayakantha
I have tested the following samples.

1. basicauth-security
2. jpa
3. lifecycle
4. spring profile
5. template

[x] Stable - go ahead and release

Thanks,

On Thu, Mar 16, 2017 at 5:46 PM, Danesh Kuruppu <dan...@wso2.com> wrote:

> Hi Devs,
>
> This is the 1st Release Candidate of WSO2 MSF4J(Microservices Framework
> for Java) 2.2.0.
>
> Please download, test the framework and vote. The vote will be open for
> 72 hours or as needed.
> Refer to GitHub readmes for guides.
>
> * Source and binary distribution files:*
> <https://github.com/wso2/msf4j/releases/tag/v2.1.0-rc1>
> https://github.com/wso2/msf4j/releases/tag/v2.2.0-rc1
>
>
> *Maven staging repository:*https://maven.wso2.org/nexus/
> content/repositories/orgwso2msf4j-1013
>
> *The tag to be voted upon:*
> https://github.com/wso2/msf4j/tree/v2.2.0-rc1
>
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
> Thank you,
> Platform Team
>
>
> --
>
> *Danesh Kuruppu*
> Senior Software Engineer | WSO2
>
> Email: dan...@wso2.com
> Mobile: +94 (77) 1690552 <+94%2077%20169%200552>
> Web: WSO2 Inc <https://wso2.com/signature>
>
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] Carbon datasource for Hadoop

2017-03-06 Thread Lakshman Udayakantha
Hi Gokul,

Added some comments there.

Thanks,

On Mon, Mar 6, 2017 at 3:32 PM, Gokul Balakrishnan <go...@wso2.com> wrote:

> Hi Platform team,
>
> I've implemented $subject for use in the DAS data layer, where we have a
> requirement for parsing datasources in the Hadoop Configuration format.
> This is a rewrite of the existing component [1] to support C5 APIs.
>
> I've sent the PR to carbon-datasources at [2]. Could you take a look
> please?
>
> [1] https://github.com/wso2/carbon-data/tree/master/
> components/data-sources/org.wso2.carbon.datasource.reader.hadoop
>
> [2] https://github.com/wso2/carbon-datasources/pull/31
>
> Thanks,
>
> --
> Gokul Balakrishnan
> Senior Software Engineer,
> WSO2, Inc. http://wso2.com
> M +94 77 5935 789 | +44 7563 570502 <+44%207563%20570502>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] Surefire plugin failure with OSGI test

2017-02-15 Thread Lakshman Udayakantha
Hi Lahiru,

Could you share the full stack trace? There may be a better reason in
upside of the log.

Thanks,
Lakshman

On Wed, Feb 15, 2017 at 3:49 PM, Lahiru Manohara <lahir...@wso2.com> wrote:

> Hi,
>
> I am getting following error while trying to build the
> carbon-datasource with test after migrating to the pax exam changes [1].
>
> [ERROR] Failed to execute goal org.apache.maven.plugins:
> maven-surefire-plugin:2.19.1:test (default-test) on project
> carbon-datasources-osgi-tests: Execution default-test of goal
> org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: The
> forked VM terminated without properly saying goodbye. VM crash or
> System.exit called?
> [ERROR] Command was /bin/sh -c cd /home/wso2/repo/carbon-repos/
> carbon-datasources/tests/osgi-tests && /usr/lib/jvm/java-8-oracle/jre/bin/java
> '-javaagent:/home/lahiru/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.
> 201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.
> jar=destfile=/home/wso2/repo/carbon-repos/carbon-
> datasources/tests/osgi-tests/target/jacoco.exec,includes=org.wso2.carbon*'
> -jar /home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-
> tests/target/surefire/surefirebooter8086323750252961380.jar
> /home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-
> tests/target/surefire/surefire1231055676969041745tmp
> /home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-
> tests/target/surefire/surefire_03949232142509674497tmp
>
> [1]. https://github.com/wso2/carbon-kernel/tree/master/tests/osgi-tests
>
> Best Regards,
> --
> *Lahiru Manohara*
> *Software Engineer*
> Mobile: +94716561576
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] The correct way to switch the Tenant in a thread pool?

2017-02-10 Thread Lakshman Udayakantha
On Fri, Feb 10, 2017 at 5:14 PM, wenxing zheng <wenxing.zh...@gmail.com>
wrote:

>
> Thanks to Lakshman.
>
> I need to do the verification again as I remembered I follow that way
> before, but it didn't always work.
>
> So the CarbonContext is per thread? and we can do the switch of the tenant
> flow freely?
>

You can check this yourself by printing thread id when tenant flow start
method called.

Thread.currentThread().getId();


Thanks,

Lakshman


> On Fri, Feb 10, 2017 at 7:35 PM, Lakshman Udayakantha <lakshm...@wso2.com>
> wrote:
>
>> Hi wenxing,
>>
>> Did you try out switching tenant flow mentioned in documentation [1]?
>>
>> [1] https://docs.wso2.com/display/Carbon420/CarbonContext+
>> API#CarbonContextAPI-Switchingtenantflows
>>
>> Thanks,
>> Lakshman.
>>
>> On Fri, Feb 10, 2017 at 4:25 PM, wenxing zheng <wenxing.zh...@gmail.com>
>> wrote:
>>
>>> Hi Experts,
>>>
>>> please kindly advice as it really blocks our release.
>>>
>>> Thanks again, Wenxing
>>>
>>> On Fri, Feb 10, 2017 at 1:11 PM, wenxing zheng <wenxing.zh...@gmail.com>
>>> wrote:
>>>
>>>> Appreciated for any advice as I need to find the way a.s.a.p so that we
>>>> don't block the release.
>>>>
>>>> Kind Regards, Wenxing
>>>>
>>>> On Fri, Feb 10, 2017 at 12:05 PM, wenxing zheng <
>>>> wenxing.zh...@gmail.com> wrote:
>>>>
>>>>> Dear all,
>>>>>
>>>>> I have introduced the Quartz Scheduler into our application based on
>>>>> AS 5.3.0. Now we met with a situation like the following:
>>>>>
>>>>>- Quartz Scheduler will start up a Thread pool to run the Job
>>>>>being scheduled
>>>>>- Tenant user may schedule its own job with JobContext, like:
>>>>>TenantID, TenantDomain and CurrentUser
>>>>>
>>>>> During the execution of the job, we need to switch from one tenant to
>>>>> another one, what's the correct way to switch?
>>>>>
>>>>> Thanks, Wenxing
>>>>>
>>>>
>>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0717429601*
>>
>>
>


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


Re: [Dev] The correct way to switch the Tenant in a thread pool?

2017-02-10 Thread Lakshman Udayakantha
Hi wenxing,

Did you try out switching tenant flow mentioned in documentation [1]?

[1]
https://docs.wso2.com/display/Carbon420/CarbonContext+API#CarbonContextAPI-Switchingtenantflows

Thanks,
Lakshman.

On Fri, Feb 10, 2017 at 4:25 PM, wenxing zheng <wenxing.zh...@gmail.com>
wrote:

> Hi Experts,
>
> please kindly advice as it really blocks our release.
>
> Thanks again, Wenxing
>
> On Fri, Feb 10, 2017 at 1:11 PM, wenxing zheng <wenxing.zh...@gmail.com>
> wrote:
>
>> Appreciated for any advice as I need to find the way a.s.a.p so that we
>> don't block the release.
>>
>> Kind Regards, Wenxing
>>
>> On Fri, Feb 10, 2017 at 12:05 PM, wenxing zheng <wenxing.zh...@gmail.com>
>> wrote:
>>
>>> Dear all,
>>>
>>> I have introduced the Quartz Scheduler into our application based on AS
>>> 5.3.0. Now we met with a situation like the following:
>>>
>>>- Quartz Scheduler will start up a Thread pool to run the Job being
>>>scheduled
>>>- Tenant user may schedule its own job with JobContext, like:
>>>TenantID, TenantDomain and CurrentUser
>>>
>>> During the execution of the job, we need to switch from one tenant to
>>> another one, what's the correct way to switch?
>>>
>>> Thanks, Wenxing
>>>
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] Introducing onGet, onPost functions for UUF

2017-01-24 Thread Lakshman Udayakantha
Hi Shan,

Shouldn't we add functions like onPut() , onDelete() for other HTTP methods
like PUT, DELETE?

Thanks

On Wed, Jan 25, 2017 at 10:27 AM, Shan Mahanama <sh...@wso2.com> wrote:

> Hi all,
>
> This change has been implemented and available in UUF Core 1.0.0-m11 [1]
> version.
>
> [1] https://github.com/wso2/carbon-uuf/releases/tag/v1.0.0-m11
>
> Thanks,
> Shan.
>
> On Mon, Jan 23, 2017 at 12:37 PM, Shan Mahanama <sh...@wso2.com> wrote:
>
>> Hi all,
>>
>> We are introducing *onGet*(for GET requests), *onPost*(for POST request)
>> server side JS functions to the UUF as discussed in the mail thread [1].
>> Hence the *onRequest* function will be deprecated.
>>
>> function onGet(env) {
>> // do stuff for a GET request, env variable is same as before
>> }
>>
>>
>> function onPost(env) {
>> // do stuff for a POST request, env variable is same as before
>> }
>>
>>
>>- If you are only handling GET requests in the server side, only
>>adding onGet function is enough.
>>- If you are only handling POST requests in the server side, only
>>adding onPost function is enough.
>>- If you are handling both GET and POST requests in the server side,
>>both onGet, onPost functions need to be added.
>>
>> Please note that in the server side JS file, you need to specify* at
>> least one *of these functions. Please refer samples [2] for any
>> clarification.
>>
>> [1] Document onRequest() method in the UUF developer's guide
>> [2] https://github.com/wso2/carbon-uuf/tree/master/samples/
>> apps/org.wso2.carbon.uuf.sample.pets-store.app/src/main/pages
>>
>> Thanks,
>> Shan.
>>
>> --
>> Shan Mahanama
>>
>> Software Engineer, WSO2 Inc. http://wso2.com
>> <http://l.facebook.com/l.php?u=http%3A%2F%2Fwso2.com=gAQEswASa>
>> Email: sh...@wso2.com
>> Mobile: +94 71 2000 498
>>
>>
>>
>
>
> --
> Shan Mahanama
>
> Software Engineer, WSO2 Inc. http://wso2.com
> <http://l.facebook.com/l.php?u=http%3A%2F%2Fwso2.com=gAQEswASa>
> Email: sh...@wso2.com
> Mobile: +94 71 2000 498
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] Error after installed the certs to IOT

2017-01-17 Thread Lakshman Udayakantha
cat.util.net.NioEndpoint$SocketProcessor.
> doRun(NioEndpoint.java:1756)
> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.
> run(NioEndpoint.java:1715)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
> at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(
> TaskThread.java:61)
> at java.lang.Thread.run(Thread.java:745)
> [2017-01-18 11:53:39,400] [IoT-Core]  WARN - APIThrottleHandler Unable to
> find throttling information for resource and http verb. Throttling will not
> apply
> [2017-01-18 11:53:39,403] [IoT-Core]  WARN - APIThrottleHandler Unable to
> find the throttle policy for role.
> [2017-01-18 11:53:39,420] [IoT-Core] ERROR - TargetHandler I/O error: Host
> name verification failed for host : localhost
> javax.net.ssl.SSLException: Host name verification failed for host :
> localhost
> at org.apache.synapse.transport.http.conn.ClientSSLSetupHandler.verify(
> ClientSSLSetupHandler.java:171)
> at org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(
> SSLIOSession.java:308)
> at org.apache.http.nio.reactor.ssl.SSLIOSession.outboundTransport(
> SSLIOSession.java:451)
> at org.apache.http.impl.nio.reactor.AbstractIODispatch.outputReady(
> AbstractIODispatch.java:152)
> at org.apache.http.impl.nio.reactor.BaseIOReactor.
> writable(BaseIOReactor.java:180)
> at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(
> AbstractIOReactor.java:342)
> at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(
> AbstractIOReactor.java:316)
> at org.apache.http.impl.nio.reactor.AbstractIOReactor.
> execute(AbstractIOReactor.java:277)
> at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(
> BaseIOReactor.java:105)
> at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$
> Worker.run(AbstractMultiworkerIOReactor.java:586)
> at java.lang.Thread.run(Thread.java:745)
>
>
> --
> *Susinda Perera*
> Software Engineer
> B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
> Mobile:(+94)716049075
> Blog: susinda.blogspot.com
> WSO2 Inc. http://wso2.com/
> Tel : 94 11 214 5345 Fax :94 11 2145300
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


[Dev] [C5] Getting server name from configuration for logging

2016-12-19 Thread Lakshman Udayakantha
Hi,

I have added PR[1] for this. Or other possible solutions would be

1. We can pass server name to logServerStartupTime itself from where
the logServerStartupTime() called.

2. Create a server runtime instance in DataHolder object and populate
it when the bundle activate and use that instance to get the server
name.

What is the better way to handle this?

[1] https://github.com/wso2/carbon-kernel/pull/1211/files

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


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

2016-11-23 Thread Lakshman Udayakantha
created [1] for that.

[1] https://wso2.org/jira/browse/DOCUMENTATION-4071

Thanks

On Wed, Nov 23, 2016 at 5:59 PM, Kishanthan Thangarajah
<kishant...@wso2.com> wrote:
> 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
> Twitter - http://twitter.com/kishanthan



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


Re: [Dev] WSO2 EMM Support

2016-10-27 Thread Lakshman Udayakantha
Hi Praveen,

The failing maven plugin added lately by sameera. It seems like this plugin
download at the build time and if it can't download the plugin or it's
configs it will throw this error. Check your connection or firewall. I
assume you have blocked the site which can be downloaded this plugin or
it's configs by your firewall.

Thanks
Lakshman

On Thu, Oct 27, 2016 at 3:41 PM, Praveen J <
praveen.josephmasilam...@nexttechnosolutions.co.in> wrote:

> Hi Madawa,
>
> No, We have tried build on the project root but we got failure in
> distribution module. Please refer the screenshot for your kind reference.
>
> 27.10.2016, 15:04, "Madawa Soysa" <mada...@wso2.com>:
>
> Hi Praveen,
>
> May I know why you are trying to build only the distribution module?
>
> Thanks,
> Madawa
>
> On Thu, Oct 27, 2016 at 9:59 AM, Praveen J <praveen.josephmasilamani@
> nexttechnosolutions.co.in> wrote:
>
> Hi All,
>
> Good Day, I'm still awaiting for your response for my previous mail. And
> regarding product-emm build, As per your suggestion we have used Java
> version 1.7_79 and Maven version 3.0.5 for product build.
>
> But we have faced same issue in MDM - Distribution please refer the
> screen[1.png] for your kind reference and let me know why it happens?
>
>
> 26.10.2016, 12:47, "Praveen J" <praveen.josephmasilamani@
> nexttechnosolutions.co.in>:
>
> Hi All,
>
> Good Day, Thanks for your response. We are working based on your
> suggestion and we have some doubts which we have listed below,
>
> 1. Regarding device firmware signing key, As per your documents[1] Is it
> possible to get device firmware signing key from the vendor? Because this
> is a security precaution: anyone could write an app that would run with
> full system access on any device.
>
> But We have tried to build system service app using normal signing key
> just a try. It crashes for every permission and this is expected result. So
> how the other verndor like mobileiron and airwatch achive these things?
>
> 2. Regarding WSO2 Agent app, I like to explain one scenario In my mobile I
> have agent app and some enterprise app installed using MAM. So If I
> uninstall the agent app. what is the status of enterprise app?
>
> Is it possible if I uninstall the agent app the enterprise app also
> uninstall?
>
> Please clarify my doubts.
>
> [1] https://docs.wso2.com/display/EMM220/Integrating+the+
> Android+System+Service+Application
>
> 26.10.2016, 09:39, "Madawa Soysa" <mada...@wso2.com>:
>
> Hi Praveen,
>
> You need to use Java version 1.7_79 (or lower) as per the discussion we
> previously had. Please refer to the discussion I explained why the p2
> profile generation fails. The distribution failure has occurred due to a
> connection problem it seemed. So please check your connection.
>
> When you are building for the first time, you need to download all the
> dependencies to your local maven repository. After that, you can build
> offline using the following command.
> maven clean install -o
>
> Thanks,
> Madawa
>
>
> On Tue, Oct 25, 2016 at 6:49 PM, Lakshman Udayakantha <lakshm...@wso2.com>
> wrote:
>
> Hi Praveen,
>
> Refer [1] for carbon framework and [2] for emm documentation. If you wish
> to download latest pack, you can get it via jenkins [3], Anyway this pack
> may be unstable since that is a snapshot version.
>
>
> [1] https://docs.wso2.com/display/Carbon449/WSO2+Carbon+Documentation
> [2] https://docs.wso2.com/display/EMM220/WSO2+Enterprise+Mobility+Manager
> [3] https://wso2.org/jenkins/view/Dashboard/job/product-
> emm/org.wso2.mdm$wso2emm/
>
> Thanks
> Lakshman
>
> On Tue, Oct 25, 2016 at 6:31 PM, Praveen J <praveen.josephmasilamani@
> nexttechnosolutions.co.in> wrote:
>
> Hi All,
>
> Please let me know the product-emm project structure or flow. Is there any
> study material and document for carbon framework please share with us. we
> are like to work with product-emm source code.
>
> Regarding product-emm build using maven, Still we have struggle with the
> build part. Please refer the build version which we have used Java version
> is 1.7_80 and maven version is 3.0.5 as per your suggestion. but we have
> faced same issues on 'p2_profile_gen' and 'distribution' builds.
>
> And for your info last two mails I have repeatly raised these issues but I
> didn't get any response. And one more doubt is there any offline build for
> EMM because it consumes lot of mb for each build or give some steps for
> debug and test in browser.
>
> And also I did't get any response for WSO2 EMM 2.2.0 Production
> instruction. In production we have faced email

Re: [Dev] WSO2 EMM Support

2016-10-25 Thread Lakshman Udayakantha
___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
>
> --
> Megala Uthayakumar
>
> Software Engineer
> Mobile : 0779967122
>
>
>
> --
> Thanks & Regards,
> *Praveen J*
> *Application Developer,*
> *Next Techno Enterprises India Pvt. Ltd,*
>
> Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARK
> Vilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIA
> Mobile : +91-9940048873
> *praveen.josephmasilam...@nexttechnosolutions.co.in
> <praveen.josephmasilam...@nexttechnosolutions.co.in>* | 
> *www.nexttechnosolutions.com
> <http://www.nexttechnosolutions.com/>*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
>
> --
> Thanks & Regards,
> *Praveen J*
> *Application Developer,*
> *Next Techno Enterprises India Pvt. Ltd,*
>
> Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARK
> Vilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIA
> Mobile : +91-9940048873
> *praveen.josephmasilam...@nexttechnosolutions.co.in
> <praveen.josephmasilam...@nexttechnosolutions.co.in>* | 
> *www.nexttechnosolutions.com
> <http://www.nexttechnosolutions.com/>*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
>
>
> --
> Lakshani Gamage
>
> *Software Engineer, WSO2*
>
> *Mobile : +94 71 5478184 <%2B94%20%280%29%20773%20451194>*
> *Blog : http://lakshanigamage.blogspot.com/
> <http://lakshanigamage.blogspot.com/>*
>
>
>
> --
> Thanks & Regards,
> *Praveen J*
> *Application Developer,*
> *Next Techno Enterprises India Pvt. Ltd,*
>
> Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARK
> Vilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIA
> Mobile : +91-9940048873
> *praveen.josephmasilam...@nexttechnosolutions.co.in
> <praveen.josephmasilam...@nexttechnosolutions.co.in>* | 
> *www.nexttechnosolutions.com
> <http://www.nexttechnosolutions.com/>*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
>
> --
>
> *Madawa Soysa* / Software Engineer
> mada...@wso2.com / +94714616050
>
> *WSO2 Inc.*
> lean.enterprise.middleware
>
>   <https://wso2.com/signature>
>
>
>
>
>
>
>
> --
> *Thanks & Regards,*
> *Praveen J*
> *Application Developer,*
> *Next Techno Enterprises India Pvt. Ltd,*
> Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARK
> Vilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIA
> Mobile : +91-9940048873
> *praveen.josephmasilam...@nexttechnosolutions.co.in
> <praveen.josephmasilam...@nexttechnosolutions.co.in>* | 
> *www.nexttechnosolutions.com
> <http://www.nexttechnosolutions.com/>*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
>
>
> --
> Malintha Fernando
> Software Engineer
> WSO2 Inc. | http://wso2.com
> Mobile : +94 718874922
> Blog : http://blog.malintha.org
>
> Lean . Enterprise . Middleware
>
>
>
>
>
>
>
> --
> *Thanks & Regards,*
> *Praveen J*
> *Application Developer,*
> *Next Techno Enterprises India Pvt. Ltd,*
> Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARK
> Vilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIA
> Mobile : +91-9940048873
> *praveen.josephmasilam...@nexttechnosolutions.co.in
> <praveen.josephmasilam...@nexttechnosolutions.co.in>* | 
> *www.nexttechnosolutions.com
> <http://www.nexttechnosolutions.com/>*
>
>
>
>
> --
> *Thanks & Regards,*
> *Praveen J*
> *Application Developer,*
> *Next Techno Enterprises India Pvt. Ltd,*
> Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARK
> Vilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIA
> Mobile : +91-9940048873
> *praveen.josephmasilam...@nexttechnosolutions.co.in
> <praveen.josephmasilam...@nexttechnosolutions.co.in>* | 
> *www.nexttechnosolutions.com
> <http://www.nexttechnosolutions.com/>*
>
>
>
>
> --
> *Thanks & Regards,*
> *Praveen J*
> *Application Developer,*
> *Next Techno Enterprises India Pvt. Ltd,*
> Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARK
> Vilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIA
> Mobile : +91-9940048873
> *praveen.josephmasilam...@nexttechnosolutions.co.in
> <praveen.josephmasilam...@nexttechnosolutions.co.in>* | 
> *www.nexttechnosolutions.com
> <http://www.nexttechnosolutions.com/>*
>
> ,
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
> --
> *Thanks & Regards,*
> *Praveen J*
> *Application Developer,*
> *Next Techno Enterprises India Pvt. Ltd,*
> Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARK
> Vilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIA
> Mobile : +91-9940048873
> *praveen.josephmasilam...@nexttechnosolutions.co.in
> <praveen.josephmasilam...@nexttechnosolutions.co.in>* | 
> *www.nexttechnosolutions.com
> <http://www.nexttechnosolutions.com/>*
>
>
>
>
> --
> *Thanks & Regards,*
> *Praveen J*
> *Application Developer,*
> *Next Techno Enterprises India Pvt. Ltd,*
> Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARK
> Vilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIA
> Mobile : +91-9940048873
> *praveen.josephmasilam...@nexttechnosolutions.co.in
> <praveen.josephmasilam...@nexttechnosolutions.co.in>* | 
> *www.nexttechnosolutions.com
> <http://www.nexttechnosolutions.com/>*
>
> ,
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
> --
> *Thanks & Regards,*
> *Praveen J*
> *Application Developer,*
> *Next Techno Enterprises India Pvt. Ltd,*
> Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARK
> Vilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIA
> Mobile : +91-9940048873
> *praveen.josephmasilam...@nexttechnosolutions.co.in
> <praveen.josephmasilam...@nexttechnosolutions.co.in>* | 
> *www.nexttechnosolutions.com
> <http://www.nexttechnosolutions.com>*
>
>



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


Re: [Dev] WSO2 EMM Support

2016-10-19 Thread Lakshman Udayakantha
Hi Praveen,

Go through [1] getting started, it shows where to download and get the
source and installing the product and run. There is an  REST API for app
silent installation in [2]. you can try out that.

[1] https://docs.wso2.com/display/EMM201/Getting+Started
[2]
https://docs.wso2.com/display/EMM210/Installing+an+Application+on+Android+Devices

Thanks

On Wed, Oct 19, 2016 at 2:42 PM, Praveen J <
praveen.josephmasilam...@nexttechnosolutions.co.in> wrote:

> Hi Sir/Madam,
>
> Good day, I'm using WSO2 EMM 2.1.0 and I need to customise the source code
> So I need your support and i have some doubts and clarification which i
> have listed out below.
>
> Regarding to setup project-emm, Actually I already setup the project in
> IntelliJ IDE but i don't know how to run the product and debug so please
> guide me via steps how to setup the project and work with source code and
> finally built the product using Maven.
>
> Then I need clarification regarding how to install and uninstall app
> silent using Application management? And we got some search result in stack
> overflow about that but they discussed about old version and i have
> mentioned the link below for your reference. So please give some suggestion
> how to achieve this.
>
> http://stackoverflow.com/questions/26008471/application-management-in-
> wso2-emm
>
> And finally data containerisation in Android lollipop using Android for
> work. And I have followed the below link instructions.
>
> https://docs.wso2.com/display/EMM210/Data+Containerization+
> for+Android+Device#DataContainerizationforAndroidDevice-
> ApplyingAndroiddeviceoperations
>
> In device registration section I'm stuck with 5th step after uninstall the
> app what i do further? So please guide me. Awaiting for your response. And
> let me know if any comments.
>
> --
> Thanks & Regards,
> *Praveen J*
> *Application Developer,*
> *Next Techno Enterprises India Pvt. Ltd,*
>
> Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARK
> Vilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIA
> Mobile : +91-9940048873
> *praveen.josephmasilam...@nexttechnosolutions.co.in
> <praveen.josephmasilam...@nexttechnosolutions.co.in>* | 
> *www.nexttechnosolutions.com
> <http://www.nexttechnosolutions.com>*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] Error in sending a notification through Email Publisher; Unknown SMTP host: smtp.gmail.com

2016-10-11 Thread Lakshman Udayakantha
One of answers of this question[1] might solve your question.

[1] http://stackoverflow.com/questions/10085856/java-mail-exception-error

Thanks

On Tue, Oct 11, 2016 at 3:28 PM, Aneela Safdar <ansaf_...@yahoo.com> wrote:

> Hi,
>
> I am trying to send notification using Email adapter of Event Publisher.
> This is my output-event-adapter.xml's Email configurations
>
> 
> 
> safdar.anee...@gmail.com
> Aneela Safdar
> */property>
> smtp.gmail.com
> 587
> true
> true
> 
> 8
> 100
> 2
> 1
> 
>
> I receive following error upon publishing events.I am behind a proxy, is
> this an issue behind this error or something else?
>
> [2016-10-11 14:57:35,024] ERROR {org.wso2.carbon.event.output.
> adapter.email.Emai
> lEventAdapter} -  Event dropped at Output Adapter 'AlertEmailPublisher'
> for tena
> nt id '-1234', Error in message format, Unknown SMTP host: smtp.gmail.com
> javax.mail.MessagingException: *Unknown SMTP host: smtp.gmail.com
> <http://smtp.gmail.com>*;
>   nested exception is:
> java.net.UnknownHostException: smtp.gmail.com
> at com.sun.mail.smtp.SMTPTransport.openServer(
> SMTPTransport.java:1280)
> at com.sun.mail.smtp.SMTPTransport.protocolConnect(
> SMTPTransport.java:37
> 0)
> at javax.mail.Service.connect(Service.java:297)
> at javax.mail.Service.connect(Service.java:156)
> at javax.mail.Service.connect(Service.java:105)
> at javax.mail.Transport.send0(Transport.java:168)
> at javax.mail.Transport.send(Transport.java:98)
> at org.wso2.carbon.event.output.adapter.email.
> EmailEventAdapter$EmailSen
> der.run(EmailEventAdapter.java:306)
> at java.util.concurrent.Executors$RunnableAdapter.
> call(Executors.java:47
> 1)
> 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.net.UnknownHostException: smtp.gmail.com
> at java.net.AbstractPlainSocketImpl.connect(
> AbstractPlainSocketImpl.java
> :178)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> at java.net.Socket.connect(Socket.java:579)
> at java.net.Socket.connect(Socket.java:528)
> at com.sun.mail.util.SocketFetcher.createSocket(
> SocketFetcher.java:232)
> at com.sun.mail.util.SocketFetcher.getSocket(
> SocketFetcher.java:189)
> at com.sun.mail.smtp.SMTPTransport.openServer(
> SMTPTransport.java:1250)
> ... 12 more
>
> Regards,
> Aneela Safdar
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


[Dev] Enable/Disabling hostname verification in carbon 4.4.10

2016-09-28 Thread Lakshman Udayakantha
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


Re: [Dev] How to do authentication/authorization on JAX-RS RESTservice running on WSO2 AS?

2016-09-27 Thread Lakshman Udayakantha
Hi Wenxing,

While go through the AS docs I found [1] to provide authentication and
authorizations for services deployed on WSO2 AS. That might suit for you.

[1]
https://docs.wso2.com/display/AS530/Developing+JAX-RS+Applications#DevelopingJAX-RSApplications-SecuringJAX-RSapplications

Thanks

On Tue, Sep 27, 2016 at 1:25 PM, wenxzhen <wenxing.zh...@qq.com> wrote:

> Thansk to Lakshman.
>
> I hope it's just only one of the solutions. But if don't want to deploy
> the API manager, any other way?
>
> From the post [1], we can see the JAX-RS provides the related mechanism to
> help implementing the authentication and authorization. The main concern is
> that: which carbon API can be called to do the work?
>
> [1] http://stackoverflow.com/questions/26777083/best-
> practice-for-rest-token-based-authentication-with-jax-rs-and-jersey
>
> Regards, Wenxing
>
> -- Original --
> *From: * "Lakshman Udayakantha";<lakshm...@wso2.com>;
> *Send time:* Tuesday, Sep 27, 2016 4:19 PM
> *To:* "wenxzhen"<wenxing.zh...@qq.com>;
> *Cc:* "dev"<dev@wso2.org>;
> *Subject: * Re: [Dev] How to do authentication/authorization on JAX-RS
> RESTservice running on WSO2 AS?
>
> Hi Wenxing,
>
> You can expose your rest services as REST APIs via WSO2 API Manager. In
> API Manager we can provide authentication and authorization to APIs.
>
> Thanks
>
> On Tue, Sep 27, 2016 at 8:15 AM, wenxzhen <wenxing.zh...@qq.com> wrote:
>
>> Dear all,
>>
>> For a JAX-RS REST service running on WSO2 AS, what's the best way to
>> implement the authentication and authorization for each REST API? Please
>> kindly advice.
>>
>> Thank you very much
>> Regards, Wenxing
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0717429601*
>
>


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


Re: [Dev] How to do authentication/authorization on JAX-RS REST service running on WSO2 AS?

2016-09-27 Thread Lakshman Udayakantha
Hi Wenxing,

You can expose your rest services as REST APIs via WSO2 API Manager. In API
Manager we can provide authentication and authorization to APIs.

Thanks

On Tue, Sep 27, 2016 at 8:15 AM, wenxzhen <wenxing.zh...@qq.com> wrote:

> Dear all,
>
> For a JAX-RS REST service running on WSO2 AS, what's the best way to
> implement the authentication and authorization for each REST API? Please
> kindly advice.
>
> Thank you very much
> Regards, Wenxing
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] Exceptions while starting up WSO2 AM 2.0.0

2016-09-19 Thread Lakshman Udayakantha
stractPlainSocketImpl.java:200)
> at java.net.AbstractPlainSocketImpl.connect(
> AbstractPlainSocketImpl.java:182)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> at java.net.Socket.connect(Socket.java:579)
> at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:625)
> at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(
> SSLSocketFactory.java:522)
> at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(
> SSLSocketFactory.java:401)
> at org.apache.http.impl.conn.DefaultClientConnectionOperato
> r.openConnection(DefaultClientConnectionOperator.java:178)
> at org.apache.http.impl.conn.AbstractPoolEntry.open(
> AbstractPoolEntry.java:144)
> at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(
> AbstractPooledConnAdapter.java:131)
> at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(
> DefaultRequestDirector.java:610)
> at org.apache.http.impl.client.DefaultRequestDirector.execute(
> DefaultRequestDirector.java:445)
> at org.apache.http.impl.client.AbstractHttpClient.doExecute(
> AbstractHttpClient.java:863)
> at org.apache.http.impl.client.CloseableHttpClient.execute(
> CloseableHttpClient.java:82)
> at org.apache.http.impl.client.CloseableHttpClient.execute(
> CloseableHttpClient.java:106)
> at org.apache.http.impl.client.CloseableHttpClient.execute(
> CloseableHttpClient.java:57)
> at org.wso2.carbon.apimgt.gateway.throttling.util.
> KeyTemplateRetriever.retrieveKeyTemplateData(KeyTemplateRetriever.java:83)
> at org.wso2.carbon.apimgt.gateway.throttling.util.
> KeyTemplateRetriever.loadKeyTemplatesFromWebService
> (KeyTemplateRetriever.java:111)
> at org.wso2.carbon.apimgt.gateway.throttling.util.
> KeyTemplateRetriever.run(KeyTemplateRetriever.java:54)
> at java.util.TimerThread.mainLoop(Timer.java:555)
> at java.util.TimerThread.run(Timer.java:505)
> Exception in thread "Timer-5" [2016-09-19 12:47:59,312] ERROR -
> BlockingConditionRetriever Exception when retrieving Blocking Conditions
> from remote endpoint
> java.net.ConnectException: Connection refused
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.AbstractPlainSocketImpl.doConnect(
> AbstractPlainSocketImpl.java:339)
> at java.net.AbstractPlainSocketImpl.connectToAddress(
> AbstractPlainSocketImpl.java:200)
> at java.net.AbstractPlainSocketImpl.connect(
> AbstractPlainSocketImpl.java:182)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> at java.net.Socket.connect(Socket.java:579)
> at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:625)
> at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(
> SSLSocketFactory.java:522)
> at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(
> SSLSocketFactory.java:401)
> at org.apache.http.impl.conn.DefaultClientConnectionOperato
> r.openConnection(DefaultClientConnectionOperator.java:178)
> at org.apache.http.impl.conn.AbstractPoolEntry.open(
> AbstractPoolEntry.java:144)
> at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(
> AbstractPooledConnAdapter.java:131)
> at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(
> DefaultRequestDirector.java:610)
> at org.apache.http.impl.client.DefaultRequestDirector.execute(
> DefaultRequestDirector.java:445)
> at org.apache.http.impl.client.AbstractHttpClient.doExecute(
> AbstractHttpClient.java:863)
> at org.apache.http.impl.client.CloseableHttpClient.execute(
> CloseableHttpClient.java:82)
> at org.apache.http.impl.client.CloseableHttpClient.execute(
> CloseableHttpClient.java:106)
> at org.apache.http.impl.client.CloseableHttpClient.execute(
> CloseableHttpClient.java:57)
> at org.wso2.carbon.apimgt.gateway.throttling.util.
> BlockingConditionRetriever.retrieveBlockConditionsData(
> BlockingConditionRetriever.java:79)
> at org.wso2.carbon.apimgt.gateway.throttling.util.
> BlockingConditionRetriever.loadBlockingConditionsFromWebService(
> BlockingConditionRetriever.java:105)
> at org.wso2.carbon.apimgt.gateway.throttling.util.
> BlockingConditionRetriever.run(BlockingConditionRetriever.java:51)
> at java.util.TimerThread.mainLoop(Timer.java:555)
> at java.util.TimerThread.run(Timer.java:505)
> java.lang.NullPointerException
> at java.util.Arrays$ArrayList.(Arrays.java:2842)
> at java.util.Arrays.asList(Arrays.java:2828)
> at org.wso2.carbon.apimgt.gateway.throttling.util.
> KeyTemplateRetriever.loadKeyTemplatesFromWebService
> (KeyTemplateRetriever.java:111)
> at org.wso2.carbon.apimgt.gateway.throttling.util.
> KeyTemplateRetriever.run(KeyTemplateRetriever.java:54)
> at java.util.TimerThread.mainLoop(Timer.java:555)
> at java.util.TimerThread.run(Timer.java:505)
>
>
> Thanks & Regards,
> Malintha
>
> --
> Malintha Fernando
> Software Engineer
> WSO2 Inc. | http://wso2.com
> Mobile : +94 718874922
> Blog : http://blog.malintha.org
>
> Lean . Enterprise . Middleware
>
>
>
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


[Dev] [Registry] Test case failing in registry core on windows

2016-08-12 Thread Lakshman Udayakantha
Hi Chandana,

CustomQueryTest test case failing on windows 7. You can find the related
jira in [1]. Can you have a look there because this is a blocker for carbon
4.4.8 release.

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

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


Re: [Dev] [CARBON] Error after installing web app run time features

2016-08-01 Thread Lakshman Udayakantha
Thanks Bhathiya. I will check with that version.

On Sun, Jul 31, 2016 at 1:36 AM, Bhathiya Jayasekara <bhath...@wso2.com>
wrote:

> Hi Lakshman,
>
> I also faced the same issue, and could resolve after upgrading
> carbon-deployment version to 4.6.2.
>
> Thanks,
> Bhathiya
>
> On Thu, Jul 28, 2016 at 8:59 PM, Lakshman Udayakantha <lakshm...@wso2.com>
> wrote:
>
>> Hi,
>>
>> I got error [1] after doing $subject on carbon 4.4.7 kernel. I installed
>> web app hosting feature and web app runtime features. It seems it could not
>> upload web apps. This error getting continuously. How do I prevent this
>> issue and upload web apps?
>>
>> [1]
>>
>> java.lang.NoSuchMethodError: org.apache.coyote.Request.getBytesRead()I
>>
>> at org.apache.coyote.RequestInfo.updateCounters(RequestInfo.java:143)
>>
>> at org.apache.coyote.Request.updateCounters(Request.java:533)
>>
>> at
>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1140)
>>
>> at
>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
>>
>> at
>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1749)
>>
>> at
>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1708)
>>
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>
>> at
>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>>
>> at java.lang.Thread.run(Thread.java:745)
>>
>>
>> Thanks
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0717429601 <0717429601>*
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Bhathiya Jayasekara*
> *Senior Software Engineer,*
> *WSO2 inc., http://wso2.com <http://wso2.com>*
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> <http://www.linkedin.com/in/bhathiyaj>*
> *Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>*
> *Blog: http://movingaheadblog.blogspot.com
> <http://movingaheadblog.blogspot.com/>*
>



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


Re: [Dev] Encoding issue in JSPs

2016-07-29 Thread Lakshman Udayakantha
Hi Farasath,

I sent a request from a UTF-8 encoded form to a JSP page both from 4.4.5
kernel and 4.4.7 kernel and I got UTF-8 encoded text in JSP end without any
issue in both cases. BTW I have set following property in JSP before
reading request parameters

request.setCharacterEncoding("UTF-8");

Could you check by setting that too?

Thanks

On Tue, Jul 26, 2016 at 11:58 AM, Farasath Ahamed <farasa...@wso2.com>
wrote:

> + Kishanthan, Johann
>
> 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>
>
>
>
> On Tue, Jul 26, 2016 at 11:22 AM, Farasath Ahamed <farasa...@wso2.com>
> wrote:
>
>> Hi,
>>
>> I am sending some UTF-8 encoded texts from a form to a JSP(ajax
>> processor). In the JSP I read the request parameters using,
>>
>> String emailSubject = request.getParameter("emailSubject");
>> String emailBody = request.getParameter("emailBody");
>> String emailFooter = request.getParameter("emailFooter");
>>
>> This scenario works fine with IS 5.3.0-M1 which is based on 4.4.5 kernel.
>> But when I run the same code without any changes on IS 5.3.0-M3 which is
>> based on 4.4.7 encoding doesn't seem to work.
>>
>> Appreciate your help to find the root cause.
>>
>>
>> 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
>
>


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


[Dev] [CARBON] Error after installing web app run time features

2016-07-28 Thread Lakshman Udayakantha
Hi,

I got error [1] after doing $subject on carbon 4.4.7 kernel. I installed
web app hosting feature and web app runtime features. It seems it could not
upload web apps. This error getting continuously. How do I prevent this
issue and upload web apps?

[1]

java.lang.NoSuchMethodError: org.apache.coyote.Request.getBytesRead()I

at org.apache.coyote.RequestInfo.updateCounters(RequestInfo.java:143)

at org.apache.coyote.Request.updateCounters(Request.java:533)

at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1140)

at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)

at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1749)

at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1708)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Thread.java:745)


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


Re: [Dev] Improve startup time in AS 6.0.0

2016-07-23 Thread Lakshman Udayakantha
[+dev]

On Sat, Jul 23, 2016 at 8:17 PM, Lakshman Udayakantha <lakshm...@wso2.com>
wrote:

> I copied all the jars in lib in AS 6.0.0 to a pure tomcat and I could see
> 40(s) startup time there also. According to the jprofiler also most of the
> time is going for jar scanning. So I added additional jars in AS than
> tomcat to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip section in
> catalina.properties file because we don't want to scan them for
> configurations. After adding them I could reduce uptime to 2.5 seconds. I
> think we can go with this in next milestone. WDYT?
>
> Thanks
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0717429601*
>
>


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


Re: [Dev] WSO2 AS integration with TomEE

2016-07-21 Thread Lakshman Udayakantha
Hi,

I have already added several samples and now writing test cases for them.
For now I can copy war files from samples/target folders to tomcat web app
folder and run the test. But with the offline discussion I had with KasunG,
this file copying will not going to work in future docker based test
environment.

@DarshanaW
How we are going to cater this situation?

Thanks

On Mon, Jul 18, 2016 at 4:59 PM, Kishanthan Thangarajah <kishant...@wso2.com
> wrote:

>
>
> On Mon, Jul 18, 2016 at 11:55 AM, Lakshman Udayakantha <lakshm...@wso2.com
> > wrote:
>
>> Hi,
>>
>> As a part of this we will migrate samples and test cases from AS 5.3.0.
>> There are 45+ samples in AS 5.3.0. As per the offline chat with KasunG, It
>> will exclude axis2 samples from migration. Other JaxWS-RS, JavaEE samples
>> etc. and relevant test cases will be include in new AS.
>>
>
> +1.
>
> These samples will be shipped with AS and we also need to provide the
> similar ant run script / maven to build and deploy them.
>
>
>> Thanks
>>
>> On Fri, Jul 15, 2016 at 10:50 AM, Lakshman Udayakantha <
>> lakshm...@wso2.com> wrote:
>>
>>> [Adding KalpaW]
>>>
>>> On Thu, Jul 14, 2016 at 10:05 PM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
>>>> Pull request is in [1]
>>>>
>>>> [1] https://github.com/wso2/product-as/pull/351
>>>>
>>>> Thanks
>>>>
>>>> On Thu, Jul 14, 2016 at 10:04 PM, Lakshman Udayakantha <
>>>> lakshm...@wso2.com> wrote:
>>>>
>>>>> Hi Carbon Team,
>>>>>
>>>>> Could you review and merge the pull which is done for the TomEE
>>>>> integration? After the offline discussion with KasunG, added a dummy
>>>>> runtime as well.
>>>>>
>>>>> Thanks
>>>>>
>>>>> On Thu, Jul 14, 2016 at 4:34 PM, KasunG Gajasinghe <kas...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Jul 14, 2016 at 4:27 PM, Lakshman Udayakantha <
>>>>>> lakshm...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi KasunG,
>>>>>>>
>>>>>>> This was almost done except jaxrs_basic web app not deploying
>>>>>>> properly. Got exception [1]. Anyway I checked for the class which says 
>>>>>>> CNF
>>>>>>> and it was there in classpath.  This jaxrs_basic  web app needs CXF 
>>>>>>> runtime
>>>>>>> jars and this web app using to demonstrate custom runtime environment
>>>>>>> support. Anyhow TomEE already bundling CXF runtime, it seems not
>>>>>>> appropriate CXF as a separate runtime. right?.
>>>>>>>
>>>>>>
>>>>>> Yes, that seems to be the case. Since CXF is coming from TomEE, CXF
>>>>>> is not needed as a runtime. But, TomEE only packs CXF's jax-rs related
>>>>>> libs. We need to ship jax-ws libs as well.
>>>>>>
>>>>>>
>>>>>>> How about creating a separate run time rather than CXF and creating
>>>>>>> another web app to test that and bundling current CXF jars in lib 
>>>>>>> itself?
>>>>>>>
>>>>>>> [1]  SEVERE [localhost-startStop-1]
>>>>>>> org.apache.catalina.core.StandardContext.listenerStart Exception sending
>>>>>>> context initialized event to listener instance of class
>>>>>>> org.springframework.web.context.ContextLoaderListener
>>>>>>>
>>>>>>>  org.springframework.beans.factory.BeanDefinitionStoreException:
>>>>>>> Unexpected exception parsing XML document from ServletContext resource
>>>>>>> [/WEB-INF/customBeans.xml]; nested exception is
>>>>>>> org.springframework.beans.FatalBeanException: Invalid NamespaceHandler
>>>>>>> class [org.apache.cxf.jaxrs.spring.NamespaceHandler] for namespace [
>>>>>>> http://cxf.apache.org/jaxrs]: problem with handler class file or
>>>>>>> dependent class; nested exception is java.lang.NoClassDefFoundError:
>>>>>>> org/springframework/beans/factory/xml/NamespaceHandlerSupport
>>>>>>>
>>>>>>> at
>>>>>>> org.springframewo

Re: [Dev] WSO2 AS integration with TomEE

2016-07-18 Thread Lakshman Udayakantha
Hi,

As a part of this we will migrate samples and test cases from AS 5.3.0.
There are 45+ samples in AS 5.3.0. As per the offline chat with KasunG, It
will exclude axis2 samples from migration. Other JaxWS-RS, JavaEE samples
etc. and relevant test cases will be include in new AS.

Thanks

On Fri, Jul 15, 2016 at 10:50 AM, Lakshman Udayakantha <lakshm...@wso2.com>
wrote:

> [Adding KalpaW]
>
> On Thu, Jul 14, 2016 at 10:05 PM, Lakshman Udayakantha <lakshm...@wso2.com
> > wrote:
>
>> Pull request is in [1]
>>
>> [1] https://github.com/wso2/product-as/pull/351
>>
>> Thanks
>>
>> On Thu, Jul 14, 2016 at 10:04 PM, Lakshman Udayakantha <
>> lakshm...@wso2.com> wrote:
>>
>>> Hi Carbon Team,
>>>
>>> Could you review and merge the pull which is done for the TomEE
>>> integration? After the offline discussion with KasunG, added a dummy
>>> runtime as well.
>>>
>>> Thanks
>>>
>>> On Thu, Jul 14, 2016 at 4:34 PM, KasunG Gajasinghe <kas...@wso2.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Thu, Jul 14, 2016 at 4:27 PM, Lakshman Udayakantha <
>>>> lakshm...@wso2.com> wrote:
>>>>
>>>>> Hi KasunG,
>>>>>
>>>>> This was almost done except jaxrs_basic web app not deploying
>>>>> properly. Got exception [1]. Anyway I checked for the class which says CNF
>>>>> and it was there in classpath.  This jaxrs_basic  web app needs CXF 
>>>>> runtime
>>>>> jars and this web app using to demonstrate custom runtime environment
>>>>> support. Anyhow TomEE already bundling CXF runtime, it seems not
>>>>> appropriate CXF as a separate runtime. right?.
>>>>>
>>>>
>>>> Yes, that seems to be the case. Since CXF is coming from TomEE, CXF is
>>>> not needed as a runtime. But, TomEE only packs CXF's jax-rs related libs.
>>>> We need to ship jax-ws libs as well.
>>>>
>>>>
>>>>> How about creating a separate run time rather than CXF and creating
>>>>> another web app to test that and bundling current CXF jars in lib itself?
>>>>>
>>>>> [1]  SEVERE [localhost-startStop-1]
>>>>> org.apache.catalina.core.StandardContext.listenerStart Exception sending
>>>>> context initialized event to listener instance of class
>>>>> org.springframework.web.context.ContextLoaderListener
>>>>>
>>>>>  org.springframework.beans.factory.BeanDefinitionStoreException:
>>>>> Unexpected exception parsing XML document from ServletContext resource
>>>>> [/WEB-INF/customBeans.xml]; nested exception is
>>>>> org.springframework.beans.FatalBeanException: Invalid NamespaceHandler
>>>>> class [org.apache.cxf.jaxrs.spring.NamespaceHandler] for namespace [
>>>>> http://cxf.apache.org/jaxrs]: problem with handler class file or
>>>>> dependent class; nested exception is java.lang.NoClassDefFoundError:
>>>>> org/springframework/beans/factory/xml/NamespaceHandlerSupport
>>>>>
>>>>> at
>>>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:414)
>>>>>
>>>>> at
>>>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
>>>>>
>>>>> at
>>>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
>>>>>
>>>>> at
>>>>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
>>>>>
>>>>> at
>>>>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
>>>>>
>>>>> at
>>>>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
>>>>>
>>>>> at
>>>>> org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
>>>>>
>>>>> at
>>>>> org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
>>>>&g

Re: [Dev] WSO2 AS integration with TomEE

2016-07-14 Thread Lakshman Udayakantha
[Adding KalpaW]

On Thu, Jul 14, 2016 at 10:05 PM, Lakshman Udayakantha <lakshm...@wso2.com>
wrote:

> Pull request is in [1]
>
> [1] https://github.com/wso2/product-as/pull/351
>
> Thanks
>
> On Thu, Jul 14, 2016 at 10:04 PM, Lakshman Udayakantha <lakshm...@wso2.com
> > wrote:
>
>> Hi Carbon Team,
>>
>> Could you review and merge the pull which is done for the TomEE
>> integration? After the offline discussion with KasunG, added a dummy
>> runtime as well.
>>
>> Thanks
>>
>> On Thu, Jul 14, 2016 at 4:34 PM, KasunG Gajasinghe <kas...@wso2.com>
>> wrote:
>>
>>>
>>>
>>> On Thu, Jul 14, 2016 at 4:27 PM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
>>>> Hi KasunG,
>>>>
>>>> This was almost done except jaxrs_basic web app not deploying properly.
>>>> Got exception [1]. Anyway I checked for the class which says CNF and it was
>>>> there in classpath.  This jaxrs_basic  web app needs CXF runtime jars and
>>>> this web app using to demonstrate custom runtime environment support.
>>>> Anyhow TomEE already bundling CXF runtime, it seems not appropriate CXF as
>>>> a separate runtime. right?.
>>>>
>>>
>>> Yes, that seems to be the case. Since CXF is coming from TomEE, CXF is
>>> not needed as a runtime. But, TomEE only packs CXF's jax-rs related libs.
>>> We need to ship jax-ws libs as well.
>>>
>>>
>>>> How about creating a separate run time rather than CXF and creating
>>>> another web app to test that and bundling current CXF jars in lib itself?
>>>>
>>>> [1]  SEVERE [localhost-startStop-1]
>>>> org.apache.catalina.core.StandardContext.listenerStart Exception sending
>>>> context initialized event to listener instance of class
>>>> org.springframework.web.context.ContextLoaderListener
>>>>
>>>>  org.springframework.beans.factory.BeanDefinitionStoreException:
>>>> Unexpected exception parsing XML document from ServletContext resource
>>>> [/WEB-INF/customBeans.xml]; nested exception is
>>>> org.springframework.beans.FatalBeanException: Invalid NamespaceHandler
>>>> class [org.apache.cxf.jaxrs.spring.NamespaceHandler] for namespace [
>>>> http://cxf.apache.org/jaxrs]: problem with handler class file or
>>>> dependent class; nested exception is java.lang.NoClassDefFoundError:
>>>> org/springframework/beans/factory/xml/NamespaceHandlerSupport
>>>>
>>>> at
>>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:414)
>>>>
>>>> at
>>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
>>>>
>>>> at
>>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
>>>>
>>>> at
>>>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
>>>>
>>>> at
>>>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
>>>>
>>>> at
>>>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
>>>>
>>>> at
>>>> org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
>>>>
>>>> at
>>>> org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
>>>>
>>>> at
>>>> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
>>>>
>>>> at
>>>> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:609)
>>>>
>>>> at
>>>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:510)
>>>>
>>>> at
>>>> org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
>>>>
>>>> at
>>>> org.springframework.web.context.C

Re: [Dev] WSO2 AS integration with TomEE

2016-07-14 Thread Lakshman Udayakantha
Pull request is in [1]

[1] https://github.com/wso2/product-as/pull/351

Thanks

On Thu, Jul 14, 2016 at 10:04 PM, Lakshman Udayakantha <lakshm...@wso2.com>
wrote:

> Hi Carbon Team,
>
> Could you review and merge the pull which is done for the TomEE
> integration? After the offline discussion with KasunG, added a dummy
> runtime as well.
>
> Thanks
>
> On Thu, Jul 14, 2016 at 4:34 PM, KasunG Gajasinghe <kas...@wso2.com>
> wrote:
>
>>
>>
>> On Thu, Jul 14, 2016 at 4:27 PM, Lakshman Udayakantha <lakshm...@wso2.com
>> > wrote:
>>
>>> Hi KasunG,
>>>
>>> This was almost done except jaxrs_basic web app not deploying properly.
>>> Got exception [1]. Anyway I checked for the class which says CNF and it was
>>> there in classpath.  This jaxrs_basic  web app needs CXF runtime jars and
>>> this web app using to demonstrate custom runtime environment support.
>>> Anyhow TomEE already bundling CXF runtime, it seems not appropriate CXF as
>>> a separate runtime. right?.
>>>
>>
>> Yes, that seems to be the case. Since CXF is coming from TomEE, CXF is
>> not needed as a runtime. But, TomEE only packs CXF's jax-rs related libs.
>> We need to ship jax-ws libs as well.
>>
>>
>>> How about creating a separate run time rather than CXF and creating
>>> another web app to test that and bundling current CXF jars in lib itself?
>>>
>>> [1]  SEVERE [localhost-startStop-1]
>>> org.apache.catalina.core.StandardContext.listenerStart Exception sending
>>> context initialized event to listener instance of class
>>> org.springframework.web.context.ContextLoaderListener
>>>
>>>  org.springframework.beans.factory.BeanDefinitionStoreException:
>>> Unexpected exception parsing XML document from ServletContext resource
>>> [/WEB-INF/customBeans.xml]; nested exception is
>>> org.springframework.beans.FatalBeanException: Invalid NamespaceHandler
>>> class [org.apache.cxf.jaxrs.spring.NamespaceHandler] for namespace [
>>> http://cxf.apache.org/jaxrs]: problem with handler class file or
>>> dependent class; nested exception is java.lang.NoClassDefFoundError:
>>> org/springframework/beans/factory/xml/NamespaceHandlerSupport
>>>
>>> at
>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:414)
>>>
>>> at
>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
>>>
>>> at
>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
>>>
>>> at
>>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
>>>
>>> at
>>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
>>>
>>> at
>>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
>>>
>>> at
>>> org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
>>>
>>> at
>>> org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
>>>
>>> at
>>> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
>>>
>>> at
>>> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:609)
>>>
>>> at
>>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:510)
>>>
>>> at
>>> org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
>>>
>>> at
>>> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
>>>
>>> at
>>> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
>>>
>>> at
>>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4716)
>>>
>>> at
>>> org.apache.catalina.core.StandardContext.startInternal(StandardContext

Re: [Dev] WSO2 AS integration with TomEE

2016-07-14 Thread Lakshman Udayakantha
Hi Carbon Team,

Could you review and merge the pull which is done for the TomEE
integration? After the offline discussion with KasunG, added a dummy
runtime as well.

Thanks

On Thu, Jul 14, 2016 at 4:34 PM, KasunG Gajasinghe <kas...@wso2.com> wrote:

>
>
> On Thu, Jul 14, 2016 at 4:27 PM, Lakshman Udayakantha <lakshm...@wso2.com>
> wrote:
>
>> Hi KasunG,
>>
>> This was almost done except jaxrs_basic web app not deploying properly.
>> Got exception [1]. Anyway I checked for the class which says CNF and it was
>> there in classpath.  This jaxrs_basic  web app needs CXF runtime jars and
>> this web app using to demonstrate custom runtime environment support.
>> Anyhow TomEE already bundling CXF runtime, it seems not appropriate CXF as
>> a separate runtime. right?.
>>
>
> Yes, that seems to be the case. Since CXF is coming from TomEE, CXF is not
> needed as a runtime. But, TomEE only packs CXF's jax-rs related libs. We
> need to ship jax-ws libs as well.
>
>
>> How about creating a separate run time rather than CXF and creating
>> another web app to test that and bundling current CXF jars in lib itself?
>>
>> [1]  SEVERE [localhost-startStop-1]
>> org.apache.catalina.core.StandardContext.listenerStart Exception sending
>> context initialized event to listener instance of class
>> org.springframework.web.context.ContextLoaderListener
>>
>>  org.springframework.beans.factory.BeanDefinitionStoreException:
>> Unexpected exception parsing XML document from ServletContext resource
>> [/WEB-INF/customBeans.xml]; nested exception is
>> org.springframework.beans.FatalBeanException: Invalid NamespaceHandler
>> class [org.apache.cxf.jaxrs.spring.NamespaceHandler] for namespace [
>> http://cxf.apache.org/jaxrs]: problem with handler class file or
>> dependent class; nested exception is java.lang.NoClassDefFoundError:
>> org/springframework/beans/factory/xml/NamespaceHandlerSupport
>>
>> at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:414)
>>
>> at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
>>
>> at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
>>
>> at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
>>
>> at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
>>
>> at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
>>
>> at
>> org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
>>
>> at
>> org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
>>
>> at
>> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
>>
>> at
>> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:609)
>>
>> at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:510)
>>
>> at
>> org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
>>
>> at
>> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
>>
>> at
>> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
>>
>> at
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4716)
>>
>> at
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5178)
>>
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
>>
>> at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
>>
>> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)
>>
>> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
>>
>> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:952)
>>
>> at
>> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823)
>>
&

Re: [Dev] WSO2 AS integration with TomEE

2016-07-14 Thread Lakshman Udayakantha
(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*
>
>


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


Re: [Dev] [WSO2 IS] Travelocity.com doesnt get deployed on Tomcat 8.0.x

2016-07-12 Thread Lakshman Udayakantha
I could reproduce your issue in windows environment. It seems like tomcat
8.0.x, needs to specify the root as slash when specifying file paths in
java classes which is not done in [1]. After specifying path as /
WEB-INF/classes/wso2carbon.jks and build the war and putting in tomcat
8.0.x in windows deployed without any issue.

[1]
https://github.com/wso2/product-is/blob/master/modules/samples/sso/sso-agent-sample/src/main/java/org/wso2/sample/is/sso/agent/SampleContextEventListener.java#L52

Thanks

On Tue, Jul 12, 2016 at 2:58 PM, Nadeesha Gamage <nadee...@wso2.com> wrote:

> Done
>
> On Tue, Jul 12, 2016 at 2:55 PM, Harsha Thirimanna <hars...@wso2.com>
> wrote:
>
>> Please update these details to the above ticket for further reference.
>>
>>
>> *Harsha Thirimanna*
>> Associate Tech Lead; WSO2, Inc.; http://wso2.com
>> * <http://www.apache.org/>*
>> *email: **hars...@wso2.com* <az...@wso2.com>* cell: +94 71 5186770 *
>> *twitter: **http://twitter.com/ <http://twitter.com/afkham_azeez>*
>> *harshathirimannlinked-in: **http:
>> <http://lk.linkedin.com/in/afkhamazeez>**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>> <http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122>*
>>
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Tue, Jul 12, 2016 at 2:45 PM, Nadeesha Gamage <nadee...@wso2.com>
>> wrote:
>>
>>> As per the offline chat with Lakshman I have tested this on a fresh pack
>>> of Tomcat 8.0.9 and it still doesnt work, but it works on Tomcat 8.5.3
>>>
>>> On Tue, Jul 12, 2016 at 12:17 PM, Harsha Thirimanna <hars...@wso2.com>
>>> wrote:
>>>
>>>> I also had tested this in modified one, sorry. I think Lakshman is
>>>> correct. Please send your logs and web app as well.​
>>>>
>>>>
>>>> *Harsha Thirimanna*
>>>> Associate Tech Lead; WSO2, Inc.; http://wso2.com
>>>> * <http://www.apache.org/>*
>>>> *email: **hars...@wso2.com* <az...@wso2.com>* cell: +94 71 5186770 *
>>>> *twitter: **http://twitter.com/ <http://twitter.com/afkham_azeez>*
>>>> *harshathirimannlinked-in: **http:
>>>> <http://lk.linkedin.com/in/afkhamazeez>**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>>> <http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122>*
>>>>
>>>> *Lean . Enterprise . Middleware*
>>>>
>>>>
>>>> On Tue, Jul 12, 2016 at 12:05 PM, Lakshman Udayakantha <
>>>> lakshm...@wso2.com> wrote:
>>>>
>>>>> Anyway what are the issues? post the catalina.out and localhost*.log
>>>>> files.
>>>>>
>>>>> On Tue, Jul 12, 2016 at 12:00 PM, Harsha Thirimanna <hars...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> I think there are some issues. I could see that. We need to look in
>>>>>> to that.
>>>>>>
>>>>>>
>>>>>> *Harsha Thirimanna*
>>>>>> Associate Tech Lead; WSO2, Inc.; http://wso2.com
>>>>>> * <http://www.apache.org/>*
>>>>>> *email: **hars...@wso2.com* <az...@wso2.com>* cell: +94 71 5186770 *
>>>>>> *twitter: **http://twitter.com/ <http://twitter.com/afkham_azeez>*
>>>>>> *harshathirimannlinked-in: **http:
>>>>>> <http://lk.linkedin.com/in/afkhamazeez>**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>>>>> <http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122>*
>>>>>>
>>>>>> *Lean . Enterprise . Middleware*
>>>>>>
>>>>>>
>>>>>> On Tue, Jul 12, 2016 at 11:47 AM, Lakshman Udayakantha <
>>>>>> lakshm...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Nadeesha,
>>>>>>>
>>>>>>> I didn't get any SEVERE logs while deploying travelocity app on
>>>>>>> tomcat 8.0.x. Could you please post the errors in localhost*.log file 
>>>>>>> for
>>>>>>> more information.
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> On Tue, Jul 12, 2016 at 11:17 AM, Omindu Rathnaweera <
>>>>>>> omi...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi Nadeesha,
>>>>>>>>
>>>>>>>> I don't think we have tested t

Re: [Dev] [WSO2 IS] Travelocity.com doesnt get deployed on Tomcat 8.0.x

2016-07-12 Thread Lakshman Udayakantha
Anyway what are the issues? post the catalina.out and localhost*.log files.

On Tue, Jul 12, 2016 at 12:00 PM, Harsha Thirimanna <hars...@wso2.com>
wrote:

> I think there are some issues. I could see that. We need to look in to
> that.
>
>
> *Harsha Thirimanna*
> Associate Tech Lead; WSO2, Inc.; http://wso2.com
> * <http://www.apache.org/>*
> *email: **hars...@wso2.com* <az...@wso2.com>* cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ <http://twitter.com/afkham_azeez>*
> *harshathirimannlinked-in: **http:
> <http://lk.linkedin.com/in/afkhamazeez>**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> <http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122>*
>
> *Lean . Enterprise . Middleware*
>
>
> On Tue, Jul 12, 2016 at 11:47 AM, Lakshman Udayakantha <lakshm...@wso2.com
> > wrote:
>
>> Hi Nadeesha,
>>
>> I didn't get any SEVERE logs while deploying travelocity app on tomcat
>> 8.0.x. Could you please post the errors in localhost*.log file for more
>> information.
>>
>> Thanks
>>
>> On Tue, Jul 12, 2016 at 11:17 AM, Omindu Rathnaweera <omi...@wso2.com>
>> wrote:
>>
>>> Hi Nadeesha,
>>>
>>> I don't think we have tested travelocity with tomcat 8. Created [1] to
>>> track this issue.
>>>
>>> [1] - https://wso2.org/jira/browse/IDENTITY-4800
>>>
>>> Regards,
>>> Omindu.
>>>
>>> On Tue, Jul 12, 2016 at 10:39 AM, Nadeesha Gamage <nadee...@wso2.com>
>>> wrote:
>>>
>>>> Hi Devs,
>>>> I have checked-out the travelocity.com sample from the following link
>>>> [1], build and deployed it on Tomcat 8.0.x and I get the following error.
>>>>
>>>> 12-Jul-2016 10:32:26.557 INFO [localhost-startStop-3]
>>>> org.apache.catalina.startup.HostConfig.deployWAR Deploying web application
>>>> archive D:\Software
>>>> Installed\apache-tomcat-8.0.9\webapps\travelocity.com.war
>>>> 12-Jul-2016 10:32:28.666 INFO [localhost-startStop-3]
>>>> org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned
>>>> for TLDs yet contained no TLDs. Enable debug logging for this logger for a
>>>> complete list of JARs that were scanned but no TLDs were found in them.
>>>> Skipping unneeded JARs during scanning can improve startup time and JSP
>>>> compilation time.
>>>> 12-Jul-2016 10:32:28.669 SEVERE [localhost-startStop-3]
>>>> org.apache.catalina.core.StandardContext.startInternal Error listenerStart
>>>> 12-Jul-2016 10:32:28.669 SEVERE [localhost-startStop-3]
>>>> org.apache.catalina.core.StandardContext.startInternal Context [/
>>>> travelocity.com] startup failed due to previous errors
>>>>
>>>>
>>>> [1] https://docs.wso2.com/display/IS510/Downloading+a+Sample
>>>>
>>>>
>>>> Can someone please look into this.
>>>>
>>>> Thank you,
>>>> --
>>>> Nadeesha Gamage
>>>> Associate Technical Lead - Solutions Engineering
>>>> T : +94 77 394 5706
>>>> B : https://nadeesha678.wordpress.com/
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Omindu Rathnaweera
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94 771 197 211
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>


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


Re: [Dev] [WSO2 IS] Travelocity.com doesnt get deployed on Tomcat 8.0.x

2016-07-12 Thread Lakshman Udayakantha
Hi Nadeesha,

I didn't get any SEVERE logs while deploying travelocity app on tomcat
8.0.x. Could you please post the errors in localhost*.log file for more
information.

Thanks

On Tue, Jul 12, 2016 at 11:17 AM, Omindu Rathnaweera <omi...@wso2.com>
wrote:

> Hi Nadeesha,
>
> I don't think we have tested travelocity with tomcat 8. Created [1] to
> track this issue.
>
> [1] - https://wso2.org/jira/browse/IDENTITY-4800
>
> Regards,
> Omindu.
>
> On Tue, Jul 12, 2016 at 10:39 AM, Nadeesha Gamage <nadee...@wso2.com>
> wrote:
>
>> Hi Devs,
>> I have checked-out the travelocity.com sample from the following link
>> [1], build and deployed it on Tomcat 8.0.x and I get the following error.
>>
>> 12-Jul-2016 10:32:26.557 INFO [localhost-startStop-3]
>> org.apache.catalina.startup.HostConfig.deployWAR Deploying web application
>> archive D:\Software
>> Installed\apache-tomcat-8.0.9\webapps\travelocity.com.war
>> 12-Jul-2016 10:32:28.666 INFO [localhost-startStop-3]
>> org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned
>> for TLDs yet contained no TLDs. Enable debug logging for this logger for a
>> complete list of JARs that were scanned but no TLDs were found in them.
>> Skipping unneeded JARs during scanning can improve startup time and JSP
>> compilation time.
>> 12-Jul-2016 10:32:28.669 SEVERE [localhost-startStop-3]
>> org.apache.catalina.core.StandardContext.startInternal Error listenerStart
>> 12-Jul-2016 10:32:28.669 SEVERE [localhost-startStop-3]
>> org.apache.catalina.core.StandardContext.startInternal Context [/
>> travelocity.com] startup failed due to previous errors
>>
>>
>> [1] https://docs.wso2.com/display/IS510/Downloading+a+Sample
>>
>>
>> Can someone please look into this.
>>
>> Thank you,
>> --
>> Nadeesha Gamage
>> Associate Technical Lead - Solutions Engineering
>> T : +94 77 394 5706
>> B : https://nadeesha678.wordpress.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Omindu Rathnaweera
> Software Engineer, WSO2 Inc.
> Mobile: +94 771 197 211
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


[Dev] WSO2 AS integration with TomEE

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


Re: [Dev] [APIM 500] How API publisher can delete a API which has subscriptions

2016-07-07 Thread Lakshman Udayakantha
Hi Asanka,

AFAIR we can't delete an API which has subscriptions rather you can block
the API using API publisher.

Thanks

On Thu, Jul 7, 2016 at 3:45 PM, Asanka Vithanage <asan...@wso2.com> wrote:

> Hi,
>
> Sorry. Topic should be changed as [APIM 200] How API publisher can delete
> a API which has subscriptions
>
> On Thu, Jul 7, 2016 at 3:43 PM, Asanka Vithanage <asan...@wso2.com> wrote:
>
>> Hi All,
>>
>> Using API Publisher and Store, I am trying to achieve the $Subject. But
>> it seems via current store and publisher UIs, we can't do that.
>>
>> Let's think we create two users called userPub and userSub with only
>> login and Manage permissions.
>> Then "userPub" login to the API Publisher and create/Publish an API.
>> Then "userSub" login to the API Store and subscribe to the above  API.
>> Now "userPub" want to the delete the API, But Publisher does not allow to
>> delete the API due to the subscriptions.
>> Now the question is how do delete the subscriptions, Though I logged to
>> store with user "userPub" I can't find a way to remove the subscription.
>> So, as a result, I can't figure out a way to delete the API.
>>
>> Do we have a way to delete the API in this kind of situation? Appreciate
>> your thoughts.
>>
>> --
>> Asanka Vithanage
>> Senior Software Engineer -QA
>> Mobile: +94 0716286708
>> Email: asan...@wso2.com
>> WSO2 Inc. www.wso2.com
>>
>>
>
>
> --
> Asanka Vithanage
> Senior Software Engineer -QA
> Mobile: +94 0716286708
> Email: asan...@wso2.com
> WSO2 Inc. www.wso2.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] Ws02 emm Help

2016-05-26 Thread Lakshman Udayakantha
rocess(DefaultFilterChain.java:111)
> at
> org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
> at
> org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)
> at
> org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
> at
> org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
> at
> org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
> at java.lang.Thread.run(Thread.java:745)
>
> Severe:   Exception while loading the app
> Severe:   Undeployment failed for context /mdm-admin
> Severe:   Exception while loading the app :
> java.lang.IllegalStateException: ContainerBase.addChild: start:
> org.apache.catalina.LifecycleException: java.lang.NoClassDefFoundError:
> org/springframework/context/ApplicationListener
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] P2 profile fails in MDM

2016-04-25 Thread Lakshman Udayakantha
Thanks Niranjan. After upgrading commons version I could build without any
issue.

On Sat, Apr 23, 2016 at 12:11 AM, Niranjan Karunanandham <niran...@wso2.com>
wrote:

> Hi Lakshman,
>
> AFAIU, this is because of the import range defined in for axiom in
> carbon-commons and is fixed in carbon-commons version 4.4.9 and 4.5.1
> [1]. The carbon-commons version defined in carbon identity is 4.4.8. Can
> you manually try upgrading it to 4.4.9 / 4.5.1, build it locally and
> testing it.
>
> Btw it advice-able to upgrade to a released version of the carbon-identity
> since SNAPSHOT version can change after it is released and this can cause
> your build to break.
>
>
> [1] : Mail Subject: [Kernel 4.4.4 release] Releasing downstream projects
> of wso2-axiom
>
> Regards,
> Nira
>
> On Fri, Apr 22, 2016 at 11:37 PM, Lakshman Udayakantha <lakshm...@wso2.com
> > wrote:
>
>> Hi,
>>
>> When version upgrading in MDM, I got below error,
>>
>> Installing org.wso2.carbon.core.common.feature.group 4.4.5.
>> Installation failed.
>> Cannot complete the install because one or more required items could not
>> be found.
>>  Software being installed: Identity OAuth Common Feature 5.0.9.SNAPSHOT
>> (org.wso2.carbon.identity.oauth.common.feature.group 5.0.9.SNAPSHOT)
>>  Missing requirement: org.wso2.carbon.tenant.common 4.4.7
>> (org.wso2.carbon.tenant.common 4.4.7) requires 'package
>> org.apache.axiom.om [1.2.11.wso2v6,1.3.0)' but it could not be found
>>  Missing requirement: org.wso2.carbon.tenant.common 4.4.8
>> (org.wso2.carbon.tenant.common 4.4.8) requires 'package
>> org.apache.axiom.om [1.2.11.wso2v6,1.3.0)' but it could not be found
>>  Cannot satisfy dependency:
>>   From: WSO2 Carbon - Identity Core 5.0.9.SNAPSHOT
>> (org.wso2.carbon.identity.core 5.0.9.SNAPSHOT)
>>   To: package org.wso2.carbon.stratos.common.beans [4.4.0,5.0.0)
>>  Cannot satisfy dependency:
>>   From: Identity Core Server Feature 5.0.9.SNAPSHOT
>> (org.wso2.carbon.identity.core.server.feature.group 5.0.9.SNAPSHOT)
>>   To: org.wso2.carbon.identity.core [5.0.9.SNAPSHOT]
>>  Cannot satisfy dependency:
>>   From: Identity OAuth Common Feature 5.0.9.SNAPSHOT
>> (org.wso2.carbon.identity.oauth.common.feature.group 5.0.9.SNAPSHOT)
>>   To: org.wso2.carbon.identity.core.server.feature.group
>> [5.0.9.SNAPSHOT,6.0.0)
>>
>> Anyway I have checked the axiom version in p2-repo folder of generated
>> target folder of p2 profile gen module and it was 1.2.11.wso2v10 which is
>> indeed between [1.2.11.wso2v6,1.3.0) range. then why is this error message?
>>
>> Thanks
>>
>>
>> --
>> 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
>>
>>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



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


[Dev] P2 profile fails in MDM

2016-04-22 Thread Lakshman Udayakantha
Hi,

When version upgrading in MDM, I got below error,

Installing org.wso2.carbon.core.common.feature.group 4.4.5.
Installation failed.
Cannot complete the install because one or more required items could not be
found.
 Software being installed: Identity OAuth Common Feature 5.0.9.SNAPSHOT
(org.wso2.carbon.identity.oauth.common.feature.group 5.0.9.SNAPSHOT)
 Missing requirement: org.wso2.carbon.tenant.common 4.4.7
(org.wso2.carbon.tenant.common 4.4.7) requires 'package org.apache.axiom.om
[1.2.11.wso2v6,1.3.0)' but it could not be found
 Missing requirement: org.wso2.carbon.tenant.common 4.4.8
(org.wso2.carbon.tenant.common 4.4.8) requires 'package org.apache.axiom.om
[1.2.11.wso2v6,1.3.0)' but it could not be found
 Cannot satisfy dependency:
  From: WSO2 Carbon - Identity Core 5.0.9.SNAPSHOT
(org.wso2.carbon.identity.core 5.0.9.SNAPSHOT)
  To: package org.wso2.carbon.stratos.common.beans [4.4.0,5.0.0)
 Cannot satisfy dependency:
  From: Identity Core Server Feature 5.0.9.SNAPSHOT
(org.wso2.carbon.identity.core.server.feature.group 5.0.9.SNAPSHOT)
  To: org.wso2.carbon.identity.core [5.0.9.SNAPSHOT]
 Cannot satisfy dependency:
  From: Identity OAuth Common Feature 5.0.9.SNAPSHOT
(org.wso2.carbon.identity.oauth.common.feature.group 5.0.9.SNAPSHOT)
  To: org.wso2.carbon.identity.core.server.feature.group
[5.0.9.SNAPSHOT,6.0.0)

Anyway I have checked the axiom version in p2-repo folder of generated
target folder of p2 profile gen module and it was 1.2.11.wso2v10 which is
indeed between [1.2.11.wso2v6,1.3.0) range. then why is this error message?

Thanks


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


Re: [Dev] Shall we use latest APPM in EMM?

2016-04-07 Thread Lakshman Udayakantha
Hi Sajith,

Added some comments and fixes in code. can you have a look?

Thanks

On Wed, Apr 6, 2016 at 8:45 PM, Sajith Abeywardhana <saji...@wso2.com>
wrote:

> Hi Lakshman,
>
> I reviewed some files in PR https://github.com/wso2/carbon-appmgt/pull/250 and
> add some comments. Please have a look.
>
> Thanks,
> Sajith.
>
> On Wed, Apr 6, 2016 at 7:33 PM, Lakshman Udayakantha <lakshm...@wso2.com>
> wrote:
>
>> Hi APPM Team, EMM Team,
>>
>> I have created following pull requests [1], [2] and [3] for latest APPM
>> and EMM integration. Could you review and merge them?
>>
>> [1] https://github.com/wso2/carbon-appmgt/pull/250
>> [2] https://github.com/wso2/product-emm/pull/203
>> [3] https://github.com/wso2/carbon-device-mgt/pull/208/
>>
>> Thanks
>>
>> On Wed, Mar 23, 2016 at 6:02 PM, Lakshman Udayakantha <lakshm...@wso2.com
>> > wrote:
>>
>>> Hi All,
>>>
>>> After I have merged the APPM latest version and configuration changes
>>> from APPM to EMM and after the above code changes, publisher and store can
>>> be browsed and publish apps without any issue. But app installing on
>>> devices failed because the code which handles that part are moved to an
>>> APPM old branch(which is currently using in EMM) from EMM. So I
>>> cherry-picked those specific commits from that old branch to master branch
>>> in APPM. After that app installing on devices worked without any issue. But
>>> product app manager P2 profile generation failed with below error messages.
>>>
>>>  Software being installed: WSO2 Carbon - App Manager WSO2 MDM Feature
>>> 1.1.3.SNAPSHOT (org.wso2.carbon.appmgt.mdm.wso2mdm.feature.group
>>> 1.1.3.SNAPSHOT)
>>>  Missing requirement: org.wso2.carbon.appmgt.mdm.wso2mdm 1.1.3.SNAPSHOT
>>> (org.wso2.carbon.appmgt.mdm.wso2mdm 1.1.3.SNAPSHOT) requires 'package
>>> org.wso2.carbon.device.mgt.core.app.mgt 0.0.0' but it could not be found
>>>
>>> According to the error, It seems like we have to bundle carbon device
>>> features and lot of other features which depend on it with APPM product
>>> which is not actually used in APPM.
>>>
>>> According to the offline discussion with PrabathA, DinushaS, RuwanA, It
>>> was proposed to keep the code handled which handled app installing on
>>> devices in APPM as a separate independent feature, but not bundled with
>>> APPM product rather it bundled with EMM product.
>>>
>>> Thanks
>>>
>>>
>>> On Mon, Mar 21, 2016 at 4:59 PM, Dinusha Senanayaka <dinu...@wso2.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Mon, Mar 21, 2016 at 4:42 PM, Lakshman Udayakantha <
>>>> lakshm...@wso2.com> wrote:
>>>>
>>>>> Hi Dinusha,
>>>>>
>>>>> Updated the pull with your suggestions.
>>>>>
>>>> Thanks. Merged.
>>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>> On Mon, Mar 21, 2016 at 2:57 PM, Dinusha Senanayaka <dinu...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Lakshman,
>>>>>>
>>>>>> Thanks for fixing this. Added few comments to PR. Please update.
>>>>>>
>>>>>> Regards,
>>>>>> Dinusha.
>>>>>>
>>>>>> On Mon, Mar 21, 2016 at 2:40 PM, Lakshman Udayakantha <
>>>>>> lakshm...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Dinusha,
>>>>>>>
>>>>>>> I have moved subscriber persisting code [1] to subscription creation
>>>>>>> moment from login moment. Could you review and merge it.
>>>>>>>
>>>>>>> [1] https://github.com/wso2/carbon-appmgt/pull/245/files
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Mar 18, 2016 at 9:30 PM, Dinusha Senanayaka <
>>>>>>> dinu...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi All,
>>>>>>>>
>>>>>>>> This is something we got from the APIM code and we need to refactor
>>>>>>>> it. In their case, users login to store can create oauth app and 
>>>>>>>> subscribe
>>>>>>>> to APIs. App creation also should be done by a subscriber and that'

[Dev] Why we maintain different kind of device identifiers in device management core

2016-04-07 Thread Lakshman Udayakantha
Hi,

We have DeviceIdentifier[1] object and deviceIdentifier String field[2] in
Device class. IMO we should stick to one Identifier. WDYT?

[1]
https://github.com/wso2/carbon-device-mgt/blob/master/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/DeviceIdentifier.java
[2]
https://github.com/wso2/carbon-device-mgt/blob/master/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/Device.java


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


Re: [Dev] Shall we use latest APPM in EMM?

2016-04-06 Thread Lakshman Udayakantha
Hi APPM Team, EMM Team,

I have created following pull requests [1], [2] and [3] for latest APPM and
EMM integration. Could you review and merge them?

[1] https://github.com/wso2/carbon-appmgt/pull/250
[2] https://github.com/wso2/product-emm/pull/203
[3] https://github.com/wso2/carbon-device-mgt/pull/208/

Thanks

On Wed, Mar 23, 2016 at 6:02 PM, Lakshman Udayakantha <lakshm...@wso2.com>
wrote:

> Hi All,
>
> After I have merged the APPM latest version and configuration changes from
> APPM to EMM and after the above code changes, publisher and store can be
> browsed and publish apps without any issue. But app installing on devices
> failed because the code which handles that part are moved to an APPM old
> branch(which is currently using in EMM) from EMM. So I cherry-picked those
> specific commits from that old branch to master branch in APPM. After that
> app installing on devices worked without any issue. But product app manager
> P2 profile generation failed with below error messages.
>
>  Software being installed: WSO2 Carbon - App Manager WSO2 MDM Feature
> 1.1.3.SNAPSHOT (org.wso2.carbon.appmgt.mdm.wso2mdm.feature.group
> 1.1.3.SNAPSHOT)
>  Missing requirement: org.wso2.carbon.appmgt.mdm.wso2mdm 1.1.3.SNAPSHOT
> (org.wso2.carbon.appmgt.mdm.wso2mdm 1.1.3.SNAPSHOT) requires 'package
> org.wso2.carbon.device.mgt.core.app.mgt 0.0.0' but it could not be found
>
> According to the error, It seems like we have to bundle carbon device
> features and lot of other features which depend on it with APPM product
> which is not actually used in APPM.
>
> According to the offline discussion with PrabathA, DinushaS, RuwanA, It
> was proposed to keep the code handled which handled app installing on
> devices in APPM as a separate independent feature, but not bundled with
> APPM product rather it bundled with EMM product.
>
> Thanks
>
>
> On Mon, Mar 21, 2016 at 4:59 PM, Dinusha Senanayaka <dinu...@wso2.com>
> wrote:
>
>>
>>
>> On Mon, Mar 21, 2016 at 4:42 PM, Lakshman Udayakantha <lakshm...@wso2.com
>> > wrote:
>>
>>> Hi Dinusha,
>>>
>>> Updated the pull with your suggestions.
>>>
>> Thanks. Merged.
>>
>>>
>>> Thanks
>>>
>>> On Mon, Mar 21, 2016 at 2:57 PM, Dinusha Senanayaka <dinu...@wso2.com>
>>> wrote:
>>>
>>>> Hi Lakshman,
>>>>
>>>> Thanks for fixing this. Added few comments to PR. Please update.
>>>>
>>>> Regards,
>>>> Dinusha.
>>>>
>>>> On Mon, Mar 21, 2016 at 2:40 PM, Lakshman Udayakantha <
>>>> lakshm...@wso2.com> wrote:
>>>>
>>>>> Hi Dinusha,
>>>>>
>>>>> I have moved subscriber persisting code [1] to subscription creation
>>>>> moment from login moment. Could you review and merge it.
>>>>>
>>>>> [1] https://github.com/wso2/carbon-appmgt/pull/245/files
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>> On Fri, Mar 18, 2016 at 9:30 PM, Dinusha Senanayaka <dinu...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> This is something we got from the APIM code and we need to refactor
>>>>>> it. In their case, users login to store can create oauth app and 
>>>>>> subscribe
>>>>>> to APIs. App creation also should be done by a subscriber and that's why
>>>>>> user is added to SUBSCRIBER table at the login. Then SUBSCRIPTION table 
>>>>>> is
>>>>>> populate when the actual subscription happen to API.
>>>>>>
>>>>>> Anyway, AppM do not have this app creation concept in the store.
>>>>>> Hence we could move this SUBSCRIBER, SUBSCRIPTION both table inserts to
>>>>>> where actual subscription happens.
>>>>>>
>>>>>> Regards,
>>>>>> Dinusha.
>>>>>>
>>>>>> On Fri, Mar 18, 2016 at 8:33 PM, Lahiru Cooray <lahi...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> +1 for Ruwan's suggestion.
>>>>>>> Further in current model, Subscriptions(APM_SUBSCRIPTION) are mapped
>>>>>>> to a Application(APM_APPLICATION) and Application is bound to a 
>>>>>>> subscriber
>>>>>>> (APM_SUBSCRIBER)
>>>>>>>
>>>>>>> Subscriber should ideally contain the users who are subscribed t

Re: [Dev] Shall we use latest APPM in EMM?

2016-03-23 Thread Lakshman Udayakantha
Hi All,

After I have merged the APPM latest version and configuration changes from
APPM to EMM and after the above code changes, publisher and store can be
browsed and publish apps without any issue. But app installing on devices
failed because the code which handles that part are moved to an APPM old
branch(which is currently using in EMM) from EMM. So I cherry-picked those
specific commits from that old branch to master branch in APPM. After that
app installing on devices worked without any issue. But product app manager
P2 profile generation failed with below error messages.

 Software being installed: WSO2 Carbon - App Manager WSO2 MDM Feature
1.1.3.SNAPSHOT (org.wso2.carbon.appmgt.mdm.wso2mdm.feature.group
1.1.3.SNAPSHOT)
 Missing requirement: org.wso2.carbon.appmgt.mdm.wso2mdm 1.1.3.SNAPSHOT
(org.wso2.carbon.appmgt.mdm.wso2mdm 1.1.3.SNAPSHOT) requires 'package
org.wso2.carbon.device.mgt.core.app.mgt 0.0.0' but it could not be found

According to the error, It seems like we have to bundle carbon device
features and lot of other features which depend on it with APPM product
which is not actually used in APPM.

According to the offline discussion with PrabathA, DinushaS, RuwanA, It was
proposed to keep the code handled which handled app installing on devices
in APPM as a separate independent feature, but not bundled with APPM
product rather it bundled with EMM product.

Thanks


On Mon, Mar 21, 2016 at 4:59 PM, Dinusha Senanayaka <dinu...@wso2.com>
wrote:

>
>
> On Mon, Mar 21, 2016 at 4:42 PM, Lakshman Udayakantha <lakshm...@wso2.com>
> wrote:
>
>> Hi Dinusha,
>>
>> Updated the pull with your suggestions.
>>
> Thanks. Merged.
>
>>
>> Thanks
>>
>> On Mon, Mar 21, 2016 at 2:57 PM, Dinusha Senanayaka <dinu...@wso2.com>
>> wrote:
>>
>>> Hi Lakshman,
>>>
>>> Thanks for fixing this. Added few comments to PR. Please update.
>>>
>>> Regards,
>>> Dinusha.
>>>
>>> On Mon, Mar 21, 2016 at 2:40 PM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
>>>> Hi Dinusha,
>>>>
>>>> I have moved subscriber persisting code [1] to subscription creation
>>>> moment from login moment. Could you review and merge it.
>>>>
>>>> [1] https://github.com/wso2/carbon-appmgt/pull/245/files
>>>>
>>>> Thanks
>>>>
>>>>
>>>> On Fri, Mar 18, 2016 at 9:30 PM, Dinusha Senanayaka <dinu...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> This is something we got from the APIM code and we need to refactor
>>>>> it. In their case, users login to store can create oauth app and subscribe
>>>>> to APIs. App creation also should be done by a subscriber and that's why
>>>>> user is added to SUBSCRIBER table at the login. Then SUBSCRIPTION table is
>>>>> populate when the actual subscription happen to API.
>>>>>
>>>>> Anyway, AppM do not have this app creation concept in the store. Hence
>>>>> we could move this SUBSCRIBER, SUBSCRIPTION both table inserts to where
>>>>> actual subscription happens.
>>>>>
>>>>> Regards,
>>>>> Dinusha.
>>>>>
>>>>> On Fri, Mar 18, 2016 at 8:33 PM, Lahiru Cooray <lahi...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> +1 for Ruwan's suggestion.
>>>>>> Further in current model, Subscriptions(APM_SUBSCRIPTION) are mapped
>>>>>> to a Application(APM_APPLICATION) and Application is bound to a 
>>>>>> subscriber
>>>>>> (APM_SUBSCRIBER)
>>>>>>
>>>>>> Subscriber should ideally contain the users who are subscribed to an
>>>>>> App.
>>>>>> But currently APM_SUBSCRIBER table getting updated when an user log
>>>>>> in to the store (which is not ideal)
>>>>>> This operation should be moved to just before user get subscribed to
>>>>>> an App.
>>>>>>
>>>>>>
>>>>>> On Fri, Mar 18, 2016 at 5:12 PM, Ruwan Abeykoon <ruw...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi All,
>>>>>>> I think APM_SUBSCRIBER is used to check subscription on WebApps or
>>>>>>> Sites.
>>>>>>> I think adding subscriber to this table can be moved to place where
>>>>>>> the subscription is added. We might have to revisit and change 

Re: [Dev] Shall we use latest APPM in EMM?

2016-03-21 Thread Lakshman Udayakantha
Hi Dinusha,

Updated the pull with your suggestions.

Thanks

On Mon, Mar 21, 2016 at 2:57 PM, Dinusha Senanayaka <dinu...@wso2.com>
wrote:

> Hi Lakshman,
>
> Thanks for fixing this. Added few comments to PR. Please update.
>
> Regards,
> Dinusha.
>
> On Mon, Mar 21, 2016 at 2:40 PM, Lakshman Udayakantha <lakshm...@wso2.com>
> wrote:
>
>> Hi Dinusha,
>>
>> I have moved subscriber persisting code [1] to subscription creation
>> moment from login moment. Could you review and merge it.
>>
>> [1] https://github.com/wso2/carbon-appmgt/pull/245/files
>>
>> Thanks
>>
>>
>> On Fri, Mar 18, 2016 at 9:30 PM, Dinusha Senanayaka <dinu...@wso2.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> This is something we got from the APIM code and we need to refactor it.
>>> In their case, users login to store can create oauth app and subscribe to
>>> APIs. App creation also should be done by a subscriber and that's why user
>>> is added to SUBSCRIBER table at the login. Then SUBSCRIPTION table is
>>> populate when the actual subscription happen to API.
>>>
>>> Anyway, AppM do not have this app creation concept in the store. Hence
>>> we could move this SUBSCRIBER, SUBSCRIPTION both table inserts to where
>>> actual subscription happens.
>>>
>>> Regards,
>>> Dinusha.
>>>
>>> On Fri, Mar 18, 2016 at 8:33 PM, Lahiru Cooray <lahi...@wso2.com> wrote:
>>>
>>>> +1 for Ruwan's suggestion.
>>>> Further in current model, Subscriptions(APM_SUBSCRIPTION) are mapped to
>>>> a Application(APM_APPLICATION) and Application is bound to a subscriber
>>>> (APM_SUBSCRIBER)
>>>>
>>>> Subscriber should ideally contain the users who are subscribed to an
>>>> App.
>>>> But currently APM_SUBSCRIBER table getting updated when an user log in
>>>> to the store (which is not ideal)
>>>> This operation should be moved to just before user get subscribed to an
>>>> App.
>>>>
>>>>
>>>> On Fri, Mar 18, 2016 at 5:12 PM, Ruwan Abeykoon <ruw...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi All,
>>>>> I think APM_SUBSCRIBER is used to check subscription on WebApps or
>>>>> Sites.
>>>>> I think adding subscriber to this table can be moved to place where
>>>>> the subscription is added. We might have to revisit and change the SQL
>>>>> queries which is used to check the subscriptions.
>>>>>
>>>>> Cheers,
>>>>> Ruwan
>>>>>
>>>>> On Fri, Mar 18, 2016 at 4:49 PM, Lakshman Udayakantha <
>>>>> lakshm...@wso2.com> wrote:
>>>>>
>>>>>> Hi Dinusha,
>>>>>>
>>>>>> When user is going to login to store, user will add if does not
>>>>>> exist, to a table called APM_SUBSCRIBER . This code snippet has removed 
>>>>>> in
>>>>>> EMM store (in APPM 1.1.1 version). That's why earlier this problem is not
>>>>>> raised. Anyway what is the purpose of adding user to the APM_SUBSCRIBER
>>>>>> table? Note that this table is the only dependant table from APPM to EMM.
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> On Fri, Mar 18, 2016 at 3:01 PM, Prabath Abeysekera <
>>>>>> praba...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Dinusha,
>>>>>>>
>>>>>>> On Fri, Mar 18, 2016 at 2:54 PM, Dinusha Senanayaka <
>>>>>>> dinu...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi Prabath,
>>>>>>>>
>>>>>>>> On Fri, Mar 18, 2016 at 2:34 PM, Prabath Abeysekera <
>>>>>>>> praba...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Dinusha,
>>>>>>>>>
>>>>>>>>> On Fri, Mar 18, 2016 at 2:19 PM, Dinusha Senanayaka <
>>>>>>>>> dinu...@wso2.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hi Lakshman,
>>>>>>>>>>
>>>>>>>>>> On Fri, Mar 18, 2016 at 2:08 PM, Lakshman Udayakantha <
>>>>>>>>>> lakshm...@wso2.com> wrote:
>>>>>>>>>>
>>&g

Re: [Dev] Shall we use latest APPM in EMM?

2016-03-21 Thread Lakshman Udayakantha
Hi Dinusha,

I have moved subscriber persisting code [1] to subscription creation moment
from login moment. Could you review and merge it.

[1] https://github.com/wso2/carbon-appmgt/pull/245/files

Thanks


On Fri, Mar 18, 2016 at 9:30 PM, Dinusha Senanayaka <dinu...@wso2.com>
wrote:

> Hi All,
>
> This is something we got from the APIM code and we need to refactor it. In
> their case, users login to store can create oauth app and subscribe to
> APIs. App creation also should be done by a subscriber and that's why user
> is added to SUBSCRIBER table at the login. Then SUBSCRIPTION table is
> populate when the actual subscription happen to API.
>
> Anyway, AppM do not have this app creation concept in the store. Hence we
> could move this SUBSCRIBER, SUBSCRIPTION both table inserts to where actual
> subscription happens.
>
> Regards,
> Dinusha.
>
> On Fri, Mar 18, 2016 at 8:33 PM, Lahiru Cooray <lahi...@wso2.com> wrote:
>
>> +1 for Ruwan's suggestion.
>> Further in current model, Subscriptions(APM_SUBSCRIPTION) are mapped to a
>> Application(APM_APPLICATION) and Application is bound to a subscriber
>> (APM_SUBSCRIBER)
>>
>> Subscriber should ideally contain the users who are subscribed to an App.
>> But currently APM_SUBSCRIBER table getting updated when an user log in to
>> the store (which is not ideal)
>> This operation should be moved to just before user get subscribed to an
>> App.
>>
>>
>> On Fri, Mar 18, 2016 at 5:12 PM, Ruwan Abeykoon <ruw...@wso2.com> wrote:
>>
>>> Hi All,
>>> I think APM_SUBSCRIBER is used to check subscription on WebApps or
>>> Sites.
>>> I think adding subscriber to this table can be moved to place where the
>>> subscription is added. We might have to revisit and change the SQL queries
>>> which is used to check the subscriptions.
>>>
>>> Cheers,
>>> Ruwan
>>>
>>> On Fri, Mar 18, 2016 at 4:49 PM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
>>>> Hi Dinusha,
>>>>
>>>> When user is going to login to store, user will add if does not exist,
>>>> to a table called APM_SUBSCRIBER . This code snippet has removed in EMM
>>>> store (in APPM 1.1.1 version). That's why earlier this problem is not
>>>> raised. Anyway what is the purpose of adding user to the APM_SUBSCRIBER
>>>> table? Note that this table is the only dependant table from APPM to EMM.
>>>>
>>>> Thanks
>>>>
>>>> On Fri, Mar 18, 2016 at 3:01 PM, Prabath Abeysekera <praba...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Dinusha,
>>>>>
>>>>> On Fri, Mar 18, 2016 at 2:54 PM, Dinusha Senanayaka <dinu...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Prabath,
>>>>>>
>>>>>> On Fri, Mar 18, 2016 at 2:34 PM, Prabath Abeysekera <
>>>>>> praba...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Dinusha,
>>>>>>>
>>>>>>> On Fri, Mar 18, 2016 at 2:19 PM, Dinusha Senanayaka <
>>>>>>> dinu...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi Lakshman,
>>>>>>>>
>>>>>>>> On Fri, Mar 18, 2016 at 2:08 PM, Lakshman Udayakantha <
>>>>>>>> lakshm...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I am looking into this. After changing the APP Manager feature
>>>>>>>>> versions in EMM, publisher works as expected. It can create and 
>>>>>>>>> publish
>>>>>>>>> mobile apps without any issue. But I can't even login to store. 
>>>>>>>>> According
>>>>>>>>> to backend error, It seems like EMM wants APP Manager related db 
>>>>>>>>> tables
>>>>>>>>> too. I have added APP Manager tables to AM datasource and after that 
>>>>>>>>> I can
>>>>>>>>> login to store without any issue and published apps also shown in 
>>>>>>>>> there.
>>>>>>>>> Anyway is that ok to add APP Manager tables to AM datasource?
>>>>>>>>>
>>>>>>>>
>>>>>>>> I think it should be fine to include AppM datas

Re: [Dev] Shall we use latest APPM in EMM?

2016-03-19 Thread Lakshman Udayakantha
Hi,

I am looking into this. After changing the APP Manager feature versions in
EMM, publisher works as expected. It can create and publish mobile apps
without any issue. But I can't even login to store. According to backend
error, It seems like EMM wants APP Manager related db tables too. I have
added APP Manager tables to AM datasource and after that I can login to
store without any issue and published apps also shown in there. Anyway is
that ok to add APP Manager tables to AM datasource?

Thanks

On Thu, Mar 17, 2016 at 2:43 PM, Milan Perera <mi...@wso2.com> wrote:

> Hi Dinusha,
>
> I totally agree to what you said. Its better if we can do this as soon as
> possible.
>
> Regards,
>
> On Thu, Mar 17, 2016 at 2:31 PM, Dinusha Senanayaka <dinu...@wso2.com>
> wrote:
>
>> Hi Milan,
>>
>> IMO, if we have version conflicts we should try to fix it. What we have
>> done so far is not correct. We have created a separate branch of AppM for
>> EMM by manually removing the web app related UIs. We have done it for the
>> time being, but this won't scale when it comes to support/maintenance and
>> feature development. With the feature that Lakshman has done, we could use
>> the same code base for both AppM and EMM.
>>
>> Regards,
>> Dinusha.
>>
>> On Thu, Mar 17, 2016 at 2:11 PM, Milan Perera <mi...@wso2.com> wrote:
>>
>>> Hi Lakshman,
>>>
>>> As I remember, we have tried it before and in the previous attempt of
>>> migrating to the latest APPM feature was failed due to some conflicts in
>>> dependencies that were unable to resolve at that time. If im not mistaken,
>>> it had conflicts with the IS version which we use in the EMM 200.
>>>
>>> Regards,
>>>
>>> On Thu, Mar 17, 2016 at 7:25 AM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
>>>> Hi Chathura,
>>>>
>>>> Yes. It is not because of asset turning off/on feature. I meant that UI
>>>> has changed a lot in latest APP Manager recently and APPM team didn't get
>>>> much time to resolve all the bugs reported. As per the offline discussion
>>>> with LahiruC lot of mobile features has broken with new UI and they are
>>>> fixing it now. So IMO replacing new features may introduce new bugs to
>>>> existing APP UI in EMM. Anyway if new UI will go to a high stable position
>>>> and APPM release is not going to conflict with EMM release this will be
>>>> possible. right? WDYT?
>>>>
>>>> Thanks
>>>>
>>>> On Thu, Mar 17, 2016 at 12:21 AM, Chathura Dilan <chathu...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Lakshman,
>>>>>
>>>>> ​​This feature will not introduce any bugs in store or publisher,
>>>>> since it only on/off assets types.  But we have to test all scenarios of
>>>>> EMM and AppM integration.
>>>>>
>>>>> On Wed, Mar 16, 2016 at 7:03 AM, Lakshman Udayakantha <
>>>>> lakshm...@wso2.com> wrote:
>>>>>
>>>>>> [Adding Dev]
>>>>>>
>>>>>> On Wed, Mar 16, 2016 at 5:40 PM, Prabath Abeysekera <
>>>>>> praba...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Lakshman,
>>>>>>>
>>>>>>> Of course we should. Would you be able to move this discussion to
>>>>>>> dev@ so we can discuss about any possible concerns, etc there.
>>>>>>>
>>>>>>> Cheers,
>>>>>>> Prabath
>>>>>>>
>>>>>>> On Wed, Mar 16, 2016 at 2:53 PM, Lakshman Udayakantha <
>>>>>>> lakshm...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi EMM Team,
>>>>>>>>
>>>>>>>> It can be turned off asset types which are not in use in latest APP
>>>>>>>> Manager. There is a configuration called EnabledAssetTypeList in which 
>>>>>>>> we
>>>>>>>> can provide only mobileapp to enable mobile apps only in publisher and
>>>>>>>> store. So shall we do the $subject, for the sake of getting future
>>>>>>>> improvements and bug fixes in APPM.
>>>>>>>>
>>>>>>>> @APPM Team: Are there any bad consequences of doing $subject like
>>>>>>>> introducing new bugs to existing store and publisher in EMM(APPM 
>&

Re: [Dev] Shall we use latest APPM in EMM?

2016-03-19 Thread Lakshman Udayakantha
Hi Chathura,

Yes. It is not because of asset turning off/on feature. I meant that UI has
changed a lot in latest APP Manager recently and APPM team didn't get much
time to resolve all the bugs reported. As per the offline discussion with
LahiruC lot of mobile features has broken with new UI and they are fixing
it now. So IMO replacing new features may introduce new bugs to existing
APP UI in EMM. Anyway if new UI will go to a high stable position and APPM
release is not going to conflict with EMM release this will be possible.
right? WDYT?

Thanks

On Thu, Mar 17, 2016 at 12:21 AM, Chathura Dilan <chathu...@wso2.com> wrote:

> Hi Lakshman,
>
> ​​This feature will not introduce any bugs in store or publisher, since it
> only on/off assets types.  But we have to test all scenarios of EMM and
> AppM integration.
>
> On Wed, Mar 16, 2016 at 7:03 AM, Lakshman Udayakantha <lakshm...@wso2.com>
> wrote:
>
>> [Adding Dev]
>>
>> On Wed, Mar 16, 2016 at 5:40 PM, Prabath Abeysekera <praba...@wso2.com>
>> wrote:
>>
>>> Hi Lakshman,
>>>
>>> Of course we should. Would you be able to move this discussion to dev@
>>> so we can discuss about any possible concerns, etc there.
>>>
>>> Cheers,
>>> Prabath
>>>
>>> On Wed, Mar 16, 2016 at 2:53 PM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
>>>> Hi EMM Team,
>>>>
>>>> It can be turned off asset types which are not in use in latest APP
>>>> Manager. There is a configuration called EnabledAssetTypeList in which we
>>>> can provide only mobileapp to enable mobile apps only in publisher and
>>>> store. So shall we do the $subject, for the sake of getting future
>>>> improvements and bug fixes in APPM.
>>>>
>>>> @APPM Team: Are there any bad consequences of doing $subject like
>>>> introducing new bugs to existing store and publisher in EMM(APPM feature
>>>> version 1.1.1)?
>>>>
>>>> Thanks
>>>> --
>>>> Lakshman Udayakantha
>>>> WSO2 Inc. www.wso2.com
>>>> lean.enterprise.middleware
>>>> Mobile: *0714388124 <0714388124>*
>>>>
>>>>
>>>
>>>
>>> --
>>> Prabath Abeysekara
>>> Technical Lead
>>> WSO2 Inc.
>>> Email: praba...@wso2.com
>>> Mobile: +94774171471
>>>
>>
>>
>>
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0714388124*
>>
>>
>
>
> --
> Regards,
>
> Chatura Dilan Perera
> *Senior Software Engineer** - WSO2 Inc.*
> www.dilan.me
>



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


Re: [Dev] Shall we use latest APPM in EMM?

2016-03-19 Thread Lakshman Udayakantha
Hi Dinusha,

When user is going to login to store, user will add if does not exist, to a
table called APM_SUBSCRIBER . This code snippet has removed in EMM store
(in APPM 1.1.1 version). That's why earlier this problem is not raised.
Anyway what is the purpose of adding user to the APM_SUBSCRIBER table? Note
that this table is the only dependant table from APPM to EMM.

Thanks

On Fri, Mar 18, 2016 at 3:01 PM, Prabath Abeysekera <praba...@wso2.com>
wrote:

> Hi Dinusha,
>
> On Fri, Mar 18, 2016 at 2:54 PM, Dinusha Senanayaka <dinu...@wso2.com>
> wrote:
>
>> Hi Prabath,
>>
>> On Fri, Mar 18, 2016 at 2:34 PM, Prabath Abeysekera <praba...@wso2.com>
>> wrote:
>>
>>> Hi Dinusha,
>>>
>>> On Fri, Mar 18, 2016 at 2:19 PM, Dinusha Senanayaka <dinu...@wso2.com>
>>> wrote:
>>>
>>>> Hi Lakshman,
>>>>
>>>> On Fri, Mar 18, 2016 at 2:08 PM, Lakshman Udayakantha <
>>>> lakshm...@wso2.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I am looking into this. After changing the APP Manager feature
>>>>> versions in EMM, publisher works as expected. It can create and publish
>>>>> mobile apps without any issue. But I can't even login to store. According
>>>>> to backend error, It seems like EMM wants APP Manager related db tables
>>>>> too. I have added APP Manager tables to AM datasource and after that I can
>>>>> login to store without any issue and published apps also shown in there.
>>>>> Anyway is that ok to add APP Manager tables to AM datasource?
>>>>>
>>>>
>>>> I think it should be fine to include AppM datasource in EMM. Currently
>>>> we don't need it for mobile apps. But there could be scenarios in future we
>>>> need AppM db for mobile apps as well.
>>>>
>>>
>>> If "mobile application provisioning plugin" doesn't require persisting
>>> information, why exactly do we need to add tables, etc just to get the
>>> store to work?
>>>
>>
>> This we need to check. AFAIK, EMM is installing only appm.store,
>> appm.publisher, appm.mobile features which is not depend on appm.core
>> feature which provides the db. May be we have installed additional feature ?
>>
>
> That can possibly be the case. Thanks for the insight.
>
> @Lakshman, would you be able to double check if this is what's demanding
> us to install these persistent entities? If that's the case, we might have
> to revisit the list of features we've put into p2-profile around app-mgt
> functionalities.
>
> Cheers,
> Prabath
>
>
>>
>> Regards,
>> Dinusha.
>>
>>>
>>> Cheers,
>>> Prabath
>>>
>>>
>>>>
>>>> Regards,
>>>> Dinusha.
>>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>> On Thu, Mar 17, 2016 at 2:43 PM, Milan Perera <mi...@wso2.com> wrote:
>>>>>
>>>>>> Hi Dinusha,
>>>>>>
>>>>>> I totally agree to what you said. Its better if we can do this as
>>>>>> soon as possible.
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> On Thu, Mar 17, 2016 at 2:31 PM, Dinusha Senanayaka <dinu...@wso2.com
>>>>>> > wrote:
>>>>>>
>>>>>>> Hi Milan,
>>>>>>>
>>>>>>> IMO, if we have version conflicts we should try to fix it. What we
>>>>>>> have done so far is not correct. We have created a separate branch of 
>>>>>>> AppM
>>>>>>> for EMM by manually removing the web app related UIs. We have done it 
>>>>>>> for
>>>>>>> the time being, but this won't scale when it comes to 
>>>>>>> support/maintenance
>>>>>>> and feature development. With the feature that Lakshman has done, we 
>>>>>>> could
>>>>>>> use the same code base for both AppM and EMM.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Dinusha.
>>>>>>>
>>>>>>> On Thu, Mar 17, 2016 at 2:11 PM, Milan Perera <mi...@wso2.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi Lakshman,
>>>>>>>>
>>>>>>>> As I remember, we have tried it before and in th

[Dev] [APPM][STORE] API for get all subscribed apps of a user

2016-03-08 Thread Lakshman Udayakantha
Hi APP Manager Team,

Do we have $subject in master branch? I checked in [1] and not found
similar API in APP Manager 1.1.0  version.

[1] https://docs.wso2.com/display/APPM110/Store+APIs

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


[Dev] [EMM][APPM]How to call from emm jaggery apps to publisher jaggery apps

2016-02-24 Thread Lakshman Udayakantha
Hi,

I have called using below code snippet a store rest API.

var serviceURL =
"/publisher/api/asset/get/uuid/mobileapp"+provider+"/"+name+"/"+version;
invokerUtil.get(
serviceURL,
function (data) {
console.log("call succeeded...!");
},
function (data) {
console.log("error occured.!!!");
}
);


This call is done in a javascript method from emm to publisher jaggery app.
But this call will fail with 401 unauthorised error. How do I get
authenticate this call?

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


Re: [Dev] [Build] Compilation fails with CNF

2016-02-16 Thread Lakshman Udayakantha
Hi Dumidu,

It seems like some jar in your local maven repo is corrupted. Just delete
the maven local repo and try again.

Thanks

On Tue, Feb 16, 2016 at 12:28 PM, Dumidu Handakumbura <dum...@wso2.com>
wrote:

> Hi Devs,
>
> DSS 3.5.0(master) build fails for with[1]. I have close to an empty .m2
> repo on my machine. How can I get this built?
>
> [1] - [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.18:test (default-test) on
> project org.wso2.dataservices.styles: Execution default-test of goal
> org.apache.maven.plugins:maven-surefire-plugin:2.18:test failed: Unable to
> load the mojo 'test' in the plugin
> 'org.apache.maven.plugins:maven-surefire-plugin:2.18'. A required class is
> missing: org/apache/maven/plugin/surefire/SurefireReportParameters
>
> [WARNING] Error injecting: org.apache.maven.plugin.surefire.SurefirePlugin
> java.lang.TypeNotPresentException: Type
> org.apache.maven.plugin.surefire.SurefirePlugin not present
> at
> org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:115)
> at org.eclipse.sisu.space.NamedClass.load(NamedClass.java:46)
> at
> org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
> at
> com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
> at
> com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55)
> at
> com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
>
> ...
> ...
> at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
> at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
> at
> org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:107)
> ... 41 more
> Caused by: java.lang.ClassNotFoundException:
> org.apache.maven.plugin.surefire.SurefireReportParameters
> at
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
> at
> org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
> at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
> at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
> ... 56 more
> ...
> ...
>
> Thank,
>
> --
> *Dumidu Handakumbura*
> Software Engineer - QA
> WSO2 Inc; http://www.wso2.com/.
> Mobile;
> *+9406740 <%2B9406740> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] [AF] Fixing (APPFAC-3217) - Support APIM group subscription in App Factory

2016-01-15 Thread Lakshman Udayakantha
 each App, user would need to make a trip back to the AppF. It
>>>>> might be possible eliminate step 6, and if it's so, we might have to 
>>>>> change
>>>>> subscription.jag (and several other jags) to clear out the groupId set in
>>>>> the session, and set the one coming with the request. There are few points
>>>>> that needs to be discussed more with the above steps, but this would be 
>>>>> the
>>>>> way it would look like.
>>>>>
>>>>> It's true that the default group Id extractor gets the group Id from
>>>>>  http://wso2.org/claims/organization claim, but it doesn't have to be
>>>>> like that in every case. In the very first time it was written thinking
>>>>> that Group ID is coming with the SAML Response sent back from IDp.
>>>>>
>>>>> On Wed, Jan 13, 2016 at 6:37 PM, Danushka Fernando <danush...@wso2.com
>>>>> > wrote:
>>>>>
>>>>>> Hi Nuwan
>>>>>> The issue of adding extension to cloud is we have to add it to API
>>>>>> cloud and it will affect all API cloud users who don't use APP cloud 
>>>>>> also.
>>>>>> And since multiple groups per user seems to be a valid use case how
>>>>>> complex will this be to implement?
>>>>>>
>>>>>> Thanks & Regards
>>>>>> Danushka Fernando
>>>>>> Senior Software Engineer
>>>>>> WSO2 inc. http://wso2.com/
>>>>>> Mobile : +94716332729
>>>>>>
>>>>>>
>>>>>> On Jan 13, 2016 3:53 PM, "Lakshman Udayakantha" <lakshm...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Nuwan,
>>>>>>>
>>>>>>> Even though we have extracted multiple group ids using group id
>>>>>>> extractor, DAO classes use one group id to extract the applications and
>>>>>>> subscriptions. I think we have to implement to get all the applications 
>>>>>>> and
>>>>>>> subscriptions if user are in several groups.
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> On Wed, Jan 13, 2016 at 2:18 PM, Nuwan Dias <nuw...@wso2.com> wrote:
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Jan 13, 2016 at 12:32 PM, Amalka Subasinghe <
>>>>>>>> ama...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Nuwan,
>>>>>>>>>
>>>>>>>>> We need APIM support to show subscribed API, when there's 1 user
>>>>>>>>> assigned to 2 user groups.
>>>>>>>>>
>>>>>>>>> *Our current AF APIM integration flow works as follows.*
>>>>>>>>>
>>>>>>>>> let's say we have a tenant foo.com and users - appowner1 and
>>>>>>>>> developer1
>>>>>>>>> App owner1 creates an AF application 'AFapp1' and assign devloper1
>>>>>>>>> as a developer of that application.
>>>>>>>>> according to the current implementation only the appowner1 can
>>>>>>>>> subscribe to the APIM API.
>>>>>>>>> [When appowner1 login to the APIM, we create an application
>>>>>>>>> 'AFapp1' in APIM side and selecting that application appowner1 can
>>>>>>>>> subscribe to an API]
>>>>>>>>> Then appowner1 can see subscribed APIs in AF side, where
>>>>>>>>> developers can't see that API.
>>>>>>>>>
>>>>>>>>> So we need to implement APIM group subscriptions in AF.
>>>>>>>>> to implement it we have to set the organization claim (as eg:
>>>>>>>>> 'foo.com_AFapp1') for appowner1 and developer1.
>>>>>>>>> Then both users can see the subscribed API.
>>>>>>>>>
>>>>>>>>> *We have another use case;*
>>>>>>>>> basically our user grouping happens per AF application and 1 user
>>>>>>>>> can be in 2 groups
>>>>>>>>>
>>>>>>>>> Let's say appowner1 cre

Re: [Dev] [AF] Fixing (APPFAC-3217) - Support APIM group subscription in App Factory

2016-01-15 Thread Lakshman Udayakantha
Hi Danushka,

I think you are talking about the second option here. In that case, I'm not
clear why you can't add any customisation to the API Manager in cloud. The
only customisation here is changing the jaggery app to adding a sub theme.

Thanks

On Sat, Jan 16, 2016 at 8:18 AM, Danushka Fernando <danush...@wso2.com>
wrote:

> Hi Lakshman et all
> The problem is we are doing this in cloud and the API manager we are
> talking here is API cloud. So we cannot customize APIM there. That's why we
> are looking for OOTB solutions available.
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Sat, Jan 16, 2016 at 12:19 AM, Lakshman Udayakantha <lakshm...@wso2.com
> > wrote:
>
>> Hi Amalka,
>>
>> I had a offline chat with AmilaD and some discussed things were as
>> follows.
>> The idea of a user being in many groups is arose when we do a design
>> review in the beginning and in the requirement also. But It was ignored and
>> implemented this in a way in which user is in one group because if you want
>> to consider a user should be in many groups, you can achieve it in
>> following two ways
>>
>> 1. User will login on behalf of one group. In that case groupId will be
>> extracted from login request and apps and subscriptions belongs to that
>> group, will be shown to him. user will login on behalf of another group.
>> then user will see the apps and subscriptions belongs to that group in the
>> same as before.
>>
>> 2. You can create a sub theme in APIM store for this. In sub theme you
>> have to implement the following logic.
>> i. get the groupIds via login response.
>> ii. retrieve apps and subscriptions for each groupId.
>> iii. show them on store in relevant places.
>> need to check on the feasibility on this option.
>>
>> Thanks
>>
>> On Thu, Jan 14, 2016 at 12:12 PM, Amila De Silva <ami...@wso2.com> wrote:
>>
>>> You have to set an empty value for the claim.
>>>
>>> On Thu, Jan 14, 2016 at 12:09 PM, Amalka Subasinghe <ama...@wso2.com>
>>> wrote:
>>>
>>>> Hi Amila
>>>>
>>>> I don't understand how appowner sees all the Apps which belongs to
>>>> different groups on same APIM screen.
>>>> I tested this in APIM setup, but when a one user has 2 groupIds, he/she
>>>> could see the Default application only.
>>>>
>>>>
>>>> On Thu, Jan 14, 2016 at 10:28 AM, Amila De Silva <ami...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Amalka,
>>>>>
>>>>> Apparently when the AppOwner logs in without a groupId, he/she sees
>>>>> all the Apps (even the one's created with different groupIds) in the same
>>>>> screen.
>>>>> So the problem would only be there for AppDevelopers.
>>>>>
>>>>> Answering to your query; it depends on how you get the group Id. If we
>>>>> assume that SSO is enabled at Store, when trying to login directly to
>>>>> Store, users (only talking about App Owners here) will be re-directed to 
>>>>> an
>>>>> IDP, and whatever the groupId set from IDP will be used for fetching Apps.
>>>>> If the IDP doesn't set a groupId, all the apps will be shown.
>>>>>
>>>>> On Thu, Jan 14, 2016 at 8:35 AM, Amalka Subasinghe <ama...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>>
>>>>>> With this Amila's explanation; when a appowner login to the APIM via
>>>>>> two different apps of AF, will see two different views in APIM.
>>>>>> If the same appowner login to the APIM directly, what will he see in
>>>>>> APIM?
>>>>>>
>>>>>> I believe when a user login to the APIM; (either via AF or directly),
>>>>>> he should see the same view every time. (if that user belongs to two
>>>>>> different groups he should see all subscriptions belongs to all groups).
>>>>>>
>>>>>>
>>>>>> On Wed, Jan 13, 2016 at 11:05 PM, Amila De Silva <ami...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Danushka/Amalka,
>>>>>>>
>>>>>>> It's not that the scenario of user belonging to two or more groups
>>>>>>> is not supported in the current version. It's only that the way it
>>>>>>> currently

Re: [Dev] [AF] Fixing (APPFAC-3217) - Support APIM group subscription in App Factory

2016-01-13 Thread Lakshman Udayakantha
don't set the claim for QA and DevOps users, they
>>> can't view subscribed APIs in AF side, and If we add the claim they also
>>> will be able to subscribe to APIs and generate keys. So we need to find a
>>> way to view subscribed api for a particular application by QA and Devops
>>> users.
>>> b. With this implementation Developer can see prod keys also.
>>>
>>>
>>> 2. Make Go to API Manager and Sync Keys buttons enabled only to appowner
>>> and developer.
>>> For this we can use resource permissions we already have.
>>>
>>>
>>> 3. Need to improve/test all the rest calls we do with APIM to work with
>>> groups and fix if there's any issue.
>>>
>>>- Login - When user clicks on 'Go to API Manager' button of a
>>>particular app, it should login to APIM and show the subscribed APIs,
>>>listed under selected application.
>>>- Create application
>>>- Remove application
>>>- Get published APIs by application
>>>- List subscription
>>>- Get applications
>>>
>>> [1] https://wso2.org/jira/browse/APPFAC-3217
>>>
>>> Thanks
>>> Amalka
>>>
>>>
>>
>>
>> --
>> Amalka Subasinghe
>> Senior Software Engineer
>> WSO2 Inc.
>> Mobile: +94 77 9401267
>>
>
>
>
> --
> Nuwan Dias
>
> Technical Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] [VOTE] Release WSO2 API Manager 1.10.0 RC3

2016-01-05 Thread Lakshman Udayakantha
Tested following.

1. subscription sharing feature(super tenant and other tenant)
2. dynamic client registration feature.

[x]  Stable - go ahead and release

Thanks
Lakshman

On Mon, Jan 4, 2016 at 11:29 PM, Chamila Adhikarinayake <chami...@wso2.com>
wrote:

> Hi Devs,
>
> This is the third release candidate of WSO2 API Manager 1.10.0.
>
> This release fixes the following issues:
> https://wso2.org/jira/issues/?filter=12597
>
> Please download, test and vote.
>
> Binary distribution files:
> http://svn.wso2.org/repos/wso2/people/chamilaa/apim-1.10.0-rc3/
>
> The tag to be voted upon:
> https://github.com/wso2/product-apim/tree/v1.10.0-rc3
>
>
> [ ]  Stable - go ahead and release
> [ ]  Broken - do not release (explain why)
>
> Thanks and Regards,
> WSO2 API Manager Team
>
> --
> Regards,
> Chamila Adhikarinayake
> Software Engineer
> WSO2, Inc.
> Mobile - +94712346437
> Email  - chami...@wso2.com
> Blog  -  http://helpfromadhi.blogspot.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] [APIM] Sample API (WeatherAPI) no longer works

2015-12-16 Thread Lakshman Udayakantha
this has changed. Now API Manager has embedded calculator API. check the
latest API Manager 1.10.0-SNAPSHOT

On Thu, Dec 17, 2015 at 12:47 PM, Ayoma Wijethunga <ay...@wso2.com> wrote:

> Hi All,
>
> API manager "Sample API" no longer works. OpenWeatherMap requires sending
> an API Key from 9th October 2015 [1
> <http://openweathermap.org/faq#error401>][2
> <http://openweathermap.org/appid#get>]. Rate limited key is available for
> free. Though extended rate limit is available for FOSS developers[1
> <http://openweathermap.org/faq#error401>], this might not work for us,
> because we have to distribute the API Key with APIM.
>
> If this is not corrected, users will get below error during invocations,
> which can be frustrating for a new customer who is evaluating API Manager.
>
> {"cod":401,"message":"Invalid API key. Please see
>> http://openweathermap.org/faq#error401 for more info."}
>>
>
> Any idea if we continue using OpenWeatherMap or move to a different sample
> implementation?
>
> FYI : Current free plan rate limits are as follows :
>
> Calls 10min: 600
>> Calls 1day: 50,000
>> Threshold: 7,200
>> Hourly forecast: 5
>> Daily forecast: 0
>>
>
> [1] http://openweathermap.org/faq#error401
> [2] http://openweathermap.org/appid#get
>
> Best Regards,
> Ayoma Wijethunga
> Software Engineer
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> Mobile : +94 (0) 719428123 <+94+(0)+719428123>
> Blog : http://www.ayomaonline.com
> LinkedIn: https://www.linkedin.com/in/ayoma
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


[Dev] Issue while indexing pdf files.

2015-12-08 Thread Lakshman Udayakantha
Hi,

Some pdf files gives below error while indexing.

ERROR - PDFIndexer Failed to write to the index

java.io.IOException: Error: expected hex character and not  :32

at org.fontbox.cmap.CMapParser.parseNextToken(CMapParser.java:283)


According to [1], this issue is there in pdfbox which used in registry to
parse pdf files before indexing. pfdbox 0.7.3 is used in registry 4.4.8
version. According to [1] this issue is fixed in pdfbox version 1.3.1. I
checked in carbon-orbit [2] for compass project in which pdfbox is
embedded. but could not found.

In which repository is compass project?

[1] https://issues.apache.org/jira/browse/PDFBOX-790
[2] https://github.com/wso2/orbit

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


Re: [Dev] JDBC Secondary User Store Test Connection not working

2015-12-06 Thread Lakshman Udayakantha
Hi Lakmali,

I have created [1] for IS. According to the comment added by DamithS, this
should be fixed in carbon kernel 4.4.3 version. Seems like they are on
4.4.2 kernel version [2] in master branch.

[1] https://wso2.org/jira/browse/IDENTITY-4193
[2] https://github.com/wso2/carbon-identity/blob/master/pom.xml#L1862

Thanks

On Mon, Dec 7, 2015 at 8:50 AM, Lakmali Baminiwatta <lakm...@wso2.com>
wrote:

> Hi IS team,
>
> When testing the connection of JDBC secondary user stores, parameters are
> passed in wrong order. In the UI, what we see is that, properties are
> ordered from 1 to 4 as driver, URL, name and password.
>
> ​
> But the testConnection method retrieves them in a different order [1],
> causing this issue [2]. Note that we are using carbon-identity master
> branch.
>
> [1]
> https://github.com/wso2/carbon-identity/commit/ba77bb67752dcb9871f664ad0cb14c3172f74613#diff-5147bb9e190ebb5151d30d462024f629
>
> [2] https://wso2.org/jira/browse/APIMANAGER-4336
>
>
> Thanks,
> Lakmali
> --
> Lakmali Baminiwatta
> Senior Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
> mobile:  +94 71 2335936
> blog : lakmali.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] [API Manager] Using entitlement mediator in API Manager

2015-11-28 Thread Lakshman Udayakantha
Hi Nadeesha,

I checked in /repository/component/plugin folder  in APIM 1.9.1
pack and not found entitlement service module jar[1]. Could you check by
building [1] and including in it /repository/components/lib
folder?

[1]
https://github.com/wso2/carbon-identity/tree/v5.0.2/components/entitlement/org.wso2.carbon.identity.entitlement

Thanks

On Sun, Nov 29, 2015 at 1:22 AM, Nadeesha Gamage <nadee...@wso2.com> wrote:

> HI Devs,
> I am trying to use the entitlement mediator in API Manager(1.9.1), and I
> am encountering the following issue. It looks like the entitlement mediator
> is not shipped with API Manager. If so whats the reason for this and how
> can I get the entitlement mediation capabilities installed in API Manager.
>
> Caused by: org.apache.synapse.SynapseException: *Unknown mediator
> referenced by configuration element :
> {http://ws.apache.org/ns/synapse}entitlementService
> <http://ws.apache.org/ns/synapse%7DentitlementService>*
> at
> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:218)
> at
> org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:41)
> at
> org.apache.synapse.config.xml.FilterMediatorFactory.createSpecificMediator(FilterMediatorFactory.java:136)
> at
> org.apache.synapse.config.xml.AbstractMediatorFactory.createMediator(AbstractMediatorFactory.java:91)
> at
> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:223)
> at
> org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:41)
> at
> org.apache.synapse.config.xml.SequenceMediatorFactory.createAnonymousSequence(SequenceMediatorFactory.java:70)
> at
> org.apache.synapse.config.xml.rest.ResourceFactory.configureSequences(ResourceFactory.java:107)
> at
> org.apache.synapse.config.xml.rest.ResourceFactory.createResource(ResourceFactory.java:50)
> at
> org.apache.synapse.config.xml.rest.APIFactory.createAPI(APIFactory.java:86)
>
> Thank you,
>
> --
> Nadeesha Gamage
> Associate Technical Lead - Solutions Engineering
> T : +94 77 394 5706
> B : https://nadeesha678.wordpress.com/
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] Deploying Capp using Java Client

2015-11-24 Thread Lakshman Udayakantha
what is the error?

On Tue, Nov 24, 2015 at 2:11 PM, Rukshan Premathunga <ruks...@wso2.com>
wrote:

> Hi,
>
> I was trying to deploy carbon-app (.car file) using java client. For that
> i used the *CarbonAppUploader *service.
>
> Below the code i used to deploy the capp and it is worked fine.
>
>
> File file = new File(cAppPath);
>
>
> //get the byte array of file
>
> byte[] byteArray = FileUtils.readFileToByteArray(file);
>
> DataHandler dataHandler = new DataHandler(byteArray,
>
> APIUsageStatisticsClientConstants.APPLICATION_OCTET_STREAM);
>
>
> //create the stub to deploy artifacts
>
> CarbonAppUploaderStub stub = new CarbonAppUploaderStub(url +
> "/services/CarbonAppUploader");
>
> ServiceClient client = stub._getServiceClient();
>
> Options options = client.getOptions();
>
> //set the security
>
> HttpTransportProperties.Authenticator authenticator = new
> HttpTransportProperties.Authenticator();
>
> authenticator.setUsername(user);
>
> authenticator.setPassword(pass);
>
> authenticator.setPreemptiveAuthentication(true);
>
> options.setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE,
> authenticator);
>
> client.setOptions(options);
>
> log.info("Deploying DAS cApp '" + cAppName + "'...");
>
>
> //create UploadedFileItem array and 1st element contain the deploy artifact
>
> UploadedFileItem[] fileItem = new UploadedFileItem[1];
>
> fileItem[0] = new UploadedFileItem();
>
> fileItem[0].setDataHandler(dataHandler);
>
> fileItem[0].setFileName(cAppName);
>
> *fileItem[0].setFileType("jar");*
>
>
> //upload the artifacts
>
> stub.uploadApp(fileItem);
>
>
> But for the capp file type i always have to set "jar". I tried with the
> "car" but gave me an error.
> So do we have any other correct way to deploy Capp. Or is this behavior is
> a bug?
>
> Thanks and Regards.
>
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] Deploying Capp using Java Client

2015-11-24 Thread Lakshman Udayakantha
For some time ago I used [1] to upload a capp written by aruna. You can use
that.

[1] https://github.com/arunasujith/capp-upload-admin-service-sample

Thanks

On Tue, Nov 24, 2015 at 2:17 PM, Lakshman Udayakantha <lakshm...@wso2.com>
wrote:

> what is the error?
>
> On Tue, Nov 24, 2015 at 2:11 PM, Rukshan Premathunga <ruks...@wso2.com>
> wrote:
>
>> Hi,
>>
>> I was trying to deploy carbon-app (.car file) using java client. For that
>> i used the *CarbonAppUploader *service.
>>
>> Below the code i used to deploy the capp and it is worked fine.
>>
>>
>> File file = new File(cAppPath);
>>
>>
>> //get the byte array of file
>>
>> byte[] byteArray = FileUtils.readFileToByteArray(file);
>>
>> DataHandler dataHandler = new DataHandler(byteArray,
>>
>> APIUsageStatisticsClientConstants.APPLICATION_OCTET_STREAM);
>>
>>
>> //create the stub to deploy artifacts
>>
>> CarbonAppUploaderStub stub = new CarbonAppUploaderStub(url +
>> "/services/CarbonAppUploader");
>>
>> ServiceClient client = stub._getServiceClient();
>>
>> Options options = client.getOptions();
>>
>> //set the security
>>
>> HttpTransportProperties.Authenticator authenticator = new
>> HttpTransportProperties.Authenticator();
>>
>> authenticator.setUsername(user);
>>
>> authenticator.setPassword(pass);
>>
>> authenticator.setPreemptiveAuthentication(true);
>>
>> options.setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE,
>> authenticator);
>>
>> client.setOptions(options);
>>
>> log.info("Deploying DAS cApp '" + cAppName + "'...");
>>
>>
>> //create UploadedFileItem array and 1st element contain the deploy
>> artifact
>>
>> UploadedFileItem[] fileItem = new UploadedFileItem[1];
>>
>> fileItem[0] = new UploadedFileItem();
>>
>> fileItem[0].setDataHandler(dataHandler);
>>
>> fileItem[0].setFileName(cAppName);
>>
>> *fileItem[0].setFileType("jar");*
>>
>>
>> //upload the artifacts
>>
>> stub.uploadApp(fileItem);
>>
>>
>> But for the capp file type i always have to set "jar". I tried with the
>> "car" but gave me an error.
>> So do we have any other correct way to deploy Capp. Or is this behavior
>> is a bug?
>>
>> Thanks and Regards.
>>
>> Rukshan Chathuranga.
>> Software Engineer.
>> WSO2, Inc.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> 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


[Dev] [DAS]Error while getting data from DAS to DB2 tables

2015-11-23 Thread Lakshman Udayakantha
Hi,

I configured APIM with DAS to publish runtime statistics with DB2. When The
spark query runs with cron job, I got below error.










































































* [2015-11-24 10:15:00,007]  INFO
{org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
schedule task for: APIM_STAT_SCRIPT for tenant id: -1234[2015-11-24
10:16:07,353] ERROR {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter}
-  Error in executing task: None.getjava.lang.RuntimeException: None.getat
org.apache.spark.sql.jdbc.carbon.JDBCRelation.insert(JDBCRelation.scala:193)at
org.apache.spark.sql.sources.InsertIntoDataSource.run(commands.scala:53)at
org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:57)at
org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:57)at
org.apache.spark.sql.execution.ExecutedCommand.doExecute(commands.scala:68)at
org.apache.spark.sql.execution.SparkPlan$anonfun$execute$1.apply(SparkPlan.scala:88)at
org.apache.spark.sql.execution.SparkPlan$anonfun$execute$1.apply(SparkPlan.scala:88)at
org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)at
org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:87)at
org.apache.spark.sql.SQLContext$QueryExecution.toRdd$lzycompute(SQLContext.scala:950)at
org.apache.spark.sql.SQLContext$QueryExecution.toRdd(SQLContext.scala:950)at
org.apache.spark.sql.DataFrame.(DataFrame.scala:144)at
org.apache.spark.sql.DataFrame.(DataFrame.scala:128)at
org.apache.spark.sql.DataFrame$.apply(DataFrame.scala:51)at
org.apache.spark.sql.SQLContext.sql(SQLContext.scala:755)at
org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQueryLocal(SparkAnalyticsExecutor.java:710)at
org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQuery(SparkAnalyticsExecutor.java:692)at
org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeQuery(CarbonAnalyticsProcessorService.java:199)at
org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeScript(CarbonAnalyticsProcessorService.java:149)at
org.wso2.carbon.analytics.spark.core.AnalyticsTask.execute(AnalyticsTask.java:57)at
org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)at
org.quartz.core.JobRunShell.run(JobRunShell.java:213)at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)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.util.NoSuchElementException: None.getat
scala.None$.get(Option.scala:313)at scala.None$.get(Option.scala:311)at
org.apache.spark.sql.jdbc.carbon.JdbcUtils$.getQueryConfigEntry(JdbcUtils.scala:69)at
org.apache.spark.sql.jdbc.carbon.JdbcUtils$.tableExists(JdbcUtils.scala:45)at
org.apache.spark.sql.jdbc.carbon.JDBCRelation.insert(JDBCRelation.scala:170)...
26 more *


Debugged the analytics code and found this line will throw the error

this.sqlCtx.sql(query);

When running below query

*INSERT OVERWRITE TABLE X1234_APIRequestSummaryData SELECT
api,api_version,version,apiPublisher,consumerKey,userId,context,max_request_time,total_request_count,hostName,year,month,day,time
FROM X1234_API_REQUEST_SUMMARY_FINAL*
Any idea to resolve this issue is much appreciated.

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


Re: [Dev] [DAS]Error while getting data from DAS to DB2 tables

2015-11-23 Thread Lakshman Udayakantha
Hi Inosh,

Thanks for the info. As you pointed out, specifying DB2 type as DB2/NT.
This error is gone and statistics published successfully.

Thanks

On Tue, Nov 24, 2015 at 11:06 AM, Inosh Goonewardena <in...@wso2.com> wrote:

> Hi Lakshman,
>
> There was an issue [1] and this has been fixed now. As a workaround can
> you try by specifying the exact DB2 database type instead of DB* in
> rdbms-config.xml
>
> [1] https://wso2.org/jira/browse/DAS-311
>
>
> On Tuesday, November 24, 2015, Lakshman Udayakantha <lakshm...@wso2.com>
> wrote:
>
>> Hi,
>>
>> I configured APIM with DAS to publish runtime statistics with DB2. When
>> The spark query runs with cron job, I got below error.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> * [2015-11-24 10:15:00,007]  INFO
>> {org.wso2.carbon.analytics.spark.core.AnalyticsTask} -  Executing the
>> schedule task for: APIM_STAT_SCRIPT for tenant id: -1234[2015-11-24
>> 10:16:07,353] ERROR {org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter}
>> -  Error in executing task: None.getjava.lang.RuntimeException: None.getat
>> org.apache.spark.sql.jdbc.carbon.JDBCRelation.insert(JDBCRelation.scala:193)at
>> org.apache.spark.sql.sources.InsertIntoDataSource.run(commands.scala:53)at
>> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:57)at
>> org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:57)at
>> org.apache.spark.sql.execution.ExecutedCommand.doExecute(commands.scala:68)at
>> org.apache.spark.sql.execution.SparkPlan$anonfun$execute$1.apply(SparkPlan.scala:88)at
>> org.apache.spark.sql.execution.SparkPlan$anonfun$execute$1.apply(SparkPlan.scala:88)at
>> org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)at
>> org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:87)at
>> org.apache.spark.sql.SQLContext$QueryExecution.toRdd$lzycompute(SQLContext.scala:950)at
>> org.apache.spark.sql.SQLContext$QueryExecution.toRdd(SQLContext.scala:950)at
>> org.apache.spark.sql.DataFrame.(DataFrame.scala:144)at
>> org.apache.spark.sql.DataFrame.(DataFrame.scala:128)at
>> org.apache.spark.sql.DataFrame$.apply(DataFrame.scala:51)at
>> org.apache.spark.sql.SQLContext.sql(SQLContext.scala:755)at
>> org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQueryLocal(SparkAnalyticsExecutor.java:710)at
>> org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.executeQuery(SparkAnalyticsExecutor.java:692)at
>> org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeQuery(CarbonAnalyticsProcessorService.java:199)at
>> org.wso2.carbon.analytics.spark.core.CarbonAnalyticsProcessorService.executeScript(CarbonAnalyticsProcessorService.java:149)at
>> org.wso2.carbon.analytics.spark.core.AnalyticsTask.execute(AnalyticsTask.java:57)at
>> org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)at
>> org.quartz.core.JobRunShell.run(JobRunShell.java:213)at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)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.util.NoSuchElementException: None.getat
>> scala.None$.get(Option.scala:313)at scala.None$.get(Option.scala:311)at
>> org.apache.spark.sql.jdbc.carbon.JdbcUtils$.getQueryConfigEntry(JdbcUtils.scala:69)at
>> org.apache.spark.sql.jdbc.carbon.JdbcUtils$.tableExists(JdbcUtils.scala:45)at
>> org.apache.spark.sql.jdbc.carbon.JDBCRelation.insert(JDBCRelation.scala:170)...
>> 26 more *
>>
>>
>> Debugged the analytics code and found this line will throw the error
>>
>> this.sqlCtx.sql(query);
>>
>> When running below query
>>
>> *INSERT OVERWRITE TABLE X1234_APIRequestSummaryData SELECT
>> api,api_version,version,apiPublisher,consumerKey,userId,context,max_request_time,total_request_count,hostName,year,month,day,time
>> FROM X1234_API_REQUEST_SUMMARY_FINAL*
>> Any idea to resolve this issue is much appreciated.
>>
>> Thanks
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0714388124*
>>
>>
>
> --
> Thanks & Regards,
>
> Inosh Goonewardena
> Associate Technical Lead- WSO2 Inc.
> Mobile: +94779966317
>
>


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


Re: [Dev] [VOTE] Release WSO2 Governance Registry 5.1.0 RC 1

2015-10-31 Thread Lakshman Udayakantha
I have tested api manager features on greg pack for both super tenant and
tenant case.

[+] Stable - go ahead and release.

Thanks
LakshmanU

On Sat, Oct 31, 2015 at 6:05 PM, Chandana Napagoda <chand...@wso2.com>
wrote:

> Verified basic store and publisher functionality.
>
> +1, Go ahead with release process.
>
> Regards,
> Chandana
>
> On Fri, Oct 30, 2015 at 11:40 PM, Danesh Kuruppu <dan...@wso2.com> wrote:
>
>> Hi Devs,
>>
>> WSO2 Governance Registry 5.1.0 RC1 Release Vote.
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/issues/?filter=12499
>> <https://wso2.org/jira/issues/?filter=12422>
>> Please download, test and vote. Please refer the release verification
>> guide for detailed information on verifying this release.
>>
>> Source & binary distribution files:
>> https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.1.0/RC1/
>>
>> Maven staging repo:
>> http://maven.wso2.org/nexus/content/repositories/orgwso2greg-096/
>> <http://www.google.com/url?q=http%3A%2F%2Fmaven.wso2.org%2Fnexus%2Fcontent%2Frepositories%2Forgwso2greg-096%2F=D=1=AFQjCNHn187zs7NcAgrhAiIk2xQJX2WUKQ>
>>
>> The tag to be voted upon:
>> https://github.com/wso2/product-greg/tree/v5.1.0-RC1
>>
>>
>> [+] Stable - go ahead and release
>> [-]  Broken - do not release (explain why)
>>
>> Thanks and Regards
>> G-Reg team
>>
>> --
>>
>> Danesh Kuruppu
>> Software Engineer
>> WSO2 Inc,
>> Mobile: +94 (77) 1690552
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Chandana Napagoda*
> Senior Software Engineer
> WSO2 Inc. - http://wso2.org
>
> *Email  :  chand...@wso2.com <chand...@wso2.com>**Mobile : +94718169299
> <%2B94718169299>*
>
> *Blog  :http://cnapagoda.blogspot.com <http://cnapagoda.blogspot.com>*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to pass java InputStream object to jaggery.

2015-10-22 Thread Lakshman Udayakantha
Creating new stream object in jaggery, I could access the input stream
returned by java method.

document.data = new Stream(new ByteArrayInputStream(content.get("Data")));

Thanks Denuwanthi for the help.

On Thu, Oct 22, 2015 at 12:04 PM, Lakshman Udayakantha <lakshm...@wso2.com>
wrote:

> Hi Denuwanthi,
>
> Thanks for the answer. Anyway I will not get file object from jaggery
> layer. content hashmap include a input stream object as a value for the key
> called "Data". I want to get that input stream object. Other values like
> name and contentType in hashmap can retrieve successfully from hash map.
> problem is that inputstream object will not be extractable from jaggery
> method.
>
> Thanks
>
> On Thu, Oct 22, 2015 at 10:48 AM, Denuwanthi De Silva <denuwan...@wso2.com
> > wrote:
>
>> Hi Lakshman,
>>
>> Did you try the following?
>>
>> var inputStream = Packages.java.io.InputStream;
>>
>> inputStream = file.getStream().getStream();
>>
>> (You need to call getStream() method twice)
>>
>>
>> Thanks,
>>
>>
>>
>>
>>
>>
>> On Wed, Oct 21, 2015 at 3:39 PM, Lakshman Udayakantha <lakshm...@wso2.com
>> > wrote:
>>
>>> Hi ES team,
>>>
>>> There is a method to get document from registry in API Manager Impl
>>> layer. We can get any file saved in registry with that method. But when I
>>> pass the returned file object to jaggery method, jaggery layer gets an
>>> empty object.
>>>
>>> public static Map<String, Object> getDocument(String userName, String
>>> resourceUrl,
>>>   String tenantDomain)
>>>  {
>>> Map<String, Object> documentMap = new HashMap<String, Object>();
>>>
>>> InputStream inStream = null;
>>>
>>> Resource apiDocResource;
>>>
>>> inStream = apiDocResource.getContentStream();
>>> documentMap.put("Data", inStream);
>>> documentMap.put("contentType",
>>> apiDocResource.getMediaType());
>>> String[] content = apiDocResource.getPath().split("/");
>>> documentMap.put("name", content[content.length - 1]);
>>>
>>> return documentMap;
>>> }
>>> above is the getDocument method. It gets the document from registry and
>>> put into a hash map. Below is the jaggery method to get the file where I
>>> can get the hash map values successfully but the file content.
>>>
>>>  StoreAPIProxy.prototype.getDocument = function (username, resourcepath,
>>> tenantDomain) {
>>>     var document = {};
>>>
>>> var content = APIUtil.getDocument(username, resourcepath,
>>> tenantDomain);
>>> document.data = content.get("Data");
>>> document.contentType = content.get("contentType");
>>> document.name = content.get("name");
>>>
>>> return {
>>>     error:false,
>>> document:document
>>>     };
>>>     }
>>> };
>>>
>>> How do I get the InputStream object returns by java method to jaggery
>>> method?
>>>
>>> Thanks
>>> --
>>> Lakshman Udayakantha
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>> Mobile: *0711241005*
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Denuwanthi De Silva
>> Software Engineer;
>> WSO2 Inc.; http://wso2.com,
>> Email: denuwan...@wso2.com
>> Blog: https://denuwanthi.wordpress.com/
>>
>
>
>
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0711241005*
>
>


-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to pass java InputStream object to jaggery.

2015-10-22 Thread Lakshman Udayakantha
Hi Denuwanthi,

Thanks for the answer. Anyway I will not get file object from jaggery
layer. content hashmap include a input stream object as a value for the key
called "Data". I want to get that input stream object. Other values like
name and contentType in hashmap can retrieve successfully from hash map.
problem is that inputstream object will not be extractable from jaggery
method.

Thanks

On Thu, Oct 22, 2015 at 10:48 AM, Denuwanthi De Silva <denuwan...@wso2.com>
wrote:

> Hi Lakshman,
>
> Did you try the following?
>
> var inputStream = Packages.java.io.InputStream;
>
> inputStream = file.getStream().getStream();
>
> (You need to call getStream() method twice)
>
>
> Thanks,
>
>
>
>
>
>
> On Wed, Oct 21, 2015 at 3:39 PM, Lakshman Udayakantha <lakshm...@wso2.com>
> wrote:
>
>> Hi ES team,
>>
>> There is a method to get document from registry in API Manager Impl
>> layer. We can get any file saved in registry with that method. But when I
>> pass the returned file object to jaggery method, jaggery layer gets an
>> empty object.
>>
>> public static Map<String, Object> getDocument(String userName, String
>> resourceUrl,
>>   String tenantDomain)
>>  {
>> Map<String, Object> documentMap = new HashMap<String, Object>();
>>
>> InputStream inStream = null;
>>
>> Resource apiDocResource;
>>
>> inStream = apiDocResource.getContentStream();
>> documentMap.put("Data", inStream);
>> documentMap.put("contentType", apiDocResource.getMediaType());
>> String[] content = apiDocResource.getPath().split("/");
>> documentMap.put("name", content[content.length - 1]);
>>
>> return documentMap;
>> }
>> above is the getDocument method. It gets the document from registry and
>> put into a hash map. Below is the jaggery method to get the file where I
>> can get the hash map values successfully but the file content.
>>
>>  StoreAPIProxy.prototype.getDocument = function (username, resourcepath,
>> tenantDomain) {
>> var document = {};
>>
>> var content = APIUtil.getDocument(username, resourcepath,
>> tenantDomain);
>> document.data = content.get("Data");
>>     document.contentType = content.get("contentType");
>> document.name = content.get("name");
>>
>> return {
>> error:false,
>> document:document
>> };
>> }
>> };
>>
>> How do I get the InputStream object returns by java method to jaggery
>> method?
>>
>> Thanks
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0711241005*
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Denuwanthi De Silva
> Software Engineer;
> WSO2 Inc.; http://wso2.com,
> Email: denuwan...@wso2.com
> Blog: https://denuwanthi.wordpress.com/
>



-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] social component is not working properly.

2015-10-22 Thread Lakshman Udayakantha
Hi,

As I can see the host and port of social iframe source url is
localhost:9443 in store. That should be actually localhost:9444 according
to the documentation[1]. When I hardcoded that url to 9444 port in relevant
hbs file, social component shows accurate average rating. Where we can
configure social app url in store?

I configured it in sso-idp-config.xml and store-tenant.json. But still the
base of social app url is https://localhost:9443.

[1]
https://docs.wso2.com/display/Governance501/Installing+WSO2+API+Manager+Features

Thanks

On Wed, Oct 21, 2015 at 6:43 PM, Lakshman Udayakantha <lakshm...@wso2.com>
wrote:

> Hi Udara,
>
> Thanks for the quick response. I have checked all the tables
> in WSO2SOCIAL_DB in social-datasources.xml including the SOCIAL_RATING_CACHE
> table also by issuing select * query. But there is no row in that table.
> anyway social iframe is showing comment and rating data after server
> restarting also. is there any other place rating data stored?
>
> Thanks
>
> On Wed, Oct 21, 2015 at 6:22 PM, Udara Rathnayake <uda...@wso2.com> wrote:
>
>> rating should be stored within SOCIAL_RATING table and average rating
>> inside SOCIAL_RATING_CACHE
>>
>> On Wed, Oct 21, 2015 at 5:42 PM, Lakshman Udayakantha <lakshm...@wso2.com
>> > wrote:
>>
>>> Hi ES team,
>>>
>>> I have checked out store 2.3.9-SNAPSHOT and governance registry
>>> 5.1.0-SNAPSHOT and built packs from those branches and created the setup
>>> according to [1].
>>>
>>> After adding several reviews in social components, I can see rating and
>>> comment is updating in social iframe component. but after refreshing the
>>> page, overall rating for the assets is not updating.
>>>
>>> I have checked the database pointed in social-datasources.xml. but
>>> couldn't find any entry stored in it. Where these social data is stored?
>>> any point to trouble shoot this issue is highly appreciated.
>>>
>>> [1]
>>> https://docs.wso2.com/display/Governance501/Installing+WSO2+API+Manager+Features
>>>
>>> --
>>> Lakshman Udayakantha
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>> Mobile: *0711241005*
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0711241005*
>
>


-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] API Manager does not have store and publisher apps

2015-10-22 Thread Lakshman Udayakantha
Hi Lalanke,

We focused only to release store and publisher features for product-apim
2.0.0 and master branch not the product. So the mentioned issue is there
for master branch. If you want latest api manager product, build it from
1.10.x branch.

Thanks

On Thu, Oct 22, 2015 at 7:09 PM, Lalanke Athauda <lala...@wso2.com> wrote:

> Hi,
> I have built the latest product-apim. When it runs, I got 404 pages for
> "store" app and "publisher" app. But in the admin console says "store" and
> "publisher" apps are running. Do I have to build any other product, before
> build product-apim correctly? Thanks.
>
> --
> Lalanke Athauda
> Software Engineer
> WSO2 Inc.
> Mobile: 0772264301
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Can't build carbon-governance 5.1.0-SNAPSHOT in OSX

2015-10-21 Thread Lakshman Udayakantha
Hi,

When carbon-governance build in OSX, I got an compilation error, because in
[1] folder there are two files with same name but case is different. When
we clone the repo it will save only one file from those two files because
name is same. by default mac osx will not keep two files with same in a
folder. So the build will fail because there is reference to both classes
in different places of project.

In linux we can keep two files with same name in a folder. So the build
will be successful.

It seems we have to rename one class to get rid from build fail.

[1]
https://github.com/wso2/carbon-governance/tree/master/components/governance/org.wso2.carbon.governance.lcm/src/main/java/org/wso2/carbon/governance/lcm/beans

Thanks

-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can't build carbon-governance 5.1.0-SNAPSHOT in OSX

2015-10-21 Thread Lakshman Udayakantha
note that two files are *LifeCycleStateBean.java* and
*LifecycleStateBean.java*. They are with same name but case is different.
We can create two files with same name and different case in a folder in
linux. But we can't create two files with same name and different case in a
folder in mac osx. that is the reason for build failure.

Thanks

On Wed, Oct 21, 2015 at 9:45 PM, Lakshman Udayakantha <lakshm...@wso2.com>
wrote:

> Hi,
>
> When carbon-governance build in OSX, I got an compilation error, because
> in [1] folder there are two files with same name but case is different.
> When we clone the repo it will save only one file from those two files
> because name is same. by default mac osx will not keep two files with same
> in a folder. So the build will fail because there is reference to both
> classes in different places of project.
>
> In linux we can keep two files with same name in a folder. So the build
> will be successful.
>
> It seems we have to rename one class to get rid from build fail.
>
> [1]
> https://github.com/wso2/carbon-governance/tree/master/components/governance/org.wso2.carbon.governance.lcm/src/main/java/org/wso2/carbon/governance/lcm/beans
>
> Thanks
>
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0711241005*
>
>


-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] social component is not working properly.

2015-10-21 Thread Lakshman Udayakantha
Hi Udara,

Thanks for the quick response. I have checked all the tables
in WSO2SOCIAL_DB in social-datasources.xml including the SOCIAL_RATING_CACHE
table also by issuing select * query. But there is no row in that table.
anyway social iframe is showing comment and rating data after server
restarting also. is there any other place rating data stored?

Thanks

On Wed, Oct 21, 2015 at 6:22 PM, Udara Rathnayake <uda...@wso2.com> wrote:

> rating should be stored within SOCIAL_RATING table and average rating
> inside SOCIAL_RATING_CACHE
>
> On Wed, Oct 21, 2015 at 5:42 PM, Lakshman Udayakantha <lakshm...@wso2.com>
> wrote:
>
>> Hi ES team,
>>
>> I have checked out store 2.3.9-SNAPSHOT and governance registry
>> 5.1.0-SNAPSHOT and built packs from those branches and created the setup
>> according to [1].
>>
>> After adding several reviews in social components, I can see rating and
>> comment is updating in social iframe component. but after refreshing the
>> page, overall rating for the assets is not updating.
>>
>> I have checked the database pointed in social-datasources.xml. but
>> couldn't find any entry stored in it. Where these social data is stored?
>> any point to trouble shoot this issue is highly appreciated.
>>
>> [1]
>> https://docs.wso2.com/display/Governance501/Installing+WSO2+API+Manager+Features
>>
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0711241005*
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to pass java InputStream object to jaggery.

2015-10-21 Thread Lakshman Udayakantha
Hi ES team,

There is a method to get document from registry in API Manager Impl layer.
We can get any file saved in registry with that method. But when I pass the
returned file object to jaggery method, jaggery layer gets an empty object.

public static Map<String, Object> getDocument(String userName, String
resourceUrl,
  String tenantDomain)
 {
Map<String, Object> documentMap = new HashMap<String, Object>();

InputStream inStream = null;

Resource apiDocResource;

inStream = apiDocResource.getContentStream();
documentMap.put("Data", inStream);
documentMap.put("contentType", apiDocResource.getMediaType());
String[] content = apiDocResource.getPath().split("/");
documentMap.put("name", content[content.length - 1]);

return documentMap;
}
above is the getDocument method. It gets the document from registry and put
into a hash map. Below is the jaggery method to get the file where I can
get the hash map values successfully but the file content.

 StoreAPIProxy.prototype.getDocument = function (username, resourcepath,
tenantDomain) {
var document = {};

var content = APIUtil.getDocument(username, resourcepath,
tenantDomain);
document.data = content.get("Data");
document.contentType = content.get("contentType");
document.name = content.get("name");

return {
error:false,
document:document
};
}
};

How do I get the InputStream object returns by java method to jaggery
method?

Thanks
-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ES] social component is not working properly.

2015-10-21 Thread Lakshman Udayakantha
Hi ES team,

I have checked out store 2.3.9-SNAPSHOT and governance registry
5.1.0-SNAPSHOT and built packs from those branches and created the setup
according to [1].

After adding several reviews in social components, I can see rating and
comment is updating in social iframe component. but after refreshing the
page, overall rating for the assets is not updating.

I have checked the database pointed in social-datasources.xml. but couldn't
find any entry stored in it. Where these social data is stored? any point
to trouble shoot this issue is highly appreciated.

[1]
https://docs.wso2.com/display/Governance501/Installing+WSO2+API+Manager+Features

-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] where we could find the source of synapse 2.1.2-wso2v8

2015-10-14 Thread Lakshman Udayakantha
Hi,

It is not in [1] and [2].

[1] https://github.com/wso2/wso2-synapse
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fwso2%2Fwso2-synapse=D=1=AFQjCNHT9-LqK7LHUze-1Tr_zD-CVQEekQ>

[2]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/dependencies/synapse/
<https://www.google.com/url?q=https%3A%2F%2Fsvn.wso2.org%2Frepos%2Fwso2%2Fcarbon%2Fplatform%2Fbranches%2Fturing%2Fdependencies%2Fsynapse%2F=D=1=AFQjCNHWysfMjrxqxNJwg3-q14rS-vODTQ>
is there any other place kept synapse other than above mentioned ones?

Thanks
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Is there a way to know about sso-idp-config for publisher?

2015-10-08 Thread Lakshman Udayakantha
Hi,

I want to insert store url in governance center publisher. store url is in
sso-idp-config.xml file that can be in separate server rather than
publisher in a distributed setup. in that case how to read store url from
that config file?

Thanks

-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] "[DEV] [IS] [oauth2] Error occurred for custom grant type

2015-09-28 Thread Lakshman Udayakantha
va:159)
>> at
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
>> at
>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
>> at
>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
>> at
>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
>> at
>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at
>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: org.apache.cxf.interceptor.Fault:
>> org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext.setAuthorizedUser(Ljava/lang/String;)V
>> at
>> org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:162)
>> at
>> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:128)
>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100)
>> at
>> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)
>> at
>> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)
>> at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
>> ... 38 more
>> Caused by: java.lang.NoSuchMethodError:
>> org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext.setAuthorizedUser(Ljava/lang/String;)V
>> at
>> org.soasecurity.is.oauth.grant.mobile.MobileGrant.validateGrant(MobileGrant.java:64)
>> at
>> org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.issue(AccessTokenIssuer.java:145)
>> at
>> org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessToken(OAuth2Service.java:195)
>> at
>> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.getAccessToken(OAuth2TokenEndpoint.java:252)
>> at
>> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:116)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
>> at
>> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
>> ... 43 more
>> ---
>>
>>
>> Thanks & Kind regards,
>>
>> --
>> Kavitha.S
>> *Software Engineer -QA*
>> Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
>> kavi...@wso2.com <thili...@wso2.com>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Lakshani Gamage
>
> *Software Engineer*
> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] - Required parameters for add documentation to an API with the source type File

2015-09-16 Thread Lakshman Udayakantha
spatcher.invoke(ApplicationDispatcher.java:748)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1736)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1695)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>>>
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>>> java.lang.Thread.run(Thread.java:662)
>>>
>>> INFO
>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>> [2015-09-16 11:24:34,200] ERROR - docs:jag
>>> org.wso2.carbon.apimgt.api.APIManagementException: Error while creating an
>>> attachment for Document- APIM622PublisherTestHowTo-File-summary-1.0.0.
>>> Empty File Attachment.
>>>
>>> --
>>> Thanks & Regards,
>>> Bhagya
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Madusanka Premaratne* | Associate Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 835 70 73| Work: +94 112 145 345
>> Email: madusan...@wso2.com | Web: www.wso2.com
>>
>> [image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter]
>> <https://twitter.com/rmmpremaratne> [image: Google Plus]
>> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
>> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
>> <http://instagram.com/madusankapremaratne> [image: Skype]
>> <http://@rmmpremaratne>
>>
>>
>> ___
>> 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
>
>


-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ES] fault in validateRequiredFeilds method

2015-09-03 Thread Lakshman Udayakantha
I can see some value is assigning to *provider* field rather validating it
in *validateRequiredFeilds* method in publisher/modules/asset-api.js. This
happens in 2.3.4 code version.see below code in that method




*var provider = rxtManager.getProviderAttribute(type);if(provider &&
provider.length >1 &&
assetReq.hasOwnProperty('attributes')){assetReq.attributes[provider] =
user.username;}*

shouldn't this be changed to




*var provider = rxtManager.getProviderAttribute(type);if(provider &&
provider.length >1 &&
assetReq.hasOwnProperty('attributes')){validateRequiredFeild(provider,
assetReq);}*

WDYT?
Thanks
-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] java.net.SocketException: Broken pipe -Error while running ESB scheduled task

2015-08-04 Thread Lakshman Udayakantha
)
 at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
 at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
 at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3946)
 ... 29 more
 TID: [0] [ESB] [2015-08-04 00:00:38,331] ERROR
 {org.apache.synapse.core.axis2.SynapseCallbackReceiver} -  Synapse
 encountered an exception, No error handlers found - [Message Dropped]
 Error execuring insert statement :
 INSERT INTO quarterlyleads
 (Region, count, RecordDate) VALUES (?, ?, ?) against DataSource :
 jdbc:mysql://localhost:3306/sf
 {org.apache.synapse.core.axis2.SynapseCallbackReceiver}


 Thanks in advance

 Regards,

 M.R.Aaquibah Nashry
 *Intern, Engineering**| **WSO2, Inc.*
 Mobile : +94 773946123
 Tel  : +94 112662541
 Email : nas...@wso2.com nas...@wso2.com

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




-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


  1   2   3   >