Re: [Dev] Review and Merge PR

2015-07-06 Thread Sriashalya Srivathsan
Hi,
Please find the PR below
https://github.com/wso2/product-esb/pull/210

On Tue, Jul 7, 2015 at 12:18 PM, Sriashalya Srivathsan 
wrote:

> Please $ subject for synapse_sample 907
>
> Thank you.
>
> --
> Regards
> S.Sriashalya,
> WSO2 *Inc*.
> lean . enterprise . middleware
>



-- 
Regards
S.Sriashalya,
WSO2 *Inc*.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Review and Merge PR

2015-07-06 Thread Sriashalya Srivathsan
Please $ subject for synapse_sample 907

Thank you.

-- 
Regards
S.Sriashalya,
WSO2 *Inc*.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pull Request

2015-07-06 Thread Malaka Silva
Merged

On Tue, Jul 7, 2015 at 11:20 AM, Vanii Thiyagarajah  wrote:

> Hi Malaka,
>
> I have changed the POM ,README.txt and HTTP endpoints for the Agilezen
> connector. All test cases are passed with BETA.Please find the PR [1]
>
> [ 1https://github.com/wso2/esb-connectors/pull/220]
>
> Thanks,
>



-- 

Best Regards,

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

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


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


[Dev] Pull Request

2015-07-06 Thread Vanii Thiyagarajah
Hi Malaka,

I have changed the POM ,README.txt and HTTP endpoints for the Agilezen
connector. All test cases are passed with BETA.Please find the PR [1]

[ 1https://github.com/wso2/esb-connectors/pull/220]

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


[Dev] Throttle mediator improvements

2015-07-06 Thread Kevin Ratnasekera
Hi all,
With related to $subject, we did some changes related to carbon throttle
core module. Currently there is no public git repository for this throttle
core module which has distributed throttling features.
So as a alternative, we are planning to move the throttle core module to
Synapse Commons package with added improvements.
Regards
Kevin
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Selecting JMS SpecVersion in JMS Transport Sender

2015-07-06 Thread Malaka Silva
IMO this should be done as a URL parameter

On Tue, Jul 7, 2015 at 7:47 AM, Manisha Gayathri  wrote:

> Hi Eranda,
>
> From what I found [1], JMS Transport Sender too can be configured
> similarly.
>
> 
> 
>  = "false">com.sun.jndi.fscontext.RefFSContextFactory
>  locked="false">file:/home/user/JNDI-Directory
>  name="transport.jms.ConnectionFactoryJNDIName" 
> locked="false">MQ_JMS_MANAGER
>  locked="false">queue
>  name="transport.jms.Destination">JMS_QUEUE
>  name="*transport.jms.JMSSpecVersion*">1.0
> 
>
>
> [1].
> http://wso2.com/library/articles/2013/02/configuring-wso2-esb-403-ibm-websphere-mq-601-using-reffscontextfactory/
>
> Thanks
> Manisha
>
>
> On Tue, Jul 7, 2015 at 6:43 AM, eranda rajapaksha 
> wrote:
>
>> Hi,
>>
>> Is there a way to select JMS version in the ESB JMS Transport Sender? (
>> it can be done in JMS Transport Receiver )
>> If so how do I specify it, should it be done in the endpoint address URL
>> or as a parameter?
>>
>> Thank you!
>>
>> --
>> *Eranda Rajapakshe*
>> Computer Science and Engineering Undergraduate,
>> University of Moratuwa.
>> Tel : +94784822608
>> Email : erand...@gmail.com 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> ~Regards
> *Manisha Eleperuma*
> Senior Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
>
> *blog:  http://manisha-eleperuma.blogspot.com/
> *
> *mobile:  +94 71 8279777 <%2B94%2071%208279777>*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Best Regards,

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

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


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


[Dev] oracle function with table return type not working in wso2 dss

2015-07-06 Thread Akila Nimantha [IT/EKO/LOITS]
Hi All,
I am working on wso2 data service server and trying to create data service 
using oracle function as the data source.
in the function return type is a table type one. i tried many times but its not 
working for me.
Is table type accessible through WSO2 DSS?
also i have attached data service file and the plsql function and return type 
details and the error I got from SoapUI same in the mail.
have you any idea about why this is not working. also there is no any issue in 
the database connection and its working for other services i created.

Regards,
Akila Rathnayake


This message (including any attachments) is intended only for
the use of the individual or entity to which it is addressed and
may contain information that is non-public, proprietary,
privileged, confidential, and exempt from disclosure under
applicable law or may constitute as attorney work product.
If you are not the intended recipient, you are hereby notified
that any use, dissemination, distribution, or copying of this
communication is strictly prohibited. If you have received this
communication in error, notify us immediately by telephone and
(i) destroy this message if a facsimile or (ii) delete this message
immediately if this is an electronic communication.

Thank you.


service.dbs
Description: service.dbs
http://schemas.xmlsoap.org/soap/envelope/";>
   
  http://ws.wso2.org/dataservice";>
 axis2ns92:DATABASE_ERROR
 DS Code: DATABASE_ERROR
Nested Exception:-
javax.xml.stream.XMLStreamException: DS Fault Message: Error in 
'SQLQuery.processStoredProcQuery': ORA-06550: line 1, column 12:
PLS-00382: expression is of wrong type
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored

DS Code: DATABASE_ERROR
Source Data Service:-
Name: IBaccountBalanceDetailType
Location: /IBaccountBalanceDetailType.dbs
Description: N/A
Default Namespace: http://www.lolc.com/IBaccountBalanceDetailType
Current Request Name: getAccountBalanceDetailType
Current Params: {p_acc_type=S, p_acc_no=0011001, req_type_id=, token_id=, 
rep_chnl=IB}
Nested Exception:-
java.sql.SQLException: ORA-06550: line 1, column 12:
PLS-00382: expression is of wrong type
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
 
http://ws.wso2.org/dataservice";>
   {p_acc_type=S, p_acc_no=0011001, 
req_type_id=, token_id=, rep_chnl=IB}
   
getAccountBalanceDetailType
   java.sql.SQLException: ORA-06550: 
line 1, column 12:
PLS-00382: expression is of wrong type
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
   
  
/IBaccountBalanceDetailType.dbs
  
http://www.lolc.com/IBaccountBalanceDetailType
  N/A
  
IBaccountBalanceDetailType
   
   DATABASE_ERROR

 
  
   
//this is the details for plsql function,


function sent_ib_acc_balinq_detail_typ (p_acc_noin  varchar2,   
 p_acc_type  in  varchar2, 
req_type_id in  varchar2, 
token_idin  varchar2,  
rep_chnlin  varchar2)  
return dbt_ib_acc_balinq_detail_tab is

begin
return 
pkg_sv_cyber_ib_savi_acc_dtl.sent_ib_acc_balinq_detail(p_acc_no, p_acc_type, 
req_type_id, token_id, rep_chnl);
 
end;

end pkg_cyber_ib_proxy_savi_accdtl;




//This is the return type details


(account_number  varchar2(30)null,   
account_typevarchar2(3) null,
amount  number(17,2)null,
available_balance   number(17,2)null,
currency_code   varchar2(6) null,
account_status  varchar2(4) null,
cif_no  number  null,
start_date  datenull,
end_datedatenull,
due_day varchar2(3) null,
int_ratevarchar2(6) null,
invester_ratio  varchar2(6) null,
company_ratio   varchar2(6) null,
profit_ratiovarchar2(6) null,
no_of_month varchar2(5) null,
pay_modevarchar2(3) null,
original_fd_no  varchar2(30)null,
renewal_indicater   varchar2(100)   null,
monthly_rental  number(17,2)null,
rentals_in_arrears_amount   number(17,2)null,
current_due number(17,2)null,
future_resiablesnumber(17,2)null,
vehicle_number  varchar2(14)null,
location_addressvarchar2(400)   null,
policy_period   varchar2(4) null 
  )
/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-b

Re: [Dev] PR for Mqtt Axis2 Transport

2015-07-06 Thread Sriashalya Srivathsan
Hi Malaka,
I'm looking on Integration tests. And the previous error faulty service, I
found the reason for that, when I have qos 1 or 2 at the time of changing
the proxy, it gets the same persistence, so it is giving persistence error
and faulty service. If I change 0 instead of 1, it is working bc for 0
persistence is null.

On Tue, Jul 7, 2015 at 10:16 AM, Malaka Silva  wrote:

> Hi Sriashalya,
>
> I have merged the PR. Are you currently working on anymore improvements?
>
> On Mon, Jul 6, 2015 at 3:32 PM, Sriashalya Srivathsan 
> wrote:
>
>> Hi Chanaka,
>> Changes has been made. Find those in the same pull request
>>
>> On Mon, Jul 6, 2015 at 2:33 PM, Chanaka Fernando 
>> wrote:
>>
>>> Hi Sriashalya,
>>>
>>> Added few comments regarding the versions in pom file. Please rectify
>>> them.
>>>
>>> Thanks,
>>> Chanaka
>>>
>>> On Mon, Jul 6, 2015 at 2:25 PM, Sriashalya Srivathsan 
>>> wrote:
>>>
 Hi Malaka,
 Please review merge PR[1]
 [1] https://github.com/wso2/wso2-axis2-transports/pull/38
 --
 Regards
 S.Sriashalya,
 WSO2 *Inc*.
 lean . enterprise . middleware

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


>>>
>>>
>>> --
>>> --
>>> Chanaka Fernando
>>> Senior Technical Lead
>>> WSO2, Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 773337238
>>> Blog : http://soatutorials.blogspot.com
>>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
>>> Twitter:https://twitter.com/chanakaudaya
>>> Wordpress:http://chanakaudaya.wordpress.com
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Regards
>> S.Sriashalya,
>> WSO2 *Inc*.
>> lean . enterprise . middleware
>>
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 
Regards
S.Sriashalya,
WSO2 *Inc*.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] PR for Mqtt Axis2 Transport

2015-07-06 Thread Malaka Silva
Hi Sriashalya,

I have merged the PR. Are you currently working on anymore improvements?

On Mon, Jul 6, 2015 at 3:32 PM, Sriashalya Srivathsan 
wrote:

> Hi Chanaka,
> Changes has been made. Find those in the same pull request
>
> On Mon, Jul 6, 2015 at 2:33 PM, Chanaka Fernando 
> wrote:
>
>> Hi Sriashalya,
>>
>> Added few comments regarding the versions in pom file. Please rectify
>> them.
>>
>> Thanks,
>> Chanaka
>>
>> On Mon, Jul 6, 2015 at 2:25 PM, Sriashalya Srivathsan 
>> wrote:
>>
>>> Hi Malaka,
>>> Please review merge PR[1]
>>> [1] https://github.com/wso2/wso2-axis2-transports/pull/38
>>> --
>>> Regards
>>> S.Sriashalya,
>>> WSO2 *Inc*.
>>> lean . enterprise . middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> --
>> Chanaka Fernando
>> Senior Technical Lead
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 773337238
>> Blog : http://soatutorials.blogspot.com
>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
>> Twitter:https://twitter.com/chanakaudaya
>> Wordpress:http://chanakaudaya.wordpress.com
>>
>>
>>
>>
>
>
> --
> Regards
> S.Sriashalya,
> WSO2 *Inc*.
> lean . enterprise . middleware
>



-- 

Best Regards,

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

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


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


Re: [Dev] NDatasource stub and class loading issue

2015-07-06 Thread Rajith Vitharana
Hi Manoj,

Yes you are correct, but will that be ok to change package names since this
may be already used in many other locations?. So if we change package
structure that may cause many other problems. Besides, if we export
packages explicitly as done in above mentioned pull requests, won't that
solve the issue?(In osgi we can resolve it like that AFAIK)

Thanks,

On Tue, Jul 7, 2015 at 4:23 AM, Manoj Kumara  wrote:

> Hi Rajith,
>
> The normal pattern that we use for service stubs like org.wso2.carbon.xxx.stub
> not ui.stub. Since there is another module with org.wso2.carbon.xxx.ui
> with this commit there can be pacage level conflicts. So better to fix this
> properly.
>
> Regards,
> Manoj
>
>
> *Manoj Kumara |* Senior Software Engineer
>  Inc. *| **lean. enterprise. middleware.*
> #20, Palm Grove, Colombo 03, Sri Lanka
> *Mobile:* +94 713 448188 *|** Work:* +94 112 145345
>
>
> On Fri, Jul 3, 2015 at 12:50 AM, Rajith Vitharana 
> wrote:
>
>> Hi,
>>
>> Both fixes should be there right? unless ui.stub packages will be
>> exported by both stub  component and ui component.
>>
>> Thanks,
>>
>> On Fri, Jul 3, 2015 at 10:58 AM, Ravi Undupitiya  wrote:
>>
>>> Hi All,
>>>
>>> There's a class loading issue affecting ESB described in [1]. This has
>>> happened due to changes in [2].
>>>
>>> We can fix this issue using [3] however kernel team suggests the fix in
>>> [2] breaks the package naming convention used as per other UI stubs. @Manoj
>>> has more details on this.
>>>
>>> Please advise whether we should go ahead with fix in [3].
>>>
>>>
>>> [1] https://wso2.org/jira/browse/ESBJAVA-3734
>>> [2]
>>> https://github.com/wso2/carbon-commons/commit/3cb5ee0b3f3086fb0e300e2bae7a91f7b365f197
>>> [3] https://github.com/wso2/carbon-commons/pull/103/files
>>>
>>>
>>>
>>> Thanks,
>>> --
>>> *Ravi Undupitiya*
>>> Senior Software Engineer; WSO2 http://wso2.com
>>>
>>>
>>> *E-mail: r...@wso2.com **M: **+94 772 930 712
>>> <%2B94%C2%A0772%20930%20712>*
>>>
>>> Lean . Enterprise . Middleware
>>>
>>
>>
>>
>> --
>> Rajith Vitharana
>>
>> Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94715883223
>> Blog : http://lankavitharana.blogspot.com/
>>
>
>


-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CEP] Interested in Contributing to WSO2 CEP Product.

2015-07-06 Thread Tharik Kanaka
Hi Nirmali,

At the moment WSO2 CEP is about to release 4.0.0 and we have already
released beta version. You may have an idea since you have worked with CEP
but better to refer new documentation 4.0.0 [1] because there are
significant improvements from previous version.

CEP component and product source codes are available on github repositories
[2],[3],[4],[5] which you can refer and use to contribute. On the hand you
can use public JIRA issues [6] to report bugs, improvements and etc.

[1] https://docs.wso2.com/display/CEP400/CEP+Configuration+Overview
[2] https://github.com/wso2/siddhi
[3] https://github.com/wso2/carbon-event-processing
[4] https://github.com/wso2/carbon-analytics-common
[5] https://github.com/wso2/product-cep
[6] https://wso2.org/jira/browse/CEP

Regards,

On Mon, Jul 6, 2015 at 11:31 PM, Bhashinee Nirmali 
wrote:

> Hi All,
>
> I am Bhashinee Nirmali from Faculty of Information Technology, University
> of Moratuwa. I have done a traffic analysis project as my second year group
> project, based on WSO2 CEP. Further I am interested in contributing to CEP
> product. As a beginner how should I start?
>
> Thank You
>
> Bhashinee Nirmali
> Faculty of Information Technology
> University of Moratuwa.
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Tharik Kanaka*

WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

Email: tha...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge the PR

2015-07-06 Thread Malaka Silva
PRs are merged now.

On Mon, Jul 6, 2015 at 10:01 PM, Malaka Silva  wrote:

> Hi Elilmatha,
>
> I have added some comments. Please check and update the thread.
>
> On Mon, Jul 6, 2015 at 3:39 PM, Elilmatha Sivanesan 
> wrote:
>
>> Hi Malaka,
>>
>> Please review and merge the PR [1] for Mqtt inbound sample.
>>
>> [1] https://github.com/wso2/product-esb/pull/206
>>
>> Thank you.
>> --
>> *S.Elilmatha*
>> Associate  Software Engineer,
>>
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> Mobile 0779842221.
>>
>>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 

Best Regards,

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

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


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


Re: [Dev] [ESB] Selecting JMS SpecVersion in JMS Transport Sender

2015-07-06 Thread Manisha Gayathri
Hi Eranda,

>From what I found [1], JMS Transport Sender too can be configured similarly.



com.sun.jndi.fscontext.RefFSContextFactory
file:/home/user/JNDI-Directory
MQ_JMS_MANAGER
queue
JMS_QUEUE
1.0



[1].
http://wso2.com/library/articles/2013/02/configuring-wso2-esb-403-ibm-websphere-mq-601-using-reffscontextfactory/

Thanks
Manisha


On Tue, Jul 7, 2015 at 6:43 AM, eranda rajapaksha 
wrote:

> Hi,
>
> Is there a way to select JMS version in the ESB JMS Transport Sender? ( it
> can be done in JMS Transport Receiver )
> If so how do I specify it, should it be done in the endpoint address URL
> or as a parameter?
>
> Thank you!
>
> --
> *Eranda Rajapakshe*
> Computer Science and Engineering Undergraduate,
> University of Moratuwa.
> Tel : +94784822608
> Email : erand...@gmail.com 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
~Regards
*Manisha Eleperuma*
Senior Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware

*blog:  http://manisha-eleperuma.blogspot.com/
*
*mobile:  +94 71 8279777*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ML] Serialization issue with H-2-O

2015-07-06 Thread Thushan Ganegedara
Hi all,

I've introduced a MLModel for Deeplearning and currently looking into
serialization of that model. It seems serialization of H-2-O
DeeplearningModel (with custom serializers) is quite tricky.

I have been able to successfully serialize the model by using an AutoBuffer
(H-2-O) and ByteStream

However in the deserialization process, it gives an error (described in
https://groups.google.com/forum/#!topic/h2ostream/JRjdj2f7CXw)

Therefore it is still impossible to deserialize the model. I've done
extensive debuggin on H-2-O tracking all the steps during the
serialization. But it seems to occur from a class created during start up
time by something called a "Weaver". I still trying to figure out how to
debug them.

Thank you

-- 
Regards,

Thushan Ganegedara
School of IT
University of Sydney, Australia
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] NTASK ERROR - No available task nodes for resolving a task location

2015-07-06 Thread Chanaka Fernando
Hi Senduran,

How did you start the nodes? You need to have 1 manager node and other
nodes should be started with 'DworkerNode=true' parameter as worker nodes.
Basically, task will be run on the worker nodes only.

Thanks,
Chanaka

On Tue, Jul 7, 2015 at 5:29 AM, Senduran Balasubramaniyam  wrote:

> Hi Anjana,
>
> I have a three node ESB cluster, when I try to schedule a task I am
> getting the  following exception. But all the nodes are up and running.
>
> TID: [-1234] [] [2015-07-06 23:47:30,536] ERROR
> {org.wso2.carbon.mediation.ntask.NTaskTaskManager} -  Scheduling task
> [[NTask::-1234::task_abc]::synapse.simple.quartz] FAILED. Error: No
> available task nodes for resolving a task location
> {org.wso2.carbon.mediation.ntask.NTaskTaskManager}
> org.wso2.carbon.ntask.common.TaskException: No available task nodes for
> resolving a task location
> at
> org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.getTaskLocation(ClusteredTaskManager.java:224)
> at
> org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.locateMemberForTask(ClusteredTaskManager.java:201)
> at
> org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.getMemberIdFromTaskName(ClusteredTaskManager.java:275)
> at
> org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.scheduleTask(ClusteredTaskManager.java:86)
>
> When I try to pinned the server (with IP address ) I am getting the
> following
> Server name not in pinned servers list. Not starting Task : task_abc
> {org.apache.synapse.startup.quartz.StartUpController}
>
> Could you please suggest me a to fix this
>
>
> Regards
> Senduran
>
>
> On Wed, May 27, 2015 at 8:00 AM, Anjana Fernando  wrote:
>
>> Hi Malaka,
>>
>> This is not a bug, but as the message says, this is because, in your
>> "manager" node, which I guess, did not register the task type, so it will
>> not participate in executing the tasks, but it can register and schedule
>> tasks to be run in other nodes. So if this manager node registers and gives
>> a command to say "schedule", it will look in the cluster for possible
>> workers to schedule and execute the task. If there aren't any workers
>> (nodes which has registered that task type) available, it will give this
>> error saying, the task could not be registered, which is what should be
>> done, or else, the caller will get a false confirmation saying, the task is
>> scheduled and running.
>>
>> So basically the point is, before a task is "scheduled", we have to make
>> sure, possible workers are there to run it.
>>
>> Cheers,
>> Anjana.
>>
>> On Wed, May 27, 2015 at 10:59 AM, Malaka Silva  wrote:
>>
>>> Hi,
>>>
>>> While checking the tasks observer the following error.
>>>
>>> This happens only when scheduling a task from manager. My understanding
>>> was NTASK have the same behavior in manager and worker nodes. Is it the
>>> case?
>>>
>>> This happens because in the following code. When starting manager node
>>> memberlist is empty. But starting a worker first, member list contains that
>>> member.
>>>
>>> I guess this is a bug?
>>>
>>> This will not effect the functionality in ESB however error is printed
>>> on startup.
>>>
>>> TaskServiceContext ctx = this.getTaskServiceContext();
>>> if (ctx.getServerCount() == 0) {
>>> throw new TaskException("No available task nodes for
>>> resolving a task location",
>>> Code.TASK_NODE_NOT_AVAILABLE);
>>> }
>>>
>>> [1]
>>> https://github.com/wso2/carbon-commons/blob/master/components/ntask/org.wso2.carbon.ntask.core/src/main/java/org/wso2/carbon/ntask/core/impl/clustered/ClusteredTaskManager.java
>>> [2]
>>> https://github.com/wso2/carbon-commons/blob/master/components/ntask/org.wso2.carbon.ntask.core/src/main/java/org/wso2/carbon/ntask/core/TaskServiceContext.java
>>>
>>>
>>> [2015-05-27 09:39:42,807] ERROR - NTaskTaskManager Scheduling task
>>> [[NTask::-1234::file-FILE--SYNAPSE_INBOUND_ENDPOINT]::FILE--SYNAPSE_INBOUND_ENDPOINT]
>>> FAILED. Error: No available task nodes for resolving a task location
>>> org.wso2.carbon.ntask.common.TaskException: No available task nodes for
>>> resolving a task location
>>> at
>>> org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.getTaskLocation(ClusteredTaskManager.java:224)
>>> at
>>> org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.locateMemberForTask(ClusteredTaskManager.java:201)
>>> at
>>> org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.getMemberIdFromTaskName(ClusteredTaskManager.java:275)
>>> at
>>> org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.scheduleTask(ClusteredTaskManager.java:86)
>>> at
>>> org.wso2.carbon.mediation.ntask.NTaskTaskManager.schedule(NTaskTaskManager.java:89)
>>> at
>>> org.wso2.carbon.mediation.ntask.NTaskTaskManager.init(NTaskTaskManager.java:336)
>>> at
>>> org.wso2.carbon.mediation.ntask.NTaskTaskManager.update(NTaskTaskManager.java:349)
>>> at
>>> org.wso2.carbon.mediation.ntask.internal.NtaskService.updateA

[Dev] [ESB] Selecting JMS SpecVersion in JMS Transport Sender

2015-07-06 Thread eranda rajapaksha
Hi,

Is there a way to select JMS version in the ESB JMS Transport Sender? ( it
can be done in JMS Transport Receiver )
If so how do I specify it, should it be done in the endpoint address URL or
as a parameter?

Thank you!

-- 
*Eranda Rajapakshe*
Computer Science and Engineering Undergraduate,
University of Moratuwa.
Tel : +94784822608
Email : erand...@gmail.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2015-07-06 Thread Indunil Upeksha Rathnayake
Hi,
Please $subject. The PR[1] as the fix for the public JIRA [2].

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

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


Re: [Dev] [AppM] Removing multiple "modules" directories

2015-07-06 Thread Dinusha Senanayaka
Hi Ruwan,

There are only two jaggery-modules that belongs to AppManager (apistore
[Need to rename] and appmgtpublisher). All other modules already having
separate feature for each. We are using 1.0.0 versions of them which were
already released and we cannot make changes to them by the time we were
releasing AppM.   Modules that had some fixes/changes were only took to
AppM product level to make distribution. Since appmgt.store and
appmgt.publisher features should be able to work with feature installation
to other products, we had to add those modules inside feature as well.

Anyway, we could remove the modules that we keep in product level and use
them from the appmgt.store/publisher feature. Same time we need to check
whether we can get rid of keeping them inside AppM feature by updating to
new jaggery-module versions if they having new versions.

Regards,
Dinusha.

On Mon, Jul 6, 2015 at 4:57 AM, Ruwan Abeykoon  wrote:

> Hi AppManager team,
>
> I found at least thee locations in AppM code base where the same module is
> copied.
> 1. product-app-manager/modules/jaggery-modules
> 2.
> carbon-appmgt/features/appmgt/org.wso2.carbon.appmgt.publisher.feature/src/main/resources/jaggery-modules
> 3.
> carbon-appmgt/features/appmgt/org.wso2.carbon.appmgt.store.feature/src/main/resources/jaggery-modules
>
> Can we create new feature for them (something like a UI core feature),
> Since all the modules in Store/Publisher/Social need to be deployed on the
> "/modules".
>
>
> Cheers,
> Ruwan
>
> --
>
> *Ruwan Abeykoon*
> *Architect,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ruw...@wso2.com
> phone:(+94) 39736
>



-- 
Dinusha Dilrukshi
Associate Technical Lead
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] NTASK ERROR - No available task nodes for resolving a task location

2015-07-06 Thread Senduran Balasubramaniyam
Hi Anjana,

I have a three node ESB cluster, when I try to schedule a task I am getting
the  following exception. But all the nodes are up and running.

TID: [-1234] [] [2015-07-06 23:47:30,536] ERROR
{org.wso2.carbon.mediation.ntask.NTaskTaskManager} -  Scheduling task
[[NTask::-1234::task_abc]::synapse.simple.quartz] FAILED. Error: No
available task nodes for resolving a task location
{org.wso2.carbon.mediation.ntask.NTaskTaskManager}
org.wso2.carbon.ntask.common.TaskException: No available task nodes for
resolving a task location
at
org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.getTaskLocation(ClusteredTaskManager.java:224)
at
org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.locateMemberForTask(ClusteredTaskManager.java:201)
at
org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.getMemberIdFromTaskName(ClusteredTaskManager.java:275)
at
org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.scheduleTask(ClusteredTaskManager.java:86)

When I try to pinned the server (with IP address ) I am getting the
following
Server name not in pinned servers list. Not starting Task : task_abc
{org.apache.synapse.startup.quartz.StartUpController}

Could you please suggest me a to fix this


Regards
Senduran


On Wed, May 27, 2015 at 8:00 AM, Anjana Fernando  wrote:

> Hi Malaka,
>
> This is not a bug, but as the message says, this is because, in your
> "manager" node, which I guess, did not register the task type, so it will
> not participate in executing the tasks, but it can register and schedule
> tasks to be run in other nodes. So if this manager node registers and gives
> a command to say "schedule", it will look in the cluster for possible
> workers to schedule and execute the task. If there aren't any workers
> (nodes which has registered that task type) available, it will give this
> error saying, the task could not be registered, which is what should be
> done, or else, the caller will get a false confirmation saying, the task is
> scheduled and running.
>
> So basically the point is, before a task is "scheduled", we have to make
> sure, possible workers are there to run it.
>
> Cheers,
> Anjana.
>
> On Wed, May 27, 2015 at 10:59 AM, Malaka Silva  wrote:
>
>> Hi,
>>
>> While checking the tasks observer the following error.
>>
>> This happens only when scheduling a task from manager. My understanding
>> was NTASK have the same behavior in manager and worker nodes. Is it the
>> case?
>>
>> This happens because in the following code. When starting manager node
>> memberlist is empty. But starting a worker first, member list contains that
>> member.
>>
>> I guess this is a bug?
>>
>> This will not effect the functionality in ESB however error is printed on
>> startup.
>>
>> TaskServiceContext ctx = this.getTaskServiceContext();
>> if (ctx.getServerCount() == 0) {
>> throw new TaskException("No available task nodes for
>> resolving a task location",
>> Code.TASK_NODE_NOT_AVAILABLE);
>> }
>>
>> [1]
>> https://github.com/wso2/carbon-commons/blob/master/components/ntask/org.wso2.carbon.ntask.core/src/main/java/org/wso2/carbon/ntask/core/impl/clustered/ClusteredTaskManager.java
>> [2]
>> https://github.com/wso2/carbon-commons/blob/master/components/ntask/org.wso2.carbon.ntask.core/src/main/java/org/wso2/carbon/ntask/core/TaskServiceContext.java
>>
>>
>> [2015-05-27 09:39:42,807] ERROR - NTaskTaskManager Scheduling task
>> [[NTask::-1234::file-FILE--SYNAPSE_INBOUND_ENDPOINT]::FILE--SYNAPSE_INBOUND_ENDPOINT]
>> FAILED. Error: No available task nodes for resolving a task location
>> org.wso2.carbon.ntask.common.TaskException: No available task nodes for
>> resolving a task location
>> at
>> org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.getTaskLocation(ClusteredTaskManager.java:224)
>> at
>> org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.locateMemberForTask(ClusteredTaskManager.java:201)
>> at
>> org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.getMemberIdFromTaskName(ClusteredTaskManager.java:275)
>> at
>> org.wso2.carbon.ntask.core.impl.clustered.ClusteredTaskManager.scheduleTask(ClusteredTaskManager.java:86)
>> at
>> org.wso2.carbon.mediation.ntask.NTaskTaskManager.schedule(NTaskTaskManager.java:89)
>> at
>> org.wso2.carbon.mediation.ntask.NTaskTaskManager.init(NTaskTaskManager.java:336)
>> at
>> org.wso2.carbon.mediation.ntask.NTaskTaskManager.update(NTaskTaskManager.java:349)
>> at
>> org.wso2.carbon.mediation.ntask.internal.NtaskService.updateAndCleanupObservers(NtaskService.java:103)
>> at
>> org.wso2.carbon.mediation.ntask.internal.NtaskService.setConfigurationContextService(NtaskService.java:96)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Me

Re: [Dev] NDatasource stub and class loading issue

2015-07-06 Thread Manoj Kumara
Hi Rajith,

The normal pattern that we use for service stubs like org.wso2.carbon.xxx.stub
not ui.stub. Since there is another module with org.wso2.carbon.xxx.ui with
this commit there can be pacage level conflicts. So better to fix this
properly.

Regards,
Manoj


*Manoj Kumara |* Senior Software Engineer
 Inc. *| **lean. enterprise. middleware.*
#20, Palm Grove, Colombo 03, Sri Lanka
*Mobile:* +94 713 448188 *|** Work:* +94 112 145345


On Fri, Jul 3, 2015 at 12:50 AM, Rajith Vitharana  wrote:

> Hi,
>
> Both fixes should be there right? unless ui.stub packages will be exported
> by both stub  component and ui component.
>
> Thanks,
>
> On Fri, Jul 3, 2015 at 10:58 AM, Ravi Undupitiya  wrote:
>
>> Hi All,
>>
>> There's a class loading issue affecting ESB described in [1]. This has
>> happened due to changes in [2].
>>
>> We can fix this issue using [3] however kernel team suggests the fix in
>> [2] breaks the package naming convention used as per other UI stubs. @Manoj
>> has more details on this.
>>
>> Please advise whether we should go ahead with fix in [3].
>>
>>
>> [1] https://wso2.org/jira/browse/ESBJAVA-3734
>> [2]
>> https://github.com/wso2/carbon-commons/commit/3cb5ee0b3f3086fb0e300e2bae7a91f7b365f197
>> [3] https://github.com/wso2/carbon-commons/pull/103/files
>>
>>
>>
>> Thanks,
>> --
>> *Ravi Undupitiya*
>> Senior Software Engineer; WSO2 http://wso2.com
>>
>>
>> *E-mail: r...@wso2.com **M: **+94 772 930 712
>> <%2B94%C2%A0772%20930%20712>*
>>
>> Lean . Enterprise . Middleware
>>
>
>
>
> --
> Rajith Vitharana
>
> Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94715883223
> Blog : http://lankavitharana.blogspot.com/
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please Review and Merge the PR

2015-07-06 Thread Lakshani Gamage
Hi Rushmin,

These are the fixes[1] for Public Jiras[2] and [3]

[1] https://github.com/wso2/carbon-appmgt/pull/80
[2] https://wso2.org/jira/browse/APPM-992
[3] https://wso2.org/jira/browse/APPM-347

Thank you,
-- 
Lakshani Gamage

*Software Engineer*
Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pull Request for netsuite connector

2015-07-06 Thread Kesavan Yogarajah
There is no information found regard validity period of the account in [1].

[1] - http://www.netsuite.com/portal/developers/sdn.shtml

Kesavan Yogarajah
Associate Software Engineer
Mobile :+94 (0) 779 758021
kesav...@wso2.com
WSO2, Inc.
lean . enterprise . middleware

On Mon, Jul 6, 2015 at 3:55 PM, Malaka Silva  wrote:

> Great Merged.
>
> What is the validity period of the account?
>
> On Mon, Jul 6, 2015 at 3:53 PM, Kesavan Yogarajah 
> wrote:
>
>> Hi Malaka,
>>
>> I have changed the POM and tested the connector with the community level
>> development account provided by Netsuite.All the integration tests are
>> passed.
>> Please review the pull request [1].
>>
>> [1] - https://github.com/wso2/esb-connectors/pull/219
>>
>> Thanks
>>
>> Kesavan Yogarajah
>> Associate Software Engineer
>> Mobile :+94 (0) 779 758021
>> kesav...@wso2.com
>> WSO2, Inc.
>> lean . enterprise . middleware
>>
>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [CEP] Interested in Contributing to WSO2 CEP Product.

2015-07-06 Thread Bhashinee Nirmali
Hi All,

I am Bhashinee Nirmali from Faculty of Information Technology, University
of Moratuwa. I have done a traffic analysis project as my second year group
project, based on WSO2 CEP. Further I am interested in contributing to CEP
product. As a beginner how should I start?

Thank You

Bhashinee Nirmali
Faculty of Information Technology
University of Moratuwa.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] ClassNotFoundException in Jax-rs service for tyrus standalone client Client Manager

2015-07-06 Thread Danushka Fernando
When creating an orbit bundles that's not the way to do it. You can simply
restrict what to export.

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729


On Jul 6, 2015 10:29 PM, "Thusitha Thilina Dayaratne" 
wrote:

> Hi Sabra,
>
> As Dhanushka mentioned you can create a orbit bundle, or I think you can
> exclude websocket from the tyrus as follows
>
> 
>   org.glassfish.tyrus.bundles
>   tyrus-standalone-client
>   1.11
>   
> 
>   javax.websocket
>   javax.websocket-api
> 
>   
> 
>
> Thanks
>
> On Mon, Jul 6, 2015 at 10:15 PM, Danushka Fernando 
> wrote:
>
>> You can create orbit bundles with 3rd party libraries and include/exclude
>> packages.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>>
>> On Jul 6, 2015 8:54 PM, "Sabra Ossen"  wrote:
>>
>>> Hi Danushka,
>>>
>>> I didn't bundle the dependencies in WEB-INF/lib. I have excluded the
>>> dependencies by
>>> ...
>>>
>>>
>>>
>>>
>>>
>>> *
>>> ${basedir}/src/main/webapp/WEB-INF/web.xml
>>> WEB-INF/lib/*.jar
>>> ${project.artifactId}*...
>>> in the pom.
>>>
>>> I only included the tyrus standalone client jar [1] to
>>> AS_HOME/repository/components/lib.
>>>
>>> I had already included a webapp-classloading.xml with the following
>>> content.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *>> xmlns="http://wso2.org/projects/as/classloading
>>> ">
>>> false
>>> Carbon,CXF*
>>>
>>> Thanks for the reference on class loading in AS, given your suggestion I
>>> checked the contents of tyrus standalone client and it contains a
>>> javax.websocket.Endpoint class as shown by the attached screen shot. As
>>> this Endpoint class is bundled with the 3rd party jar exclusion could be
>>> done via the maven shade plugin. I will update the thread with the results
>>> asap. If you do have any other suggestions do let me know.
>>>
>>> @Thusitha, I tried your suggestion but it resulted in no change due to
>>> the websocket classes being present in the tyrus jar.
>>>
>>> [1]
>>> http://mvnrepository.com/artifact/org.glassfish.tyrus.bundles/tyrus-standalone-client/1.11
>>>
>>> Thanks and Regards.
>>>
>>> On Mon, Jul 6, 2015 at 2:15 PM, Danushka Fernando 
>>> wrote:
>>>
 Hi Sabra
 This is a class loading issue. Seems there are two jars providing same
 class in the jvm. So did you bundled the dependencies in to the application
 (check WEB-INF/lib/ dir of the webapp)? What are jars you copied in to the
 $CARBON_HOME/repository/components/lib and 
 $CARBON_HOME/repository/components/dropins
 directories?

 Probably what Thusitha mentioned would work for you. But you could
 ended up with series of exceptions if you continue without understanding.
 :). So I recommend you to go through [1].

 [1] https://docs.wso2.com/display/AS510/Webapp+ClassLoading


 Thanks & Regards
 Danushka Fernando
 Senior Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Mon, Jul 6, 2015 at 1:54 PM, Thusitha Thilina Dayaratne <
 thusit...@wso2.com> wrote:

> Hi Sabra
>
> I think you should mark following dependency as provided since AS
> provided required jars for the websocket
>
>>
>> *   *
>> *javax.websocket*
>> *javax.websocket-api**
>> 1.1*
>
>
> *provided*
>>
>> **
>
>
> On Mon, Jul 6, 2015 at 1:49 PM, Sabra Ossen 
> wrote:
>
>> Hi Sajith,
>>
>> I moved it to AS_HOME/repository/components/lib , but now I get the
>> following exception.
>>
>> java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: loader
>> constraint violation: loader (instance of
>> org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously
>> initiated loading for a different type with name 
>> "javax/websocket/Endpoint"
>>
>> at
>> org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:116)
>> at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:331)
>> at
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>> at
>> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
>> at
>> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
>> at
>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
>> at
>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
>> at
>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
>> at
>

[Dev] Please review and merge PR

2015-07-06 Thread Nuwandi Wickramasinghe
Hi,
Fix for [1] is found in [2]

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

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


Re: [Dev] [AS] ClassNotFoundException in Jax-rs service for tyrus standalone client Client Manager

2015-07-06 Thread Thusitha Thilina Dayaratne
Hi Sabra,

As Dhanushka mentioned you can create a orbit bundle, or I think you can
exclude websocket from the tyrus as follows


  org.glassfish.tyrus.bundles
  tyrus-standalone-client
  1.11
  

  javax.websocket
  javax.websocket-api

  


Thanks

On Mon, Jul 6, 2015 at 10:15 PM, Danushka Fernando 
wrote:

> You can create orbit bundles with 3rd party libraries and include/exclude
> packages.
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
>
> On Jul 6, 2015 8:54 PM, "Sabra Ossen"  wrote:
>
>> Hi Danushka,
>>
>> I didn't bundle the dependencies in WEB-INF/lib. I have excluded the
>> dependencies by
>> ...
>>
>>
>>
>>
>>
>> *
>> ${basedir}/src/main/webapp/WEB-INF/web.xml
>> WEB-INF/lib/*.jar
>> ${project.artifactId}*...
>> in the pom.
>>
>> I only included the tyrus standalone client jar [1] to
>> AS_HOME/repository/components/lib.
>>
>> I had already included a webapp-classloading.xml with the following
>> content.
>>
>>
>>
>>
>>
>>
>>
>> *> xmlns="http://wso2.org/projects/as/classloading
>> ">
>> false
>> Carbon,CXF*
>>
>> Thanks for the reference on class loading in AS, given your suggestion I
>> checked the contents of tyrus standalone client and it contains a
>> javax.websocket.Endpoint class as shown by the attached screen shot. As
>> this Endpoint class is bundled with the 3rd party jar exclusion could be
>> done via the maven shade plugin. I will update the thread with the results
>> asap. If you do have any other suggestions do let me know.
>>
>> @Thusitha, I tried your suggestion but it resulted in no change due to
>> the websocket classes being present in the tyrus jar.
>>
>> [1]
>> http://mvnrepository.com/artifact/org.glassfish.tyrus.bundles/tyrus-standalone-client/1.11
>>
>> Thanks and Regards.
>>
>> On Mon, Jul 6, 2015 at 2:15 PM, Danushka Fernando 
>> wrote:
>>
>>> Hi Sabra
>>> This is a class loading issue. Seems there are two jars providing same
>>> class in the jvm. So did you bundled the dependencies in to the application
>>> (check WEB-INF/lib/ dir of the webapp)? What are jars you copied in to the
>>> $CARBON_HOME/repository/components/lib and 
>>> $CARBON_HOME/repository/components/dropins
>>> directories?
>>>
>>> Probably what Thusitha mentioned would work for you. But you could ended
>>> up with series of exceptions if you continue without understanding. :). So
>>> I recommend you to go through [1].
>>>
>>> [1] https://docs.wso2.com/display/AS510/Webapp+ClassLoading
>>>
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Senior Software Engineer
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729
>>>
>>> On Mon, Jul 6, 2015 at 1:54 PM, Thusitha Thilina Dayaratne <
>>> thusit...@wso2.com> wrote:
>>>
 Hi Sabra

 I think you should mark following dependency as provided since AS
 provided required jars for the websocket

>
> *   *
> *javax.websocket*
> *javax.websocket-api**
> 1.1*


 *provided*
>
> **


 On Mon, Jul 6, 2015 at 1:49 PM, Sabra Ossen  wrote:

> Hi Sajith,
>
> I moved it to AS_HOME/repository/components/lib , but now I get the
> following exception.
>
> java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: loader
> constraint violation: loader (instance of
> org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously
> initiated loading for a different type with name 
> "javax/websocket/Endpoint"
>
> at
> org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:116)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:331)
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
> at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
> at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
> at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
> at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
> at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:211)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
> at
> org.apache.catalina.core.ApplicationFilterChai

Re: [Dev] [AS] ClassNotFoundException in Jax-rs service for tyrus standalone client Client Manager

2015-07-06 Thread Danushka Fernando
You can create orbit bundles with 3rd party libraries and include/exclude
packages.

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729


On Jul 6, 2015 8:54 PM, "Sabra Ossen"  wrote:

> Hi Danushka,
>
> I didn't bundle the dependencies in WEB-INF/lib. I have excluded the
> dependencies by
> ...
>
>
>
>
>
> *
> ${basedir}/src/main/webapp/WEB-INF/web.xml
> WEB-INF/lib/*.jar
> ${project.artifactId}*...
> in the pom.
>
> I only included the tyrus standalone client jar [1] to
> AS_HOME/repository/components/lib.
>
> I had already included a webapp-classloading.xml with the following
> content.
>
>
>
>
>
>
>
> * xmlns="http://wso2.org/projects/as/classloading
> ">
> false
> Carbon,CXF*
>
> Thanks for the reference on class loading in AS, given your suggestion I
> checked the contents of tyrus standalone client and it contains a
> javax.websocket.Endpoint class as shown by the attached screen shot. As
> this Endpoint class is bundled with the 3rd party jar exclusion could be
> done via the maven shade plugin. I will update the thread with the results
> asap. If you do have any other suggestions do let me know.
>
> @Thusitha, I tried your suggestion but it resulted in no change due to the
> websocket classes being present in the tyrus jar.
>
> [1]
> http://mvnrepository.com/artifact/org.glassfish.tyrus.bundles/tyrus-standalone-client/1.11
>
> Thanks and Regards.
>
> On Mon, Jul 6, 2015 at 2:15 PM, Danushka Fernando 
> wrote:
>
>> Hi Sabra
>> This is a class loading issue. Seems there are two jars providing same
>> class in the jvm. So did you bundled the dependencies in to the application
>> (check WEB-INF/lib/ dir of the webapp)? What are jars you copied in to the
>> $CARBON_HOME/repository/components/lib and 
>> $CARBON_HOME/repository/components/dropins
>> directories?
>>
>> Probably what Thusitha mentioned would work for you. But you could ended
>> up with series of exceptions if you continue without understanding. :). So
>> I recommend you to go through [1].
>>
>> [1] https://docs.wso2.com/display/AS510/Webapp+ClassLoading
>>
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> On Mon, Jul 6, 2015 at 1:54 PM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Hi Sabra
>>>
>>> I think you should mark following dependency as provided since AS
>>> provided required jars for the websocket
>>>

 *   *
 *javax.websocket*
 *javax.websocket-api**
 1.1*
>>>
>>>
>>> *provided*

 **
>>>
>>>
>>> On Mon, Jul 6, 2015 at 1:49 PM, Sabra Ossen  wrote:
>>>
 Hi Sajith,

 I moved it to AS_HOME/repository/components/lib , but now I get the
 following exception.

 java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: loader
 constraint violation: loader (instance of
 org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously
 initiated loading for a different type with name "javax/websocket/Endpoint"

 at
 org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:116)
 at
 org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:331)
 at
 org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
 at
 org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
 at
 org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
 at
 org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
 at
 org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
 at
 org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
 at
 org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
 at
 org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:211)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
 at
 org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
>>>

Re: [Dev] Passing a JSP variable to pagination function of carbon:resourcePaginator

2015-07-06 Thread Malith Munasinghe
Hi Rajith,

Try assigning the value to a String beforehand
<%String paginationAction = "submitForm({0},"+order+")";%>

Then parse it to the paginationFunction

paginationFunction="<%=paginationAction%>"


Regards,

Malith


On Mon, Jul 6, 2015 at 6:37 PM, Rajith Roshan  wrote:

> Hi Vinod,
>
> I tried it without ' '. But then, it wont invokes the JavaScript function.
>
> Thanks.
>
> On Mon, Jul 6, 2015 at 6:32 PM, Vinod Kavinda  wrote:
>
>> Hi Rajith,
>>
>> Have you tried,
>> paginationFunction="submitForm({0},<%=order%>)".
>> ' ' may force to have a string.
>>
>> Thanks,
>> Vinod.
>>
>> On Mon, Jul 6, 2015 at 6:19 PM, Rajith Roshan  wrote:
>>
>>> Hi Devs,
>>>
>>> In most WSO2 products, following  code snippet is used to show paginated
>>> results.
>>>
>>> >> numberOfPages="<%=numberOfPages%>"
>>>   
>>> resourceBundle="org.wso2.carbon.--.--.ui.i18n.Resources"
>>>   nextKey="next" prevKey="prev"
>>>   paginationFunction="submitForm({0})" />
>>>
>>>
>>>
>>> According to above example, when a user clicks on a particular page
>>> number "submitForm()" JavaScript method will be invoked.
>>> Lets say if i have a JSP String variable called "order" and wants to
>>> pass it when a user clicks on the page number, then I need to change
>>> pagination function as follows.
>>>
>>> paginationFunction="submitForm({0},'<%=order%>')"
>>>
>>>
>>> But this method passes the value to the JavaScript function as a raw string.
>>>
>>> So the retrieved value will be a string which equals to "<%=order%>" .
>>>
>>> So how to pass a JSP variable inside this pagination function?
>>>
>>> Any help on this matter is highly appreciated
>>>
>>>
>>> Thanks,
>>> Rajith
>>>
>>>
>>> Rajith Roshan
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-72-642-8350 <%2B94-71-554-8430>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Vinod Kavinda
>> Software Engineer
>> *WSO2 Inc. - lean . enterprise . middleware .*
>> Mobile : +94 (0) 712 415544
>> Blog : http://soatechflicks.blogspot.com/
>>
>>
>
>
> --
> Rajith Roshan
> Software Engineer, WSO2 Inc.
> Mobile: +94-72-642-8350 <%2B94-71-554-8430>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge the PR

2015-07-06 Thread Malaka Silva
Hi Elilmatha,

I have added some comments. Please check and update the thread.

On Mon, Jul 6, 2015 at 3:39 PM, Elilmatha Sivanesan 
wrote:

> Hi Malaka,
>
> Please review and merge the PR [1] for Mqtt inbound sample.
>
> [1] https://github.com/wso2/product-esb/pull/206
>
> Thank you.
> --
> *S.Elilmatha*
> Associate  Software Engineer,
>
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> Mobile 0779842221.
>
>


-- 

Best Regards,

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

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


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


[Dev] Please review and merge PR

2015-07-06 Thread Maduranga Siriwardena
Hi,

Please review and merge PR,
https://github.com/wso2/carbon4-kernel/pull/282

Thanks

-- 
Maduranga Siriwardena
Software Engineer
WSO2 Inc.

email: madura...@wso2.com
mobile: +94718990591
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Change content of a file while generating an archetype

2015-07-06 Thread Danushka Fernando
Hi All
I am trying to generate an archetype for CAPP to AF. While doing that I
faced $subject. Anybody can shed some light would help.

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


Re: [Dev] Passing a JSP variable to pagination function of carbon:resourcePaginator

2015-07-06 Thread Rajith Roshan
Hi Vinod,

I tried it without ' '. But then, it wont invokes the JavaScript function.

Thanks.

On Mon, Jul 6, 2015 at 6:32 PM, Vinod Kavinda  wrote:

> Hi Rajith,
>
> Have you tried,
> paginationFunction="submitForm({0},<%=order%>)".
> ' ' may force to have a string.
>
> Thanks,
> Vinod.
>
> On Mon, Jul 6, 2015 at 6:19 PM, Rajith Roshan  wrote:
>
>> Hi Devs,
>>
>> In most WSO2 products, following  code snippet is used to show paginated
>> results.
>>
>> > numberOfPages="<%=numberOfPages%>"
>>   
>> resourceBundle="org.wso2.carbon.--.--.ui.i18n.Resources"
>>   nextKey="next" prevKey="prev"
>>   paginationFunction="submitForm({0})" />
>>
>>
>>
>> According to above example, when a user clicks on a particular page
>> number "submitForm()" JavaScript method will be invoked.
>> Lets say if i have a JSP String variable called "order" and wants to pass
>> it when a user clicks on the page number, then I need to change pagination
>> function as follows.
>>
>> paginationFunction="submitForm({0},'<%=order%>')"
>>
>>
>> But this method passes the value to the JavaScript function as a raw string.
>>
>> So the retrieved value will be a string which equals to "<%=order%>" .
>>
>> So how to pass a JSP variable inside this pagination function?
>>
>> Any help on this matter is highly appreciated
>>
>>
>> Thanks,
>> Rajith
>>
>>
>> Rajith Roshan
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-72-642-8350 <%2B94-71-554-8430>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vinod Kavinda
> Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware .*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
>
>


-- 
Rajith Roshan
Software Engineer, WSO2 Inc.
Mobile: +94-72-642-8350 <%2B94-71-554-8430>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Passing a JSP variable to pagination function of carbon:resourcePaginator

2015-07-06 Thread Vinod Kavinda
Hi Rajith,

Have you tried,
paginationFunction="submitForm({0},<%=order%>)".
' ' may force to have a string.

Thanks,
Vinod.

On Mon, Jul 6, 2015 at 6:19 PM, Rajith Roshan  wrote:

> Hi Devs,
>
> In most WSO2 products, following  code snippet is used to show paginated
> results.
>
>  numberOfPages="<%=numberOfPages%>"
>   
> resourceBundle="org.wso2.carbon.--.--.ui.i18n.Resources"
>   nextKey="next" prevKey="prev"
>   paginationFunction="submitForm({0})" />
>
>
>
> According to above example, when a user clicks on a particular page number
> "submitForm()" JavaScript method will be invoked.
> Lets say if i have a JSP String variable called "order" and wants to pass
> it when a user clicks on the page number, then I need to change pagination
> function as follows.
>
> paginationFunction="submitForm({0},'<%=order%>')"
>
>
> But this method passes the value to the JavaScript function as a raw string.
>
> So the retrieved value will be a string which equals to "<%=order%>" .
>
> So how to pass a JSP variable inside this pagination function?
>
> Any help on this matter is highly appreciated
>
>
> Thanks,
> Rajith
>
>
> Rajith Roshan
> Software Engineer, WSO2 Inc.
> Mobile: +94-72-642-8350 <%2B94-71-554-8430>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware .*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Passing a JSP variable to pagination function of carbon:resourcePaginator

2015-07-06 Thread Rajith Roshan
Hi Devs,

In most WSO2 products, following  code snippet is used to show paginated
results.





According to above example, when a user clicks on a particular page number
"submitForm()" JavaScript method will be invoked.
Lets say if i have a JSP String variable called "order" and wants to pass
it when a user clicks on the page number, then I need to change pagination
function as follows.

paginationFunction="submitForm({0},'<%=order%>')"


But this method passes the value to the JavaScript function as a raw string.

So the retrieved value will be a string which equals to "<%=order%>" .

So how to pass a JSP variable inside this pagination function?

Any help on this matter is highly appreciated


Thanks,
Rajith


Rajith Roshan
Software Engineer, WSO2 Inc.
Mobile: +94-72-642-8350 <%2B94-71-554-8430>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge PRs

2015-07-06 Thread Chamila Wijayarathna
Hi Johann,

Applied suggested changes. Please review and merge.

Thanks.

On Mon, Jul 6, 2015 at 1:49 PM, Johann Nallathamby  wrote:

> Hi Chamila,
>
> The samlsso_federate.html should go with the
> application.authenticator.samlsso.server.feature.
>
> Thanks.
>
> On Mon, Jul 6, 2015 at 1:22 PM, Chamila Wijayarathna 
> wrote:
>
>> Hi,
>>
>> Please review and merge PRs,
>> https://github.com/wso2/carbon-identity/pull/563
>> https://github.com/wso2/product-is/pull/137
>>
>> Thanks
>>
>> --
>> *Chamila Dilshan Wijayarathna,*
>> Software Engineer
>> Mobile:(+94)788193620
>> WSO2 Inc., http://wso2.com/
>>
>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Technical Lead & Product Lead of WSO2 Identity Server
> Integration Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com *
>



-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] user-manager duplicates in carbon-commons and carbon-identity

2015-07-06 Thread Johann Nallathamby
We can do that. But seems there is a dependency in to the user.mgt.stub
from one of the other components. That component needs to be refactored to
use the OSGi service instead of the stub. Once its done we can remove all
the identity components. For them to remove it we have to do a
carbon-identity release. Will update once we have done.

On Mon, Jul 6, 2015 at 4:27 PM, KasunG Gajasinghe  wrote:

> Hi Johann,
>
> Will you also be taking care of removing user-manager from carbon-commons?
>
> Thanks.
>
> On Mon, Jul 6, 2015 at 3:58 PM, Johann Nallathamby 
> wrote:
>
>> Hi Udara,
>>
>> We recently did this move. We have moved all the identity related
>> components from carbon-commons to carbon-identity. All other repos will
>> have to change their dependencies to the carbon-identity repo. We haven't
>> still announced this since we haven't released the carbon-identity repo
>> after this change yet. Once it is released for IS 5.1.0 alpha we will
>> announce this change. Most probably within this week.
>>
>> Thanks.
>>
>> On Mon, Jul 6, 2015 at 3:22 PM, Udara Rathnayake  wrote:
>>
>>> Hi all,
>>>
>>> We are maintaining user-manager component in both  carbon-commons and
>>> carbon-identity repos. carbon-commons contains bit old source where the
>>> same component is updated in carbon-identity.
>>>
>>> Shouldn't we maintain this in a single location?
>>>
>>>
>>> https://github.com/wso2/carbon-identity/tree/master/components/user-manager
>>>
>>> https://github.com/wso2/carbon-commons/tree/master/components/user-manager
>>>
>>> Regards,
>>> UdaraR
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> *Johann Dilantha Nallathamby*
>> Technical Lead & Product Lead of WSO2 Identity Server
>> Integration Technologies Team
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - *+9476950*
>> Blog - *http://nallaa.wordpress.com *
>>
>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Technical Lead & Product Lead of WSO2 Identity Server
Integration Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue in removing messages of non durable topics

2015-07-06 Thread Pamod Sylvester
+1 if we can partition contents by the queue name, we could delete it
directly.

On Mon, Jul 6, 2015 at 7:36 AM, Ramith Jayasinghe  wrote:

> I think we can simplify this one. and do a delete without even getting
> message ids.
>
>
> On Mon, Jul 6, 2015 at 5:05 PM, Pamod Sylvester  wrote:
>
>> Hi Hasitha,
>>
>> With reference to the discussion in [1], this was done to prevent
>> Tombstone overwhelming exception when Cassandra was used as the message
>> store.
>>
>> AFAIR The process of purging was as follows,
>>
>> 1) From MessageMetaData CF, retrieve the corresponding message ids
>> 2) Delete the corresponding messages from MessageMetaData and then delete
>> them from the MessageContent.
>>
>> When transacting > 1,000,000 messages and disconnection of the
>> subscription will go through the above mentioned process.
>>
>> The issue is,
>>
>> a) Message content is not partitioned based on the queue name as Message
>> Meta data. so we cannot delete the content row wise, which restricted us to
>> retrieve ids from Message Meta data and remove them from content.
>> b) When retrieving message meta data (let's say we used a range query to
>> select all the ids) there will be tombstones that will be selected with
>> that query that will hit the limit, causing the Tombstone overwhelming
>> exception.
>>
>> As a solution, when  removeMessagesOfDestinationForNode() is called we
>> get the current fresh slot, and the idea of getting the start id of the
>> slot is that it assures that the message ids that should be selected from
>> the message meta data should be greater than the value defined in the start
>> id (since messages with ids < start id are the messages that have being
>> delivered already that has caused tombstones).
>>
>> Also, I believe we could change the flow now since we discontinue
>> Cassandra. Since in RDBMS you could select all ids without any issue.
>>
>> Hope this explains your query.
>>
>> [1] [Dev][MB] TombstoneOverwhelmingException When Purge Operation is
>> Triggered When Subscription Disconnection/Deletion
>>
>> Thanks,
>> Pamod
>>
>> On Mon, Jul 6, 2015 at 7:00 AM, Hasitha Hiranya 
>> wrote:
>>
>>> Hi,
>>>
>>> Identified an issue regarding message purging when last subscriber for a
>>> topic is disconnected from broker cluster.
>>>
>>> @org.wso2.andes.kernel.OrphanedMessageHandler
>>>
>>>
>>> private void removeMessagesOfDestinationForNode(String destination,
>>> String ownerName,
>>> boolean isTopic) throws AndesException {
>>>
>>> try {
>>>
>>> Long startMessageID = null;
>>> Long endMessageID = null;
>>>
>>> //Will first retrieve the last unassigned slot id
>>> String nodeID =
>>> ClusterResourceHolder.getInstance().getClusterManager().getMyNodeID();
>>> //Will get the storage queue name
>>> *String storageQueue =
>>> AndesUtils.getStorageQueueForDestination(destination, nodeID, isTopic);*
>>> *//We get the relevant slot from the coordinator if running
>>> on cluster mode*
>>> *Slot unassignedSlot =
>>> MessagingEngine.getInstance().getSlotCoordinator().getSlot(storageQueue);*
>>> *//We need to get the starting message ID to inform the DB
>>> to start slicing the message from there*
>>> *//This step would be done in order to ensure that
>>> tombstones will not be fetched during the querying*
>>> *//operation*
>>> *startMessageID = unassignedSlot.getStartMessageId();*
>>> endMessageID = unassignedSlot.getEndMessageId();
>>>
>>> // This is a class used by AndesSubscriptionManager. Andes
>>> Subscription Manager is behind Disruptor layer.
>>> // Hence the call should be made to MessagingEngine NOT
>>> Andes.
>>> // Calling Andes methods from here will lead to probable
>>> deadlocks if Futures are used.
>>> // NOTE: purge call should be made to MessagingEngine not
>>> Andes
>>> if (0 < endMessageID) {
>>> //If the slot id is 0, which means for the given storage
>>> queue there're no unassigned slots which means
>>> //we don't need to purge messages in this case
>>> //The purpose of purge operation is to make sure that
>>> unassigned slots will be removed if no subs exists
>>> MessagingEngine.getInstance().purgeMessages(destination,
>>> ownerName, isTopic, startMessageID);
>>> }
>>> } catch (ConnectionException e) {
>>> String mesage = "Error while establishing a connection with
>>> the thrift server";
>>> log.error(mesage);
>>> throw new AndesException(mesage, e);
>>> }
>>>
>>> }
>>>
>>> Why we need a start message id here ?
>>> What about purging the whole internal queue (related to topic) ?
>>>
>>> *MessagingEngine.getInstance().purgeMessages(destination, ownerName,
>>> isTopic, 0);*
>>>

Re: [Dev] Issue in removing messages of non durable topics

2015-07-06 Thread Ramith Jayasinghe
I think we can simplify this one. and do a delete without even getting
message ids.


On Mon, Jul 6, 2015 at 5:05 PM, Pamod Sylvester  wrote:

> Hi Hasitha,
>
> With reference to the discussion in [1], this was done to prevent
> Tombstone overwhelming exception when Cassandra was used as the message
> store.
>
> AFAIR The process of purging was as follows,
>
> 1) From MessageMetaData CF, retrieve the corresponding message ids
> 2) Delete the corresponding messages from MessageMetaData and then delete
> them from the MessageContent.
>
> When transacting > 1,000,000 messages and disconnection of the
> subscription will go through the above mentioned process.
>
> The issue is,
>
> a) Message content is not partitioned based on the queue name as Message
> Meta data. so we cannot delete the content row wise, which restricted us to
> retrieve ids from Message Meta data and remove them from content.
> b) When retrieving message meta data (let's say we used a range query to
> select all the ids) there will be tombstones that will be selected with
> that query that will hit the limit, causing the Tombstone overwhelming
> exception.
>
> As a solution, when  removeMessagesOfDestinationForNode() is called we
> get the current fresh slot, and the idea of getting the start id of the
> slot is that it assures that the message ids that should be selected from
> the message meta data should be greater than the value defined in the start
> id (since messages with ids < start id are the messages that have being
> delivered already that has caused tombstones).
>
> Also, I believe we could change the flow now since we discontinue
> Cassandra. Since in RDBMS you could select all ids without any issue.
>
> Hope this explains your query.
>
> [1] [Dev][MB] TombstoneOverwhelmingException When Purge Operation is
> Triggered When Subscription Disconnection/Deletion
>
> Thanks,
> Pamod
>
> On Mon, Jul 6, 2015 at 7:00 AM, Hasitha Hiranya  wrote:
>
>> Hi,
>>
>> Identified an issue regarding message purging when last subscriber for a
>> topic is disconnected from broker cluster.
>>
>> @org.wso2.andes.kernel.OrphanedMessageHandler
>>
>>
>> private void removeMessagesOfDestinationForNode(String destination,
>> String ownerName,
>> boolean isTopic) throws AndesException {
>>
>> try {
>>
>> Long startMessageID = null;
>> Long endMessageID = null;
>>
>> //Will first retrieve the last unassigned slot id
>> String nodeID =
>> ClusterResourceHolder.getInstance().getClusterManager().getMyNodeID();
>> //Will get the storage queue name
>> *String storageQueue =
>> AndesUtils.getStorageQueueForDestination(destination, nodeID, isTopic);*
>> *//We get the relevant slot from the coordinator if running
>> on cluster mode*
>> *Slot unassignedSlot =
>> MessagingEngine.getInstance().getSlotCoordinator().getSlot(storageQueue);*
>> *//We need to get the starting message ID to inform the DB to
>> start slicing the message from there*
>> *//This step would be done in order to ensure that tombstones
>> will not be fetched during the querying*
>> *//operation*
>> *startMessageID = unassignedSlot.getStartMessageId();*
>> endMessageID = unassignedSlot.getEndMessageId();
>>
>> // This is a class used by AndesSubscriptionManager. Andes
>> Subscription Manager is behind Disruptor layer.
>> // Hence the call should be made to MessagingEngine NOT Andes.
>> // Calling Andes methods from here will lead to probable
>> deadlocks if Futures are used.
>> // NOTE: purge call should be made to MessagingEngine not
>> Andes
>> if (0 < endMessageID) {
>> //If the slot id is 0, which means for the given storage
>> queue there're no unassigned slots which means
>> //we don't need to purge messages in this case
>> //The purpose of purge operation is to make sure that
>> unassigned slots will be removed if no subs exists
>> MessagingEngine.getInstance().purgeMessages(destination,
>> ownerName, isTopic, startMessageID);
>> }
>> } catch (ConnectionException e) {
>> String mesage = "Error while establishing a connection with
>> the thrift server";
>> log.error(mesage);
>> throw new AndesException(mesage, e);
>> }
>>
>> }
>>
>> Why we need a start message id here ?
>> What about purging the whole internal queue (related to topic) ?
>>
>> *MessagingEngine.getInstance().purgeMessages(destination, ownerName,
>> isTopic, 0);*
>>
>> Thanks
>> --
>> *Hasitha Abeykoon*
>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>> *cell:* *+94 719363063*
>> *blog: **abeykoon.blogspot.com* 
>>
>>
>
>
> --
> *Pamod Sylvester *
>
> *WSO2 Inc.; http://wso2.com 

Re: [Dev] Issue in removing messages of non durable topics

2015-07-06 Thread Pamod Sylvester
Hi Hasitha,

With reference to the discussion in [1], this was done to prevent Tombstone
overwhelming exception when Cassandra was used as the message store.

AFAIR The process of purging was as follows,

1) From MessageMetaData CF, retrieve the corresponding message ids
2) Delete the corresponding messages from MessageMetaData and then delete
them from the MessageContent.

When transacting > 1,000,000 messages and disconnection of the subscription
will go through the above mentioned process.

The issue is,

a) Message content is not partitioned based on the queue name as Message
Meta data. so we cannot delete the content row wise, which restricted us to
retrieve ids from Message Meta data and remove them from content.
b) When retrieving message meta data (let's say we used a range query to
select all the ids) there will be tombstones that will be selected with
that query that will hit the limit, causing the Tombstone overwhelming
exception.

As a solution, when  removeMessagesOfDestinationForNode() is called we get
the current fresh slot, and the idea of getting the start id of the slot is
that it assures that the message ids that should be selected from the
message meta data should be greater than the value defined in the start id
(since messages with ids < start id are the messages that have being
delivered already that has caused tombstones).

Also, I believe we could change the flow now since we discontinue
Cassandra. Since in RDBMS you could select all ids without any issue.

Hope this explains your query.

[1] [Dev][MB] TombstoneOverwhelmingException When Purge Operation is
Triggered When Subscription Disconnection/Deletion

Thanks,
Pamod

On Mon, Jul 6, 2015 at 7:00 AM, Hasitha Hiranya  wrote:

> Hi,
>
> Identified an issue regarding message purging when last subscriber for a
> topic is disconnected from broker cluster.
>
> @org.wso2.andes.kernel.OrphanedMessageHandler
>
>
> private void removeMessagesOfDestinationForNode(String destination,
> String ownerName,
> boolean isTopic) throws AndesException {
>
> try {
>
> Long startMessageID = null;
> Long endMessageID = null;
>
> //Will first retrieve the last unassigned slot id
> String nodeID =
> ClusterResourceHolder.getInstance().getClusterManager().getMyNodeID();
> //Will get the storage queue name
> *String storageQueue =
> AndesUtils.getStorageQueueForDestination(destination, nodeID, isTopic);*
> *//We get the relevant slot from the coordinator if running on
> cluster mode*
> *Slot unassignedSlot =
> MessagingEngine.getInstance().getSlotCoordinator().getSlot(storageQueue);*
> *//We need to get the starting message ID to inform the DB to
> start slicing the message from there*
> *//This step would be done in order to ensure that tombstones
> will not be fetched during the querying*
> *//operation*
> *startMessageID = unassignedSlot.getStartMessageId();*
> endMessageID = unassignedSlot.getEndMessageId();
>
> // This is a class used by AndesSubscriptionManager. Andes
> Subscription Manager is behind Disruptor layer.
> // Hence the call should be made to MessagingEngine NOT Andes.
> // Calling Andes methods from here will lead to probable
> deadlocks if Futures are used.
> // NOTE: purge call should be made to MessagingEngine not Andes
> if (0 < endMessageID) {
> //If the slot id is 0, which means for the given storage
> queue there're no unassigned slots which means
> //we don't need to purge messages in this case
> //The purpose of purge operation is to make sure that
> unassigned slots will be removed if no subs exists
> MessagingEngine.getInstance().purgeMessages(destination,
> ownerName, isTopic, startMessageID);
> }
> } catch (ConnectionException e) {
> String mesage = "Error while establishing a connection with
> the thrift server";
> log.error(mesage);
> throw new AndesException(mesage, e);
> }
>
> }
>
> Why we need a start message id here ?
> What about purging the whole internal queue (related to topic) ?
>
> *MessagingEngine.getInstance().purgeMessages(destination, ownerName,
> isTopic, 0);*
>
> Thanks
> --
> *Hasitha Abeykoon*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> *cell:* *+94 719363063*
> *blog: **abeykoon.blogspot.com* 
>
>


-- 
*Pamod Sylvester *

*WSO2 Inc.; http://wso2.com *
cell: +94 77 7779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue in removing messages of non durable topics

2015-07-06 Thread Hasitha Hiranya
@Pamod,

Any idea on this?

Thanks

On Mon, Jul 6, 2015 at 4:30 PM, Hasitha Hiranya  wrote:

> Hi,
>
> Identified an issue regarding message purging when last subscriber for a
> topic is disconnected from broker cluster.
>
> @org.wso2.andes.kernel.OrphanedMessageHandler
>
>
> private void removeMessagesOfDestinationForNode(String destination,
> String ownerName,
> boolean isTopic) throws AndesException {
>
> try {
>
> Long startMessageID = null;
> Long endMessageID = null;
>
> //Will first retrieve the last unassigned slot id
> String nodeID =
> ClusterResourceHolder.getInstance().getClusterManager().getMyNodeID();
> //Will get the storage queue name
> *String storageQueue =
> AndesUtils.getStorageQueueForDestination(destination, nodeID, isTopic);*
> *//We get the relevant slot from the coordinator if running on
> cluster mode*
> *Slot unassignedSlot =
> MessagingEngine.getInstance().getSlotCoordinator().getSlot(storageQueue);*
> *//We need to get the starting message ID to inform the DB to
> start slicing the message from there*
> *//This step would be done in order to ensure that tombstones
> will not be fetched during the querying*
> *//operation*
> *startMessageID = unassignedSlot.getStartMessageId();*
> endMessageID = unassignedSlot.getEndMessageId();
>
> // This is a class used by AndesSubscriptionManager. Andes
> Subscription Manager is behind Disruptor layer.
> // Hence the call should be made to MessagingEngine NOT Andes.
> // Calling Andes methods from here will lead to probable
> deadlocks if Futures are used.
> // NOTE: purge call should be made to MessagingEngine not Andes
> if (0 < endMessageID) {
> //If the slot id is 0, which means for the given storage
> queue there're no unassigned slots which means
> //we don't need to purge messages in this case
> //The purpose of purge operation is to make sure that
> unassigned slots will be removed if no subs exists
> MessagingEngine.getInstance().purgeMessages(destination,
> ownerName, isTopic, startMessageID);
> }
> } catch (ConnectionException e) {
> String mesage = "Error while establishing a connection with
> the thrift server";
> log.error(mesage);
> throw new AndesException(mesage, e);
> }
>
> }
>
> Why we need a start message id here ?
> What about purging the whole internal queue (related to topic) ?
>
> *MessagingEngine.getInstance().purgeMessages(destination, ownerName,
> isTopic, 0);*
>
> Thanks
> --
> *Hasitha Abeykoon*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> *cell:* *+94 719363063*
> *blog: **abeykoon.blogspot.com* 
>
>


-- 
*Hasitha Abeykoon*
Senior Software Engineer; WSO2, Inc.; http://wso2.com
*cell:* *+94 719363063*
*blog: **abeykoon.blogspot.com* 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Issue in removing messages of non durable topics

2015-07-06 Thread Hasitha Hiranya
Hi,

Identified an issue regarding message purging when last subscriber for a
topic is disconnected from broker cluster.

@org.wso2.andes.kernel.OrphanedMessageHandler


private void removeMessagesOfDestinationForNode(String destination,
String ownerName,
boolean isTopic) throws AndesException {

try {

Long startMessageID = null;
Long endMessageID = null;

//Will first retrieve the last unassigned slot id
String nodeID =
ClusterResourceHolder.getInstance().getClusterManager().getMyNodeID();
//Will get the storage queue name
*String storageQueue =
AndesUtils.getStorageQueueForDestination(destination, nodeID, isTopic);*
*//We get the relevant slot from the coordinator if running on
cluster mode*
*Slot unassignedSlot =
MessagingEngine.getInstance().getSlotCoordinator().getSlot(storageQueue);*
*//We need to get the starting message ID to inform the DB to
start slicing the message from there*
*//This step would be done in order to ensure that tombstones
will not be fetched during the querying*
*//operation*
*startMessageID = unassignedSlot.getStartMessageId();*
endMessageID = unassignedSlot.getEndMessageId();

// This is a class used by AndesSubscriptionManager. Andes
Subscription Manager is behind Disruptor layer.
// Hence the call should be made to MessagingEngine NOT Andes.
// Calling Andes methods from here will lead to probable
deadlocks if Futures are used.
// NOTE: purge call should be made to MessagingEngine not Andes
if (0 < endMessageID) {
//If the slot id is 0, which means for the given storage
queue there're no unassigned slots which means
//we don't need to purge messages in this case
//The purpose of purge operation is to make sure that
unassigned slots will be removed if no subs exists
MessagingEngine.getInstance().purgeMessages(destination,
ownerName, isTopic, startMessageID);
}
} catch (ConnectionException e) {
String mesage = "Error while establishing a connection with the
thrift server";
log.error(mesage);
throw new AndesException(mesage, e);
}

}

Why we need a start message id here ?
What about purging the whole internal queue (related to topic) ?

*MessagingEngine.getInstance().purgeMessages(destination, ownerName,
isTopic, 0);*

Thanks
-- 
*Hasitha Abeykoon*
Senior Software Engineer; WSO2, Inc.; http://wso2.com
*cell:* *+94 719363063*
*blog: **abeykoon.blogspot.com* 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] user-manager duplicates in carbon-commons and carbon-identity

2015-07-06 Thread KasunG Gajasinghe
Hi Johann,

Will you also be taking care of removing user-manager from carbon-commons?

Thanks.

On Mon, Jul 6, 2015 at 3:58 PM, Johann Nallathamby  wrote:

> Hi Udara,
>
> We recently did this move. We have moved all the identity related
> components from carbon-commons to carbon-identity. All other repos will
> have to change their dependencies to the carbon-identity repo. We haven't
> still announced this since we haven't released the carbon-identity repo
> after this change yet. Once it is released for IS 5.1.0 alpha we will
> announce this change. Most probably within this week.
>
> Thanks.
>
> On Mon, Jul 6, 2015 at 3:22 PM, Udara Rathnayake  wrote:
>
>> Hi all,
>>
>> We are maintaining user-manager component in both  carbon-commons and
>> carbon-identity repos. carbon-commons contains bit old source where the
>> same component is updated in carbon-identity.
>>
>> Shouldn't we maintain this in a single location?
>>
>>
>> https://github.com/wso2/carbon-identity/tree/master/components/user-manager
>> https://github.com/wso2/carbon-commons/tree/master/components/user-manager
>>
>> Regards,
>> UdaraR
>>
>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Technical Lead & Product Lead of WSO2 Identity Server
> Integration Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com *
>



-- 

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


Re: [Dev] user-manager duplicates in carbon-commons and carbon-identity

2015-07-06 Thread Johann Nallathamby
Hi Udara,

We recently did this move. We have moved all the identity related
components from carbon-commons to carbon-identity. All other repos will
have to change their dependencies to the carbon-identity repo. We haven't
still announced this since we haven't released the carbon-identity repo
after this change yet. Once it is released for IS 5.1.0 alpha we will
announce this change. Most probably within this week.

Thanks.

On Mon, Jul 6, 2015 at 3:22 PM, Udara Rathnayake  wrote:

> Hi all,
>
> We are maintaining user-manager component in both  carbon-commons and
> carbon-identity repos. carbon-commons contains bit old source where the
> same component is updated in carbon-identity.
>
> Shouldn't we maintain this in a single location?
>
> https://github.com/wso2/carbon-identity/tree/master/components/user-manager
> https://github.com/wso2/carbon-commons/tree/master/components/user-manager
>
> Regards,
> UdaraR
>



-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Technical Lead & Product Lead of WSO2 Identity Server
Integration Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pull Request for netsuite connector

2015-07-06 Thread Malaka Silva
Great Merged.

What is the validity period of the account?

On Mon, Jul 6, 2015 at 3:53 PM, Kesavan Yogarajah  wrote:

> Hi Malaka,
>
> I have changed the POM and tested the connector with the community level
> development account provided by Netsuite.All the integration tests are
> passed.
> Please review the pull request [1].
>
> [1] - https://github.com/wso2/esb-connectors/pull/219
>
> Thanks
>
> Kesavan Yogarajah
> Associate Software Engineer
> Mobile :+94 (0) 779 758021
> kesav...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
>



-- 

Best Regards,

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

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


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


[Dev] Pull Request for netsuite connector

2015-07-06 Thread Kesavan Yogarajah
Hi Malaka,

I have changed the POM and tested the connector with the community level
development account provided by Netsuite.All the integration tests are
passed.
Please review the pull request [1].

[1] - https://github.com/wso2/esb-connectors/pull/219

Thanks

Kesavan Yogarajah
Associate Software Engineer
Mobile :+94 (0) 779 758021
kesav...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge the PR

2015-07-06 Thread Elilmatha Sivanesan
Hi Malaka,

Please review and merge the PR [1] for Mqtt inbound sample.

[1] https://github.com/wso2/product-esb/pull/206

Thank you.
-- 
*S.Elilmatha*
Associate  Software Engineer,

WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] PR for Mqtt Axis2 Transport

2015-07-06 Thread Sriashalya Srivathsan
Hi Chanaka,
Changes has been made. Find those in the same pull request

On Mon, Jul 6, 2015 at 2:33 PM, Chanaka Fernando  wrote:

> Hi Sriashalya,
>
> Added few comments regarding the versions in pom file. Please rectify them.
>
> Thanks,
> Chanaka
>
> On Mon, Jul 6, 2015 at 2:25 PM, Sriashalya Srivathsan 
> wrote:
>
>> Hi Malaka,
>> Please review merge PR[1]
>> [1] https://github.com/wso2/wso2-axis2-transports/pull/38
>> --
>> Regards
>> S.Sriashalya,
>> WSO2 *Inc*.
>> lean . enterprise . middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> --
> Chanaka Fernando
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
> Twitter:https://twitter.com/chanakaudaya
> Wordpress:http://chanakaudaya.wordpress.com
>
>
>
>


-- 
Regards
S.Sriashalya,
WSO2 *Inc*.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Governance registry Endpoint collection not created by default

2015-07-06 Thread John Hawkins
Hi Folks,

Using the ESB v4.8.1; I've just created a new governance registry using dev
studio v3.7.1 and I see that it's created the collections: event,
permission, repository and trunk collections under the governance context.
But, it hasn't created the endpoint collection though. Should it have done?
And, if I have to create it manually, are there any instructions on what
has to go under the governance/endpoints/ collection?

many thanks,
John.

John Hawkins
Director: Solutions Architecture
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] user-manager duplicates in carbon-commons and carbon-identity

2015-07-06 Thread Udara Rathnayake
Hi all,

We are maintaining user-manager component in both  carbon-commons and
carbon-identity repos. carbon-commons contains bit old source where the
same component is updated in carbon-identity.

Shouldn't we maintain this in a single location?

https://github.com/wso2/carbon-identity/tree/master/components/user-manager
https://github.com/wso2/carbon-commons/tree/master/components/user-manager

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


[Dev] Please review and merge the PR for IDENTITY-2900 (Google, Yahoo and Windows Live Authenticators)

2015-07-06 Thread Indunil Upeksha Rathnayake
Hi,
Please $subject. The PR[1] as the fix for Google, Yahoo and Windows Live
authenticators in the public JIRA [2].

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

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


[Dev] Java based JWS and JWE Library to use with WSO2 Products

2015-07-06 Thread Harshana Eranga Martin
Hi All,

I'm using WSO2 API Manager 1.8.0 for a solution and looking in to using JWS
(JSON Web Signature) and JWE (JSON Web Encryption).

There are few JOSE libraries available in Java [1-4] and what is the
recommended library to use for generating and validating JWS and JWE with
WSO2 Stack?

[1]. Nimbus 
[2]. JOSE4J 
[3]. CXF JOSE 
[4]. Resteasy


Thanks and Regards,
Harshana
--
Harshana Eranga Martin

Committer - Eclipse ECF: http://www.eclipse.org/ecf/
Blog: http://harshana05.blogspot.com
Profile: https://www.google.com/profiles/harshana05
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Class Loading issue in Jaggery, Carbon 4.4.0

2015-07-06 Thread Ruwan Abeykoon
Hi Kishanthan,
I agree your point about CNF error.

I have added "org.wso2.carbon.governance.metadata.server.feature", which
seems to export a bundle having the above package, to my p2-profile-gen.  I
did not encounter the issue (at least for few restarts) since then. Not
sure this is of any significance.

I will post an update if this is a permanent fix.

However I do not understand why it used to work intermittently without
adding the "org.wso2.carbon.governance.metadata.server.feature".

Cheers,
Ruwan

On Mon, Jul 6, 2015 at 2:54 PM, Kishanthan Thangarajah 
wrote:

> If its CNF related, then there should at-least be a log at the back-end.
> Can you check the carbon log file? Sometimes, errors may be logged at file
> only instead of console. If nothing is there, then we need to debug and
> see. The root cause may not be directly related to "
> org.wso2.carbon.governance.api.generic" package.
>
> On Mon, Jul 6, 2015 at 2:02 PM, Ruwan Abeykoon  wrote:
>
>> Hi Kishanthan,
>> There is no error printed on the backend console. The http handler
>> silently failed at the above point on the jag file. (The HTTP socket get
>> closed)
>>
>> I suspect the class not found/class initialization error as there is no
>> other possible cause I could think of.
>> Also something like the following in place of offending line works
>> without any issue on every restart.
>>
>> new java.lang.Runnable({});
>>
>> Thats why i suspect it s a classloader issue as Runnable is from java
>> runtime whereas GenericArtifactFilter is loaded via OSGI.
>>
>> Cheers,
>> Ruwan
>>
>> On Mon, Jul 6, 2015 at 1:44 PM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>>
>>>
>>> On Sun, Jul 5, 2015 at 11:14 AM, Ruwan Abeykoon  wrote:
>>>
 Hi All,
 While upgrading AppManager to use Carbon 4.4.0, I encountered a
 roadblock in classloading.

 I have a jag file with the following method, (which is simplified
 version of actual function). At some times the line works correctly and
 sometimes it fails silently.

>>>
>>> What is the error at the back end? CNF?
>>>
>>>

 var genericArtifactFilter = new
 org.wso2.carbon.governance.api.generic.GenericArtifactFilter(
 {});

 This seems like a classloader issue in OSGI, most probably duplicate or
 incorrect exports by some bundle. However I could not figure out what is
 the exact cause.


 Can anyone shed some light please.

 Carbon 4.4.0
 Governance 4.5.1
 Registry 4.4.3
 Jaggery 0.10.1

 OSGI console prints the correct bundle without any apparent error.

 osgi> p org.wso2.carbon.governance.api.generic
 org.wso2.carbon.governance.api.generic;
 version="4.5.1"
   js_1.7.0.R4wso2v1 [63] imports
   org.jaggeryjs.scriptengine_0.10.0 [152] imports
   org.wso2.carbon.appmgt.hostobjects_1.1.0.SNAPSHOT [172] imports
   org.wso2.carbon.appmgt.keymgt_1.1.0.SNAPSHOT [174] imports
   org.wso2.carbon.appmgt.mobile_1.1.0.SNAPSHOT [178] imports
   org.wso2.carbon.governance.generic_4.5.1 [224] imports
   org.wso2.carbon.governance.list_4.5.1 [230] imports
   org.wso2.carbon.registry.core_4.4.0 [379] imports
   tomcat_7.0.59.wso2v1 [500] imports


 Cheers,
 Ruwan




 *Ruwan Abeykoon*
 *Architect,*
 *WSO2, Inc. http://wso2.com  *
 *lean.enterprise.middleware.*

 email: ruw...@wso2.com
 phone:(+94) 39736

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


>>>
>>>
>>> --
>>> *Kishanthan Thangarajah*
>>> Associate Technical Lead,
>>> Platform Technologies Team,
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - +94773426635
>>> Blog - *http://kishanthan.wordpress.com
>>> *
>>> Twitter - *http://twitter.com/kishanthan
>>> *
>>>
>>
>>
>>
>> --
>>
>> *Ruwan Abeykoon*
>> *Architect,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ruw...@wso2.com
>> phone:(+94) 39736
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 

*Ruwan Abeykoon*
*Architect,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: ruw...@wso2.com
phone:(+94) 39736
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Class Loading issue in Jaggery, Carbon 4.4.0

2015-07-06 Thread Kishanthan Thangarajah
If its CNF related, then there should at-least be a log at the back-end.
Can you check the carbon log file? Sometimes, errors may be logged at file
only instead of console. If nothing is there, then we need to debug and
see. The root cause may not be directly related to "
org.wso2.carbon.governance.api.generic" package.

On Mon, Jul 6, 2015 at 2:02 PM, Ruwan Abeykoon  wrote:

> Hi Kishanthan,
> There is no error printed on the backend console. The http handler
> silently failed at the above point on the jag file. (The HTTP socket get
> closed)
>
> I suspect the class not found/class initialization error as there is no
> other possible cause I could think of.
> Also something like the following in place of offending line works without
> any issue on every restart.
>
> new java.lang.Runnable({});
>
> Thats why i suspect it s a classloader issue as Runnable is from java
> runtime whereas GenericArtifactFilter is loaded via OSGI.
>
> Cheers,
> Ruwan
>
> On Mon, Jul 6, 2015 at 1:44 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>>
>>
>> On Sun, Jul 5, 2015 at 11:14 AM, Ruwan Abeykoon  wrote:
>>
>>> Hi All,
>>> While upgrading AppManager to use Carbon 4.4.0, I encountered a
>>> roadblock in classloading.
>>>
>>> I have a jag file with the following method, (which is simplified
>>> version of actual function). At some times the line works correctly and
>>> sometimes it fails silently.
>>>
>>
>> What is the error at the back end? CNF?
>>
>>
>>>
>>> var genericArtifactFilter = new
>>> org.wso2.carbon.governance.api.generic.GenericArtifactFilter(
>>> {});
>>>
>>> This seems like a classloader issue in OSGI, most probably duplicate or
>>> incorrect exports by some bundle. However I could not figure out what is
>>> the exact cause.
>>>
>>>
>>> Can anyone shed some light please.
>>>
>>> Carbon 4.4.0
>>> Governance 4.5.1
>>> Registry 4.4.3
>>> Jaggery 0.10.1
>>>
>>> OSGI console prints the correct bundle without any apparent error.
>>>
>>> osgi> p org.wso2.carbon.governance.api.generic
>>> org.wso2.carbon.governance.api.generic;
>>> version="4.5.1"
>>>   js_1.7.0.R4wso2v1 [63] imports
>>>   org.jaggeryjs.scriptengine_0.10.0 [152] imports
>>>   org.wso2.carbon.appmgt.hostobjects_1.1.0.SNAPSHOT [172] imports
>>>   org.wso2.carbon.appmgt.keymgt_1.1.0.SNAPSHOT [174] imports
>>>   org.wso2.carbon.appmgt.mobile_1.1.0.SNAPSHOT [178] imports
>>>   org.wso2.carbon.governance.generic_4.5.1 [224] imports
>>>   org.wso2.carbon.governance.list_4.5.1 [230] imports
>>>   org.wso2.carbon.registry.core_4.4.0 [379] imports
>>>   tomcat_7.0.59.wso2v1 [500] imports
>>>
>>>
>>> Cheers,
>>> Ruwan
>>>
>>>
>>>
>>>
>>> *Ruwan Abeykoon*
>>> *Architect,*
>>> *WSO2, Inc. http://wso2.com  *
>>> *lean.enterprise.middleware.*
>>>
>>> email: ruw...@wso2.com
>>> phone:(+94) 39736
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Associate Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> *
>> Twitter - *http://twitter.com/kishanthan *
>>
>
>
>
> --
>
> *Ruwan Abeykoon*
> *Architect,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ruw...@wso2.com
> phone:(+94) 39736
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


Re: [Dev] [AppM] Removing multiple "modules" directories

2015-07-06 Thread Ruwan Yatawara
+1 for a central UI Core feature

Thanks and Regards,

Ruwan Yatawara

Senior Software Engineer,
WSO2 Inc.

email : ruw...@wso2.com
mobile : +94 77 9110413
blog : http://ruwansrants.blogspot.com/
www: :http://wso2.com


On Mon, Jul 6, 2015 at 2:27 PM, Ruwan Abeykoon  wrote:

> Hi AppManager team,
>
> I found at least thee locations in AppM code base where the same module is
> copied.
> 1. product-app-manager/modules/jaggery-modules
> 2.
> carbon-appmgt/features/appmgt/org.wso2.carbon.appmgt.publisher.feature/src/main/resources/jaggery-modules
> 3.
> carbon-appmgt/features/appmgt/org.wso2.carbon.appmgt.store.feature/src/main/resources/jaggery-modules
>
> Can we create new feature for them (something like a UI core feature),
> Since all the modules in Store/Publisher/Social need to be deployed on the
> "/modules".
>
>
> Cheers,
> Ruwan
>
> --
>
> *Ruwan Abeykoon*
> *Architect,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ruw...@wso2.com
> phone:(+94) 39736
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] PR for Mqtt Axis2 Transport

2015-07-06 Thread Chanaka Fernando
Hi Sriashalya,

Added few comments regarding the versions in pom file. Please rectify them.

Thanks,
Chanaka

On Mon, Jul 6, 2015 at 2:25 PM, Sriashalya Srivathsan 
wrote:

> Hi Malaka,
> Please review merge PR[1]
> [1] https://github.com/wso2/wso2-axis2-transports/pull/38
> --
> Regards
> S.Sriashalya,
> WSO2 *Inc*.
> lean . enterprise . middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
--
Chanaka Fernando
Senior Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
Wordpress:http://chanakaudaya.wordpress.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AppM] Removing multiple "modules" directories

2015-07-06 Thread Ruwan Abeykoon
Hi AppManager team,

I found at least thee locations in AppM code base where the same module is
copied.
1. product-app-manager/modules/jaggery-modules
2.
carbon-appmgt/features/appmgt/org.wso2.carbon.appmgt.publisher.feature/src/main/resources/jaggery-modules
3.
carbon-appmgt/features/appmgt/org.wso2.carbon.appmgt.store.feature/src/main/resources/jaggery-modules

Can we create new feature for them (something like a UI core feature),
Since all the modules in Store/Publisher/Social need to be deployed on the
"/modules".


Cheers,
Ruwan

-- 

*Ruwan Abeykoon*
*Architect,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: ruw...@wso2.com
phone:(+94) 39736
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] PR for Mqtt Axis2 Transport

2015-07-06 Thread Sriashalya Srivathsan
Hi Malaka,
Please review merge PR[1]
[1] https://github.com/wso2/wso2-axis2-transports/pull/38
-- 
Regards
S.Sriashalya,
WSO2 *Inc*.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AS : Failed to upload Spring Web app (Spring Boot 1.1.10.RELEASE)

2015-07-06 Thread Sagara Gunathunga
On Mon, Jul 6, 2015 at 2:10 PM, KasunG Gajasinghe  wrote:

>
> Previously, we have excluded the spring packages in Carbon from exposing
> to webapps. Ideally, we should exclude all these third-party dependencies
> that shouldn't be exposed. Then, webapp developers has the flexibility to
> add dependencies not limiting to wso2 provided dependency versions without
> facing classloading issues.
>

Why don't we write a simple web application (page) to list all the packages
visible under given runtime, then it's much easy to identify proper exclude
list.

Thanks !

>
> So, +1 to exclude solr packages.
>
> On Mon, Jul 6, 2015 at 2:00 PM, Niranjan Karunanandham 
> wrote:
>
>> Hi all,
>>
>> I created a simple Spring web using Spring Boot 1.1.10.RELEASE (for
>> integration tests in AS) and when I tried to upload the web app to AS 5.3.0
>> SNAPSHOT, I get the error mentioned in JIRA [1]. I am able to upload this
>> same web app in AS 5.2.1. On looking into this, I found out this happens
>> when there is solr 5.0.0 [2]. As per the offline discussion I had with
>> Kasung, I was able to solve this by excluding org.apache.solr.* in the
>> webapp-classingloading-environments.xml
>> /repository/conf/tomcat) for the *Carbon* Environment
>> which is set as the default webapp-classloading environment. Shall we add
>> this (exclude org.apache.solr.* for Carbon in
>> webapp-classingloading-environments.xml) to the product-as pack by default?
>>
>>
>> [1] - https://wso2.org/jira/browse/WSAS-2000
>> [2] - https://jira.spring.io/browse/DATASOLR-228
>>
>> Regards,
>> Nira
>>
>> --
>>
>> *Niranjan Karunanandham*
>> Senior Software Engineer - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sagara Gunathunga

Architect; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] ClassNotFoundException in Jax-rs service for tyrus standalone client Client Manager

2015-07-06 Thread Danushka Fernando
Hi Sabra
This is a class loading issue. Seems there are two jars providing same
class in the jvm. So did you bundled the dependencies in to the application
(check WEB-INF/lib/ dir of the webapp)? What are jars you copied in to the
$CARBON_HOME/repository/components/lib and
$CARBON_HOME/repository/components/dropins
directories?

Probably what Thusitha mentioned would work for you. But you could ended up
with series of exceptions if you continue without understanding. :). So I
recommend you to go through [1].

[1] https://docs.wso2.com/display/AS510/Webapp+ClassLoading


Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Mon, Jul 6, 2015 at 1:54 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Sabra
>
> I think you should mark following dependency as provided since AS provided
> required jars for the websocket
>
>>
>> *   *
>> *javax.websocket*
>> *javax.websocket-api**
>> 1.1*
>
>
> *provided*
>>
>> **
>
>
> On Mon, Jul 6, 2015 at 1:49 PM, Sabra Ossen  wrote:
>
>> Hi Sajith,
>>
>> I moved it to AS_HOME/repository/components/lib , but now I get the
>> following exception.
>>
>> java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: loader
>> constraint violation: loader (instance of
>> org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously
>> initiated loading for a different type with name "javax/websocket/Endpoint"
>>
>> at
>> org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:116)
>> at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:331)
>> at
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>> at
>> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
>> at
>> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
>> at
>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
>> at
>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
>> at
>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
>> at
>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
>> at
>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:211)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
>> at
>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>> at
>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
>> at
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
>> at
>> org.wso2.carbon.statistics.webapp.RequestIntercepterValve.invoke(RequestIntercepterValve.java:47)
>> at
>> org.wso2.carbon.bam.webapp.stat.publisher.WebAppStatisticPublisherValve.invoke(WebAppStatisticPublisherValve.java:104)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>> at
>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
>> at
>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
>> at
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
>> 

[Dev] [DEV][DevStudio] Please review and merge the PR

2015-07-06 Thread Nuwan Pallewela
Hi,

Please review and merge PR [1] and [2] -
Fixing Tools-2900 -'Advanced Configuration' option does not list any
advanced options for HTTP/HTTPS Inbound Endpoints
Fixing Tools-2673-Typo in XPath

[1] https://github.com/wso2/developer-studio/pull/57
[2] https://github.com/wso2/developer-studio/pull/56

Thanks,
-- 
--

*Nuwan Chamara Pallewela*


*Software Engineer*

*WSO2, Inc. *
*lean . enterprise . middleware*

Email   *nuw...@wso2.com *
Mobile  *+94719079739*
*+94767100087*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AS : Failed to upload Spring Web app (Spring Boot 1.1.10.RELEASE)

2015-07-06 Thread KasunG Gajasinghe
Previously, we have excluded the spring packages in Carbon from exposing to
webapps. Ideally, we should exclude all these third-party dependencies that
shouldn't be exposed. Then, webapp developers has the flexibility to add
dependencies not limiting to wso2 provided dependency versions without
facing classloading issues.

So, +1 to exclude solr packages.

On Mon, Jul 6, 2015 at 2:00 PM, Niranjan Karunanandham 
wrote:

> Hi all,
>
> I created a simple Spring web using Spring Boot 1.1.10.RELEASE (for
> integration tests in AS) and when I tried to upload the web app to AS 5.3.0
> SNAPSHOT, I get the error mentioned in JIRA [1]. I am able to upload this
> same web app in AS 5.2.1. On looking into this, I found out this happens
> when there is solr 5.0.0 [2]. As per the offline discussion I had with
> Kasung, I was able to solve this by excluding org.apache.solr.* in the
> webapp-classingloading-environments.xml
> /repository/conf/tomcat) for the *Carbon* Environment which
> is set as the default webapp-classloading environment. Shall we add this
> (exclude org.apache.solr.* for Carbon in
> webapp-classingloading-environments.xml) to the product-as pack by default?
>
>
> [1] - https://wso2.org/jira/browse/WSAS-2000
> [2] - https://jira.spring.io/browse/DATASOLR-228
>
> Regards,
> Nira
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



-- 

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


Re: [Dev] Class Loading issue in Jaggery, Carbon 4.4.0

2015-07-06 Thread Ruwan Abeykoon
Hi Kishanthan,
There is no error printed on the backend console. The http handler silently
failed at the above point on the jag file. (The HTTP socket get closed)

I suspect the class not found/class initialization error as there is no
other possible cause I could think of.
Also something like the following in place of offending line works without
any issue on every restart.

new java.lang.Runnable({});

Thats why i suspect it s a classloader issue as Runnable is from java
runtime whereas GenericArtifactFilter is loaded via OSGI.

Cheers,
Ruwan

On Mon, Jul 6, 2015 at 1:44 PM, Kishanthan Thangarajah 
wrote:

>
>
> On Sun, Jul 5, 2015 at 11:14 AM, Ruwan Abeykoon  wrote:
>
>> Hi All,
>> While upgrading AppManager to use Carbon 4.4.0, I encountered a roadblock
>> in classloading.
>>
>> I have a jag file with the following method, (which is simplified version
>> of actual function). At some times the line works correctly and sometimes
>> it fails silently.
>>
>
> What is the error at the back end? CNF?
>
>
>>
>> var genericArtifactFilter = new
>> org.wso2.carbon.governance.api.generic.GenericArtifactFilter(
>> {});
>>
>> This seems like a classloader issue in OSGI, most probably duplicate or
>> incorrect exports by some bundle. However I could not figure out what is
>> the exact cause.
>>
>>
>> Can anyone shed some light please.
>>
>> Carbon 4.4.0
>> Governance 4.5.1
>> Registry 4.4.3
>> Jaggery 0.10.1
>>
>> OSGI console prints the correct bundle without any apparent error.
>>
>> osgi> p org.wso2.carbon.governance.api.generic
>> org.wso2.carbon.governance.api.generic;
>> version="4.5.1"
>>   js_1.7.0.R4wso2v1 [63] imports
>>   org.jaggeryjs.scriptengine_0.10.0 [152] imports
>>   org.wso2.carbon.appmgt.hostobjects_1.1.0.SNAPSHOT [172] imports
>>   org.wso2.carbon.appmgt.keymgt_1.1.0.SNAPSHOT [174] imports
>>   org.wso2.carbon.appmgt.mobile_1.1.0.SNAPSHOT [178] imports
>>   org.wso2.carbon.governance.generic_4.5.1 [224] imports
>>   org.wso2.carbon.governance.list_4.5.1 [230] imports
>>   org.wso2.carbon.registry.core_4.4.0 [379] imports
>>   tomcat_7.0.59.wso2v1 [500] imports
>>
>>
>> Cheers,
>> Ruwan
>>
>>
>>
>>
>> *Ruwan Abeykoon*
>> *Architect,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ruw...@wso2.com
>> phone:(+94) 39736
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 

*Ruwan Abeykoon*
*Architect,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: ruw...@wso2.com
phone:(+94) 39736
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] AS : Failed to upload Spring Web app (Spring Boot 1.1.10.RELEASE)

2015-07-06 Thread Niranjan Karunanandham
Hi all,

I created a simple Spring web using Spring Boot 1.1.10.RELEASE (for
integration tests in AS) and when I tried to upload the web app to AS 5.3.0
SNAPSHOT, I get the error mentioned in JIRA [1]. I am able to upload this
same web app in AS 5.2.1. On looking into this, I found out this happens
when there is solr 5.0.0 [2]. As per the offline discussion I had with
Kasung, I was able to solve this by excluding org.apache.solr.* in the
webapp-classingloading-environments.xml
/repository/conf/tomcat) for the *Carbon* Environment which
is set as the default webapp-classloading environment. Shall we add this
(exclude org.apache.solr.* for Carbon in
webapp-classingloading-environments.xml) to the product-as pack by default?


[1] - https://wso2.org/jira/browse/WSAS-2000
[2] - https://jira.spring.io/browse/DATASOLR-228

Regards,
Nira

-- 

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


Re: [Dev] [Orbit] Please review the PR for Spark 1.4.0 wso2v2

2015-07-06 Thread Niranda Perera
thanks Maheshika! :-)

On Mon, Jul 6, 2015 at 11:37 AM, Maheshika Goonetilleke 
wrote:

> Hi Niranda
>
> Done.
>
> On Mon, Jul 6, 2015 at 11:08 AM, Niranda Perera  wrote:
>
>> Thanks Nira! :-)
>>
>> @Maheshika,
>> could you please release the following bundles
>>
>>- spark-core_2.10/1.4.0.wso2v2
>>- typesafe-config/1.2.1.wso2v1
>>
>> rgds
>>
>> On Mon, Jul 6, 2015 at 10:31 AM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Niranda,
>>>
>>> I have merge the PR.
>>>
>>> Regards,
>>> Nira
>>>
>>> On Mon, Jul 6, 2015 at 10:19 AM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi Niranda,

 I will look into this.

 Regards,
 Nira

 On Mon, Jul 6, 2015 at 10:15 AM, Niranda Perera 
 wrote:

> Hi Sameera,
>
> Could you please review this PR [1] for wso2v2 of the Spark 1.4.0.
>
> there were some problems in the initial obit bundle with its private
> packages.
>
> now all the unrelated private packages are removed. additionally, all
> the unnecessary config files and binaries are also removed.
>
> this upgrades spark-core and spark-sql from 1.3.0 to 1.4.0. this
> upgrade is done, because 1.4.0 has some important bug fixes related to
> spark clustering and we need to include these in the DAS (BAM) 3.0.0 beta
>
> it also adds also adds com.typesafe.config.wso2v1
> this is already an OSGI bundle. but in runtime it requests for a
> config file, which is not provided in the bundle. so, it had to be 
> included
> inside the bundle.
>
> cheers
>
> [1] *https://github.com/wso2/orbit/pull/109
> *
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
> https://pythagoreanscript.wordpress.com/
>



 --

 *Niranjan Karunanandham*
 Senior Software Engineer - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com

>>>
>>>
>>>
>>> --
>>>
>>> *Niranjan Karunanandham*
>>> Senior Software Engineer - WSO2 Inc.
>>> WSO2 Inc.: http://www.wso2.com
>>>
>>
>>
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 
>> https://pythagoreanscript.wordpress.com/
>>
>
>
>
> --
>
> Thanks & Best Regards,
>
> Maheshika Goonetilleke
> Engineering Process Coordinator
>
> *WSO2 Inc*
> *email   : mahesh...@wso2.com *
> *mobile : +94 773 596707 <%2B94%20773%20596707>*
> *www: :http://wso2.com *lean . enterprise . middleware
>
>
>
>
>


-- 
*Niranda Perera*
Software Engineer, WSO2 Inc.
Mobile: +94-71-554-8430
Twitter: @n1r44 
https://pythagoreanscript.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] ClassNotFoundException in Jax-rs service for tyrus standalone client Client Manager

2015-07-06 Thread Thusitha Thilina Dayaratne
Hi Sabra

I think you should mark following dependency as provided since AS provided
required jars for the websocket

>
> *   *
> *javax.websocket*
> *javax.websocket-api**
> 1.1*


*provided*
>
> **


On Mon, Jul 6, 2015 at 1:49 PM, Sabra Ossen  wrote:

> Hi Sajith,
>
> I moved it to AS_HOME/repository/components/lib , but now I get the
> following exception.
>
> java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: loader
> constraint violation: loader (instance of
> org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously
> initiated loading for a different type with name "javax/websocket/Endpoint"
>
> at
> org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:116)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:331)
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
> at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
> at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
> at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
> at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
> at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:211)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
> at
> org.wso2.carbon.statistics.webapp.RequestIntercepterValve.invoke(RequestIntercepterValve.java:47)
> at
> org.wso2.carbon.bam.webapp.stat.publisher.WebAppStatisticPublisherValve.invoke(WebAppStatisticPublisherValve.java:104)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
> at
> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
> at
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
> at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
> at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.cxf.interceptor.Fault: loader constraint violation:
> loader (instance of
> org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previ

Re: [Dev] [AS] ClassNotFoundException in Jax-rs service for tyrus standalone client Client Manager

2015-07-06 Thread Sabra Ossen
Hi Sajith,

I moved it to AS_HOME/repository/components/lib , but now I get the
following exception.

java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: loader
constraint violation: loader (instance of
org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously
initiated loading for a different type with name "javax/websocket/Endpoint"
at
org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:116)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:331)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.wso2.carbon.statistics.webapp.RequestIntercepterValve.invoke(RequestIntercepterValve.java:47)
at
org.wso2.carbon.bam.webapp.stat.publisher.WebAppStatisticPublisherValve.invoke(WebAppStatisticPublisherValve.java:104)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.cxf.interceptor.Fault: loader constraint violation:
loader (instance of
org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously
initiated loading for a different type with name "javax/websocket/Endpoint"
at
org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:162)
at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:128)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100)
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.

Re: [Dev] Please review and merge PRs

2015-07-06 Thread Johann Nallathamby
Hi Chamila,

The samlsso_federate.html should go with the
application.authenticator.samlsso.server.feature.

Thanks.

On Mon, Jul 6, 2015 at 1:22 PM, Chamila Wijayarathna 
wrote:

> Hi,
>
> Please review and merge PRs,
> https://github.com/wso2/carbon-identity/pull/563
> https://github.com/wso2/product-is/pull/137
>
> Thanks
>
> --
> *Chamila Dilshan Wijayarathna,*
> Software Engineer
> Mobile:(+94)788193620
> WSO2 Inc., http://wso2.com/
>



-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Technical Lead & Product Lead of WSO2 Identity Server
Integration Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Class Loading issue in Jaggery, Carbon 4.4.0

2015-07-06 Thread Kishanthan Thangarajah
On Sun, Jul 5, 2015 at 11:14 AM, Ruwan Abeykoon  wrote:

> Hi All,
> While upgrading AppManager to use Carbon 4.4.0, I encountered a roadblock
> in classloading.
>
> I have a jag file with the following method, (which is simplified version
> of actual function). At some times the line works correctly and sometimes
> it fails silently.
>

What is the error at the back end? CNF?


>
> var genericArtifactFilter = new
> org.wso2.carbon.governance.api.generic.GenericArtifactFilter(
> {});
>
> This seems like a classloader issue in OSGI, most probably duplicate or
> incorrect exports by some bundle. However I could not figure out what is
> the exact cause.
>
>
> Can anyone shed some light please.
>
> Carbon 4.4.0
> Governance 4.5.1
> Registry 4.4.3
> Jaggery 0.10.1
>
> OSGI console prints the correct bundle without any apparent error.
>
> osgi> p org.wso2.carbon.governance.api.generic
> org.wso2.carbon.governance.api.generic;
> version="4.5.1"
>   js_1.7.0.R4wso2v1 [63] imports
>   org.jaggeryjs.scriptengine_0.10.0 [152] imports
>   org.wso2.carbon.appmgt.hostobjects_1.1.0.SNAPSHOT [172] imports
>   org.wso2.carbon.appmgt.keymgt_1.1.0.SNAPSHOT [174] imports
>   org.wso2.carbon.appmgt.mobile_1.1.0.SNAPSHOT [178] imports
>   org.wso2.carbon.governance.generic_4.5.1 [224] imports
>   org.wso2.carbon.governance.list_4.5.1 [230] imports
>   org.wso2.carbon.registry.core_4.4.0 [379] imports
>   tomcat_7.0.59.wso2v1 [500] imports
>
>
> Cheers,
> Ruwan
>
>
>
>
> *Ruwan Abeykoon*
> *Architect,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ruw...@wso2.com
> phone:(+94) 39736
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


Re: [Dev] Please merge PR #280

2015-07-06 Thread Johann Nallathamby
Merged.

Thanks.

On Mon, Jul 6, 2015 at 1:23 PM, Ishara Karunarathna 
wrote:

> Hi,
>
> Add some changes.
>
> Please merge this to.
>
> https://github.com/wso2/carbon4-kernel/pull/281
>
> On Mon, Jul 6, 2015 at 12:51 PM, Johann Nallathamby 
> wrote:
>
>> Merged.
>>
>> Thanks.
>>
>> On Mon, Jul 6, 2015 at 11:58 AM, Ishara Karunarathna 
>> wrote:
>>
>>> Hi,
>>>
>>> $subject pls for [1]
>>>
>>> Thanks,
>>> Ishara
>>>
>>> [1] https://github.com/wso2/carbon4-kernel/pull/280
>>>
>>> --
>>> Ishara Karunarathna
>>> Senior Software Engineer
>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>
>>> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
>>> +94717996791
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> *Johann Dilantha Nallathamby*
>> Technical Lead & Product Lead of WSO2 Identity Server
>> Integration Technologies Team
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - *+9476950*
>> Blog - *http://nallaa.wordpress.com *
>>
>
>
>
> --
> Ishara Karunarathna
> Senior Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
> +94717996791
>



-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Technical Lead & Product Lead of WSO2 Identity Server
Integration Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please merge PR #280

2015-07-06 Thread Ishara Karunarathna
Hi,

Add some changes.

Please merge this to.

https://github.com/wso2/carbon4-kernel/pull/281

On Mon, Jul 6, 2015 at 12:51 PM, Johann Nallathamby  wrote:

> Merged.
>
> Thanks.
>
> On Mon, Jul 6, 2015 at 11:58 AM, Ishara Karunarathna 
> wrote:
>
>> Hi,
>>
>> $subject pls for [1]
>>
>> Thanks,
>> Ishara
>>
>> [1] https://github.com/wso2/carbon4-kernel/pull/280
>>
>> --
>> Ishara Karunarathna
>> Senior Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
>> +94717996791
>>
>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Technical Lead & Product Lead of WSO2 Identity Server
> Integration Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com *
>



-- 
Ishara Karunarathna
Senior Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
+94717996791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge PRs

2015-07-06 Thread Chamila Wijayarathna
Hi,

Please review and merge PRs,
https://github.com/wso2/carbon-identity/pull/563
https://github.com/wso2/product-is/pull/137

Thanks

-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge the PR

2015-07-06 Thread Elilmatha Sivanesan
Hi Malaka,

Please review and merge the PR [1] for Mqtt inbound.

[1] https://github.com/wso2/carbon-mediation/pull/271

Thank you.
-- 
*S.Elilmatha*
Associate  Software Engineer,

WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] Please merge PR #280

2015-07-06 Thread Johann Nallathamby
Merged.

Thanks.

On Mon, Jul 6, 2015 at 11:58 AM, Ishara Karunarathna 
wrote:

> Hi,
>
> $subject pls for [1]
>
> Thanks,
> Ishara
>
> [1] https://github.com/wso2/carbon4-kernel/pull/280
>
> --
> Ishara Karunarathna
> Senior Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
> +94717996791
>



-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Technical Lead & Product Lead of WSO2 Identity Server
Integration Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] ClassNotFoundException in Jax-rs service for tyrus standalone client Client Manager

2015-07-06 Thread Sajith Kariyawasam
On Mon, Jul 6, 2015 at 12:37 PM, Sabra Ossen  wrote:

> Hi All,
>
> I am trying to send messages to a web socket server through a jax-rs
> service using tyrus [1]. I have separately deployed the web socket server
> in the AS 5.3.0 alpha.
>
> The code for the jax-rs service is as follows.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *@Path("/hello")public class HelloService {private static
> CountDownLatch messageLatch;@GET@Path("/{message}")public void
> connectToWSServer(@PathParam("message") final String message) throws
> URISyntaxException, IOException, DeploymentException, InterruptedException
> {String endPoint = "ws://127.0.0.1:9763/WebSocketServer/echo
> ";messageLatch = new
> CountDownLatch(1);final ClientEndpointConfig cec =
> ClientEndpointConfig.Builder.create().build();ClientManager client
> = ClientManager.createClient();client.connectToServer(new
> Endpoint() {@Overridepublic void onOpen(Session
> session, EndpointConfig config) {try {
> session.addMessageHandler(new MessageHandler.Whole()
> {@Overridepublic void
> onMessage(String message) {
> System.out.println("Received message:
> "+message);
> messageLatch.countDown();}
> });
> session.getBasicRemote().sendText(message);} catch
> (IOException e) {e.printStackTrace();
> }}}, cec, new URI(endPoint));
> messageLatch.await(100, TimeUnit.SECONDS);}}*
>
> The pom is as follows.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> * xmlns="http://maven.apache.org/POM/4.0.0
> "
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> "
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> 
> http://maven.apache.org/xsd/maven-4.0.0.xsd
> ">
> 4.0.0org.test.jaxrs
> FirstJaxRsService
> 1.0-SNAPSHOTwar
> javax.ws.rs
> 
> jsr311-api
> 1.1.1
> org.apache.cxf
> cxf-rt-transports-http
> 3.1.1
> org.apache.cxf
> cxf-rt-frontend-jaxrs
> 3.1.1
> commons-httpclient
> commons-httpclient
> 3.1
> javax.websocket
> javax.websocket-api
> 1.1
> org.glassfish.tyrus.bundles
> tyrus-standalone-client
> 1.11
> 
> maven-compiler-plugin
> 3.1
> 1.51.5
> 
> maven-war-plugin
> 2.2
> ${basedir}/src/main/webapp/WEB-INF/web.xml
> WEB-INF/lib/*.jar
> ${project.artifactId}
> 
> *
>
> I have included the tyrus-standalone-client-1.11.jar [2] in
> AS_HOME/repository/components/dropins, but I get the following exception.
>
>

Since its a non osgi bundle, this needs to be copied to
AS_HOME/repository/components/lib directory


> [2015-07-06 12:05:15,756] ERROR
> {org.apache.catalina.core.StandardWrapperValve} -  Servlet.service() for
> servlet [JAXServlet] in context with path [/FirstJaxRsService] threw
> exception
> java.lang.RuntimeException: org.apache.cxf.interceptor.Fault:
> org/glassfish/tyrus/client/ClientManager
> at
> org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:116)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:331)
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
> at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
> at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
> at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
> at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
> at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:211)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.tomcat.websocket.server.WsFilte

Re: [Dev] [AS] ClassNotFoundException in Jax-rs service for tyrus standalone client Client Manager

2015-07-06 Thread Sagara Gunathunga
I think you need to include all Tyrus dependencies inside the web
application but it's look like you are excluding all the dependencies from
.WAR file.

Thanks !

On Mon, Jul 6, 2015 at 12:37 PM, Sabra Ossen  wrote:

> Hi All,
>
> I am trying to send messages to a web socket server through a jax-rs
> service using tyrus [1]. I have separately deployed the web socket server
> in the AS 5.3.0 alpha.
>
> The code for the jax-rs service is as follows.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *@Path("/hello")public class HelloService {private static
> CountDownLatch messageLatch;@GET@Path("/{message}")public void
> connectToWSServer(@PathParam("message") final String message) throws
> URISyntaxException, IOException, DeploymentException, InterruptedException
> {String endPoint = "ws://127.0.0.1:9763/WebSocketServer/echo
> ";messageLatch = new
> CountDownLatch(1);final ClientEndpointConfig cec =
> ClientEndpointConfig.Builder.create().build();ClientManager client
> = ClientManager.createClient();client.connectToServer(new
> Endpoint() {@Overridepublic void onOpen(Session
> session, EndpointConfig config) {try {
> session.addMessageHandler(new MessageHandler.Whole()
> {@Overridepublic void
> onMessage(String message) {
> System.out.println("Received message:
> "+message);
> messageLatch.countDown();}
> });
> session.getBasicRemote().sendText(message);} catch
> (IOException e) {e.printStackTrace();
> }}}, cec, new URI(endPoint));
> messageLatch.await(100, TimeUnit.SECONDS);}}*
>
> The pom is as follows.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> * xmlns="http://maven.apache.org/POM/4.0.0
> "
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> "
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> 
> http://maven.apache.org/xsd/maven-4.0.0.xsd
> ">
> 4.0.0org.test.jaxrs
> FirstJaxRsService
> 1.0-SNAPSHOTwar
> javax.ws.rs
> 
> jsr311-api
> 1.1.1
> org.apache.cxf
> cxf-rt-transports-http
> 3.1.1
> org.apache.cxf
> cxf-rt-frontend-jaxrs
> 3.1.1
> commons-httpclient
> commons-httpclient
> 3.1
> javax.websocket
> javax.websocket-api
> 1.1
> org.glassfish.tyrus.bundles
> tyrus-standalone-client
> 1.11
> 
> maven-compiler-plugin
> 3.1
> 1.51.5
> 
> maven-war-plugin
> 2.2
> ${basedir}/src/main/webapp/WEB-INF/web.xml
> WEB-INF/lib/*.jar
> ${project.artifactId}
> 
> *
>
> I have included the tyrus-standalone-client-1.11.jar [2] in
> AS_HOME/repository/components/dropins, but I get the following exception.
>
> [2015-07-06 12:05:15,756] ERROR
> {org.apache.catalina.core.StandardWrapperValve} -  Servlet.service() for
> servlet [JAXServlet] in context with path [/FirstJaxRsService] threw
> exception
> java.lang.RuntimeException: org.apache.cxf.interceptor.Fault:
> org/glassfish/tyrus/client/ClientManager
> at
> org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:116)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:331)
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
> at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
> at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
> at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
> at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
> at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:211)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:

[Dev] [AS] ClassNotFoundException in Jax-rs service for tyrus standalone client Client Manager

2015-07-06 Thread Sabra Ossen
Hi All,

I am trying to send messages to a web socket server through a jax-rs
service using tyrus [1]. I have separately deployed the web socket server
in the AS 5.3.0 alpha.

The code for the jax-rs service is as follows.









































*@Path("/hello")public class HelloService {private static
CountDownLatch messageLatch;@GET@Path("/{message}")public void
connectToWSServer(@PathParam("message") final String message) throws
URISyntaxException, IOException, DeploymentException, InterruptedException
{String endPoint = "ws://127.0.0.1:9763/WebSocketServer/echo
";messageLatch = new
CountDownLatch(1);final ClientEndpointConfig cec =
ClientEndpointConfig.Builder.create().build();ClientManager client
= ClientManager.createClient();client.connectToServer(new
Endpoint() {@Overridepublic void onOpen(Session
session, EndpointConfig config) {try {
session.addMessageHandler(new MessageHandler.Whole()
{@Overridepublic void
onMessage(String message) {
System.out.println("Received message:
"+message);
messageLatch.countDown();}
});
session.getBasicRemote().sendText(message);} catch
(IOException e) {e.printStackTrace();
}}}, cec, new URI(endPoint));
messageLatch.await(100, TimeUnit.SECONDS);}}*

The pom is as follows.


































































*http://maven.apache.org/POM/4.0.0
"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0

http://maven.apache.org/xsd/maven-4.0.0.xsd
">
4.0.0org.test.jaxrs
FirstJaxRsService
1.0-SNAPSHOTwar
javax.ws.rs

jsr311-api
1.1.1
org.apache.cxf
cxf-rt-transports-http
3.1.1
org.apache.cxf
cxf-rt-frontend-jaxrs
3.1.1
commons-httpclient
commons-httpclient
3.1
javax.websocket
javax.websocket-api
1.1
org.glassfish.tyrus.bundles
tyrus-standalone-client
1.11

maven-compiler-plugin
3.1
1.51.5

maven-war-plugin
2.2
${basedir}/src/main/webapp/WEB-INF/web.xml
WEB-INF/lib/*.jar
${project.artifactId}

*

I have included the tyrus-standalone-client-1.11.jar [2] in
AS_HOME/repository/components/dropins, but I get the following exception.

[2015-07-06 12:05:15,756] ERROR
{org.apache.catalina.core.StandardWrapperValve} -  Servlet.service() for
servlet [JAXServlet] in context with path [/FirstJaxRsService] threw
exception
java.lang.RuntimeException: org.apache.cxf.interceptor.Fault:
org/glassfish/tyrus/client/ClientManager
at
org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:116)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:331)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorB