Re: [Dev] [Gsoc2016] [PC] Web (Javascript / D3) based BPMN editor to support a subset of commonly used BPMN constructs

2016-03-19 Thread Isuru Wijesinghe
Hi Heshan,

We appreciate your quick response. The main deliverable of this project is
a javascript/D3 based BPMN editor which allows Process Center users to
define business processes using a graphical notation from the *web UI*. (No
server side involvement). Keep on progressing on the project and if you get
stuck at any point, don't hesitate to contact us.

Thanks and Best Regards,


On Fri, Mar 18, 2016 at 11:35 AM, Heshan Jayasinghe 
wrote:

> HI,
> Could you please tell me how server side involve in this project? Web
> Editor can developed as a single page application and we can run it in java
> server.hope this application haven't any server side development.Please let
> me know if there server side development involve.if there any server side
> development i willing to complete that task too.
>
> I already complete my proposal and now I am doing final fine tuning of my
> proposal.I will send it tomorrow.from today onwards I start my development
>  for first iteration.
>
> Thank you!
> regards,
> Heshan Jayasinghe
>
>
>
> On Tue, Mar 15, 2016 at 9:37 AM, Isuru Wijesinghe 
> wrote:
>
>> Great. My contact number :
>>
>>
>> *0710933706*
>> Thanks and Best Regards,
>>
>> On Tue, Mar 15, 2016 at 9:30 AM, Heshan Jayasinghe 
>> wrote:
>>
>>> Hi Isuru,
>>> My proposal 70% over now.I will send you copy soon.could you please send
>>> me your contact number to get more information.
>>> Thank you!
>>> regards,
>>> Heshan jayasinghe
>>>
>>>
>>
>>
>> --
>> Isuru Wijesinghe
>> *Software Engineer*
>> WSO2 inc : http://wso2.com
>> lean.enterprise.middleware
>> Mobile: 0710933706
>> isur...@wso2.com
>>
>
>


-- 
Isuru Wijesinghe
*Software Engineer*
WSO2 inc : http://wso2.com
lean.enterprise.middleware
Mobile: 0710933706
isur...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VizGrammar] Making multi-line chart x axis a timeline

2016-03-19 Thread Udara Rathnayake
attaching sample chart again


​

On Sun, Mar 20, 2016 at 12:34 AM, Udara Rathnayake  wrote:

> Hi All,
>
> I'm trying to create a multi-line chart using VizGrammar. I need to make
> my x-axis a timeline.
>
> But when I try to provide the date(2016-03-20) as the first argument to
> lineChart.insert() noticed following error.
>
> Uncaught Error: Pulse already has a non-zero stamp.
>>
> ​Then provided date in 20160320 format. This works, but while rendering
> the gadget this appears in 20,160,320 format.​
>
> My goal is to create something similar to the following line chat.
>
>
> ​
> Assume I have a data-set similar to the following,
>
>
> ​
>
> Appreciate any help.​
>
>
> --
> Regards,
> UdaraR
>



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


Re: [Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC2

2016-03-19 Thread Lakmal Warusawithana
-1. This is going to be the official dockerfiles for WSO2 products. We MUST
used best practices while building docker images.


See followings;

1 ) Should use LTS ubuntu base image (latest)

*ubuntu@dockerhub:~/wso2/dockerfiles/common/base-image$ ./build.sh *

*Sending build context to Docker daemon 4.608 kB*

*Step 1 : FROM ubuntu:15.10*

*15.10: Pulling from library/ubuntu*

See following official ubuntu docker images. ubuntu:latest point to 14.04
version


   - 12.04.5, 12.04, precise-20160311, precise (*precise/Dockerfile*)
   

   - 14.04.4, 14.04, trusty-20160315, trusty, latest (*trusty/Dockerfile*)
   

   - 15.10, wily-20160302, wily (*wily/Dockerfile*)
   

   - 16.04, xenial-20160314.4, xenial (*xenial/Dockerfile*)
   


*2 ) *Need to reduce docker images size.

wso2/am-1.10.0   1.0.0
3c1f6b8673f02 minutes ago   1.7 GB

wso2/base1.0.0
53e3c4285e3e5 minutes ago   308.5 MB

IMO we need to reduce it to  ~1.0 GB. AFAIK Chamila has done some
experiment and reduce to ~ 1.0 GB



On Fri, Mar 18, 2016 at 9:33 AM, Chamila De Alwis  wrote:

> *[x] Stable* - Go ahead and release
>
>- Verified Licensing and headers
>- Verified folder and package structure
>- Verified the out of the box functionality (default profile, access
>to management console, login, brief smoke test) of the following products.
>- WSO2 AM - 1.9.1, 1.10.0
>   - WSO2 AS - 5.3.0
>   - WSO2 BPS - 3.5.0
>   - WSO2 BRS - 2.1.0, 2.2.0
>   - WSO2 CEP - 4.0.0
>   - WSO2 DAS - 3.0.0, 3.0.1
>   - WSO2 DSS - 3.5.0
>   - WSO2 ES - 2.0.0
>   - WSO2 ESB - 4.9.0
>   - WSO2 GREG - 4.6.0, 5.1.0
>   - WSO2 IS - 5.1.0
>   - WSO2 MB - 3.0.0, 3.1.0
>- Verified build.sh, run.sh, and save.sh functionality for each of the
>above products
>
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Thu, Mar 17, 2016 at 8:44 PM, Isuru Haththotuwa 
> wrote:
>
>> This is the second release candidate (RC2) of WSO2 Dockerfiles 1.0.0
>> release.
>>
>> *Tag to be voted upon:*
>> https://github.com/wso2/dockerfiles/tree/v1.0.0-rc2
>>
>> *Source and distribution packages:*
>> https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc2
>>
>> Please download, test, and vote. The README file under each product
>> directory contains instructions on how to try it out locally.
>>
>> [ ] Broken - Do not release (explain why)
>> [ ] Stable - Go ahead and release
>>
>> This vote will be open for 72 hours or as needed.
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048* *
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Lakmal Warusawithana
Director - Cloud Architecture; WSO2 Inc.
Mobile : +94714289692
Blog : http://lakmalsview.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS]Abnormal behavior of data after purging a table

2016-03-19 Thread Sachith Withana
[+Gimantha]

On Fri, Mar 18, 2016 at 3:26 PM, Sachith Withana  wrote:

> Hi all,
>
> We reproduced the issue, but if we take out the spark script step, it
> works fine.
> (by using the simulator to get the data in to the table).
>
> @Niranda:
> Any thoughts on why this might be happening?
>
> Thanks,
> Sachith
>
> On Fri, Mar 18, 2016 at 2:28 PM, Vithulan Vijayanandan 
> wrote:
>
>> Hi,
>>
>> We are encountering an abnormal behavior of data after purging DAS table
>> using analytics backup tool kit [1], -purge command.
>>
>> To reproduce this issue,
>>
>>1. Generate a table (x) from spark script using y table.
>>2. Purge all the data in x using analytics backup tool command
>>-purge.
>>3. Re-populate the table x as in 1.
>>4. Send events to stream y (Execution plan will refer to table x when
>>you send events to y)
>>5. Now if you see the table x, it will be empty.
>>
>> [1] https://docs.wso2.com/pages/viewpage.action?pageId=45957285
>>
>> Thanks.
>>
>> Regards,
>> Vithulan.
>> --
>> *Vithulan MV*
>>
>> Intern-Software Engineering
>> WSO2, Inc : wso2.com
>> Mobile: +94712540524
>>
>
>
>
> --
> Sachith Withana
> Software Engineer; WSO2 Inc.; http://wso2.com
> E-mail: sachith AT wso2.com
> M: +94715518127
> Linked-In: 
> https://lk.linkedin.com/in/sachithwithana
>



-- 
Sachith Withana
Software Engineer; WSO2 Inc.; http://wso2.com
E-mail: sachith AT wso2.com
M: +94715518127
Linked-In: https://lk.linkedin.com/in/sachithwithana
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [BPS] Error when passing parameters to a SOAP operation with Apache CXF

2016-03-19 Thread Natasha Wijesekara
Hi,

I'm trying to invoke an external soap service operation which takes
integers as the parameters.

*Request Body of the Soap Service *:

*http://schemas.xmlsoap.org/soap/envelope/
"
xmlns:add="http://wso2.org/wso2con/2011/sample/adder
">*
*   *
*   *
*  *
* ?*
* ?*
*  *
*   *
**

I have created a client to invoke the soap operation using
JaxWsDynamicClientFactory.
JaxWsDynamicClientFactory clientFactory =
JaxWsDynamicClientFactory.newInstance();

I have invoked the operation by passing the operation name and the
parameters to the client.
When multiple parameters of type *string* is passed, no error is given.

In this request I need to pass 2 *integers* as the parameters as shown
below :
client.invoke("operationName", num1, num2);
But when I do so I get the following error :

*java.lang.IllegalArgumentException: Part
{http://wso2.org/wso2con/2011/sample/adder}payload
 should be of type
org.wso2.wso2con._2011.sample.adder.AdderProcessRequest, not
java.lang.Integer*
* at
org.apache.cxf.jaxb.io.DataWriterImpl.checkPart(DataWriterImpl.java:284)*
* at org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWriterImpl.java:212)*
* at
org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:122)*
* at
org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)*
* at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)*
* at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:572)*
* at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:481)*
* at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382)*
* at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335)*
* at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:355)*
* at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:341)*

 Appreciate any help on this.

Best Regards,
*Natasha Wijesekare*

*Software Engineering Intern, WSO2  Inc:  http://wso2.com
*
*email  : nata...@wso2.com *
*mobile: +94 771358651*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC1

2016-03-19 Thread Isuru Haththotuwa
This is the first release candidate (RC1) of WSO2 Dockerfiles 1.0.0
release.


*Tag to be voted upon:*https://github.com/wso2/dockerfiles/tree/v1.0.0-rc1


*Source and distribution packages:*
https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc1

Please download, test, and vote. The README file under each product
directory contains instructions on how to try it out locally.

This vote will be open for 72 hours or as needed.

[ ] Broken - Do not release (explain why)
[ ] Stable - Go ahead and release

-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [BPS] Rendering information of the current task of a BPMN process instance

2016-03-19 Thread Chathura Ekanayake
Hi Dilini,

How are you fetching information about tasks in the current implementation?
Activiti REST API provides support for fetching task related information.
If we don't have it currently in our new REST API, we can add similar
methods to it.

Regards,
Chathura

On Wed, Mar 16, 2016 at 9:18 AM, Dilini Mihindra  wrote:

> Hi all,
>
> Thank you for the suggestion. Current implementation does not use REST
> API. I completed the above task and now I am working on rendering
> information through REST API.
>
> Thank you.
>
> Dilini Mihindra Mampitiya Arachchi
> Intern - Software Engineer
> Mobile: +94 710 420 550
> Email: dili...@wso2.com
>
> On Tue, Mar 15, 2016 at 5:46 PM, Waruna Jayaweera 
> wrote:
>
>> Hi,
>> Yes. It is better if we can expose rendering information through rest
>> api. These data will be helpful when integrating bps runtime with process
>> center too.
>>
>> Thanks,
>> Waruna
>>
>> On Tue, Mar 15, 2016 at 5:30 PM, Vinod Kavinda  wrote:
>>
>>> Hi,
>>> Are we exposing these information via REST api? It's better to expose
>>> everything in REST first. Then we can build the UI as relevant, later.
>>>
>>> Regards,
>>> Vinod
>>> On Mar 15, 2016 1:14 PM, "Nandika Jayawardana"  wrote:
>>>
 Lets implement this for bpmn explorer as well.  However, both would
 change when we move to C5.

 Regards
 Nandika

 On Tue, Mar 15, 2016 at 12:31 PM, Vinod Kavinda  wrote:

> [Adding Architecture@]
> Hi DiliniM,
> As we are planning on dropping the admin UIs with C5, is there a use
> of integrating this with admin console UI? Shall we do this in our BPMN
> explorer UI?
>
> Regards,
> Vinod
>
> On Tue, Mar 15, 2016 at 12:24 PM, Dilini Mihindra 
> wrote:
>
>> Hi all,
>>
>> I am working on rendering the information of the current task of an
>> active BPMN process instance. As supported by Activiti, the process 
>> diagram
>> of an active process instance is given as following:
>>
>>
>>*Figrue 1 - The process instance diagram
>> of *
>> * an active BPMN process instance*
>>
>> The current task of the process instance is highlighted by a red
>> boarder in the given process diagram. I am working on rendering the
>> information of this current task in the instance_list_view.jsp page so 
>> that
>> the users can get a clear idea on the current task.
>>
>> The following properties are displayed regarding each task:​
>>
>>
>>- Task Key
>>- Task Name
>>- Assignee
>>- Description
>>- Category
>>- Due Date
>>- Form Key
>>- Owner
>>- Priority
>>- Skip
>>- Candidate Group Ids
>>- Candidate User Ids
>>
>> Thank you.
>>
>>
>> Dilini Mihindra Mampitiya Arachchi
>> Intern - Software Engineer
>> Mobile: +94 710 420 550
>> Email: dili...@wso2.com
>>
>> ___
>> 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/
>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


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

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


>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Regards,
>>
>> Waruna Lakshitha Jayaweera
>> Software Engineer
>> WSO2 Inc; http://wso2.com
>> phone: +94713255198
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] Regarding an Error message

2016-03-19 Thread Ravindi De silva
I tried writing a proxy service in the ESB to get the project details from
jira using getProject method and then create that project in redmine using
createProject if it is not already created in it. I have used the jira and
redmine connectors in ESB. The proxy I have written is shown in [1].

When I send the request to the proxy using SoapUI I get an error [2]. But
the project of which the details were taken from jira if not present in
redmine has been created in it. How can I fix the issue of getting an error
?


[1]
http://ws.apache.org/ns/synapse;
   name="newConnectJiraRedmine"
   transports="http,https"
   statistics="disable"
   trace="disable"
   startOnLoad="true">
   
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 http://192.168.57.131:8080;
   scope="default"
   type="STRING"/>
 
 http://anthonyrava.m.redmine.org/;
   scope="default"
   type="STRING"/>
 
 
 
{$ctx:username}
{$ctx:password}
{$ctx:uri}
 
 
{$ctx:projectIdOrKey}
 
 
 
 
 



 
 
{$ctx:apiUrl}
{$ctx:apiKey}
{$ctx:responseType}
 
 
 

   
  
  
 
 
 
  
  
 

   
   

 
 

   


   {$ctx:apiUrl}
   {$ctx:apiKey}
   {$ctx:responseType}


   {$ctx:jPDecscription}
   {$ctx:jPName}
   te1290123

 
  
  
   

 
  
  
 
  
   
   



[2]

[2016-03-17 17:03:33,688] ERROR - PassThroughHttpSender Failed to submit
the response
java.lang.NullPointerException
at
org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64)
at
org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:462)
at
org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:267)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at
org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
at
org.apache.synapse.mediators.builtin.RespondMediator.mediate(RespondMediator.java:28)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
at
org.apache.synapse.mediators.eip.splitter.IterateMediator.mediate(IterateMediator.java:241)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:267)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:679)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:244)
at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
[2016-03-17 17:03:33,694] ERROR - Axis2Sender
Cache-Control:no-cache,Content-Type:application/json; charset=utf-8,http://schemas.xmlsoap.org/soap/envelope/;>Identifier
has already been
taken Unexpected
error sending message back
org.apache.axis2.AxisFault: Failed to submit the response
at
org.apache.synapse.transport.passthru.PassThroughHttpSender.handleException(PassThroughHttpSender.java:610)
at

Re: [Dev] Unable to send SOAP call.

2016-03-19 Thread Shakila Sivagnanarajah
Hi Chiranga,

Please find the info below.

Provider org.apache.axis2.saaj.SOAPConnectionFactoryImpl not found
org.wso2.carbon.identity.application.authentication.framework.exception.AuthenticationFailedException:
Error occurred while sending SOAP Request to Server: Unable to create SOAP
connection factory: Provider
org.apache.axis2.saaj.SOAPConnectionFactoryImpl not found
at
org.wso2.carbon.identity.authenticator.semanticvip.VIPManager.invokeSOAP(VIPManager.java:120)
at
org.wso2.carbon.identity.authenticator.semanticvip.SemanticVIPAuthenticator.processAuthenticationResponse(SemanticVIPAuthenticator.java:134)
at
org.wso2.carbon.identity.application.authentication.framework.AbstractApplicationAuthenticator.process(AbstractApplicationAuthenticator.java:66)
at
org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler.doAuthentication(DefaultStepHandler.java:432)
at
org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler.handleResponse(DefaultStepHandler.java:406)
at
org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler.handle(DefaultStepHandler.java:117)
at
org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler.handle(DefaultStepBasedSequenceHandler.java:171)
at
org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler.handle(DefaultAuthenticationRequestHandler.java:115)
at
org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultRequestCoordinator.handle(DefaultRequestCoordinator.java:135)
at
org.wso2.carbon.identity.application.authentication.framework.servlet.CommonAuthenticationServlet.doPost(CommonAuthenticationServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
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.wso2.carbon.ui.filters.CSRFPreventionFilter.doFilter(CSRFPreventionFilter.java:88)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.wso2.carbon.ui.filters.CRLFPreventionFilter.doFilter(CRLFPreventionFilter.java:59)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
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.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

Re: [Dev] [IS]Grant Types not getting saved when using OAuthAdminService

2016-03-19 Thread Maduranga Siriwardena
Hi Vinod,

I have used OAuthAdminService to register an OAuth application and I was
able to save the grant types properly.

Any grant type is not allowed by default. If client_credentials is not
included in the grant types list you will not be able to use that grant
type to generate an access token.

Bellow is the Soap request I used to register the application.

http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsd="http://org.apache.axis2/xsd; xmlns:xsd1="
http://dto.oauth.identity.carbon.wso2.org/xsd;>
   
   
  
 
OAuth-2.0
test

https://localhost:9443/services/OAuthAdminService
authorization_code implicit
 
  
   


Thanks,
Maduranga.

On Thu, Mar 17, 2016 at 4:36 PM, Vinod Kavinda  wrote:

> Hi,
> I'm trying to register an oAuth client using OAuthAdminService. I'm
> sending the grant types string with the request. I have checked the table
> "IDN_OAUTH_CONSUMER_APPS", the grant types column is always NULL.
>
> But, I could generate access tokens with client_credentials grant type. Is
> it because by default all types are allowed?
>
> Am I missing something here? How can I set the specific set of grant types?
>
> I'm using IS 5.0.1. Appreciate your feedback on this.
>
>
> Regards,
> Vinod
>
> --
> 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
>
>


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


Re: [Dev] Implementing UI for Multilevel Categorization for G-Reg Store

2016-03-19 Thread Dakshika Jayathilaka
Hi Mushthaq,

IMO we can use simple dropdown for this. You can use same markup that we
implemented previously. [1]  [2]

[1]
https://htmlpreview.github.io/?https://raw.githubusercontent.com/wso2-dev-ux/product-es/master/markup/wso2-leftmenu/home-categories-new.html
[2]
https://github.com/wso2-dev-ux/product-es/blob/master/markup/wso2-leftmenu/home-categories-new.html

Regards,

*Dakshika Jayathilaka*
PMC Member & Committer of Apache Stratos
Senior Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Sat, Mar 12, 2016 at 10:45 PM, Mushthaq Rumy  wrote:

> Hi all,
>
> I'm currently working on Multilevel Categorization for G-Reg Store. I'm
> planning to have a dropdown menu for the categorization as documented in
> [1]. I have done a bit of searching to decide on library to use for this. I
> think the dropdown menu shown in [2] would be ideal for this.
>
> Any suggestions can be really appreciated.
>
> [1] -
> https://docs.google.com/document/d/1gU0KCCb595kJ0-B9ERMYmIbducZO3-4OCAGf0coZCs4/view#heading=h.dyjymrt5o8bq
> [2] -
> http://www.cssscript.com/demo/create-a-multi-level-drop-down-menu-with-pure-css/
>
> Thanks & Regards,
> --
> Mushthaq Rumy
> *Software Engineer*
> Mobile : +94 (0) 779 492140 <%2B94%20%280%29%20773%20451194>
> Email : musht...@wso2.com
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middleware.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Introduction for GSoC

2016-03-19 Thread CD Athuraliya
[adding dev@]

Hi Tanusha,

You can get an idea about GSoC proposals by looking at the proposal given
in this blog post [1]. Please CC dev@ in all your communication.

[1]
http://nirmalfdo.blogspot.com/2011/04/apache-tuscany-develop-simple-tool-that.html

Regards,
CD

On Thu, Mar 17, 2016 at 2:58 PM, Tanusha Jayasinghe 
wrote:

> When I asked wso2 yesterday at the workshop about how the proposal would
> have to be. They asked me to send you guys an email asking for a mock
> proposal.
>
>
> On Thu, Mar 17, 2016 at 2:38 PM, CD Athuraliya 
> wrote:
>
>> Hi Tanusha,
>>
>> For Proposal 5, if you are already familiar with basic NLP concepts
>> please check available NLP functionalists in libraries such as Apache Spark
>> [1], Deeplearning4j [2], Apache OpenNLP [3] and Stanford CoreNLP [4]. The
>> objective of this project is to unify existing NLP tools into one solution
>> with possible extensions and relevant UI elements. By going through those
>> libraries you can select feasible NLP tools for the project when you are
>> writing the proposal. Please let us know if you need more information on
>> this.
>>
>> [1] http://spark.apache.org/
>> [2] http://deeplearning4j.org/
>> [3] https://opennlp.apache.org/
>> [4] http://stanfordnlp.github.io/CoreNLP/
>>
>> Regards,
>> CD
>>
>> On Thu, Mar 17, 2016 at 2:25 PM, TanJay  wrote:
>>
>>> I am interested in following two,Proposal 3: [ML] Visual (Deep) Neural
>>> Network Builder
>>> Proposal 5: [ML] Natural Language Processing Toolbox for WSO2 Machine
>>> Learner
>>>
>>> but I am trying for the
>>> Proposal 5: [ML] Natural Language Processing Toolbox for WSO2 Machine
>>> Learner
>>>
>>> On 3/17/2016 2:21:15 PM, CD Athuraliya  wrote:
>>> [removed architecture@]
>>>
>>> Hi Tanusha,
>>>
>>> Thanks for your interest on WSO2 projects. If you can mention the
>>> project you are interested in, we will be able to further assist you. In
>>> the meantime you can get familiar with ML product by downloading the
>>> product and going through the ML workflow. Also you can look at the product
>>> documentation [1].
>>>
>>> [1] *https://docs.wso2.com/display/ML110/Introducing+Machine+Learner
>>> *
>>>
>>> Regards,
>>> CD
>>>
>>> On Thu, Mar 17, 2016 at 2:09 PM, TanJay  wrote:
>>>
 Hi,

 I am Tanusha Jayasinghe. I’m from IIT Campus. I have been an working
 on some projects in github for a while. (github link:
 https://github.com/TanJay). I am very passionate on opensource and
 done some commits to it. I am willing to work on a project for wso2. I hope
 to expand my network with all the developers here.

 I am pretty confident on coding skills in Java, Python and also for ml
 I have done Matlab/Octave.

 As in web I have done web building myself mostly on heroku and
 openshift using nodejs, django, and

 HTML5, CSS, JS of course. and familiar with SaSS, Gruntjs and all the
 other new technologies.

 I have developed several software for small companies as a before
 becoming a student at IIT.

 I am also enrolled as IEEE Student member.

 I have done my advanced level in Mathematics field that would help me
 to go on algorithmic or problem solving type situations.

 I have studied and done research on Machine Learning and Natural
 Language Processing for past 2 years from mit online and mostly on
 coursera.

 Thank you.


 
  Scanned
 for viruses. www.avast.com
 
>>>
>>>
>>>
>>>
>>> --
>>> *CD Athuraliya*
>>> Software Engineer
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> Mobile: +94 716288847 <94716288847>
>>> LinkedIn  | Twitter
>>>  | Blog
>>> 
>>>
>>>
>>>
>>> 
>>>  Scanned
>>> for viruses. www.avast.com
>>> 
>>>
>>
>>
>>
>> --
>> *CD Athuraliya*
>> Software Engineer
>> WSO2, Inc.
>> lean . enterprise . middleware
>> Mobile: +94 716288847 <94716288847>
>> LinkedIn  | Twitter
>>  | Blog
>> 
>>
>
>


-- 
*CD Athuraliya*
Software Engineer
WSO2, Inc.
lean . enterprise . middleware
Mobile: +94 716288847 <94716288847>
LinkedIn  | Twitter

Re: [Dev] [VOTE] Release WSO2 Puppet Modules 1.1.1 RC1

2016-03-19 Thread Thanuja Uruththirakodeeswaran
[x] Stable, Go ahead and release

Tested below products default profile:

   1. WSO2 AS - 5.3.0
   2. WSO2 ES - 2.0.0
   3. WSO2 GREG - 5.1.0
   4. WSO2 MB - 3.1.0

Thanks.

On Fri, Mar 18, 2016 at 4:37 PM, Isuru Haththotuwa  wrote:

> Tested the following:
>
>- License verification using rat plugin
>- Testing of single node deployments of following products:
>   1. APIM 1.9.1
>   2. IS 5.0.0
>   3. DAS 3.0.1
>   4. DSS 3.5.0
>   5. ES 2.0.0
>
> [x] Stable - Go ahead and release
>
>
> On Thu, Mar 17, 2016 at 3:15 PM, Chamila De Alwis 
> wrote:
>
>> Hi,
>>
>> This is RC1 for WSO2 Puppet Modules 1.1.1. Please download, verify, and
>> vote. The vote will be open for 72 hours.
>>
>> [ ] Broken - Do not release (explain why)
>> [ ] Stable - Go ahead and release
>>
>> This release contains minor fixes to the Puppet templates and the Hiera
>> data.
>>
>> *This release is based on the following tag:*
>> https://github.com/wso2/puppet-modules/releases/tag/1.1.1-rc1
>>
>> *Release verification guide can be found at:*
>> https://github.com/wso2/puppet-modules/wiki/Verifying-Puppet-Modules
>>
>> *Source and distribution packages can be downloaded at:*
>> https://github.com/wso2/puppet-modules/releases/tag/1.1.1-rc1
>>
>> Regards,
>> Chamila de Alwis
>> Committer and PMC Member - Apache Stratos
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanuja Uruththirakodeeswaran
Software Engineer
WSO2 Inc.;http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] [Architecture] [Pet Project] Velocity Template Mediator for ESB

2016-03-19 Thread Asanka Dissanayake
Thanks Chanaka, will do.
What is the branch I should send the pull request ?

Thanks,
Asanka D

On Wed, Mar 16, 2016 at 12:21 AM, Chanaka Fernando 
wrote:

> Hi Asanka,
>
> I had a look into the feature set and it looks really useful. Please send
> us a PR and we will include this in a future ESB release.
>
> On Wed, Mar 16, 2016 at 9:05 AM, Asanka Dissanayake 
> wrote:
>
>> Hi All,
>> I am developing a new Mediator for ESB as a pet project. After noticing
>> some draw backs in Payload Factory I thought of writing this one.
>>
>> Code can be found at :
>> https://github.com/asanka88/VelocityTemplateMediator
>>
>> @ESB Team:
>> If this make any sense, I am more than happy to contribute this with more
>> improvements. This is still under development. I will upload samples soon.
>> Your feedback is highly appreciated.
>> Why Velocity Template Mediator ?
>>
>> Currently synapse comes with built in payloadFactory mediator. But there
>> are several drawbacks in it.
>>
>> 1 Doesn’t support arrays : You cannot iterate though an array/collection
>> and add those elements to the payload.
>>
>> 2 Doesn’t support conditional expressions: In case you want to add
>> elements based on conditions payloadFactory doesn’t support it.
>>
>> 3 Readability is less since numbered placeholders like $1,$2 are used
>>
>> How
>> Velocity Template Mediator solve them?
>>
>> Velocity template mediator uses well known Apache Velocity as the
>> template engine. You can do whatever you can do with Velocity in side this.
>> Iterate through collections, check conditions etc. In addition to that
>> since we are using place holders like $name,$age for the variables ,so it
>> improves the readability as well.
>>
>> On the other hand, there was no such a thing in Synapse to create a
>> property out of a template.
>>
>> For Example: When you call a soap back end, suppose you have to send a
>> user name token in SOAP Header. Suppose there are several back end calls
>> you need to make and in every call you need to pass the user name token.
>>
>> With the payload factory , you will have to create that part every time.
>> Instead if you can create a property one time using a template and save it
>> in the message context , you can reuse it without generating again and
>> again.
>>
>> With the Velocity Template Mediator , it supports body,property,soap
>> header,envelope as the targets. You can put the generated output to anyof
>> these. And it supports both xml and json formats
>>
>> Sample Syntax
>>
>> 
>>
>>   
>>  $name
>>  $age
>>   
>>
>>
>>   
>>   
>>
>>> property-type="string|om" scope="synapse|axis2|operation" />
>> 
>>
>>
>> Thanks,
>> Asanka D
>>
>> --
>>
>>
>> *Asanka DissanayakeSoftware Engineer*
>> *WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>> *
>>
>> *email: asan...@wso2.com ,   blog:
>> cyberwaadiya.blogspot.com
>> , asankastechtalks.wordpress.com
>>   mobile: +94 71 8373821*
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> Thank you and Best Regards,
> 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
>
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com *

*email: asan...@wso2.com ,   blog:
cyberwaadiya.blogspot.com
, asankastechtalks.wordpress.com
  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC project proposal questions

2016-03-19 Thread Pushpalanka Jayawardhana
Hi Ahish,

Glad to here your interest on the project. I have here added the dev
mailing list of wso2, where further discussion can be made and visible to
the community.
Please find the comments inline.

Thanks,
Pushpalanka.
-- 
Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
Mobile: +94779716248
Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka


On Wed, Mar 16, 2016 at 8:49 AM, Ashish Tiwari 
wrote:

> Hi All,
>
> My name is Ashish and I am interested in working on the project "REST
> Profile of XACML v3.0 Version". I have started working on the proposal and
> would like to get started by:
>
> 1. I would like to have a basic understanding the ecosystem of WSO2
> projects (which will involved in this project) to figure of where this
> project falls and what are the use cases.
>   -  Would be awesome to get a requirements doc on this, if its already
> created. If not, I would like to create one.
>
As of now we don't have a requirements doc created other than the task of
implementing the REST profile for XACML on top of WSO2 Identity Server.
Would be a good start to go through the specification have a summarized
view of what needs to be done though.

>
> 2. Defining the scope of this project and possibly create subtasks.
>  - The description talks about the current SOAP implementation. It will be
> helpful to go through current SOAP integration to understand the
> interactions. However, this is something to be layed out in the design
> (proposal).
>
Yes, there is a SOAP implementation that already exists. In order to
understand how it works, better to first try it out and then look into the
implementation details. Will provide the resources for this below.

>
> 3. Setup local build and explore the codebase to get an idea of
> technologies, complexity and potential designs to implement this feature.
>  - Are there dev docs to get started, which include required repository
> informations?
>
You can find the developer targetted documentation at [1].
In brief,
The relevant code for this feature resides at [2] which have SOAP service
implementation as [3].
The architecture details and other related information can be found at [4].


>
> 4. Is there a public/test environment of WSO2 with respect to this
> project, that is available for training/testing purposes. This can help me
> to understand the use case even better.
>
> I was also wondering if there is a doc/JIRA/git issues already created for
> this project, which can get me to addres specific issues in my proposal.
>
Here[1] is the public jira ticket. It currently does not carry much useful
information. Still you can use it for further discussions too.
=

As first step, I would suggest you try out the SOAP based scenario with
WSO2 Identity Server.
You can download it from the site[6], and to try out the XACML scenario
refering the docs at [7]. Basically what you need to do is create a XACML
policy and evaluate it via a sample XACML request.

Do get back if you face any issues completing this step and we can then
move forward to next steps.

[1] - https://docs.wso2.com/display/IS510/Getting+Involved
[2] -
https://github.com/wso2/identity-framework/tree/master/components/entitlement
[3] -
https://github.com/wso2/identity-framework/blob/master/components/entitlement/org.wso2.carbon.identity.entitlement/src/main/java/org/wso2/carbon/identity/entitlement/EntitlementService.java
[4] - https://docs.wso2.com/display/IS510/Access+Control
[5] - https://wso2.org/jira/browse/IDENTITY-247
[6] - http://wso2.com/products/identity-server/
[7] -
https://docs.wso2.com/display/IS510/Configuring+the+Policy+Administration+Point
,
http://pushpalankajaya.blogspot.com/2013/06/try-out-xacml-policies-with-wso2.html


> *About me:*
> I have an undergraduate degree in computer science and starting my
> master's degree in computer science from Arizona State University. I also
> have 5 years of professional (relevant) work experience developing
> enterprise web applications in J2EE, and I previous worked with SOAP and
> REST to integrate third party solutions.
>
> Thanks,
> Ashish
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DS]Dashboard warnings for Object graph

2016-03-19 Thread Nipuna Chandradasa
Hi Fazlan,

This normally getting printed when try to avoid memory overflow. As
mentioned in this error message, using @IgnoreSizeOf where we implement the
cache will remove this warning but there is a possibility that Out Of
Memory Exception will occur. I think this because of we use cache to keep
most details and it causes local heap to exceed. There also a public jira
reported for this[1].

[1]. https://wso2.org/jira/browse/UES-658

Thank you.

On Thu, Mar 17, 2016 at 10:43 AM, Fazlan Nazeem  wrote:

> Hi,
>
> I get a warning in the server console when viewing the dashboard created
> for APIM-Analytics. Following is the message.
>
>  WARN {net.sf.ehcache.pool.sizeof.SizeOf} -  The configured limit of 1,000
> object references was reached while attempting to calculate the size of the
> object graph. This can be avoided by adding stop points with @IgnoreSizeOf
> annotations. Since the CacheManger or Cache  elements
> maxDepthExceededBehavior is set to "abort", the sizing operation has
> stopped and the reported cache size is not accurate. If performance
> degradation is NOT an issue at the configured limit, raise the limit value
> using the CacheManager or Cache  elements maxDepth attribute.
> For more information, see the Ehcache configuration documentation.
>
>
> This warning gets printed multiple times in the console. What is the cause
> of this warning. Is this due to having more gadgets than  the default limit
> for a single dashboard page? How can I get rid of this warning?
>
> Also I can't find the documentation mentioned in the warning message.
> --
> Thanks & Regards,
>
> Fazlan Nazeem
>
> *Software Engineer*
>
> *WSO2 Inc*
> Mobile : +94772338839
> <%2B94%20%280%29%20773%20451194>
> fazl...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nipuna Marcus
*Software Engineer*
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"
Mobile : +94 (0) 713 667906
nipu...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AppCloud] Enabling https in the app types in AppCloud

2016-03-19 Thread Nishadi Kirielle
Hi all,
Currently I'm working on updating the docker files in AppCloud to expose
https ports. I have completed the creation of tomcat docker file which
exposes both http and https ports and the following PR includes the updated
files. [1]

Thanks

[1] . https://github.com/wso2/app-cloud/pull/195/commits

-- 
*Nishadi Kirielle*
*Software Engineering Intern*
Mobile : +94 (0) 714722148
Blog : http://nishadikirielle.blogspot.com/
nish...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Modifying the icon

2016-03-19 Thread Awanthika Senarath
Hi,

Can I please have the attached icon in color [1] with filled in? currently
it is white with black outline. I want the triangle to be filled in by
color [1].



[1] RGB 0, 125, 133


Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [Pet Project] Velocity Template Mediator for ESB

2016-03-19 Thread Chanaka Fernando
Hi Asanka,

you can send your PR to master branch.

On Thu, Mar 17, 2016 at 8:06 AM, Asanka Dissanayake 
wrote:

> Thanks Chanaka, will do.
> What is the branch I should send the pull request ?
>
> Thanks,
> Asanka D
>
> On Wed, Mar 16, 2016 at 12:21 AM, Chanaka Fernando 
> wrote:
>
>> Hi Asanka,
>>
>> I had a look into the feature set and it looks really useful. Please send
>> us a PR and we will include this in a future ESB release.
>>
>> On Wed, Mar 16, 2016 at 9:05 AM, Asanka Dissanayake 
>> wrote:
>>
>>> Hi All,
>>> I am developing a new Mediator for ESB as a pet project. After noticing
>>> some draw backs in Payload Factory I thought of writing this one.
>>>
>>> Code can be found at :
>>> https://github.com/asanka88/VelocityTemplateMediator
>>>
>>> @ESB Team:
>>> If this make any sense, I am more than happy to contribute this with
>>> more improvements. This is still under development. I will upload samples
>>> soon. Your feedback is highly appreciated.
>>> Why Velocity Template Mediator ?
>>>
>>> Currently synapse comes with built in payloadFactory mediator. But there
>>> are several drawbacks in it.
>>>
>>> 1 Doesn’t support arrays : You cannot iterate though an array/collection
>>> and add those elements to the payload.
>>>
>>> 2 Doesn’t support conditional expressions: In case you want to add
>>> elements based on conditions payloadFactory doesn’t support it.
>>>
>>> 3 Readability is less since numbered placeholders like $1,$2 are used
>>>
>>> How
>>> Velocity Template Mediator solve them?
>>>
>>> Velocity template mediator uses well known Apache Velocity as the
>>> template engine. You can do whatever you can do with Velocity in side this.
>>> Iterate through collections, check conditions etc. In addition to that
>>> since we are using place holders like $name,$age for the variables ,so it
>>> improves the readability as well.
>>>
>>> On the other hand, there was no such a thing in Synapse to create a
>>> property out of a template.
>>>
>>> For Example: When you call a soap back end, suppose you have to send a
>>> user name token in SOAP Header. Suppose there are several back end calls
>>> you need to make and in every call you need to pass the user name token.
>>>
>>> With the payload factory , you will have to create that part every time.
>>> Instead if you can create a property one time using a template and save it
>>> in the message context , you can reuse it without generating again and
>>> again.
>>>
>>> With the Velocity Template Mediator , it supports body,property,soap
>>> header,envelope as the targets. You can put the generated output to anyof
>>> these. And it supports both xml and json formats
>>>
>>> Sample Syntax
>>>
>>> 
>>>
>>>   
>>>  $name
>>>  $age
>>>   
>>>
>>>
>>>   
>>>   
>>>
>>>>> property-type="string|om" scope="synapse|axis2|operation" />
>>> 
>>>
>>>
>>> Thanks,
>>> Asanka D
>>>
>>> --
>>>
>>>
>>> *Asanka DissanayakeSoftware Engineer*
>>> *WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>> *
>>>
>>> *email: asan...@wso2.com ,   blog:
>>> cyberwaadiya.blogspot.com
>>> , asankastechtalks.wordpress.com
>>>   mobile: +94 71 8373821*
>>>
>>> ___
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>>
>> --
>> Thank you and Best Regards,
>> 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
>>
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
>
> *Asanka DissanayakeSoftware Engineer*
> *WSO2 Inc. - lean . enterprise . middleware |  wso2.com *
>
> *email: asan...@wso2.com ,   blog:
> cyberwaadiya.blogspot.com
> , asankastechtalks.wordpress.com
>   mobile: +94 71 8373821*
>



-- 
Thank you and Best Regards,
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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-03-19 Thread Prabath Abeysekera
Hi Dinusha,

On Fri, Mar 18, 2016 at 2:19 PM, Dinusha Senanayaka 
wrote:

> Hi Lakshman,
>
> On Fri, Mar 18, 2016 at 2:08 PM, Lakshman Udayakantha 
> wrote:
>
>> Hi,
>>
>> I am looking into this. After changing the APP Manager feature versions
>> in EMM, publisher works as expected. It can create and publish mobile apps
>> without any issue. But I can't even login to store. According to backend
>> error, It seems like EMM wants APP Manager related db tables too. I have
>> added APP Manager tables to AM datasource and after that I can login to
>> store without any issue and published apps also shown in there. Anyway is
>> that ok to add APP Manager tables to AM datasource?
>>
>
> I think it should be fine to include AppM datasource in EMM. Currently we
> don't need it for mobile apps. But there could be scenarios in future we
> need AppM db for mobile apps as well.
>

If "mobile application provisioning plugin" doesn't require persisting
information, why exactly do we need to add tables, etc just to get the
store to work?

Cheers,
Prabath


>
> Regards,
> Dinusha.
>
>>
>> Thanks
>>
>> On Thu, Mar 17, 2016 at 2:43 PM, Milan Perera  wrote:
>>
>>> Hi Dinusha,
>>>
>>> I totally agree to what you said. Its better if we can do this as soon
>>> as possible.
>>>
>>> Regards,
>>>
>>> On Thu, Mar 17, 2016 at 2:31 PM, Dinusha Senanayaka 
>>> wrote:
>>>
 Hi Milan,

 IMO, if we have version conflicts we should try to fix it. What we have
 done so far is not correct. We have created a separate branch of AppM for
 EMM by manually removing the web app related UIs. We have done it for the
 time being, but this won't scale when it comes to support/maintenance and
 feature development. With the feature that Lakshman has done, we could use
 the same code base for both AppM and EMM.

 Regards,
 Dinusha.

 On Thu, Mar 17, 2016 at 2:11 PM, Milan Perera  wrote:

> Hi Lakshman,
>
> As I remember, we have tried it before and in the previous attempt of
> migrating to the latest APPM feature was failed due to some conflicts in
> dependencies that were unable to resolve at that time. If im not mistaken,
> it had conflicts with the IS version which we use in the EMM 200.
>
> Regards,
>
> On Thu, Mar 17, 2016 at 7:25 AM, Lakshman Udayakantha <
> lakshm...@wso2.com> wrote:
>
>> Hi Chathura,
>>
>> Yes. It is not because of asset turning off/on feature. I meant that
>> UI has changed a lot in latest APP Manager recently and APPM team didn't
>> get much time to resolve all the bugs reported. As per the offline
>> discussion with LahiruC lot of mobile features has broken with new UI and
>> they are fixing it now. So IMO replacing new features may introduce new
>> bugs to existing APP UI in EMM. Anyway if new UI will go to a high stable
>> position and APPM release is not going to conflict with EMM release this
>> will be possible. right? WDYT?
>>
>> Thanks
>>
>> On Thu, Mar 17, 2016 at 12:21 AM, Chathura Dilan 
>> wrote:
>>
>>> Hi Lakshman,
>>>
>>> ​​This feature will not introduce any bugs in store or publisher,
>>> since it only on/off assets types.  But we have to test all scenarios of
>>> EMM and AppM integration.
>>>
>>> On Wed, Mar 16, 2016 at 7:03 AM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
 [Adding Dev]

 On Wed, Mar 16, 2016 at 5:40 PM, Prabath Abeysekera <
 praba...@wso2.com> wrote:

> Hi Lakshman,
>
> Of course we should. Would you be able to move this discussion to
> dev@ so we can discuss about any possible concerns, etc there.
>
> Cheers,
> Prabath
>
> On Wed, Mar 16, 2016 at 2:53 PM, Lakshman Udayakantha <
> lakshm...@wso2.com> wrote:
>
>> Hi EMM Team,
>>
>> It can be turned off asset types which are not in use in latest
>> APP Manager. There is a configuration called EnabledAssetTypeList in 
>> which
>> we can provide only mobileapp to enable mobile apps only in 
>> publisher and
>> store. So shall we do the $subject, for the sake of getting future
>> improvements and bug fixes in APPM.
>>
>> @APPM Team: Are there any bad consequences of doing $subject like
>> introducing new bugs to existing store and publisher in EMM(APPM 
>> feature
>> version 1.1.1)?
>>
>> Thanks
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0714388124 <0714388124>*
>>
>>
>
>
> --
> Prabath Abeysekara
> Technical Lead
> WSO2 

[Dev] Specifying items in the JSON Schema

2016-03-19 Thread Sohani Weerasinghe
Hi All,

When we are specifying the items for an array, according to [1], we can
specify items wrapped with '[ ]' as shown below

   {
   "items": *[* {}, {}, {} *]*

   }

Shall we proceed with this approach? WDYT?

[1]
http://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.3.1

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


[Dev] Can we clean-up some of the obsolete EMM related GIT repositories?

2016-03-19 Thread Prabath Abeysekera
Folks,

Can we clean-up the following?

1. https://github.com/wso2/mdm
2. https://github.com/wso2/MDM-Android-Agent
3. https://github.com/wso2/emm-agent-android
4. https://github.com/wso2/emm-agent-ios

Cheers,
Prabath
-- 
Prabath Abeysekara
Technical Lead
WSO2 Inc.
Email: praba...@wso2.com
Mobile: +94774171471
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC 2016

2016-03-19 Thread Isuru Wijesinghe
Hi Nitesh,

Thank you for your interest in this project.

Basically this BPMN

(Business Process Model and Notation) editor has two sections called
component-palette section and drawing section. In component-palette
section, need to be included set of components like user task, service
task, exclusive, parallel gateways, etc [see the attached image (
*pallet.png*)]. And then clone the selected competent/item in the palette
section when clicking on it by the user to drawing section to model a
work-flow. (see *editor.jpeg*)

You can start looking at the example available in [1]. This example
describes templates and relationships typically used in BPMN. Please also
go through the samples mentioned in [2], [3] and [4].

[1]. http://demo.bpmn.io/
[2]. Interactive tool for creating directed graphs using D3 -
https://bl.ocks.org/cjrd/6863459
[3]. State diagram editor example  using D3 -
http://bl.ocks.org/lgersman/5311202
[4]. D3.js custom shapes - http://bl.ocks.org/explunit/4659227

Please do not hesitate to contact us if you have any further questions.

Thanks and Best Regards,


On Fri, Mar 18, 2016 at 12:14 AM, Nitesh Agarwal  wrote:

> Dear sir,
>
> I am Nitesh Agarwal, a junior undergraduate in B.Tech Computer Science and
> Engineering student of Heritage Institute of Technology, Kolkata and I am
> looking for potential projects in this year's version of GSoC.
>
> I have previously worked on D3 in my previous year's summer internship at
> CodeNation. I was hoping that we could chat/talk a bit more in relation to
> this project.
>
>
> https://docs.wso2.com/display/GSoC/Project+Proposals+for+2016#ProjectProposalsfor2016-Proposal19:[PC]Web(Javascript/D3)basedBPMNeditortosupportasubsetofcommonlyusedBPMNconstructs
>
> P.S.: Here's a link to my linkedin profile:
> https://in.linkedin.com/in/nitesh-agarwal-b4493855
>
> Sincerely,
> Nitesh.
>



-- 
Isuru Wijesinghe
*Software Engineer*
WSO2 inc : http://wso2.com
lean.enterprise.middleware
Mobile: 0710933706
isur...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Governance Registry 5.2.0 Alpha Released

2016-03-19 Thread Thushara Ranawaka
WSO2 Governance Registry team is pleased to announce the Alpha release of
WSO2 Governance Registry 5.2.0.

Please download WSO2 Governance Registry 5.2.0 Alpha from this
location[1][2]. Kindly find the official documentation from here[5].This
release includes following features, improvements and bug fixes. To see the
full list of fixed issues please visit jira release note[3]
New Feature

   - [REGISTRY-3182 ] - Store
   search text box should maintain a list of last five searches performed

Improvement

   - [REGISTRY-2782 ] -
   internationalization is not handled by publisher/store
   - [REGISTRY-2998 ] -
   [publisher]in add button remove a artifact name
   - [REGISTRY-3013 ] -
   Readonly only attributes should appear with grey background field under
   WSO2 Admin Console
   - [REGISTRY-3088 ] -
   [Publisher] show association name
   - [REGISTRY-3094 ] - Store
   landing page does not show any of the added assets when not logged in
   - [REGISTRY-3103 ] - "We
   couldn't find anything for you" message is misleading need proper handling
   - [REGISTRY-3106 ] - Show
   current search query with search result page
   - [REGISTRY-3114 ] -
   [Publisher] Adding name and version validation for content type asset
   extensions.
   - [REGISTRY-3117 ] -
   [Registry] Artifacts moved from registry check in client not getting indexed
   - [REGISTRY-3122 ] - Make
   store search box display what asset type is searched
   - [REGISTRY-3124 ] - Provide
   a way to get content of content artifacts via governance REST API
   - [REGISTRY-3127 ] - Add
   realm parameter to Basic auth challenge of the Governance REST API
   - [REGISTRY-3130 ] - Move
   unified governance registry metadata module from carbon-registry to
   carbon-governance
   - [REGISTRY-3143 ] -
   Localize hbs files
   - [REGISTRY-3144 ] -
   SOAPService description is null in publisher instead of empty
   - [REGISTRY-3148 ] -
   Improvements for option-text field.
   - [REGISTRY-3156 ] - Add new
   property to store lifecycle state transition time in asset.
   - [REGISTRY-3160 ] - Test
   Case for Publisher login
   - [REGISTRY-3199 ] - Default
   bootstrap classes overridden by custom CSS Related to STORE-1145
   - [REGISTRY-3219 ] -
   Governance REST API should support to access public asset without security
   - [REGISTRY-3220 ] -
   Governance REST API should provide options to pass tenant id
   - [REGISTRY-3224 ] -
   [Governance Center][Store]Add diff-view implementation to store
   - [REGISTRY-3227 ] -
   Selenium long running tests for publisher
   - [REGISTRY-3238 ] - Naming
   consistency issue in [Nine dot button] Publisher/Store
   - [REGISTRY-3270 ] - [STORE]
   Rename copy to clipboard button to copy URL in asset details page
   - [REGISTRY-3272 ] - Support
   bi-directional associations in GC-Publisher
   - [REGISTRY-3311 ] - Improve
   execution time of the sample populator
   - [REGISTRY-3312 ] - [Store]
   Avoid refreshing page when adding a subscription
   - [REGISTRY-3314 ] - Remove
   Left side vacant space in diff view
   - [REGISTRY-3315 ] - [Store]
   Remove more details pop up in store asset thumbnail
   - [REGISTRY-3317 ] - Asset
   count display on publisher/store search results
   - [REGISTRY-3356 ] - Change
   the font color in Tags Select2
   - [REGISTRY-3394 ] - When
   there are no any traversableStates defined in the LC proper message should
   be promted
   - [REGISTRY-3413 ] - Update
   the Getting the 

Re: [Dev] [DAS]Abnormal behavior of data after purging a table

2016-03-19 Thread Sachith Withana
Hi all,

We reproduced the issue, but if we take out the spark script step, it works
fine.
(by using the simulator to get the data in to the table).

@Niranda:
Any thoughts on why this might be happening?

Thanks,
Sachith

On Fri, Mar 18, 2016 at 2:28 PM, Vithulan Vijayanandan 
wrote:

> Hi,
>
> We are encountering an abnormal behavior of data after purging DAS table
> using analytics backup tool kit [1], -purge command.
>
> To reproduce this issue,
>
>1. Generate a table (x) from spark script using y table.
>2. Purge all the data in x using analytics backup tool command -purge.
>3. Re-populate the table x as in 1.
>4. Send events to stream y (Execution plan will refer to table x when
>you send events to y)
>5. Now if you see the table x, it will be empty.
>
> [1] https://docs.wso2.com/pages/viewpage.action?pageId=45957285
>
> Thanks.
>
> Regards,
> Vithulan.
> --
> *Vithulan MV*
>
> Intern-Software Engineering
> WSO2, Inc : wso2.com
> Mobile: +94712540524
>



-- 
Sachith Withana
Software Engineer; WSO2 Inc.; http://wso2.com
E-mail: sachith AT wso2.com
M: +94715518127
Linked-In: https://lk.linkedin.com/in/sachithwithana
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Implementing UI for [taxonomy]

2016-03-19 Thread Dakshika Jayathilaka
Hi Malintha,

please refer [1] instead of details_layout.

 [1] http://wso2-dev-ux.github.io/theme-wso2/layout.html

Regards,

*Dakshika Jayathilaka*
PMC Member & Committer of Apache Stratos
Senior Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Thu, Mar 17, 2016 at 10:30 AM, Malintha Fernando 
wrote:

> Hi,
>
> +1 for using WSO2 tree view layout. Btw, it seems like there is an issue
> with loading CSS in [1].
>
> [1] http://wso2-dev-ux.github.io/theme-wso2/details_layout.html
>
> BR
>
> On Thu, Mar 17, 2016 at 10:07 AM, Lahiru J Ekanayake 
> wrote:
>
>> Hi Dakshika,
>>
>> Thank you for design layouts.
>>
>> Regards
>>
>>
>> On Thu, Mar 17, 2016 at 9:44 AM, Dakshika Jayathilaka 
>> wrote:
>>
>>> Hi,
>>>
>>> AFAIK we don't need to have tree view on store side, this can be useful
>>> for publisher view.
>>>
>>> You can use tree view available within WSO2 theme. [1] Also We can help
>>> you to tweak to
>>> match with current theme.
>>>
>>> [1] http://wso2-dev-ux.github.io/theme-wso2/layout.html
>>>
>>> Regards,
>>>
>>> *Dakshika Jayathilaka*
>>> PMC Member & Committer of Apache Stratos
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>> 0771100911
>>>
>>> On Fri, Mar 11, 2016 at 9:59 PM, Lahiru J Ekanayake 
>>> wrote:
>>>
 Hi All,

 I'm currently implementing taxonomy feature [1] . Here we have to
 render a tree structure in store view .I have tried with several tree
 structures while implementing taxonomy UI for store side. If we implement
 horizontal or vertical tree structures  [2] with more nodes ,

- we will have a usability issue. That is , If we have more nodes
to render, user interface will not have enough space to render those 
 nodes.
Even we reduce the size dynamically, user will not able to see nodes
clearly.
- Another problem is , assets are rendering bellow to tree
structure. So when tree becomes larger, we will not able to see the 
 assets
results until we scroll down.

 So my suggestion is if we render this kind of tree structure as drop
 down tree [3] , It will more user friendly. As well as if we have more
 nodes we can handle it by only scrolling drop down menu.

 [1] -
 https://docs.google.com/a/wso2.com/document/d/1gU0KCCb595kJ0-B9ERMYmIbducZO3-4OCAGf0coZCs4/edit?usp=sharing
 [2] - http://bl.ocks.org/mbostock/4339184
 [3] -
  
 http://www.jqueryscript.net/demo/Animated-Vertical-Accordion-Menu-with-jQuery-CSS3-mtree-js/
 

 --



 *Lahiru J Ekanayake**Software Engineer*
 Mobile : +94 (0) 77 8812629 / +94(0) 778509547
 Email : lahi...@wso2.com
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middleware.


>>>
>>
>>
>> --
>>
>>
>>
>> *Lahiru J Ekanayake**Software Engineer*
>> Mobile : +94 (0) 77 8812629 / +94(0) 778509547
>> Email : lahi...@wso2.com
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middleware.
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Malintha Fernando
> Software Engineer
> WSO2 Inc. | http://wso2.com
> Mobile : +94 718874922
> Blog : http://blog.malintha.org
>
> Lean . Enterprise . Middleware
>
>
>
>
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-03-19 Thread Ruwan Abeykoon
Hi All,
I could recall moving some the DB related stuff to Gateway Feature some
time back in order to do EMM feature release. Please check if GW feature is
included, or if something crept to Store side.

Cheers,
Ruwan

On Fri, Mar 18, 2016 at 3:01 PM, Prabath Abeysekera 
wrote:

> Hi Dinusha,
>
> On Fri, Mar 18, 2016 at 2:54 PM, Dinusha Senanayaka 
> wrote:
>
>> Hi Prabath,
>>
>> On Fri, Mar 18, 2016 at 2:34 PM, Prabath Abeysekera 
>> wrote:
>>
>>> Hi Dinusha,
>>>
>>> On Fri, Mar 18, 2016 at 2:19 PM, Dinusha Senanayaka 
>>> wrote:
>>>
 Hi Lakshman,

 On Fri, Mar 18, 2016 at 2:08 PM, Lakshman Udayakantha <
 lakshm...@wso2.com> wrote:

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

 I think it should be fine to include AppM datasource in EMM. Currently
 we don't need it for mobile apps. But there could be scenarios in future we
 need AppM db for mobile apps as well.

>>>
>>> If "mobile application provisioning plugin" doesn't require persisting
>>> information, why exactly do we need to add tables, etc just to get the
>>> store to work?
>>>
>>
>> This we need to check. AFAIK, EMM is installing only appm.store,
>> appm.publisher, appm.mobile features which is not depend on appm.core
>> feature which provides the db. May be we have installed additional feature ?
>>
>
> That can possibly be the case. Thanks for the insight.
>
> @Lakshman, would you be able to double check if this is what's demanding
> us to install these persistent entities? If that's the case, we might have
> to revisit the list of features we've put into p2-profile around app-mgt
> functionalities.
>
> Cheers,
> Prabath
>
>
>>
>> Regards,
>> Dinusha.
>>
>>>
>>> Cheers,
>>> Prabath
>>>
>>>

 Regards,
 Dinusha.

>
> Thanks
>
> On Thu, Mar 17, 2016 at 2:43 PM, Milan Perera  wrote:
>
>> Hi Dinusha,
>>
>> I totally agree to what you said. Its better if we can do this as
>> soon as possible.
>>
>> Regards,
>>
>> On Thu, Mar 17, 2016 at 2:31 PM, Dinusha Senanayaka > > wrote:
>>
>>> Hi Milan,
>>>
>>> IMO, if we have version conflicts we should try to fix it. What we
>>> have done so far is not correct. We have created a separate branch of 
>>> AppM
>>> for EMM by manually removing the web app related UIs. We have done it 
>>> for
>>> the time being, but this won't scale when it comes to 
>>> support/maintenance
>>> and feature development. With the feature that Lakshman has done, we 
>>> could
>>> use the same code base for both AppM and EMM.
>>>
>>> Regards,
>>> Dinusha.
>>>
>>> On Thu, Mar 17, 2016 at 2:11 PM, Milan Perera 
>>> wrote:
>>>
 Hi Lakshman,

 As I remember, we have tried it before and in the previous attempt
 of migrating to the latest APPM feature was failed due to some 
 conflicts in
 dependencies that were unable to resolve at that time. If im not 
 mistaken,
 it had conflicts with the IS version which we use in the EMM 200.

 Regards,

 On Thu, Mar 17, 2016 at 7:25 AM, Lakshman Udayakantha <
 lakshm...@wso2.com> wrote:

> Hi Chathura,
>
> Yes. It is not because of asset turning off/on feature. I meant
> that UI has changed a lot in latest APP Manager recently and APPM team
> didn't get much time to resolve all the bugs reported. As per the 
> offline
> discussion with LahiruC lot of mobile features has broken with new UI 
> and
> they are fixing it now. So IMO replacing new features may introduce 
> new
> bugs to existing APP UI in EMM. Anyway if new UI will go to a high 
> stable
> position and APPM release is not going to conflict with EMM release 
> this
> will be possible. right? WDYT?
>
> Thanks
>
> On Thu, Mar 17, 2016 at 12:21 AM, Chathura Dilan <
> chathu...@wso2.com> wrote:
>
>> Hi Lakshman,
>>
>> ​​This feature will not introduce any bugs in store or publisher,
>> since it only on/off assets types.  But we have to test all 
>> scenarios of
>> EMM and AppM integration.
>>
>> 

Re: [Dev] JNDI bundle deployment error

2016-03-19 Thread Nipuni Perera
Hi Himasha,

I have build the msf4j (master branch) and added the jndi jar to dropins
location and could start the server. I have checked the bundle status and
the bundle org.wso2.carbon.jndi_1.0.0.SNAPSHOT is in Active state.

As per the exception  [1], jndi activation should fail and the bundle
should not activate.

Can you please try to reproduce this without any custom bundles in your
environment?

[1] [org.wso2.carbon.jndi.internal.JNDIActivator] :
InitialContextFactoryBuilder already set

java.lang.IllegalStateException: InitialContextFactoryBuilder already set

...

Thanks,

Nipuni

On Wed, Mar 16, 2016 at 4:56 PM, Himasha Guruge  wrote:

> Thanks for the update Nipuni. I have created a JIRA in [1].
>
>
> []1 https://wso2.org/jira/browse/CARBON-15812
>
> On Wed, Mar 16, 2016 at 4:48 PM, Nipuni Perera  wrote:
>
>> Hi Himasha,
>>
>> With JNDIActivator we set the InitialContextFactoryBuilder while
>> starting the bundle. It seems that some other service too trying to set the 
>> InitialContextFactoryBuilder
>> in mss.
>> I will check this and get back to you soon.
>>
>> Can you also create a jira to track the issue?
>>
>> Thanks,
>> Nipuni
>>
>> On Wed, Mar 16, 2016 at 3:57 PM, Himasha Guruge 
>> wrote:
>>
>>> Hi Nipuni,
>>>
>>> I was trying to deploy JNDI jar built from [1]  in mss, and got the
>>> following exception. I have removed our custom component bundles to make
>>> sure they are not causing below exceptions. Appreciate any help on this.
>>>
>>> [org.wso2.carbon.jndi.internal.JNDIActivator] :
>>> InitialContextFactoryBuilder already set
>>>
>>> java.lang.IllegalStateException: InitialContextFactoryBuilder already set
>>>
>>> at
>>> javax.naming.spi.NamingManager.setInitialContextFactoryBuilder(NamingManager.java:709)
>>>
>>> at
>>> org.wso2.carbon.jndi.internal.JNDIActivator.start(JNDIActivator.java:53)
>>>
>>> at
>>> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
>>>
>>> at
>>> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
>>>
>>> at java.security.AccessController.doPrivileged(Native Method)
>>>
>>> at
>>> org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
>>>
>>> at
>>> org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
>>>
>>> at
>>> org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
>>>
>>> at
>>> org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
>>>
>>> at org.eclipse.osgi.container.Module.doStart(Module.java:571)
>>>
>>> at org.eclipse.osgi.container.Module.start(Module.java:439)
>>>
>>> at
>>> org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:454)
>>>
>>> at
>>> org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:717)
>>>
>>> at
>>> org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:491)
>>>
>>> at
>>> org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:437)
>>>
>>> at
>>> org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:427)
>>>
>>> at org.eclipse.osgi.container.Module.start(Module.java:416)
>>>
>>> at
>>> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1498)
>>>
>>> at
>>> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
>>>
>>> at
>>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>>
>>> at
>>> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
>>> [1] https://github.com/wso2/carbon-jndi
>>>
>>> Thanks,
>>>
>>> Himasha Guruge
>>> *Software Engineer*
>>> WS*O2* *Inc.*
>>> Mobile: +94 777459299
>>> himas...@wso2.com
>>>
>>
>>
>>
>> --
>> Nipuni Perera
>> Software Engineer; WSO2 Inc.; http://wso2.com
>> Email: nip...@wso2.com
>> Git hub profile: https://github.com/nipuni
>> Blog : http://nipunipererablog.blogspot.com/
>> Mobile: +94 (71) 5626680
>> 
>>
>>
>
>
> --
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> himas...@wso2.com
>



-- 
Nipuni Perera
Software Engineer; WSO2 Inc.; http://wso2.com
Email: nip...@wso2.com
Git hub profile: https://github.com/nipuni
Blog : http://nipunipererablog.blogspot.com/
Mobile: +94 (71) 5626680

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


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

2016-03-19 Thread Lakshman Udayakantha
Hi,

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

Thanks

On Thu, Mar 17, 2016 at 2:43 PM, Milan Perera  wrote:

> Hi Dinusha,
>
> I totally agree to what you said. Its better if we can do this as soon as
> possible.
>
> Regards,
>
> On Thu, Mar 17, 2016 at 2:31 PM, Dinusha Senanayaka 
> wrote:
>
>> Hi Milan,
>>
>> IMO, if we have version conflicts we should try to fix it. What we have
>> done so far is not correct. We have created a separate branch of AppM for
>> EMM by manually removing the web app related UIs. We have done it for the
>> time being, but this won't scale when it comes to support/maintenance and
>> feature development. With the feature that Lakshman has done, we could use
>> the same code base for both AppM and EMM.
>>
>> Regards,
>> Dinusha.
>>
>> On Thu, Mar 17, 2016 at 2:11 PM, Milan Perera  wrote:
>>
>>> Hi Lakshman,
>>>
>>> As I remember, we have tried it before and in the previous attempt of
>>> migrating to the latest APPM feature was failed due to some conflicts in
>>> dependencies that were unable to resolve at that time. If im not mistaken,
>>> it had conflicts with the IS version which we use in the EMM 200.
>>>
>>> Regards,
>>>
>>> On Thu, Mar 17, 2016 at 7:25 AM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
 Hi Chathura,

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

 Thanks

 On Thu, Mar 17, 2016 at 12:21 AM, Chathura Dilan 
 wrote:

> Hi Lakshman,
>
> ​​This feature will not introduce any bugs in store or publisher,
> since it only on/off assets types.  But we have to test all scenarios of
> EMM and AppM integration.
>
> On Wed, Mar 16, 2016 at 7:03 AM, Lakshman Udayakantha <
> lakshm...@wso2.com> wrote:
>
>> [Adding Dev]
>>
>> On Wed, Mar 16, 2016 at 5:40 PM, Prabath Abeysekera <
>> praba...@wso2.com> wrote:
>>
>>> Hi Lakshman,
>>>
>>> Of course we should. Would you be able to move this discussion to
>>> dev@ so we can discuss about any possible concerns, etc there.
>>>
>>> Cheers,
>>> Prabath
>>>
>>> On Wed, Mar 16, 2016 at 2:53 PM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
 Hi EMM Team,

 It can be turned off asset types which are not in use in latest APP
 Manager. There is a configuration called EnabledAssetTypeList in which 
 we
 can provide only mobileapp to enable mobile apps only in publisher and
 store. So shall we do the $subject, for the sake of getting future
 improvements and bug fixes in APPM.

 @APPM Team: Are there any bad consequences of doing $subject like
 introducing new bugs to existing store and publisher in EMM(APPM 
 feature
 version 1.1.1)?

 Thanks
 --
 Lakshman Udayakantha
 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware
 Mobile: *0714388124 <0714388124>*


>>>
>>>
>>> --
>>> Prabath Abeysekara
>>> Technical Lead
>>> WSO2 Inc.
>>> Email: praba...@wso2.com
>>> Mobile: +94774171471
>>>
>>
>>
>>
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0714388124 <0714388124>*
>>
>>
>
>
> --
> Regards,
>
> Chatura Dilan Perera
> *Senior Software Engineer** - WSO2 Inc.*
> www.dilan.me
>



 --
 Lakshman Udayakantha
 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware
 Mobile: *0714388124 <0714388124>*


>>>
>>>
>>> --
>>> *Milan Perera *| Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
>>> Email: mi...@wso2.com  | Web: www.wso2.com
>>> 

[Dev] Create a new API version in ESB

2016-03-19 Thread Udara Rathnayake
Hi,

I tried creating a new version of an existing API, just by updating the
context as explained here[1]. API name untouched. Seems this is not
possible[2].

Is there any other way to overcome this while preserving the previous
version?

[1]  https://docs.wso2.com/display/ESB481/Creating+APIs
[2]
*​TID: [0] [ESB] [2016-03-16 15:01:01,309] ERROR
{org.wso2.carbon.rest.api.service.RestApiAdmin} -  Error trying to add the
API to the ESB configuration : notificationAPI:: Duplicate resource
definition by the name: *











*notificationAPI{org.wso2.carbon.rest.api.service.RestApiAdmin}org.apache.synapse.SynapseException:
Duplicate resource definition by the name: CNEADHOCESB2QAPI2at
org.apache.synapse.config.SynapseConfiguration.handleException(SynapseConfiguration.java:1515)
at
org.apache.synapse.config.SynapseConfiguration.addAPI(SynapseConfiguration.java:351)
at
org.wso2.carbon.rest.api.service.RestApiAdmin.addApi(RestApiAdmin.java:640)
at
org.wso2.carbon.rest.api.service.RestApiAdmin.addApiFromString(RestApiAdmin.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver*
.java:40)​

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


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

2016-03-19 Thread Ruwan Abeykoon
Hi All,
I think APM_SUBSCRIBER is used to check subscription on WebApps or Sites.
I think adding subscriber to this table can be moved to place where the
subscription is added. We might have to revisit and change the SQL queries
which is used to check the subscriptions.

Cheers,
Ruwan

On Fri, Mar 18, 2016 at 4:49 PM, Lakshman Udayakantha 
wrote:

> Hi Dinusha,
>
> When user is going to login to store, user will add if does not exist, to
> a table called APM_SUBSCRIBER . This code snippet has removed in EMM store
> (in APPM 1.1.1 version). That's why earlier this problem is not raised.
> Anyway what is the purpose of adding user to the APM_SUBSCRIBER table? Note
> that this table is the only dependant table from APPM to EMM.
>
> Thanks
>
> On Fri, Mar 18, 2016 at 3:01 PM, Prabath Abeysekera 
> wrote:
>
>> Hi Dinusha,
>>
>> On Fri, Mar 18, 2016 at 2:54 PM, Dinusha Senanayaka 
>> wrote:
>>
>>> Hi Prabath,
>>>
>>> On Fri, Mar 18, 2016 at 2:34 PM, Prabath Abeysekera 
>>> wrote:
>>>
 Hi Dinusha,

 On Fri, Mar 18, 2016 at 2:19 PM, Dinusha Senanayaka 
 wrote:

> Hi Lakshman,
>
> On Fri, Mar 18, 2016 at 2:08 PM, Lakshman Udayakantha <
> lakshm...@wso2.com> wrote:
>
>> Hi,
>>
>> I am looking into this. After changing the APP Manager feature
>> versions in EMM, publisher works as expected. It can create and publish
>> mobile apps without any issue. But I can't even login to store. According
>> to backend error, It seems like EMM wants APP Manager related db tables
>> too. I have added APP Manager tables to AM datasource and after that I 
>> can
>> login to store without any issue and published apps also shown in there.
>> Anyway is that ok to add APP Manager tables to AM datasource?
>>
>
> I think it should be fine to include AppM datasource in EMM. Currently
> we don't need it for mobile apps. But there could be scenarios in future 
> we
> need AppM db for mobile apps as well.
>

 If "mobile application provisioning plugin" doesn't require persisting
 information, why exactly do we need to add tables, etc just to get the
 store to work?

>>>
>>> This we need to check. AFAIK, EMM is installing only appm.store,
>>> appm.publisher, appm.mobile features which is not depend on appm.core
>>> feature which provides the db. May be we have installed additional feature ?
>>>
>>
>> That can possibly be the case. Thanks for the insight.
>>
>> @Lakshman, would you be able to double check if this is what's demanding
>> us to install these persistent entities? If that's the case, we might have
>> to revisit the list of features we've put into p2-profile around app-mgt
>> functionalities.
>>
>> Cheers,
>> Prabath
>>
>>
>>>
>>> Regards,
>>> Dinusha.
>>>

 Cheers,
 Prabath


>
> Regards,
> Dinusha.
>
>>
>> Thanks
>>
>> On Thu, Mar 17, 2016 at 2:43 PM, Milan Perera  wrote:
>>
>>> Hi Dinusha,
>>>
>>> I totally agree to what you said. Its better if we can do this as
>>> soon as possible.
>>>
>>> Regards,
>>>
>>> On Thu, Mar 17, 2016 at 2:31 PM, Dinusha Senanayaka <
>>> dinu...@wso2.com> wrote:
>>>
 Hi Milan,

 IMO, if we have version conflicts we should try to fix it. What we
 have done so far is not correct. We have created a separate branch of 
 AppM
 for EMM by manually removing the web app related UIs. We have done it 
 for
 the time being, but this won't scale when it comes to 
 support/maintenance
 and feature development. With the feature that Lakshman has done, we 
 could
 use the same code base for both AppM and EMM.

 Regards,
 Dinusha.

 On Thu, Mar 17, 2016 at 2:11 PM, Milan Perera 
 wrote:

> Hi Lakshman,
>
> As I remember, we have tried it before and in the previous attempt
> of migrating to the latest APPM feature was failed due to some 
> conflicts in
> dependencies that were unable to resolve at that time. If im not 
> mistaken,
> it had conflicts with the IS version which we use in the EMM 200.
>
> Regards,
>
> On Thu, Mar 17, 2016 at 7:25 AM, Lakshman Udayakantha <
> lakshm...@wso2.com> wrote:
>
>> Hi Chathura,
>>
>> Yes. It is not because of asset turning off/on feature. I meant
>> that UI has changed a lot in latest APP Manager recently and APPM 
>> team
>> didn't get much time to resolve all the bugs reported. As per the 
>> offline
>> discussion with LahiruC lot of mobile features has broken with new 
>> UI and
>> they are fixing 

Re: [Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC1

2016-03-19 Thread Chamila De Alwis
*[x] **Broken* - Do not release

The license header verification failed for common/scripts/base.sh.
Furthermore, there are few minor README adjustments to  be done.

The following were verified for positive functionality.

   - Verified folder and package structure
   - Verified the out of the box functionality (default profile, access to
   management console, login, brief smoke test) of the following products.
   - WSO2 AM - 1.9.1, 1.10.0
  - WSO2 AS - 5.3.0
  - WSO2 BPS - 3.5.0
  - WSO2 BRS - 2.1.0, 2.2.0
  - WSO2 CEP - 4.0.0
  - WSO2 DAS - 3.0.0, 3.0.1
  - WSO2 DSS - 3.5.0
  - WSO2 ES - 2.0.0
  - WSO2 ESB - 4.9.0
  - WSO2 GREG - 4.6.0, 5.1.0
  - WSO2 IS - 5.1.0
  - WSO2 MB - 3.0.0, 3.1.0
   - Verified build.sh, run.sh, and save.sh functionality for each of the
   above products






Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Wed, Mar 16, 2016 at 5:18 PM, Isuru Haththotuwa  wrote:

> This is the first release candidate (RC1) of WSO2 Dockerfiles 1.0.0
> release.
>
>
> *Tag to be voted upon:*https://github.com/wso2/dockerfiles/tree/v1.0.0-rc1
>
>
> *Source and distribution packages:*
> https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc1
>
> Please download, test, and vote. The README file under each product
> directory contains instructions on how to try it out locally.
>
> This vote will be open for 72 hours or as needed.
>
> [ ] Broken - Do not release (explain why)
> [ ] Stable - Go ahead and release
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DAS]Abnormal behavior of data after purging a table

2016-03-19 Thread Vithulan Vijayanandan
Hi,

We are encountering an abnormal behavior of data after purging DAS table
using analytics backup tool kit [1], -purge command.

To reproduce this issue,

   1. Generate a table (x) from spark script using y table.
   2. Purge all the data in x using analytics backup tool command -purge.
   3. Re-populate the table x as in 1.
   4. Send events to stream y (Execution plan will refer to table x when
   you send events to y)
   5. Now if you see the table x, it will be empty.

[1] https://docs.wso2.com/pages/viewpage.action?pageId=45957285

Thanks.

Regards,
Vithulan.
-- 
*Vithulan MV*

Intern-Software Engineering
WSO2, Inc : wso2.com
Mobile: +94712540524
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-03-19 Thread Milan Perera
Hi Dinusha,

I totally agree to what you said. Its better if we can do this as soon as
possible.

Regards,

On Thu, Mar 17, 2016 at 2:31 PM, Dinusha Senanayaka 
wrote:

> Hi Milan,
>
> IMO, if we have version conflicts we should try to fix it. What we have
> done so far is not correct. We have created a separate branch of AppM for
> EMM by manually removing the web app related UIs. We have done it for the
> time being, but this won't scale when it comes to support/maintenance and
> feature development. With the feature that Lakshman has done, we could use
> the same code base for both AppM and EMM.
>
> Regards,
> Dinusha.
>
> On Thu, Mar 17, 2016 at 2:11 PM, Milan Perera  wrote:
>
>> Hi Lakshman,
>>
>> As I remember, we have tried it before and in the previous attempt of
>> migrating to the latest APPM feature was failed due to some conflicts in
>> dependencies that were unable to resolve at that time. If im not mistaken,
>> it had conflicts with the IS version which we use in the EMM 200.
>>
>> Regards,
>>
>> On Thu, Mar 17, 2016 at 7:25 AM, Lakshman Udayakantha > > wrote:
>>
>>> Hi Chathura,
>>>
>>> Yes. It is not because of asset turning off/on feature. I meant that UI
>>> has changed a lot in latest APP Manager recently and APPM team didn't get
>>> much time to resolve all the bugs reported. As per the offline discussion
>>> with LahiruC lot of mobile features has broken with new UI and they are
>>> fixing it now. So IMO replacing new features may introduce new bugs to
>>> existing APP UI in EMM. Anyway if new UI will go to a high stable position
>>> and APPM release is not going to conflict with EMM release this will be
>>> possible. right? WDYT?
>>>
>>> Thanks
>>>
>>> On Thu, Mar 17, 2016 at 12:21 AM, Chathura Dilan 
>>> wrote:
>>>
 Hi Lakshman,

 ​​This feature will not introduce any bugs in store or publisher, since
 it only on/off assets types.  But we have to test all scenarios of EMM and
 AppM integration.

 On Wed, Mar 16, 2016 at 7:03 AM, Lakshman Udayakantha <
 lakshm...@wso2.com> wrote:

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


 --
 Regards,

 Chatura Dilan Perera
 *Senior Software Engineer** - WSO2 Inc.*
 www.dilan.me

>>>
>>>
>>>
>>> --
>>> Lakshman Udayakantha
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>> Mobile: *0714388124 <0714388124>*
>>>
>>>
>>
>>
>> --
>> *Milan Perera *| Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
>> Email: mi...@wso2.com  | Web: www.wso2.com
>> 
>>
>
>
>
> --
> Dinusha Dilrukshi
> Associate Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94725255071
> Blog: http://dinushasblog.blogspot.com/
>



-- 
*Milan Perera *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 77 309 7088 | Work: +94 11 214 5345
Email: mi...@wso2.com  | Web: www.wso2.com

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


Re: [Dev] [BPS] Error when passing parameters to a SOAP operation with Apache CXF

2016-03-19 Thread Natasha Wijesekara
Hi ,

I tried passing the operation name with the namespace but it didn't work. I
get the same exception as below.

*java.lang.IllegalArgumentException: Part
{http://wso2.org/wso2con/2011/sample/adder}payload
 should be of type
org.wso2.wso2con._2011.sample.adder.AdderProcessRequest, not
java.lang.Integer*
* at
org.apache.cxf.jaxb.io.DataWriterImpl.checkPart(DataWriterImpl.java:284)*
* at org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWriterImpl.java:212)*
* at
org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:122)*
* at
org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)*
* at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)*
* at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:572)*
* at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:481)*
* at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382)*
* at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335)*
* at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:355)*
* at cxfClient_1.main(cxfClient_1.java:61)*
* at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
* at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
* at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
* at java.lang.reflect.Method.invoke(Method.java:606)*
* at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)*

Best Regards,
Natasha Wijesekare

On Thu, Mar 17, 2016 at 3:39 PM, Himasha Guruge  wrote:

> Hi Natasha,
>
> Can you try passing the operation name with the namespace as well?
>
> Regards,
> Himasha
>
> On Thu, Mar 17, 2016 at 2:16 PM, Natasha Wijesekara 
> wrote:
>
>> Hi,
>>
>> I'm trying to invoke an external soap service operation which takes
>> integers as the parameters.
>>
>> *Request Body of the Soap Service *:
>>
>> *> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
>> "
>> xmlns:add="http://wso2.org/wso2con/2011/sample/adder
>> ">*
>> *   *
>> *   *
>> *  *
>> * ?*
>> * ?*
>> *  *
>> *   *
>> **
>>
>> I have created a client to invoke the soap operation using
>> JaxWsDynamicClientFactory.
>> JaxWsDynamicClientFactory clientFactory =
>> JaxWsDynamicClientFactory.newInstance();
>>
>> I have invoked the operation by passing the operation name and the
>> parameters to the client.
>> When multiple parameters of type *string* is passed, no error is given.
>>
>> In this request I need to pass 2 *integers* as the parameters as shown
>> below :
>> client.invoke("operationName", num1, num2);
>> But when I do so I get the following error :
>>
>> *java.lang.IllegalArgumentException: Part
>> {http://wso2.org/wso2con/2011/sample/adder}payload
>>  should be of type
>> org.wso2.wso2con._2011.sample.adder.AdderProcessRequest, not
>> java.lang.Integer*
>> * at
>> org.apache.cxf.jaxb.io.DataWriterImpl.checkPart(DataWriterImpl.java:284)*
>> * at org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWriterImpl.java:212)*
>> * at
>> org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:122)*
>> * at
>> org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)*
>> * at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)*
>> * at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:572)*
>> * at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:481)*
>> * at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382)*
>> * at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335)*
>> * at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:355)*
>> * at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:341)*
>>
>>  Appreciate any help on this.
>>
>> Best Regards,
>> *Natasha Wijesekare*
>>
>> *Software Engineering Intern, WSO2  Inc:  http://wso2.com
>> *
>> *email  : nata...@wso2.com *
>> *mobile: +94 771358651 <%2B94%20771358651>*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> himas...@wso2.com
>



-- 
*Natasha Wijesekare*

*Software Engineering Intern, WSO2  Inc:  http://wso2.com
*
*email  : nata...@wso2.com *
*mobile: +94 771358651*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC2

2016-03-19 Thread Imesh Gunaratne
On Sat, Mar 19, 2016 at 5:26 PM, Isuru Haththotuwa  wrote:

>
> Tested #3, with the simple copy operation, without a file mount. A user of
> wso2 Dockerfiles would need to create own dockerfile similar to [1] add the
> relevant artifacts to /mnt/artifacts location using ADD/COPY. Those
> artifacts will be copied to the deployment space
> (CARBON_HOME/repository/deployment/server before container initialization).
>
> [1].
>
> FROM wso2/as-5.3.0:1.0.0
> MAINTAINER isu...@wso2.com
>
> RUN mkdir -p /mnt/artifacts/axis2services
> RUN mkdir -p /mnt/artifacts/webapps
> ADD axis2services/* /mnt/artifacts/axis2services
> ADD webapps/* /mnt/artifacts/webapps
>
>
>
Great work! I think it would be better if the user can override anything
under the CARBON_HOME. If so we might not need multiple folders.

BTW in the above sample, we may not need *RUN mkdir *statements. ADD/COPY
commands create folders if they do not exist.

Thanks



>>
>>> On Fri, Mar 18, 2016 at 9:33 AM, Chamila De Alwis 
>>> wrote:
>>>
 *[x] Stable* - Go ahead and release

- Verified Licensing and headers
- Verified folder and package structure
- Verified the out of the box functionality (default profile,
access to management console, login, brief smoke test) of the following
products.
- WSO2 AM - 1.9.1, 1.10.0
   - WSO2 AS - 5.3.0
   - WSO2 BPS - 3.5.0
   - WSO2 BRS - 2.1.0, 2.2.0
   - WSO2 CEP - 4.0.0
   - WSO2 DAS - 3.0.0, 3.0.1
   - WSO2 DSS - 3.5.0
   - WSO2 ES - 2.0.0
   - WSO2 ESB - 4.9.0
   - WSO2 GREG - 4.6.0, 5.1.0
   - WSO2 IS - 5.1.0
   - WSO2 MB - 3.0.0, 3.1.0
- Verified build.sh, run.sh, and save.sh functionality for each of
the above products



 Regards,
 Chamila de Alwis
 Committer and PMC Member - Apache Stratos
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 On Thu, Mar 17, 2016 at 8:44 PM, Isuru Haththotuwa 
 wrote:

> This is the second release candidate (RC2) of WSO2 Dockerfiles 1.0.0
> release.
>
> *Tag to be voted upon:*
> https://github.com/wso2/dockerfiles/tree/v1.0.0-rc2
>
> *Source and distribution packages:*
> https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc2
>
> Please download, test, and vote. The README file under each product
> directory contains instructions on how to try it out locally.
>
> [ ] Broken - Do not release (explain why)
> [ ] Stable - Go ahead and release
>
> This vote will be open for 72 hours or as needed.
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

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


>>>
>>>
>>> --
>>> Lakmal Warusawithana
>>> Director - Cloud Architecture; WSO2 Inc.
>>> Mobile : +94714289692
>>> Blog : http://lakmalsview.blogspot.com/
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.io
>> Lean . Enterprise . Middleware
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>


-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.io
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: [ESB] Regarding an Error message

2016-03-19 Thread Malaka Silva
Hi Ravindi,

It seems your config is invalid. You have used respond mediator inside
iterator.

If you need to aggregate the response as Jagath suggested
use aggregate mediator.

On Fri, Mar 18, 2016 at 7:52 PM, Jagath Sisirakumara Ariyarathne <
jaga...@wso2.com> wrote:

> Hi Ravindi,
>
> I think you can use aggregate mediator[1] to construct a single response
> using results from each iteration and send to the client as a single
> response.
>
> [1] -
> https://docs.wso2.com/display/ESB480/Sample+400%3A+Message+Splitting+and+Aggregating+the+Responses
>
> Thanks.
>
> On Fri, Mar 18, 2016 at 3:41 AM, Nuwan Wimalasekara 
> wrote:
>
>> Hi Ravindi,
>>
>> Why are you using both send(in outSequence) and respond(in iterate)
>> mediators?
>>
>> Thanks,
>> Nuwanw
>>
>> On Thu, Mar 17, 2016 at 8:54 PM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Hi Ravindi,
>>>
>>> AFAIU this error happens due to the client gets a HTTP 202 accept
>>> response, generated by ESB before it sends the original response from the
>>> backend. Therefore ESB can't send the original response to the client as it
>>> has already sent a "HTTP 202 accept" response.
>>>
>>>
>>> On Thu, Mar 17, 2016 at 8:30 PM, Ravindi De silva 
>>> wrote:
>>>
 Hi  all,


 I tried writing a proxy service in the ESB to get the project details
 from jira using getProject method and then create that project in redmine
 using createProject if it is not already created in it. I have used the
 jira and redmine connectors in ESB. The proxy I have written is shown in
 [1].

 When I send the request to the proxy using SoapUI I get an error [2].
 But the project of which the details were taken from jira if not present in
 redmine has been created in it. How can I fix the issue of getting an error
 ?


 [1]
 http://ws.apache.org/ns/synapse;
name="newConnectJiraRedmine"
transports="http,https"
statistics="disable"
trace="disable"
startOnLoad="true">

   
  >>> expression="json-eval($.responseType)"/>
  
  
  >>> expression="json-eval($.firstname)"/>
  
  
  >>> expression="json-eval($.authSourceId)"/>
  
  
  >>> expression="json-eval($.identifier)"/>
  >>> expression="json-eval($.description)"/>
  
  >>> expression="json-eval($.projectId)"/>
  >>> expression="json-eval($.trackerId)"/>
  
  >>> expression="json-eval($.priorityId)"/>
  
  >>> expression="json-eval($.categoryId)"/>
  >>> expression="json-eval($.fixedVersionId)"/>
  >>> expression="json-eval($.assignedToId)"/>
  >>> expression="json-eval($.parentIssueId)"/>
  >>> expression="json-eval($.customFields)"/>
  >>> expression="json-eval($.watcherUserIds)"/>
  
  >>> expression="json-eval($.createdOn)"/>
  >>> expression="json-eval($.updatedOn)"/>
  
  
  
  
  
  
  
  >>> expression="json-eval($.activityId)"/>
  
  >>> expression="json-eval($.attachmentId)"/>
  
  
  
  
  >>>expression="json-eval($.jiraProjectName)"
scope="operation"/>
  >>> type="STRING"/>
  >>>value="ravindi123"
scope="default"
type="STRING"/>
  >>>value="http://192.168.57.131:8080;
scope="default"
type="STRING"/>
  >>>value="TESPROJ"
scope="default"
type="STRING"/>
  >>>value="http://anthonyrava.m.redmine.org/;
scope="default"
type="STRING"/>
  >>>value="7855e5ee84e3f97b02e23ea96f3d69f740399860"
scope="default"
type="STRING"/>
  >>> type="STRING"/>
  
 {$ctx:username}
 {$ctx:password}
 {$ctx:uri}
  
  
 {$ctx:projectIdOrKey}
  
  
  >>> expression="json-eval($.description)"/>
  
  
 >>> expression="get-property('jPName')"/>
 >>> expression="get-property('jPDecscription')"/>
 >>> expression="get-property('jPId')"/>
  
  
 {$ctx:apiUrl}
 {$ctx:apiKey}

[Dev] GSoc 2016-Proposal 16

2016-03-19 Thread nathieshamaddage
Hi Jasintha,


Can I get an idea about the possible errors that might occur in the developer 
studio?? And should the error reporting plugin detect WSO2 plugin errors as 
well as Eclipse errors? 


Regards


Nathiesha






Sent from Windows Mail___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] Adding H2 Driver as a Dependency only for the Destribution

2016-03-19 Thread Nandika Jayawardana
Having a seperate h2 orbit will allow us to upgrade the h2 version without
depending on the datasource component. BPS team is also in need of h2. Has
anyone created an h2 orbit . Shall we go ahead and create one ?

Regards
Nandika

On Fri, Feb 19, 2016 at 9:35 AM, Sameera Jayasoma  wrote:

> I don't think we should do that. Datasources is a generic feature.
>
> On Mon, Feb 15, 2016 at 10:38 AM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> Hi Sameera,
>>
>> Are we planning to bundle the h2 with the datasource core feature or have
>> it as a separate orbit?
>>
>> Regards,
>> Nira
>>
>> On Fri, Feb 12, 2016 at 8:22 PM, Sameera Jayasoma 
>> wrote:
>>
>>> You don't necessarily need to do this. You can package only the sql
>>> script and create the database during the product build
>>>
>>> On Friday, February 12, 2016, Hemika Kodikara  wrote:
>>>
 Hi All,

 We already have something similar in our carbon-business-messaging repo
 [1].

 [1] -
 https://github.com/hemikak/carbon-business-messaging/blob/master/features/andes/org.wso2.carbon.andes.server.feature/pom.xml

 Hemika Kodikara
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middleware
 http://wso2.com

 Mobile : +9477762

 On Fri, Feb 12, 2016 at 5:02 PM, Sameera Jayasoma 
 wrote:

> Hi All,
>
> You can easily create an H2 database form a given sql Script in your
> project. I've attached a sample pom.xml.
>
> This can be used in products as well as components repos. You can
> easily populate an H2 database from an sql file for your component level
> OSGi testing as well.
>
> Thanks,
> Sameera.
>
> On Fri, Feb 12, 2016 at 4:32 PM, Akalanka Pagoda Arachchi <
> darsha...@wso2.com> wrote:
>
>> What I meant was, I already tried upgrading the H2 version to the
>> latest version. When I did, the previous database URL's we were using
>> failed since the new H2 driver is not taking relative paths for the URL.
>>
>> Thanks,
>> Akalanka.
>>
>> On Fri, Feb 12, 2016 at 3:48 PM, Akalanka Pagoda Arachchi <
>> darsha...@wso2.com> wrote:
>>
>>> We can, but we will have to verify all the database URL's again,
>>> since when I tried, it gave me an exception since it was no longer
>>> accepting relative paths.
>>>
>>> On Fri, Feb 12, 2016 at 3:46 PM, Ramith Jayasinghe 
>>> wrote:
>>>
 and shall we upgrade H2 version to latest?

 On Fri, Feb 12, 2016 at 2:24 PM, Ramith Jayasinghe 
 wrote:
 > So whats the verdict?
 > @sameera: can we have some thing similar to 'carbon-persistence'
 or
 > something which contains H2?
 >
 > On Fri, Feb 12, 2016 at 11:48 AM, Niranjan Karunanandham
 >  wrote:
 >> Hi Akalanka,
 >>
 >> On Fri, Feb 12, 2016 at 11:37 AM, Akalanka Pagoda Arachchi
 >>  wrote:
 >>>
 >>> Hi Niranjan,
 >>>
 >>> Yes, we could have avoided adding h2-database-engine as a
 dependency in
 >>> 4.4.x Andes.
 >>>
 >>> If we add the h2 driver to the datasource feature, it would
 mean whenever
 >>> datasource feature is used h2 driver will be copied. Will that
 be OK? My
 >>> opinion is if the H2 driver is not a dependency for the
 feature, it should
 >>> not be contained in the feature. When we create a distribution
 from that
 >>> feature, if H2 DB is used as the default DB configuration, we
 should provide
 >>> the H2 driver with the distribution.
 >>
 >> Sorry about it. I was under the impression that the datasource
 core for C5
 >> supports by default is for H2 DB like in C4. This is why I
 suggested that we
 >> define it at the datasource core feature.
 >>
 >>>
 >>> WDYT?
 >>>
 >>> Thanks,
 >>> Akalanka.
 >>>
 >>> On Fri, Feb 12, 2016 at 11:05 AM, Niranjan Karunanandham
 >>>  wrote:
 
  Hi Akalanka / all
 
  On Fri, Feb 12, 2016 at 10:46 AM, Akalanka Pagoda Arachchi
   wrote:
 >
 > Hi All,
 >
 > In the previous distributions, we had H2 database driver as a
 dependency
 > for our features so that it will be copied to the plugins
 folder when the
 > pack is created.However, in this scenario, H2 database driver
 is not exactly
 > a dependency of the Andes Core feature since it is not using
 the H2 driver.
 
 

Re: [Dev] Common configuration for publishing events from carbon servers to DAS/CEP

2016-03-19 Thread Malith Dhanushka
On Fri, Mar 18, 2016 at 11:38 AM, Kishanthan Thangarajah <
kishant...@wso2.com> wrote:

> This new change is only for OSGi based servers in the platform right? Are
> there any changes for standalone data publishing API's used with non-OSGi
> servers in the platform or is it still the same as before? We have AS 6.0.0
> which is based on pure tomcat and currently we are using the minimum
> required data publishing libs and the standalone data publishing API's to
> publish HTTP stats to DAS.
>

Yes this new change is only for OSGi based servers and no change in
standalone data publishing API's.


> On Mon, Mar 14, 2016 at 4:51 PM, Malith Dhanushka  wrote:
>
>> Hi all,
>>
>> Please follow the steps bellow when publishing events from carbon servers
>> to DAS/CEP. Here we keep the DAS/CEP server location in
>> CARBON_HOME/repository/deployment/server/eventpublishers directory and this
>> is common across platform.
>>
>> - Install the Event Publisher Aggregate feature from p2_repo [1]
>>
>> - Install Registry Core feature if not installed
>>
>> - Create event stream and deploy that to
>> CARBON_HOME/repository/deployment/server/eventstreams
>>
>> - Create publishers for the created stream and deploy that to
>>  CARBON_HOME/repository/deployment/server/eventpublishers
>> Following is a sample configuration,
>>
>> 
>> > xmlns="http://wso2.org/carbon/eventpublisher;>
>>   
>>   
>>   
>> admin
>> thrift
>> non-blocking
>> 0
>> tcp://localhost:7611
>> X
>>   
>> 
>>
>> - Publish events to the created stream using
>> org.wso2.carbon.event.stream.core.EventStreamService OSGI service.
>> Following is a sample code snippet.
>>
>> Event event = new Event();
>> event.setTimeStamp(System.currentTimeMillis());
>> event.setStreamId("streamTest:1.0.0");
>> event.setPayloadData(new Object[]{data});
>> eventStreamService.publish(event);
>>
>> Please note that Event Publisher Aggregate feature is not yet included
>> in carbon feature repo. It will be available with the immediate analytics
>> feature release.
>>
>> [1]
>> https://github.com/wso2/carbon-analytics-common/tree/master/features/event-publisher/org.wso2.carbon.event.publisher.aggregate.feature
>>
>> Thanks,
>> Malith
>> --
>> Malith Dhanushka
>> Senior Software Engineer - Data Technologies
>> *WSO2, Inc. : wso2.com *
>> *Mobile*  : +94 716 506 693
>>
>> ___
>> 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 *
>



-- 
Malith Dhanushka
Senior Software Engineer - Data Technologies
*WSO2, Inc. : wso2.com *
*Mobile*  : +94 716 506 693
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Implementing UI for Multilevel Categorization for G-Reg Store

2016-03-19 Thread Mushthaq Rumy
Hi Dakshika,

Thanks for the suggestion. I will go through it.

Thanks & Regards,

On Thu, Mar 17, 2016 at 9:48 AM, Dakshika Jayathilaka 
wrote:

> Hi Mushthaq,
>
> IMO we can use simple dropdown for this. You can use same markup that we
> implemented previously. [1]  [2]
>
> [1]
> https://htmlpreview.github.io/?https://raw.githubusercontent.com/wso2-dev-ux/product-es/master/markup/wso2-leftmenu/home-categories-new.html
> [2]
> https://github.com/wso2-dev-ux/product-es/blob/master/markup/wso2-leftmenu/home-categories-new.html
>
> Regards,
>
> *Dakshika Jayathilaka*
> PMC Member & Committer of Apache Stratos
> Senior Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
> On Sat, Mar 12, 2016 at 10:45 PM, Mushthaq Rumy  wrote:
>
>> Hi all,
>>
>> I'm currently working on Multilevel Categorization for G-Reg Store. I'm
>> planning to have a dropdown menu for the categorization as documented in
>> [1]. I have done a bit of searching to decide on library to use for this. I
>> think the dropdown menu shown in [2] would be ideal for this.
>>
>> Any suggestions can be really appreciated.
>>
>> [1] -
>> https://docs.google.com/document/d/1gU0KCCb595kJ0-B9ERMYmIbducZO3-4OCAGf0coZCs4/view#heading=h.dyjymrt5o8bq
>> [2] -
>> http://www.cssscript.com/demo/create-a-multi-level-drop-down-menu-with-pure-css/
>>
>> Thanks & Regards,
>> --
>> Mushthaq Rumy
>> *Software Engineer*
>> Mobile : +94 (0) 779 492140 <%2B94%20%280%29%20773%20451194>
>> Email : musht...@wso2.com
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middleware.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Mushthaq Rumy
*Software Engineer*
Mobile : +94 (0) 779 492140 <%2B94%20%280%29%20773%20451194>
Email : musht...@wso2.com
WSO2, Inc.; http://wso2.com/
lean . enterprise . middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC2

2016-03-19 Thread Chamila De Alwis
*[x] Stable* - Go ahead and release

   - Verified Licensing and headers
   - Verified folder and package structure
   - Verified the out of the box functionality (default profile, access to
   management console, login, brief smoke test) of the following products.
   - WSO2 AM - 1.9.1, 1.10.0
  - WSO2 AS - 5.3.0
  - WSO2 BPS - 3.5.0
  - WSO2 BRS - 2.1.0, 2.2.0
  - WSO2 CEP - 4.0.0
  - WSO2 DAS - 3.0.0, 3.0.1
  - WSO2 DSS - 3.5.0
  - WSO2 ES - 2.0.0
  - WSO2 ESB - 4.9.0
  - WSO2 GREG - 4.6.0, 5.1.0
  - WSO2 IS - 5.1.0
  - WSO2 MB - 3.0.0, 3.1.0
   - Verified build.sh, run.sh, and save.sh functionality for each of the
   above products



Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Thu, Mar 17, 2016 at 8:44 PM, Isuru Haththotuwa  wrote:

> This is the second release candidate (RC2) of WSO2 Dockerfiles 1.0.0
> release.
>
> *Tag to be voted upon:*
> https://github.com/wso2/dockerfiles/tree/v1.0.0-rc2
>
> *Source and distribution packages:*
> https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc2
>
> Please download, test, and vote. The README file under each product
> directory contains instructions on how to try it out locally.
>
> [ ] Broken - Do not release (explain why)
> [ ] Stable - Go ahead and release
>
> This vote will be open for 72 hours or as needed.
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] JNDI bundle deployment error

2016-03-19 Thread Himasha Guruge
Hi Nipuni,

I tried removing all custom bundles but it didn't resolve the issue.
However, I built a new pack and tried  the bundle and it got activated
fine. Thanks for the quick response.

Thanks,
Himasha

On Wed, Mar 16, 2016 at 5:45 PM, Nipuni Perera  wrote:

> Hi Himasha,
>
> I have build the msf4j (master branch) and added the jndi jar to dropins
> location and could start the server. I have checked the bundle status and
> the bundle org.wso2.carbon.jndi_1.0.0.SNAPSHOT is in Active state.
>
> As per the exception  [1], jndi activation should fail and the bundle
> should not activate.
>
> Can you please try to reproduce this without any custom bundles in your
> environment?
>
> [1] [org.wso2.carbon.jndi.internal.JNDIActivator] :
> InitialContextFactoryBuilder already set
>
> java.lang.IllegalStateException: InitialContextFactoryBuilder already set
>
> ...
>
> Thanks,
>
> Nipuni
>
> On Wed, Mar 16, 2016 at 4:56 PM, Himasha Guruge  wrote:
>
>> Thanks for the update Nipuni. I have created a JIRA in [1].
>>
>>
>> []1 https://wso2.org/jira/browse/CARBON-15812
>>
>> On Wed, Mar 16, 2016 at 4:48 PM, Nipuni Perera  wrote:
>>
>>> Hi Himasha,
>>>
>>> With JNDIActivator we set the InitialContextFactoryBuilder while
>>> starting the bundle. It seems that some other service too trying to set the 
>>> InitialContextFactoryBuilder
>>> in mss.
>>> I will check this and get back to you soon.
>>>
>>> Can you also create a jira to track the issue?
>>>
>>> Thanks,
>>> Nipuni
>>>
>>> On Wed, Mar 16, 2016 at 3:57 PM, Himasha Guruge 
>>> wrote:
>>>
 Hi Nipuni,

 I was trying to deploy JNDI jar built from [1]  in mss, and got the
 following exception. I have removed our custom component bundles to make
 sure they are not causing below exceptions. Appreciate any help on this.

 [org.wso2.carbon.jndi.internal.JNDIActivator] :
 InitialContextFactoryBuilder already set

 java.lang.IllegalStateException: InitialContextFactoryBuilder already
 set

 at
 javax.naming.spi.NamingManager.setInitialContextFactoryBuilder(NamingManager.java:709)

 at
 org.wso2.carbon.jndi.internal.JNDIActivator.start(JNDIActivator.java:53)

 at
 org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)

 at
 org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)

 at java.security.AccessController.doPrivileged(Native Method)

 at
 org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)

 at
 org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)

 at
 org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)

 at
 org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)

 at org.eclipse.osgi.container.Module.doStart(Module.java:571)

 at org.eclipse.osgi.container.Module.start(Module.java:439)

 at
 org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:454)

 at
 org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:717)

 at
 org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:491)

 at
 org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:437)

 at
 org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:427)

 at org.eclipse.osgi.container.Module.start(Module.java:416)

 at
 org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1498)

 at
 org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)

 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

 at
 org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
 [1] https://github.com/wso2/carbon-jndi

 Thanks,

 Himasha Guruge
 *Software Engineer*
 WS*O2* *Inc.*
 Mobile: +94 777459299
 himas...@wso2.com

>>>
>>>
>>>
>>> --
>>> Nipuni Perera
>>> Software Engineer; WSO2 Inc.; http://wso2.com
>>> Email: nip...@wso2.com
>>> Git hub profile: https://github.com/nipuni
>>> Blog : http://nipunipererablog.blogspot.com/
>>> Mobile: +94 (71) 5626680
>>> 
>>>
>>>
>>
>>
>> --
>> Himasha Guruge
>> *Software Engineer*
>> WS*O2* *Inc.*
>> Mobile: +94 777459299
>> himas...@wso2.com
>>
>
>
>
> --
> Nipuni Perera
> Software Engineer; WSO2 Inc.; http://wso2.com
> Email: nip...@wso2.com
> Git hub profile: https://github.com/nipuni
> Blog : http://nipunipererablog.blogspot.com/
> Mobile: +94 (71) 5626680
> 
>
>


-- 
Himasha Guruge
*Software Engineer*

Re: [Dev] Implementing UI for [taxonomy]

2016-03-19 Thread Dakshika Jayathilaka
Hi,

AFAIK we don't need to have tree view on store side, this can be useful for
publisher view.

You can use tree view available within WSO2 theme. [1] Also We can help you
to tweak to
match with current theme.

[1] http://wso2-dev-ux.github.io/theme-wso2/layout.html

Regards,

*Dakshika Jayathilaka*
PMC Member & Committer of Apache Stratos
Senior Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Fri, Mar 11, 2016 at 9:59 PM, Lahiru J Ekanayake 
wrote:

> Hi All,
>
> I'm currently implementing taxonomy feature [1] . Here we have to render a
> tree structure in store view .I have tried with several tree structures
> while implementing taxonomy UI for store side. If we implement horizontal
> or vertical tree structures  [2] with more nodes ,
>
>- we will have a usability issue. That is , If we have more nodes to
>render, user interface will not have enough space to render those nodes.
>Even we reduce the size dynamically, user will not able to see nodes
>clearly.
>- Another problem is , assets are rendering bellow to tree structure.
>So when tree becomes larger, we will not able to see the assets results
>until we scroll down.
>
> So my suggestion is if we render this kind of tree structure as drop down
> tree [3] , It will more user friendly. As well as if we have more nodes we
> can handle it by only scrolling drop down menu.
>
> [1] -
> https://docs.google.com/a/wso2.com/document/d/1gU0KCCb595kJ0-B9ERMYmIbducZO3-4OCAGf0coZCs4/edit?usp=sharing
> [2] - http://bl.ocks.org/mbostock/4339184
> [3] -
>  
> http://www.jqueryscript.net/demo/Animated-Vertical-Accordion-Menu-with-jQuery-CSS3-mtree-js/
> 
>
> --
>
>
>
> *Lahiru J Ekanayake**Software Engineer*
> Mobile : +94 (0) 77 8812629 / +94(0) 778509547
> Email : lahi...@wso2.com
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middleware.
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-03-19 Thread Lakshman Udayakantha
Hi Chathura,

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

Thanks

On Thu, Mar 17, 2016 at 12:21 AM, Chathura Dilan  wrote:

> Hi Lakshman,
>
> ​​This feature will not introduce any bugs in store or publisher, since it
> only on/off assets types.  But we have to test all scenarios of EMM and
> AppM integration.
>
> On Wed, Mar 16, 2016 at 7:03 AM, Lakshman Udayakantha 
> wrote:
>
>> [Adding Dev]
>>
>> On Wed, Mar 16, 2016 at 5:40 PM, Prabath Abeysekera 
>> wrote:
>>
>>> Hi Lakshman,
>>>
>>> Of course we should. Would you be able to move this discussion to dev@
>>> so we can discuss about any possible concerns, etc there.
>>>
>>> Cheers,
>>> Prabath
>>>
>>> On Wed, Mar 16, 2016 at 2:53 PM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
 Hi EMM Team,

 It can be turned off asset types which are not in use in latest APP
 Manager. There is a configuration called EnabledAssetTypeList in which we
 can provide only mobileapp to enable mobile apps only in publisher and
 store. So shall we do the $subject, for the sake of getting future
 improvements and bug fixes in APPM.

 @APPM Team: Are there any bad consequences of doing $subject like
 introducing new bugs to existing store and publisher in EMM(APPM feature
 version 1.1.1)?

 Thanks
 --
 Lakshman Udayakantha
 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware
 Mobile: *0714388124 <0714388124>*


>>>
>>>
>>> --
>>> Prabath Abeysekara
>>> Technical Lead
>>> WSO2 Inc.
>>> Email: praba...@wso2.com
>>> Mobile: +94774171471
>>>
>>
>>
>>
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0714388124*
>>
>>
>
>
> --
> Regards,
>
> Chatura Dilan Perera
> *Senior Software Engineer** - WSO2 Inc.*
> www.dilan.me
>



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


[Dev] Unable to create configuration context from axis2.xml - with wso2is-5.2.0-alpha

2016-03-19 Thread Shakila Sivagnanarajah
Hi all,

Error while creating the configuration context from axis2 file. In
axis2.xml, we have  but addressing module is not
defined in the file. Due to that, it's throwing AxisFault like
"org.apache.axis2.deployment.DeploymentException: The system is attempting
to engage a module that is not available: addressing". So can we remove
this from IS server (I found this in both 5.1.0 and 5.2.0-alpha)? If I
remove that module, it works fine.

Thank you
-- 
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :+94 (0) 768 856837
shak...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Deciding a file type for Json Schema

2016-03-19 Thread Nuwan Pallewela
Hi All,

I also think that it is not required to introduce a new extension for json
schema files.
The common method to differentiate JSON files from JSON Schema files is the
"$schema" field in the json.

Eg:

{
  "$schema": "http://json-schema.org/draft-04/schema#;,
  "id": "http://jsonschema.net;,
  "title" : "employees",
  "type": "object",
  .
}

Thanks,
Nuwan

On Sat, Mar 19, 2016 at 3:13 PM, Viraj Rajaguru  wrote:

> Hi all,
>
> We can define an extension for JSON schema for our reference. But we
> shouldn't restrict users from importing JSON schema files which has an
> extension other than "*.jschema". Since we are claiming that "WSO2 Data
> mapper" supports JSON schema, we should support JSON schema irrespective of
> the extension. Reason is there is no official extension defined for JSON
> schema and there are some other commonly using extensions(Eg: *.json etc.)
> for JSON schema.
>
> From the implementation perspective, we can change the name "JSCHEMA" from
> the drop down list of "Open Input Schema" dialog to "JSON Schema" and allow
> user to import JSON schema irrespective of the extension. Since we are
> building the tree using the provided JSON schema pro-grammatically, we can
> validate the schema and provide an error to user if it's not a JSON schema.
> So no need to consider the extension while the importing.
>
> [image: Inline image 1]
>
> Thanks,
> Viraj.
>
> On Thu, Mar 10, 2016 at 3:04 PM, Awanthika Senarath 
> wrote:
>
>>
>>
>> .jsc is commonly used for javascript configuration files [1] and .jsd is
>> also in use according to [2], therefore IMO it is not suitable to use it
>> for our purpose as it may introduce conflicts.
>>
>> [1] http://www.file-extensions.org/jsc-file-extension
>> [2] http://filext.com/file-extension/JSD
>>
>> Regards
>> Awanthika
>>
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>> On Thu, Mar 10, 2016 at 2:48 PM, Susinda Perera  wrote:
>>
>>>
>>>
>>> On Thu, Mar 10, 2016 at 2:41 PM, Sohani Weerasinghe 
>>> wrote:
>>>
 How about using something like .jsc ?

 When we were using avro schema we have used .avsc as the extension
 hence shall we use .jsc ?

 Thanks,
 Sohani

 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

 On Thu, Mar 10, 2016 at 2:38 PM, Awanthika Senarath  wrote:

> Hi,
>
> In migrating the Data mapper tool for ESB we need to $subject in order
> to differentiate between json schema and json files on loading from file
> system and registry.
>
 How about introducing mediatype (if not available) from the registry.
>>> and file extension something like (.jsd similar to .xsd).
>>>

> according to [1] the official mime type for json schema is "
> application/schema+json" and we can go ahead with that as the media
> type for json schema registry resources.
>
> For local file system files we can use .jschema to identify
> json-schema files.
>
> WDYT?
>
>
> [1]
> http://stackoverflow.com/questions/9391370/json-schema-file-extension
>
> Regards
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>

>>>
>>>
>>> --
>>> *Susinda Perera*
>>> Software Engineer
>>> B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
>>> Mobile:(+94)716049075
>>> Blog: susinda.blogspot.com
>>> WSO2 Inc. http://wso2.com/
>>> Tel : 94 11 214 5345 Fax :94 11 2145300
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Viraj Rajaguru
> Senior Software Engineer
> WSO2 Inc. : http://wso2.com
>
> Mobile: +94 77 3683068
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
--

*Nuwan Chamara Pallewela*


*Software Engineer*

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

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


Re: [Dev] Specifying items in the JSON Schema

2016-03-19 Thread Sohani Weerasinghe
Thanks Chanaka for the input

Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Thu, Mar 17, 2016 at 3:01 PM, Chanaka Fernando  wrote:

> I think this is typical json array representation.
>
> +1 for this approach.
>
> On Thu, Mar 17, 2016 at 2:54 PM, Sohani Weerasinghe 
> wrote:
>
>> Hi All,
>>
>> When we are specifying the items for an array, according to [1], we can
>> specify items wrapped with '[ ]' as shown below
>>
>>{
>>"items": *[* {}, {}, {} *]*
>>
>>}
>>
>> Shall we proceed with this approach? WDYT?
>>
>> [1]
>> http://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.3.1
>>
>> Thanks,
>> Sohani
>>
>> Sohani Weerasinghe
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>
>
>
> --
> Thank you and Best Regards,
> 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
>
>
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: GSoC 2016

2016-03-19 Thread Tharindu Edirisinghe
Hi Johann/Omindu,

Can you please guide Inzamam with the details of the SCIM 2.0 project or
else any suitable project that he would be interested in.

Thanks,
TharinduE

-- Forwarded message --
From: inzimam iqbal 
Date: Wed, Mar 16, 2016 at 3:57 PM
Subject: Fwd: GSoC 2016
To: tharin...@wso2.com


Hi,

I’m Inzamam, student of Faculty of Engineering, University of Moratuwa.
I’m interested in the project 20 - making the WSO2 identity server
compatible with SCIM 2.0. I’m familiar with java and developing web
services. I’m familiarizing my self with SCIM. Please direct me in the
right direction.

Thank you




-- 

Tharindu Edirisinghe
Software Engineer | WSO2 Inc
Platform Security Team
Blog : tharindue.blogspot.com
mobile : +94 775181586
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Configuring load balancing in app cloud with HA Proxy

2016-03-19 Thread Udara Liyanage
On Wed, Mar 16, 2016 at 10:49 AM, Nishadi Kirielle  wrote:

> Hi all,
> I have configured load balancing in AppCloud staging with HAProxy.
> In the configuration I have done few changes in the kubernetes service
> loadbalancer. [1]
>
> Do we create certificates for IP addresses? Though it is not invalid,
general approach is to create certificate for hot names.
If we create certificate for Ip addresses, when ip addresses change or add
a new node, we need to again create certificate.

In order to run the haproxy load balancer in kubernetes and provide support
> for https traffic, we need to add the SSL certificate specific to the node
> public IP to each node. In this deployment I have manually added the
> certificate file inside the container. It should be added to the location
> specified in the replication controller definition. [2] If we are adding a
> ca certificate as well, we can define it in the replication controller
> definition as an arg as follows
>  - --ssl-ca-cert=/ssl/ca.crt
>
> In the current deployment, we have tested a service with a single port
> exposed. This is because the service identifies whether this is exposed to
> http or https through the service annotation which is common to all exposed
> ports in the service. If we are going with that approach, in order to
> support http traffic and https traffic, we need several services. Thus,
> currently I'm attempting to deploy a service with several exposed ports.
>
> In addition, another concern is how the HAProxy load balancer itself is
> exposed to external traffic. Currently it is done through host ports. If we
> use node ports for this, it will expose the particular port in all the
> nodes. But the use of host port will only expose the particular port in the
> specified node.
>
> Appreciate your feedback on the approach taken.
>
> Thanks
>
> [1].
> https://github.com/nishadi/contrib/commit/f169044546dc8a84a359d889bb186aef83d9c422
> [2].
> https://github.com/nishadi/contrib/blob/master/service-loadbalancer/rc.yaml#L52
>
> On Mon, Mar 14, 2016 at 10:39 AM, Nishadi Kirielle 
> wrote:
>
>> Hi all,
>> +1 for going with SSL pass through approach. Once the testing with
>> staging is done, I will focus on this approach.
>>
>> Thanks
>>
>> On Mon, Mar 14, 2016 at 10:29 AM, Manjula Rathnayake 
>> wrote:
>>
>>> Hi Imesh,
>>>
>>> On Mon, Mar 14, 2016 at 10:20 AM, Imesh Gunaratne 
>>> wrote:
>>>
 Hi Manjula,

 On Mon, Mar 14, 2016 at 10:06 AM, Manjula Rathnayake  wrote:

> Hi Imesh,
>
> On Mon, Mar 14, 2016 at 9:56 AM, Imesh Gunaratne 
> wrote:
>
>>
>> On Sun, Mar 13, 2016 at 11:36 PM, Nishadi Kirielle 
>> wrote:
>>
>>> Hi all,
>>> Currently I'm working on configuring HAProxy load balancing support
>>> for app cloud.
>>> In checking the session affinity functionality in kuberenetes, I
>>> have verified the load balancing of http traffic with HAProxy. It could 
>>> be
>>> done using kubernetes contribution repo, 'service loadbalancer' [1].
>>>
>>> In order to check the load balancing with https traffic the taken
>>> approach is SSL termination.In the scenario of app cloud, kubernetes
>>> cluster is not directly exposed and the load balancer exists within the
>>> cluster. Thus the communication between the application servers and the
>>> load balancer happens internally. Although SSL termination ends the 
>>> secure
>>> connection at the load balancer, due to the above mentioned reasons, SSL
>>> termination seems to be a better solution. The reason for the use of SSL
>>> termination over SSL pass through is because of the complexity of 
>>> handling
>>> a separate SSL certificate for each server behind the load balancer in 
>>> the
>>> case of SSL pass through.
>>>
>>> -1 for this approach, IMO this has a major security risk.
>>
>> Let me explain the problem. If we offload SSL at the service load
>> balancer, all traffic beyond the load balancer will use HTTP and the
>> message content will be visible to anyone on network inside K8S. Which
>> means someone can simply start a container in K8S and trace all HTTP
>> traffic going through.
>>
>

> Below is from HA Proxy documentation[1]. AFAIU, HA Proxy to backend
> server communication happens with HTTPS enabled but not validating the
> server certificate.
>


> verify
> 
> [none|required]
>
> This setting is only available when support for OpenSSL was built in. If 
> set
> to 'none', server certificate is not verified. In the other case, The
> certificate provided by the server is verified using CAs from 'ca-file'
> and optional CRLs from 'crl-file'. If 

Re: [Dev] [Gsoc2016] [PC] Web (Javascript / D3) based BPMN editor to support a subset of commonly used BPMN constructs

2016-03-19 Thread Heshan Jayasinghe
HI,
Could you please tell me how server side involve in this project? Web
Editor can developed as a single page application and we can run it in java
server.hope this application haven't any server side development.Please let
me know if there server side development involve.if there any server side
development i willing to complete that task too.

I already complete my proposal and now I am doing final fine tuning of my
proposal.I will send it tomorrow.from today onwards I start my development
 for first iteration.

Thank you!
regards,
Heshan Jayasinghe



On Tue, Mar 15, 2016 at 9:37 AM, Isuru Wijesinghe  wrote:

> Great. My contact number :
>
>
> *0710933706*
> Thanks and Best Regards,
>
> On Tue, Mar 15, 2016 at 9:30 AM, Heshan Jayasinghe 
> wrote:
>
>> Hi Isuru,
>> My proposal 70% over now.I will send you copy soon.could you please send
>> me your contact number to get more information.
>> Thank you!
>> regards,
>> Heshan jayasinghe
>>
>>
>
>
> --
> Isuru Wijesinghe
> *Software Engineer*
> WSO2 inc : http://wso2.com
> lean.enterprise.middleware
> Mobile: 0710933706
> isur...@wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Proposal 10: [ESB/GW] Security Gateway on top of WSO2 Gateway

2016-03-19 Thread Chanaka Fernando
Hi Samitha,

This is coming due to the reason that these 2 xsd files are not in your
classpath. These 2 files should be in the Gateway product once you build
from the source. Can you search for these 2 xsd files in your gateway pack?

On Fri, Mar 18, 2016 at 3:35 PM, Samitha Palihawadana <
samitha.harshana...@cse.mrt.ac.lk> wrote:

> Hi Chanaka,
>
> The screen shot of the error I attached here.
>
> On 17 March 2016 at 23:37, Samitha Palihawadana <
> samitha.harshana...@cse.mrt.ac.lk> wrote:
>
>> Hi Chanaka,
>>
>> Find the attachment.
>>
>>
>> On 17 March 2016 at 23:15, Chanaka Fernando  wrote:
>>
>>> Hi Samitha,
>>>
>>> Can you share your camel configuration file?
>>>
>>> On Thu, Mar 17, 2016 at 9:37 PM, Samitha Palihawadana <
>>> samitha.harshana...@cse.mrt.ac.lk> wrote:
>>>
 Hi,

 When I try to run the project, although the Camel is started, routs
 were failed to start.[No routs were detected].
 Also there was an error in camel-context.xml
 
 : line 22 and 24 . saying cannot find path specified.
 So can you please help me to solve these issues ASAP so that I can
 proceed.

 [following shows the logs when I started the project.]

 2016-03-17 21:16:27 INFO  MainSupport:327 - Apache Camel 2.16.0 starting
 2016-03-17 21:16:27 INFO  DefaultCamelContext:2750 - Apache Camel
 2.16.0 (CamelContext: camel-1) is starting
 2016-03-17 21:16:27 INFO  ManagedManagementStrategy:191 - JMX is enabled
 2016-03-17 21:16:28 INFO  DefaultTypeConverter:56 - Loaded 183 type
 converters
 2016-03-17 21:16:28 INFO  DefaultRuntimeEndpointRegistry:203 - Runtime
 endpoint registry is in extended mode gathering usage statistics of all
 incoming and outgoing endpoints (cache limit: 1000)
 2016-03-17 21:16:28 INFO  DefaultCamelContext:2983 -
 AllowUseOriginalMessage is enabled. If access to the original message is
 not needed, then its recommended to turn this option off as it may improve
 performance.
 2016-03-17 21:16:28 INFO  DefaultCamelContext:2993 - StreamCaching is
 not in use. If using streams then its recommended to enable stream caching.
 See more details at http://camel.apache.org/stream-caching.html
 2016-03-17 21:16:28 INFO  DefaultCamelContext:2785 - Total 0 routes, of
 which 0 is started.
 2016-03-17 21:16:28 INFO  DefaultCamelContext:2786 - Apache Camel
 2.16.0 (CamelContext: camel-1) started in 0.630 seconds


 On 16 March 2016 at 10:33, Kasun Indrasiri  wrote:

> Hi Samitha,
>
> Also can you come up with initial set of requirements and a high level
> design doc.
>
> On Wed, Mar 16, 2016 at 1:31 AM, samitha palihawadana <
> samitha.harshana...@cse.mrt.ac.lk> wrote:
>
>> Hi Chanaka,
>>
>>  Thanks for replying me. I clone the gateway source code and build
>> it. Now I am continuing as you mention above.
>>
>>
>> On 15 March 2016 at 19:46, Chanaka Fernando 
>> wrote:
>>
>>> Adding the missing link to the gateway source code.
>>>
>>> [1] https://github.com/wso2/product-gw
>>>
>>> On Tue, Mar 15, 2016 at 7:45 PM, Chanaka Fernando >> > wrote:
>>>
 Hi Samitha,

 The basic idea of a security gateway is to build a server on top of
 the WSO2 gateway core [1] framework which secures the applications on 
 your
 enterprise system. Here are the main features of the security gateway.

- Securing your enterprise services from various attacks (XML
threat protection, etc.)
- Controlling the inward traffic to your services (Filtering,
Throttling)
- Provides security enforcement like OAuth2 to the services
- Analytics/Reporting of threats on the system


 You can clone the gateway source code and build it from the source
 and they try out some simple message flow as a first step. You can find
 samples in the same repository. Then you can study about various 
 threats
 that modern web applications are facing and come up with a project 
 proposal
 which covers the above mentioned main features and advanced threat
 protection features.

 Let us know if you need any help.

 On Tue, Mar 15, 2016 at 11:49 AM, Tishan Dahanayakage <
 tis...@wso2.com> wrote:

> Hi Samith,
>
> Thanks you for your interest in WSO2. I am adding possible project
> mentors so that they can give more insight. In the meantime can you 
> please
> elaborate your experience in programming and expertise areas so that 
> we can
> point you t relevant 

Re: [Dev] GSoc 2016-Proposal 16

2016-03-19 Thread Jasintha Dasanayake
On Thu, Mar 17, 2016 at 8:55 PM,  wrote:

> Hi Jasintha,
>
> Can I get an idea about the possible errors that might occur in the
> developer studio?? And should the error reporting plugin detect WSO2 plugin
> errors as well as Eclipse errors?
>

Basically  you should capture all type of errors happen while working with
a Developer studio plugin ,

Thanks and Regards
/Jasintha


>
> Regards
>
> Nathiesha
>
> Sent from Windows Mail
>
>


-- 

*Jasintha Dasanayake*

*Senior Software EngineerWSO2 Inc. | http://wso2.com lean
. enterprise . middleware*


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


Re: [Dev] Modifying the icon

2016-03-19 Thread Sharon David
HI Awanthika,

please find attached Icon

On Thu, Mar 17, 2016 at 3:08 PM, Awanthika Senarath 
wrote:

> Hi,
>
> Can I please have the attached icon in color [1] with filled in? currently
> it is white with black outline. I want the triangle to be filled in by
> color [1].
>
>
>
> [1] RGB 0, 125, 133
>
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>


-- 
Sharon David
Software Engineer - UI/UX  |   WSO2 Inc

+94 777 668 411  |  shar...@wso2.com  |   http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC2

2016-03-19 Thread Isuru Haththotuwa
On Fri, Mar 18, 2016 at 3:22 PM, Imesh Gunaratne  wrote:

> On Fri, Mar 18, 2016 at 2:34 PM, Lakmal Warusawithana 
> wrote:
>
>> -1. This is going to be the official dockerfiles for WSO2 products. We
>> MUST used best practices while building docker images.
>>
>> See followings;
>>
>> 1 ) Should use LTS ubuntu base image (latest)
>>
>
> Yes, I agree on this Lakmal. Will change this.
>
>> *2 ) *Need to reduce docker images size.
>>
> Yes, Chamila did a research on reducing the docker image size and found
> that the most of the extra space was taken by the multiple Docker RUN
> commands executed. At the moment we have two RUN commands; one in the base
> image and the other in the product image. If we combine these two together
> the time it takes to build the product image increases (to around 15-20
> min). That's why we did not do that change and thought of asking the user
> to do it at the time the image is being deployed in the production
> environment.
>
> However now I understand that we can still do this change and let the
> developers build another image based on the base product image and apply
> their configurations and artifacts in the new image (similar to Tomcat [1]).
>
> According to the offline discussion we had, will cancel this vote and do
> the following changes:
>
>1. Change OS base image to ubuntu:latest (latest LTS).
>2. Combine two RUN commands and reduce the image size. Might need to
>remove the WSO2 base image.
>3. Provide a symlink or any other well defined path to mount/copy
>configurations and deployable artifacts to the Carbon servers.
>
> [1]
> https://github.com/imesh/docker-for-java/blob/master/tomcat-webapp/Dockerfile
>
> Thanks
>

Tested #3, with the simple copy operation, without a file mount. A user of
wso2 Dockerfiles would need to create own dockerfile similar to [1] add the
relevant artifacts to /mnt/artifacts location using ADD/COPY. Those
artifacts will be copied to the deployment space
(CARBON_HOME/repository/deployment/server before container initialization).

[1].

FROM wso2/as-5.3.0:1.0.0
MAINTAINER isu...@wso2.com

RUN mkdir -p /mnt/artifacts/axis2services
RUN mkdir -p /mnt/artifacts/webapps
ADD axis2services/* /mnt/artifacts/axis2services
ADD webapps/* /mnt/artifacts/webapps



>
>
>
>> On Fri, Mar 18, 2016 at 9:33 AM, Chamila De Alwis 
>> wrote:
>>
>>> *[x] Stable* - Go ahead and release
>>>
>>>- Verified Licensing and headers
>>>- Verified folder and package structure
>>>- Verified the out of the box functionality (default profile, access
>>>to management console, login, brief smoke test) of the following 
>>> products.
>>>- WSO2 AM - 1.9.1, 1.10.0
>>>   - WSO2 AS - 5.3.0
>>>   - WSO2 BPS - 3.5.0
>>>   - WSO2 BRS - 2.1.0, 2.2.0
>>>   - WSO2 CEP - 4.0.0
>>>   - WSO2 DAS - 3.0.0, 3.0.1
>>>   - WSO2 DSS - 3.5.0
>>>   - WSO2 ES - 2.0.0
>>>   - WSO2 ESB - 4.9.0
>>>   - WSO2 GREG - 4.6.0, 5.1.0
>>>   - WSO2 IS - 5.1.0
>>>   - WSO2 MB - 3.0.0, 3.1.0
>>>- Verified build.sh, run.sh, and save.sh functionality for each of
>>>the above products
>>>
>>>
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Committer and PMC Member - Apache Stratos
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>> On Thu, Mar 17, 2016 at 8:44 PM, Isuru Haththotuwa 
>>> wrote:
>>>
 This is the second release candidate (RC2) of WSO2 Dockerfiles 1.0.0
 release.

 *Tag to be voted upon:*
 https://github.com/wso2/dockerfiles/tree/v1.0.0-rc2

 *Source and distribution packages:*
 https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc2

 Please download, test, and vote. The README file under each product
 directory contains instructions on how to try it out locally.

 [ ] Broken - Do not release (explain why)
 [ ] Stable - Go ahead and release

 This vote will be open for 72 hours or as needed.

 --
 Thanks and Regards,

 Isuru H.
 +94 716 358 048* *



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


>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Lakmal Warusawithana
>> Director - Cloud Architecture; WSO2 Inc.
>> Mobile : +94714289692
>> Blog : http://lakmalsview.blogspot.com/
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.io
> Lean . Enterprise . Middleware
>
>
> ___
> Dev mailing list
> 

Re: [Dev] APIM Getting SSLPeerUnverifiedException after upgrading to kernel 4.4.4

2016-03-19 Thread Sam Sivayogam
HI All,

Had a offline chat with Pulasthi and got to know that in IS 5.0.8 there was
opensaml upgrade from 2.4.1 to 2.6.4. After going through [1] got to know
that there is a hostname verification introduced in opensaml 2.6.4 which is
not there in opensaml 2.4.1 and this is why we are getting the above issue
after moving to carbon identity 5.0.8.

We are using *CommonsHTTPTransportSender * to call key manager internally
and from what I understood if we set the *HostnameVerifier *parameter
to *AllowAll
*we should be able to get rid of this issue, But still we are getting this
issue. Does anyone know why HostnameVerifier prameter is not working as
expected with CommonsHTTPTransportSender ?

[1]
http://grepcode.com/file_/repo1.maven.org/maven2/org.apache.servicemix.bundles/org.apache.servicemix.bundles.opensaml/2.4.1_2/org/opensaml/ws/soap/client/http/TLSProtocolSocketFactory.java/?v=diff=2.6.4_1

Thanks,

On Thu, Mar 17, 2016 at 11:12 AM, Sam Sivayogam  wrote:

> Hi All,
>
> I'm trying to to upgrade APIM's Crabon kernel to 4.4.4. during the kernel
> upgrade i also upgraded the following
> carbon identity from 5.0.7 to 5.08
> carbon commons from 4.4.8 to 4.5.2
> wso2 rampart from 1.6.1-wso2v16 to 1.6.1-wso2v18
>
> After the upgrade, when I try to generate a key from the API Store I'm
> getting the error [1] . I was able to get rid of this issue after replacing
> APIKeyValidator ip with localhost in api-manager.xml.
> Please note that this issue is occuring after the kernel upgrade before
> that we didn't encounter this issue. what i would like to know to know is
> there is any changes in kernel 4.4.4 or rampart 1.6.1-wso2v18 to do the
> hostname verification by default?
>
> [1] [2016-03-17 11:08:35,995]  INFO - HTTPSender Unable to sendViaPost to
> url[https://10.100.5.192:9443//services/APIKeyMgtSubscriberService]
> javax.net.ssl.SSLPeerUnverifiedException: SSL peer failed hostname
> validation for name: 10.100.5.192
> at
> org.opensaml.ws.soap.client.http.TLSProtocolSocketFactory.verifyHostname(TLSProtocolSocketFactory.java:233)
> at
> org.opensaml.ws.soap.client.http.TLSProtocolSocketFactory.createSocket(TLSProtocolSocketFactory.java:194)
> at
> org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
> at
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
> at
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
> at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
> at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
> at
> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:632)
> at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)
> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
> at
> org.wso2.carbon.apimgt.keymgt.stub.subscriber.APIKeyMgtSubscriberServiceStub.retrieveOAuthApplication(APIKeyMgtSubscriberServiceStub.java:1389)
> at
> org.wso2.carbon.apimgt.keymgt.client.SubscriberKeyMgtClient.getOAuthApplication(SubscriberKeyMgtClient.java:89)
> at
> org.wso2.carbon.apimgt.impl.AMDefaultKeyManagerImpl.retrieveApplication(AMDefaultKeyManagerImpl.java:224)
> at
> org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.getClientOfApplication(ApiMgtDAO.java:2338)
> at
> org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.getOAuthApplications(ApiMgtDAO.java:2302)
> at
> org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.getApplications(ApiMgtDAO.java:4434)
> at
> org.wso2.carbon.apimgt.impl.APIConsumerImpl.getApplications(APIConsumerImpl.java:2813)
> at
> org.wso2.carbon.apimgt.impl.UserAwareAPIConsumer.getApplications(UserAwareAPIConsumer.java:36)
> at
> org.wso2.carbon.apimgt.hostobjects.APIStoreHostObject.getAllSubscriptions(APIStoreHostObject.java:2416)
> at
> org.wso2.carbon.apimgt.hostobjects.APIStoreHostObject.jsFunction_getAllSubscriptionsOfApplication(APIStoreHostObject.java:2659)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)

Re: [Dev] Configuring load balancing in app cloud with HA Proxy

2016-03-19 Thread Nishadi Kirielle
Hi,
The IP addresses have been used to generate certs only for the development
purposes. We'll update these with proper certs when it is going for
production.
Thanks

On Thu, Mar 17, 2016 at 12:03 PM, Udara Liyanage  wrote:

>
>
> On Wed, Mar 16, 2016 at 10:49 AM, Nishadi Kirielle 
> wrote:
>
>> Hi all,
>> I have configured load balancing in AppCloud staging with HAProxy.
>> In the configuration I have done few changes in the kubernetes service
>> loadbalancer. [1]
>>
>> Do we create certificates for IP addresses? Though it is not invalid,
> general approach is to create certificate for hot names.
> If we create certificate for Ip addresses, when ip addresses change or add
> a new node, we need to again create certificate.
>
> In order to run the haproxy load balancer in kubernetes and provide
>> support for https traffic, we need to add the SSL certificate specific to
>> the node public IP to each node. In this deployment I have manually added
>> the certificate file inside the container. It should be added to the
>> location specified in the replication controller definition. [2] If we are
>> adding a ca certificate as well, we can define it in the replication
>> controller definition as an arg as follows
>>  - --ssl-ca-cert=/ssl/ca.crt
>>
>> In the current deployment, we have tested a service with a single port
>> exposed. This is because the service identifies whether this is exposed to
>> http or https through the service annotation which is common to all exposed
>> ports in the service. If we are going with that approach, in order to
>> support http traffic and https traffic, we need several services. Thus,
>> currently I'm attempting to deploy a service with several exposed ports.
>>
>> In addition, another concern is how the HAProxy load balancer itself is
>> exposed to external traffic. Currently it is done through host ports. If we
>> use node ports for this, it will expose the particular port in all the
>> nodes. But the use of host port will only expose the particular port in the
>> specified node.
>>
>> Appreciate your feedback on the approach taken.
>>
>> Thanks
>>
>> [1].
>> https://github.com/nishadi/contrib/commit/f169044546dc8a84a359d889bb186aef83d9c422
>> [2].
>> https://github.com/nishadi/contrib/blob/master/service-loadbalancer/rc.yaml#L52
>>
>> On Mon, Mar 14, 2016 at 10:39 AM, Nishadi Kirielle 
>> wrote:
>>
>>> Hi all,
>>> +1 for going with SSL pass through approach. Once the testing with
>>> staging is done, I will focus on this approach.
>>>
>>> Thanks
>>>
>>> On Mon, Mar 14, 2016 at 10:29 AM, Manjula Rathnayake 
>>> wrote:
>>>
 Hi Imesh,

 On Mon, Mar 14, 2016 at 10:20 AM, Imesh Gunaratne 
 wrote:

> Hi Manjula,
>
> On Mon, Mar 14, 2016 at 10:06 AM, Manjula Rathnayake <
> manju...@wso2.com> wrote:
>
>> Hi Imesh,
>>
>> On Mon, Mar 14, 2016 at 9:56 AM, Imesh Gunaratne 
>> wrote:
>>
>>>
>>> On Sun, Mar 13, 2016 at 11:36 PM, Nishadi Kirielle >> > wrote:
>>>
 Hi all,
 Currently I'm working on configuring HAProxy load balancing support
 for app cloud.
 In checking the session affinity functionality in kuberenetes, I
 have verified the load balancing of http traffic with HAProxy. It 
 could be
 done using kubernetes contribution repo, 'service loadbalancer' [1].

 In order to check the load balancing with https traffic the taken
 approach is SSL termination.In the scenario of app cloud, kubernetes
 cluster is not directly exposed and the load balancer exists within the
 cluster. Thus the communication between the application servers and the
 load balancer happens internally. Although SSL termination ends the 
 secure
 connection at the load balancer, due to the above mentioned reasons, 
 SSL
 termination seems to be a better solution. The reason for the use of 
 SSL
 termination over SSL pass through is because of the complexity of 
 handling
 a separate SSL certificate for each server behind the load balancer in 
 the
 case of SSL pass through.

 -1 for this approach, IMO this has a major security risk.
>>>
>>> Let me explain the problem. If we offload SSL at the service load
>>> balancer, all traffic beyond the load balancer will use HTTP and the
>>> message content will be visible to anyone on network inside K8S. Which
>>> means someone can simply start a container in K8S and trace all HTTP
>>> traffic going through.
>>>
>>
>
>> Below is from HA Proxy documentation[1]. AFAIU, HA Proxy to backend
>> server communication happens with HTTPS enabled but not validating the
>> server certificate.
>>
>
>
>> verify
>> 

Re: [Dev] [VOTE] Release WSO2 Puppet Modules 1.1.1 RC1

2016-03-19 Thread Isuru Haththotuwa
Tested the following:

   - License verification using rat plugin
   - Testing of single node deployments of following products:
  1. APIM 1.9.1
  2. IS 5.0.0
  3. DAS 3.0.1
  4. DSS 3.5.0
  5. ES 2.0.0

[x] Stable - Go ahead and release


On Thu, Mar 17, 2016 at 3:15 PM, Chamila De Alwis  wrote:

> Hi,
>
> This is RC1 for WSO2 Puppet Modules 1.1.1. Please download, verify, and
> vote. The vote will be open for 72 hours.
>
> [ ] Broken - Do not release (explain why)
> [ ] Stable - Go ahead and release
>
> This release contains minor fixes to the Puppet templates and the Hiera
> data.
>
> *This release is based on the following tag:*
> https://github.com/wso2/puppet-modules/releases/tag/1.1.1-rc1
>
> *Release verification guide can be found at:*
> https://github.com/wso2/puppet-modules/wiki/Verifying-Puppet-Modules
>
> *Source and distribution packages can be downloaded at:*
> https://github.com/wso2/puppet-modules/releases/tag/1.1.1-rc1
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: [ESB] Regarding an Error message

2016-03-19 Thread Nuwan Wimalasekara
Hi Ravindi,

Why are you using both send(in outSequence) and respond(in iterate)
mediators?

Thanks,
Nuwanw

On Thu, Mar 17, 2016 at 8:54 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Ravindi,
>
> AFAIU this error happens due to the client gets a HTTP 202 accept
> response, generated by ESB before it sends the original response from the
> backend. Therefore ESB can't send the original response to the client as it
> has already sent a "HTTP 202 accept" response.
>
>
> On Thu, Mar 17, 2016 at 8:30 PM, Ravindi De silva 
> wrote:
>
>> Hi  all,
>>
>>
>> I tried writing a proxy service in the ESB to get the project details
>> from jira using getProject method and then create that project in redmine
>> using createProject if it is not already created in it. I have used the
>> jira and redmine connectors in ESB. The proxy I have written is shown in
>> [1].
>>
>> When I send the request to the proxy using SoapUI I get an error [2]. But
>> the project of which the details were taken from jira if not present in
>> redmine has been created in it. How can I fix the issue of getting an error
>> ?
>>
>>
>> [1]
>> http://ws.apache.org/ns/synapse;
>>name="newConnectJiraRedmine"
>>transports="http,https"
>>statistics="disable"
>>trace="disable"
>>startOnLoad="true">
>>
>>   
>>  > expression="json-eval($.responseType)"/>
>>  
>>  
>>  
>>  
>>  
>>  > expression="json-eval($.authSourceId)"/>
>>  
>>  
>>  > expression="json-eval($.identifier)"/>
>>  > expression="json-eval($.description)"/>
>>  
>>  
>>  
>>  
>>  > expression="json-eval($.priorityId)"/>
>>  
>>  > expression="json-eval($.categoryId)"/>
>>  > expression="json-eval($.fixedVersionId)"/>
>>  > expression="json-eval($.assignedToId)"/>
>>  > expression="json-eval($.parentIssueId)"/>
>>  > expression="json-eval($.customFields)"/>
>>  > expression="json-eval($.watcherUserIds)"/>
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  > expression="json-eval($.activityId)"/>
>>  
>>  > expression="json-eval($.attachmentId)"/>
>>  
>>  
>>  
>>  
>>  >expression="json-eval($.jiraProjectName)"
>>scope="operation"/>
>>  > type="STRING"/>
>>  >value="ravindi123"
>>scope="default"
>>type="STRING"/>
>>  >value="http://192.168.57.131:8080;
>>scope="default"
>>type="STRING"/>
>>  >value="TESPROJ"
>>scope="default"
>>type="STRING"/>
>>  >value="http://anthonyrava.m.redmine.org/;
>>scope="default"
>>type="STRING"/>
>>  >value="7855e5ee84e3f97b02e23ea96f3d69f740399860"
>>scope="default"
>>type="STRING"/>
>>  > type="STRING"/>
>>  
>> {$ctx:username}
>> {$ctx:password}
>> {$ctx:uri}
>>  
>>  
>> {$ctx:projectIdOrKey}
>>  
>>  
>>  > expression="json-eval($.description)"/>
>>  
>>  
>> > expression="get-property('jPName')"/>
>> > expression="get-property('jPDecscription')"/>
>> > expression="get-property('jPId')"/>
>>  
>>  
>> {$ctx:apiUrl}
>> {$ctx:apiKey}
>> {$ctx:responseType}
>>  
>>  
>>  >   id="activityTypes"
>>   expression="//projects"
>>   sequential="true">
>> 
>>
>>   
>>   
>>  > expression="get-property('jPName')"/>
>>  > expression="//identifier"/>
>>  > expression="get-property('rPName')"/>
>>   
>>   > xpath="get-property('jPName')=get-property('rPName')">
>>  
>> 
>>> expression="//name"/>
>>> expression="//identifier"/>
>> 
>>  
>>  
>> 
>>> expression="//identifier"/>
>> 
>> 
>>{$ctx:apiUrl}
>>{$ctx:apiKey}
>>
>> {$ctx:responseType}
>> 
>> 
>>
>> {$ctx:jPDecscription}
>>  

Re: [Dev] Retrieving OAuth applications by consumer key

2016-03-19 Thread Pushpalanka Jayawardhana
Hi Vinod,

This[1], should cater for your requirement.

[1] -
https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/master/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth/OAuthAdminService.java#L142-L162

Thanks,
Pushpalanka.
-- 
Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
Mobile: +94779716248
Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka


On Fri, Mar 18, 2016 at 12:34 PM, Vinod Kavinda  wrote:

> Hi IS team,
> Is there any API or Admin service to get the registered oAuth application
> information using the consumer key?
> This is required for a APIM, IS integration as a third party key manager.
> I found that it is possible to get all the application data from
> oAuthAdminService. This won't be a proper solution in performance
> wise since we have to iterate through the list.
>
>
> Please help me on this.
>
> Regards,
> Vinod
>
> --
> 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


Re: [Dev] Create a new API version in ESB

2016-03-19 Thread Udara Rathnayake
Hi Chanaka,

Thanks for the response.

So we need to have different names right(API1 and API2)?
I'm trying to create an API with the same name but with a different version.


On Wed, Mar 16, 2016 at 9:48 PM, Chanaka Fernando  wrote:

> Hi Udara,
>
> You need to append the version to your API context as mentioned below.
>
> API1 context - /test/1.0.0
>
> API2 context - /test/1.0.1
>
> Here is a sample configuration.
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
>
>
> On Thu, Mar 17, 2016 at 12:47 AM, Udara Rathnayake 
> wrote:
>
>> Hi,
>>
>> I tried creating a new version of an existing API, just by updating the
>> context as explained here[1]. API name untouched. Seems this is not
>> possible[2].
>>
>> Is there any other way to overcome this while preserving the previous
>> version?
>>
>> [1]  https://docs.wso2.com/display/ESB481/Creating+APIs
>> [2]
>> *​TID: [0] [ESB] [2016-03-16 15:01:01,309] ERROR
>> {org.wso2.carbon.rest.api.service.RestApiAdmin} -  Error trying to add the
>> API to the ESB configuration : notificationAPI:: Duplicate resource
>> definition by the name: *
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *notificationAPI{org.wso2.carbon.rest.api.service.RestApiAdmin}org.apache.synapse.SynapseException:
>> Duplicate resource definition by the name: CNEADHOCESB2QAPI2at
>> org.apache.synapse.config.SynapseConfiguration.handleException(SynapseConfiguration.java:1515)
>> at
>> org.apache.synapse.config.SynapseConfiguration.addAPI(SynapseConfiguration.java:351)
>> at
>> org.wso2.carbon.rest.api.service.RestApiAdmin.addApi(RestApiAdmin.java:640)
>> at
>> org.wso2.carbon.rest.api.service.RestApiAdmin.addApiFromString(RestApiAdmin.java:77)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)at
>> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
>> at
>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
>> at
>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver*
>> .java:40)​
>>
>> --
>> Regards,
>> UdaraR
>>
>
>
>
> --
> Thank you and Best Regards,
> 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
>
>
>
>
>


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


Re: [Dev] Modifying the icon

2016-03-19 Thread Awanthika Senarath
Thanks Sharon.

Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Thu, Mar 17, 2016 at 3:24 PM, Sharon David  wrote:

> HI Awanthika,
>
> please find attached Icon
>
> On Thu, Mar 17, 2016 at 3:08 PM, Awanthika Senarath 
> wrote:
>
>> Hi,
>>
>> Can I please have the attached icon in color [1] with filled in?
>> currently it is white with black outline. I want the triangle to be filled
>> in by color [1].
>>
>>
>>
>> [1] RGB 0, 125, 133
>>
>>
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>
>
> --
> Sharon David
> Software Engineer - UI/UX  |   WSO2 Inc
>
> +94 777 668 411  |  shar...@wso2.com  |   http://wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Introduction for GSoC

2016-03-19 Thread CD Athuraliya
Hi Tanusha,

For Proposal 5, if you are already familiar with basic NLP concepts please
check available NLP functionalists in libraries such as Apache Spark [1],
Deeplearning4j [2], Apache OpenNLP [3] and Stanford CoreNLP [4]. The
objective of this project is to unify existing NLP tools into one solution
with possible extensions and relevant UI elements. By going through those
libraries you can select feasible NLP tools for the project when you are
writing the proposal. Please let us know if you need more information on
this.

[1] http://spark.apache.org/
[2] http://deeplearning4j.org/
[3] https://opennlp.apache.org/
[4] http://stanfordnlp.github.io/CoreNLP/

Regards,
CD

On Thu, Mar 17, 2016 at 2:25 PM, TanJay  wrote:

> I am interested in following two,Proposal 3: [ML] Visual (Deep) Neural
> Network Builder
> Proposal 5: [ML] Natural Language Processing Toolbox for WSO2 Machine
> Learner
>
> but I am trying for the
> Proposal 5: [ML] Natural Language Processing Toolbox for WSO2 Machine
> Learner
>
> On 3/17/2016 2:21:15 PM, CD Athuraliya  wrote:
> [removed architecture@]
>
> Hi Tanusha,
>
> Thanks for your interest on WSO2 projects. If you can mention the project
> you are interested in, we will be able to further assist you. In the
> meantime you can get familiar with ML product by downloading the product
> and going through the ML workflow. Also you can look at the product
> documentation [1].
>
> [1] *https://docs.wso2.com/display/ML110/Introducing+Machine+Learner
> *
>
> Regards,
> CD
>
> On Thu, Mar 17, 2016 at 2:09 PM, TanJay  wrote:
>
>> Hi,
>>
>> I am Tanusha Jayasinghe. I’m from IIT Campus. I have been an working on
>> some projects in github for a while. (github link:
>> https://github.com/TanJay). I am very passionate on opensource and done
>> some commits to it. I am willing to work on a project for wso2. I hope to
>> expand my network with all the developers here.
>>
>> I am pretty confident on coding skills in Java, Python and also for ml I
>> have done Matlab/Octave.
>>
>> As in web I have done web building myself mostly on heroku and openshift
>> using nodejs, django, and
>>
>> HTML5, CSS, JS of course. and familiar with SaSS, Gruntjs and all the
>> other new technologies.
>>
>> I have developed several software for small companies as a before
>> becoming a student at IIT.
>>
>> I am also enrolled as IEEE Student member.
>>
>> I have done my advanced level in Mathematics field that would help me to
>> go on algorithmic or problem solving type situations.
>>
>> I have studied and done research on Machine Learning and Natural
>> Language Processing for past 2 years from mit online and mostly on
>> coursera.
>>
>> Thank you.
>>
>>
>> 
>>  Scanned
>> for viruses. www.avast.com
>> 
>
>
>
>
> --
> *CD Athuraliya*
> Software Engineer
> WSO2, Inc.
> lean . enterprise . middleware
> Mobile: +94 716288847 <94716288847>
> LinkedIn  | Twitter
>  | Blog
> 
>
>
>
> 
>  Scanned
> for viruses. www.avast.com
> 
>



-- 
*CD Athuraliya*
Software Engineer
WSO2, Inc.
lean . enterprise . middleware
Mobile: +94 716288847 <94716288847>
LinkedIn  | Twitter
 | Blog

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


Re: [Dev] wso2emm enroll agent problem

2016-03-19 Thread Niranjan Karunanandham
Hi Kasun,

As per her previous reply, she had faced an issue when trying wso2emm-2.0.1
in windows 8.1, but EMM 1.1.0 is working in Windows.

@Kaouther: Can you mention the issue you got when trying EMM 2.0.1 in
Windows 8.1?

Regards,
Nira

On Thu, Mar 17, 2016 at 1:51 PM, Kasun Dananjaya Delgolla 
wrote:

> Hi Kaouther,
>
> Why don't you use our latest release? You can check it on our product
> page[1]. There, you can access all the necessary resources such as
> documentation, product pack etc.
>
> [1] -http://wso2.com/products/enterprise-mobility-manager/
>
> Thanks
>
> On Thu, Mar 17, 2016 at 1:47 PM, Niranjan Karunanandham  > wrote:
>
>> Hi Kaouther,
>>
>> I believe you are checking the source code of the EMM server. Here the
>> issue is that the installation fails in the Android side. Therefore you
>> need to modify the emm android agent source code which is available at [1]
>> and build the agent. This is available in the EMM 1.1.0 documentation [2].
>>
>> [1] - https://github.com/wso2/emm-agent-android/tree/1.1.0
>> [2] - https://docs.wso2.com/display/EMM110/Android+Configurations
>>
>> Regards,
>> Nira
>>
>> On Thu, Mar 17, 2016 at 1:43 PM, kaouther kais 
>> wrote:
>>
>>> Good morning sir,
>>>
>>> Yes i check this directory but all the files are javascript not java.
>>> I check this
>>> path wso2emm-1.1.0\repository\deployment\server\jaggeryapps\emm\api  is it ?
>>>
>>> Thank you.
>>> Cordially
>>> ᐧ
>>>
>>> 2016-03-17 1:05 GMT+01:00 Kasun Dananjaya Delgolla :
>>>
 Hi Kaouther,

 Root.java is under api package.

 Thanks
 On Mar 16, 2016 11:48 PM, "kaouther kais" 
 wrote:

> yes i found this solution bypass the root test but i didn't found the
> location of this file Root.java
>
> Thank you.
> Cordially.
> ᐧ
>
> 2016-03-16 19:02 GMT+01:00 kaouther kais :
>
>> yes i found this solution bypass the root test but i didn't found the
>> location of this file Root.java
>>
>> Thank you.
>> Cordially.
>> ᐧ
>>
>> 2016-03-16 18:57 GMT+01:00 kaouther kais :
>>
>>> yes at the first i tried with wso2emm-2.0.1 but it isn't worked with
>>> windows 8.1  so i worked with 1.1.0 version and it worked .
>>>
>>>
>>> Thank you.
>>> Cordially
>>> ᐧ
>>>
>>> 2016-03-16 18:45 GMT+01:00 Niranjan Karunanandham >> >:
>>>
 Hi Kaouther,

 I assume that you are trying to enroll an Android device, by
 default it does not allow for root devices. AFAIK you need to modify 
 the
 android agent (as mentioned n [1]) in order to install this on a rooted
 device.

 Btw WSO2 EMM 1.1.0 was released was released more than 1 year ago.
 The latest version is EMM 2.0.1 which you can download from [2]. I 
 would
 recommend you to try the latest version.

 [1] -
 http://stackoverflow.com/questions/25447254/wso2-emm-agent-root-detected

 [2] - http://wso2.com/products/enterprise-mobility-manager/

 Regards,
 Nira

 On Wed, Mar 16, 2016 at 8:11 PM, kaouther kais <
 kaouther.k...@gmail.com> wrote:

> good evening ,
>
> I'm a trainee and i work on wso2 products . i installed wso2emm
> version 1.1.0 and i try to add user when i install the wso2 agent i 
> have a
> problem that he tell me that the access is denied and i'm not allowed 
> to
> enroll because the device is rooted . Igoogled this problem and i 
> found
> that i must to modify the file Root.java to bypass the root test but i
> don't found the location of this file.
> Can you kelp me.
>
> Thank you.
> Cordially.
> ᐧ
>
> Cet e-mail a été envoyé depuis un ordinateur protégé par Avast.
> www.avast.com
> 
> <#6013471201841962633_570455344175177105_5216144024176966496_-7028730482454991950_6589591451166049427_7140399823631230600_7975219371273777502_3087490155693127537_1613594216912911062_DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>



 --

 *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
>>
>
>
>
> --
> Kasun Dananjaya Delgolla
>
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Tel:  +94 11 214 5345
> Fax: +94 11 

Re: [Dev] Proposal 8: [ESB/GW] HTTP Load balancer on top of WSO2 Gateway - Reg

2016-03-19 Thread Isuru Ranawaka
Hi Venkat,

I have gone through your usecases document and it seems good.We need to
figure out a way how we can actually implement those usecases. As Kasun
mentioned please look in to carbon transport implementation and try to
write a simple engine . Basically we need figure out best way for configure
transport according to configurations given through engine . for  example
we need to configure transport for SSL support and those informations are
published by loadbalancer  engine to the transport any how those need to be
loosely couple with transport implementation .

thanks

On Tue, Mar 15, 2016 at 8:15 PM, Venkat Raman  wrote:

> Hi Kasun,
>
> Thank you for your valuable guidance.  I started drafting my proposal.
> I'll look into it and come up with design and share it with you.
>
>
>
> *Thanks,*
> *Venkat.*
>
> On Tue, Mar 15, 2016 at 7:53 PM, Kasun Indrasiri  wrote:
>
>> Hi Venkat,
>>
>> May be you should start going through the carbon http transport and GW
>> code[1]. Please not that we won't be using Camel as the message routing
>> engine for the loadbalancer as it too heavy weight. I think,
>> understanding[2] about OSGI and how carbon transport/messaging/engine works
>> together is important at this point.
>>
>> [1] source code locations
>> https://github.com/wso2/carbon-transports
>> https://github.com/wso2/carbon-messaging
>> https://github.com/wso2/product-gw
>>
>> [2]
>> http://shafreenanfar.blogspot.com/2016/03/write-your-own-engine-for-wso2-gw.html
>>
>> On Sun, Mar 13, 2016 at 10:04 AM, Venkat Raman 
>> wrote:
>>
>>> Hi Isuru & Kasun,
>>>
>>> Good morning.  Kindly find the attached document for comparison between
>>> few existing LBs.
>>>
>>> Looking forward to hear feedback from you regarding my initial design.
>>>
>>> Thanks,
>>> *Venkat.*
>>> Hi Isuru & Kasun,
>>>
>>> Kindly find the attached USE CASE document for HTTP Load balancing.
>>> This document also includes, my basic outline of deliverables that I am
>>> planning for this GSoC 2016.
>>>
>>> Will be eagerly waiting for your response and guidance.
>>>
>>> I have also signed up for the Proposal writing guidance conference that
>>> you are organizing.  Will I be able to attend it through video
>>> conferencing.?
>>>
>>>
>>>
>>>
>>> *Thanks,*
>>> *Venkat.*
>>>
>>> On Fri, Mar 11, 2016 at 10:54 AM, Venkat Raman 
>>> wrote:
>>>
 Hi Isuru,

 Thank you.  By EOD I'll also mail you these use cases pertained to HTTP
 Load Balancing.

 Thanks,
 Venkat.
 On Mar 11, 2016 10:49 AM, "Isuru Ranawaka"  wrote:

> Hi Venkat,
>
> Thanks for the great enthusiasm.  We will look in to that and let you
> know soon.
>
> On Fri, Mar 11, 2016 at 10:30 AM, Venkat Raman 
> wrote:
>
>> Hi Isuru & Kasun,
>>
>> Good morning.  Is the initial design diagram that I mailed is good ?
>> Eagerly awaiting for your response and guidance.
>>
>>
>>
>>
>>
>>
>> *Thanks,*
>> *Venkat.*
>>
>> On Wed, Mar 9, 2016 at 10:03 PM, Venkat Raman 
>> wrote:
>>
>>> Hi Isuru & Kasun,
>>>
>>> Thank you for sharing the slide.  It is of great help. I have done
>>> lots of reading and also learned about many new and fascinating
>>> technologies.  I have come up with a set of features and also initial
>>> design diagram. You can find it in the document and image attached 
>>> below.
>>> I came up with this architecture design with reference to the design 
>>> given
>>> in slide provided by Kasun.
>>>
>>> I am so eager about this project and I am interested to design and
>>> deliver it with high quality.  Kindly go through the attached document,
>>> guide and correct me appropriately.  Once I satisfy your design and 
>>> feature
>>> expectation, I will provide comparison between existing LBs and our LB.
>>>
>>> Will be looking forward to your guidance and corrections.
>>> Meanwhile, I'll go through the code in much deeper way and also evaluate
>>> few existing LBs for feature comparison.
>>>
>>>
>>>
>>>
>>> *Thanks,*
>>> *Venkat.*
>>>
>>> On Wed, Mar 9, 2016 at 10:55 AM, Kasun Indrasiri 
>>> wrote:
>>>
 Hi Venkat,

 Please check [1]. Hope that help. Also, can you please come up with
 the use cases which are specific to HTTP load balancing?

 [1]
 http://www.slideshare.net/kasun04/wso2-gateway?qid=9c8d89a4-e982-4883-87a8-ac2dca7bf223==_search=1

 On Fri, Mar 4, 2016 at 8:12 PM, Venkat Raman 
 wrote:

> Hi Isuru,
>
> Thank you this document helped me to understand requirements of
> this Proposal in a much clear way.
>
> Yesterday I 

Re: [Dev] Deciding a file type for Json Schema

2016-03-19 Thread Viraj Rajaguru
Hi all,

We can define an extension for JSON schema for our reference. But we
shouldn't restrict users from importing JSON schema files which has an
extension other than "*.jschema". Since we are claiming that "WSO2 Data
mapper" supports JSON schema, we should support JSON schema irrespective of
the extension. Reason is there is no official extension defined for JSON
schema and there are some other commonly using extensions(Eg: *.json etc.)
for JSON schema.

>From the implementation perspective, we can change the name "JSCHEMA" from
the drop down list of "Open Input Schema" dialog to "JSON Schema" and allow
user to import JSON schema irrespective of the extension. Since we are
building the tree using the provided JSON schema pro-grammatically, we can
validate the schema and provide an error to user if it's not a JSON schema.
So no need to consider the extension while the importing.

[image: Inline image 1]

Thanks,
Viraj.

On Thu, Mar 10, 2016 at 3:04 PM, Awanthika Senarath 
wrote:

>
>
> .jsc is commonly used for javascript configuration files [1] and .jsd is
> also in use according to [2], therefore IMO it is not suitable to use it
> for our purpose as it may introduce conflicts.
>
> [1] http://www.file-extensions.org/jsc-file-extension
> [2] http://filext.com/file-extension/JSD
>
> Regards
> Awanthika
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Thu, Mar 10, 2016 at 2:48 PM, Susinda Perera  wrote:
>
>>
>>
>> On Thu, Mar 10, 2016 at 2:41 PM, Sohani Weerasinghe 
>> wrote:
>>
>>> How about using something like .jsc ?
>>>
>>> When we were using avro schema we have used .avsc as the extension hence
>>> shall we use .jsc ?
>>>
>>> Thanks,
>>> Sohani
>>>
>>> Sohani Weerasinghe
>>> Software Engineer
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile  : +94 716439774
>>> Blog :http://christinetechtips.blogspot.com/
>>> Twitter  : https://twitter.com/sohanichristine
>>>
>>> On Thu, Mar 10, 2016 at 2:38 PM, Awanthika Senarath 
>>> wrote:
>>>
 Hi,

 In migrating the Data mapper tool for ESB we need to $subject in order
 to differentiate between json schema and json files on loading from file
 system and registry.

>>> How about introducing mediatype (if not available) from the registry.
>> and file extension something like (.jsd similar to .xsd).
>>
>>>
 according to [1] the official mime type for json schema is "
 application/schema+json" and we can go ahead with that as the media
 type for json schema registry resources.

 For local file system files we can use .jschema to identify json-schema
 files.

 WDYT?


 [1]
 http://stackoverflow.com/questions/9391370/json-schema-file-extension

 Regards
 Awanthika Senarath
 Software Engineer, WSO2 Inc.
 Mobile: +94717681791



>>>
>>
>>
>> --
>> *Susinda Perera*
>> Software Engineer
>> B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
>> Mobile:(+94)716049075
>> Blog: susinda.blogspot.com
>> WSO2 Inc. http://wso2.com/
>> Tel : 94 11 214 5345 Fax :94 11 2145300
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Viraj Rajaguru
Senior Software Engineer
WSO2 Inc. : http://wso2.com

Mobile: +94 77 3683068
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fix the error message fund->found

2016-03-19 Thread Srinath Perera
ah yes using 4.0.0

--Srinath

On Mon, Mar 14, 2016 at 9:12 AM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

>
>
> On Mon, Mar 14, 2016 at 8:18 AM, Srinath Perera  wrote:
>
>> Exception in thread "main"
>> org.wso2.siddhi.core.exception.QueryNotExistException: No query fund
>> with name: WordFreqByDay
>>
>
> We have fixed this from Siddhi 3.0.5 version.. Are you using older Siddhi
> version ?
>
> Thanks,
> Mohan
>
>
>>
>> --
>> 
>> Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
>> Site: http://people.apache.org/~hemapani/
>> Photos: http://www.flickr.com/photos/hemapani/
>> Phone: 0772360902
>>
>
>
>
> --
> *V. Mohanadarshan*
> *Senior Software Engineer,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com
> phone:(+94) 771117673
>



-- 

Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
Site: http://people.apache.org/~hemapani/
Photos: http://www.flickr.com/photos/hemapani/
Phone: 0772360902
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [PET] Removing element using script mediator

2016-03-19 Thread Kalyani Yogeswaranathan
Hi Malaka,

I have done as you mentioned add the elements as needed.

Thanks for the reply.

On Fri, Mar 11, 2016 at 9:32 PM, Malaka Silva  wrote:

> Hi Kalyani,
>
> You can use script mediator to do this [1].
>
> However best I think is to add the elements as needed rather than adding
> them and deleting them.
>
> You can try the enrich mediator or script mediator again to add xml tags.
> [2]
>
> [1]
> http://mrmalakasilva.blogspot.com/2014/03/how-to-remove-xml-elements-using-script.html
> [2] https://docs.wso2.com/display/ESB490/Script+Mediator
>
> On Fri, Mar 11, 2016 at 1:28 PM, Kalyani Yogeswaranathan  > wrote:
>
>> Hi All,
>>
>> I'm working on Google contacts connector. For create Contact method we
>> need to set the request format as,
>>
>> http://www.w3.org/2005/Atom;
>> xmlns:gd="http://schemas.google.com/g/2005;>
>> http://schemas.google.com/g/2005#kind;
>>term="http://schemas.google.com/contact/2008#contact"/>
>> $1
>> 
>> $2
>> $3
>> $4
>> 
>> http://schemas.google.com/g/2005#work;
>>   primary="true"
>>   address="$ctx:workEmail" displayName="E. Bennet"/>
>> http://schemas.google.com/g/2005#home;
>>   address="$ctx:homeEmail"/>
>> http://schemas.google.com/g/2005#work;
>> primary="true">$7
>> > rel="http://schemas.google.com/g/2005#home;>$8
>> > rel="http://schemas.google.com/g/2005#work;
>> primary="true">
>> $9
>> $10
>> $11
>> $12
>> $13
>> $14
>> 
>> 
>>
>> Here some parameters are optional. If it is optional parameter and value
>> is not set, it's not needed in the request. for example,
>> givenName is optional and it's null, then request should be as,
>>
>> 
>> $3
>> $4
>> 
>>
>> Here each element has name-space. How can I remove this kind of element from 
>> payload?
>>
>> Any guide on this?
>>
>>
>> --
>>
>> *Kalyani Yogeswaranathan*
>>
>> *Associate software engineer*
>> *WSO2 Inc.*
>>
>> *Mobile: 0776390284 <0776390284>*
>>
>> ___
>> 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/
> 
> https://store.wso2.com/store/
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 

*Kalyani Yogeswaranathan*

*Associate software engineer*
*WSO2 Inc.*

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


Re: [Dev] [IS]Grant Types not getting saved when using OAuthAdminService

2016-03-19 Thread Vinod Kavinda
Hi Thrindu/Maduranga,

Thanks for the help guys..

I'm using the stub generated from the wsdl of the admin service. In the
implementation, I retrieve the allowed grant types and it is assigned back
with the request. I debuged the request and the grant type string is there.


Regards,
Vinod


On Fri, Mar 18, 2016 at 9:14 AM, Tharindu Edirisinghe 
wrote:

> Hi Vinod,
>
> I also tested the same with IS 5.1.0 fresh pack and could not reproduce
> your scenario. The grant types is a space separated string. If you create
> the OAuth app from management console, for each grant type you have
> selected with the checkboxes, it will add something like
> "authorization_code implicit password client_credentials refresh_token" to
> the GRANT_TYPES column of IDN_OAUTH_CONSUMER_APPS  table.
>
> Can you please share more details about the environment and the request
> you have used to create applications.
>
> Thanks,
> TharinduE
>
> On Thu, Mar 17, 2016 at 5:40 PM, Maduranga Siriwardena  > wrote:
>
>> Hi Vinod,
>>
>> I have used OAuthAdminService to register an OAuth application and I was
>> able to save the grant types properly.
>>
>> Any grant type is not allowed by default. If client_credentials is not
>> included in the grant types list you will not be able to use that grant
>> type to generate an access token.
>>
>> Bellow is the Soap request I used to register the application.
>>
>> http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd="
>> http://org.apache.axis2/xsd; xmlns:xsd1="
>> http://dto.oauth.identity.carbon.wso2.org/xsd;>
>>
>>
>>   
>>  
>> OAuth-2.0
>> test
>> 
>> https://localhost:9443/services/OAuthAdminService
>> authorization_code implicit
>>  
>>   
>>
>> 
>>
>> Thanks,
>> Maduranga.
>>
>> On Thu, Mar 17, 2016 at 4:36 PM, Vinod Kavinda  wrote:
>>
>>> Hi,
>>> I'm trying to register an oAuth client using OAuthAdminService. I'm
>>> sending the grant types string with the request. I have checked the table
>>> "IDN_OAUTH_CONSUMER_APPS", the grant types column is always NULL.
>>>
>>> But, I could generate access tokens with client_credentials grant type.
>>> Is it because by default all types are allowed?
>>>
>>> Am I missing something here? How can I set the specific set of grant
>>> types?
>>>
>>> I'm using IS 5.0.1. Appreciate your feedback on this.
>>>
>>>
>>> Regards,
>>> Vinod
>>>
>>> --
>>> 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
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>
>
> --
>
> Tharindu Edirisinghe
> Software Engineer | WSO2 Inc
> Platform Security Team
> Blog : tharindue.blogspot.com
> mobile : +94 775181586
>



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


Re: [Dev] JNDI bundle deployment error

2016-03-19 Thread Himasha Guruge
Thanks for the update Nipuni. I have created a JIRA in [1].


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

On Wed, Mar 16, 2016 at 4:48 PM, Nipuni Perera  wrote:

> Hi Himasha,
>
> With JNDIActivator we set the InitialContextFactoryBuilder while starting
> the bundle. It seems that some other service too trying to set the 
> InitialContextFactoryBuilder
> in mss.
> I will check this and get back to you soon.
>
> Can you also create a jira to track the issue?
>
> Thanks,
> Nipuni
>
> On Wed, Mar 16, 2016 at 3:57 PM, Himasha Guruge  wrote:
>
>> Hi Nipuni,
>>
>> I was trying to deploy JNDI jar built from [1]  in mss, and got the
>> following exception. I have removed our custom component bundles to make
>> sure they are not causing below exceptions. Appreciate any help on this.
>>
>> [org.wso2.carbon.jndi.internal.JNDIActivator] :
>> InitialContextFactoryBuilder already set
>>
>> java.lang.IllegalStateException: InitialContextFactoryBuilder already set
>>
>> at
>> javax.naming.spi.NamingManager.setInitialContextFactoryBuilder(NamingManager.java:709)
>>
>> at
>> org.wso2.carbon.jndi.internal.JNDIActivator.start(JNDIActivator.java:53)
>>
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
>>
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
>>
>> at java.security.AccessController.doPrivileged(Native Method)
>>
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
>>
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
>>
>> at
>> org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
>>
>> at
>> org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
>>
>> at org.eclipse.osgi.container.Module.doStart(Module.java:571)
>>
>> at org.eclipse.osgi.container.Module.start(Module.java:439)
>>
>> at
>> org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:454)
>>
>> at
>> org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:717)
>>
>> at
>> org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:491)
>>
>> at
>> org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:437)
>>
>> at
>> org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:427)
>>
>> at org.eclipse.osgi.container.Module.start(Module.java:416)
>>
>> at
>> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1498)
>>
>> at
>> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
>>
>> at
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>>
>> at
>> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
>> [1] https://github.com/wso2/carbon-jndi
>>
>> Thanks,
>>
>> Himasha Guruge
>> *Software Engineer*
>> WS*O2* *Inc.*
>> Mobile: +94 777459299
>> himas...@wso2.com
>>
>
>
>
> --
> Nipuni Perera
> Software Engineer; WSO2 Inc.; http://wso2.com
> Email: nip...@wso2.com
> Git hub profile: https://github.com/nipuni
> Blog : http://nipunipererablog.blogspot.com/
> Mobile: +94 (71) 5626680
> 
>
>


-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-03-19 Thread Lakshman Udayakantha
Hi Dinusha,

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

Thanks

On Fri, Mar 18, 2016 at 3:01 PM, Prabath Abeysekera 
wrote:

> Hi Dinusha,
>
> On Fri, Mar 18, 2016 at 2:54 PM, Dinusha Senanayaka 
> wrote:
>
>> Hi Prabath,
>>
>> On Fri, Mar 18, 2016 at 2:34 PM, Prabath Abeysekera 
>> wrote:
>>
>>> Hi Dinusha,
>>>
>>> On Fri, Mar 18, 2016 at 2:19 PM, Dinusha Senanayaka 
>>> wrote:
>>>
 Hi Lakshman,

 On Fri, Mar 18, 2016 at 2:08 PM, Lakshman Udayakantha <
 lakshm...@wso2.com> wrote:

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

 I think it should be fine to include AppM datasource in EMM. Currently
 we don't need it for mobile apps. But there could be scenarios in future we
 need AppM db for mobile apps as well.

>>>
>>> If "mobile application provisioning plugin" doesn't require persisting
>>> information, why exactly do we need to add tables, etc just to get the
>>> store to work?
>>>
>>
>> This we need to check. AFAIK, EMM is installing only appm.store,
>> appm.publisher, appm.mobile features which is not depend on appm.core
>> feature which provides the db. May be we have installed additional feature ?
>>
>
> That can possibly be the case. Thanks for the insight.
>
> @Lakshman, would you be able to double check if this is what's demanding
> us to install these persistent entities? If that's the case, we might have
> to revisit the list of features we've put into p2-profile around app-mgt
> functionalities.
>
> Cheers,
> Prabath
>
>
>>
>> Regards,
>> Dinusha.
>>
>>>
>>> Cheers,
>>> Prabath
>>>
>>>

 Regards,
 Dinusha.

>
> Thanks
>
> On Thu, Mar 17, 2016 at 2:43 PM, Milan Perera  wrote:
>
>> Hi Dinusha,
>>
>> I totally agree to what you said. Its better if we can do this as
>> soon as possible.
>>
>> Regards,
>>
>> On Thu, Mar 17, 2016 at 2:31 PM, Dinusha Senanayaka > > wrote:
>>
>>> Hi Milan,
>>>
>>> IMO, if we have version conflicts we should try to fix it. What we
>>> have done so far is not correct. We have created a separate branch of 
>>> AppM
>>> for EMM by manually removing the web app related UIs. We have done it 
>>> for
>>> the time being, but this won't scale when it comes to 
>>> support/maintenance
>>> and feature development. With the feature that Lakshman has done, we 
>>> could
>>> use the same code base for both AppM and EMM.
>>>
>>> Regards,
>>> Dinusha.
>>>
>>> On Thu, Mar 17, 2016 at 2:11 PM, Milan Perera 
>>> wrote:
>>>
 Hi Lakshman,

 As I remember, we have tried it before and in the previous attempt
 of migrating to the latest APPM feature was failed due to some 
 conflicts in
 dependencies that were unable to resolve at that time. If im not 
 mistaken,
 it had conflicts with the IS version which we use in the EMM 200.

 Regards,

 On Thu, Mar 17, 2016 at 7:25 AM, Lakshman Udayakantha <
 lakshm...@wso2.com> wrote:

> Hi Chathura,
>
> Yes. It is not because of asset turning off/on feature. I meant
> that UI has changed a lot in latest APP Manager recently and APPM team
> didn't get much time to resolve all the bugs reported. As per the 
> offline
> discussion with LahiruC lot of mobile features has broken with new UI 
> and
> they are fixing it now. So IMO replacing new features may introduce 
> new
> bugs to existing APP UI in EMM. Anyway if new UI will go to a high 
> stable
> position and APPM release is not going to conflict with EMM release 
> this
> will be possible. right? WDYT?
>
> Thanks
>
> On Thu, Mar 17, 2016 at 12:21 AM, Chathura Dilan <
> chathu...@wso2.com> wrote:
>
>> Hi Lakshman,
>>
>> ​​This feature will not introduce any bugs in store or 

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

2016-03-19 Thread Milan Perera
Hi Lakshman,

As I remember, we have tried it before and in the previous attempt of
migrating to the latest APPM feature was failed due to some conflicts in
dependencies that were unable to resolve at that time. If im not mistaken,
it had conflicts with the IS version which we use in the EMM 200.

Regards,

On Thu, Mar 17, 2016 at 7:25 AM, Lakshman Udayakantha 
wrote:

> Hi Chathura,
>
> Yes. It is not because of asset turning off/on feature. I meant that UI
> has changed a lot in latest APP Manager recently and APPM team didn't get
> much time to resolve all the bugs reported. As per the offline discussion
> with LahiruC lot of mobile features has broken with new UI and they are
> fixing it now. So IMO replacing new features may introduce new bugs to
> existing APP UI in EMM. Anyway if new UI will go to a high stable position
> and APPM release is not going to conflict with EMM release this will be
> possible. right? WDYT?
>
> Thanks
>
> On Thu, Mar 17, 2016 at 12:21 AM, Chathura Dilan 
> wrote:
>
>> Hi Lakshman,
>>
>> ​​This feature will not introduce any bugs in store or publisher, since
>> it only on/off assets types.  But we have to test all scenarios of EMM and
>> AppM integration.
>>
>> On Wed, Mar 16, 2016 at 7:03 AM, Lakshman Udayakantha > > wrote:
>>
>>> [Adding Dev]
>>>
>>> On Wed, Mar 16, 2016 at 5:40 PM, Prabath Abeysekera 
>>> wrote:
>>>
 Hi Lakshman,

 Of course we should. Would you be able to move this discussion to dev@
 so we can discuss about any possible concerns, etc there.

 Cheers,
 Prabath

 On Wed, Mar 16, 2016 at 2:53 PM, Lakshman Udayakantha <
 lakshm...@wso2.com> wrote:

> Hi EMM Team,
>
> It can be turned off asset types which are not in use in latest APP
> Manager. There is a configuration called EnabledAssetTypeList in which we
> can provide only mobileapp to enable mobile apps only in publisher and
> store. So shall we do the $subject, for the sake of getting future
> improvements and bug fixes in APPM.
>
> @APPM Team: Are there any bad consequences of doing $subject like
> introducing new bugs to existing store and publisher in EMM(APPM feature
> version 1.1.1)?
>
> Thanks
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0714388124 <0714388124>*
>
>


 --
 Prabath Abeysekara
 Technical Lead
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471

>>>
>>>
>>>
>>> --
>>> Lakshman Udayakantha
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>> Mobile: *0714388124*
>>>
>>>
>>
>>
>> --
>> Regards,
>>
>> Chatura Dilan Perera
>> *Senior Software Engineer** - WSO2 Inc.*
>> www.dilan.me
>>
>
>
>
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0714388124*
>
>


-- 
*Milan Perera *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 77 309 7088 | Work: +94 11 214 5345
Email: mi...@wso2.com  | Web: www.wso2.com

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


[Dev] [VOTE] Release WSO2 Puppet Modules 1.1.1 RC1

2016-03-19 Thread Chamila De Alwis
Hi,

This is RC1 for WSO2 Puppet Modules 1.1.1. Please download, verify, and
vote. The vote will be open for 72 hours.

[ ] Broken - Do not release (explain why)
[ ] Stable - Go ahead and release

This release contains minor fixes to the Puppet templates and the Hiera
data.

*This release is based on the following tag:*
https://github.com/wso2/puppet-modules/releases/tag/1.1.1-rc1

*Release verification guide can be found at:*
https://github.com/wso2/puppet-modules/wiki/Verifying-Puppet-Modules

*Source and distribution packages can be downloaded at:*
https://github.com/wso2/puppet-modules/releases/tag/1.1.1-rc1

Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] C5- Datasource startup order issue

2016-03-19 Thread Himasha Guruge
Thanks for the explanation Kishanthan.It seems that the JNDI and data
sources bundles used were outdated.  Was able to solve the issue with a
reference to JNDIContextManager.

On Tue, Mar 15, 2016 at 5:44 PM, Kishanthan Thangarajah  wrote:

>
> On Tue, Mar 15, 2016 at 11:28 AM, Himasha Guruge 
> wrote:
>
>> Hi Sameera,
>>
>> Thanks for the provided info.In bpmn component   to  build  activiti
>> engine, we require the datasource bundle to be available. Therefore we
>> tried adding  @Reference annotation  of
>> org.wso2.carbon.kernel.datasource.core.internal.DataSourceListenerComponent
>> (for activate method of ActivitiEngineBuilder) but this did not work.
>>
>
> Why this did not work? What's the issue?
>
>>
>>  AFAIU what you suggest is to implement a Listener class that would
>> contain onJNDIReady() method, which would require other bundles(activiti
>> bundle in this case) to wait until this method is executed.  Could you
>> please provide any suggestions on this?
>>
>
> To use JNDI in carbon OSGi env, you have to add a mandatory reference to
> JNDIContextManager and then wait on until it's available. This will be our
> recommendation. Can you explain the use case of activity bundle and
> datasources and the ordering issue you are facing with the above approach?
>
>
>
>> Regards,
>>
>>
>> On Tue, Mar 15, 2016 at 8:52 AM, Sameera Jayasoma 
>> wrote:
>>
>>> HI Himasha,
>>>
>>> You can refer following documents and samples.
>>>
>>> https://github.com/wso2/carbon-jndi
>>>
>>> https://github.com/wso2/carbon-datasources/blob/master/sample/src/main/java/org/wso2/carbon/datasource/sample/DataSourceServiceListenerComponent.java
>>>
>>> On Tue, Mar 15, 2016 at 4:08 AM, Himasha Guruge 
>>> wrote:
>>>
 Hi Sameera,

 With regards to $subject, so far we have used the workaround of
 manually renaming the bundle's symbolic name which works perfectly. However
 is it possible to know when this fix will be available?

 Regards,

 Himasha Guruge
 *Software Engineer*
 WS*O2* *Inc.*
 Mobile: +94 777459299
 himas...@wso2.com

>>>
>>>
>>>
>>> --
>>> Sameera Jayasoma,
>>> Software Architect,
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email: same...@wso2.com
>>> blog: http://blog.sameera.org
>>> twitter: https://twitter.com/sameerajayasoma
>>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>>> Mobile: 0094776364456
>>>
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>> Himasha Guruge
>> *Software Engineer*
>> WS*O2* *Inc.*
>> Mobile: +94 777459299
>> himas...@wso2.com
>>
>> ___
>> 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 *
>



-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC2

2016-03-19 Thread Lakmal Warusawithana
On Friday, March 18, 2016, Imesh Gunaratne  wrote:

> I have now completed above points 1 and 2 in all dockerfiles according to
> the improvements proposed by Chamila. Changes were pushed to master branch.
>
> ESB 4.9.0 docker image size reduced from 1.244 GB to 754.7 MB,  API-M
> 1.9.1 image size reduced from 1.693 GB to 1.005 GB.
>
>
Great !!!


> Thanks
>
> On Fri, Mar 18, 2016 at 3:22 PM, Imesh Gunaratne  > wrote:
>
>> On Fri, Mar 18, 2016 at 2:34 PM, Lakmal Warusawithana > > wrote:
>>
>>> -1. This is going to be the official dockerfiles for WSO2 products. We
>>> MUST used best practices while building docker images.
>>>
>>> See followings;
>>>
>>> 1 ) Should use LTS ubuntu base image (latest)
>>>
>>
>> Yes, I agree on this Lakmal. Will change this.
>>
>>> *2 ) *Need to reduce docker images size.
>>>
>> Yes, Chamila did a research on reducing the docker image size and found
>> that the most of the extra space was taken by the multiple Docker RUN
>> commands executed. At the moment we have two RUN commands; one in the base
>> image and the other in the product image. If we combine these two together
>> the time it takes to build the product image increases (to around 15-20
>> min). That's why we did not do that change and thought of asking the user
>> to do it at the time the image is being deployed in the production
>> environment.
>>
>> However now I understand that we can still do this change and let the
>> developers build another image based on the base product image and apply
>> their configurations and artifacts in the new image (similar to Tomcat [1]).
>>
>> According to the offline discussion we had, will cancel this vote and do
>> the following changes:
>>
>>1. Change OS base image to ubuntu:latest (latest LTS).
>>2. Combine two RUN commands and reduce the image size. Might need to
>>remove the WSO2 base image.
>>3. Provide a symlink or any other well defined path to mount/copy
>>configurations and deployable artifacts to the Carbon servers.
>>
>> [1]
>> https://github.com/imesh/docker-for-java/blob/master/tomcat-webapp/Dockerfile
>>
>> Thanks
>>
>>
>>
>>> On Fri, Mar 18, 2016 at 9:33 AM, Chamila De Alwis >> > wrote:
>>>
 *[x] Stable* - Go ahead and release

- Verified Licensing and headers
- Verified folder and package structure
- Verified the out of the box functionality (default profile,
access to management console, login, brief smoke test) of the following
products.
- WSO2 AM - 1.9.1, 1.10.0
   - WSO2 AS - 5.3.0
   - WSO2 BPS - 3.5.0
   - WSO2 BRS - 2.1.0, 2.2.0
   - WSO2 CEP - 4.0.0
   - WSO2 DAS - 3.0.0, 3.0.1
   - WSO2 DSS - 3.5.0
   - WSO2 ES - 2.0.0
   - WSO2 ESB - 4.9.0
   - WSO2 GREG - 4.6.0, 5.1.0
   - WSO2 IS - 5.1.0
   - WSO2 MB - 3.0.0, 3.1.0
- Verified build.sh, run.sh, and save.sh functionality for each of
the above products



 Regards,
 Chamila de Alwis
 Committer and PMC Member - Apache Stratos
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 On Thu, Mar 17, 2016 at 8:44 PM, Isuru Haththotuwa > wrote:

> This is the second release candidate (RC2) of WSO2 Dockerfiles 1.0.0
> release.
>
> *Tag to be voted upon:*
> https://github.com/wso2/dockerfiles/tree/v1.0.0-rc2
>
> *Source and distribution packages:*
> https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc2
>
> Please download, test, and vote. The README file under each product
> directory contains instructions on how to try it out locally.
>
> [ ] Broken - Do not release (explain why)
> [ ] Stable - Go ahead and release
>
> This vote will be open for 72 hours or as needed.
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org 
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

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


>>>
>>>
>>> --
>>> Lakmal Warusawithana
>>> Director - Cloud Architecture; WSO2 Inc.
>>> Mobile : +94714289692
>>> Blog : http://lakmalsview.blogspot.com/
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org 
>>> 

[Dev] [DS]Dashboard warnings for Object graph

2016-03-19 Thread Fazlan Nazeem
Hi,

I get a warning in the server console when viewing the dashboard created
for APIM-Analytics. Following is the message.

 WARN {net.sf.ehcache.pool.sizeof.SizeOf} -  The configured limit of 1,000
object references was reached while attempting to calculate the size of the
object graph. This can be avoided by adding stop points with @IgnoreSizeOf
annotations. Since the CacheManger or Cache  elements
maxDepthExceededBehavior is set to "abort", the sizing operation has
stopped and the reported cache size is not accurate. If performance
degradation is NOT an issue at the configured limit, raise the limit value
using the CacheManager or Cache  elements maxDepth attribute.
For more information, see the Ehcache configuration documentation.


This warning gets printed multiple times in the console. What is the cause
of this warning. Is this due to having more gadgets than  the default limit
for a single dashboard page? How can I get rid of this warning?

Also I can't find the documentation mentioned in the warning message.
-- 
Thanks & Regards,

Fazlan Nazeem

*Software Engineer*

*WSO2 Inc*
Mobile : +94772338839
<%2B94%20%280%29%20773%20451194>
fazl...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS]Grant Types not getting saved when using OAuthAdminService

2016-03-19 Thread Vinod Kavinda
Hi,
I'm trying to register an oAuth client using OAuthAdminService. I'm sending
the grant types string with the request. I have checked the table
"IDN_OAUTH_CONSUMER_APPS", the grant types column is always NULL.

But, I could generate access tokens with client_credentials grant type. Is
it because by default all types are allowed?

Am I missing something here? How can I set the specific set of grant types?

I'm using IS 5.0.1. Appreciate your feedback on this.


Regards,
Vinod

-- 
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] WSO2 Identity Server 5.2.0 Alpha Released !!

2016-03-19 Thread Godwin Shrimal
WSO2 Identity Server 5.2.0 Alpha Released !!Date: 17th March 2016The WSO2
Identity Server team is pleased to announce the release of WSO2 Identity
Server 5.2.0 Alpha. You can download this distribution from
https://github.com/wso2/product-is/releases/tag/v5.2.0-alpha


Following list [1] contains all bug fixes and improvements available with
alpha release. We encourage you to report issues, improvements and feature
requests regarding WSO2 Identity Server through the public WSO2 Identity
Server JIRA 

~ The WSO2 Identity Server Team ~

[1] Release Notes - WSO2 Identity Server - Version 5.2.0-Alpha
Bug

   -

   [IDENTITY-4409 ] - Improve
   gitignore of identity-framework
   -

   [IDENTITY-4410 ] - Remove
   synchronizing the method "hasUserApproved" in "OpenIDConnectUserRPStore"
   class

Improvement

   -

   [IDENTITY-4384 ] -
   IdentityProviderManager should exposed as an osgi service
   -

   [IDENTITY-4390 ] - Adding
   capability to publish Oauth related events

New Feature

   -

   [IDENTITY-3287 ] - API to
   get the number (count) of users

Patch[IDENTITY-4398 ] -
Authorization code can be sent in to get access token multiple times



-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS] Error when passing parameters to a SOAP operation with Apache CXF

2016-03-19 Thread Himasha Guruge
Hi Natasha,

Can you try passing the operation name with the namespace as well?

Regards,
Himasha

On Thu, Mar 17, 2016 at 2:16 PM, Natasha Wijesekara 
wrote:

> Hi,
>
> I'm trying to invoke an external soap service operation which takes
> integers as the parameters.
>
> *Request Body of the Soap Service *:
>
> * xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> "
> xmlns:add="http://wso2.org/wso2con/2011/sample/adder
> ">*
> *   *
> *   *
> *  *
> * ?*
> * ?*
> *  *
> *   *
> **
>
> I have created a client to invoke the soap operation using
> JaxWsDynamicClientFactory.
> JaxWsDynamicClientFactory clientFactory =
> JaxWsDynamicClientFactory.newInstance();
>
> I have invoked the operation by passing the operation name and the
> parameters to the client.
> When multiple parameters of type *string* is passed, no error is given.
>
> In this request I need to pass 2 *integers* as the parameters as shown
> below :
> client.invoke("operationName", num1, num2);
> But when I do so I get the following error :
>
> *java.lang.IllegalArgumentException: Part
> {http://wso2.org/wso2con/2011/sample/adder}payload
>  should be of type
> org.wso2.wso2con._2011.sample.adder.AdderProcessRequest, not
> java.lang.Integer*
> * at
> org.apache.cxf.jaxb.io.DataWriterImpl.checkPart(DataWriterImpl.java:284)*
> * at org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWriterImpl.java:212)*
> * at
> org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:122)*
> * at
> org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)*
> * at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)*
> * at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:572)*
> * at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:481)*
> * at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382)*
> * at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335)*
> * at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:355)*
> * at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:341)*
>
>  Appreciate any help on this.
>
> Best Regards,
> *Natasha Wijesekare*
>
> *Software Engineering Intern, WSO2  Inc:  http://wso2.com
> *
> *email  : nata...@wso2.com *
> *mobile: +94 771358651 <%2B94%20771358651>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC1

2016-03-19 Thread Isuru Haththotuwa
We are aborting this Vote due to the issues mentioned above. Will start a
new vote once these are fixed.

On Thu, Mar 17, 2016 at 1:27 PM, Chamila De Alwis  wrote:

> *[x] **Broken* - Do not release
>
> The license header verification failed for common/scripts/base.sh.
> Furthermore, there are few minor README adjustments to  be done.
>
> The following were verified for positive functionality.
>
>- Verified folder and package structure
>- Verified the out of the box functionality (default profile, access
>to management console, login, brief smoke test) of the following products.
>- WSO2 AM - 1.9.1, 1.10.0
>   - WSO2 AS - 5.3.0
>   - WSO2 BPS - 3.5.0
>   - WSO2 BRS - 2.1.0, 2.2.0
>   - WSO2 CEP - 4.0.0
>   - WSO2 DAS - 3.0.0, 3.0.1
>   - WSO2 DSS - 3.5.0
>   - WSO2 ES - 2.0.0
>   - WSO2 ESB - 4.9.0
>   - WSO2 GREG - 4.6.0, 5.1.0
>   - WSO2 IS - 5.1.0
>   - WSO2 MB - 3.0.0, 3.1.0
>- Verified build.sh, run.sh, and save.sh functionality for each of the
>above products
>
>
>
>
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Wed, Mar 16, 2016 at 5:18 PM, Isuru Haththotuwa 
> wrote:
>
>> This is the first release candidate (RC1) of WSO2 Dockerfiles 1.0.0
>> release.
>>
>>
>> *Tag to be voted upon:*
>> https://github.com/wso2/dockerfiles/tree/v1.0.0-rc1
>>
>>
>> *Source and distribution packages:*
>> https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc1
>>
>> Please download, test, and vote. The README file under each product
>> directory contains instructions on how to try it out locally.
>>
>> This vote will be open for 72 hours or as needed.
>>
>> [ ] Broken - Do not release (explain why)
>> [ ] Stable - Go ahead and release
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048* *
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] C5 - Enabling SOAP support for BPEL with Apache CXF integration

2016-03-19 Thread Amal Gunatilake
Hi KasunG,

Following are the extension points used in Apache CXF.

   - To intercept the request message we have extended
   the org.apache.cxf.phase.AbstractPhaseInterceptor class under
   RECEIVE phase and have overridden the handleMessage method.
   - To intercept the Response message we have extended
   the org.apache.cxf.phase.AbstractPhaseInterceptor class under
   PRE_STREAM phase and have overridden the handleMessage method.
   - Both of the above classes are registered into the interceptor chain at
   the server initialization.
   - In-order to inject the message into ODE, we have extended the
   org.apache.cxf.service.invoker.AbstractInvoker class.
   - org.apache.cxf.wsdl11.WSDLServiceFactory is used to create the server
   from the wsdl dynamically.
   - org.apache.cxf.binding.soap.SoapBindingFactory is used to register
   SOAP bindings configurations.

Currently we are facing a limitation
where org.apache.cxf.endpoint.Server[1] only allows to set one address
endpoint per object. Therefore we have to create an array of Server objects
to interact with multiple wsdl files.

We are still working on the service deployment part. Will update the thread
as soon as we update the diagram.

[1]
https://cxf.apache.org/javadoc/latest/org/apache/cxf/endpoint/Server.html

Best regards,
Amal.

On Tue, Mar 15, 2016 at 12:19 PM, KasunG Gajasinghe  wrote:

> Hi Amal,
>
> Can you show the extension points we use inside the Apache CXF (Bus) box?
>
> In addition to the invocation flow, can you also show how you handle the
> service deployment?
>
> Thanks,
> KasunG
>
> On Tue, Mar 15, 2016 at 11:03 AM, Amal Gunatilake  wrote:
>
>> Hi All,
>>
>> Following is the initial architecture we came up with in-order to enable
>> SOAP support in C5 for BPEL using Apache CXF integration.
>>
>> ​
>>
>> Any feedback is highly appreciated.
>>
>> [1]
>> https://drive.google.com/a/wso2.com/file/d/0B7E7tgre4G1RanRObkRqSElkX2M/view?usp=sharing
>>
>> Best regards,
>> Amal.
>>
>> --
>> *Amal Gunatilake*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *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
>
>
>



-- 
*Amal Gunatilake*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Dockerfiles 1.0.0 RC2

2016-03-19 Thread Imesh Gunaratne
I have now completed above points 1 and 2 in all dockerfiles according to
the improvements proposed by Chamila. Changes were pushed to master branch.

ESB 4.9.0 docker image size reduced from 1.244 GB to 754.7 MB,  API-M 1.9.1
image size reduced from 1.693 GB to 1.005 GB.

Thanks

On Fri, Mar 18, 2016 at 3:22 PM, Imesh Gunaratne  wrote:

> On Fri, Mar 18, 2016 at 2:34 PM, Lakmal Warusawithana 
> wrote:
>
>> -1. This is going to be the official dockerfiles for WSO2 products. We
>> MUST used best practices while building docker images.
>>
>> See followings;
>>
>> 1 ) Should use LTS ubuntu base image (latest)
>>
>
> Yes, I agree on this Lakmal. Will change this.
>
>> *2 ) *Need to reduce docker images size.
>>
> Yes, Chamila did a research on reducing the docker image size and found
> that the most of the extra space was taken by the multiple Docker RUN
> commands executed. At the moment we have two RUN commands; one in the base
> image and the other in the product image. If we combine these two together
> the time it takes to build the product image increases (to around 15-20
> min). That's why we did not do that change and thought of asking the user
> to do it at the time the image is being deployed in the production
> environment.
>
> However now I understand that we can still do this change and let the
> developers build another image based on the base product image and apply
> their configurations and artifacts in the new image (similar to Tomcat [1]).
>
> According to the offline discussion we had, will cancel this vote and do
> the following changes:
>
>1. Change OS base image to ubuntu:latest (latest LTS).
>2. Combine two RUN commands and reduce the image size. Might need to
>remove the WSO2 base image.
>3. Provide a symlink or any other well defined path to mount/copy
>configurations and deployable artifacts to the Carbon servers.
>
> [1]
> https://github.com/imesh/docker-for-java/blob/master/tomcat-webapp/Dockerfile
>
> Thanks
>
>
>
>> On Fri, Mar 18, 2016 at 9:33 AM, Chamila De Alwis 
>> wrote:
>>
>>> *[x] Stable* - Go ahead and release
>>>
>>>- Verified Licensing and headers
>>>- Verified folder and package structure
>>>- Verified the out of the box functionality (default profile, access
>>>to management console, login, brief smoke test) of the following 
>>> products.
>>>- WSO2 AM - 1.9.1, 1.10.0
>>>   - WSO2 AS - 5.3.0
>>>   - WSO2 BPS - 3.5.0
>>>   - WSO2 BRS - 2.1.0, 2.2.0
>>>   - WSO2 CEP - 4.0.0
>>>   - WSO2 DAS - 3.0.0, 3.0.1
>>>   - WSO2 DSS - 3.5.0
>>>   - WSO2 ES - 2.0.0
>>>   - WSO2 ESB - 4.9.0
>>>   - WSO2 GREG - 4.6.0, 5.1.0
>>>   - WSO2 IS - 5.1.0
>>>   - WSO2 MB - 3.0.0, 3.1.0
>>>- Verified build.sh, run.sh, and save.sh functionality for each of
>>>the above products
>>>
>>>
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Committer and PMC Member - Apache Stratos
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>> On Thu, Mar 17, 2016 at 8:44 PM, Isuru Haththotuwa 
>>> wrote:
>>>
 This is the second release candidate (RC2) of WSO2 Dockerfiles 1.0.0
 release.

 *Tag to be voted upon:*
 https://github.com/wso2/dockerfiles/tree/v1.0.0-rc2

 *Source and distribution packages:*
 https://github.com/wso2/dockerfiles/releases/tag/v1.0.0-rc2

 Please download, test, and vote. The README file under each product
 directory contains instructions on how to try it out locally.

 [ ] Broken - Do not release (explain why)
 [ ] Stable - Go ahead and release

 This vote will be open for 72 hours or as needed.

 --
 Thanks and Regards,

 Isuru H.
 +94 716 358 048* *



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


>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Lakmal Warusawithana
>> Director - Cloud Architecture; WSO2 Inc.
>> Mobile : +94714289692
>> Blog : http://lakmalsview.blogspot.com/
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.io
> Lean . Enterprise . Middleware
>
>


-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.io
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-03-19 Thread Dinusha Senanayaka
Hi Prabath,

On Fri, Mar 18, 2016 at 2:34 PM, Prabath Abeysekera 
wrote:

> Hi Dinusha,
>
> On Fri, Mar 18, 2016 at 2:19 PM, Dinusha Senanayaka 
> wrote:
>
>> Hi Lakshman,
>>
>> On Fri, Mar 18, 2016 at 2:08 PM, Lakshman Udayakantha > > wrote:
>>
>>> Hi,
>>>
>>> I am looking into this. After changing the APP Manager feature versions
>>> in EMM, publisher works as expected. It can create and publish mobile apps
>>> without any issue. But I can't even login to store. According to backend
>>> error, It seems like EMM wants APP Manager related db tables too. I have
>>> added APP Manager tables to AM datasource and after that I can login to
>>> store without any issue and published apps also shown in there. Anyway is
>>> that ok to add APP Manager tables to AM datasource?
>>>
>>
>> I think it should be fine to include AppM datasource in EMM. Currently we
>> don't need it for mobile apps. But there could be scenarios in future we
>> need AppM db for mobile apps as well.
>>
>
> If "mobile application provisioning plugin" doesn't require persisting
> information, why exactly do we need to add tables, etc just to get the
> store to work?
>

This we need to check. AFAIK, EMM is installing only appm.store,
appm.publisher, appm.mobile features which is not depend on appm.core
feature which provides the db. May be we have installed additional feature ?

Regards,
Dinusha.

>
> Cheers,
> Prabath
>
>
>>
>> Regards,
>> Dinusha.
>>
>>>
>>> Thanks
>>>
>>> On Thu, Mar 17, 2016 at 2:43 PM, Milan Perera  wrote:
>>>
 Hi Dinusha,

 I totally agree to what you said. Its better if we can do this as soon
 as possible.

 Regards,

 On Thu, Mar 17, 2016 at 2:31 PM, Dinusha Senanayaka 
 wrote:

> Hi Milan,
>
> IMO, if we have version conflicts we should try to fix it. What we
> have done so far is not correct. We have created a separate branch of AppM
> for EMM by manually removing the web app related UIs. We have done it for
> the time being, but this won't scale when it comes to support/maintenance
> and feature development. With the feature that Lakshman has done, we could
> use the same code base for both AppM and EMM.
>
> Regards,
> Dinusha.
>
> On Thu, Mar 17, 2016 at 2:11 PM, Milan Perera  wrote:
>
>> Hi Lakshman,
>>
>> As I remember, we have tried it before and in the previous attempt of
>> migrating to the latest APPM feature was failed due to some conflicts in
>> dependencies that were unable to resolve at that time. If im not 
>> mistaken,
>> it had conflicts with the IS version which we use in the EMM 200.
>>
>> Regards,
>>
>> On Thu, Mar 17, 2016 at 7:25 AM, Lakshman Udayakantha <
>> lakshm...@wso2.com> wrote:
>>
>>> Hi Chathura,
>>>
>>> Yes. It is not because of asset turning off/on feature. I meant that
>>> UI has changed a lot in latest APP Manager recently and APPM team didn't
>>> get much time to resolve all the bugs reported. As per the offline
>>> discussion with LahiruC lot of mobile features has broken with new UI 
>>> and
>>> they are fixing it now. So IMO replacing new features may introduce new
>>> bugs to existing APP UI in EMM. Anyway if new UI will go to a high 
>>> stable
>>> position and APPM release is not going to conflict with EMM release this
>>> will be possible. right? WDYT?
>>>
>>> Thanks
>>>
>>> On Thu, Mar 17, 2016 at 12:21 AM, Chathura Dilan >> > wrote:
>>>
 Hi Lakshman,

 ​​This feature will not introduce any bugs in store or publisher,
 since it only on/off assets types.  But we have to test all scenarios 
 of
 EMM and AppM integration.

 On Wed, Mar 16, 2016 at 7:03 AM, Lakshman Udayakantha <
 lakshm...@wso2.com> wrote:

> [Adding Dev]
>
> On Wed, Mar 16, 2016 at 5:40 PM, Prabath Abeysekera <
> praba...@wso2.com> wrote:
>
>> Hi Lakshman,
>>
>> Of course we should. Would you be able to move this discussion to
>> dev@ so we can discuss about any possible concerns, etc there.
>>
>> Cheers,
>> Prabath
>>
>> On Wed, Mar 16, 2016 at 2:53 PM, Lakshman Udayakantha <
>> lakshm...@wso2.com> wrote:
>>
>>> Hi EMM Team,
>>>
>>> It can be turned off asset types which are not in use in latest
>>> APP Manager. There is a configuration called EnabledAssetTypeList 
>>> in which
>>> we can provide only mobileapp to enable mobile apps only in 
>>> publisher and
>>> store. So shall we do the $subject, for the sake of getting future
>>> improvements and bug fixes in APPM.
>>>
>>> 

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

2016-03-19 Thread Dinusha Senanayaka
Hi Milan,

IMO, if we have version conflicts we should try to fix it. What we have
done so far is not correct. We have created a separate branch of AppM for
EMM by manually removing the web app related UIs. We have done it for the
time being, but this won't scale when it comes to support/maintenance and
feature development. With the feature that Lakshman has done, we could use
the same code base for both AppM and EMM.

Regards,
Dinusha.

On Thu, Mar 17, 2016 at 2:11 PM, Milan Perera  wrote:

> Hi Lakshman,
>
> As I remember, we have tried it before and in the previous attempt of
> migrating to the latest APPM feature was failed due to some conflicts in
> dependencies that were unable to resolve at that time. If im not mistaken,
> it had conflicts with the IS version which we use in the EMM 200.
>
> Regards,
>
> On Thu, Mar 17, 2016 at 7:25 AM, Lakshman Udayakantha 
> wrote:
>
>> Hi Chathura,
>>
>> Yes. It is not because of asset turning off/on feature. I meant that UI
>> has changed a lot in latest APP Manager recently and APPM team didn't get
>> much time to resolve all the bugs reported. As per the offline discussion
>> with LahiruC lot of mobile features has broken with new UI and they are
>> fixing it now. So IMO replacing new features may introduce new bugs to
>> existing APP UI in EMM. Anyway if new UI will go to a high stable position
>> and APPM release is not going to conflict with EMM release this will be
>> possible. right? WDYT?
>>
>> Thanks
>>
>> On Thu, Mar 17, 2016 at 12:21 AM, Chathura Dilan 
>> wrote:
>>
>>> Hi Lakshman,
>>>
>>> ​​This feature will not introduce any bugs in store or publisher, since
>>> it only on/off assets types.  But we have to test all scenarios of EMM and
>>> AppM integration.
>>>
>>> On Wed, Mar 16, 2016 at 7:03 AM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
 [Adding Dev]

 On Wed, Mar 16, 2016 at 5:40 PM, Prabath Abeysekera 
 wrote:

> Hi Lakshman,
>
> Of course we should. Would you be able to move this discussion to dev@
> so we can discuss about any possible concerns, etc there.
>
> Cheers,
> Prabath
>
> On Wed, Mar 16, 2016 at 2:53 PM, Lakshman Udayakantha <
> lakshm...@wso2.com> wrote:
>
>> Hi EMM Team,
>>
>> It can be turned off asset types which are not in use in latest APP
>> Manager. There is a configuration called EnabledAssetTypeList in which we
>> can provide only mobileapp to enable mobile apps only in publisher and
>> store. So shall we do the $subject, for the sake of getting future
>> improvements and bug fixes in APPM.
>>
>> @APPM Team: Are there any bad consequences of doing $subject like
>> introducing new bugs to existing store and publisher in EMM(APPM feature
>> version 1.1.1)?
>>
>> Thanks
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0714388124 <0714388124>*
>>
>>
>
>
> --
> Prabath Abeysekara
> Technical Lead
> WSO2 Inc.
> Email: praba...@wso2.com
> Mobile: +94774171471
>



 --
 Lakshman Udayakantha
 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware
 Mobile: *0714388124 <0714388124>*


>>>
>>>
>>> --
>>> Regards,
>>>
>>> Chatura Dilan Perera
>>> *Senior Software Engineer** - WSO2 Inc.*
>>> www.dilan.me
>>>
>>
>>
>>
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0714388124 <0714388124>*
>>
>>
>
>
> --
> *Milan Perera *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
> Email: mi...@wso2.com  | Web: www.wso2.com
> 
>



-- 
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] JNDI bundle deployment error

2016-03-19 Thread Nipuni Perera
Hi Himasha,

With JNDIActivator we set the InitialContextFactoryBuilder while starting
the bundle. It seems that some other service too trying to set the
InitialContextFactoryBuilder
in mss.
I will check this and get back to you soon.

Can you also create a jira to track the issue?

Thanks,
Nipuni

On Wed, Mar 16, 2016 at 3:57 PM, Himasha Guruge  wrote:

> Hi Nipuni,
>
> I was trying to deploy JNDI jar built from [1]  in mss, and got the
> following exception. I have removed our custom component bundles to make
> sure they are not causing below exceptions. Appreciate any help on this.
>
> [org.wso2.carbon.jndi.internal.JNDIActivator] :
> InitialContextFactoryBuilder already set
>
> java.lang.IllegalStateException: InitialContextFactoryBuilder already set
>
> at
> javax.naming.spi.NamingManager.setInitialContextFactoryBuilder(NamingManager.java:709)
>
> at org.wso2.carbon.jndi.internal.JNDIActivator.start(JNDIActivator.java:53)
>
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
>
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
>
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
>
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
>
> at
> org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
>
> at org.eclipse.osgi.container.Module.doStart(Module.java:571)
>
> at org.eclipse.osgi.container.Module.start(Module.java:439)
>
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:454)
>
> at
> org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:717)
>
> at
> org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.java:491)
>
> at
> org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:437)
>
> at
> org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java:427)
>
> at org.eclipse.osgi.container.Module.start(Module.java:416)
>
> at
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1498)
>
> at
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
>
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>
> at
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
> [1] https://github.com/wso2/carbon-jndi
>
> Thanks,
>
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> himas...@wso2.com
>



-- 
Nipuni Perera
Software Engineer; WSO2 Inc.; http://wso2.com
Email: nip...@wso2.com
Git hub profile: https://github.com/nipuni
Blog : http://nipunipererablog.blogspot.com/
Mobile: +94 (71) 5626680

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


Re: [Dev] Drag and Drop not being supported by default in GMF gen code

2016-03-19 Thread Awanthika Senarath
The reference Link

[1] https://wiki.eclipse.org/GMF_Newsgroup_Q_and_A

Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Wed, Mar 2, 2016 at 11:48 AM, Awanthika Senarath 
wrote:

> Hi,
>
> The issue of  datamapper operators not being drag, drop able, the issue is
> that GMF auto gen code by default does not support drag drop ability.
> Instead it support select and drop.
>
> This could be fixed as follows according to [1].
>
> In the gen code the DataMapperPaletteFactory class contains an internal
> class *NodeToolEntry*  which by default extends ToolEntry class. It needs
> to extend PaletteToolEntry class for the tool items to have drag and drop
> capability.
>
> I have done the changes and added a class comment "Generated NOT" to the
> modified class.
>
>
> [1]
> http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/msg01537.html
>
> Regards
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: [ESB] Regarding an Error message

2016-03-19 Thread Thusitha Thilina Dayaratne
Hi Ravindi,

AFAIU this error happens due to the client gets a HTTP 202 accept response,
generated by ESB before it sends the original response from the backend.
Therefore ESB can't send the original response to the client as it has
already sent a "HTTP 202 accept" response.


On Thu, Mar 17, 2016 at 8:30 PM, Ravindi De silva  wrote:

> Hi  all,
>
>
> I tried writing a proxy service in the ESB to get the project details from
> jira using getProject method and then create that project in redmine using
> createProject if it is not already created in it. I have used the jira and
> redmine connectors in ESB. The proxy I have written is shown in [1].
>
> When I send the request to the proxy using SoapUI I get an error [2]. But
> the project of which the details were taken from jira if not present in
> redmine has been created in it. How can I fix the issue of getting an error
> ?
>
>
> [1]
> http://ws.apache.org/ns/synapse;
>name="newConnectJiraRedmine"
>transports="http,https"
>statistics="disable"
>trace="disable"
>startOnLoad="true">
>
>   
>   expression="json-eval($.responseType)"/>
>  
>  
>  
>  
>  
>   expression="json-eval($.authSourceId)"/>
>  
>  
>  
>   expression="json-eval($.description)"/>
>  
>  
>  
>  
>  
>  
>  
>   expression="json-eval($.fixedVersionId)"/>
>   expression="json-eval($.assignedToId)"/>
>   expression="json-eval($.parentIssueId)"/>
>   expression="json-eval($.customFields)"/>
>   expression="json-eval($.watcherUserIds)"/>
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>   expression="json-eval($.attachmentId)"/>
>  
>  
>  
>  
>  expression="json-eval($.jiraProjectName)"
>scope="operation"/>
>   type="STRING"/>
>  value="ravindi123"
>scope="default"
>type="STRING"/>
>  value="http://192.168.57.131:8080;
>scope="default"
>type="STRING"/>
>  value="TESPROJ"
>scope="default"
>type="STRING"/>
>  value="http://anthonyrava.m.redmine.org/;
>scope="default"
>type="STRING"/>
>  value="7855e5ee84e3f97b02e23ea96f3d69f740399860"
>scope="default"
>type="STRING"/>
>   type="STRING"/>
>  
> {$ctx:username}
> {$ctx:password}
> {$ctx:uri}
>  
>  
> {$ctx:projectIdOrKey}
>  
>  
>   expression="json-eval($.description)"/>
>  
>  
>  expression="get-property('jPName')"/>
>  expression="get-property('jPDecscription')"/>
>  expression="get-property('jPId')"/>
>  
>  
> {$ctx:apiUrl}
> {$ctx:apiKey}
> {$ctx:responseType}
>  
>  
> id="activityTypes"
>   expression="//projects"
>   sequential="true">
> 
>
>   
>   
>   expression="get-property('jPName')"/>
>   expression="//identifier"/>
>   expression="get-property('rPName')"/>
>   
>xpath="get-property('jPName')=get-property('rPName')">
>  
> 
> expression="//name"/>
> expression="//identifier"/>
> 
>  
>  
> 
> expression="//identifier"/>
> 
> 
>{$ctx:apiUrl}
>{$ctx:apiKey}
>{$ctx:responseType}
> 
> 
>{$ctx:jPDecscription}
>{$ctx:jPName}
>te1290123
> 
>  
>   
>   
>
> 
>  
>   
>   
>  
>   
>
>
> 
>
>
> [2]
>
> [2016-03-17 17:03:33,688] ERROR - PassThroughHttpSender Failed to submit
> the response
> java.lang.NullPointerException
> at
> 

Re: [Dev] gsoc project 30

2016-03-19 Thread Isuru Haththotuwa
Hi Hardik,

Shall we have a hangout tomorrow around 11 AM IST to clarify on these
further. Please confirm your availability.

On Wed, Mar 16, 2016 at 10:24 PM, Hardik Patel 
wrote:

> Hi Isuruh,
>
> As per my previous mail. I have deployed products on my ip not
> localhost. I will deploy it on localhost.
> But how to implement carbon membership scheme on openshift??
> how to deploy wso2 product on openshift??
>
> this mail messaging is taking time..can you provide your whatsapp no
> for faster communication??
>
>
> --
>
> Thank You,
>
> Hardik Patel
> about.me/hardikprl94
>



-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-03-19 Thread Prabath Abeysekera
Hi Dinusha,

On Fri, Mar 18, 2016 at 2:54 PM, Dinusha Senanayaka 
wrote:

> Hi Prabath,
>
> On Fri, Mar 18, 2016 at 2:34 PM, Prabath Abeysekera 
> wrote:
>
>> Hi Dinusha,
>>
>> On Fri, Mar 18, 2016 at 2:19 PM, Dinusha Senanayaka 
>> wrote:
>>
>>> Hi Lakshman,
>>>
>>> On Fri, Mar 18, 2016 at 2:08 PM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
 Hi,

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

>>>
>>> I think it should be fine to include AppM datasource in EMM. Currently
>>> we don't need it for mobile apps. But there could be scenarios in future we
>>> need AppM db for mobile apps as well.
>>>
>>
>> If "mobile application provisioning plugin" doesn't require persisting
>> information, why exactly do we need to add tables, etc just to get the
>> store to work?
>>
>
> This we need to check. AFAIK, EMM is installing only appm.store,
> appm.publisher, appm.mobile features which is not depend on appm.core
> feature which provides the db. May be we have installed additional feature ?
>

That can possibly be the case. Thanks for the insight.

@Lakshman, would you be able to double check if this is what's demanding us
to install these persistent entities? If that's the case, we might have to
revisit the list of features we've put into p2-profile around app-mgt
functionalities.

Cheers,
Prabath


>
> Regards,
> Dinusha.
>
>>
>> Cheers,
>> Prabath
>>
>>
>>>
>>> Regards,
>>> Dinusha.
>>>

 Thanks

 On Thu, Mar 17, 2016 at 2:43 PM, Milan Perera  wrote:

> Hi Dinusha,
>
> I totally agree to what you said. Its better if we can do this as soon
> as possible.
>
> Regards,
>
> On Thu, Mar 17, 2016 at 2:31 PM, Dinusha Senanayaka 
> wrote:
>
>> Hi Milan,
>>
>> IMO, if we have version conflicts we should try to fix it. What we
>> have done so far is not correct. We have created a separate branch of 
>> AppM
>> for EMM by manually removing the web app related UIs. We have done it for
>> the time being, but this won't scale when it comes to support/maintenance
>> and feature development. With the feature that Lakshman has done, we 
>> could
>> use the same code base for both AppM and EMM.
>>
>> Regards,
>> Dinusha.
>>
>> On Thu, Mar 17, 2016 at 2:11 PM, Milan Perera  wrote:
>>
>>> Hi Lakshman,
>>>
>>> As I remember, we have tried it before and in the previous attempt
>>> of migrating to the latest APPM feature was failed due to some 
>>> conflicts in
>>> dependencies that were unable to resolve at that time. If im not 
>>> mistaken,
>>> it had conflicts with the IS version which we use in the EMM 200.
>>>
>>> Regards,
>>>
>>> On Thu, Mar 17, 2016 at 7:25 AM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
 Hi Chathura,

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

 Thanks

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

> Hi Lakshman,
>
> ​​This feature will not introduce any bugs in store or publisher,
> since it only on/off assets types.  But we have to test all scenarios 
> of
> EMM and AppM integration.
>
> On Wed, Mar 16, 2016 at 7:03 AM, Lakshman Udayakantha <
> lakshm...@wso2.com> wrote:
>
>> [Adding Dev]
>>
>> On Wed, Mar 16, 2016 at 5:40 PM, Prabath Abeysekera <
>> praba...@wso2.com> wrote:
>>
>>> Hi Lakshman,
>>>
>>> Of course we should. Would you be able to move this discussion
>>> to dev@ so we can discuss about any possible concerns, etc
>>> there.
>>>
>>> Cheers,

Re: [Dev] [IS]Grant Types not getting saved when using OAuthAdminService

2016-03-19 Thread Tharindu Edirisinghe
Hi Vinod,

I also tested the same with IS 5.1.0 fresh pack and could not reproduce
your scenario. The grant types is a space separated string. If you create
the OAuth app from management console, for each grant type you have
selected with the checkboxes, it will add something like
"authorization_code implicit password client_credentials refresh_token" to
the GRANT_TYPES column of IDN_OAUTH_CONSUMER_APPS  table.

Can you please share more details about the environment and the request you
have used to create applications.

Thanks,
TharinduE

On Thu, Mar 17, 2016 at 5:40 PM, Maduranga Siriwardena 
wrote:

> Hi Vinod,
>
> I have used OAuthAdminService to register an OAuth application and I was
> able to save the grant types properly.
>
> Any grant type is not allowed by default. If client_credentials is not
> included in the grant types list you will not be able to use that grant
> type to generate an access token.
>
> Bellow is the Soap request I used to register the application.
>
> http://schemas.xmlsoap.org/soap/envelope/;
> xmlns:xsd="http://org.apache.axis2/xsd; xmlns:xsd1="
> http://dto.oauth.identity.carbon.wso2.org/xsd;>
>
>
>   
>  
> OAuth-2.0
> test
> 
> https://localhost:9443/services/OAuthAdminService
> authorization_code implicit
>  
>   
>
> 
>
> Thanks,
> Maduranga.
>
> On Thu, Mar 17, 2016 at 4:36 PM, Vinod Kavinda  wrote:
>
>> Hi,
>> I'm trying to register an oAuth client using OAuthAdminService. I'm
>> sending the grant types string with the request. I have checked the table
>> "IDN_OAUTH_CONSUMER_APPS", the grant types column is always NULL.
>>
>> But, I could generate access tokens with client_credentials grant type.
>> Is it because by default all types are allowed?
>>
>> Am I missing something here? How can I set the specific set of grant
>> types?
>>
>> I'm using IS 5.0.1. Appreciate your feedback on this.
>>
>>
>> Regards,
>> Vinod
>>
>> --
>> 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
>>
>>
>
>
> --
> 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
>
>


-- 

Tharindu Edirisinghe
Software Engineer | WSO2 Inc
Platform Security Team
Blog : tharindue.blogspot.com
mobile : +94 775181586
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Specifying items in the JSON Schema

2016-03-19 Thread Chanaka Fernando
I think this is typical json array representation.

+1 for this approach.

On Thu, Mar 17, 2016 at 2:54 PM, Sohani Weerasinghe  wrote:

> Hi All,
>
> When we are specifying the items for an array, according to [1], we can
> specify items wrapped with '[ ]' as shown below
>
>{
>"items": *[* {}, {}, {} *]*
>
>}
>
> Shall we proceed with this approach? WDYT?
>
> [1]
> http://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.3.1
>
> Thanks,
> Sohani
>
> Sohani Weerasinghe
> Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>



-- 
Thank you and Best Regards,
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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev