Re: [Dev] WSO2 Identity Server OTP SMS

2015-05-24 Thread Godwin Amila Shrimal
Kind reminder on this!

On Thu, May 21, 2015 at 12:10 PM, Godwin Amila Shrimal god...@wso2.com
wrote:

 Hi,

 Can we use OTP feature with SMS ?, As per the documentation currently it
 support only with Email. And can we use this feature with other WSO2
 products ? (Hope it can by installing identity mgt feature). If there are
 any article, blogs etc related to this please share.


 Thanks
 Godwin

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

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D*
 twitter: https://twitter.com/godwinamila




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

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D 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] WSO2 Identity Server OTP SMS

2015-05-24 Thread Johann Nallathamby
Obviously there isn't an OOTB solution. You should be able to extend the
IdentityMgtEvenListener and instead of sending an email, send an SMS
through a gateway. However I am not quite sure how extensible the current
implementation is. If not you will have to write your own listener and do
the job.

On Sun, May 24, 2015 at 6:19 PM, Godwin Amila Shrimal god...@wso2.com
wrote:

 Kind reminder on this!

 On Thu, May 21, 2015 at 12:10 PM, Godwin Amila Shrimal god...@wso2.com
 wrote:

 Hi,

 Can we use OTP feature with SMS ?, As per the documentation currently it
 support only with Email. And can we use this feature with other WSO2
 products ? (Hope it can by installing identity mgt feature). If there are
 any article, blogs etc related to this please share.


 Thanks
 Godwin

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

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D*
 twitter: https://twitter.com/godwinamila




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

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D*
 twitter: https://twitter.com/godwinamila




-- 
Thanks  Regards,

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

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


Re: [Dev] [GSoC-2015] Proposal2 : Siddhi Editor for WSO2 CEP

2015-05-24 Thread Mohanadarshan Vivekanandalingam
On Wed, May 20, 2015 at 2:27 AM, Tharindu Munasinghe 
tharindu...@cse.mrt.ac.lk wrote:

 Hi Mentors,


Hi Tharindu,



 I have started the initial implementation of client-side features like
 syntax highlighting , code completion and code-snippets. I have tried both
 ACE editor as well as Code-mirror libraries but according to my
 observation, ACE editor can easily be customized for domain specific
 languages.

 Current implementation [1]
 https://github.com/TharinduMunasinge/CEP-Siddhi_Editor/ is based on ACE
 library. The progress of the implementation as follows,

- *Syntax Highlighting* :almost completed

- *Code completion* :
  Currently the keywords,annotations, and locally defined
identifiers can be suggested.But the suggestion list still need to be
optimized based on the context awareness.

- *Code snippets*:
   Predefined code snippets are supported for now (Eg:
defStr: define stream , attr,attrS) . User defined code snippets have
to be handled .

- *Error checking*:
Client side Siddhi parser (Antlr4 in JS runtime) was
integrated with Siddhi Editor. It just verify the syntactical correctness
of the query and shows error indicators with error messages on relevant
lines immediately . Currently the error messages are somewhat abstract and
there are issues in triggering the event as well . So there are
improvements still need to be done on this.  For now, This feature only
focuses on the syntax that can be evaluated at client-side. For semantic
verifications, Ajax requests need to be sent (if only the client side
parser doesn't find any syntax errors) to the existing server-side Siddhi
Compiler (That part is yet to be done).


 The source code at [1
 https://github.com/TharinduMunasinge/CEP-Siddhi_Editor/] only contains
 the client side features listed above. This project is maintained just for
 the ease of testing and debugging the front end specific features. Once the
 client-side specific features are implemented and tested properly , this
 could be integrated and merged with carbon-event-processing project.
 Afterwards I will continue to work on back end related feature ,and will
 send PRs based on the improvements .


First of all, sorry for the delay.. I have tried out the editor, it is
really cool.. I believe GSOC coding is starting by Tomorrow, great to see
that you have started already..  I think, you have done a chat with Srinath
and Suho regarding this and planned accordingly..

FYI, we have done some improvements for our existing editor as well..
Please check our CEP 4.0.0 alpha pack for more information..

Thanks,
Mohan



 Please find demo page for the Siddhi editor is hosted on [2
 http://tharindumunasinge.github.io/CEP-Siddhi_Editor/ace_editor/] .
 Highly appreciate your feedbacks and suggestions on this.

 [1]: https://github.com/TharinduMunasinge/CEP-Siddhi_Editor/
 [2]: http://tharindumunasinge.github.io/CEP-Siddhi_Editor/ace_editor/

 Thanks!

 On 7 May 2015 at 00:22, Tharindu Munasinghe tharindu...@cse.mrt.ac.lk
 wrote:

 Thanks Srinath!

 I had a quick discussion with Suho last week. He gave me the initial
 work flow and priorities of the features listed in the proposal.

 I am currently testing Antr4,Code-mirror and Ace libraries for the
 implementation purposes. Built the CEP 4.0 and have been getting
 familiar with SiddhiQL 3.0.

 Sure we can meet and discuss further details probably on Next Monday.
 So that I will be able to come up with something thing to demo the
 progress. Please let me know the time (or else a possible date in next
 week) for the meeting .


 Thanks,

 On 5 May 2015 at 09:01, Srinath Perera srin...@wso2.com wrote:
  Tharindu, congratulations on the proposal!
 
  Shall we meet and discuss sometime this or the following week?
 
  On Wed, Apr 29, 2015 at 2:46 PM, Tharindu Munasinghe
  tharindu...@cse.mrt.ac.lk wrote:
 
  Hi Mentors,
 
  First of all thanks for selecting my proposal on $subject . I am
  planing to  complete most of the basic implementations before the
  official Gsoc starting date (May 25) . Before that I would like to
  have a review for the design decisions included in the proposal.
  It would be great if you can review them and provide feedbacks and
  suggestions .
 
  Thanks,
 
  On 28 March 2015 at 12:09, Tharindu Munasinghe
  tharindu...@cse.mrt.ac.lk wrote:
   Hi all,
  
Attached here is the proposal I submitted for $subject .
  
  
  
  
 https://docs.google.com/a/cse.mrt.ac.lk/document/d/1Txl5uZbLYIX8slLR8F5kI8U0Se79tBgHxw2dA3hMIhI/edit#
  
   On 28 March 2015 at 00:08, Tharindu Munasinghe tharin...@wso2.com
   wrote:
  
   [Adding tharindu...@cse.mrt.ac.lk]
  
   On Wed, Mar 4, 2015 at 12:41 AM, Tharindu Munasinghe
   tharin...@wso2.com
   wrote:
  
   Hi all,
 Thanks Mohan for the quick response. Sure.. according to the
   currently available slots I have sent a calendar invitation for the
   discussion on 

Re: [Dev] Please merge PR

2015-05-24 Thread Johann Nallathamby
Merged.

Thanks.

On Thu, May 7, 2015 at 6:10 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 $subject for [1].

 [1] https://github.com/wso2/carbon-identity/pull/265

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




-- 
Thanks  Regards,

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

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


Re: [Dev] [MB] Ciphertools - To include or not to include

2015-05-24 Thread Hemika Kodikara
Hi Manoj,

To clarify according to the above discussion, adding a modified 
cipher-text.properties
https://github.com/wso2/cipher-tool/blob/master/src/main/resources/cipher-text.properties
and the cipher-tool.properties
https://github.com/wso2/cipher-tool/blob/master/src/main/resources/cipher-tool.properties
 files would be suffice for MB ?
So the bat and sh files will be added by the user if needed ?

Regards,
Hemika

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

Mobile : +9477762

On Fri, Mar 27, 2015 at 12:39 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Hasitha,

 We are shipping the default properties files with the [1] ciper-tool repo.
 Since your product has customized version of the file better to use a
 separate file in the product level and include this using product bin.xml.

 [1] https://github.com/wso2/cipher-tool

 Regards,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Fri, Mar 27, 2015 at 12:32 PM, Hasitha Amal De Silva hasit...@wso2.com
  wrote:

 Hi Manoj,

 With MB 3.0.0 approaching its alpha release, This is with regards to jira
 [1].

 Since carbon 4.3.0 is planned to release this as a separate feature, do
 we need to include cipher-tool files within our product pack ?

 As per current situation, MB 3.0.0 release is only dependent on the
 carbon kernel release. Will this feature also be released as part of the
 kernel ?

 [1] : https://wso2.org/jira/browse/MB-924

 --
 Cheers,
 Hasitha Amal De Silva
  Software Engineer
 Mobile : 0772037426
 Blog: http://devnutshell.tumblr.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] [WSO2 PP] Clustering for WSO2 products in Private PaaS

2015-05-24 Thread Lakmal Warusawithana
On Sunday, May 24, 2015, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 As we discussed offline I tested weather carbon clustering works with
 hostnames instead of Ips.

 I tried with two AS 5.2.1 nodes, each becoming to WKA member to the other
 member. Members get joined and registry based deb sync worked. I will try
 with multiple nodes and with a different product and update the thread.

 @Imesh
 If clustering works with hostnames, shall we proceed with this approach?


+1 will use hostnames



 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897



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


Re: [Dev] [CEP] Getting errors when deploying an execution plan in CEP.

2015-05-24 Thread Mohanadarshan Vivekanandalingam
Hi Bhashinee,

You are sending a XML element as a parameter. Then you need to escape it
properly.. See [1]. Try below request,

soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:adm=http://admin.processor.event.carbon.wso2.org;
   soapenv:Header/
   soapenv:Body
  adm:deployExecutionPlanConfigurationFromConfigXml
 !--Optional:--
 adm:executionPlanConfigurationXml
![CDATA[
 executionPlan name=execution statistics=disable
trace=disable xmlns=http://wso2.org/carbon/eventprocessor;
  description/
  siddhiConfiguration
property
name=siddhi.persistence.snapshot.time.interval.minutes0/property
property name=siddhi.enable.distributed.processingfalse/property
  /siddhiConfiguration
  importedStreams
stream as=input name=input version=1.0.0/
  /importedStreams
  queryExpressionsfrom input
select *
insert into output1 /queryExpressions
  exportedStreams
stream name=output1 valueOf=output1 version=1.0.0/
  /exportedStreams
/executionPlan
]]
 /adm:executionPlanConfigurationXml
  /adm:deployExecutionPlanConfigurationFromConfigXml
   /soapenv:Body
/soapenv:Envelope


[1]
http://stackoverflow.com/questions/5715404/soap-ui-how-to-pass-xml-inside-parameter


Thanks,
Mohan


On Sun, May 24, 2015 at 11:34 AM, Bhashinee Nirmali bhashin...@gmail.com
wrote:

 Hi All,

 I'm trying to deploy an execution plan in CEP using SoapUI. It was not
 successful and I'm getting errors.
 I have attached Request payload [1], Request headers[2], Response
 payload[3],Response headers[4] and CEP Error[5].
 I have used basic authentication with user name - admin and password -
 admin.

 Can anyone please help me with this?

 Thank You

 Bhashinee Nirmali
 Faculty of Information Technology
 University of Moratuwa.


 [1] Request payload

 soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:adm=http://admin.processor.event.carbon.wso2.org;
soapenv:Header/
soapenv:Body
   adm:deployExecutionPlanConfigurationFromConfigXml

  adm:executionPlanConfigurationXml
 executionPlan name=execution statistics=disable trace=disable
 xmlns=http://wso2.org/carbon/eventprocessor;
   description/
   siddhiConfiguration
 property
 name=siddhi.persistence.snapshot.time.interval.minutes0/property
 property name=siddhi.enable.distributed.processingfalse/property
   /siddhiConfiguration
   importedStreams
 stream as=input name=input version=1.0.0/
   /importedStreams
   queryExpressions![CDATA[from input
 select *
 insert into output1 ]]/queryExpressions
   exportedStreams
 stream name=output1 valueOf=output1 version=1.0.0/
   /exportedStreams
 /executionPlan
 /adm:executionPlanConfigurationXml
   /adm:deployExecutionPlanConfigurationFromConfigXml
/soapenv:Body
 /soapenv:Envelope

 [2] Request headers

 POST
 https://192.168.1.100:9443/services/EventProcessorAdminService.EventProcessorAdminServiceHttpsSoap12Endpoint/
 HTTP/1.1
 Accept-Encoding: gzip,deflate
 Content-Type: text/xml;charset=UTF-8
 SOAPAction: urn:deployExecutionPlanConfigurationFromConfigXml
 Authorization: Basic YWRtaW46YWRtaW4=
 Content-Length: 1112
 Host: 192.168.1.100:9443
 Connection: Keep-Alive
 User-Agent: Apache-HttpClient/4.1.1 (java 1.5)


 [3] Response payload

 soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/
 
soapenv:Body
   soapenv:Fault
  faultcodesoapenv:Server/faultcode
  faultstringjavax.xml.stream.XMLStreamException: ParseError at
 [row,col]:[3,37]
 Message: Premature end of file./faultstring
  detail/
   /soapenv:Fault
/soapenv:Body
 /soapenv:Envelope

 [4] Response headers

 HTTP/1.1 500 Internal Server Error
 Set-Cookie: JSESSIONID=EE44325408E903BEB0B8D091EAA41440; Path=/; Secure;
 HttpOnly
 Content-Type: text/xml;charset=UTF-8
 Transfer-Encoding: chunked
 Date: Sun, 24 May 2015 18:28:11 GMT
 Connection: close
 Server: WSO2 Carbon Server



 [5] CEP error

 [2015-05-24 11:28:11,094] ERROR - {RPCMessageReceiver}
  javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,37]
 Message: Premature end of file.
 java.lang.reflect.InvocationTargetException
 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)
 at
 org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
 at 

Re: [Dev] [WSO2 PP] Clustering for WSO2 products in Private PaaS

2015-05-24 Thread Imesh Gunaratne
+1 Yes that would be the simplest approach that we can take.
@IsuruH: Can you please share the information you found on Hazelcast on
this regard?

Thanks

On Sun, May 24, 2015 at 4:26 PM, Lakmal Warusawithana lak...@wso2.com
wrote:



 On Sunday, May 24, 2015, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 As we discussed offline I tested weather carbon clustering works with
 hostnames instead of Ips.

 I tried with two AS 5.2.1 nodes, each becoming to WKA member to the other
 member. Members get joined and registry based deb sync worked. I will try
 with multiple nodes and with a different product and update the thread.

 @Imesh
 If clustering works with hostnames, shall we proceed with this approach?


 +1 will use hostnames



 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897



 --
 Sent from Gmail Mobile




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


[Dev] [WSO2 PP] Clustering for WSO2 products in Private PaaS

2015-05-24 Thread Udara Liyanage
Hi,

As we discussed offline I tested weather carbon clustering works with
hostnames instead of Ips.

I tried with two AS 5.2.1 nodes, each becoming to WKA member to the other
member. Members get joined and registry based deb sync worked. I will try
with multiple nodes and with a different product and update the thread.

@Imesh
If clustering works with hostnames, shall we proceed with this approach?

-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge the PR

2015-05-24 Thread Lasitha Wattaladeniya
Hi all,

This is the user.core fixes PR [1] for the jira [2]

[1]. https://github.com/wso2/carbon4-kernel/pull/217
[2]. https://wso2.org/jira/browse/IDENTITY-3025

Thanks,

-- 
Lasitha Wattaladeniya
Software Engineer
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

Mobile : +94719397528
Blog : techreadme.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [WSO2 PP] Clustering for WSO2 products in Private PaaS

2015-05-24 Thread Isuru Haththotuwa
Hi,

On Sun, May 24, 2015 at 6:55 PM, Imesh Gunaratne im...@wso2.com wrote:

 +1 Yes that would be the simplest approach that we can take.
 @IsuruH: Can you please share the information you found on Hazelcast on
 this regard?

 Its at [1], section 'Discover by TCP/IP'

[1]. http://docs.hazelcast.org/docs/3.4/manual/html/hazelcastclusters.html


 Thanks

 On Sun, May 24, 2015 at 4:26 PM, Lakmal Warusawithana lak...@wso2.com
 wrote:



 On Sunday, May 24, 2015, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 As we discussed offline I tested weather carbon clustering works with
 hostnames instead of Ips.

 I tried with two AS 5.2.1 nodes, each becoming to WKA member to the
 other member. Members get joined and registry based deb sync worked. I will
 try with multiple nodes and with a different product and update the thread.

 @Imesh
 If clustering works with hostnames, shall we proceed with this approach?


 +1 will use hostnames



 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897



 --
 Sent from Gmail Mobile




 --
 *Imesh Gunaratne*
 Senior Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware




-- 
Thanks and Regards,

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


Re: [Dev] [MB] Ciphertools - To include or not to include

2015-05-24 Thread Manoj Kumara
Hi,

Even though we discussed to not ship the cipher-tools with products later
there was some discussions mentioning adding this back. I think Niranjan
worked on creating a feature for that.

@Nira,
Whats the suggested plan on this.

Regards,
Manoj


*Manoj Kumara*
Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94713448188

On Sun, May 24, 2015 at 7:51 PM, Hemika Kodikara hem...@wso2.com wrote:

 Hi Manoj,

 To clarify according to the above discussion, adding a modified 
 cipher-text.properties
 https://github.com/wso2/cipher-tool/blob/master/src/main/resources/cipher-text.properties
 and the cipher-tool.properties
 https://github.com/wso2/cipher-tool/blob/master/src/main/resources/cipher-tool.properties
  files would be suffice for MB ?
 So the bat and sh files will be added by the user if needed ?

 Regards,
 Hemika

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

 Mobile : +9477762

 On Fri, Mar 27, 2015 at 12:39 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Hasitha,

 We are shipping the default properties files with the [1] ciper-tool
 repo. Since your product has customized version of the file better to use a
 separate file in the product level and include this using product bin.xml.

 [1] https://github.com/wso2/cipher-tool

 Regards,
 Manoj


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Fri, Mar 27, 2015 at 12:32 PM, Hasitha Amal De Silva 
 hasit...@wso2.com wrote:

 Hi Manoj,

 With MB 3.0.0 approaching its alpha release, This is with regards to
 jira [1].

 Since carbon 4.3.0 is planned to release this as a separate feature, do
 we need to include cipher-tool files within our product pack ?

 As per current situation, MB 3.0.0 release is only dependent on the
 carbon kernel release. Will this feature also be released as part of the
 kernel ?

 [1] : https://wso2.org/jira/browse/MB-924

 --
 Cheers,
 Hasitha Amal De Silva
  Software Engineer
 Mobile : 0772037426
 Blog: http://devnutshell.tumblr.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] [CEP] Getting errors when deploying an execution plan in CEP.

2015-05-24 Thread Bhashinee Nirmali
Hi Mohandarshan,

That solved the problem. Thank you.

On Sun, May 24, 2015 at 1:46 AM, Mohanadarshan Vivekanandalingam 
mo...@wso2.com wrote:

 Hi Bhashinee,

 You are sending a XML element as a parameter. Then you need to escape it
 properly.. See [1]. Try below request,

 soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:adm=http://admin.processor.event.carbon.wso2.org;
soapenv:Header/
soapenv:Body
   adm:deployExecutionPlanConfigurationFromConfigXml
  !--Optional:--
  adm:executionPlanConfigurationXml
 ![CDATA[
  executionPlan name=execution statistics=disable
 trace=disable xmlns=http://wso2.org/carbon/eventprocessor;
   description/
   siddhiConfiguration
 property
 name=siddhi.persistence.snapshot.time.interval.minutes0/property
 property name=siddhi.enable.distributed.processingfalse/property
   /siddhiConfiguration
   importedStreams
 stream as=input name=input version=1.0.0/
   /importedStreams
   queryExpressionsfrom input
 select *
 insert into output1 /queryExpressions
   exportedStreams
 stream name=output1 valueOf=output1 version=1.0.0/
   /exportedStreams
 /executionPlan
 ]]
  /adm:executionPlanConfigurationXml
   /adm:deployExecutionPlanConfigurationFromConfigXml
/soapenv:Body
 /soapenv:Envelope


 [1]
 http://stackoverflow.com/questions/5715404/soap-ui-how-to-pass-xml-inside-parameter


 Thanks,
 Mohan


 On Sun, May 24, 2015 at 11:34 AM, Bhashinee Nirmali bhashin...@gmail.com
 wrote:

 Hi All,

 I'm trying to deploy an execution plan in CEP using SoapUI. It was not
 successful and I'm getting errors.
 I have attached Request payload [1], Request headers[2], Response
 payload[3],Response headers[4] and CEP Error[5].
 I have used basic authentication with user name - admin and password -
 admin.

 Can anyone please help me with this?

 Thank You

 Bhashinee Nirmali
 Faculty of Information Technology
 University of Moratuwa.


 [1] Request payload

 soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/; xmlns:adm=
 http://admin.processor.event.carbon.wso2.org;
soapenv:Header/
soapenv:Body
   adm:deployExecutionPlanConfigurationFromConfigXml

  adm:executionPlanConfigurationXml
 executionPlan name=execution statistics=disable trace=disable
 xmlns=http://wso2.org/carbon/eventprocessor;
   description/
   siddhiConfiguration
 property
 name=siddhi.persistence.snapshot.time.interval.minutes0/property
 property name=siddhi.enable.distributed.processingfalse/property
   /siddhiConfiguration
   importedStreams
 stream as=input name=input version=1.0.0/
   /importedStreams
   queryExpressions![CDATA[from input
 select *
 insert into output1 ]]/queryExpressions
   exportedStreams
 stream name=output1 valueOf=output1 version=1.0.0/
   /exportedStreams
 /executionPlan
 /adm:executionPlanConfigurationXml
   /adm:deployExecutionPlanConfigurationFromConfigXml
/soapenv:Body
 /soapenv:Envelope

 [2] Request headers

 POST
 https://192.168.1.100:9443/services/EventProcessorAdminService.EventProcessorAdminServiceHttpsSoap12Endpoint/
 HTTP/1.1
 Accept-Encoding: gzip,deflate
 Content-Type: text/xml;charset=UTF-8
 SOAPAction: urn:deployExecutionPlanConfigurationFromConfigXml
 Authorization: Basic YWRtaW46YWRtaW4=
 Content-Length: 1112
 Host: 192.168.1.100:9443
 Connection: Keep-Alive
 User-Agent: Apache-HttpClient/4.1.1 (java 1.5)


 [3] Response payload

 soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/;
soapenv:Body
   soapenv:Fault
  faultcodesoapenv:Server/faultcode
  faultstringjavax.xml.stream.XMLStreamException: ParseError at
 [row,col]:[3,37]
 Message: Premature end of file./faultstring
  detail/
   /soapenv:Fault
/soapenv:Body
 /soapenv:Envelope

 [4] Response headers

 HTTP/1.1 500 Internal Server Error
 Set-Cookie: JSESSIONID=EE44325408E903BEB0B8D091EAA41440; Path=/; Secure;
 HttpOnly
 Content-Type: text/xml;charset=UTF-8
 Transfer-Encoding: chunked
 Date: Sun, 24 May 2015 18:28:11 GMT
 Connection: close
 Server: WSO2 Carbon Server



 [5] CEP error

 [2015-05-24 11:28:11,094] ERROR - {RPCMessageReceiver}
  javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,37]
 Message: Premature end of file.
 java.lang.reflect.InvocationTargetException
 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
 

Re: [Dev] WSO2 Identity Server OTP SMS

2015-05-24 Thread Godwin Amila Shrimal
Hi Johan,

Thanks for the response, I'll check this.

Thanks
Godwin


On Sun, May 24, 2015 at 4:03 PM, Johann Nallathamby joh...@wso2.com wrote:

 Obviously there isn't an OOTB solution. You should be able to extend the
 IdentityMgtEvenListener and instead of sending an email, send an SMS
 through a gateway. However I am not quite sure how extensible the current
 implementation is. If not you will have to write your own listener and do
 the job.

 On Sun, May 24, 2015 at 6:19 PM, Godwin Amila Shrimal god...@wso2.com
 wrote:

 Kind reminder on this!

 On Thu, May 21, 2015 at 12:10 PM, Godwin Amila Shrimal god...@wso2.com
 wrote:

 Hi,

 Can we use OTP feature with SMS ?, As per the documentation currently it
 support only with Email. And can we use this feature with other WSO2
 products ? (Hope it can by installing identity mgt feature). If there are
 any article, blogs etc related to this please share.


 Thanks
 Godwin

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

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D*
 twitter: https://twitter.com/godwinamila




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

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D*
 twitter: https://twitter.com/godwinamila




 --
 Thanks  Regards,

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

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*




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

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D 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] Define Tomcat Context Path

2015-05-24 Thread Akalanka Pagoda Arachchi
Thanks all. As Thusitha mentioned, this might not be possible in tomcat 8
although it is possible in tomcat 7 as Hasitha pointed out.

Thanks,
Akalanka.

On Fri, May 22, 2015 at 9:46 PM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 Hi Akalanka,

 Are you trying to put the war file in the webapps directory and set the
 context path?
 If so I think that will not work according to the Tomcat 8
 documentations[1]

 This attribute must only be used when statically defining a Context in
 server.xml. In all other circumstances, the path will be inferred from the
 filenames used for either the .xml context file or the docBase.


 [1] -
 https://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Common_Attributes

 Thanks
 /Thusitha

 On Sat, May 23, 2015 at 3:57 AM, Hasitha Hiranya hasit...@wso2.com
 wrote:

 Hi Akalanka,

 Following might be useful.


 http://stackoverflow.com/questions/7276989/howto-set-the-context-path-of-a-web-application-in-tomcat-7-0

 Thanks

 On Fri, May 22, 2015 at 3:17 PM, Akalanka Pagoda Arachchi 
 darsha...@wso2.com wrote:

 Hi Kasun,

 Thank you, but rather I wanted to do this in tomcat itself. Not in our
 AS.

 Thanks,
 Akalanka.

 On Fri, May 22, 2015 at 3:39 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:


 Currently, AS does not support that feature.

 On Fri, May 22, 2015 at 1:08 PM, Akalanka Pagoda Arachchi 
 darsha...@wso2.com wrote:

 Hi all,

 I am trying to deploy a web app in tomcat 8 where the context path
 should be different from the war file name.

 We should be able to do this by adding a context.xml file in META-INF
 folder in we app according to [1]. I created this file with the following
 content, but this does not change the context path to EdwDataServices.

 Any idea on this?

 ?xml version=1.0 encoding=UTF-8?
 Context path=/EdwDataServices
 docBase=webapps/EdwDataServiceWeb-1.0.0-SNAPSHOT.war /

 Thanks,
 Akalanka.

 [1] - https://tomcat.apache.org/tomcat-8.0-doc/config/context.html

 --
 *Darshana Akalanka Pagoda Arachchi,*
 *Software Engineer*
 *078-4721791 078-4721791*

 ___
 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






 --
 *Darshana Akalanka Pagoda Arachchi,*
 *Software Engineer*
 *078-4721791*

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




 --
 *Hasitha Abeykoon*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com
 *cell:* *+94 719363063*
 *blog: **abeykoon.blogspot.com* http://abeykoon.blogspot.com


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




 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina




-- 
*Darshana Akalanka Pagoda Arachchi,*
*Software Engineer*
*078-4721791*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Component missing : com.google.code.gson in kernel pack

2015-05-24 Thread Niranjan Karunanandham
Hi all,

I have created jiras for jaggery [1] and data publisher [2] and updated it
with the pull requests. Please note that this should be merged only after
the pull request [3] for kernel is merged and the jaggery and carbon
commons is updated to kernel version 4.4.1.

[1] - https://wso2.org/jira/browse/JAGGERY-406
[2] - https://wso2.org/jira/browse/COMMONS-120
[3] - https://github.com/wso2/carbon4-kernel/pull/204

Regards,
Nira

On Fri, May 22, 2015 at 10:25 PM, Sinthuja Ragendran sinth...@wso2.com
wrote:

 Hi,

 On Fri, May 22, 2015 at 11:19 AM, Niranjan Karunanandham 
 niran...@wso2.com wrote:

 Hi Anjana,

 Kind reminder.

 Regards,
 Nira


 On Thu, May 21, 2015 at 4:49 PM, Ruchira Wageesha ruch...@wso2.com
 wrote:



 On Tue, May 19, 2015 at 5:52 PM, Niranjan Karunanandham 
 niran...@wso2.com wrote:

 Hi,

 When writing the integration test for axis2 gson [1], I came across a
 runtime exception. This was because axis2 gson requires*
 com.google.code.gson* which is not there in the kernel pack. Shall I
 add bundleDefcom.google.code.gson:gson/bundleDef in pom.xml of
 features/org.wso2.carbon.core.common.feature ? Currently the latest version
 is 2.3.1.

 @Anjana and Ruchira: I noticed that currently* com.google.code.gson *is
 installed when *jaggery server feature* [2] or* datapublisher feature*
 [3]. If this component is installed along with kernel, can we remove it
 being installed by jaggery server and datapublisher features? I also
 noticed that for jaggery depends on 2.1 and datapublisher depends on 2.2.4.
 If this is moved to kernel, can we have the latest version, i.e., 2.3.1?

 +1


 +1, I don't see a problem in upgrading the version of gson in data
 publisher perspective.

 Thanks,
 Sinthuja.




 --

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

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




 --
 *Sinthuja Rajendran*
 Associate Technical Lead
 WSO2, Inc.:http://wso2.com

 Blog: http://sinthu-rajan.blogspot.com/
 Mobile: +94774273955





-- 

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


Re: [Dev] [WSO2 PP] Clustering for WSO2 products in Private PaaS

2015-05-24 Thread Udara Liyanage
Hi ,

I tested with a three nodes cluster. Tested caching with the web app
provided by Isuruh and it seems to work. Lets go with that approach.

On Sun, May 24, 2015 at 11:32 PM, Isuru Haththotuwa isu...@wso2.com wrote:

 Hi,

 On Sun, May 24, 2015 at 6:55 PM, Imesh Gunaratne im...@wso2.com wrote:

 +1 Yes that would be the simplest approach that we can take.
 @IsuruH: Can you please share the information you found on Hazelcast on
 this regard?

  Its at [1], section 'Discover by TCP/IP'

 [1]. http://docs.hazelcast.org/docs/3.4/manual/html/hazelcastclusters.html


 Thanks

 On Sun, May 24, 2015 at 4:26 PM, Lakmal Warusawithana lak...@wso2.com
 wrote:



 On Sunday, May 24, 2015, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 As we discussed offline I tested weather carbon clustering works with
 hostnames instead of Ips.

 I tried with two AS 5.2.1 nodes, each becoming to WKA member to the
 other member. Members get joined and registry based deb sync worked. I will
 try with multiple nodes and with a different product and update the thread.

 @Imesh
 If clustering works with hostnames, shall we proceed with this approach?


 +1 will use hostnames



 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897



 --
 Sent from Gmail Mobile




 --
 *Imesh Gunaratne*
 Senior Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware




 --
 Thanks and Regards,

 Isuru H.
 +94 716 358 048* http://wso2.com/*





-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MDM] Error occurred while issuing the access token

2015-05-24 Thread Thilini Cooray
Hi Milan,

Were you able to resolve this issue?
It seems to be a primary key constraint violation, trying to insert an
access token which is already in the database.
Are you getting this continuously or is this an intermittent issue?

Thanks.

On Sun, May 24, 2015 at 1:57 PM, Milan Perera mi...@wso2.com wrote:

 Hi,

 I'm getting following exception when the android client application tries
 to obtain a token after the expiration time.

 [2015-05-24 13:07:39,483] ERROR
 {org.wso2.carbon.identity.oauth2.OAuth2Service} -  Error occurred while
 issuing the access token for Client ID : wmDGttgLFP3r0iQe54F3YMJTGFQa, User
 ID null, Scope : [Ljava.lang.String;@33f9a5f1 and Grant Type :
 refresh_token
 org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception: Error while
 getting an Identity Persistence Store instance.
 at
 org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.invalidateAndCreateNewToken(TokenMgtDAO.java:877)
 at
 org.wso2.carbon.identity.oauth2.token.handlers.grant.RefreshGrantHandler.issue(RefreshGrantHandler.java:210)
 at
 org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.issue(AccessTokenIssuer.java:187)
 at
 org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessToken(OAuth2Service.java:176)
 at
 org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.getAccessToken(OAuth2TokenEndpoint.java:234)
 at
 org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:108)
 at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:601)
 at
 org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
 at
 org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
 at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
 at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100)
 at
 org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)
 at
 org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)
 at
 org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
 at
 org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
 at
 org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
 at
 org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
 at
 org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
 at
 org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
 at
 org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
 at
 org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
 at
 org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
 at
 org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
 at
 org.wso2.carbon.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.webapp.authenticator.framework.WebappAuthenticatorFrameworkValve.invoke(WebappAuthenticatorFrameworkValve.java:39)
 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
 at
 

Re: [Dev] [WSO2 PP] Clustering for WSO2 products in Private PaaS

2015-05-24 Thread Imesh Gunaratne
Thanks Isuru! Great work Udara!
Once we are done with the initial implementation please commit it to git
and send an update.

On Mon, May 25, 2015 at 9:21 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi ,

 I tested with a three nodes cluster. Tested caching with the web app
 provided by Isuruh and it seems to work. Lets go with that approach.

 On Sun, May 24, 2015 at 11:32 PM, Isuru Haththotuwa isu...@wso2.com
 wrote:

 Hi,

 On Sun, May 24, 2015 at 6:55 PM, Imesh Gunaratne im...@wso2.com wrote:

 +1 Yes that would be the simplest approach that we can take.
 @IsuruH: Can you please share the information you found on Hazelcast on
 this regard?

  Its at [1], section 'Discover by TCP/IP'

 [1].
 http://docs.hazelcast.org/docs/3.4/manual/html/hazelcastclusters.html


 Thanks

 On Sun, May 24, 2015 at 4:26 PM, Lakmal Warusawithana lak...@wso2.com
 wrote:



 On Sunday, May 24, 2015, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 As we discussed offline I tested weather carbon clustering works with
 hostnames instead of Ips.

 I tried with two AS 5.2.1 nodes, each becoming to WKA member to the
 other member. Members get joined and registry based deb sync worked. I 
 will
 try with multiple nodes and with a different product and update the 
 thread.

 @Imesh
 If clustering works with hostnames, shall we proceed with this
 approach?


 +1 will use hostnames



 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897



 --
 Sent from Gmail Mobile




 --
 *Imesh Gunaratne*
 Senior Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware




 --
 Thanks and Regards,

 Isuru H.
 +94 716 358 048* http://wso2.com/*





 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897




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


[Dev] [Jaggery] Calling javascript function from .Jag file

2015-05-24 Thread Himasha Guruge
Hi All,

I have a .jag file(startProcess.jag) that needs to call a javascript
function (showStatus()). In the .jag, I have added a require statement to
get the .js file and calling the function through that like below.


var process = require(/js/actions.js);
process.showStatus(id);

In the controller all the jags are included, and jquery/bootstrap
references are added in footer.jag. My controller looks like below.

include(/template/startProcess.jag);
  ...
include(/template/partials/footer.jag);
But at the execution of the process, it gives undefined error for methods
such as 'alert'. (Methods that are used within showStatus()). What could be
the reason for this? I came across [1] , so if this is the same issue in
this scenario as well, is there any workaround?

[1]
http://stackoverflow.com/questions/1125/referenceerror-alert-is-not-defined

Thanks,

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] [MB] 'jmstansport' sample in MB is not related to JMS.

2015-05-24 Thread Hemika Kodikara
Hi,

I'll move ahead by removing this sample, WDYT ?

Regards,
Hemika

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

Mobile : +9477762

On Fri, May 22, 2015 at 10:43 AM, Hasitha Hiranya hasit...@wso2.com wrote:

 AFAIR In good old days these two were mandatory tests for the platform.
 Now the things has changed.
 Thus +1

 On Fri, May 22, 2015 at 12:10 AM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 HI,
  I'm in favour of deprecating this one.
  @Shammi, @Hasitha: thoughts?

 On Thu, May 21, 2015 at 2:53 PM, Hemika Kodikara hem...@wso2.com wrote:

 Hi All,

 In MB 3.0.0, we have a sample called jmstansport. As far as I
 understood in this sample was that a service is hosted using a wsdl and its
 methods are called using generated stubs. So in my opinion, this is not
 related to JMS.

 I was looking into the sample because of the following JIRA :
 https://wso2.org/jira/browse/MB-536

 Initially I got a different exception which I was able to fix using the
 following jar.

 axis2-transport-jms-1.1.0-wso2v11.jar

 My concern is that should we keep this in MB samples ?

 Correct me if my findings are wrong.

 Source code for sample [1].

 [1] -
 https://github.com/wso2/product-mb/tree/master/modules/samples/product/jmstransport

 Regards,
 Hemika

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

 Mobile : +9477762




 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 777542851




 --
 *Hasitha Abeykoon*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com
 *cell:* *+94 719363063*
 *blog: **abeykoon.blogspot.com* http://abeykoon.blogspot.com


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


[Dev] [CEP] Getting errors when deploying an execution plan in CEP.

2015-05-24 Thread Bhashinee Nirmali
Hi All,

I'm trying to deploy an execution plan in CEP using SoapUI. It was not
successful and I'm getting errors.
I have attached Request payload [1], Request headers[2], Response
payload[3],Response headers[4] and CEP Error[5].
I have used basic authentication with user name - admin and password -
admin.

Can anyone please help me with this?

Thank You

Bhashinee Nirmali
Faculty of Information Technology
University of Moratuwa.


[1] Request payload

soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:adm=http://admin.processor.event.carbon.wso2.org;
   soapenv:Header/
   soapenv:Body
  adm:deployExecutionPlanConfigurationFromConfigXml

 adm:executionPlanConfigurationXml
executionPlan name=execution statistics=disable trace=disable xmlns=
http://wso2.org/carbon/eventprocessor;
  description/
  siddhiConfiguration
property
name=siddhi.persistence.snapshot.time.interval.minutes0/property
property name=siddhi.enable.distributed.processingfalse/property
  /siddhiConfiguration
  importedStreams
stream as=input name=input version=1.0.0/
  /importedStreams
  queryExpressions![CDATA[from input
select *
insert into output1 ]]/queryExpressions
  exportedStreams
stream name=output1 valueOf=output1 version=1.0.0/
  /exportedStreams
/executionPlan
/adm:executionPlanConfigurationXml
  /adm:deployExecutionPlanConfigurationFromConfigXml
   /soapenv:Body
/soapenv:Envelope

[2] Request headers

POST
https://192.168.1.100:9443/services/EventProcessorAdminService.EventProcessorAdminServiceHttpsSoap12Endpoint/
HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: urn:deployExecutionPlanConfigurationFromConfigXml
Authorization: Basic YWRtaW46YWRtaW4=
Content-Length: 1112
Host: 192.168.1.100:9443
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)


[3] Response payload

soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
   soapenv:Body
  soapenv:Fault
 faultcodesoapenv:Server/faultcode
 faultstringjavax.xml.stream.XMLStreamException: ParseError at
[row,col]:[3,37]
Message: Premature end of file./faultstring
 detail/
  /soapenv:Fault
   /soapenv:Body
/soapenv:Envelope

[4] Response headers

HTTP/1.1 500 Internal Server Error
Set-Cookie: JSESSIONID=EE44325408E903BEB0B8D091EAA41440; Path=/; Secure;
HttpOnly
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Sun, 24 May 2015 18:28:11 GMT
Connection: close
Server: WSO2 Carbon Server



[5] CEP error

[2015-05-24 11:28:11,094] ERROR - {RPCMessageReceiver}
 javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,37]
Message: Premature end of file.
java.lang.reflect.InvocationTargetException
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)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
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:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at

Re: [Dev] Orbit Bundle orbit/jsonpath/0.8.1.wso2v1

2015-05-24 Thread Lasantha Fernando
Hi Dhanuka,

Sorry for asking again... But any reason for including a 3+ years old
library and creating an orbit bundle out of it now, when there are multiple
later versions available?

Thanks,
Lasantha

On 22 May 2015 at 14:29, Dhanuka Ranasinghe dhan...@wso2.com wrote:

 Hi Manoj,

 I have done the fixes, could you please verify them.


 Cheers,

 *Dhanuka Ranasinghe*

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

 phone : +94 715381915

 On Fri, May 22, 2015 at 1:25 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Dhanuka,

 I see some issues with the current PR,

 Please correct them referring to [1].

 [1]
 https://docs.google.com/document/d/1I3nWPnG6139YobZzQWPFOUxYEmHxqf9ieWykmQupPtc/edit#


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Fri, May 22, 2015 at 12:38 PM, Dhanuka Ranasinghe dhan...@wso2.com
 wrote:

 Hi,

 Could you please merge below PR [1].

 [1] https://github.com/wso2/orbit/pull/97

 Cheers,
 *Dhanuka Ranasinghe*

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

 phone : +94 715381915




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




-- 
*Lasantha Fernando*
Senior Software Engineer - Data Technologies Team
WSO2 Inc. http://wso2.com

email: lasan...@wso2.com
mobile: (+94) 71 5247551
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Orbit Bundle orbit/jsonpath/0.8.1.wso2v1

2015-05-24 Thread Lasantha Fernando
Hi guys,

The reason for asking is, actually we used JSON path 0.8.1 with CEP 3.0.0
(And it seems an orbit bundle was created back then [1], but the artifact
id seems to be wrong), and we faced some bugs with this version. When
releasing CEP 3.1.0, we upgraded to 0.9.1 to fix these issues.

So you might also face these issues if you stick with an old version with
bugs. Hence the request to avoid using this particular version of the
library if possible... :-)

[1]
http://maven.wso2.org/nexus/content/groups/wso2-public/com/jayway/jsonpath/com.jayway.jsonpath/0.8.1.wso2v1/

Thanks,
Lasantha

On 24 May 2015 at 13:05, Lasantha Fernando lasan...@wso2.com wrote:

 Hi Dhanuka,

 Sorry for asking again... But any reason for including a 3+ years old
 library and creating an orbit bundle out of it now, when there are multiple
 later versions available?

 Thanks,
 Lasantha

 On 22 May 2015 at 14:29, Dhanuka Ranasinghe dhan...@wso2.com wrote:

 Hi Manoj,

 I have done the fixes, could you please verify them.


 Cheers,

 *Dhanuka Ranasinghe*

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

 phone : +94 715381915

 On Fri, May 22, 2015 at 1:25 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Dhanuka,

 I see some issues with the current PR,

 Please correct them referring to [1].

 [1]
 https://docs.google.com/document/d/1I3nWPnG6139YobZzQWPFOUxYEmHxqf9ieWykmQupPtc/edit#


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Fri, May 22, 2015 at 12:38 PM, Dhanuka Ranasinghe dhan...@wso2.com
 wrote:

 Hi,

 Could you please merge below PR [1].

 [1] https://github.com/wso2/orbit/pull/97

 Cheers,
 *Dhanuka Ranasinghe*

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

 phone : +94 715381915




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




 --
 *Lasantha Fernando*
 Senior Software Engineer - Data Technologies Team
 WSO2 Inc. http://wso2.com

 email: lasan...@wso2.com
 mobile: (+94) 71 5247551




-- 
*Lasantha Fernando*
Senior Software Engineer - Data Technologies Team
WSO2 Inc. http://wso2.com

email: lasan...@wso2.com
mobile: (+94) 71 5247551
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [MDM] Error occurred while issuing the access token

2015-05-24 Thread Milan Perera
Hi,

I'm getting following exception when the android client application tries
to obtain a token after the expiration time.

[2015-05-24 13:07:39,483] ERROR
{org.wso2.carbon.identity.oauth2.OAuth2Service} -  Error occurred while
issuing the access token for Client ID : wmDGttgLFP3r0iQe54F3YMJTGFQa, User
ID null, Scope : [Ljava.lang.String;@33f9a5f1 and Grant Type : refresh_token
org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception: Error while
getting an Identity Persistence Store instance.
at
org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.invalidateAndCreateNewToken(TokenMgtDAO.java:877)
at
org.wso2.carbon.identity.oauth2.token.handlers.grant.RefreshGrantHandler.issue(RefreshGrantHandler.java:210)
at
org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.issue(AccessTokenIssuer.java:187)
at
org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessToken(OAuth2Service.java:176)
at
org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.getAccessToken(OAuth2TokenEndpoint.java:234)
at
org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:108)
at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100)
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.wso2.carbon.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.webapp.authenticator.framework.WebappAuthenticatorFrameworkValve.invoke(WebappAuthenticatorFrameworkValve.java:39)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)