[Dev] API Gateway alters POST request URLs in API-Manager 1.7.0
Hi, Context path of POST request URLs of APIs get dropped at the gateway when invoked with the content-type 'text/xml'. I have reported the issue under [1]. Please look into this. [1] - https://wso2.org/jira/browse/APIMANAGER-2256 Regards *Asanthi Kulasinghe* WSO2 Inc; http://www.wso2.com/. Mobile: +94777355522 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Fwd: Do we need the capability to publish same web application through the multiple applications in AppManager
Hi, $subject is something practical (AFAIS). Say we have a web-app A. Then we have published two applications in AppM by pointing to the web-app A as endpoint. If we need to collect stats, we need to include the tracking code generated by AppM for that particular web-app. Can we include multiple tracking codes with the js script that we are using ? (If we include only single code,then the counters will not be correct) Regards, Dinusha. -- Dinusha Dilrukshi Senior Software Engineer 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] [UES] Embeding Gadgets into a web page
Your url should be http://privateIP:9763/*gadgets*/ifr?url=http:// privateIP:9763/gadget-test/gadget.xml /Ruchira On Thu, May 1, 2014 at 6:08 AM, Shani Ranasinghe sh...@wso2.com wrote: Hi, I have a gadget in the UES server at the location http://localhost:9763/gadget-test/gadget.xml. When I use this in the browser I can see the Gadget XML. The portal is started at UES Portal URL : http://localhost:9763/portal. And when I check the URL through the Management console of the UES the URL that it gives is http://private IP:9763/gadget-test. I have added the following lines to my webapp page, which is a java application and a .jsp page. iframe id=gadget-3 src=http://privateIP:9763/gadget-test/ifr?url=http:// privateIP:9763/gadget-test/gadget.xml /iframe I was not able to view the I frame in the page, and it prompted a 404 resource (http://private IP:9763/gadget-test/ifr) not found. Please note that the private IP's at instances are the same. -- Thanks and Regards *, Shani Ranasinghe* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 77 2273555 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab -- *Ruchira Wageesha**Associate Technical Lead* *WSO2 Inc. - lean . enterprise . middleware | wso2.com http://wso2.com* *email: ruch...@wso2.com ruch...@wso2.com, blog: ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com, mobile: +94 77 5493444* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] API Gateway alters POST request URLs in API-Manager 1.7.0
Its not that it alters request urls, it drops the request parameters from the outgoing request when the Content-Type is text/xml. If the API context is: /stockquote/1.0.0 Endpoint is: http://host:port/StockQuoteService Request url is: /stockquote/1.0.0/getQuote In the case of applcation/xml, the outgoing request is http://host:port /StockQuoteService/getQuote In the case of text/xml, the outgoing request is http://host:port /StockQuoteService As you see, in the case of text/xml, 'getQuote' is not sent to the back end. I presume this is the correct behavior since text/xml is normally used for SOAP? Thanks, NuwanD. On Thu, May 1, 2014 at 11:37 AM, Asanthi Kulasinghe asan...@wso2.comwrote: Hi, Context path of POST request URLs of APIs get dropped at the gateway when invoked with the content-type 'text/xml'. I have reported the issue under [1]. Please look into this. [1] - https://wso2.org/jira/browse/APIMANAGER-2256 Regards *Asanthi Kulasinghe* WSO2 Inc; http://www.wso2.com/. Mobile: +94777355522 -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Do we need the capability to publish same web application through the multiple applications in AppManager
Hi Dinusha, From the GA perspective, I don't think this is an issue (if I'm understanding you correctly, sorry if i'm not). Currently the unique ID sent to google analytics is stored in a cookie that takes the API name into consideration. So for each app manager app in your scenario (even if they use the same backend app) there will be two unique ID's - and hence will be treated as separate invocations (also the document paths stored will be different - it will be up to the user to identify the different apps on GA by looking at the paths) . For both applications, if we use the same tracking code, it doesn't matter as we create two unique ID's as explained above. On Thu, May 1, 2014 at 12:06 PM, Dinusha Senanayaka dinu...@wso2.comwrote: Hi, $subject is something practical (AFAIS). Say we have a web-app A. Then we have published two applications in AppM by pointing to the web-app A as endpoint. If we need to collect stats, we need to include the tracking code generated by AppM for that particular web-app. Can we include multiple tracking codes with the js script that we are using ? (If we include only single code,then the counters will not be correct) Regards, Dinusha. -- Dinusha Dilrukshi Senior Software Engineer WSO2 Inc.: http://wso2.com/ Mobile: +94725255071 Blog: http://dinushasblog.blogspot.com/ -- *Ravi Undupitiya* Software Engineer; WSO2 Inc.; http://wso2.com *E-mail: r...@wso2.com http://wso2.com**M: **+94 772 930 712* Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Registry rxts, how to sort by date-time when retrieving artifacts?
Hi, I need to have an rxt field type which can store a date-time. AFAIK rxt's have a date field but it cannot store a time. As a workaround, I have stored the current time in millis as a text field so storing the time problem is solved through that. But now I need to sort by time descending when retrieving artifacts through pagination. What options do I have to get this done? Thanks, NuwanD. -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] AppServer - CommodityQuote Sample - scenario 4 (Encryption) does not work
I get the following error on the server side when I try to run the sample client: [2014-05-01 16:58:54,385] ERROR {org.apache.catalina.core.StandardWrapperValve} - Servlet.service() for servlet [bridgeservlet] in context with path [/] threw exception java.lang.NullPointerException at org.apache.rampart.builder.SymmetricBindingBuilder.getEncryptedKey(SymmetricBindingBuilder.java:840) at org.apache.rampart.builder.SymmetricBindingBuilder.doSignBeforeEncrypt(SymmetricBindingBuilder.java:418) at org.apache.rampart.builder.SymmetricBindingBuilder.build(SymmetricBindingBuilder.java:86) at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:144) at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:65) at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340) at org.apache.axis2.engine.Phase.invoke(Phase.java:313) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261) at org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:515) at org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:433) at org.apache.axis2.transport.http.AxisServlet.processAxisFault(AxisServlet.java:398) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:188) What could be the reason? -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/* *email: **az...@wso2.com* az...@wso2.com * cell: +94 77 3320919 blog: **http://blog.afkham.org*http://blog.afkham.org *twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez * linked-in: **http://lk.linkedin.com/in/afkhamazeez http://lk.linkedin.com/in/afkhamazeez* *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Do we need the capability to publish same web application through the multiple applications in AppManager
Hi Dinusha, In BAM scenario, tracking ID is generated based on context and version of the proxy web app in app manager.So if we create two proxy web apps for a real app, tracing ID will be unique. And in the Handler, we are validating the tracking ID against the context before publish. Thanks, Rajeeva On Thu, May 1, 2014 at 1:55 PM, Ravi Undupitiya r...@wso2.com wrote: Hi Dinusha, From the GA perspective, I don't think this is an issue (if I'm understanding you correctly, sorry if i'm not). Currently the unique ID sent to google analytics is stored in a cookie that takes the API name into consideration. So for each app manager app in your scenario (even if they use the same backend app) there will be two unique ID's - and hence will be treated as separate invocations (also the document paths stored will be different - it will be up to the user to identify the different apps on GA by looking at the paths) . For both applications, if we use the same tracking code, it doesn't matter as we create two unique ID's as explained above. On Thu, May 1, 2014 at 12:06 PM, Dinusha Senanayaka dinu...@wso2.comwrote: Hi, $subject is something practical (AFAIS). Say we have a web-app A. Then we have published two applications in AppM by pointing to the web-app A as endpoint. If we need to collect stats, we need to include the tracking code generated by AppM for that particular web-app. Can we include multiple tracking codes with the js script that we are using ? (If we include only single code,then the counters will not be correct) Regards, Dinusha. -- Dinusha Dilrukshi Senior Software Engineer WSO2 Inc.: http://wso2.com/ Mobile: +94725255071 Blog: http://dinushasblog.blogspot.com/ -- *Ravi Undupitiya* Software Engineer; WSO2 Inc.; http://wso2.com *E-mail: r...@wso2.com http://wso2.com**M: **+94 772 930 712 %2B94%C2%A0772%20930%20712* Lean . Enterprise . Middleware -- *Rajeeva Uthayasangar* Software Engineer WSO2, Inc.:http://wso2.com Mobile: +94777298873 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] CallBack Handler Class in Entitlement Mediator
Hi All, Is there any particular reason for having Callback Handler Classes as follows based on the 'Entitlement Callback Handler' in Entitlement Mediator? UT - org.wso2.carbon.identity.entitlement.mediator.callback.UIEntitlementCallbackHandler SAML - org.wso2.carbon.identity.entitlement.mediator.callback.SAMLEntitlementCallbackHandler Kerberos- org.wso2.carbon.identity.entitlement.mediator.callback.KerberosEntitlementCallbackHandler X509 - org.wso2.carbon.identity.entitlement.mediator.callback.X509EntitlementCallbackHandler Regards, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] API Gateway alters POST request URLs in API-Manager 1.7.0
Hi Nuwan, Isn't this a bug? When we tested this we used a RESTful service (starbucks sample) as the back end. And you can't expect the client would always send application/xml as the Content-Type when calling a rest backend. Sending a text/xml is totally valid when calling a RESTful backend. regards, Nirodha On Thu, May 1, 2014 at 12:35 PM, Nuwan Dias nuw...@wso2.com wrote: Its not that it alters request urls, it drops the request parameters from the outgoing request when the Content-Type is text/xml. If the API context is: /stockquote/1.0.0 Endpoint is: http://host:port/StockQuoteService Request url is: /stockquote/1.0.0/getQuote In the case of applcation/xml, the outgoing request is http://host:port /StockQuoteService/getQuote In the case of text/xml, the outgoing request is http://host:port /StockQuoteService As you see, in the case of text/xml, 'getQuote' is not sent to the back end. I presume this is the correct behavior since text/xml is normally used for SOAP? Thanks, NuwanD. On Thu, May 1, 2014 at 11:37 AM, Asanthi Kulasinghe asan...@wso2.comwrote: Hi, Context path of POST request URLs of APIs get dropped at the gateway when invoked with the content-type 'text/xml'. I have reported the issue under [1]. Please look into this. [1] - https://wso2.org/jira/browse/APIMANAGER-2256 Regards *Asanthi Kulasinghe* WSO2 Inc; http://www.wso2.com/. Mobile: +94777355522 -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Nirodha Gallage* Senior Software Engineer, QA. WSO2 Inc.: http://wso2.com/ Mobile: +94716429078 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Meeting Notes on EMM Carbon
Hi Kishanthan, After going through some points you have given during the discussion(e.g kernel patches) we could be able to resolve most of intermittent issues. Further I will look at the link you provided for default profiles. Thanks for your great help to make EMM server stable. On Wed, Apr 30, 2014 at 5:58 PM, Kishanthan Thangarajah kishant...@wso2.com wrote: carbon.core and carbon.runtime features are by default available with the default profile, so you don't have to explicitly define them with your product's p2 repo definition. But if you are going to use multiple-profiles in your product, then you will have to define them in the p2 repo creation phase and then add them to your specific profile. Refer this for example which does not use multi-profile and use only the default profile : https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/elb/2.1.0/modules/p2-profile/pom.xml On Tue, Apr 29, 2014 at 11:15 PM, Gayan Gunawardana ga...@wso2.comwrote: Hi Kishanthan, As per the discussion we had during the meeting can you specifically mention the carbon core features we should install into EMM server. We have seen org.wso2.carbon:org.wso2.carbon.core.feature:4.2.0 and org.wso2.carbon:org.wso2.carbon.core.runtime.feature:4.2.0 in most of other products but it differs sometimes. WDYT ? On Tue, Apr 29, 2014 at 10:47 PM, Chan duli...@wso2.com wrote: Hi folks, We had a meeting today with Kicha to sort out our EMM carbon related problems. Attendees - Mobile Team, SameeraP, Kicha. Below are points we discussed - - Finalize on the dependent product versions (specially APIM feature version and IS feature version) - Use .p2inf to copy feature related files - Use bin.xml to copy product related files - Get proper changes of files (axis2.xml) done by other teams to EMM - Not going to use Carbon Profiles since emm_service app is a deployment artifact Please add anything if I missed. Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* -- Gayan Gunawardana Software Engineer; WSO2 Inc.; http://wso2.com/ Email: ga...@wso2.com Mobile: +94 (71) 8020933 Blog: http://gayanj2ee.blogspot.com/ -- *Kishanthan Thangarajah* Senior Software Engineer, Platform Technologies Team, WSO2, Inc. lean.enterprise.middleware Mobile - +94773426635 Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com* Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan* -- Gayan Gunawardana Software Engineer; WSO2 Inc.; http://wso2.com/ Email: ga...@wso2.com Mobile: +94 (71) 8020933 Blog: http://gayanj2ee.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] API Gateway alters POST request URLs in API-Manager 1.7.0
I'm sure this has been done deliberately in synapse. If so we need to know why exactly. Will it break proxying SOAP 1.1 services if we allow these to be passed to the back-end? The defined standards for the Content-Type are as follows SOAP 1.1 - text/xml SOAP 1.2 - application/soap+xml POX - application/xml So naturally REST on XML would be application/xml. But AFAIK there's no specification saying its wrong to send text/xml to REST services. The REST service you are trying out with supports only text/xml and expects POX content. Which is a kind of a special case IMO. Thanks, NuwanD. On Thu, May 1, 2014 at 7:27 PM, Nirodha Pramod niro...@wso2.com wrote: Hi Nuwan, Isn't this a bug? When we tested this we used a RESTful service (starbucks sample) as the back end. And you can't expect the client would always send application/xml as the Content-Type when calling a rest backend. Sending a text/xml is totally valid when calling a RESTful backend. regards, Nirodha On Thu, May 1, 2014 at 12:35 PM, Nuwan Dias nuw...@wso2.com wrote: Its not that it alters request urls, it drops the request parameters from the outgoing request when the Content-Type is text/xml. If the API context is: /stockquote/1.0.0 Endpoint is: http://host:port/StockQuoteService Request url is: /stockquote/1.0.0/getQuote In the case of applcation/xml, the outgoing request is http://host:port /StockQuoteService/getQuote In the case of text/xml, the outgoing request is http://host:port /StockQuoteService As you see, in the case of text/xml, 'getQuote' is not sent to the back end. I presume this is the correct behavior since text/xml is normally used for SOAP? Thanks, NuwanD. On Thu, May 1, 2014 at 11:37 AM, Asanthi Kulasinghe asan...@wso2.comwrote: Hi, Context path of POST request URLs of APIs get dropped at the gateway when invoked with the content-type 'text/xml'. I have reported the issue under [1]. Please look into this. [1] - https://wso2.org/jira/browse/APIMANAGER-2256 Regards *Asanthi Kulasinghe* WSO2 Inc; http://www.wso2.com/. Mobile: +94777355522 -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Nirodha Gallage* Senior Software Engineer, QA. WSO2 Inc.: http://wso2.com/ Mobile: +94716429078 -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] WSO2 BAM 2.4.1 Final Pack Location
Hi all, BAM 2.4.1 has been released with chunk-09 and final pack is available at [1] Final pack was created from revision 201564 with tests and artifacts deployed to nexus from same revision. SVN tag [2] has been created for this release. [1] http://ec2-54-198-211-48.compute-1.amazonaws.com/chunk09/wso2bam-2.4.1.zip [2] https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk09/ Regards, Dunith Dhanushka, Senior Software Engineer - BAM, WSO2 Inc, Mobile - +94 71 8615744 Blog - dunithd.wordpress.com http://blog.dunith.com Twitter - @dunithd http://twitter.com/dunithd ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] WSO2 ESB Connector Store Icons
Hi Dushan, [1] contains the images you requested for the Connector Store. Amazon s3 and Survey Monkey icons are missing. I will upload those ones they are done. 1 - https://drive.google.com/a/wso2.com/folderview?id=0B_CCkDYHWyB9VGlJc0MzWnRpYkUusp=sharing#grid thanks, Chanaka -- Chanaka Jayasena Senior Software Engineer; WSO2, Inc.; http://wso2.com/ email: chan...@wso2.com; cell: +94 77 785 5565 blog: http://chanaka3d.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [UES] Embeding Gadgets into a web page
Hi Ruchira, Thanks that works. would you please explain what this URL is? I was under the impression that we should point to the server which is at http://localhost:9763/gagdet-test http://localhost:9763/portal. On Wed, Apr 30, 2014 at 11:44 PM, Ruchira Wageesha ruch...@wso2.com wrote: Your url should be http://privateIP:9763/*gadgets*/ifr?url=http:// privateIP:9763/gadget-test/gadget.xml /Ruchira On Thu, May 1, 2014 at 6:08 AM, Shani Ranasinghe sh...@wso2.com wrote: Hi, I have a gadget in the UES server at the location http://localhost:9763/gadget-test/gadget.xml. When I use this in the browser I can see the Gadget XML. The portal is started at UES Portal URL : http://localhost:9763/portal. And when I check the URL through the Management console of the UES the URL that it gives is http://private IP:9763/gadget-test. I have added the following lines to my webapp page, which is a java application and a .jsp page. iframe id=gadget-3 src=http://privateIP:9763/gadget-test/ifr?url=http:// privateIP:9763/gadget-test/gadget.xml /iframe I was not able to view the I frame in the page, and it prompted a 404 resource (http://private IP:9763/gadget-test/ifr) not found. Please note that the private IP's at instances are the same. -- Thanks and Regards *, Shani Ranasinghe* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 77 2273555 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab -- *Ruchira Wageesha**Associate Technical Lead* *WSO2 Inc. - lean . enterprise . middleware | wso2.com http://wso2.com* *email: ruch...@wso2.com ruch...@wso2.com, blog: ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com, mobile: +94 77 5493444 %2B94%2077%205493444* -- Thanks and Regards *,Shani Ranasinghe* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 77 2273555 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 ESB Connector Store Icons
Hi All, IMO we should not modify the backgroung color and layout outside what vendors(Third parties) are using. Eg: - Salesforce logo is in green color whereas standard is blue. Best Regards, Malaka On Fri, May 2, 2014 at 8:08 AM, Chanaka Jayasena chan...@wso2.com wrote: Hi Dushan, [1] contains the images you requested for the Connector Store. Amazon s3 and Survey Monkey icons are missing. I will upload those ones they are done. 1 - https://drive.google.com/a/wso2.com/folderview?id=0B_CCkDYHWyB9VGlJc0MzWnRpYkUusp=sharing#grid thanks, Chanaka -- Chanaka Jayasena Senior Software Engineer; WSO2, Inc.; http://wso2.com/ email: chan...@wso2.com; cell: +94 77 785 5565 blog: http://chanaka3d.blogspot.com ___ 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/http://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] GSOC-Automated test case generation tool for WSO2 products
HI maintha, I followed this http://wso2.com/library/95/ tutorial to generate client. I successfully come to the step 4. But in step 5 generated SimpleServiceStub.java not generate as appropriate(some code is missing). because when create Client get unknown syntax like Echo. Generated java class attached here. On Wed, Apr 30, 2014 at 10:44 AM, Dharshana Warusavitharana dharsha...@wso2.com wrote: Hi Rukshan, Did you try out the maven plugin. I think it would be easy for you and us this is believed you don't need python installed http://robotframework.org/MavenPlugin/ Thank You, Dharshana. On Wed, Apr 30, 2014 at 8:59 AM, Rukshan Chathuranga rcruksha...@gmail.com wrote: Hi krishantha, I followed the instruction to install the robot. Most of dependencies already had in the system and installation was success. but when installing ride, it give a warning to install wxPython 2.8 toolkit with Unicode support. Also it's doesn't work without wxPython. It suggest the installation guide by this link http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/. But it is hard to find the correct file to install. may be this one is not important now. if you already encountered this problem let me know how to install. Thanks. On Tue, Apr 29, 2014 at 10:39 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Selenium2Library API documentation - https://github.com/rtomac/robotframework-selenium2library Source - https://github.com/rtomac/robotframework-selenium2library Thanks, Krishantha. On Tue, Apr 29, 2014 at 10:33 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Robot framework installation on Linux 1. Install Python if doesn't exists in your machine - *easy_install pip* *pip install python* 2. Install Jyton (Optinal) *sudo apt-get install jython* 3. Install robot framework *pip install robotframework *OR* easy_install robotframework * 4. Install ride (The IDE for robot test case writing) *pip install robotframework-ride *OR *easy_install robotframework-ride* 5. Install Selenium2Library - Selenium implementation compatible with robot *pip install robotframework-selenium2library *OR* easy_install robotframework-selenium2library* Let me know if you find any difficulty with installation. Thanks, Krishantha. On Tue, Apr 29, 2014 at 10:23 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Rukshan, Some sample robot scripts are attached here with. Thanks, Krishantha. On Tue, Apr 29, 2014 at 10:17 PM, Malintha Adikari malin...@wso2.comwrote: adding 3. WSO2 Application Server Documentation[4] [4] https://docs.wso2.org/display/AS521/WSO2+Application+Server+Documentation On Tue, Apr 29, 2014 at 10:12 PM, Malintha Adikari malin...@wso2.com wrote: Hi Rukshan, Following resources would help you to understand the basics of required technologies. 1. Hello world with Axis2 web service [1] 2. Understanding WSDL files.[2], [3] [1]http://wso2.com/library/95/ [2]http://oreilly.com/catalog/webservess/chapter/ch06.html [3]http://predic8.com/wsdl-reading.htm Regards, Malintha Adikari On Tue, Apr 29, 2014 at 9:43 PM, Rukshan Chathuranga rcruksha...@gmail.com wrote: Hi, Could understand the ultimate objective of the project and stating points of the project. Feasibility of the keyword driven testing using Robot frame, should be evaluate in this week. Also to get understand about the Admin back-end services and WSDL experiment, is it possible to give the required resources and sample Test Script? Thanks and regards. On Mon, Apr 28, 2014 at 6:23 PM, Rukshan Chathuranga rcruksha...@gmail.com wrote: yeah i'm OK with the time and place. Thanks. On Mon, Apr 28, 2014 at 5:33 PM, Dharshana Warusavitharana dharsha...@wso2.com wrote: Hi Rukshan, How is your availability at 4.30 PM tomorrow. If you are ok with the time shall we schedule our discussion at that time at WSO2 office. Thank you, Dharshana. On Sun, Apr 27, 2014 at 5:33 PM, Rukshan Chathuranga rcruksha...@gmail.com wrote: Yes. Afternoon is possible. Thanks. On Sun, Apr 27, 2014 at 11:23 AM, Dharshana Warusavitharana dharsha...@wso2.com wrote: Sure Rukshan, How is your availability on afternoon sessions. I will discuss with the team and arrange a discussion. Meanwhile, if you need any clarifications please feel free to raise a mail. Thank You, Dharshana. On Sun, Apr 27, 2014 at 10:06 AM, Rukshan Chathuranga rcruksha...@gmail.com wrote: hi, These days i trying to understand my project architecture in deep. Also i am doing robot and NLP experiments to verify the feasibility. SO can we arrange a session to discuss more about this next week? thanks and regards. -- Department Of Computer Science Engineering, Faculty Of Engineering, University Of Moratuwa. Sri lanka. WEB: http://rukspot.com/ -- Dharshana Warusavitharana
Re: [Dev] Fixing Shutdown Errors WSO2 MB.
During testing I followed following steps. 1. create a topic subscriber 2. publish 1000 msgs 3. wait until the subscriber get 1000 messages and close 4. now underneath MB will still be leisurely deleting the content of removed messages (with timeouts etc) 5. I shutdown the broker by Ctrl+c 6. Now with my above fixes it will delete all records that needs to be deleted before shutting down. I can see when the code is at step 6 MB is saying cassandra is down. Thus before returning from the Close() of message store (hence before returning from deactivte of andes service), cassandra service get disappeared. It boils down to an OSGI problem. @Shameera, I have the dependency to the cassandra bundle as you have suggested in the andes bundle. But seems there is a problem still. Any idea why that happens? On Thu, May 1, 2014 at 10:56 AM, Hasitha Hiranya hasit...@wso2.com wrote: Hi, Also in order to stop connection to Cassandra gracefully, we need to do following. cluster.getConnectionManager().shutdown(); Thanks On Thu, May 1, 2014 at 10:52 AM, Hasitha Hiranya hasit...@wso2.comwrote: Hi, I intend to cleanup graceful shutdown code of WSO2 Message Broker in following way. We have to do them as a part of fixing shutdown errors. We have managed to keep Cassandra until broker service shutdown properly in OSGI env, but we see problems due to lack of these. 1. When shutting down we have to flush all pubSubMessageContentRemoverTasks, meaning we have to delete all acked messages for topics, otherwise they will never be removed again (After shutting down memory is gone). Concern is we have to wait for timeout for those messages to happen, which will cause shutting down of MB on hold untill all messages are timed out. For now MB will shut down hoping some other node will clear them up. 2. Above argument goes with content removal tasks as well. Merely stopping deletion thread will not help. 3. above two tasks should be done AFTER stopping queue/topic flusher threads. 4. When shutting down we have to clear in-memory message status (for message count to be correct). 5. We have to copy back NQ messages back to GQ. 6. Flush message counts. @pamod, You have a fix to flush the message count before shutdown (As we update it per message chunks). Is it committed? If so, where is the code? It should come as point 6. Apart from point 6 have have done other. Testing now. Thanks -- *Hasitha Abeykoon* Software Engineer; WSO2, Inc.; http://wso2.com *cell:* *+94 719363063* *blog: **abeykoon.blogspot.com* http://abeykoon.blogspot.com -- *Hasitha Abeykoon* Software Engineer; WSO2, Inc.; http://wso2.com *cell:* *+94 719363063* *blog: **abeykoon.blogspot.com* http://abeykoon.blogspot.com -- *Hasitha Abeykoon* Senior Software Engineer; WSO2, Inc.; http://wso2.com *cell:* *+94 719363063* *blog: **abeykoon.blogspot.com* http://abeykoon.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Fixing Shutdown Errors WSO2 MB.
Hi HasithaH, Shall we try with log messages to identify service deactivation and bundle undeployment order of andes and cassandra ? Thanks, Shameera. On Fri, May 2, 2014 at 9:18 AM, Hasitha Hiranya hasit...@wso2.com wrote: During testing I followed following steps. 1. create a topic subscriber 2. publish 1000 msgs 3. wait until the subscriber get 1000 messages and close 4. now underneath MB will still be leisurely deleting the content of removed messages (with timeouts etc) 5. I shutdown the broker by Ctrl+c 6. Now with my above fixes it will delete all records that needs to be deleted before shutting down. I can see when the code is at step 6 MB is saying cassandra is down. Thus before returning from the Close() of message store (hence before returning from deactivte of andes service), cassandra service get disappeared. It boils down to an OSGI problem. @Shameera, I have the dependency to the cassandra bundle as you have suggested in the andes bundle. But seems there is a problem still. Any idea why that happens? On Thu, May 1, 2014 at 10:56 AM, Hasitha Hiranya hasit...@wso2.comwrote: Hi, Also in order to stop connection to Cassandra gracefully, we need to do following. cluster.getConnectionManager().shutdown(); Thanks On Thu, May 1, 2014 at 10:52 AM, Hasitha Hiranya hasit...@wso2.comwrote: Hi, I intend to cleanup graceful shutdown code of WSO2 Message Broker in following way. We have to do them as a part of fixing shutdown errors. We have managed to keep Cassandra until broker service shutdown properly in OSGI env, but we see problems due to lack of these. 1. When shutting down we have to flush all pubSubMessageContentRemoverTasks, meaning we have to delete all acked messages for topics, otherwise they will never be removed again (After shutting down memory is gone). Concern is we have to wait for timeout for those messages to happen, which will cause shutting down of MB on hold untill all messages are timed out. For now MB will shut down hoping some other node will clear them up. 2. Above argument goes with content removal tasks as well. Merely stopping deletion thread will not help. 3. above two tasks should be done AFTER stopping queue/topic flusher threads. 4. When shutting down we have to clear in-memory message status (for message count to be correct). 5. We have to copy back NQ messages back to GQ. 6. Flush message counts. @pamod, You have a fix to flush the message count before shutdown (As we update it per message chunks). Is it committed? If so, where is the code? It should come as point 6. Apart from point 6 have have done other. Testing now. Thanks -- *Hasitha Abeykoon* Software Engineer; WSO2, Inc.; http://wso2.com *cell:* *+94 719363063* *blog: **abeykoon.blogspot.com* http://abeykoon.blogspot.com -- *Hasitha Abeykoon* Software Engineer; WSO2, Inc.; http://wso2.com *cell:* *+94 719363063* *blog: **abeykoon.blogspot.com* http://abeykoon.blogspot.com -- *Hasitha Abeykoon* Senior Software Engineer; WSO2, Inc.; http://wso2.com *cell:* *+94 719363063* *blog: **abeykoon.blogspot.com* http://abeykoon.blogspot.com -- *Software Engineer - WSO2 Inc.* *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org shame...@apache.org* *phone: +9471 922 1454 %2B9471%20922%201454* *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561 *Twitter : *https://twitter.com/Shameera_R ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Help
Hi, Appreciate your interest in WSO2 products. From WSO2 Carbon platform 4.0.0 release onwards we have dropped the official support for hosting WSO2 products on third party containers. Thus we do not have a write-up or reference on how to run WSO2 products in JBoss container. Please note that we highly encourage you to use a public mailing list [1] such as dev@wso2.org or Stack Overflow [2] to raise your questions since those channels have wider audience, hence the chance of better response time and quality. If you have any specific reason for running WSO2 BPS inside Jboss, please raise your concern through public mailing list. If you have further concerns you can reach WSO2 through contacts [3]. Hope above information will help. [1] http://wso2.org/mail [2] http://stackoverflow.com/ [3] http://wso2.com/contact/ Regards, Pavithra On Thu, May 1, 2014 at 1:00 AM, gorran...@or-tek.net wrote: Hello, I am a consultant working on a POC and would love to use WSO2 as BPEL process server. I am trying to install version 3.2.0 under Jboss 7.1.1 and have followed the instructions you posted here http://wso2.com/library/knowledge-base/2011/01/deploying-wso2-bps-202-jboss-510-1 / But there seems to be an issue and I keep getting a HTTP 404 resource not available error. Do you think you can guide me to find what is the error? I appreciate your help, -- *Pavithra Madurangi* Senior Software Engineer - QA. WSO2 Inc.: http://wso2.com/ Mobile: +94777207357 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 BAM 2.4.1 Final Pack Location
Thank you all for releasing the product as planned. There was exceptional commitment from all members to get this in place and all worked very hard continuously for two days without any break to make this happen. Again a special thank you goes to Depp, Tayalan, Pandula, Shavantha and all of BAM team for the hard work. Regards, Jaminda On Fri, May 2, 2014 at 12:11 AM, Dunith Dhanushka dun...@wso2.com wrote: Hi all, BAM 2.4.1 has been released with chunk-09 and final pack is available at [1] Final pack was created from revision 201564 with tests and artifacts deployed to nexus from same revision. SVN tag [2] has been created for this release. [1] http://ec2-54-198-211-48.compute-1.amazonaws.com/chunk09/wso2bam-2.4.1.zip [2] https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk09/ Regards, Dunith Dhanushka, Senior Software Engineer - BAM, WSO2 Inc, Mobile - +94 71 8615744 Blog - dunithd.wordpress.com http://blog.dunith.com Twitter - @dunithd http://twitter.com/dunithd -- Jaminda Batuwangala, Director of Engineering; WSO2, Inc.; http://wso2.com/ email: jami...@wso2.com sanj...@wso2.com; cell: +94 77 308 2174 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Fixing Shutdown Errors WSO2 MB.
Hi Shameera, I have added logs and tested. Full Log is attached at ( https://drive.google.com/a/wso2.com/file/d/0B57HoxWKqqNnN2FPRE9FeC0yYXM/edit?usp=sharing). Deactivate of andes service is like follows. protected void deactivate(ComponentContext ctx) { // Unregister QpidService System.out.println(+++Started deactivating andes); System.out.println(Unregistering qpid service); try { if (null != qpidService) { qpidService.unregister(); } } catch (Exception e) {} System.out.println(+Unregistered qpidService); // Shutdown the Qpid broker System.out.println(+Shutting down andes); ApplicationRegistry.remove(); System.out.println(+++done shutting down andes); System.out.println(+++done deactivating of andes component); } +++Started deactivating andes Unregistering qpid service +Unregistered qpidService +Shutting down andes +++done shutting down andes +++done deactivating of andes component started deactivating cassandra ++done deactivating cassandra I have a doubt like is it correct to unregister qpidService before actually shutting down the broker? Then I changed the code swapping the order. protected void deactivate(ComponentContext ctx) { // Unregister QpidService // Shutdown the Qpid broker ApplicationRegistry.remove(); try { if (null != qpidService) { qpidService.unregister(); } } catch (Exception e) {} } Still errors happened. Order was as follows. +++Started deactivating andes +shutting down andes +++done shutting down andes unregistering qpidservice +Unregistered qpidService +++done deactivating of andes component started deactivating cassandra ++done deactivating cassandra Pom file has cassandra as a dependency. Import-Package org.apache.axis2.*; version=${axis2.osgi.version.range.qpid}, org.apache.axiom.*; version=${axiom.osgi.version.range.qpid}, org.wso2.carbon.andes.authentication.service, org.wso2.carbon.andes.commons, org.wso2.carbon.andes.commons.registry, * org.wso2.carbon.cassandra.server; version=4.2.2,* *;resolution:=optional /Import-Package What is going wrong? Thanks On Fri, May 2, 2014 at 9:33 AM, Shameera Rathnayaka shame...@wso2.comwrote: Hi HasithaH, Shall we try with log messages to identify service deactivation and bundle undeployment order of andes and cassandra ? Thanks, Shameera. On Fri, May 2, 2014 at 9:18 AM, Hasitha Hiranya hasit...@wso2.com wrote: During testing I followed following steps. 1. create a topic subscriber 2. publish 1000 msgs 3. wait until the subscriber get 1000 messages and close 4. now underneath MB will still be leisurely deleting the content of removed messages (with timeouts etc) 5. I shutdown the broker by Ctrl+c 6. Now with my above fixes it will delete all records that needs to be deleted before shutting down. I can see when the code is at step 6 MB is saying cassandra is down. Thus before returning from the Close() of message store (hence before returning from deactivte of andes service), cassandra service get disappeared. It boils down to an OSGI problem. @Shameera, I have the dependency to the cassandra bundle as you have suggested in the andes bundle. But seems there is a problem still. Any idea why that happens? On Thu, May 1, 2014 at 10:56 AM, Hasitha Hiranya hasit...@wso2.comwrote: Hi, Also in order to stop connection to Cassandra gracefully, we need to do following. cluster.getConnectionManager().shutdown(); Thanks On Thu, May 1, 2014 at 10:52 AM, Hasitha Hiranya hasit...@wso2.comwrote: Hi, I intend to cleanup graceful shutdown code of WSO2 Message Broker in following way. We have to do them as a part of fixing shutdown errors. We have managed to keep Cassandra until broker service shutdown properly in OSGI env, but we see problems due to lack of these. 1. When shutting down we have to flush all pubSubMessageContentRemoverTasks, meaning we have to delete all acked messages for topics, otherwise they will never be removed again (After shutting down memory is gone). Concern is we have to wait for timeout for those messages to happen, which will cause shutting down of MB on hold untill all messages are timed out. For now MB will shut down hoping some other node will clear them up. 2. Above argument goes with content
[Dev] AS samples - JAX-RS Content Negotiation
Dear all, In the AS docs, JAX-RS Content Negotiation sample ( https://docs.wso2.org/display/AS521/JAX-RS+Sample+on+Content+Negotiation), an HTTP GET request is being sent to the service with an ACCEPT header set to 'application/xml' or 'application/json', and the response is given in the format specified. I wonder how this 'accept header' is processed? I couldn't find any reference to the accept header in the CustomerService.java file. if it is not handled from the service, how is this processed? (there is some reference to CXF, and I wonder how CXF come into the picture here?) Thank you in advance. Rgds -- *Niranda Perera* Software Engineer, WSO2 Inc. Mobile: +94-71-554-8430 Twitter: @n1r44 https://twitter.com/N1R44 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Usage of internal and Export-Package in AM components
Hi Ruwan, On Thu, May 1, 2014 at 9:48 PM, Ruwan Yatawara ruw...@wso2.com wrote: Hi Ajith, I've done the necessary changes to remove the impl.internal references. Can you please apply the attached patch as it seems I don't have access to the carbon-apimgt component for some reason (ERROR: Permission to wso2/carbon-apimgt.git denied to ruwany.) All the tests ran successfully. Do let me know if you encounter further issues. @Kishanthan, thanks for the insight, I've done the fix accordingly. Thanks for providing this patch. But I also can't apply due to set of conflicts. -Ajith. Thanks and Regards, Ruwan Yatawara WSO2 Inc. email : ruw...@wso2.com mobile : +94 77 9110413 blog : http://thoughts.ruwan-ace.com/ www: :http://wso2.com On Tue, Apr 29, 2014 at 9:38 PM, Kishanthan Thangarajah kishant...@wso2.com wrote: On Tue, Apr 29, 2014 at 6:08 PM, Sanjeewa Malalgoda sanje...@wso2.comwrote: On Tue, Apr 29, 2014 at 6:06 PM, Ajith Vitharana aji...@wso2.comwrote: Sanjeewa, On Tue, Apr 29, 2014 at 5:54 PM, Sanjeewa Malalgoda sanje...@wso2.com wrote: On Tue, Apr 29, 2014 at 5:11 PM, Ajith Vitharana aji...@wso2.comwrote: Hi All, The org.wso2.carbon.apimgt.impl has defined the org.wso2.carbon.apimgt.impl.internal package as a Private-Package [1] but there are some usage inside the other bundles. org.wso2.carbon.apimgt.hostobjects, org.wso2.carbon.apimgt.usage, org.wso2.carbon.apimgt.keymgt ..etc Private-Package * org.wso2.carbon.apimgt.impl.internal* /Private-Package Export-Package *!org.wso2.carbon.apimgt.impl.internal.APIManagerComponent,* org.wso2.carbon.apimgt.impl.*, /Export-Package We are getting following build failure due to the above wrong usage. And why do we have export(not -!) *class* instead of package ? Here we need to expose only ServiceReferenceHolder to other packages to get configs and etc. And we do not need to expose APIManagerComponent to outside. So lets proceed accordingly. Anyway we didn't got any build failures in builder machine. How it effect here? If you need to expose the ServiceReferenceHolder class to out side, that class should NOT be inside the internal package, because we don't expose internal package to outside. AFAIK you can only the export(or not) the packages , NOT classes. Yes that is exactly what i meant. Ideal solution would be taking ServiceReferenceHolder class to outside from internal package. This is wrong. First, you can only export packages from OSGi bundles, not classes. Also what is the purpose of exposing ServiceHolder outside of a bundle? ServiceReferenceHolder (which stores OSGi service reference objects) should only be used within the bundle and should not be exposed outside. That is why we, as practice, put them under internal package structure and make them private. If you want to use the service references in another bundle, you have to use the same approach with DS components and service reference holders. Thanks, sanjeewa. -Ajith. Thanks, sanjeewa. [1] https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/apimgt/org.wso2.carbon.apimgt.impl/1.2.2/pom.xml Installation failed. Cannot complete the install because one or more required items could not be found. Software being installed: WSO2 Carbon - API Store Feature 4.3.0.SNAPSHOT (org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT) Missing requirement: org.wso2.carbon.apimgt.hostobjects 4.3.0.SNAPSHOT (org.wso2.carbon.apimgt.hostobjects 4.3.0.SNAPSHOT) requires 'package org.wso2.carbon.apimgt.impl.internal 0.0.0' but it could not be found Cannot satisfy dependency: From: WSO2 Carbon - API Store Feature 4.3.0.SNAPSHOT (org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT) To: org.wso2.carbon.apimgt.hostobjects [4.3.0.SNAPSHOT] Application failed, log file location: /home/ajith/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1398770292994.log -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/http://sanjeewamalalgoda.blogspot.com/ -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +94772217350 -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/http://sanjeewamalalgoda.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Kishanthan Thangarajah* Senior Software Engineer, Platform Technologies Team, WSO2, Inc. lean.enterprise.middleware Mobile - +94773426635 Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com* Twitter -
[Dev] Research - Unfamiliar Configurations Came From Qpid to WSO2 MB
Hi Team, This is a try to resolve https://wso2.org/jira/browse/MB-407. I did a search to find out what are the unfamiliar configurations in andes-config.xml file. We need to know them, test if they work, consider if they are valid, remove if not relevant (specially the highlighted ones). @Prabath, *I also saw a config for OOM controlling. Please note. * Below are the findings. == Extended Configuration through config.xml == The config.xml contains the extended configuration information associated with the Qpid Java Broker. === The JMX Management Console Configuration === The management console configuration can be setup by editing the management child element of the broker configuration. The available options are: 1. enabled 2. jmxport 3. security-enabled Setting enabled to true will enable the JMX Management Console support. And, changing the jmxport will make it possible to connect using a different port. Setting the security-enabled option to true will make it possible to use SASL Authentication. Advanced security configuration is made effective once the security-enabled is set to true. Further customization is explained in the Security Configuration section below. === Connector Configuration === The connetor configuration element manages connections to/from the Java Broker. Among the various options available are: 1. ssl 2. qpidnio 3. protectio 4. bind 5. port 6. sslport 7. socketReceiveBuffer 8. socketSendBuffer 9. processors 10. tcpNoDelay The ssl and *protecio* elements are discussed below. The port corresponds to the port in which the non-secure Java Broker runs. The *sslport* corresponds to the port in which the secure Java Broker runs. The *socketReceiveBuffer* and the *socketSendBuffer* sizes (in bytes) are configured using the respective elements. Setting *qpidnio* to true will setup a multithreaded MINA socket acceptor that will make an attempt to boost the performance by simultaneously allowing reading from and writing to a socket. Processors represent the the number of SocketProcessors you wish to create. And, *bind* represents the ip-address to bind to. In addition to that, you can enable TCP NoDelay by setting *tcpNoDelay* to true'. Please note that the element transport is no longer used. SSL Configuration The SSL configuration can be setup by editing the connector child element's ssl child. The available options are: 1. enabled 2. sslOnly 3. keystorePath 4. keystorePassword The enabled option controls whether SSL is enabled or not. Setting this to true will enable SSL support. The sslOnly option will decide whether SSL will operate in parallel with non-SSL ports or not. The remaining options are on setting up an SSL keystore. Please note that the keystore password is seen in clear text in the config.xml. Do take necessary precautions when setting this option. Protect I/O Configuration *This feature is meant for the protection of the Java Broker from running out of* *memory due to runnaway clients or non-responsive clients*. The protection is achieved by limiting the data written to or read from a pending queue. The enabled option controls whether I/O protection is in place or not. To enable, set the enabled element's value to true. === Security Configuration === There are various sub sections under the security configuration, which are: 1. principal-databases 2. access 3. jmx More on principal-databases and jmx are discussed below. The access element is used to set the ACLPlugin implementation which is capable of controlling access. This can be set through the class element. Principal Databases The *principal-databases* section contains definitions of principal databases. An example of a principal database is a set of Base64 encoded MD5 hashes, which is stored on a file, which can be used for authentication via the CRAM-MD5-Hashed SASL authentication mechanism. *(We have put org.wso2.carbon.andes.authentication.andes.CarbonBasedPrincipalDatabase here. I am not aware what it is??)* Among various options a principal-database configuration posses are: 1. name 2. class 3. attributes The name of the resource is identified by name. The class is the Java class capable of handling the resource. The attribute passwordFile will have a value of which is the path to the password database file. An example password database file is ../etc/passwd, which contains plain-text password. More information on this section can be found online at, http://cwiki.apache.org/qpid/qpid-design-authentication.html JMX Security Configuration The *JMX Security* configuration is used to specify the access restrictions, which is written on a file (../etc/jmxremote.access is an example). The path to this file is specified in access. The principal-database to be used can also be configured. Among the available options are: 1. access 2. principal-database === Virtual Host Configuration === The virtual hosts are configured through the
Re: [Dev] Fixing Shutdown Errors WSO2 MB.
Hi HasithaH, In the shutdown logs i could see following line, before start andes deactivation, what does actually mean? does it stop cassandra transport listener? [2014-05-02 10:12:19,021] INFO {org.apache.cassandra.transport.Server} - Stop listening for CQL clients On Fri, May 2, 2014 at 10:26 AM, Hasitha Hiranya hasit...@wso2.com wrote: Hi Shameera, I have added logs and tested. Full Log is attached at ( https://drive.google.com/a/wso2.com/file/d/0B57HoxWKqqNnN2FPRE9FeC0yYXM/edit?usp=sharing). Deactivate of andes service is like follows. protected void deactivate(ComponentContext ctx) { // Unregister QpidService System.out.println(+++Started deactivating andes); System.out.println(Unregistering qpid service); try { if (null != qpidService) { qpidService.unregister(); } } catch (Exception e) {} System.out.println(+Unregistered qpidService); // Shutdown the Qpid broker System.out.println(+Shutting down andes); ApplicationRegistry.remove(); System.out.println(+++done shutting down andes); System.out.println(+++done deactivating of andes component); } +++Started deactivating andes Unregistering qpid service +Unregistered qpidService +Shutting down andes +++done shutting down andes +++done deactivating of andes component started deactivating cassandra ++done deactivating cassandra I have a doubt like is it correct to unregister qpidService before actually shutting down the broker? Then I changed the code swapping the order. protected void deactivate(ComponentContext ctx) { // Unregister QpidService // Shutdown the Qpid broker ApplicationRegistry.remove(); try { if (null != qpidService) { qpidService.unregister(); } } catch (Exception e) {} } Still errors happened. Order was as follows. +++Started deactivating andes +shutting down andes +++done shutting down andes unregistering qpidservice +Unregistered qpidService +++done deactivating of andes component started deactivating cassandra ++done deactivating cassandra Pom file has cassandra as a dependency. Import-Package org.apache.axis2.*; version=${axis2.osgi.version.range.qpid}, org.apache.axiom.*; version=${axiom.osgi.version.range.qpid}, org.wso2.carbon.andes.authentication.service, org.wso2.carbon.andes.commons, org.wso2.carbon.andes.commons.registry, * org.wso2.carbon.cassandra.server; version=4.2.2,* *;resolution:=optional /Import-Package What is going wrong? Thanks On Fri, May 2, 2014 at 9:33 AM, Shameera Rathnayaka shame...@wso2.comwrote: Hi HasithaH, Shall we try with log messages to identify service deactivation and bundle undeployment order of andes and cassandra ? Thanks, Shameera. On Fri, May 2, 2014 at 9:18 AM, Hasitha Hiranya hasit...@wso2.comwrote: During testing I followed following steps. 1. create a topic subscriber 2. publish 1000 msgs 3. wait until the subscriber get 1000 messages and close 4. now underneath MB will still be leisurely deleting the content of removed messages (with timeouts etc) 5. I shutdown the broker by Ctrl+c 6. Now with my above fixes it will delete all records that needs to be deleted before shutting down. I can see when the code is at step 6 MB is saying cassandra is down. Thus before returning from the Close() of message store (hence before returning from deactivte of andes service), cassandra service get disappeared. It boils down to an OSGI problem. @Shameera, I have the dependency to the cassandra bundle as you have suggested in the andes bundle. But seems there is a problem still. Any idea why that happens? On Thu, May 1, 2014 at 10:56 AM, Hasitha Hiranya hasit...@wso2.comwrote: Hi, Also in order to stop connection to Cassandra gracefully, we need to do following. cluster.getConnectionManager().shutdown(); Thanks On Thu, May 1, 2014 at 10:52 AM, Hasitha Hiranya hasit...@wso2.comwrote: Hi, I intend to cleanup graceful shutdown code of WSO2 Message Broker in following way. We have to do them as a part of fixing shutdown errors. We have managed to keep Cassandra until broker service shutdown properly in OSGI env, but we see problems due to lack of these. 1. When shutting down we have to flush all
Re: [Dev] Fixing Shutdown Errors WSO2 MB.
Hi Shameera, Good catch. [2014-05-02 10:12:19,015] INFO {org.wso2.carbon.core.ServerManagement} - Stopped all transport listeners [2014-05-02 10:12:19,015] INFO {org.wso2.carbon.core.ServerManagement} - Waiting for request service completion... [2014-05-02 10:12:19,019] INFO {org.wso2.carbon.core.ServerManagement} - All requests have been served. [2014-05-02 10:12:19,019] INFO {org.wso2.carbon.core.ServerManagement} - Waiting for deployment completion... [2014-05-02 10:12:19,021] INFO {org.apache.cassandra.transport.Server} - Stop listening for CQL clients What happens when all transport listeners are stopped? Stop listening for CQL clients means cassandra will no longer will accept requests from a cql client. Most probably same goes with Hector (Thrift) also. That might cause these issues. Thanks On Fri, May 2, 2014 at 11:12 AM, Shameera Rathnayaka shame...@wso2.comwrote: Hi HasithaH, In the shutdown logs i could see following line, before start andes deactivation, what does actually mean? does it stop cassandra transport listener? [2014-05-02 10:12:19,021] INFO {org.apache.cassandra.transport.Server} - Stop listening for CQL clients On Fri, May 2, 2014 at 10:26 AM, Hasitha Hiranya hasit...@wso2.comwrote: Hi Shameera, I have added logs and tested. Full Log is attached at ( https://drive.google.com/a/wso2.com/file/d/0B57HoxWKqqNnN2FPRE9FeC0yYXM/edit?usp=sharing). Deactivate of andes service is like follows. protected void deactivate(ComponentContext ctx) { // Unregister QpidService System.out.println(+++Started deactivating andes); System.out.println(Unregistering qpid service); try { if (null != qpidService) { qpidService.unregister(); } } catch (Exception e) {} System.out.println(+Unregistered qpidService); // Shutdown the Qpid broker System.out.println(+Shutting down andes); ApplicationRegistry.remove(); System.out.println(+++done shutting down andes); System.out.println(+++done deactivating of andes component); } +++Started deactivating andes Unregistering qpid service +Unregistered qpidService +Shutting down andes +++done shutting down andes +++done deactivating of andes component started deactivating cassandra ++done deactivating cassandra I have a doubt like is it correct to unregister qpidService before actually shutting down the broker? Then I changed the code swapping the order. protected void deactivate(ComponentContext ctx) { // Unregister QpidService // Shutdown the Qpid broker ApplicationRegistry.remove(); try { if (null != qpidService) { qpidService.unregister(); } } catch (Exception e) {} } Still errors happened. Order was as follows. +++Started deactivating andes +shutting down andes +++done shutting down andes unregistering qpidservice +Unregistered qpidService +++done deactivating of andes component started deactivating cassandra ++done deactivating cassandra Pom file has cassandra as a dependency. Import-Package org.apache.axis2.*; version=${axis2.osgi.version.range.qpid}, org.apache.axiom.*; version=${axiom.osgi.version.range.qpid}, org.wso2.carbon.andes.authentication.service, org.wso2.carbon.andes.commons, org.wso2.carbon.andes.commons.registry, * org.wso2.carbon.cassandra.server; version=4.2.2,* *;resolution:=optional /Import-Package What is going wrong? Thanks On Fri, May 2, 2014 at 9:33 AM, Shameera Rathnayaka shame...@wso2.comwrote: Hi HasithaH, Shall we try with log messages to identify service deactivation and bundle undeployment order of andes and cassandra ? Thanks, Shameera. On Fri, May 2, 2014 at 9:18 AM, Hasitha Hiranya hasit...@wso2.comwrote: During testing I followed following steps. 1. create a topic subscriber 2. publish 1000 msgs 3. wait until the subscriber get 1000 messages and close 4. now underneath MB will still be leisurely deleting the content of removed messages (with timeouts etc) 5. I shutdown the broker by Ctrl+c 6. Now with my above fixes it will delete all records that needs to be deleted before shutting down. I can see when the code is at step 6 MB is saying cassandra is down. Thus before returning from the Close() of message store (hence before returning from
Re: [Dev] Fixing Shutdown Errors WSO2 MB.
Looping in PrabathA. On Fri, May 2, 2014 at 11:18 AM, Hasitha Hiranya hasit...@wso2.com wrote: Hi Shameera, Good catch. [2014-05-02 10:12:19,015] INFO {org.wso2.carbon.core.ServerManagement} - Stopped all transport listeners [2014-05-02 10:12:19,015] INFO {org.wso2.carbon.core.ServerManagement} - Waiting for request service completion... [2014-05-02 10:12:19,019] INFO {org.wso2.carbon.core.ServerManagement} - All requests have been served. [2014-05-02 10:12:19,019] INFO {org.wso2.carbon.core.ServerManagement} - Waiting for deployment completion... [2014-05-02 10:12:19,021] INFO {org.apache.cassandra.transport.Server} - Stop listening for CQL clients What happens when all transport listeners are stopped? Stop listening for CQL clients means cassandra will no longer will accept requests from a cql client. Most probably same goes with Hector (Thrift) also. That might cause these issues. Thanks On Fri, May 2, 2014 at 11:12 AM, Shameera Rathnayaka shame...@wso2.comwrote: Hi HasithaH, In the shutdown logs i could see following line, before start andes deactivation, what does actually mean? does it stop cassandra transport listener? [2014-05-02 10:12:19,021] INFO {org.apache.cassandra.transport.Server} - Stop listening for CQL clients On Fri, May 2, 2014 at 10:26 AM, Hasitha Hiranya hasit...@wso2.comwrote: Hi Shameera, I have added logs and tested. Full Log is attached at ( https://drive.google.com/a/wso2.com/file/d/0B57HoxWKqqNnN2FPRE9FeC0yYXM/edit?usp=sharing). Deactivate of andes service is like follows. protected void deactivate(ComponentContext ctx) { // Unregister QpidService System.out.println(+++Started deactivating andes); System.out.println(Unregistering qpid service); try { if (null != qpidService) { qpidService.unregister(); } } catch (Exception e) {} System.out.println(+Unregistered qpidService); // Shutdown the Qpid broker System.out.println(+Shutting down andes); ApplicationRegistry.remove(); System.out.println(+++done shutting down andes); System.out.println(+++done deactivating of andes component); } +++Started deactivating andes Unregistering qpid service +Unregistered qpidService +Shutting down andes +++done shutting down andes +++done deactivating of andes component started deactivating cassandra ++done deactivating cassandra I have a doubt like is it correct to unregister qpidService before actually shutting down the broker? Then I changed the code swapping the order. protected void deactivate(ComponentContext ctx) { // Unregister QpidService // Shutdown the Qpid broker ApplicationRegistry.remove(); try { if (null != qpidService) { qpidService.unregister(); } } catch (Exception e) {} } Still errors happened. Order was as follows. +++Started deactivating andes +shutting down andes +++done shutting down andes unregistering qpidservice +Unregistered qpidService +++done deactivating of andes component started deactivating cassandra ++done deactivating cassandra Pom file has cassandra as a dependency. Import-Package org.apache.axis2.*; version=${axis2.osgi.version.range.qpid}, org.apache.axiom.*; version=${axiom.osgi.version.range.qpid}, org.wso2.carbon.andes.authentication.service, org.wso2.carbon.andes.commons, org.wso2.carbon.andes.commons.registry, * org.wso2.carbon.cassandra.server; version=4.2.2,* *;resolution:=optional /Import-Package What is going wrong? Thanks On Fri, May 2, 2014 at 9:33 AM, Shameera Rathnayaka shame...@wso2.comwrote: Hi HasithaH, Shall we try with log messages to identify service deactivation and bundle undeployment order of andes and cassandra ? Thanks, Shameera. On Fri, May 2, 2014 at 9:18 AM, Hasitha Hiranya hasit...@wso2.comwrote: During testing I followed following steps. 1. create a topic subscriber 2. publish 1000 msgs 3. wait until the subscriber get 1000 messages and close 4. now underneath MB will still be leisurely deleting the content of removed messages (with timeouts etc) 5. I shutdown the broker by Ctrl+c 6. Now with my above fixes it will delete all records that needs to be deleted before shutting down. I can see when the code is at step 6 MB is
[Dev] [GIT]G-Reg 5 startup error due to Identity components.
Hi All, I'm getting following error. The exception doesn't say the file name :) , So we need to open the code and find the file name. it is thrift-authentication.xml, where this file should go and what is the feature should copy this to distribution ? [2014-05-02 11:02:34,621] ERROR {org.wso2.carbon.identity.thrift.authentication.internal.ThriftAuthenticationServiceComponent} - Error in starting Thrift Authentication Service org.wso2.carbon.base.ServerConfigurationException: Error while loading Identity Configurations at org.wso2.carbon.identity.thrift.authentication.internal.util.ThriftAuthenticationConfigParser.init(ThriftAuthenticationConfigParser.java:54) at org.wso2.carbon.identity.thrift.authentication.internal.util.ThriftAuthenticationConfigParser.getInstance(ThriftAuthenticationConfigParser.java:62) at org.wso2.carbon.identity.thrift.authentication.internal.ThriftAuthenticationServiceComponent.startThriftTcpAuthenticatorService(ThriftAuthenticationServiceComponent.java:203) at org.wso2.carbon.identity.thrift.authentication.internal.ThriftAuthenticationServiceComponent.startThriftServices(ThriftAuthenticationServiceComponent.java:167) at org.wso2.carbon.identity.thrift.authentication.internal.ThriftAuthenticationServiceComponent.activate(ThriftAuthenticationServiceComponent.java:108) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451) at org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:517) at org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219) at org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:77) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) at
Re: [Dev] [C5] Expose a RESTful service in Carbon Kernel 5
Hi kishanthan/devs, I believe we already have the first cut implementation of that. If so shall we do a quick review. I want to see the capabilities it has right now vs things what we need... thanks On Wed, Apr 30, 2014 at 9:02 PM, Aruna Karunarathna ar...@wso2.com wrote: Thanks Kishanthan. On Wed, Apr 30, 2014 at 5:40 PM, Kishanthan Thangarajah kishant...@wso2.com wrote: Not with the latest milestone. The plan is to include this for the next milestone (a light weight RESTful admin services framework). On Wed, Apr 30, 2014 at 12:46 PM, Aruna Karunarathna ar...@wso2.comwrote: Hi all, Can we do the $subject with the current latest milestone release? Regards, -- * Aruna Sujith Karunarathna* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 9040362 | Work: +94 112145345 Email: ar...@wso2.com | Web: www.wso2.com -- *Kishanthan Thangarajah* Senior Software Engineer, Platform Technologies Team, WSO2, Inc. lean.enterprise.middleware Mobile - +94773426635 Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com* Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan* -- * Aruna Sujith Karunarathna* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 9040362 | Work: +94 112145345 Email: ar...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Pradeep Fernando* Associate Technical Lead;WSO2 Inc.; http://wso2.com blog: http://pradeepfernando.blogspot.com m: +94776603662 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev