Re: [Dev] [puppet-common] Setup puppet environment for specific product version

2016-09-23 Thread Imesh Gunaratne
Great work Vishanth! This will be really useful when we release multiple versions of product puppet modules. Maybe we can update the root README.md file with this information. Thanks On Fri, Sep 23, 2016 at 2:31 PM, Vishanth Balasubramaniam < vishan...@wso2.com> wrote: > Hi, > > Now you can

[Dev] WSO2 Data Services Server 3.5.1 Released !

2016-09-23 Thread Manuri Amaya Perera
​*WSO2 Data Services Server 3.5.1 Released !* ​ WSO2 Data Services Server Team is pleased to announce the WSO2 Data Services Server 3.5.1 release. The WSO2 Data Services Server is an extremely simple and elegant mechanism to take data and make it available as a set of WS-* style Web services or

[Dev] Clarification on caching in Identity Server

2016-09-23 Thread Asanthi Kulasinghe
Hi Gayan/Maduranga, Could you please share the details on the behavior of different types of caches mentioned in identity.xml as discussed off-line. The summary of what we need to clarify is the following. 1) What information is held in a particular type of cache 2) The hierarchy in which

Re: [Dev] Invoking a Jaggery api via HttpURLConnection

2016-09-23 Thread Denuwanthi De Silva
Hi Sameera, I could get it working with following approach[1]: var headers ={"Accept" : "application/json"}; var response = get(url,null,headers,'text'); [1] http://stackoverflow.com/questions/34505509/jaggeryjs-ajax-call-get-method Thanks On Fri, Sep 23, 2016 at 5:21 PM, Denuwanthi De

Re: [Dev] WARN log printed when starting product-integration-server

2016-09-23 Thread Thusitha Thilina Dayaratne
Hi Farasath, AFAIK, this warning implies that there is an OSGi component with the name *trigger-provider[1] *but that hasn't been mentioned in the Carbon-Component header in the *org.wso2.carbon.gateway.core[2] *bundle. To get rid of that warning that should be specified as a carbon-component in

Re: [Dev] Invoking a Jaggery api via HttpURLConnection

2016-09-23 Thread Denuwanthi De Silva
Hi Sameera, Please find the stacktrace Stacktrace: at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470) at

Re: [Dev] Invoking a Jaggery api via HttpURLConnection

2016-09-23 Thread Sameera Medagammaddegedara
Some additional suggestions for organizing the above code: <% (function(request,response){ var method = request.getMethod(); function doGet(req,res) { } switch(method) { case 'GET': doGet(request,response); break; default:

Re: [Dev] Releasing carbon-analytics 1.2.8

2016-09-23 Thread Ruwan Yatawara
Thank you!, Gokul and Maheshika. Thanks and Regards, Ruwan Yatawara Associate Technical Lead, WSO2 Inc. email : ruw...@wso2.com mobile : +94 77 9110413 blog : http://ruwansrants.blogspot.com/ https://500px.com/ruwan_ace www: :http://wso2.com On Fri, Sep 23, 2016 at 4:56 PM,

Re: [Dev] Invoking a Jaggery api via HttpURLConnection

2016-09-23 Thread Sameera Medagammaddegedara
EDIT: Please post the error you get afterwards. On Fri, Sep 23, 2016 at 5:11 PM, Sameera Medagammaddegedara < samee...@wso2.com> wrote: > Hi Denuwanthi, > > Can you please change your jag to the following: > > <% > try { > > } catch (e) { > log.error(e); > response.status=500; >

Re: [Dev] Invoking a Jaggery api via HttpURLConnection

2016-09-23 Thread Sameera Medagammaddegedara
Hi Denuwanthi, Can you please change your jag to the following: <% try { } catch (e) { log.error(e); response.status=500; var msg = {}; msg.status = 500; msg.error = "Failed invoking remote endpoint"; print(msg); } %> On Fri, Sep 23, 2016 at 5:04 PM, Denuwanthi

[Dev] WARN log printed when starting product-integration-server

2016-09-23 Thread Farasath Ahamed
Hi All, I build the product-integration-server from source and started the server by running carbon.sh script. I noticed the below WARN log, osgi> [2016-09-23 17:01:24,002] * WARN {org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager} - Adding a RequiredCapabilityListener from

[Dev] Invoking a Jaggery api via HttpURLConnection

2016-09-23 Thread Denuwanthi De Silva
Hi, I have .jsp file, in which I want to invoke a jaggery api. The content inside .jsp file is as below: URL url = new URL(baseURL + *"/user-login/user/authenticate/add*?scope=" + URLEncoder.encode(scope, "UTF-8") + "=" + redirectUri + "=" + clientId + "=" + arc + "=" + responseType + "=" +

Re: [Dev] Releasing carbon-analytics 1.2.8

2016-09-23 Thread Maheshika Goonetilleke
Hi RuwanY Done. On Fri, Sep 23, 2016 at 4:54 PM, Ruwan Yatawara wrote: > Hi Gokul, > > Tested it out with staged repository. +1 for releasing. > > Thanks and Regards, > > Ruwan Yatawara > > Associate Technical Lead, > WSO2 Inc. > > email : ruw...@wso2.com > mobile : +94 77

Re: [Dev] Releasing carbon-analytics 1.2.8

2016-09-23 Thread Ruwan Yatawara
Hi Gokul, Tested it out with staged repository. +1 for releasing. Thanks and Regards, Ruwan Yatawara Associate Technical Lead, WSO2 Inc. email : ruw...@wso2.com mobile : +94 77 9110413 blog : http://ruwansrants.blogspot.com/ https://500px.com/ruwan_ace www: :http://wso2.com On

[Dev] Releasing carbon-analytics 1.2.8

2016-09-23 Thread Gokul Balakrishnan
Hi EMM team, We've staged carbon-analytics v1.2.8 and have closed the repo. Could you verify please? https://maven.wso2.org/nexus/content/repositories/orgwso2carbonanalytics-1035/ Thanks, -- Gokul Balakrishnan Senior Software Engineer, WSO2, Inc. http://wso2.com M +94 77 5935 789 | +44 7563

Re: [Dev] About the Carbon Core documentation and the usage ofMultitenantRESTServlet

2016-09-23 Thread wenxzhen
Thanks to Thusitha for the comprehensive answer. So the MultitenantMessageReceiver is default on the the list? And from the Application point of view, to make the application to be a tenant-based application, what we need to do on the application side? -- Original

Re: [Dev] About the Carbon Core documentation and the usage ofMultitenantRESTServlet

2016-09-23 Thread Thusitha Thilina Dayaratne
Hi Wenxing, Another question is that from Carbon 449 core document [2], I found there > is a class org.wso2.carbon.core.multitenancy.MultitenantRESTServlet, how > to use this class? any description for reference? In the current implementation, we are registering an axis2 message receiver[1]

Re: [Dev] Version mismatch in org.wso2.carbon.user.api_4.4.3.jar in the API Manager 1.10.0

2016-09-23 Thread Fathima Dilhasha
Thanks for the clarification. Dilhasha On Fri, Sep 23, 2016 at 1:05 PM, Abimaran Kugathasan wrote: > It's depends on how that library exports it's version. If you check [1], > they are exporting with version 1.0.1 > > [1] :

Re: [Dev] Error when browsing and calculating the number of messages with QueueBrowser

2016-09-23 Thread Hasitha Hiranya
Hi Shazni, WSO2 Message Broker exposes Admin Services which you can get message count of a queue. Is there any chance of using that? Thanks On Fri, Sep 23, 2016 at 2:21 PM, Shazni Nazeer wrote: > HI, > > I have the following code snippet to calculate the number of message in

[Dev] [puppet-common] Setup puppet environment for specific product version

2016-09-23 Thread Vishanth Balasubramaniam
Hi, Now you can provide the product version to checkout from the git repository when setting up the puppet environment from setup.sh in puppet-commons [1]. Ex: ./setup.sh -p esb -v 4.9.0 -v is an optional argument, where if it is not specified it will checkout the latest puppet module of the

Re: [Dev] About the Carbon Core documentation and the usage ofMultitenantRESTServlet

2016-09-23 Thread Thusitha Thilina Dayaratne
Hi Wenxing, When looking at the Carbon 449 Java docs [1], I found there are only 3 > items. Are the 3 items complete? Why I ask this question is I didn't find > the API docs for the package*org.wso2.carbon.tenant.mgt*? Please note that *org.wso2.carbon.tenat.mgt* package is available in the

[Dev] Error when browsing and calculating the number of messages with QueueBrowser

2016-09-23 Thread Shazni Nazeer
HI, I have the following code snippet to calculate the number of message in the JMS queue in Message Broker. ctx = new InitialContext(properties); QueueConnectionFactory connectionFactory = (QueueConnectionFactory) ctx.lookup(CF_NAME); queueConnection =

Re: [Dev] Using dep sync for artifact synchronization of Analytics Cluster

2016-09-23 Thread Gihan Anuruddha
In a normal scenario, users will do their implementation and test on dev/staging environments. So simply they just upload their final CApp to production environment. We can avoid SVN depsync in a minimum HA cluster for the simplicity. User needs to upload CApp to the both nodes. Another option is

Re: [Dev] Version mismatch in org.wso2.carbon.user.api_4.4.3.jar in the API Manager 1.10.0

2016-09-23 Thread Abimaran Kugathasan
It's depends on how that library exports it's version. If you check [1], they are exporting with version 1.0.1 [1] : https://github.com/wso2/carbon-kernel/blob/4.4.x/core/org.wso2.carbon.user.api/pom.xml#L51 On Fri, Sep 23, 2016 at 12:51 PM, Fathima Dilhasha wrote: > Hi All,

Re: [Dev] Version mismatch in org.wso2.carbon.user.api_4.4.3.jar in the API Manager 1.10.0

2016-09-23 Thread Thusitha Thilina Dayaratne
Hi Fathima, It seems that we missed to change the version in[1]. For the existing 4.4.x based products, user.api version range is defined accordingly[2]. Therefore this will not cause any issues. @IS Team Do we need to change this in future releases. WDYT? [1] -

[Dev] Version mismatch in org.wso2.carbon.user.api_4.4.3.jar in the API Manager 1.10.0

2016-09-23 Thread Fathima Dilhasha
Hi All, I'm trying to use org.wso2.carbon.user.api_4.4.3.jar for a requirement in an osgi bundle within an API Manager 1.10.0 pack. And it seems that even though the version of the jar is specified as "4.4.3", the exported version of the org.wso2.carbon.user.api.* classes are "1.0.1". Is this

[Dev] Using dep sync for artifact synchronization of Analytics Cluster

2016-09-23 Thread Sashika Wijesinghe
Hi All, When deploying an Analytics cluster relevant cApp is bundled with the Analytics pack, therefore even without configuring SVN based deployment synchronizer, Analytics cluster can be configured successfully. But if any changes required (may be a bug fix etc) to the cApp later on, users

Re: [Dev] Query about the usage and lifecycle of CarbonContext

2016-09-23 Thread wenxzhen
Appreciated if some one can give me some hints on this, as I really have only little knowledge. Regards, Wenxing -- Original -- From: "wenxzhen";; Date: Sep 23, 2016 To: "dev"; Subject: [Dev] Query about the usage and