Re: [Dev] Issue with SSO login when re-starting the IOTs server and trying to logging in from a private window

2017-05-04 Thread Nuwandi Wickramasinghe
Hi Megala,

Do you see any back end logs in this scenario?

thanks
Nuwandi

On Fri, May 5, 2017 at 10:48 AM, Megala Uthayakumar  wrote:

> Please note this can also be re-producible when we run j-meter scripts for
> logging in.
>
> Thanks.
>
> On Fri, May 5, 2017 at 10:41 AM, Megala Uthayakumar 
> wrote:
>
>> Hi IS Team,
>>
>> We are experiencing an issue [1] when logging in to IOTs server in
>> private window, after re-starting the server. The issue happens due to
>> SSO-redirection, it redirects to the login page url with a jsession id
>> getting appended to it [2]. This only happens once for each re-start. As
>> per the offline-chat with Nuwandi seems like this was reported previously
>> as well. Is this issue fixed? If not, can we get this fixed for our IOTs
>> 3.1.0 release which is scheduled to be released within 2 weeks.
>>
>> [1] https://github.com/wso2/product-iots/issues/402
>> [2] https://cloud.githubusercontent.com/assets/4003116/
>> 25698762/ca55719a-30dd-11e7-983f-c0c1731799da.png
>>
>> Thanks.
>>
>> Regards,
>> Megala
>> --
>> Megala Uthayakumar
>>
>> Software Engineer
>> Mobile : 0779967122
>>
>
>
>
> --
> Megala Uthayakumar
>
> Software Engineer
> Mobile : 0779967122
>



-- 

Best Regards,

Nuwandi Wickramasinghe

Software Engineer

WSO2 Inc.

Web : http://wso2.com

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


[Dev] Tool to Analyze Performance of MB 4 Message Store

2017-05-04 Thread Malaka Gangananda
Hi All,

I am implementing message store for MB4 while doing that I am developing a
tool to analyze and compare performance of message store functionalities
when different database instances are being used with MB. Also this tool
will have the capability to evolve  with message store and evaluate new
functionalities of message store.To generate the benchmarks I have used JMH.

Thnks.
-- 
Malaka.
-- 
Malaka Gangananda - Software Engineer | WSO2
Email : mala...@wso2.com
Mobile : +94713564340
Web : http://wso2.com
  
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Simplifying the claim-config.xml file in Identity Server

2017-05-04 Thread Isura Karunaratne
Hi Malithi,

I didn't test. But, according to the [1], should be able to change the
claim manager using *initializeNewClaimManager* property in user-mgt.xml
file.

[1] [Architecture] [IS] Improvements to Claim Management


Thanks
Isura.

On Fri, May 5, 2017 at 9:17 AM, Malithi Edirisinghe 
wrote:

>
>
> On Thu, May 4, 2017 at 10:16 PM, Isura Karunaratne  wrote:
>
>> Hi Lanka,
>>
>> I think that is done to support both old claim management module and new
>> module from the same claim-mgt.xml.
>>
>
> How do we opt for the old claim module in IS 5.3.0 ?
> Isn't it always the new module is being picked.
>
>
>>
>> Thanks
>> Isura.
>>
>>
>>
>> On Thu, May 4, 2017 at 9:03 PM Pushpalanka Jayawardhana 
>> wrote:
>>
>>> Hi All,
>>>
>>> As we know we define default claim mappings between dialects in this
>>> file named calim-config.xml.
>>> There we have default claim dialect(wso2.org) defined with all its
>>> required attributes. Then we also define other dialects and map each claim
>>> dialect URI to some local claim URI as suitable.
>>> Following is a fraction of such from SCIM dialect mapping.
>>>
>>> From 5.3.0 onwards we are depending on mapping the localClaim to other
>>> external claims URIs.
>>> In such case it seems '**' is not really neccessary to
>>> define here, as it is already defined in local claim definition.
>>>
>>> 
>>> urn:scim:schemas:core:1.0:name.givenName
>>> Name - Given Name
>>> *givenName*
>>> Given Name
>>> 
>>> 1
>>> 
>>> http://wso2.org/claims/givenname
>>> 
>>>
>>> This is not a critical issue, but would be better to simplify the file
>>> removing this, if we can agree this is not necessary here.
>>>
>>> Thanks,
>>> --
>>> Pushpalanka.
>>> --
>>> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
>>> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
>>> Mobile: +94779716248
>>> Blog: pushpalankajaya.blogspot.com/ | LinkedIn: lk.linkedin.com/in/p
>>> ushpalanka/ | Twitter: @pushpalanka
>>>
>>> --
>>
>> *Isura Dilhara Karunaratne*
>> Senior Software Engineer | WSO2
>> Email: is...@wso2.com
>> Mob : +94 772 254 810 <+94%2077%20225%204810>
>> Blog : http://isurad.blogspot.com/
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Malithi Edirisinghe*
> Associate Technical Lead
> WSO2 Inc.
>
> Mobile : +94 (0) 718176807
> malit...@wso2.com
>



-- 

*Isura Dilhara Karunaratne*
Senior Software Engineer | WSO2
Email: is...@wso2.com
Mob : +94 772 254 810
Blog : http://isurad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC : OAuth 2.0 Dynamic Client Registration Management Protocol Support

2017-05-04 Thread Abilashini Thiyagarajah
Yeah sure.

Thank you

*Thiyagarajah Abilashini*
Student
Department of Computer Science and Engineering
University of Moratuwa, Sri Lanka

On 5 May 2017 at 10:59, Ishara Karunarathna  wrote:

>
>
> On Fri, May 5, 2017 at 10:53 AM, Abilashini Thiyagarajah <
> abilashini...@cse.mrt.ac.lk> wrote:
>
>> Yeah we can have.
>>
> Then lets arrange a hangout from 2-3 pm
>
>>
>> *Thiyagarajah Abilashini*
>> Student
>> Department of Computer Science and Engineering
>> University of Moratuwa, Sri Lanka
>>
>> On 5 May 2017 at 10:25, Ishara Karunarathna  wrote:
>>
>>>
>>>
>>> On Fri, May 5, 2017 at 10:21 AM, Abilashini Thiyagarajah <
>>> abilashini...@cse.mrt.ac.lk> wrote:
>>>
 Hi Ishara,

 Thank you.

 Tomorrow in the sense do you mean Saturday(6.4.2017)?

>>> Its today 5/5/2017 if you available we can have a meeting in the evening.
>>>
>>> -Ishara
>>>



 *Thiyagarajah Abilashini*
 Student
 Department of Computer Science and Engineering
 University of Moratuwa, Sri Lanka

 On 5 May 2017 at 00:51, Ishara Karunarathna  wrote:

> Hi,
>
> Congratz Abilashini,
>
> On Thu, May 4, 2017 at 11:42 PM, Abilashini Thiyagarajah <
> abilashini...@cse.mrt.ac.lk> wrote:
>
>> Hi all,
>>
>> Thank you so much for accepting my proposal and selecting me to work
>> on the project "*OAuth 2.0 Dynamic Client Registration Management
>> Protocol support for WSO2 Identity Server*" in GSOC 2017. I am so
>> happy to work on a WSO2 project after the internship.
>>
>> I would like to clarify the plan through out the program. Shall we
>> stick to my project plan in my proposal?
>>
> We may have to do some slight modification. Shall we arrange a meeting
> and discuss tomorrow. ?
>
> Thanks,
> Ishara
>
>>
>> Looking forward to have a fabulous project experience with WSO2 for
>> next 4 months of period.
>>
>> Thankyou and best regards,
>> Abilashini
>>
>> *Thiyagarajah Abilashini*
>> Student
>> Department of Computer Science and Engineering
>> University of Moratuwa, Sri Lanka
>>
>> On 3 April 2017 at 20:15, Abilashini Thiyagarajah <
>> abilashini...@cse.mrt.ac.lk> wrote:
>>
>>> Hi Maduranga,
>>>
>>> I have already submitted the final proposal. I would like to thank
>>> you for your guidance throughout the process of understanding the 
>>> project
>>> and preparing the proposal. Looking forward to work on the project.
>>>
>>> Best Regards,
>>> Abilashini
>>>
>>> *Thiyagarajah Abilashini*
>>> Student
>>> Department of Computer Science and Engineering
>>> University of Moratuwa, Sri Lanka
>>>
>>> On 3 April 2017 at 19:54, Maduranga Siriwardena 
>>> wrote:
>>>
 Hi Abishalani,

 I will not have time to go through your proposal now. As the
 deadline is getting closer, please go ahead and submit the proposal.

 Thanks,

 On Sun, Apr 2, 2017 at 10:12 PM, Abilashini Thiyagarajah <
 abilashini...@cse.mrt.ac.lk> wrote:

> Hi Maduranga,
>
> I have included the initial design in the proposal. I kindly
> request your feedback on it.
>
> Thank you,
> Abilashini
>
> *Thiyagarajah Abilashini*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa, Sri Lanka
>
> On 27 March 2017 at 21:14, Abilashini Thiyagarajah <
> abilashini...@cse.mrt.ac.lk> wrote:
>
>> Hi Maduranga,
>>
>> Sorry for the inconvenience occurred with the wrong link.
>>
>> Thank you for your comments and I am updating the proposal
>> respectively. Also I have replied to some of the comments for
>> clarification. It would be so helpful if I get your comment on those.
>>
>> I will include the initial design and the the fixed jira issues
>> as soon as possible.
>>
>> Thanks,
>> Abilashini
>>
>> *Thiyagarajah Abilashini*
>> Student
>> Department of Computer Science and Engineering
>> University of Moratuwa, Sri Lanka
>>
>> On 27 March 2017 at 20:07, Maduranga Siriwardena <
>> madura...@wso2.com> wrote:
>>
>>> Hi Abishalani,
>>>
>>> The link you have shared seems to be not accessible any more.
>>> However I was able to access the draft proposal you have shared 
>>> through
>>> GSOC Dashboard.
>>>
>>> I have added few comments to the draft. Please go through them
>>> and try to improve the proposal.
>>>
>>> Thanks,
>>>
>>> On Fri, Mar 24, 2017 at 

Re: [Dev] GSOC : OAuth 2.0 Dynamic Client Registration Management Protocol Support

2017-05-04 Thread Ishara Karunarathna
On Fri, May 5, 2017 at 10:53 AM, Abilashini Thiyagarajah <
abilashini...@cse.mrt.ac.lk> wrote:

> Yeah we can have.
>
Then lets arrange a hangout from 2-3 pm

>
> *Thiyagarajah Abilashini*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa, Sri Lanka
>
> On 5 May 2017 at 10:25, Ishara Karunarathna  wrote:
>
>>
>>
>> On Fri, May 5, 2017 at 10:21 AM, Abilashini Thiyagarajah <
>> abilashini...@cse.mrt.ac.lk> wrote:
>>
>>> Hi Ishara,
>>>
>>> Thank you.
>>>
>>> Tomorrow in the sense do you mean Saturday(6.4.2017)?
>>>
>> Its today 5/5/2017 if you available we can have a meeting in the evening.
>>
>> -Ishara
>>
>>>
>>>
>>>
>>> *Thiyagarajah Abilashini*
>>> Student
>>> Department of Computer Science and Engineering
>>> University of Moratuwa, Sri Lanka
>>>
>>> On 5 May 2017 at 00:51, Ishara Karunarathna  wrote:
>>>
 Hi,

 Congratz Abilashini,

 On Thu, May 4, 2017 at 11:42 PM, Abilashini Thiyagarajah <
 abilashini...@cse.mrt.ac.lk> wrote:

> Hi all,
>
> Thank you so much for accepting my proposal and selecting me to work
> on the project "*OAuth 2.0 Dynamic Client Registration Management
> Protocol support for WSO2 Identity Server*" in GSOC 2017. I am so
> happy to work on a WSO2 project after the internship.
>
> I would like to clarify the plan through out the program. Shall we
> stick to my project plan in my proposal?
>
 We may have to do some slight modification. Shall we arrange a meeting
 and discuss tomorrow. ?

 Thanks,
 Ishara

>
> Looking forward to have a fabulous project experience with WSO2 for
> next 4 months of period.
>
> Thankyou and best regards,
> Abilashini
>
> *Thiyagarajah Abilashini*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa, Sri Lanka
>
> On 3 April 2017 at 20:15, Abilashini Thiyagarajah <
> abilashini...@cse.mrt.ac.lk> wrote:
>
>> Hi Maduranga,
>>
>> I have already submitted the final proposal. I would like to thank
>> you for your guidance throughout the process of understanding the project
>> and preparing the proposal. Looking forward to work on the project.
>>
>> Best Regards,
>> Abilashini
>>
>> *Thiyagarajah Abilashini*
>> Student
>> Department of Computer Science and Engineering
>> University of Moratuwa, Sri Lanka
>>
>> On 3 April 2017 at 19:54, Maduranga Siriwardena 
>> wrote:
>>
>>> Hi Abishalani,
>>>
>>> I will not have time to go through your proposal now. As the
>>> deadline is getting closer, please go ahead and submit the proposal.
>>>
>>> Thanks,
>>>
>>> On Sun, Apr 2, 2017 at 10:12 PM, Abilashini Thiyagarajah <
>>> abilashini...@cse.mrt.ac.lk> wrote:
>>>
 Hi Maduranga,

 I have included the initial design in the proposal. I kindly
 request your feedback on it.

 Thank you,
 Abilashini

 *Thiyagarajah Abilashini*
 Student
 Department of Computer Science and Engineering
 University of Moratuwa, Sri Lanka

 On 27 March 2017 at 21:14, Abilashini Thiyagarajah <
 abilashini...@cse.mrt.ac.lk> wrote:

> Hi Maduranga,
>
> Sorry for the inconvenience occurred with the wrong link.
>
> Thank you for your comments and I am updating the proposal
> respectively. Also I have replied to some of the comments for
> clarification. It would be so helpful if I get your comment on those.
>
> I will include the initial design and the the fixed jira issues as
> soon as possible.
>
> Thanks,
> Abilashini
>
> *Thiyagarajah Abilashini*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa, Sri Lanka
>
> On 27 March 2017 at 20:07, Maduranga Siriwardena <
> madura...@wso2.com> wrote:
>
>> Hi Abishalani,
>>
>> The link you have shared seems to be not accessible any more.
>> However I was able to access the draft proposal you have shared 
>> through
>> GSOC Dashboard.
>>
>> I have added few comments to the draft. Please go through them
>> and try to improve the proposal.
>>
>> Thanks,
>>
>> On Fri, Mar 24, 2017 at 11:16 PM, Abilashini Thiyagarajah <
>> abilashini...@cse.mrt.ac.lk> wrote:
>>
>>> Hi Maduranga,
>>>
>>> I have already shared the draft of proposal [1] in the GSOC
>>> profile. Can I have your feedback on it please?
>>>
>>> [1] https://docs.google.com/document/d/1Jcye2kidM0KbaDVqXqtz
>>> 

[Dev] Clarification on 'Use tenant domain in local subject identifier' attribute

2017-05-04 Thread Hasanthi Purnima Dissanayake
Hi All,

There are few jiras [1],[2],[3],[4] reported related to the above attribute
and thought of discussing the expected behavior of this attribute.

AFAIU if the above attribute is checked in both federated and local
scenarios:
-  the tenant domain should append with the sub claim even when the
username is added as a requested claim or username is set as the subject
claim uri.

If the above attribute is unchecked :
- The tenant domain should not append with the sub claim even when the user
name is subject claim uri or a requested claim.

[1] https://wso2.org/jira/browse/IDENTITY-5013
[2] https://wso2.org/jira/browse/IDENTITY-4931
[3]https://wso2.org/jira/browse/IDENTITY-4956
[4]https://wso2.org/jira/browse/IDENTITY-4470

Please let me know if the behavior of this attribute is something different.


Thanks,

Hasanthi Dissanayake

Software Engineer | WSO2

E: hasan...@wso2.com
M :0718407133| http://wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC : OAuth 2.0 Dynamic Client Registration Management Protocol Support

2017-05-04 Thread Abilashini Thiyagarajah
Yeah we can have.

*Thiyagarajah Abilashini*
Student
Department of Computer Science and Engineering
University of Moratuwa, Sri Lanka

On 5 May 2017 at 10:25, Ishara Karunarathna  wrote:

>
>
> On Fri, May 5, 2017 at 10:21 AM, Abilashini Thiyagarajah <
> abilashini...@cse.mrt.ac.lk> wrote:
>
>> Hi Ishara,
>>
>> Thank you.
>>
>> Tomorrow in the sense do you mean Saturday(6.4.2017)?
>>
> Its today 5/5/2017 if you available we can have a meeting in the evening.
>
> -Ishara
>
>>
>>
>>
>> *Thiyagarajah Abilashini*
>> Student
>> Department of Computer Science and Engineering
>> University of Moratuwa, Sri Lanka
>>
>> On 5 May 2017 at 00:51, Ishara Karunarathna  wrote:
>>
>>> Hi,
>>>
>>> Congratz Abilashini,
>>>
>>> On Thu, May 4, 2017 at 11:42 PM, Abilashini Thiyagarajah <
>>> abilashini...@cse.mrt.ac.lk> wrote:
>>>
 Hi all,

 Thank you so much for accepting my proposal and selecting me to work on
 the project "*OAuth 2.0 Dynamic Client Registration Management
 Protocol support for WSO2 Identity Server*" in GSOC 2017. I am so
 happy to work on a WSO2 project after the internship.

 I would like to clarify the plan through out the program. Shall we
 stick to my project plan in my proposal?

>>> We may have to do some slight modification. Shall we arrange a meeting
>>> and discuss tomorrow. ?
>>>
>>> Thanks,
>>> Ishara
>>>

 Looking forward to have a fabulous project experience with WSO2 for
 next 4 months of period.

 Thankyou and best regards,
 Abilashini

 *Thiyagarajah Abilashini*
 Student
 Department of Computer Science and Engineering
 University of Moratuwa, Sri Lanka

 On 3 April 2017 at 20:15, Abilashini Thiyagarajah <
 abilashini...@cse.mrt.ac.lk> wrote:

> Hi Maduranga,
>
> I have already submitted the final proposal. I would like to thank you
> for your guidance throughout the process of understanding the project and
> preparing the proposal. Looking forward to work on the project.
>
> Best Regards,
> Abilashini
>
> *Thiyagarajah Abilashini*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa, Sri Lanka
>
> On 3 April 2017 at 19:54, Maduranga Siriwardena 
> wrote:
>
>> Hi Abishalani,
>>
>> I will not have time to go through your proposal now. As the deadline
>> is getting closer, please go ahead and submit the proposal.
>>
>> Thanks,
>>
>> On Sun, Apr 2, 2017 at 10:12 PM, Abilashini Thiyagarajah <
>> abilashini...@cse.mrt.ac.lk> wrote:
>>
>>> Hi Maduranga,
>>>
>>> I have included the initial design in the proposal. I kindly request
>>> your feedback on it.
>>>
>>> Thank you,
>>> Abilashini
>>>
>>> *Thiyagarajah Abilashini*
>>> Student
>>> Department of Computer Science and Engineering
>>> University of Moratuwa, Sri Lanka
>>>
>>> On 27 March 2017 at 21:14, Abilashini Thiyagarajah <
>>> abilashini...@cse.mrt.ac.lk> wrote:
>>>
 Hi Maduranga,

 Sorry for the inconvenience occurred with the wrong link.

 Thank you for your comments and I am updating the proposal
 respectively. Also I have replied to some of the comments for
 clarification. It would be so helpful if I get your comment on those.

 I will include the initial design and the the fixed jira issues as
 soon as possible.

 Thanks,
 Abilashini

 *Thiyagarajah Abilashini*
 Student
 Department of Computer Science and Engineering
 University of Moratuwa, Sri Lanka

 On 27 March 2017 at 20:07, Maduranga Siriwardena <
 madura...@wso2.com> wrote:

> Hi Abishalani,
>
> The link you have shared seems to be not accessible any more.
> However I was able to access the draft proposal you have shared 
> through
> GSOC Dashboard.
>
> I have added few comments to the draft. Please go through them and
> try to improve the proposal.
>
> Thanks,
>
> On Fri, Mar 24, 2017 at 11:16 PM, Abilashini Thiyagarajah <
> abilashini...@cse.mrt.ac.lk> wrote:
>
>> Hi Maduranga,
>>
>> I have already shared the draft of proposal [1] in the GSOC
>> profile. Can I have your feedback on it please?
>>
>> [1] https://docs.google.com/document/d/1Jcye2kidM0KbaDVqXqtz
>> VsEq_RJ_rOrcqpmqMAfpC3U/edit?usp=sharing
>>
>> Thank you
>>
>> *Thiyagarajah Abilashini*
>> Student
>> Department of Computer Science and Engineering
>> University of Moratuwa, Sri Lanka
>>
>> On 21 March 2017 at 19:53, Maduranga Siriwardena <

[Dev] WSO2 Enterprise Integrator 6.1.1 Released

2017-05-04 Thread Vijitha Ekanayake
*WSO2 Enterprise Integrator 6.1.1 Released*


WSO2 Enterprise Integrator team is pleased to announce the release of WSO2
Enterprise Integrator 6.1.1.

*Release Note*

May 2017

WSO2 EI is a unified distribution of WSO2 Enterprise Service Bus and Data
Services Server, which works as a single runtime (Integrator) along with
optional runtimes for WSO2 Analytics, Business Processor, Message Broker
and MSF4J. This product distribution includes a shared component directory,
with profile-based management capabilities for each runtime.

WSO2 EI simplifies integration by allowing users to easily configure
message routing, intermediation, transformation, logging, task scheduling,
load balancing, failover routing, event brokering etc. Data services and
various applications can also be hosted and exposed using WSO2 EI. These
integration capabilities are further powered by the capabilities of the
WSO2 Analytics, Business Processor and Message Broker runtimes.


For more information on WSO2 Enterprise Integrator 6.1.1 and to download
the product and tooling please visit http://wso2.com/integration/


For WSO2 EI 6.1.1 Documentation, please visit https://docs.wso2.com/display/
EI611/WSO2+Enterprise+Integrator+Documentation

Source can be found in

EI 6.1.1 Runtime 

Issues Fixed for this release

https://github.com/wso2/product-ei/issues?q=is%
3Aissue+is%3Aclosed+milestone%3A6.1.1


*Known Issues*

For a complete list of features to be implemented please refer the list of
known issues:

https://github.com/wso2/product-ei/issues
Contact us

WSO2 developers can be contacted via the mailing list: dev@wso2.org

For details on subscriptions see http://wso2.org/mail
Support

We are committed to ensuring that your enterprise middleware deployment is
completely supported from evaluation to production. Our unique approach
ensures that all support leverages our open development methodology and is
provided by the very same engineers who build the technology.

For more details and to take advantage of this unique opportunity please
visit http://wso2.com/support/

Thank you for your interest in WSO2 Enterprise Integrator 6.1.1.


- The WSO2 EI Team -

-- 
Vijitha Ekanayake
Software Engineer*, *WSO2, Inc.; http://wso2.com/
Mobile : +94 777 24 73 39 | +94 718 74 44 08
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue with SSO login when re-starting the IOTs server and trying to logging in from a private window

2017-05-04 Thread Megala Uthayakumar
Please note this can also be re-producible when we run j-meter scripts for
logging in.

Thanks.

On Fri, May 5, 2017 at 10:41 AM, Megala Uthayakumar  wrote:

> Hi IS Team,
>
> We are experiencing an issue [1] when logging in to IOTs server in private
> window, after re-starting the server. The issue happens due to
> SSO-redirection, it redirects to the login page url with a jsession id
> getting appended to it [2]. This only happens once for each re-start. As
> per the offline-chat with Nuwandi seems like this was reported previously
> as well. Is this issue fixed? If not, can we get this fixed for our IOTs
> 3.1.0 release which is scheduled to be released within 2 weeks.
>
> [1] https://github.com/wso2/product-iots/issues/402
> [2] https://cloud.githubusercontent.com/assets/4003116/25698762/ca55719a-
> 30dd-11e7-983f-c0c1731799da.png
>
> Thanks.
>
> Regards,
> Megala
> --
> Megala Uthayakumar
>
> Software Engineer
> Mobile : 0779967122
>



-- 
Megala Uthayakumar

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


[Dev] Issue with SSO login when re-starting the IOTs server and trying to logging in from a private window

2017-05-04 Thread Megala Uthayakumar
Hi IS Team,

We are experiencing an issue [1] when logging in to IOTs server in private
window, after re-starting the server. The issue happens due to
SSO-redirection, it redirects to the login page url with a jsession id
getting appended to it [2]. This only happens once for each re-start. As
per the offline-chat with Nuwandi seems like this was reported previously
as well. Is this issue fixed? If not, can we get this fixed for our IOTs
3.1.0 release which is scheduled to be released within 2 weeks.

[1] https://github.com/wso2/product-iots/issues/402
[2]
https://cloud.githubusercontent.com/assets/4003116/25698762/ca55719a-30dd-11e7-983f-c0c1731799da.png

Thanks.

Regards,
Megala
-- 
Megala Uthayakumar

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


Re: [Dev] [APIM][Cluster][Docker]Problem in setting AWS hazelcast cluster using docker

2017-05-04 Thread Chamara Philips
Hi Pubudu and Imesh,

Thank for the feedback on this. I used rancher as an orchestration tool
with Cattle as a cluster manager.

I was able to do that using the AWS metadata API just as the same approach
of Pubudu.

I did the changes at this local PR. [1]
. (This may not be
the best way to do this.)

AFAIK there is no simple way to inject dynamic values into axis2.xml as we
do with user-mgt.xml or api-manager.xml using JVM variables. Just using the
${variable.name} didn't work with axis2.xml. Hence had to use placeholders
and replace those placeholders using the OS environment variables which
will be resolved at orchestration. I saw property values are using
placeholders fro ${httpsPort} and ${hostName}, but not for parameters.
Kindly let me know if there is another way to use JVM environment variables
in axis2.xml just as we do with user-mgt.xml or api-manager.xml.

Now I have am able to deploy the API manager with pattern-3 in a fully
automated manner. With the above changes, I am able to select whether the
clustering should be enabled, which clustering scheme we should use,
members set if "wka" is used or the AWS settings, if "aws" clustering is
used etc, at the time of deployment and the rest, will be handled
automatically. I think it is good if we can have that kind of control when
we move towards continuous delivery and continuous integration. I would
like to send a PR for these if we can come to conclusion on the best way of
doing this.

Another problem I am facing at the moment is fronting the clusters with
ELBs. We have separate ELBs for separate clusters of components. (I.E One
ELB for stores, one for publishers, one for keymanagers etc.) At the moment
this doesn't work since I am not using sticky sessions with JSESSIONID. (I
have done WSO2 IS clustering with sticky sessions enabled.) Is there any
way that we can replicate HTTP sessions? Found this article [2]

which
does it with webapps. But not sure how we can do same with publisher,
store, gateway worker, keymanager, traffic-manager and analytics cluster.
Highly appreciate any suggestions to proxy the clusters with AWS ELBs.

[1] https://github.com/ChamaraPhilipsuom/docker-apim/pull/1
[2]
http://wso2.com/library/articles/2012/10/getting-full-features-apache-tomcat-supported-wso2-application-server/#clustering

Thanks & Regards

On Tue, Apr 25, 2017 at 9:57 AM, Imesh Gunaratne  wrote:

> Hi Chamara,
>
> It's nice to see your interest in running API-M on Docker on AWS.
>
> Are you running this deployment with ECS or did you start two VMs,
> installed Docker on them and started containers in each host manually?
>
> If you are following the latter, you can send the host IP to the
> containers via an environment variable as you would know the host that the
> containers will be started. If containers are scheduled automatically,
> using the metadata API for this purpose would be fine.
>
> For a production deployment, it might be more productive to use a
> container cluster manager such as ECS, Kubernetes, DC/OS or Docker Swarm as
> they provide basic deployment features such as networking, load balancing,
> container scheduling, auto-healing, auto-scaling, etc OOB.
>
> Thanks
>
> On Mon, Apr 24, 2017 at 5:45 PM, Chamara Philips  > wrote:
>
>> Hi Pubudu,
>> Thank you very much for the insight. The problem is exactly that. We are
>> using the container name which will eventually resolved to the conteiner
>> ip. The problem is getting the IP of EC2 instance since those instances are
>> dynamically started. The aprroach going to use is using the AWS metadata
>> api, to findout the host ip in which the container is running.
>>
>> I there any other way to discover the host IP dynamically in the AWS
>> environment?
>>
>> I have mapped container ports to EC2 instance 5701:5701. Hope it works.
>>
>> Thanks & Regards
>>
>> On Mon, Apr 24, 2017 at 3:41 PM, Pubudu Gunatilaka 
>> wrote:
>>
>>> Hi Chamara,
>>>
>>> What is the value for localMemberHost? That value should be the public
>>> IP of the EC2 instance which will be used by other containers (members) to
>>> communicate. Based on the log, it looks like you have the container IP as
>>> the localMemberHost and containers have failed to communicate with each
>>> other.
>>>
>>> As you are running docker container within an EC2 instance, you need to
>>> map container ports to the EC2 instance.
>>>
>>> If the clustering configured properly you should see the member joined
>>> message.
>>>
>>> Thank you!
>>>
>>> On Mon, Apr 24, 2017 at 12:23 PM, Chamara Philips <
>>> chcphilips@gmail.com> wrote:
>>>

 Hi all,

 I have tried deploying a API manager cluster in AWS EC-2 environment,
 using docker. I have used one EC-2 instance as one host which will 

Re: [Dev] GSOC : OAuth 2.0 Dynamic Client Registration Management Protocol Support

2017-05-04 Thread Ishara Karunarathna
On Fri, May 5, 2017 at 10:21 AM, Abilashini Thiyagarajah <
abilashini...@cse.mrt.ac.lk> wrote:

> Hi Ishara,
>
> Thank you.
>
> Tomorrow in the sense do you mean Saturday(6.4.2017)?
>
Its today 5/5/2017 if you available we can have a meeting in the evening.

-Ishara

>
>
>
> *Thiyagarajah Abilashini*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa, Sri Lanka
>
> On 5 May 2017 at 00:51, Ishara Karunarathna  wrote:
>
>> Hi,
>>
>> Congratz Abilashini,
>>
>> On Thu, May 4, 2017 at 11:42 PM, Abilashini Thiyagarajah <
>> abilashini...@cse.mrt.ac.lk> wrote:
>>
>>> Hi all,
>>>
>>> Thank you so much for accepting my proposal and selecting me to work on
>>> the project "*OAuth 2.0 Dynamic Client Registration Management Protocol
>>> support for WSO2 Identity Server*" in GSOC 2017. I am so happy to work
>>> on a WSO2 project after the internship.
>>>
>>> I would like to clarify the plan through out the program. Shall we stick
>>> to my project plan in my proposal?
>>>
>> We may have to do some slight modification. Shall we arrange a meeting
>> and discuss tomorrow. ?
>>
>> Thanks,
>> Ishara
>>
>>>
>>> Looking forward to have a fabulous project experience with WSO2 for next
>>> 4 months of period.
>>>
>>> Thankyou and best regards,
>>> Abilashini
>>>
>>> *Thiyagarajah Abilashini*
>>> Student
>>> Department of Computer Science and Engineering
>>> University of Moratuwa, Sri Lanka
>>>
>>> On 3 April 2017 at 20:15, Abilashini Thiyagarajah <
>>> abilashini...@cse.mrt.ac.lk> wrote:
>>>
 Hi Maduranga,

 I have already submitted the final proposal. I would like to thank you
 for your guidance throughout the process of understanding the project and
 preparing the proposal. Looking forward to work on the project.

 Best Regards,
 Abilashini

 *Thiyagarajah Abilashini*
 Student
 Department of Computer Science and Engineering
 University of Moratuwa, Sri Lanka

 On 3 April 2017 at 19:54, Maduranga Siriwardena 
 wrote:

> Hi Abishalani,
>
> I will not have time to go through your proposal now. As the deadline
> is getting closer, please go ahead and submit the proposal.
>
> Thanks,
>
> On Sun, Apr 2, 2017 at 10:12 PM, Abilashini Thiyagarajah <
> abilashini...@cse.mrt.ac.lk> wrote:
>
>> Hi Maduranga,
>>
>> I have included the initial design in the proposal. I kindly request
>> your feedback on it.
>>
>> Thank you,
>> Abilashini
>>
>> *Thiyagarajah Abilashini*
>> Student
>> Department of Computer Science and Engineering
>> University of Moratuwa, Sri Lanka
>>
>> On 27 March 2017 at 21:14, Abilashini Thiyagarajah <
>> abilashini...@cse.mrt.ac.lk> wrote:
>>
>>> Hi Maduranga,
>>>
>>> Sorry for the inconvenience occurred with the wrong link.
>>>
>>> Thank you for your comments and I am updating the proposal
>>> respectively. Also I have replied to some of the comments for
>>> clarification. It would be so helpful if I get your comment on those.
>>>
>>> I will include the initial design and the the fixed jira issues as
>>> soon as possible.
>>>
>>> Thanks,
>>> Abilashini
>>>
>>> *Thiyagarajah Abilashini*
>>> Student
>>> Department of Computer Science and Engineering
>>> University of Moratuwa, Sri Lanka
>>>
>>> On 27 March 2017 at 20:07, Maduranga Siriwardena >> > wrote:
>>>
 Hi Abishalani,

 The link you have shared seems to be not accessible any more.
 However I was able to access the draft proposal you have shared through
 GSOC Dashboard.

 I have added few comments to the draft. Please go through them and
 try to improve the proposal.

 Thanks,

 On Fri, Mar 24, 2017 at 11:16 PM, Abilashini Thiyagarajah <
 abilashini...@cse.mrt.ac.lk> wrote:

> Hi Maduranga,
>
> I have already shared the draft of proposal [1] in the GSOC
> profile. Can I have your feedback on it please?
>
> [1] https://docs.google.com/document/d/1Jcye2kidM0KbaDVqXqtz
> VsEq_RJ_rOrcqpmqMAfpC3U/edit?usp=sharing
>
> Thank you
>
> *Thiyagarajah Abilashini*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa, Sri Lanka
>
> On 21 March 2017 at 19:53, Maduranga Siriwardena <
> madura...@wso2.com> wrote:
>
>> Hi Abilashini,
>>
>> Please find my answers inline.
>>
>> On Tue, Mar 21, 2017 at 9:00 AM, Abilashini Thiyagarajah <
>> abilashini...@cse.mrt.ac.lk> wrote:
>>
>>> Hi,
>>>
>>> I am working on the proposal and need some clarifications on the
>>> project. 

Re: [Dev] GSOC : OAuth 2.0 Dynamic Client Registration Management Protocol Support

2017-05-04 Thread Abilashini Thiyagarajah
Hi Ishara,

Thank you.

Tomorrow in the sense do you mean Saturday(6.4.2017)?



*Thiyagarajah Abilashini*
Student
Department of Computer Science and Engineering
University of Moratuwa, Sri Lanka

On 5 May 2017 at 00:51, Ishara Karunarathna  wrote:

> Hi,
>
> Congratz Abilashini,
>
> On Thu, May 4, 2017 at 11:42 PM, Abilashini Thiyagarajah <
> abilashini...@cse.mrt.ac.lk> wrote:
>
>> Hi all,
>>
>> Thank you so much for accepting my proposal and selecting me to work on
>> the project "*OAuth 2.0 Dynamic Client Registration Management Protocol
>> support for WSO2 Identity Server*" in GSOC 2017. I am so happy to work
>> on a WSO2 project after the internship.
>>
>> I would like to clarify the plan through out the program. Shall we stick
>> to my project plan in my proposal?
>>
> We may have to do some slight modification. Shall we arrange a meeting and
> discuss tomorrow. ?
>
> Thanks,
> Ishara
>
>>
>> Looking forward to have a fabulous project experience with WSO2 for next
>> 4 months of period.
>>
>> Thankyou and best regards,
>> Abilashini
>>
>> *Thiyagarajah Abilashini*
>> Student
>> Department of Computer Science and Engineering
>> University of Moratuwa, Sri Lanka
>>
>> On 3 April 2017 at 20:15, Abilashini Thiyagarajah <
>> abilashini...@cse.mrt.ac.lk> wrote:
>>
>>> Hi Maduranga,
>>>
>>> I have already submitted the final proposal. I would like to thank you
>>> for your guidance throughout the process of understanding the project and
>>> preparing the proposal. Looking forward to work on the project.
>>>
>>> Best Regards,
>>> Abilashini
>>>
>>> *Thiyagarajah Abilashini*
>>> Student
>>> Department of Computer Science and Engineering
>>> University of Moratuwa, Sri Lanka
>>>
>>> On 3 April 2017 at 19:54, Maduranga Siriwardena 
>>> wrote:
>>>
 Hi Abishalani,

 I will not have time to go through your proposal now. As the deadline
 is getting closer, please go ahead and submit the proposal.

 Thanks,

 On Sun, Apr 2, 2017 at 10:12 PM, Abilashini Thiyagarajah <
 abilashini...@cse.mrt.ac.lk> wrote:

> Hi Maduranga,
>
> I have included the initial design in the proposal. I kindly request
> your feedback on it.
>
> Thank you,
> Abilashini
>
> *Thiyagarajah Abilashini*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa, Sri Lanka
>
> On 27 March 2017 at 21:14, Abilashini Thiyagarajah <
> abilashini...@cse.mrt.ac.lk> wrote:
>
>> Hi Maduranga,
>>
>> Sorry for the inconvenience occurred with the wrong link.
>>
>> Thank you for your comments and I am updating the proposal
>> respectively. Also I have replied to some of the comments for
>> clarification. It would be so helpful if I get your comment on those.
>>
>> I will include the initial design and the the fixed jira issues as
>> soon as possible.
>>
>> Thanks,
>> Abilashini
>>
>> *Thiyagarajah Abilashini*
>> Student
>> Department of Computer Science and Engineering
>> University of Moratuwa, Sri Lanka
>>
>> On 27 March 2017 at 20:07, Maduranga Siriwardena 
>> wrote:
>>
>>> Hi Abishalani,
>>>
>>> The link you have shared seems to be not accessible any more.
>>> However I was able to access the draft proposal you have shared through
>>> GSOC Dashboard.
>>>
>>> I have added few comments to the draft. Please go through them and
>>> try to improve the proposal.
>>>
>>> Thanks,
>>>
>>> On Fri, Mar 24, 2017 at 11:16 PM, Abilashini Thiyagarajah <
>>> abilashini...@cse.mrt.ac.lk> wrote:
>>>
 Hi Maduranga,

 I have already shared the draft of proposal [1] in the GSOC
 profile. Can I have your feedback on it please?

 [1] https://docs.google.com/document/d/1Jcye2kidM0KbaDVqXqtz
 VsEq_RJ_rOrcqpmqMAfpC3U/edit?usp=sharing

 Thank you

 *Thiyagarajah Abilashini*
 Student
 Department of Computer Science and Engineering
 University of Moratuwa, Sri Lanka

 On 21 March 2017 at 19:53, Maduranga Siriwardena <
 madura...@wso2.com> wrote:

> Hi Abilashini,
>
> Please find my answers inline.
>
> On Tue, Mar 21, 2017 at 9:00 AM, Abilashini Thiyagarajah <
> abilashini...@cse.mrt.ac.lk> wrote:
>
>> Hi,
>>
>> I am working on the proposal and need some clarifications on the
>> project. Please correct me if I am wrong.
>>
>>1. In the specification they did not talk about the
>>validation of requests. Is it required to be considered in the
>>implementation?
>>
>> Yes you have to at least validate the mandatory parameters for
> the requests. We can decide how much 

Re: [Dev] Please review and merge

2017-05-04 Thread Hasanthi Purnima Dissanayake
Hi Kathees

Fixed the comments.

Thanks,

Hasanthi Dissanayake

Software Engineer | WSO2

E: hasan...@wso2.com
M :0718407133| http://wso2.com 

On Fri, May 5, 2017 at 9:45 AM, Kathees Rajendram  wrote:

> Thanks Hasanthi for your fix.
>
> Please fix those comments in the PR.
>
> Thanks,
> Kathees
>
> On Thu, May 4, 2017 at 3:16 PM, Hasanthi Purnima Dissanayake <
> hasan...@wso2.com> wrote:
>
>> Hi connector team,
>> Please review and merge [1] which fixes [2].
>> [1]https://github.com/wso2-extensions/identity-oauth2-grant-jwt/pull/14
>> [2]https://wso2.org/jira/browse/IDENTITY-5888
>>
>> Thanks,
>>
>> Hasanthi Dissanayake
>>
>> Software Engineer | WSO2
>>
>> E: hasan...@wso2.com
>> M :0718407133| http://wso2.com 
>>
>
>
>
> --
> Kathees
> Software Engineer,
> email: kath...@wso2.com
> mobile: +94772596173 <+94%2077%20259%206173>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge

2017-05-04 Thread Kathees Rajendram
Thanks Hasanthi for your fix.

Please fix those comments in the PR.

Thanks,
Kathees

On Thu, May 4, 2017 at 3:16 PM, Hasanthi Purnima Dissanayake <
hasan...@wso2.com> wrote:

> Hi connector team,
> Please review and merge [1] which fixes [2].
> [1]https://github.com/wso2-extensions/identity-oauth2-grant-jwt/pull/14
> [2]https://wso2.org/jira/browse/IDENTITY-5888
>
> Thanks,
>
> Hasanthi Dissanayake
>
> Software Engineer | WSO2
>
> E: hasan...@wso2.com
> M :0718407133| http://wso2.com 
>



-- 
Kathees
Software Engineer,
email: kath...@wso2.com
mobile: +94772596173
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Simplifying the claim-config.xml file in Identity Server

2017-05-04 Thread Malithi Edirisinghe
On Thu, May 4, 2017 at 10:16 PM, Isura Karunaratne  wrote:

> Hi Lanka,
>
> I think that is done to support both old claim management module and new
> module from the same claim-mgt.xml.
>

How do we opt for the old claim module in IS 5.3.0 ?
Isn't it always the new module is being picked.


>
> Thanks
> Isura.
>
>
>
> On Thu, May 4, 2017 at 9:03 PM Pushpalanka Jayawardhana 
> wrote:
>
>> Hi All,
>>
>> As we know we define default claim mappings between dialects in this file
>> named calim-config.xml.
>> There we have default claim dialect(wso2.org) defined with all its
>> required attributes. Then we also define other dialects and map each claim
>> dialect URI to some local claim URI as suitable.
>> Following is a fraction of such from SCIM dialect mapping.
>>
>> From 5.3.0 onwards we are depending on mapping the localClaim to other
>> external claims URIs.
>> In such case it seems '**' is not really neccessary to
>> define here, as it is already defined in local claim definition.
>>
>> 
>> urn:scim:schemas:core:1.0:name.givenName
>> Name - Given Name
>> *givenName*
>> Given Name
>> 
>> 1
>> 
>> http://wso2.org/claims/givenname
>> 
>>
>> This is not a critical issue, but would be better to simplify the file
>> removing this, if we can agree this is not necessary here.
>>
>> Thanks,
>> --
>> Pushpalanka.
>> --
>> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
>> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
>> Mobile: +94779716248
>> Blog: pushpalankajaya.blogspot.com/ | LinkedIn: lk.linkedin.com/in/
>> pushpalanka/ | Twitter: @pushpalanka
>>
>> --
>
> *Isura Dilhara Karunaratne*
> Senior Software Engineer | WSO2
> Email: is...@wso2.com
> Mob : +94 772 254 810 <+94%2077%20225%204810>
> Blog : http://isurad.blogspot.com/
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Malithi Edirisinghe*
Associate Technical Lead
WSO2 Inc.

Mobile : +94 (0) 718176807
malit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC : OAuth 2.0 Dynamic Client Registration Management Protocol Support

2017-05-04 Thread Ishara Karunarathna
Hi,

Congratz Abilashini,

On Thu, May 4, 2017 at 11:42 PM, Abilashini Thiyagarajah <
abilashini...@cse.mrt.ac.lk> wrote:

> Hi all,
>
> Thank you so much for accepting my proposal and selecting me to work on
> the project "*OAuth 2.0 Dynamic Client Registration Management Protocol
> support for WSO2 Identity Server*" in GSOC 2017. I am so happy to work on
> a WSO2 project after the internship.
>
> I would like to clarify the plan through out the program. Shall we stick
> to my project plan in my proposal?
>
We may have to do some slight modification. Shall we arrange a meeting and
discuss tomorrow. ?

Thanks,
Ishara

>
> Looking forward to have a fabulous project experience with WSO2 for next 4
> months of period.
>
> Thankyou and best regards,
> Abilashini
>
> *Thiyagarajah Abilashini*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa, Sri Lanka
>
> On 3 April 2017 at 20:15, Abilashini Thiyagarajah <
> abilashini...@cse.mrt.ac.lk> wrote:
>
>> Hi Maduranga,
>>
>> I have already submitted the final proposal. I would like to thank you
>> for your guidance throughout the process of understanding the project and
>> preparing the proposal. Looking forward to work on the project.
>>
>> Best Regards,
>> Abilashini
>>
>> *Thiyagarajah Abilashini*
>> Student
>> Department of Computer Science and Engineering
>> University of Moratuwa, Sri Lanka
>>
>> On 3 April 2017 at 19:54, Maduranga Siriwardena 
>> wrote:
>>
>>> Hi Abishalani,
>>>
>>> I will not have time to go through your proposal now. As the deadline is
>>> getting closer, please go ahead and submit the proposal.
>>>
>>> Thanks,
>>>
>>> On Sun, Apr 2, 2017 at 10:12 PM, Abilashini Thiyagarajah <
>>> abilashini...@cse.mrt.ac.lk> wrote:
>>>
 Hi Maduranga,

 I have included the initial design in the proposal. I kindly request
 your feedback on it.

 Thank you,
 Abilashini

 *Thiyagarajah Abilashini*
 Student
 Department of Computer Science and Engineering
 University of Moratuwa, Sri Lanka

 On 27 March 2017 at 21:14, Abilashini Thiyagarajah <
 abilashini...@cse.mrt.ac.lk> wrote:

> Hi Maduranga,
>
> Sorry for the inconvenience occurred with the wrong link.
>
> Thank you for your comments and I am updating the proposal
> respectively. Also I have replied to some of the comments for
> clarification. It would be so helpful if I get your comment on those.
>
> I will include the initial design and the the fixed jira issues as
> soon as possible.
>
> Thanks,
> Abilashini
>
> *Thiyagarajah Abilashini*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa, Sri Lanka
>
> On 27 March 2017 at 20:07, Maduranga Siriwardena 
> wrote:
>
>> Hi Abishalani,
>>
>> The link you have shared seems to be not accessible any more. However
>> I was able to access the draft proposal you have shared through GSOC
>> Dashboard.
>>
>> I have added few comments to the draft. Please go through them and
>> try to improve the proposal.
>>
>> Thanks,
>>
>> On Fri, Mar 24, 2017 at 11:16 PM, Abilashini Thiyagarajah <
>> abilashini...@cse.mrt.ac.lk> wrote:
>>
>>> Hi Maduranga,
>>>
>>> I have already shared the draft of proposal [1] in the GSOC profile.
>>> Can I have your feedback on it please?
>>>
>>> [1] https://docs.google.com/document/d/1Jcye2kidM0KbaDVqXqtz
>>> VsEq_RJ_rOrcqpmqMAfpC3U/edit?usp=sharing
>>>
>>> Thank you
>>>
>>> *Thiyagarajah Abilashini*
>>> Student
>>> Department of Computer Science and Engineering
>>> University of Moratuwa, Sri Lanka
>>>
>>> On 21 March 2017 at 19:53, Maduranga Siriwardena >> > wrote:
>>>
 Hi Abilashini,

 Please find my answers inline.

 On Tue, Mar 21, 2017 at 9:00 AM, Abilashini Thiyagarajah <
 abilashini...@cse.mrt.ac.lk> wrote:

> Hi,
>
> I am working on the proposal and need some clarifications on the
> project. Please correct me if I am wrong.
>
>1. In the specification they did not talk about the validation
>of requests. Is it required to be considered in the implementation?
>
> Yes you have to at least validate the mandatory parameters for the
 requests. We can decide how much level of validation is needed when 
 going
 forward with the project.

>
>1. Does the deliverable of 'Automation for the implementation'
>mean the implementation of Quick Start for the feature?
>
> This means the test cases for the project. Usually the integration
 tests for the product are in [1]. I'm not sure whether we have test 
 cases
 for 

[Dev] Cache mediator not caching response

2017-05-04 Thread Rodrigo Vasconcelos
Hi all,

I'm trying to add caching functionality to my api service, so that repeated
requests would get a cached response. But instead of the saving the
response, the mediator is storing the message sent by the client and
returning this to repeating requests.
Here follows the configuration of my api.It describes a get resource that
receives two query parameters and uses them to create a payoad, which it
sends to a local dss service:


http://ws.apache.org/ns/synapse;>










http://com.dvg.wso2/configservice;>
$1
$2























Shouldn't the cache mediator, configured as it is, store the response of
the cache miss and return it in case of cache hit?
Why is it responding with the wrong content?


Regards,

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


Re: [Dev] JPA in a custom connector

2017-05-04 Thread KasunG Gajasinghe
I do not think openjpa register any osgi services. Can you check whether
the package is exposed? Also verify the status of the openjpa bundle.

osgi> p org.apache.openjpa.persistence
osgi> ss openjpa

On Thu, May 4, 2017 at 7:01 PM, Thomas LEGRAND  wrote:

> Hello again :)
>
> I retrieved the openjpa-all-2.4.2.jar file and dropped it in the 
> /lib
> directory to let the runtime taking care of the bundle generation during
> the startup. The effect was the generation of the file
> openjpa_all_2.4.2_1.0.0.jar in the directory /dropins.
>
> I restarted the EI with:
>
>  D:\ProjetESB\wso2ei-6.0.0\bin> .\integrator.bat -DosgiConsole=19444
>
> So I can connect to the OSGI  console via telnet. But, when I try to
> retrieve the objectclasses starting with org.apache.openjpa.*, I have
> nothing :(
>
> osgi> services (objectclass=org.apache.openjpa.*)
> "No registered services."
>
> Am I missing something?
>
> Regards,
>
> Thomas
>
> 2017-05-04 10:49 GMT+02:00 KasunG Gajasinghe :
>
>> Hi Thomas,
>>
>> Well, the connector itself cannot be deployed as an osgi bundle. But, you
>> can call classes in osgi bundles from your connector. So, place your JPA
>> logic in an osgi bundle and add it to dropins/ folder. Then, call that from
>> your connector.
>>
>> This should give you flexibility over your classloading. I cannot comment
>> on JPA stuff though.
>>
>> On Thu, May 4, 2017 at 1:26 PM, Thomas LEGRAND <
>> thomas.legr...@versusmind.eu> wrote:
>>
>>> Hello KasunG,
>>>
>>> I forgot to mention that I am using wso2ei-6.0.0.
>>>
>>> During the build of my connector, I noticed that a .jar is created with
>>> the .zip for the connector so I tried to deploy it. Actually, I tried the
>>> following directories and my sequence does not find any of the components
>>> like if my connector was not deployed :
>>> - /repository/components/dropins (this directory did not
>>> exist so I created it)
>>> - /dropins
>>>
>>> In addition, I don't find anything in the documentation mentioning that
>>> we can deploy connectors as an OSGi bundle :(
>>>
>>> When I deploy the .zip of the connector via the interface, it is
>>> deployed in /repository/deployment/server/synapse-libs
>>> which is the same directory used by Synapse:
>>> http://synapse.apache.org/userguide/template_library.html
>>>
>>> Concerning the "architecture" of my component, I deployed a .zip with a
>>> META-INF directory containing the persistence.xml but I don't think it is
>>> used like the absence of mention in the Synaspe documentation above. :)
>>> Then, I call OpenJPA with the following lines:
>>>
>>> EntityManagerFactory emf = Persistence.createEntityManage
>>> rFactory("my-pu");
>>> EntityManager mgr = emf.createEntityManager();
>>>
>>> But then, I have the exception.
>>>
>>> I made a topic on StackOverflow one or two weeks ago:
>>> https://stackoverflow.com/questions/43538743/wso2-is-there-a
>>> -way-to-use-jpa-in-a-custom-connector
>>>
>>> I you know a documentation to generate an OSGi bundle for a connector, I
>>> am very interested. :)
>>>
>>> Regards,
>>>
>>> Thomas
>>>
>>> 2017-05-03 18:29 GMT+02:00 KasunG Gajasinghe :
>>>
 You are working in an OSGi environment, so you need to be thinking from
 the osgi classloading perspective. Each osgi bundle under
 repository/components/{plugins,dropins} has its own classloader and a
 classpath.

 Hence, the place you put your persistence.xml is important. I'm not
 sure how you call OpenJPA, so I cannot comment on what steps to follow. But
 in essence, re-build your connector as an osgi bundle (its just a jar with
 a set of manifest entries in MANIFEST.MF), and place it in
 repository/components/dropins. I have not tested this myself though.

 Regards,
 KasunG


 On Wed, May 3, 2017 at 8:38 PM, Thomas LEGRAND <
 thomas.legr...@versusmind.eu> wrote:

> Hello everybody,
>
> I am currently writing a custom connector to retrieve information from
> a database. Because the mediators to do so does not fit my needs, I am
> using a custom Java class which is currently implemented to retrieve a
> DataSource via the JNDI name I configured in the ESB interface. That works
> nicely :)
>
> But then, for maintenance purpose, I would like to use JPA
> (preferably, the OpenJPA implementation :)) but it is like the
> persistence.xml is not even read. :(
> My libraries are placed in the lib/ directory in the generated zip of
> my connector and I don't have any problem using the classes of OpenJPA.
> Actually, just this error message appears:
>
> 1 INFO [PassThroughMessageProcessor-313] openjpa.Runtime - Starting
> OpenJPA 2.4.0 org.apache.openjpa.persistence.ArgumentException: The
> persistence provi der is attempting to use properties in the
> persistence.xml file to resolve the data source. A Java Database
> Connectivity (JDBC) 

Re: [Dev] GSOC : OAuth 2.0 Dynamic Client Registration Management Protocol Support

2017-05-04 Thread Abilashini Thiyagarajah
Hi all,

Thank you so much for accepting my proposal and selecting me to work on the
project "*OAuth 2.0 Dynamic Client Registration Management Protocol support
for WSO2 Identity Server*" in GSOC 2017. I am so happy to work on a WSO2
project after the internship.

I would like to clarify the plan through out the program. Shall we stick to
my project plan in my proposal?

Looking forward to have a fabulous project experience with WSO2 for next 4
months of period.

Thankyou and best regards,
Abilashini

*Thiyagarajah Abilashini*
Student
Department of Computer Science and Engineering
University of Moratuwa, Sri Lanka

On 3 April 2017 at 20:15, Abilashini Thiyagarajah <
abilashini...@cse.mrt.ac.lk> wrote:

> Hi Maduranga,
>
> I have already submitted the final proposal. I would like to thank you for
> your guidance throughout the process of understanding the project and
> preparing the proposal. Looking forward to work on the project.
>
> Best Regards,
> Abilashini
>
> *Thiyagarajah Abilashini*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa, Sri Lanka
>
> On 3 April 2017 at 19:54, Maduranga Siriwardena 
> wrote:
>
>> Hi Abishalani,
>>
>> I will not have time to go through your proposal now. As the deadline is
>> getting closer, please go ahead and submit the proposal.
>>
>> Thanks,
>>
>> On Sun, Apr 2, 2017 at 10:12 PM, Abilashini Thiyagarajah <
>> abilashini...@cse.mrt.ac.lk> wrote:
>>
>>> Hi Maduranga,
>>>
>>> I have included the initial design in the proposal. I kindly request
>>> your feedback on it.
>>>
>>> Thank you,
>>> Abilashini
>>>
>>> *Thiyagarajah Abilashini*
>>> Student
>>> Department of Computer Science and Engineering
>>> University of Moratuwa, Sri Lanka
>>>
>>> On 27 March 2017 at 21:14, Abilashini Thiyagarajah <
>>> abilashini...@cse.mrt.ac.lk> wrote:
>>>
 Hi Maduranga,

 Sorry for the inconvenience occurred with the wrong link.

 Thank you for your comments and I am updating the proposal
 respectively. Also I have replied to some of the comments for
 clarification. It would be so helpful if I get your comment on those.

 I will include the initial design and the the fixed jira issues as soon
 as possible.

 Thanks,
 Abilashini

 *Thiyagarajah Abilashini*
 Student
 Department of Computer Science and Engineering
 University of Moratuwa, Sri Lanka

 On 27 March 2017 at 20:07, Maduranga Siriwardena 
 wrote:

> Hi Abishalani,
>
> The link you have shared seems to be not accessible any more. However
> I was able to access the draft proposal you have shared through GSOC
> Dashboard.
>
> I have added few comments to the draft. Please go through them and try
> to improve the proposal.
>
> Thanks,
>
> On Fri, Mar 24, 2017 at 11:16 PM, Abilashini Thiyagarajah <
> abilashini...@cse.mrt.ac.lk> wrote:
>
>> Hi Maduranga,
>>
>> I have already shared the draft of proposal [1] in the GSOC profile.
>> Can I have your feedback on it please?
>>
>> [1] https://docs.google.com/document/d/1Jcye2kidM0KbaDVqXqtz
>> VsEq_RJ_rOrcqpmqMAfpC3U/edit?usp=sharing
>>
>> Thank you
>>
>> *Thiyagarajah Abilashini*
>> Student
>> Department of Computer Science and Engineering
>> University of Moratuwa, Sri Lanka
>>
>> On 21 March 2017 at 19:53, Maduranga Siriwardena 
>> wrote:
>>
>>> Hi Abilashini,
>>>
>>> Please find my answers inline.
>>>
>>> On Tue, Mar 21, 2017 at 9:00 AM, Abilashini Thiyagarajah <
>>> abilashini...@cse.mrt.ac.lk> wrote:
>>>
 Hi,

 I am working on the proposal and need some clarifications on the
 project. Please correct me if I am wrong.

1. In the specification they did not talk about the validation
of requests. Is it required to be considered in the implementation?

 Yes you have to at least validate the mandatory parameters for the
>>> requests. We can decide how much level of validation is needed when 
>>> going
>>> forward with the project.
>>>

1. Does the deliverable of 'Automation for the implementation'
mean the implementation of Quick Start for the feature?

 This means the test cases for the project. Usually the integration
>>> tests for the product are in [1]. I'm not sure whether we have test 
>>> cases
>>> for DCR. But you have to write test cases for the project. We don't have
>>> much unit tests. But if you can write the unit tests also, it will be 
>>> great.
>>>

1. Test automation is not mentioned in the project deliverable.
Also I didn't find test classes in the implementation of DCR. So is 
 testing
not considered in the scope of this 

Re: [Dev] Simplifying the claim-config.xml file in Identity Server

2017-05-04 Thread Isura Karunaratne
Hi Lanka,

I think that is done to support both old claim management module and new
module from the same claim-mgt.xml.

Thanks
Isura.



On Thu, May 4, 2017 at 9:03 PM Pushpalanka Jayawardhana 
wrote:

> Hi All,
>
> As we know we define default claim mappings between dialects in this file
> named calim-config.xml.
> There we have default claim dialect(wso2.org) defined with all its
> required attributes. Then we also define other dialects and map each claim
> dialect URI to some local claim URI as suitable.
> Following is a fraction of such from SCIM dialect mapping.
>
> From 5.3.0 onwards we are depending on mapping the localClaim to other
> external claims URIs.
> In such case it seems '**' is not really neccessary to
> define here, as it is already defined in local claim definition.
>
> 
> urn:scim:schemas:core:1.0:name.givenName
> Name - Given Name
> *givenName*
> Given Name
> 
> 1
> 
> http://wso2.org/claims/givenname
> 
>
> This is not a critical issue, but would be better to simplify the file
> removing this, if we can agree this is not necessary here.
>
> Thanks,
> --
> Pushpalanka.
> --
> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
> Mobile: +94779716248
> Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
> lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
>
> --

*Isura Dilhara Karunaratne*
Senior Software Engineer | WSO2
Email: is...@wso2.com
Mob : +94 772 254 810
Blog : http://isurad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Simplifying the claim-config.xml file in Identity Server

2017-05-04 Thread Pushpalanka Jayawardhana
Hi All,

As we know we define default claim mappings between dialects in this file
named calim-config.xml.
There we have default claim dialect(wso2.org) defined with all its required
attributes. Then we also define other dialects and map each claim dialect
URI to some local claim URI as suitable.
Following is a fraction of such from SCIM dialect mapping.

>From 5.3.0 onwards we are depending on mapping the localClaim to other
external claims URIs.
In such case it seems '**' is not really neccessary to define
here, as it is already defined in local claim definition.


urn:scim:schemas:core:1.0:name.givenName
Name - Given Name
*givenName*
Given Name

1

http://wso2.org/claims/givenname


This is not a critical issue, but would be better to simplify the file
removing this, if we can agree this is not necessary here.

Thanks,
-- 
Pushpalanka.
-- 
Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
Mobile: +94779716248
Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2017-05-04 Thread Sriskandarajah Suhothayan
Thanks we'll fix this in future releases.



On Thu, May 4, 2017 at 11:42 AM, Lakshman Udayakantha 
wrote:

> 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 <071%20742%209601>*
>
>


-- 

*S. Suhothayan*
Associate Director / Architect
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


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


[Dev] WSO2 EI 6.1

2017-05-04 Thread Christos Sifinos
We are reviewing WSO2 6.1 Integrator. Please instruct if a web-app container 
and web-service containers are included.
Please for the following answers:


* How can we deploy wars and ears?

* Do we need a separate process/installation?

* If yes, which one?

Best Regards,
Christos

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


Re: [Dev] Error while running sample STS client

2017-05-04 Thread Jorge
Hi Mukesh.

Can you get the request with the post headers to see if this response came
from WSO2 IS or WSO2 AS?

Maybe you can open a question in stackoverflow.

Regards,
   Jorge.

2017-05-04 5:51 GMT-04:00 Mukesh Yadav :

> Hi all,
>
> After debugging I found before returning error "org.apache.axis2.AxisFault:
> Missing wsse:Security header in request at org.apache.rampart.handler.Ram
> partReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:195)"
>
> I get
>
> 
> http://schemas.xmlsoap.org/soap/envelope/
> ">
> http://www.w3.org/2005/08/addressing;>
> http://www.w3.org/2005/08/addressing/soap/fault
> urn:uuid:f84ea9d1-6671-45b4-9263-
> 8fbb288968e1
> 
> 
> http://schemas.xmlsoap.org/soap/envelope/
> ">
> axis2ns19:MustUnderstand
> *Must Understand check failed for header
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
> 
> : Security*
> 
> 
> 
> 
>
>
> While googling I found this answer [1] but this one is for CXF
>
> [1] http://stackoverflow.com/questions/9364428/soapfaultexception-
> mustunderstand-headers-oasis-200401-wss-wssecurity-secext-1
>
> On Tue, May 2, 2017 at 8:45 PM, Jorge  wrote:
>
>> Hi Mukesh debug your code and check that in this portion of code:
>>
>> String tokenID;
>> if
>> (renewedTokenID != null) {
>>
>> tokenID = renewedTokenID;
>> } else {
>>
>> tokenID = responseTokenID;
>> }
>> serClient.getOptions().setProp
>> erty(RampartMessageData.KEY_CUSTOM_ISSUED_TOKEN,
>> tokenID);
>>
>> tokenID it's not null.
>>
>> I had that problem and it was because tokenID was null.
>>
>> Also I use wire debug to see what service I'm calling, because if
>> tokenID = null the call will go to the IS not to the AS or ESB
>> log4j.logger.httpclient.wire=DEBUG
>> log4j.logger.org.apache.commons.httpclient=DEBUG
>>
>> Regards,
>>  Jorge.
>>
>> 2017-05-02 5:14 GMT-04:00, Mukesh Yadav :
>> > Hi Omnidu,
>> >
>> > I tested by disabling renew, even then same error is coming. I'm using
>> [1]
>> > as Service.
>> >
>> >
>> > [1] https://github.com/muke5hy/Axis2HelloWorld
>> >
>> > On Tue, May 2, 2017 at 1:41 AM, Omindu Rathnaweera 
>> wrote:
>> >
>> >> Hi Mukesh,
>> >>
>> >> Can you try adding the fix provided in [1] and see whether it solves
>> the
>> >> issue ? Keep the "renew" property set to 'false' in 'client.properties'
>> >> file.
>> >>
>> >> [1] - https://github.com/wso2/product-is/pull/1231/files
>> >>
>> >> Regards,
>> >> Omindu.
>> >>
>> >> On Tue, May 2, 2017 at 12:23 AM, Mukesh Yadav 
>> wrote:
>> >>
>> >>> If you need any other info please let me know,
>> >>>
>> >>> The client code,
>> >>> https://github.com/muke5hy/Axis2Client-wso2IS
>> >>>
>> >>>
>> >>>
>> >>> On Sat, Apr 29, 2017 at 9:00 PM, Kasun Bandara > >
>> >>> wrote:
>> >>>
>>  [+] Looping in the Identity server team.
>> 
>>  Kasun Gayan Bandara
>>  PhD Research Student
>>  Machine Learning Group
>> 
>>  Faculty of Information Technology, Clayton
>>  Monash University
>>  25 Exhibition Walk, Clayton Campus
>>  Wellington Road
>>  Clayton VIC 3800
>>  Australia.
>> 
>>  E: herath.band...@monash.edu
>>  M (+61) 43 491 6476
>> 
>>  
>> 
>> 
>> 
>>  On Sat, Apr 29, 2017 at 11:21 PM, Mukesh Yadav 
>>  wrote:
>> 
>> > Hi,
>> >
>> > I'm using WSO2 IS version 5.3.0 and AS 5.3.0
>> > Yes, I did follow all the steps in that blog.
>> >
>> > Did any tried running STS client for version 5.3.0 or IS and AS.
>> >
>> >
>> >
>> > On Sat, Apr 29, 2017 at 9:14 AM, Kasun Bandara <
>> kbandara...@gmail.com>
>> > wrote:
>> >
>> >> Hi Mukesh,
>> >>
>> >> Can you please specify the respective versions of WSO2 IS and WSO2
>> AS
>> >> that you are using? I assume you are testing the WS-Trust STS
>> (Active
>> >> STS)
>> >> protocol to secure a service deployed on the application server.
>> If
>> >> so,
>> >> can you please recheck whether you gave followed steps as in [1].
>> >>
>> >> Regards,
>> >> Kasun
>> >>
>> >> [1] http://www.vitharana.org/2015/01/how-ws-trust-sts-works-
>> >> in-wso2-identity.html
>> >>
>> >> Kasun Gayan Bandara
>> >> PhD Research Student
>> >> Machine Learning Group
>> >>
>> >> Faculty of Information Technology, Clayton
>> >> Monash University
>> >> 25 Exhibition Walk, Clayton Campus
>> >> Wellington Road
>> >> Clayton VIC 3800
>> 

Re: [Dev] JPA in a custom connector

2017-05-04 Thread Thomas LEGRAND
Hello again :)

I retrieved the openjpa-all-2.4.2.jar file and dropped it in the
/lib
directory to let the runtime taking care of the bundle generation during
the startup. The effect was the generation of the file
openjpa_all_2.4.2_1.0.0.jar in the directory /dropins.

I restarted the EI with:

 D:\ProjetESB\wso2ei-6.0.0\bin> .\integrator.bat -DosgiConsole=19444

So I can connect to the OSGI  console via telnet. But, when I try to
retrieve the objectclasses starting with org.apache.openjpa.*, I have
nothing :(

osgi> services (objectclass=org.apache.openjpa.*)
"No registered services."

Am I missing something?

Regards,

Thomas

2017-05-04 10:49 GMT+02:00 KasunG Gajasinghe :

> Hi Thomas,
>
> Well, the connector itself cannot be deployed as an osgi bundle. But, you
> can call classes in osgi bundles from your connector. So, place your JPA
> logic in an osgi bundle and add it to dropins/ folder. Then, call that from
> your connector.
>
> This should give you flexibility over your classloading. I cannot comment
> on JPA stuff though.
>
> On Thu, May 4, 2017 at 1:26 PM, Thomas LEGRAND <
> thomas.legr...@versusmind.eu> wrote:
>
>> Hello KasunG,
>>
>> I forgot to mention that I am using wso2ei-6.0.0.
>>
>> During the build of my connector, I noticed that a .jar is created with
>> the .zip for the connector so I tried to deploy it. Actually, I tried the
>> following directories and my sequence does not find any of the components
>> like if my connector was not deployed :
>> - /repository/components/dropins (this directory did not
>> exist so I created it)
>> - /dropins
>>
>> In addition, I don't find anything in the documentation mentioning that
>> we can deploy connectors as an OSGi bundle :(
>>
>> When I deploy the .zip of the connector via the interface, it is deployed
>> in /repository/deployment/server/synapse-libs which is
>> the same directory used by Synapse: http://synapse.apache.org/user
>> guide/template_library.html
>>
>> Concerning the "architecture" of my component, I deployed a .zip with a
>> META-INF directory containing the persistence.xml but I don't think it is
>> used like the absence of mention in the Synaspe documentation above. :)
>> Then, I call OpenJPA with the following lines:
>>
>> EntityManagerFactory emf = Persistence.createEntityManage
>> rFactory("my-pu");
>> EntityManager mgr = emf.createEntityManager();
>>
>> But then, I have the exception.
>>
>> I made a topic on StackOverflow one or two weeks ago:
>> https://stackoverflow.com/questions/43538743/wso2-is-there-
>> a-way-to-use-jpa-in-a-custom-connector
>>
>> I you know a documentation to generate an OSGi bundle for a connector, I
>> am very interested. :)
>>
>> Regards,
>>
>> Thomas
>>
>> 2017-05-03 18:29 GMT+02:00 KasunG Gajasinghe :
>>
>>> You are working in an OSGi environment, so you need to be thinking from
>>> the osgi classloading perspective. Each osgi bundle under
>>> repository/components/{plugins,dropins} has its own classloader and a
>>> classpath.
>>>
>>> Hence, the place you put your persistence.xml is important. I'm not sure
>>> how you call OpenJPA, so I cannot comment on what steps to follow. But in
>>> essence, re-build your connector as an osgi bundle (its just a jar with a
>>> set of manifest entries in MANIFEST.MF), and place it in
>>> repository/components/dropins. I have not tested this myself though.
>>>
>>> Regards,
>>> KasunG
>>>
>>>
>>> On Wed, May 3, 2017 at 8:38 PM, Thomas LEGRAND <
>>> thomas.legr...@versusmind.eu> wrote:
>>>
 Hello everybody,

 I am currently writing a custom connector to retrieve information from
 a database. Because the mediators to do so does not fit my needs, I am
 using a custom Java class which is currently implemented to retrieve a
 DataSource via the JNDI name I configured in the ESB interface. That works
 nicely :)

 But then, for maintenance purpose, I would like to use JPA (preferably,
 the OpenJPA implementation :)) but it is like the persistence.xml is not
 even read. :(
 My libraries are placed in the lib/ directory in the generated zip of
 my connector and I don't have any problem using the classes of OpenJPA.
 Actually, just this error message appears:

 1 INFO [PassThroughMessageProcessor-313] openjpa.Runtime - Starting
 OpenJPA 2.4.0 org.apache.openjpa.persistence.ArgumentException: The
 persistence provi der is attempting to use properties in the
 persistence.xml file to resolve the data source. A Java Database
 Connectivity (JDBC) driver or data source class name must be specified in
 the openjpa.ConnectionDriverName or javax.persistence.jdbc.driver property.
 The following properties are available in the configuration:
 "org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl@442ce698".

 In the persistence.xml, you have the following content :

 
 http://java.sun.com/xml
 /ns/persistence"
 

Re: [Dev] [IS] Password recovery IS 5.3.0

2017-05-04 Thread Isura Karunaratne
Have you tried this [1]? If so, check whether two-factor authentication is
enabled for your gmail account.

[1] https://support.google.com/accounts/answer/6010255?hl=en

Thanks
Isura.

On Thu, May 4, 2017 at 4:20 PM, Sadun Samintha  wrote:

> I  still get this error even though  turning on access to less secure apps.
>
> On Wed, Mar 1, 2017 at 3:54 PM, Danushka Fernando 
> wrote:
> > Found out it was blocked from gmail. By turning on access to less secure
> > apps I made it work. Sorry for the noise guys.
> >
> > Thanks & Regards
> > Danushka Fernando
> > Senior Software Engineer
> > WSO2 inc. http://wso2.com/
> > Mobile : +94716332729
> >
> > On Wed, Mar 1, 2017 at 3:50 PM, Danushka Fernando 
> > wrote:
> >>
> >> Hi All
> >> I tried to setup password reset using notification for IS 5.3.0
> dashboard.
> >> I followed [1]. When its trying to send the mail out I am seeing the
> >> following exception in server logs and mail is not sent. Any thoughts
> would
> >> be appreciated.
> >>
> >> [2017-03-01 15:44:26,235] ERROR
> >> {org.wso2.carbon.event.output.adapter.email.EmailEventAdapter} -  Event
> >> dropped at Output Adapter 'EmailPublisher' for tenant id '-1234', Error
> in
> >> message format, null
> >> javax.mail.AuthenticationFailedException
> >> at javax.mail.Service.connect(Service.java:306)
> >> 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$EmailSender.run(EmailEventAdapter.java:306)
> >> at java.util.concurrent.Executors$RunnableAdapter.
> call(Executors.java:511)
> >> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> >> 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)
> >>
> >>
> >> [1]
> >> https://docs.wso2.com/display/IS530/Password+Recovery#PasswordRecovery-
> Recoveryusingnotifications
> >> Thanks & Regards
> >> Danushka Fernando
> >> Senior Software Engineer
> >> WSO2 inc. http://wso2.com/
> >> Mobile : +94716332729
> >
> >
> >
> > ___
> > Dev mailing list
> > Dev@wso2.org
> > http://wso2.org/cgi-bin/mailman/listinfo/dev
> >
>



-- 

*Isura Dilhara Karunaratne*
Senior Software Engineer | WSO2
Email: is...@wso2.com
Mob : +94 772 254 810
Blog : http://isurad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Password recovery IS 5.3.0

2017-05-04 Thread Sadun Samintha
I  still get this error even though  turning on access to less secure apps.

On Wed, Mar 1, 2017 at 3:54 PM, Danushka Fernando  wrote:
> Found out it was blocked from gmail. By turning on access to less secure
> apps I made it work. Sorry for the noise guys.
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Wed, Mar 1, 2017 at 3:50 PM, Danushka Fernando 
> wrote:
>>
>> Hi All
>> I tried to setup password reset using notification for IS 5.3.0 dashboard.
>> I followed [1]. When its trying to send the mail out I am seeing the
>> following exception in server logs and mail is not sent. Any thoughts would
>> be appreciated.
>>
>> [2017-03-01 15:44:26,235] ERROR
>> {org.wso2.carbon.event.output.adapter.email.EmailEventAdapter} -  Event
>> dropped at Output Adapter 'EmailPublisher' for tenant id '-1234', Error in
>> message format, null
>> javax.mail.AuthenticationFailedException
>> at javax.mail.Service.connect(Service.java:306)
>> 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$EmailSender.run(EmailEventAdapter.java:306)
>> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>> 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)
>>
>>
>> [1]
>> https://docs.wso2.com/display/IS530/Password+Recovery#PasswordRecovery-Recoveryusingnotifications
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while running sample STS client

2017-05-04 Thread Mukesh Yadav
Hi all,

After debugging I found before returning error "org.apache.axis2.AxisFault:
Missing wsse:Security header in request at org.apache.rampart.handler.
RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:195)"

I get


http://schemas.xmlsoap.org/soap/envelope/;>
http://www.w3.org/2005/08/addressing;>
http://www.w3.org/2005/08/addressing/soap/fault
urn:uuid:f84ea9d1-6671-45b4-9263-8fbb288968e1


http://schemas.xmlsoap.org/soap/envelope/;>
axis2ns19:MustUnderstand
*Must Understand check failed for header
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd

: Security*






While googling I found this answer [1] but this one is for CXF

[1]
http://stackoverflow.com/questions/9364428/soapfaultexception-mustunderstand-headers-oasis-200401-wss-wssecurity-secext-1

On Tue, May 2, 2017 at 8:45 PM, Jorge  wrote:

> Hi Mukesh debug your code and check that in this portion of code:
>
> String tokenID;
> if
> (renewedTokenID != null) {
>
> tokenID = renewedTokenID;
> } else {
>
> tokenID = responseTokenID;
> }
> serClient.getOptions().setProperty(
> RampartMessageData.KEY_CUSTOM_ISSUED_TOKEN,
> tokenID);
>
> tokenID it's not null.
>
> I had that problem and it was because tokenID was null.
>
> Also I use wire debug to see what service I'm calling, because if
> tokenID = null the call will go to the IS not to the AS or ESB
> log4j.logger.httpclient.wire=DEBUG
> log4j.logger.org.apache.commons.httpclient=DEBUG
>
> Regards,
>  Jorge.
>
> 2017-05-02 5:14 GMT-04:00, Mukesh Yadav :
> > Hi Omnidu,
> >
> > I tested by disabling renew, even then same error is coming. I'm using
> [1]
> > as Service.
> >
> >
> > [1] https://github.com/muke5hy/Axis2HelloWorld
> >
> > On Tue, May 2, 2017 at 1:41 AM, Omindu Rathnaweera 
> wrote:
> >
> >> Hi Mukesh,
> >>
> >> Can you try adding the fix provided in [1] and see whether it solves the
> >> issue ? Keep the "renew" property set to 'false' in 'client.properties'
> >> file.
> >>
> >> [1] - https://github.com/wso2/product-is/pull/1231/files
> >>
> >> Regards,
> >> Omindu.
> >>
> >> On Tue, May 2, 2017 at 12:23 AM, Mukesh Yadav 
> wrote:
> >>
> >>> If you need any other info please let me know,
> >>>
> >>> The client code,
> >>> https://github.com/muke5hy/Axis2Client-wso2IS
> >>>
> >>>
> >>>
> >>> On Sat, Apr 29, 2017 at 9:00 PM, Kasun Bandara 
> >>> wrote:
> >>>
>  [+] Looping in the Identity server team.
> 
>  Kasun Gayan Bandara
>  PhD Research Student
>  Machine Learning Group
> 
>  Faculty of Information Technology, Clayton
>  Monash University
>  25 Exhibition Walk, Clayton Campus
>  Wellington Road
>  Clayton VIC 3800
>  Australia.
> 
>  E: herath.band...@monash.edu
>  M (+61) 43 491 6476
> 
>  
> 
> 
> 
>  On Sat, Apr 29, 2017 at 11:21 PM, Mukesh Yadav 
>  wrote:
> 
> > Hi,
> >
> > I'm using WSO2 IS version 5.3.0 and AS 5.3.0
> > Yes, I did follow all the steps in that blog.
> >
> > Did any tried running STS client for version 5.3.0 or IS and AS.
> >
> >
> >
> > On Sat, Apr 29, 2017 at 9:14 AM, Kasun Bandara <
> kbandara...@gmail.com>
> > wrote:
> >
> >> Hi Mukesh,
> >>
> >> Can you please specify the respective versions of WSO2 IS and WSO2
> AS
> >> that you are using? I assume you are testing the WS-Trust STS
> (Active
> >> STS)
> >> protocol to secure a service deployed on the application server.  If
> >> so,
> >> can you please recheck whether you gave followed steps as in [1].
> >>
> >> Regards,
> >> Kasun
> >>
> >> [1] http://www.vitharana.org/2015/01/how-ws-trust-sts-works-
> >> in-wso2-identity.html
> >>
> >> Kasun Gayan Bandara
> >> PhD Research Student
> >> Machine Learning Group
> >>
> >> Faculty of Information Technology, Clayton
> >> Monash University
> >> 25 Exhibition Walk, Clayton Campus
> >> Wellington Road
> >> Clayton VIC 3800
> >> Australia.
> >>
> >> E: herath.band...@monash.edu
> >> M (+61) 43 491 6476
> >>
> >> 
> >>
> >>
> >>
> >> On Fri, Apr 28, 2017 at 6:15 PM, Mukesh Yadav 
> >> wrote:
> >>
> >>> Hi All,
> >>>
> >>> I have created WSO2-IS server and WSO2-AS server for as per the
> >>> documentation, And checkout sample code. But when I run sample
> 

[Dev] Please review and merge

2017-05-04 Thread Hasanthi Purnima Dissanayake
Hi connector team,
Please review and merge [1] which fixes [2].
[1]https://github.com/wso2-extensions/identity-oauth2-grant-jwt/pull/14
[2]https://wso2.org/jira/browse/IDENTITY-5888

Thanks,

Hasanthi Dissanayake

Software Engineer | WSO2

E: hasan...@wso2.com
M :0718407133| http://wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Client credential grant type for ID token generation

2017-05-04 Thread Gayan Gunawardana
On Thu, May 4, 2017 at 2:41 PM, Pushpalanka Jayawardhana 
wrote:

> Hi All,
>
> This is in relation to issue [1] which happened when we issue ID_token for
> client credentials grant.
>
> Client credentials grant type is not really a part of OpenID Connect
> specification, as it only mentions of authorization code grant flow(Basic
> Profile) and implicit grant flow (Implicit profile), and hybrid flow.
> This is an additional thing when we issue id_token for client credentials
> grant.
>
> Also this does not make much sense when we issue an ID_token to an
> application which is presented in client credentials grant.
> In my opinion we should get rid of this, if noone is currently using it.
> Appreciate your inputs.
>
Also OpenID Connect specification does not talk about issuing ID_token for
password grant type as well. Apart from specification POV issuing ID_token
for password grant type is not logically wrong.
Issuing ID_token for client credentials grant type is logically wrong hence
+1 to remove the functionality.

>
> [1] - https://wso2.org/jira/browse/IDENTITY-4915
>
> Thanks,
> --
> Pushpalanka.
> --
> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
> Mobile: +94779716248
> Blog: pushpalankajaya.blogspot.com/ | LinkedIn: lk.linkedin.com/in/
> pushpalanka/ | Twitter: @pushpalanka
>
>


-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Client credential grant type for ID token generation

2017-05-04 Thread Pushpalanka Jayawardhana
Hi All,

This is in relation to issue [1] which happened when we issue ID_token for
client credentials grant.

Client credentials grant type is not really a part of OpenID Connect
specification, as it only mentions of authorization code grant flow(Basic
Profile) and implicit grant flow (Implicit profile), and hybrid flow.
This is an additional thing when we issue id_token for client credentials
grant.

Also this does not make much sense when we issue an ID_token to an
application which is presented in client credentials grant.
In my opinion we should get rid of this, if noone is currently using it.
Appreciate your inputs.

[1] - https://wso2.org/jira/browse/IDENTITY-4915

Thanks,
-- 
Pushpalanka.
-- 
Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
Mobile: +94779716248
Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please Review and Merge (WebSocket Client Connector)

2017-05-04 Thread Irunika Weeraratne
Hi,
Please review and merge this PR.
https://github.com/wso2/carbon-transports/pull/287

Thanks,
Irunika
*Irunika Weeraratne*
*Software Engineer | WSO2, Inc. *
*Email : irun...@wso2.com *
*LinkedIn : https://lk.linkedin.com/in/irunika
*
*Mobile : +94712403314*
*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] JPA in a custom connector

2017-05-04 Thread KasunG Gajasinghe
Hi Thomas,

Well, the connector itself cannot be deployed as an osgi bundle. But, you
can call classes in osgi bundles from your connector. So, place your JPA
logic in an osgi bundle and add it to dropins/ folder. Then, call that from
your connector.

This should give you flexibility over your classloading. I cannot comment
on JPA stuff though.

On Thu, May 4, 2017 at 1:26 PM, Thomas LEGRAND  wrote:

> Hello KasunG,
>
> I forgot to mention that I am using wso2ei-6.0.0.
>
> During the build of my connector, I noticed that a .jar is created with
> the .zip for the connector so I tried to deploy it. Actually, I tried the
> following directories and my sequence does not find any of the components
> like if my connector was not deployed :
> - /repository/components/dropins (this directory did not
> exist so I created it)
> - /dropins
>
> In addition, I don't find anything in the documentation mentioning that we
> can deploy connectors as an OSGi bundle :(
>
> When I deploy the .zip of the connector via the interface, it is deployed
> in /repository/deployment/server/synapse-libs which is the
> same directory used by Synapse: http://synapse.apache.org/
> userguide/template_library.html
>
> Concerning the "architecture" of my component, I deployed a .zip with a
> META-INF directory containing the persistence.xml but I don't think it is
> used like the absence of mention in the Synaspe documentation above. :)
> Then, I call OpenJPA with the following lines:
>
> EntityManagerFactory emf = Persistence.createEntityManagerFactory("
> my-pu");
> EntityManager mgr = emf.createEntityManager();
>
> But then, I have the exception.
>
> I made a topic on StackOverflow one or two weeks ago:
> https://stackoverflow.com/questions/43538743/wso2-is-
> there-a-way-to-use-jpa-in-a-custom-connector
>
> I you know a documentation to generate an OSGi bundle for a connector, I
> am very interested. :)
>
> Regards,
>
> Thomas
>
> 2017-05-03 18:29 GMT+02:00 KasunG Gajasinghe :
>
>> You are working in an OSGi environment, so you need to be thinking from
>> the osgi classloading perspective. Each osgi bundle under
>> repository/components/{plugins,dropins} has its own classloader and a
>> classpath.
>>
>> Hence, the place you put your persistence.xml is important. I'm not sure
>> how you call OpenJPA, so I cannot comment on what steps to follow. But in
>> essence, re-build your connector as an osgi bundle (its just a jar with a
>> set of manifest entries in MANIFEST.MF), and place it in
>> repository/components/dropins. I have not tested this myself though.
>>
>> Regards,
>> KasunG
>>
>>
>> On Wed, May 3, 2017 at 8:38 PM, Thomas LEGRAND <
>> thomas.legr...@versusmind.eu> wrote:
>>
>>> Hello everybody,
>>>
>>> I am currently writing a custom connector to retrieve information from a
>>> database. Because the mediators to do so does not fit my needs, I am using
>>> a custom Java class which is currently implemented to retrieve a DataSource
>>> via the JNDI name I configured in the ESB interface. That works nicely :)
>>>
>>> But then, for maintenance purpose, I would like to use JPA (preferably,
>>> the OpenJPA implementation :)) but it is like the persistence.xml is not
>>> even read. :(
>>> My libraries are placed in the lib/ directory in the generated zip of my
>>> connector and I don't have any problem using the classes of OpenJPA.
>>> Actually, just this error message appears:
>>>
>>> 1 INFO [PassThroughMessageProcessor-313] openjpa.Runtime - Starting
>>> OpenJPA 2.4.0 org.apache.openjpa.persistence.ArgumentException: The
>>> persistence provi der is attempting to use properties in the
>>> persistence.xml file to resolve the data source. A Java Database
>>> Connectivity (JDBC) driver or data source class name must be specified in
>>> the openjpa.ConnectionDriverName or javax.persistence.jdbc.driver property.
>>> The following properties are available in the configuration:
>>> "org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl@442ce698".
>>>
>>> In the persistence.xml, you have the following content :
>>>
>>> 
>>> http://java.sun.com/xml/ns/persistence
>>> "
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>>> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
>>> http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd;>
>>> 
>>> org.apache.openjpa.persistence.PersistenceProvider
>>> Impl
>>> jdbc/MyDataSource
>>> 
>>> 
>>>
>>> Is there some hidden magic to make it work?
>>>
>>> Thank you :)
>>>
>>> Regards,
>>>
>>> Thomas
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
>> email: kasung AT spamfree wso2.com
>> linked-in: http://lk.linkedin.com/in/gajasinghe
>> blog: http://kasunbg.org
>> phone: +1 650-745-4499 <(650)%20745-4499>, 77 678 0813
>>
>>
>
>


-- 


Re: [Dev] JPA in a custom connector

2017-05-04 Thread Thomas LEGRAND
Hello KasunG,

I forgot to mention that I am using wso2ei-6.0.0.

During the build of my connector, I noticed that a .jar is created with the
.zip for the connector so I tried to deploy it. Actually, I tried the
following directories and my sequence does not find any of the components
like if my connector was not deployed :
- /repository/components/dropins (this directory did not
exist so I created it)
- /dropins

In addition, I don't find anything in the documentation mentioning that we
can deploy connectors as an OSGi bundle :(

When I deploy the .zip of the connector via the interface, it is deployed
in /repository/deployment/server/synapse-libs which is the
same directory used by Synapse:
http://synapse.apache.org/userguide/template_library.html

Concerning the "architecture" of my component, I deployed a .zip with a
META-INF directory containing the persistence.xml but I don't think it is
used like the absence of mention in the Synaspe documentation above. :)
Then, I call OpenJPA with the following lines:

EntityManagerFactory emf = Persistence.createEntityManagerFactory("my-pu");
EntityManager mgr = emf.createEntityManager();

But then, I have the exception.

I made a topic on StackOverflow one or two weeks ago:
https://stackoverflow.com/questions/43538743/wso2-is-there-a-way-to-use-jpa-in-a-custom-connector

I you know a documentation to generate an OSGi bundle for a connector, I am
very interested. :)

Regards,

Thomas

2017-05-03 18:29 GMT+02:00 KasunG Gajasinghe :

> You are working in an OSGi environment, so you need to be thinking from
> the osgi classloading perspective. Each osgi bundle under
> repository/components/{plugins,dropins} has its own classloader and a
> classpath.
>
> Hence, the place you put your persistence.xml is important. I'm not sure
> how you call OpenJPA, so I cannot comment on what steps to follow. But in
> essence, re-build your connector as an osgi bundle (its just a jar with a
> set of manifest entries in MANIFEST.MF), and place it in
> repository/components/dropins. I have not tested this myself though.
>
> Regards,
> KasunG
>
>
> On Wed, May 3, 2017 at 8:38 PM, Thomas LEGRAND <
> thomas.legr...@versusmind.eu> wrote:
>
>> Hello everybody,
>>
>> I am currently writing a custom connector to retrieve information from a
>> database. Because the mediators to do so does not fit my needs, I am using
>> a custom Java class which is currently implemented to retrieve a DataSource
>> via the JNDI name I configured in the ESB interface. That works nicely :)
>>
>> But then, for maintenance purpose, I would like to use JPA (preferably,
>> the OpenJPA implementation :)) but it is like the persistence.xml is not
>> even read. :(
>> My libraries are placed in the lib/ directory in the generated zip of my
>> connector and I don't have any problem using the classes of OpenJPA.
>> Actually, just this error message appears:
>>
>> 1 INFO [PassThroughMessageProcessor-313] openjpa.Runtime - Starting
>> OpenJPA 2.4.0 org.apache.openjpa.persistence.ArgumentException: The
>> persistence provi der is attempting to use properties in the
>> persistence.xml file to resolve the data source. A Java Database
>> Connectivity (JDBC) driver or data source class name must be specified in
>> the openjpa.ConnectionDriverName or javax.persistence.jdbc.driver property.
>> The following properties are available in the configuration:
>> "org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl@442ce698".
>>
>> In the persistence.xml, you have the following content :
>>
>> 
>> http://java.sun.com/xml/ns/persistence;
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
>> http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd;>
>> 
>> org.apache.openjpa.persistence.PersistenceProvider
>> Impl
>> jdbc/MyDataSource
>> 
>> 
>>
>> Is there some hidden magic to make it work?
>>
>> Thank you :)
>>
>> Regards,
>>
>> Thomas
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
> phone: +1 650-745-4499 <(650)%20745-4499>, 77 678 0813
>
>
___
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