Re: [Dev] way for develop CRUD Form with JSP and data services server

2014-09-17 Thread Akila Nimantha [IT/EKO/LOITS]
Hi Harsha,

Thank you very much for your helpful resources. also we did the same for 
generate stubs and call services.

Regards,
Akila

From: Harsha Kumara [mailto:hars...@wso2.com]
Sent: Friday, September 12, 2014 7:10 PM
To: Akila Nimantha [IT/EKO/LOITS]
Cc: dev@wso2.org
Subject: Re: [Dev] way for develop CRUD Form with JSP and data services server

Hi Akila,

Generating Stub and using is not a difficult task as there are many stub 
generators available. To call soap services, what you need is a soap client 
which may use stubs to call required services and display required data in jsp 
forms. You can find [1] and [2] as useful resources.

[1]-https://axis.apache.org/axis2/java/core/docs/userguide-creatingclients.html
[2]-http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/

Thanks,
Harsha

On Fri, Sep 12, 2014 at 5:34 PM, Akila Nimantha [IT/EKO/LOITS] 
aki...@lolctech.commailto:aki...@lolctech.com wrote:
Hi all,

As we know we can easily call soap services using few lines of jaggery code. 
also jaggery is very much friendly for developers(and get addicted to it ☺). 
But if we use jsp as one of our application interface, now AFAIK we have to 
generate stubs for each call. And it is a difficult work.
My question is ,
Is there a way(or best practice or a framework) to call soap services with 
jsp(like jaggery). ???

Regards,
Akila

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

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



--
Harsha Kumara
Software Engineer, WSO2 Inc.
Mobile: +94775505618
Blog:harshcreationz.blogspot.comhttp://harshcreationz.blogspot.com

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

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


[Dev] [GREG] Improve notification support for Cluster environment

2014-09-17 Thread Danesh Kuruppu
Hi All,
I am currently working on the issue Redmine-3207[1].

*Issue:*
With the current notification impl, each node cache needs to sync with
every others. So when the particular resource updated, it gets the all
subscription keys from its cache and send notifications.

With the distributed cache, each node does not have all
records(subscriptions) synced in its cache. records are distributed among
the nodes. So our above implementation fails, because we cannot retrieve
all record from the working node.

*Proposed Solution: *
As offline chat with Azeez, We came up with the solution of sending a
cluster message with the instruction and the node which actually having the
record, perform the instruction on behalf of the working node.

*Problem with the solution:*
One particular record can exists in multiple nodes. So when the working
node send a cluster message, every other node having that record gets
triggered and perform the instruction. In this case, all these nodes send
notification and we get multiple notifications for the resource update.

This is happen because each time when server get restart, it loads all
subscriptions from the subscription manager(db).

Is there way of distribute records among nodes when loading subscriptions
from the manager?

[1] https://redmine.wso2.com/issues/3207

Thanks
-- 

Danesh Kuruppu
Software Engineer
WSO2 Inc,
Mobile: +94 (77) 1690552
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please merge CEP Integration test commit#18

2014-09-17 Thread Nuwan Wimalasekara
Hi CEP Team,
Please merge the pull request
https://github.com/wso2-dev/product-cep/pull/18

Thanks,
Nuwanw

-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Exception when trying to access the store

2014-09-17 Thread Sohani Weerasinghe
Hi All,

I am using AM 1.6.0 and when I try to access the store I am getting the
below exception.

Please note that I have enabled workflow execution and have shared the same
registry db among BPS and AM.

TID: [0] [AM] [2014-09-17 11:30:22,719] ERROR
{org.jaggeryjs.scriptengine.engine.RhinoEngine} -
 org.mozilla.javascript.WrappedException: Wrapped
java.lang.NullPointerException (/store/modules/manager/manager.jag#41)
{org.jaggeryjs.scriptengine.engine.RhinoEngine}
TID: [0] [AM] [2014-09-17 11:30:22,720] ERROR
{org.jaggeryjs.jaggery.core.manager.WebAppManager} -
 org.mozilla.javascript.WrappedException: Wrapped
java.lang.NullPointerException (/store/modules/manager/manager.jag#41)
{org.jaggeryjs.jaggery.core.manager.WebAppManager}
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
java.lang.NullPointerException (/store/modules/manager/manager.jag#41)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:575)
at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:432)
at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.mozilla.javascript.WrappedException: Wrapped
java.lang.NullPointerException (/store/modules/manager/manager.jag#41)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:392)
at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:343)
at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2349)
at
org.jaggeryjs.rhino.store.modules.manager.c1._c_anonymous_8(/store/modules/manager/manager.jag:41)
at
org.jaggeryjs.rhino.store.modules.manager.c1.call(/store/modules/manager/manager.jag)
at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
at 

[Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Ramith Jayasinghe
Hi Sewwandhi,

Congratulations!

It is with great pleasure that we welcome you as a WSO2 committer. Keep up
the good work!
thanks and best regards,

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

E: ram...@wso2.com
P: +94 777542851
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [WSO2 IS 5]Error when adding the consumer application. An application with the same name already exists.

2014-09-17 Thread Tharindu Edirisinghe
Hi Fabrizio,

Can you please refer [1
http://ajithvblogs.blogspot.com/2012/04/how-to-browse-h2-database-of-wso2.html],
access the H2 database that comes inbuilt and execute the following query.

SELECT * FROM IDN_OAUTH_CONSUMER_APPS

Then you should be able to see whether there are existing records similar
to the one you are trying to create.

If you can share the exact steps to reproduce this issue, we can help you
with this.

[1]
http://ajithvblogs.blogspot.com/2012/04/how-to-browse-h2-database-of-wso2.html

On Thu, Aug 28, 2014 at 2:55 PM, De Ceglia Fabrizio f.deceg...@reply.it
wrote:

  Hi all,



 i’m using WSO2 Identity Server version 5.0.



 I’m following this tutorial:
 https://docs.wso2.com/display/IS500/Configuring+Inbound+Authentication+for+a+Service+Provider#ConfiguringInboundAuthenticationforaServiceProvider-ConfiguringOAuth/OpenIDConnect



 But every time I try to add an application in the “OAuth/OpenID Connect
 Configuration” under “Inboud Authentication Configuration” during the SP
 configuration, WSO2 gives me this error:

 “Error when adding the consumer application. An application with the same
 name already exists.”



 I really doesn’t understand which application refers because this is my
 first configuration on a fresh installation of WSO2 IS.



 Let me know if I can attach more info/file to help finding the solution.


  Fabrizio De Ceglia

 Concept Reply
 Via Giuseppe Sangiorgi, 15
 70124 - Bari - ITALY
 phone: +39 080 9727039
 f.deceg...@reply.it
 www.reply.it

 [image: Concept Reply]


 --

 --
 The information transmitted is intended for the person or entity to which
 it is addressed and may contain confidential and/or privileged material.
 Any review, retransmission, dissemination or other use of, or taking of any
 action in reliance upon, this information by persons or entities other than
 the intended recipient is prohibited. If you received this in error, please
 contact the sender and delete the material from any computer.

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




-- 

Thanks  Best Regards,

Tharindu Edirisinghe
Software Engineer

*WSO2 Inc*
*email   : tharin...@wso2.com tharin...@wso2.com *
*mobile : +94 775 181586*
*www: :http://wso2.com http://wso2.com/ *lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Sajini De Silva
Congrats Sewwandi !!!

On Wed, Sep 17, 2014 at 11:56 AM, Ramith Jayasinghe ram...@wso2.com wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer. Keep
 up the good work!
 thanks and best regards,

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

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


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




-- 
Sajini De SIlva
Software Engineer; WSO2 Inc.; http://wso2.com ,
Email: saj...@wso2.com
Blog: http://sajinid.blogspot.com/
Git hub profile: https://github.com/sajinidesilva

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


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Hasitha Amal De Silva
Congrats Sewwandi !! :)

On Wed, Sep 17, 2014 at 11:59 AM, Sajini De Silva saj...@wso2.com wrote:

 Congrats Sewwandi !!!

 On Wed, Sep 17, 2014 at 11:56 AM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer. Keep
 up the good work!
 thanks and best regards,

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

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


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




 --
 Sajini De SIlva
 Software Engineer; WSO2 Inc.; http://wso2.com ,
 Email: saj...@wso2.com
 Blog: http://sajinid.blogspot.com/
 Git hub profile: https://github.com/sajinidesilva

 Phone: +94 712797729


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




-- 
Cheers,

Hasitha Amal De Silva
 Software Engineer
Mobile : 0772037426
Blog: http://hastef.wordpress.com/
WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Maven build failure when generating service stub for a WSO2 Carbon Component

2014-09-17 Thread Vimalanathan Rajeevan
Hi,

I got a maven build failure when trying to create a service stub after
successfully creating server component and generating .wsdl file. I was
following a tutorial [1].
[1]
http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/

Please find  the attached org.wso2.carbon.student.mgt.stub → pom.xml file
is used. I am getting the following error when building
org.wso2.carbon.student.mgt.stub
module using maven.

*Failed to execute goal on project org.wso2.carbon.student.mgt.stub: Could
not resolve dependencies for project
org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0:*

*The following artifacts could not be resolved:
org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10,
org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4,
wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4: *

*Failure to find org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 in
http://repo.maven.apache.org/maven2 http://repo.maven.apache.org/maven2
was cached in the local repository, resolution will not be reattempted
until the update interval of central has elapsed or updates are forced*

It seems like problem with maven dependency versions. Please help me to get
this resolved.

Best Regards,
V.Rajeevan
Software Engineer,
WSO2 Inc. :http://wso2.com

Mobile : +94 773090875
Email : rajeev...@wso2.com
{\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf210
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural

\f0\fs24 \cf0 ?xml version=1.0 encoding=UTF-8?\
project xmlns=http://maven.apache.org/POM/4.0.0\
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance\
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd;\
parent\
artifactIdstudent-manager-components/artifactId\
groupIdorg.wso2.carbon/groupId\
version4.2.0/version\
/parent\
modelVersion4.0.0/modelVersion\
\
artifactIdorg.wso2.carbon.student.mgt.stub/artifactId\
\
packagingbundle/packaging\
nameWSO2 Carbon - Student Manager Stub/name\
\
dependencies\
dependency\
groupIdorg.apache.axis2.wso2/groupId\
artifactIdaxis2/artifactId\
version1.6.1.wso2v10/version\
/dependency\
dependency\
groupIdorg.apache.ws.commons.axiom.wso2/groupId\
artifactIdaxiom/artifactId\
version1.2.11.wso2v4/version\
/dependency\
dependency\
groupIdwsdl4j.wso2/groupId\
artifactIdwsdl4j/artifactId\
version1.6.2.wso2v4/version\
/dependency\
/dependencies\
\
build\
plugins\
plugin\
groupIdorg.apache.maven.plugins/groupId\
artifactIdmaven-antrun-plugin/artifactId\
version1.1/version\
executions\
execution\
idsource-code-generation/id\
phaseprocess-resources/phase\
goals\
goalrun/goal\
/goals\
configuration\
tasks\
path id=wsdl2java.classpath\
pathelement location=/Users/rajeevanv/.m2/repository/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar/\
pathelement location=/Users/rajeevanv/.m2/repository/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar /\
pathelement location=/Users/rajeevanv/.m2/repository/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar /\
/path\
java classname=org.apache.axis2.wsdl.WSDL2Java fork=true\
classpath refid=wsdl2java.classpath /\
arg line=-uri src/main/resources/StudentManager.wsdl -u -uw\
 -o target/generated-code -p org.wso2.carbon.student.mgt.stub/\
/java\
/tasks\
/configuration\
/execution\
/executions\
/plugin\
\
plugin\
groupIdorg.codehaus.mojo/groupId\
artifactIdbuild-helper-maven-plugin/artifactId\
executions\
execution\
idadd-source/id\
phasegenerate-sources/phase\
goals\
goaladd-source/goal\
/goals\
configuration\
sources\

Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Shiroshica Kulatilake
Congrats !

On Wed, Sep 17, 2014 at 12:01 PM, Hasitha Amal De Silva hasit...@wso2.com
wrote:

 Congrats Sewwandi !! :)

 On Wed, Sep 17, 2014 at 11:59 AM, Sajini De Silva saj...@wso2.com wrote:

 Congrats Sewwandi !!!

 On Wed, Sep 17, 2014 at 11:56 AM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer. Keep
 up the good work!
 thanks and best regards,

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

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


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




 --
 Sajini De SIlva
 Software Engineer; WSO2 Inc.; http://wso2.com ,
 Email: saj...@wso2.com
 Blog: http://sajinid.blogspot.com/
 Git hub profile: https://github.com/sajinidesilva

 Phone: +94 712797729


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




 --
 Cheers,

 Hasitha Amal De Silva
  Software Engineer
 Mobile : 0772037426
 Blog: http://hastef.wordpress.com/
 WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )

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




-- 
Shiroshica Kulatilake

Architect,
WSO2, Inc. http://wso2.com/
Phone: +94 776523867
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Sameera Jayaratna
Congrats Sewwandi!!!

On Wed, Sep 17, 2014 at 12:03 PM, Shiroshica Kulatilake sh...@wso2.com
wrote:

 Congrats !

 On Wed, Sep 17, 2014 at 12:01 PM, Hasitha Amal De Silva hasit...@wso2.com
  wrote:

 Congrats Sewwandi !! :)

 On Wed, Sep 17, 2014 at 11:59 AM, Sajini De Silva saj...@wso2.com
 wrote:

 Congrats Sewwandi !!!

 On Wed, Sep 17, 2014 at 11:56 AM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 thanks and best regards,

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

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


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




 --
 Sajini De SIlva
 Software Engineer; WSO2 Inc.; http://wso2.com ,
 Email: saj...@wso2.com
 Blog: http://sajinid.blogspot.com/
 Git hub profile: https://github.com/sajinidesilva

 Phone: +94 712797729


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




 --
 Cheers,

 Hasitha Amal De Silva
  Software Engineer
 Mobile : 0772037426
 Blog: http://hastef.wordpress.com/
 WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )

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




 --
 Shiroshica Kulatilake

 Architect,
 WSO2, Inc. http://wso2.com/
 Phone: +94 776523867

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




-- 



*Thanks  Regards,Sameera Jayaratna Software Engineer; **WSO2 Inc. *

*lean . enterprise . middleware |  http://wso2.com http://wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Isura Karunaratne
Congratzz

On Wed, Sep 17, 2014 at 12:05 PM, Sameera Jayaratna samee...@wso2.com
wrote:

 Congrats Sewwandi!!!

 On Wed, Sep 17, 2014 at 12:03 PM, Shiroshica Kulatilake sh...@wso2.com
 wrote:

 Congrats !

 On Wed, Sep 17, 2014 at 12:01 PM, Hasitha Amal De Silva 
 hasit...@wso2.com wrote:

 Congrats Sewwandi !! :)

 On Wed, Sep 17, 2014 at 11:59 AM, Sajini De Silva saj...@wso2.com
 wrote:

 Congrats Sewwandi !!!

 On Wed, Sep 17, 2014 at 11:56 AM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 thanks and best regards,

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

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


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




 --
 Sajini De SIlva
 Software Engineer; WSO2 Inc.; http://wso2.com ,
 Email: saj...@wso2.com
 Blog: http://sajinid.blogspot.com/
 Git hub profile: https://github.com/sajinidesilva

 Phone: +94 712797729


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




 --
 Cheers,

 Hasitha Amal De Silva
  Software Engineer
 Mobile : 0772037426
 Blog: http://hastef.wordpress.com/
 WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )

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




 --
 Shiroshica Kulatilake

 Architect,
 WSO2, Inc. http://wso2.com/
 Phone: +94 776523867

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




 --



 *Thanks  Regards,Sameera Jayaratna Software Engineer; **WSO2 Inc. *

 *lean . enterprise . middleware |  http://wso2.com http://wso2.com *

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




-- 
Isura Dilhara Karunaratne
Software Engineer

Mob +94 772 254 810
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Sinthuja Ragendran
Congratz sewwandi!

On Wed, Sep 17, 2014 at 11:56 AM, Ramith Jayasinghe ram...@wso2.com wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer. Keep
 up the good work!
 thanks and best regards,

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

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


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




-- 
*Sinthuja Rajendran*
Senior Software Engineer http://wso2.com/
WSO2, Inc.:http://wso2.com

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


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Manula Chathurika Thantriwatte
Congratulations !!!

On Wed, Sep 17, 2014 at 12:09 PM, Sinthuja Ragendran sinth...@wso2.com
wrote:

 Congratz sewwandi!

 On Wed, Sep 17, 2014 at 11:56 AM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer. Keep
 up the good work!
 thanks and best regards,

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

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


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




 --
 *Sinthuja Rajendran*
 Senior Software Engineer http://wso2.com/
 WSO2, Inc.:http://wso2.com

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



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




-- 
Regards,
Manula Chathurika Thantriwatte
Software Engineer
WSO2 Inc. : http://wso2.com
lean . enterprise . middleware

email : manu...@wso2.com / man...@apache.org
phone : +94 772492511
blog : http://manulachathurika.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Nipuni Perera
Congradulations Sewwandi

On Wed, Sep 17, 2014 at 12:13 PM, Manula Chathurika Thantriwatte 
manu...@wso2.com wrote:

 Congratulations !!!

 On Wed, Sep 17, 2014 at 12:09 PM, Sinthuja Ragendran sinth...@wso2.com
 wrote:

 Congratz sewwandi!

 On Wed, Sep 17, 2014 at 11:56 AM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer. Keep
 up the good work!
 thanks and best regards,

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

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


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




 --
 *Sinthuja Rajendran*
 Senior Software Engineer http://wso2.com/
 WSO2, Inc.:http://wso2.com

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



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




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/




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




-- 
Nipuni Perera
Software Engineer; WSO2 Inc.; http://wso2.com
Email: nip...@wso2.com
Git hub profile: https://github.com/nipuni
Mobile: +94 (71) 5626680
http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Suhan Dharmasuriya
Thanks Lasindu,

Thushara and I are in the process of modifying the shell scripts suitable
for osx.
We contacted Nirmal, Lakmal, Waruna and Udara and had a quick discussion.

After the discussion, the solution we found was to delete the
USERSTORE_DB_SCHEMA database from mysql manually.

As mentioned earlier, once $ sudo ./setup.sh -p default -s command is run
we get the following error.
outputEventAdaptor name=JMSOutputAdaptor statistics=disable
  trace=enable type=jms xmlns=
http://wso2.org/carbon/eventadaptormanager;
  !--property
name=java.naming.provider.urlCEP_HOME/repository/conf/jndi.properties/property--
  property name=java.naming.provider.urltcp://10.100.5.175:61616
/property
  property
name=java.naming.factory.initialorg.apache.activemq.jndi.ActiveMQInitialContextFactory/property
  property
name=transport.jms.ConnectionFactoryJNDINameTopicConnectionFactory/property
  property name=transport.jms.DestinationTypetopic/property
/outputEventAdaptor
End configuring the Complex Event Processor
/WSO2/Products/stratos/opt/stratos-installer
Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
chown: suhanr: illegal group name

*After the second attempt we were getting the said error. $subject.*

As a temporary solution we deleted the said database from mysql.
mysql show databases;
+-+
| Database|
+-+
| information_schema  |
| *USERSTORE_DB_SCHEMA* |
| mysql   |
| performance_schema  |
| test|
+-+
5 rows in set (0.00 sec)

mysql drop database *USERSTORE_DB_SCHEMA*;
Query OK, 39 rows affected (0.05 sec)

mysql show databases;
++
| Database   |
++
| information_schema |
| mysql  |
| performance_schema |
| test   |
++
4 rows in set (0.00 sec)

Then we were able to avoid the mentioned error in $subject.

Thanks,
Suhan

On Wed, Sep 17, 2014 at 11:21 AM, Lasindu Charith lasi...@wso2.com wrote:

 Hi Thushara and Suhan,

 Better if you can discuss the issues related to Apaches Stratos in
 stratos-dev list (http://stratos.apache.org/community/mailing-lists.html)
 But for now, regarding the issues you have when setting up Stratos in osx,
 Nirmal, Reka or Prasanna might be able to help (Added).

 Thanks,

 On Tue, Sep 16, 2014 at 3:57 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 We have installed mysql for OSX 10.9 [1]

 [1] http://www.macminivault.com/mysql-mavericks/

 On Tue, Sep 16, 2014 at 3:55 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 Myself and Thushara were following the tutorial [1] installing apache
 Stratos and came to the following section.

- Run the stratos-setup.sh file as the root.

 $ sudo ./setup.sh -p default

 After running the command we got the following error in our mac book
 pros.
 Detail terminal output is attached in the mail for reference.

 /WSO2/Products/stratos/opt/stratos-installer
 Warning: Using a password on the command line interface can be insecure.
 *ERROR 1061 (42000) at line 57: Duplicate key name
 'REG_PATH_IND_BY_PATH_VALUE'*

 We also followed the apache stratos wiki [3].
 Please provide a direction to proceed from here.

 *Note*: *earlier setup.sh file gave an error saying,*
 sed: illegal option --r
 *Then the shell script was changed accordingly[2].*
 *Please note that we are using Mac OSX 10.9.4*

 *Then again an error appeared stating -i switch is not supported.*

 *Therefore the following shell script files were modified removing -i
 switch.*
 *ec2.sh*
 *openstack.sh*
 *setup.sh*
 *setup.conf*

 *Scripts are attached for reference. *

 [1]
 http://blog.ravihansa3000.com/2014/04/installing-apache-stratos-40-with.html
 [2] http://www.flashesofpanic.com/panic/002596.php
 [3]
 https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Cloud+Controller+Configuration

 Thanks,
 Suhan and Thushara
 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhancoold.blogspot.com/




 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhancoold.blogspot.com/

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




 --
 *Lasindu Charith*
 Software Engineer, WSO2 Inc.
 Mobile: +94714427192
 Web: blog.lasindu.com




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhancoold.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Rajith Vitharana
Congrags ... :)

On Wed, Sep 17, 2014 at 12:16 PM, Nipuni Perera nip...@wso2.com wrote:


 Congradulations Sewwandi

 On Wed, Sep 17, 2014 at 12:13 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Congratulations !!!

 On Wed, Sep 17, 2014 at 12:09 PM, Sinthuja Ragendran sinth...@wso2.com
 wrote:

 Congratz sewwandi!

 On Wed, Sep 17, 2014 at 11:56 AM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 thanks and best regards,

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

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


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




 --
 *Sinthuja Rajendran*
 Senior Software Engineer http://wso2.com/
 WSO2, Inc.:http://wso2.com

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



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




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/




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




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


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




-- 
Rajith Vitharana

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


Re: [Dev] Maven build failure when generating service stub for a WSO2 Carbon Component

2014-09-17 Thread Aruna Karunarathna
Hi Vimalathan,

Can you try adding the wso2 repo to your pom.xml file.

Regards,
Aruna

On Tue, Sep 16, 2014 at 10:56 AM, Vimalanathan Rajeevan rajeev...@wso2.com
wrote:

 Hi,

 I got a maven build failure when trying to create a service stub after
 successfully creating server component and generating .wsdl file. I was
 following a tutorial [1].
 [1]
 http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/

 Please find  the attached org.wso2.carbon.student.mgt.stub → pom.xml file
 is used. I am getting the following error when building 
 org.wso2.carbon.student.mgt.stub
 module using maven.

 *Failed to execute goal on project org.wso2.carbon.student.mgt.stub: Could
 not resolve dependencies for project
 org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0:*

 *The following artifacts could not be resolved:
 org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10,
 org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4,
 wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4: *

 *Failure to find org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 in
 http://repo.maven.apache.org/maven2 http://repo.maven.apache.org/maven2
 was cached in the local repository, resolution will not be reattempted
 until the update interval of central has elapsed or updates are forced*

 It seems like problem with maven dependency versions. Please help me to
 get this resolved.

 Best Regards,
 V.Rajeevan
 Software Engineer,
 WSO2 Inc. :http://wso2.com

 Mobile : +94 773090875
 Email : rajeev...@wso2.com

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




-- 

*Aruna Sujith Karunarathna* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Aruna Karunarathna
Congratulations Sewwandi...!!!

On Wed, Sep 17, 2014 at 12:17 PM, Rajith Vitharana raji...@wso2.com wrote:

 Congrags ... :)

 On Wed, Sep 17, 2014 at 12:16 PM, Nipuni Perera nip...@wso2.com wrote:


 Congradulations Sewwandi

 On Wed, Sep 17, 2014 at 12:13 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Congratulations !!!

 On Wed, Sep 17, 2014 at 12:09 PM, Sinthuja Ragendran sinth...@wso2.com
 wrote:

 Congratz sewwandi!

 On Wed, Sep 17, 2014 at 11:56 AM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 thanks and best regards,

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

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


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




 --
 *Sinthuja Rajendran*
 Senior Software Engineer http://wso2.com/
 WSO2, Inc.:http://wso2.com

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



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




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/




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




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


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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




-- 

*Aruna Sujith Karunarathna* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Suhan Dharmasuriya
Congrats... :)

On Wed, Sep 17, 2014 at 12:17 PM, Rajith Vitharana raji...@wso2.com wrote:

 Congrags ... :)

 On Wed, Sep 17, 2014 at 12:16 PM, Nipuni Perera nip...@wso2.com wrote:


 Congradulations Sewwandi

 On Wed, Sep 17, 2014 at 12:13 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Congratulations !!!

 On Wed, Sep 17, 2014 at 12:09 PM, Sinthuja Ragendran sinth...@wso2.com
 wrote:

 Congratz sewwandi!

 On Wed, Sep 17, 2014 at 11:56 AM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 thanks and best regards,

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

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


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




 --
 *Sinthuja Rajendran*
 Senior Software Engineer http://wso2.com/
 WSO2, Inc.:http://wso2.com

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



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




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/




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




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


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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhancoold.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please merge the pull requests for BPS-552

2014-09-17 Thread Firzhan Naqash
Hi,

Please review and merge the pull requests [1] and [2]. This fixes the issue
[3].

[1] https://github.com/wso2-dev/carbon-business-process/pull/5

[2] https://github.com/wso2-dev/product-bps/pull/5

[3] https://wso2.org/jira/browse/BPS-552


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


[Dev] [APIM] Is there a way to throttle from IP based and API based

2014-09-17 Thread Shashika Ubhayaratne
Hi,

I need to know is there a way to verify throttling combinations: Throttle
from IP level and API level.

I referred [1] and couldn't find a handler for ip based throttling to
engage policy for an API.

[1]:
https://docs.wso2.com/display/AM170/Managing+Throttling+Tiers#ManagingThrottlingTiers-Differentlevelsofthrottling

Please clarify?

Thanks,
Shashika


Shashika Ubhayaratne
Associate Technical Lead - QA
WSO2 Inc: http://www.wso2.com/
Mobile: *+94773383831*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Gayashan Amarasinghe
Congratulations Sewwandi!!!

On Wed, Sep 17, 2014 at 12:19 PM, Aruna Karunarathna ar...@wso2.com wrote:

 Congratulations Sewwandi...!!!

 On Wed, Sep 17, 2014 at 12:17 PM, Rajith Vitharana raji...@wso2.com
 wrote:

 Congrags ... :)

 On Wed, Sep 17, 2014 at 12:16 PM, Nipuni Perera nip...@wso2.com wrote:


 Congradulations Sewwandi

 On Wed, Sep 17, 2014 at 12:13 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Congratulations !!!

 On Wed, Sep 17, 2014 at 12:09 PM, Sinthuja Ragendran sinth...@wso2.com
  wrote:

 Congratz sewwandi!

 On Wed, Sep 17, 2014 at 11:56 AM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 thanks and best regards,

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

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


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




 --
 *Sinthuja Rajendran*
 Senior Software Engineer http://wso2.com/
 WSO2, Inc.:http://wso2.com

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



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




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/




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




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


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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --

 *Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


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




-- 
*Gayashan Amarasinghe*
Software Engineer | Platform TG
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

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


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Chalitha Waldeniyage
Congratulations Sewwandi !!! :)

On Wed, Sep 17, 2014 at 12:20 PM, Gayashan Amarasinghe gayas...@wso2.com
wrote:

 Congratulations Sewwandi!!!

 On Wed, Sep 17, 2014 at 12:19 PM, Aruna Karunarathna ar...@wso2.com
 wrote:

 Congratulations Sewwandi...!!!

 On Wed, Sep 17, 2014 at 12:17 PM, Rajith Vitharana raji...@wso2.com
 wrote:

 Congrags ... :)

 On Wed, Sep 17, 2014 at 12:16 PM, Nipuni Perera nip...@wso2.com wrote:


 Congradulations Sewwandi

 On Wed, Sep 17, 2014 at 12:13 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Congratulations !!!

 On Wed, Sep 17, 2014 at 12:09 PM, Sinthuja Ragendran 
 sinth...@wso2.com wrote:

 Congratz sewwandi!

 On Wed, Sep 17, 2014 at 11:56 AM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 thanks and best regards,

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

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


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




 --
 *Sinthuja Rajendran*
 Senior Software Engineer http://wso2.com/
 WSO2, Inc.:http://wso2.com

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



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




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/




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




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


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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --

 *Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


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




 --
 *Gayashan Amarasinghe*
 Software Engineer | Platform TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94718314517
 Blog : gayashan-a.blogspot.com

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




-- 
*Chalitha Maheshwari*
Software Engineer-QA,
WSO2 Inc.

*E-mail:* chali...@wso2.com
*Mobile: *+94710 411 112
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Maven build failure when generating service stub for a WSO2 Carbon Component

2014-09-17 Thread Harsha Kumara
HI Vimalanathan,

Add following repos to your pom file. This should solve the issue.
repositories
repository
idwso2-nexus/id
nameWSO2 internal Repository/name
urlhttp://maven.wso2.org/nexus/content/groups/wso2-public/
/url
releases
enabledtrue/enabled
updatePolicydaily/updatePolicy
checksumPolicyignore/checksumPolicy
/releases
/repository

repository
idwso2.releases/id
nameWSO2 internal Repository/name
urlhttp://maven.wso2.org/nexus/content/repositories/releases/
/url
releases
enabledtrue/enabled
updatePolicydaily/updatePolicy
checksumPolicyignore/checksumPolicy
/releases
/repository
repositories

Thanks,
Harsha

On Wed, Sep 17, 2014 at 12:18 PM, Aruna Karunarathna ar...@wso2.com wrote:

 Hi Vimalathan,

 Can you try adding the wso2 repo to your pom.xml file.

 Regards,
 Aruna

 On Tue, Sep 16, 2014 at 10:56 AM, Vimalanathan Rajeevan 
 rajeev...@wso2.com wrote:

 Hi,

 I got a maven build failure when trying to create a service stub after
 successfully creating server component and generating .wsdl file. I was
 following a tutorial [1].
 [1]
 http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/

 Please find  the attached org.wso2.carbon.student.mgt.stub → pom.xml
 file is used. I am getting the following error when building 
 org.wso2.carbon.student.mgt.stub
 module using maven.

 *Failed to execute goal on project org.wso2.carbon.student.mgt.stub:
 Could not resolve dependencies for project
 org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0:*

 *The following artifacts could not be resolved:
 org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10,
 org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4,
 wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4: *

 *Failure to find org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 in
 http://repo.maven.apache.org/maven2 http://repo.maven.apache.org/maven2
 was cached in the local repository, resolution will not be reattempted
 until the update interval of central has elapsed or updates are forced*

 It seems like problem with maven dependency versions. Please help me to
 get this resolved.

 Best Regards,
 V.Rajeevan
 Software Engineer,
 WSO2 Inc. :http://wso2.com

 Mobile : +94 773090875
 Email : rajeev...@wso2.com

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




 --

 *Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


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




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


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Dhanuka Ranasinghe
Congrattzzz !!!

*Dhanuka Ranasinghe*

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

phone : +94 715381915

On Wed, Sep 17, 2014 at 12:22 PM, Chalitha Waldeniyage chali...@wso2.com
wrote:

 Congratulations Sewwandi !!! :)

 On Wed, Sep 17, 2014 at 12:20 PM, Gayashan Amarasinghe gayas...@wso2.com
 wrote:

 Congratulations Sewwandi!!!

 On Wed, Sep 17, 2014 at 12:19 PM, Aruna Karunarathna ar...@wso2.com
 wrote:

 Congratulations Sewwandi...!!!

 On Wed, Sep 17, 2014 at 12:17 PM, Rajith Vitharana raji...@wso2.com
 wrote:

 Congrags ... :)

 On Wed, Sep 17, 2014 at 12:16 PM, Nipuni Perera nip...@wso2.com
 wrote:


 Congradulations Sewwandi

 On Wed, Sep 17, 2014 at 12:13 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Congratulations !!!

 On Wed, Sep 17, 2014 at 12:09 PM, Sinthuja Ragendran 
 sinth...@wso2.com wrote:

 Congratz sewwandi!

 On Wed, Sep 17, 2014 at 11:56 AM, Ramith Jayasinghe ram...@wso2.com
  wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 thanks and best regards,

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

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


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




 --
 *Sinthuja Rajendran*
 Senior Software Engineer http://wso2.com/
 WSO2, Inc.:http://wso2.com

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



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




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/




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




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


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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --

 *Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


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




 --
 *Gayashan Amarasinghe*
 Software Engineer | Platform TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94718314517
 Blog : gayashan-a.blogspot.com

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




 --
 *Chalitha Maheshwari*
 Software Engineer-QA,
 WSO2 Inc.

 *E-mail:* chali...@wso2.com
 *Mobile: *+94710 411 112

 ___
 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 Committers += Sewwandhi Perera

2014-09-17 Thread Sohani Weerasinghe
Congratulations 

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

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

On Wed, Sep 17, 2014 at 12:23 PM, Dhanuka Ranasinghe dhan...@wso2.com
wrote:

 Congrattzzz !!!

 *Dhanuka Ranasinghe*

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

 phone : +94 715381915

 On Wed, Sep 17, 2014 at 12:22 PM, Chalitha Waldeniyage chali...@wso2.com
 wrote:

 Congratulations Sewwandi !!! :)

 On Wed, Sep 17, 2014 at 12:20 PM, Gayashan Amarasinghe gayas...@wso2.com
  wrote:

 Congratulations Sewwandi!!!

 On Wed, Sep 17, 2014 at 12:19 PM, Aruna Karunarathna ar...@wso2.com
 wrote:

 Congratulations Sewwandi...!!!

 On Wed, Sep 17, 2014 at 12:17 PM, Rajith Vitharana raji...@wso2.com
 wrote:

 Congrags ... :)

 On Wed, Sep 17, 2014 at 12:16 PM, Nipuni Perera nip...@wso2.com
 wrote:


 Congradulations Sewwandi

 On Wed, Sep 17, 2014 at 12:13 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Congratulations !!!

 On Wed, Sep 17, 2014 at 12:09 PM, Sinthuja Ragendran 
 sinth...@wso2.com wrote:

 Congratz sewwandi!

 On Wed, Sep 17, 2014 at 11:56 AM, Ramith Jayasinghe 
 ram...@wso2.com wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 thanks and best regards,

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

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


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




 --
 *Sinthuja Rajendran*
 Senior Software Engineer http://wso2.com/
 WSO2, Inc.:http://wso2.com

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



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




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/




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




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


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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --

 *Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


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




 --
 *Gayashan Amarasinghe*
 Software Engineer | Platform TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94718314517
 Blog : gayashan-a.blogspot.com

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




 --
 *Chalitha Maheshwari*
 Software Engineer-QA,
 WSO2 Inc.

 *E-mail:* chali...@wso2.com
 *Mobile: *+94710 411 112

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


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Danesh Kuruppu
Congrats Sewwandi !!!

On Wed, Sep 17, 2014 at 12:23 PM, Dhanuka Ranasinghe dhan...@wso2.com
wrote:

 Congrattzzz !!!

 *Dhanuka Ranasinghe*

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

 phone : +94 715381915

 On Wed, Sep 17, 2014 at 12:22 PM, Chalitha Waldeniyage chali...@wso2.com
 wrote:

 Congratulations Sewwandi !!! :)

 On Wed, Sep 17, 2014 at 12:20 PM, Gayashan Amarasinghe gayas...@wso2.com
  wrote:

 Congratulations Sewwandi!!!

 On Wed, Sep 17, 2014 at 12:19 PM, Aruna Karunarathna ar...@wso2.com
 wrote:

 Congratulations Sewwandi...!!!

 On Wed, Sep 17, 2014 at 12:17 PM, Rajith Vitharana raji...@wso2.com
 wrote:

 Congrags ... :)

 On Wed, Sep 17, 2014 at 12:16 PM, Nipuni Perera nip...@wso2.com
 wrote:


 Congradulations Sewwandi

 On Wed, Sep 17, 2014 at 12:13 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Congratulations !!!

 On Wed, Sep 17, 2014 at 12:09 PM, Sinthuja Ragendran 
 sinth...@wso2.com wrote:

 Congratz sewwandi!

 On Wed, Sep 17, 2014 at 11:56 AM, Ramith Jayasinghe 
 ram...@wso2.com wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 thanks and best regards,

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

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


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




 --
 *Sinthuja Rajendran*
 Senior Software Engineer http://wso2.com/
 WSO2, Inc.:http://wso2.com

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



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




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/




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




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


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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --

 *Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


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




 --
 *Gayashan Amarasinghe*
 Software Engineer | Platform TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94718314517
 Blog : gayashan-a.blogspot.com

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




 --
 *Chalitha Maheshwari*
 Software Engineer-QA,
 WSO2 Inc.

 *E-mail:* chali...@wso2.com
 *Mobile: *+94710 411 112

 ___
 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




-- 

Danesh Kuruppu
Software Engineer
WSO2 Inc,
Mobile: +94 (77) 1690552
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Maven build failure when generating service stub for a WSO2 Carbon Component

2014-09-17 Thread Amal Gunatilake
Hi Vimalathan,

The following lines doesn't correlate with your m2 repository. Please
verify the paths you have given are correct and the corresponding jars
exists.

pathelement 
location=/Users/rajeevanv/.m2/repository/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar/\
pathelement 
location=/Users/rajeevanv/.m2/repository/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar
/\
pathelement 
location=/Users/rajeevanv/.m2/repository/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar
/\



Thank you   Best regards,

*Amal Gunatilake*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

On Wed, Sep 17, 2014 at 12:18 PM, Aruna Karunarathna ar...@wso2.com wrote:

 Hi Vimalathan,

 Can you try adding the wso2 repo to your pom.xml file.

 Regards,
 Aruna

 On Tue, Sep 16, 2014 at 10:56 AM, Vimalanathan Rajeevan 
 rajeev...@wso2.com wrote:

 Hi,

 I got a maven build failure when trying to create a service stub after
 successfully creating server component and generating .wsdl file. I was
 following a tutorial [1].
 [1]
 http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/

 Please find  the attached org.wso2.carbon.student.mgt.stub → pom.xml
 file is used. I am getting the following error when building 
 org.wso2.carbon.student.mgt.stub
 module using maven.

 *Failed to execute goal on project org.wso2.carbon.student.mgt.stub:
 Could not resolve dependencies for project
 org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0:*

 *The following artifacts could not be resolved:
 org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10,
 org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4,
 wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4: *

 *Failure to find org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 in
 http://repo.maven.apache.org/maven2 http://repo.maven.apache.org/maven2
 was cached in the local repository, resolution will not be reattempted
 until the update interval of central has elapsed or updates are forced*

 It seems like problem with maven dependency versions. Please help me to
 get this resolved.

 Best Regards,
 V.Rajeevan
 Software Engineer,
 WSO2 Inc. :http://wso2.com

 Mobile : +94 773090875
 Email : rajeev...@wso2.com

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




 --

 *Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


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


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


[Dev] Error in writing a Carbon component

2014-09-17 Thread Lahiru Cooray
Hi,

I'm following these tutorials to write a Carbon component (and a Feature).
[1]
http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
[2]
http://wso2.com/library/tutorials/2014/03/how-to-create-a-feature-from-wso2-carbon-component/

I have successfully completed the tutorial [1].
But when I follow all the steps in tutorial [2] , I get the below error.
please help..


*Error
stack*

 SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder.

SLF4J: Defaulting to no-operation (NOP) logger implementation

SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
details.

[INFO] Scanning for projects...

[WARNING]

[WARNING] Some problems were encountered while building the effective model
for org.wso2.carbon:org.wso2.carbon.student.mgt:bundle:4.2.0

[WARNING] 'build.plugins.plugin.version' for
org.apache.felix:maven-bundle-plugin is missing. @ line 19, column 21

[WARNING] The expression ${pom.artifactId} is deprecated. Please use
${project.artifactId} instead.

[WARNING] The expression ${pom.artifactId} is deprecated. Please use
${project.artifactId} instead.

[WARNING]

[WARNING] Some problems were encountered while building the effective model
for org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0

[WARNING] 'build.plugins.plugin.version' for
org.apache.felix:maven-bundle-plugin is missing. @ line 133, column 21

[WARNING] 'build.plugins.plugin.version' for
org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 114, column
21

[WARNING]

[WARNING] Some problems were encountered while building the effective model
for org.wso2.carbon:org.wso2.carbon.student.mgt.ui:bundle:4.2.0

[WARNING] 'build.plugins.plugin.version' for
org.apache.felix:maven-bundle-plugin is missing. @ line 25, column 21

[WARNING] The expression ${pom.artifactId} is deprecated. Please use
${project.artifactId} instead.

[WARNING]

[WARNING] It is highly recommended to fix these problems because they
threaten the stability of your build.

[WARNING]

[WARNING] For this reason, future Maven versions might no longer support
building such malformed projects.

[WARNING]

[INFO]


[INFO] Reactor Build Order:

[INFO]

[INFO] WSO2 Carbon - Student Manager

[INFO] WSO2 Carbon - Student Manager Components

[INFO] WSO2 Carbon - Student Manager Server Component

[INFO] WSO2 Carbon - Student Manager Stub

[INFO] WSO2 Carbon - Student Manager UI Component

[INFO] WSO2 Carbon - Student Manager Features

[INFO] WSO2 Carbon - Student Manager UI Feature

[INFO] WSO2 Carbon - Student Manager Aggregate Feature

[INFO] WSO2 Carbon - Student Manager Feature Repository

[INFO]


[INFO]


[INFO] Building WSO2 Carbon - Student Manager 4.2.0

[INFO]


[INFO]

[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
student-manager ---

[INFO] Installing
/Users/lahiruC/Documents/FastTrackerProgram/7-Carbon/StudentMgtEx/student-manager/pom.xml
to
/Users/lahiruC/.m2/repository/org/wso2/carbon/student-manager/4.2.0/student-manager-4.2.0.pom

[INFO]


[INFO]


[INFO] Building WSO2 Carbon - Student Manager Components 4.2.0

[INFO]


[INFO]

[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
student-manager-components ---

[INFO] Installing
/Users/lahiruC/Documents/FastTrackerProgram/7-Carbon/StudentMgtEx/student-manager/student-manager-components/pom.xml
to
/Users/lahiruC/.m2/repository/org/wso2/carbon/student-manager-components/4.2.0/student-manager-components-4.2.0.pom

[INFO]


[INFO]


[INFO] Building WSO2 Carbon - Student Manager Server Component 4.2.0

[INFO]


[INFO]

[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
org.wso2.carbon.student.mgt ---

[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!

[INFO] Copying 1 resource

[INFO]

[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @
org.wso2.carbon.student.mgt ---

[INFO] Changes detected - recompiling the module!

[WARNING] File encoding has not been set, using platform encoding UTF-8,
i.e. build is platform dependent!

[INFO] Compiling 3 source files to
/Users/lahiruC/Documents/FastTrackerProgram/7-Carbon/StudentMgtEx/student-manager/student-manager-components/org.wso2.carbon.student.mgt/target/classes

[INFO]

[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources)
@ org.wso2.carbon.student.mgt ---

[WARNING] Using platform encoding (UTF-8 

Re: [Dev] Exception when trying to access the store

2014-09-17 Thread Sohani Weerasinghe
Found the issue, there was a syntax error in api-manager.xml.

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 Wed, Sep 17, 2014 at 11:52 AM, Sohani Weerasinghe soh...@wso2.com
wrote:

 Hi All,

 I am using AM 1.6.0 and when I try to access the store I am getting the
 below exception.

 Please note that I have enabled workflow execution and have shared the
 same registry db among BPS and AM.

 TID: [0] [AM] [2014-09-17 11:30:22,719] ERROR
 {org.jaggeryjs.scriptengine.engine.RhinoEngine} -
  org.mozilla.javascript.WrappedException: Wrapped
 java.lang.NullPointerException (/store/modules/manager/manager.jag#41)
 {org.jaggeryjs.scriptengine.engine.RhinoEngine}
 TID: [0] [AM] [2014-09-17 11:30:22,720] ERROR
 {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
  org.mozilla.javascript.WrappedException: Wrapped
 java.lang.NullPointerException (/store/modules/manager/manager.jag#41)
 {org.jaggeryjs.jaggery.core.manager.WebAppManager}
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.WrappedException: Wrapped
 java.lang.NullPointerException (/store/modules/manager/manager.jag#41)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:575)
 at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
 at
 org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:432)
 at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
 at
 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
 at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
 at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
 at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
 at
 org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:722)
 Caused by: org.mozilla.javascript.WrappedException: Wrapped
 java.lang.NullPointerException (/store/modules/manager/manager.jag#41)
 at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
 at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
 at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:392)
 at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:343)
 at org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2349)
 at
 

[Dev] Error while building ELB 2.1.1

2014-09-17 Thread Rajakrishna Reddy
Hi,I'm trying to build the ELB 2.1.1 but getting the below error.
[INFO] Executed tasks[INFO][INFO] --- maven-assembly-plugin:2.2-beta-2:attached 
(dist) @ wso2elb ---[INFO] Reading assembly descriptor: 
src/main/assembly/bin.xml[INFO] Processing DependencySet 
(output=wso2elb-${pom.version}/lib/core/WEB-INF/lib)[INFO] 
[INFO] 
Reactor Summary:[INFO][INFO] WSO2 ELB - Distribution 
... FAILURE [42.507s][INFO] WSO2 MB 
... SKIPPED[INFO] WSO2 MB Styles Parent 
. SKIPPED[INFO] WSO2 MB Styles 
 SKIPPED[INFO] WSO2 Stratos Message Broker 
- Styles .. SKIPPED[INFO] WSO2 MB Features Parent 
... SKIPPED[INFO] WSO2 MB Features Aggregator Module 
 SKIPPED[INFO] WSO2 MB - Styles Features 
. SKIPPED[INFO] WSO2 Stratos Message Broker - Features 
Aggregator Module  SKIPPED[INFO] WSO2 Stratos Message Broker - Styles Features 
. SKIPPED[INFO] WSO2 Stratos Message Broker - Login User Interface  
SKIPPED[INFO] WSO2 Stratos Message Broker - Deployment Features . SKIPPED[INFO] 
WSO2 Stratos Message Broker - Dashboard UI  SKIPPED[INFO] WSO2 Stratos 
Message Broker - Dashboard UI Features  SKIPPED[INFO] WSO2 Message Broker - P2 
Profile Generation ... SKIPPED[INFO] WSO2 Message Broker - Distribution 
 SKIPPED[INFO] WSO2 MB - Integration Tests 
... SKIPPED[INFO] WSO2 MB - Integration Test Module 
. SKIPPED[INFO] WSO2 Carbon - Releases - products - Aggregator 
Module  SKIPPED[INFO] 
[INFO] 
BUILD FAILURE[INFO] 
[INFO] 
Total time: 47.866s[INFO] Finished at: Wed Sep 17 12:11:03 IST 2014[INFO] Final 
Memory: 144M/1749M[INFO] 
[ERROR] 
Failed to execute goal 
org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-2:attached (dist) on 
project wso2elb: Execution dist of goal 
org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-2:attached failed: For 
artifact {null:null:null:jar}: The groupId cannot be empty. - [Help 
1][ERROR][ERROR] To see the full stack trace of the errors, re-run Maven with 
the -e switch.[ERROR] Re-run Maven using the -X switch to enable full debug 
logging.[ERROR][ERROR] For more information about the errors and possible 
solutions, please read the following articles:[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

Can anybody suggest what should be the done in order to build it 
successfully.Between I'm able to build AM, IS an other servers without any 
issue.
Thanks  Regards,Rajakrishna Reddy,+91 95000 88012


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


Re: [Dev] schema error in uploading a process to the BPS

2014-09-17 Thread Akila Nimantha [IT/EKO/LOITS]
Hi Thilini,

Thanks for your instant reply and Now it works fine ☺ . But  I didn’t change 
anything in CReadLegacy.wsdl and just got a copy from BRS ☹. It seems problem 
with wsdl : definition namespaces. Are there specially things to do when 
creating services in BRS to overcome this in future ?? (or should I write 
definition namespaces myself.)

Regards,
Akila

From: Thilini Ishaka [mailto:thil...@wso2.com]
Sent: Wednesday, September 17, 2014 11:37 AM
To: Akila Nimantha [IT/EKO/LOITS]
Cc: dev@wso2.org
Subject: Re: [Dev] schema error in uploading a process to the BPS

Hi Akila,

CReadLegacy.wsdl seems to be invalid.
Herewith attached the modified wsdl file and the bpel (containing the updated 
wsdl).
Thanks
Thilini

On Tue, Sep 16, 2014 at 11:25 AM, Akila Nimantha [IT/EKO/LOITS] 
aki...@lolctech.commailto:aki...@lolctech.com wrote:
Hi all,

I am trying to invoke BRS service from BPEL and when I upload the process to 
the BPS, it gives following error in my BPS log.
Also I searched in the internet and I couldn’t find any solution for this…(but 
kind of similar question in stackoverflow and they say to change xml schema. 
But couldn’t figure out how to apply it to my situation. )
Also I attached BRS wsdl file and BPEL Process.

Caused by: org.apache.ode.bpel.compiler.api.CompilationException: error: 
[CompilationErrors] Compilation completed with 1 error(s):
   
file:/u01/jb/wso2bps-3.2.0/tmp/work/bpelTemp/1.4108449590014995E12/HowToDo_1.0.0/CReadLegacy.wsdl:0:
 error: [SchemaError] Error in schema processing: src-resolve.4.2: Error 
resolving component 'ax2493:InitRule'. It was detected that 'ax2493:InitRule' 
is in namespace 'http://lolc.com/initrule', but components from this namespace 
are not referenceable from schema document 
'file:/u01/jb/wso2bps-3.2.0/tmp/work/bpelTemp/1.4108449590014995E12/HowToDo_1.0.0/CReadLegacy.wsdl'.
 If this is the incorrect namespace, perhaps the prefix of 'ax2493:InitRule' 
needs to be changed. If this is the correct namespace, then an appropriate 
'import' tag should be added to 
'file:/u01/jb/wso2bps-3.2.0/tmp/work/bpelTemp/1.4108449590014995E12/HowToDo_1.0.0/CReadLegacy.wsdl'.

   at 
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:815)
   at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:278)
   at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:364)
   at 
org.apache.ode.store.DeploymentUnitDir$5.run(DeploymentUnitDir.java:221)
   at org.apache.ode.utils.InternPool.runBlock(InternPool.java:57)
   at 
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:218)
   at 
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:177)
   at 
org.wso2.carbon.bpel.ui.fileupload.BPELUploadExecutor.validateBPELPackage(BPELUploadExecutor.java:292)
   ... 38 more


Regards,
Akila

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

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



--
Thilini Ishaka
Senior Software Engineer
Integration Technologies Team
Phone: +94 11 214 5345
WSO2 Inc. http://wso2.comhttp://wso2.com/
blog: thiliniishaka.blogspot.comhttp://thiliniishaka.blogspot.com/
linkedin: http://lk.linkedin.com/in/thiliniishaka
twitter: https://twitter.com/#!/ThiliniIsh

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

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


Re: [Dev] Error while building ELB 2.1.1

2014-09-17 Thread Thushara Ranawaka
Hi,
Kindly send the full error log and the pom.xml file.
Thanks,
Thushara.

On Wed, Sep 17, 2014 at 12:34 PM, Rajakrishna Reddy va...@outlook.com
wrote:

 Hi,
 I'm trying to build the ELB 2.1.1 but getting the below error.

 [INFO] Executed tasks
 [INFO]
 [INFO] --- maven-assembly-plugin:2.2-beta-2:attached (dist) @ wso2elb ---
 [INFO] Reading assembly descriptor: src/main/assembly/bin.xml
 [INFO] Processing DependencySet
 (output=wso2elb-${pom.version}/lib/core/WEB-INF/lib)
 [INFO]
 
 [INFO] Reactor Summary:
 [INFO]
 [INFO] WSO2 ELB - Distribution ... FAILURE
 [42.507s]
 [INFO] WSO2 MB ... SKIPPED
 [INFO] WSO2 MB Styles Parent . SKIPPED
 [INFO] WSO2 MB Styles  SKIPPED
 [INFO] WSO2 Stratos Message Broker - Styles .. SKIPPED
 [INFO] WSO2 MB Features Parent ... SKIPPED
 [INFO] WSO2 MB Features Aggregator Module  SKIPPED
 [INFO] WSO2 MB - Styles Features . SKIPPED
 [INFO] WSO2 Stratos Message Broker - Features Aggregator Module  SKIPPED
 [INFO] WSO2 Stratos Message Broker - Styles Features . SKIPPED
 [INFO] WSO2 Stratos Message Broker - Login User Interface  SKIPPED
 [INFO] WSO2 Stratos Message Broker - Deployment Features . SKIPPED
 [INFO] WSO2 Stratos Message Broker - Dashboard UI  SKIPPED
 [INFO] WSO2 Stratos Message Broker - Dashboard UI Features  SKIPPED
 [INFO] WSO2 Message Broker - P2 Profile Generation ... SKIPPED
 [INFO] WSO2 Message Broker - Distribution  SKIPPED
 [INFO] WSO2 MB - Integration Tests ... SKIPPED
 [INFO] WSO2 MB - Integration Test Module . SKIPPED
 [INFO] WSO2 Carbon - Releases - products - Aggregator Module  SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 47.866s
 [INFO] Finished at: Wed Sep 17 12:11:03 IST 2014
 [INFO] Final Memory: 144M/1749M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-2:attached (dist)
 on project wso2elb: Execution dist of goal org.apache.maven.plugins:mave
 n-assembly-plugin:2.2-beta-2:attached failed: For artifact
 {null:null:null:jar}: The groupId cannot be empty. - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException


 Can anybody suggest what should be the done in order to build it
 successfully.
 Between I'm able to build AM, IS an other servers without any issue.


 Thanks  Regards,
 Rajakrishna Reddy,
 +91 95000 88012




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




-- 
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.; http://www.wso2.com
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com thusha...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Udara Liyanage
On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya suh...@wso2.com
wrote:

 Thanks Lasindu,

 Thushara and I are in the process of modifying the shell scripts suitable
 for osx.
 We contacted Nirmal, Lakmal, Waruna and Udara and had a quick discussion.

 After the discussion, the solution we found was to delete the
 USERSTORE_DB_SCHEMA database from mysql manually.

 As mentioned earlier, once $ sudo ./setup.sh -p default -s command is
 run we get the following error.
 outputEventAdaptor name=JMSOutputAdaptor statistics=disable
   trace=enable type=jms xmlns=
 http://wso2.org/carbon/eventadaptormanager;
   !--property
 name=java.naming.provider.urlCEP_HOME/repository/conf/jndi.properties/property--
   property name=java.naming.provider.urltcp://10.100.5.175:61616
 /property
   property
 name=java.naming.factory.initialorg.apache.activemq.jndi.ActiveMQInitialContextFactory/property
   property
 name=transport.jms.ConnectionFactoryJNDINameTopicConnectionFactory/property
   property name=transport.jms.DestinationTypetopic/property
 /outputEventAdaptor
 End configuring the Complex Event Processor
 /WSO2/Products/stratos/opt/stratos-installer
 Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
 chown: suhanr: illegal group name

 What it tries to do is changing the ownership of installer to user suhanr
that he can start Stratos. I guess the user group suhanr  is not present
in your environment. Please check with the command groups.

*After the second attempt we were getting the said error. $subject.*

 As a temporary solution we deleted the said database from mysql.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | *USERSTORE_DB_SCHEMA* |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql drop database *USERSTORE_DB_SCHEMA*;
 Query OK, 39 rows affected (0.05 sec)

 mysql show databases;
 ++
 | Database   |
 ++
 | information_schema |
 | mysql  |
 | performance_schema |
 | test   |
 ++
 4 rows in set (0.00 sec)

 Then we were able to avoid the mentioned error in $subject.

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 11:21 AM, Lasindu Charith lasi...@wso2.com
 wrote:

 Hi Thushara and Suhan,

 Better if you can discuss the issues related to Apaches Stratos in
 stratos-dev list (http://stratos.apache.org/community/mailing-lists.html)
 But for now, regarding the issues you have when setting up Stratos in
 osx, Nirmal, Reka or Prasanna might be able to help (Added).

 Thanks,

 On Tue, Sep 16, 2014 at 3:57 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 We have installed mysql for OSX 10.9 [1]

 [1] http://www.macminivault.com/mysql-mavericks/

 On Tue, Sep 16, 2014 at 3:55 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 Myself and Thushara were following the tutorial [1] installing apache
 Stratos and came to the following section.

- Run the stratos-setup.sh file as the root.

 $ sudo ./setup.sh -p default

 After running the command we got the following error in our mac book
 pros.
 Detail terminal output is attached in the mail for reference.

 /WSO2/Products/stratos/opt/stratos-installer
 Warning: Using a password on the command line interface can be insecure.
 *ERROR 1061 (42000) at line 57: Duplicate key name
 'REG_PATH_IND_BY_PATH_VALUE'*


This issue occurs when you try to install Stratos for the second time since
database values are already there. Ideally clean.sh should delete the
database. If  databases are not cleaned correctly by clean.sh it is a bug.
Please create a jira and report it. Before that try following and check
whether databases are deleted

./clean.sh -udb_username -pdb_pass or
./clean.sh -u db_username -p db_pass  .
(Please mind the space in second option)

Installer scripts are not tested very much in MAC environment as per my
knowledge. It is highly appreciated if you can add your finding (installer
scripts for MAC) to Stratos. It will be helpful for future MAC users.


 We also followed the apache stratos wiki [3].
 Please provide a direction to proceed from here.

 *Note*: *earlier setup.sh file gave an error saying,*
 sed: illegal option --r
 *Then the shell script was changed accordingly[2].*
 *Please note that we are using Mac OSX 10.9.4*

 *Then again an error appeared stating -i switch is not supported.*

 *Therefore the following shell script files were modified removing -i
 switch.*
 *ec2.sh*
 *openstack.sh*
 *setup.sh*
 *setup.conf*

 sed -i pattern file will modify the original file which you can
achieve the same as below without -i option
 sed pattern filefile


*Scripts are attached for reference. *

 [1]
 http://blog.ravihansa3000.com/2014/04/installing-apache-stratos-40-with.html
 [2] http://www.flashesofpanic.com/panic/002596.php
 [3]
 

Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Thushara Ranawaka
Hi Udara,
Yes, We will do the needful.

Thanks,
Thushara.

On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage ud...@wso2.com wrote:



 On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Thanks Lasindu,

 Thushara and I are in the process of modifying the shell scripts suitable
 for osx.
 We contacted Nirmal, Lakmal, Waruna and Udara and had a quick discussion.

 After the discussion, the solution we found was to delete the
 USERSTORE_DB_SCHEMA database from mysql manually.

 As mentioned earlier, once $ sudo ./setup.sh -p default -s command is
 run we get the following error.
 outputEventAdaptor name=JMSOutputAdaptor statistics=disable
   trace=enable type=jms xmlns=
 http://wso2.org/carbon/eventadaptormanager;
   !--property
 name=java.naming.provider.urlCEP_HOME/repository/conf/jndi.properties/property--
   property name=java.naming.provider.urltcp://10.100.5.175:61616
 /property
   property
 name=java.naming.factory.initialorg.apache.activemq.jndi.ActiveMQInitialContextFactory/property
   property
 name=transport.jms.ConnectionFactoryJNDINameTopicConnectionFactory/property
   property name=transport.jms.DestinationTypetopic/property
 /outputEventAdaptor
 End configuring the Complex Event Processor
 /WSO2/Products/stratos/opt/stratos-installer
 Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
 chown: suhanr: illegal group name

 What it tries to do is changing the ownership of installer to user suhanr
 that he can start Stratos. I guess the user group suhanr  is not present
 in your environment. Please check with the command groups.

 *After the second attempt we were getting the said error. $subject.*

 As a temporary solution we deleted the said database from mysql.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | *USERSTORE_DB_SCHEMA* |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql drop database *USERSTORE_DB_SCHEMA*;
 Query OK, 39 rows affected (0.05 sec)

 mysql show databases;
 ++
 | Database   |
 ++
 | information_schema |
 | mysql  |
 | performance_schema |
 | test   |
 ++
 4 rows in set (0.00 sec)

 Then we were able to avoid the mentioned error in $subject.

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 11:21 AM, Lasindu Charith lasi...@wso2.com
 wrote:

 Hi Thushara and Suhan,

 Better if you can discuss the issues related to Apaches Stratos in
 stratos-dev list (http://stratos.apache.org/community/mailing-lists.html
 )
 But for now, regarding the issues you have when setting up Stratos in
 osx, Nirmal, Reka or Prasanna might be able to help (Added).

 Thanks,

 On Tue, Sep 16, 2014 at 3:57 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 We have installed mysql for OSX 10.9 [1]

 [1] http://www.macminivault.com/mysql-mavericks/

 On Tue, Sep 16, 2014 at 3:55 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 Myself and Thushara were following the tutorial [1] installing apache
 Stratos and came to the following section.

- Run the stratos-setup.sh file as the root.

 $ sudo ./setup.sh -p default

 After running the command we got the following error in our mac book
 pros.
 Detail terminal output is attached in the mail for reference.

 /WSO2/Products/stratos/opt/stratos-installer
 Warning: Using a password on the command line interface can be
 insecure.
 *ERROR 1061 (42000) at line 57: Duplicate key name
 'REG_PATH_IND_BY_PATH_VALUE'*


 This issue occurs when you try to install Stratos for the second time
 since database values are already there. Ideally clean.sh should delete the
 database. If  databases are not cleaned correctly by clean.sh it is a bug.
 Please create a jira and report it. Before that try following and check
 whether databases are deleted

 ./clean.sh -udb_username -pdb_pass or
 ./clean.sh -u db_username -p db_pass  .
 (Please mind the space in second option)

 Installer scripts are not tested very much in MAC environment as per my
 knowledge. It is highly appreciated if you can add your finding (installer
 scripts for MAC) to Stratos. It will be helpful for future MAC users.


 We also followed the apache stratos wiki [3].
 Please provide a direction to proceed from here.

 *Note*: *earlier setup.sh file gave an error saying,*
 sed: illegal option --r
 *Then the shell script was changed accordingly[2].*
 *Please note that we are using Mac OSX 10.9.4*

 *Then again an error appeared stating -i switch is not supported.*

 *Therefore the following shell script files were modified removing -i
 switch.*
 *ec2.sh*
 *openstack.sh*
 *setup.sh*
 *setup.conf*

 sed -i pattern file will modify the original file which you can
 achieve the same as below without -i option
  sed pattern filefile


 *Scripts are attached for reference. *

 [1]
 

Re: [Dev] Error in writing a Carbon component

2014-09-17 Thread Firzhan Naqash
Hi Lahiru,

I think you haven't mentioned the repository and plugin-repository
proplerly in your pom.xml file.

Try to add nexus-repo in your pom.xml file

repositories
repository
idwso2-nexus/id
nameWSO2 internal Repository/name
urlhttp://maven.wso2.org/nexus/content/groups/wso2-public//url
releases
enabledtrue/enabled
updatePolicydaily/updatePolicy
checksumPolicyfail/checksumPolicy
/releases
/repository

/repositories

And try to add plugin-repository in your pom file.

pluginRepositories
pluginRepository
idwso2-maven2-repository-1/id
urlhttp://dist.wso2.org/maven2/url
/pluginRepository
pluginRepository
idwso2-maven2-repository-2/id
urlhttp://dist.wso2.org/snapshots/maven2/url
/pluginRepository
pluginRepository
idrepository.dev.java.net-maven2/id
nameJava.net Repository for Maven/name
urlhttp://download.java.net/maven/2//url
layoutdefault/layout
/pluginRepository
/pluginRepositories


Do a clean mvn build. This may solve your problem


Regards,
Firzhan

On Wed, Sep 17, 2014 at 12:44 PM, Lahiru Cooray lahi...@wso2.com wrote:

 Hi,

 I'm following these tutorials to write a Carbon component (and a Feature).
 [1]
 http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
 [2]
 http://wso2.com/library/tutorials/2014/03/how-to-create-a-feature-from-wso2-carbon-component/

 I have successfully completed the tutorial [1].
 But when I follow all the steps in tutorial [2] , I get the below error.
 please help..


 *Error
 stack*

  SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder.

 SLF4J: Defaulting to no-operation (NOP) logger implementation

 SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
 details.

 [INFO] Scanning for projects...

 [WARNING]

 [WARNING] Some problems were encountered while building the effective
 model for org.wso2.carbon:org.wso2.carbon.student.mgt:bundle:4.2.0

 [WARNING] 'build.plugins.plugin.version' for
 org.apache.felix:maven-bundle-plugin is missing. @ line 19, column 21

 [WARNING] The expression ${pom.artifactId} is deprecated. Please use
 ${project.artifactId} instead.

 [WARNING] The expression ${pom.artifactId} is deprecated. Please use
 ${project.artifactId} instead.

 [WARNING]

 [WARNING] Some problems were encountered while building the effective
 model for org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0

 [WARNING] 'build.plugins.plugin.version' for
 org.apache.felix:maven-bundle-plugin is missing. @ line 133, column 21

 [WARNING] 'build.plugins.plugin.version' for
 org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 114, column
 21

 [WARNING]

 [WARNING] Some problems were encountered while building the effective
 model for org.wso2.carbon:org.wso2.carbon.student.mgt.ui:bundle:4.2.0

 [WARNING] 'build.plugins.plugin.version' for
 org.apache.felix:maven-bundle-plugin is missing. @ line 25, column 21

 [WARNING] The expression ${pom.artifactId} is deprecated. Please use
 ${project.artifactId} instead.

 [WARNING]

 [WARNING] It is highly recommended to fix these problems because they
 threaten the stability of your build.

 [WARNING]

 [WARNING] For this reason, future Maven versions might no longer support
 building such malformed projects.

 [WARNING]

 [INFO]
 

 [INFO] Reactor Build Order:

 [INFO]

 [INFO] WSO2 Carbon - Student Manager

 [INFO] WSO2 Carbon - Student Manager Components

 [INFO] WSO2 Carbon - Student Manager Server Component

 [INFO] WSO2 Carbon - Student Manager Stub

 [INFO] WSO2 Carbon - Student Manager UI Component

 [INFO] WSO2 Carbon - Student Manager Features

 [INFO] WSO2 Carbon - Student Manager UI Feature

 [INFO] WSO2 Carbon - Student Manager Aggregate Feature

 [INFO] WSO2 Carbon - Student Manager Feature Repository

 [INFO]


 [INFO]
 

 [INFO] Building WSO2 Carbon - Student Manager 4.2.0

 [INFO]
 

 [INFO]

 [INFO] --- maven-install-plugin:2.3.1:install (default-install) @
 student-manager ---

 [INFO] Installing
 /Users/lahiruC/Documents/FastTrackerProgram/7-Carbon/StudentMgtEx/student-manager/pom.xml
 to
 /Users/lahiruC/.m2/repository/org/wso2/carbon/student-manager/4.2.0/student-manager-4.2.0.pom

 [INFO]


 [INFO]
 

 [INFO] Building WSO2 Carbon - Student Manager Components 4.2.0

 [INFO]
 

 [INFO]

 [INFO] --- maven-install-plugin:2.3.1:install 

Re: [Dev] Please merge CEP Integration test commit#18

2014-09-17 Thread Sriskandarajah Suhothayan
Done

Suho

On Wed, Sep 17, 2014 at 11:50 AM, Nuwan Wimalasekara nuw...@wso2.com
wrote:

 Hi CEP Team,
 Please merge the pull request
 https://github.com/wso2-dev/product-cep/pull/18

 Thanks,
 Nuwanw

 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620






-- 

*S. Suhothayan*
Technical Lead  Team Lead of WSO2 Complex Event Processor
 *WSO2 Inc. *http://wso2.com
* http://wso2.com/*
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
http://suhothayan.blogspot.com/twitter: http://twitter.com/suhothayan
http://twitter.com/suhothayan | linked-in:
http://lk.linkedin.com/in/suhothayan http://lk.linkedin.com/in/suhothayan*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Manula Chathurika Thantriwatte
Hi,

The $subject error occurs because in the first time the script fails, and
at that time it already create the database. Since you didn't run the
clean.sh databases are already in the environment. After you run the
setup.sh in second time you will get the $subject error.

Thanks !


On Wed, Sep 17, 2014 at 12:46 PM, Thushara Ranawaka thusha...@wso2.com
wrote:

 Hi Udara,
 Yes, We will do the needful.

 Thanks,
 Thushara.

 On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage ud...@wso2.com wrote:



 On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Thanks Lasindu,

 Thushara and I are in the process of modifying the shell scripts
 suitable for osx.
 We contacted Nirmal, Lakmal, Waruna and Udara and had a quick discussion.

 After the discussion, the solution we found was to delete the
 USERSTORE_DB_SCHEMA database from mysql manually.

 As mentioned earlier, once $ sudo ./setup.sh -p default -s command is
 run we get the following error.
 outputEventAdaptor name=JMSOutputAdaptor statistics=disable
   trace=enable type=jms xmlns=
 http://wso2.org/carbon/eventadaptormanager;
   !--property
 name=java.naming.provider.urlCEP_HOME/repository/conf/jndi.properties/property--
   property name=java.naming.provider.urltcp://10.100.5.175:61616
 /property
   property
 name=java.naming.factory.initialorg.apache.activemq.jndi.ActiveMQInitialContextFactory/property
   property
 name=transport.jms.ConnectionFactoryJNDINameTopicConnectionFactory/property
   property name=transport.jms.DestinationTypetopic/property
 /outputEventAdaptor
 End configuring the Complex Event Processor
 /WSO2/Products/stratos/opt/stratos-installer
 Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
 chown: suhanr: illegal group name

 What it tries to do is changing the ownership of installer to user
 suhanr that he can start Stratos. I guess the user group suhanr  is not
 present in your environment. Please check with the command groups.

 *After the second attempt we were getting the said error. $subject.*

 As a temporary solution we deleted the said database from mysql.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | *USERSTORE_DB_SCHEMA* |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql drop database *USERSTORE_DB_SCHEMA*;
 Query OK, 39 rows affected (0.05 sec)

 mysql show databases;
 ++
 | Database   |
 ++
 | information_schema |
 | mysql  |
 | performance_schema |
 | test   |
 ++
 4 rows in set (0.00 sec)

 Then we were able to avoid the mentioned error in $subject.

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 11:21 AM, Lasindu Charith lasi...@wso2.com
 wrote:

 Hi Thushara and Suhan,

 Better if you can discuss the issues related to Apaches Stratos in
 stratos-dev list (
 http://stratos.apache.org/community/mailing-lists.html)
 But for now, regarding the issues you have when setting up Stratos in
 osx, Nirmal, Reka or Prasanna might be able to help (Added).

 Thanks,

 On Tue, Sep 16, 2014 at 3:57 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 We have installed mysql for OSX 10.9 [1]

 [1] http://www.macminivault.com/mysql-mavericks/

 On Tue, Sep 16, 2014 at 3:55 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 Myself and Thushara were following the tutorial [1] installing apache
 Stratos and came to the following section.

- Run the stratos-setup.sh file as the root.

 $ sudo ./setup.sh -p default

 After running the command we got the following error in our mac book
 pros.
 Detail terminal output is attached in the mail for reference.

 /WSO2/Products/stratos/opt/stratos-installer
 Warning: Using a password on the command line interface can be
 insecure.
 *ERROR 1061 (42000) at line 57: Duplicate key name
 'REG_PATH_IND_BY_PATH_VALUE'*


 This issue occurs when you try to install Stratos for the second time
 since database values are already there. Ideally clean.sh should delete the
 database. If  databases are not cleaned correctly by clean.sh it is a bug.
 Please create a jira and report it. Before that try following and check
 whether databases are deleted

 ./clean.sh -udb_username -pdb_pass or
 ./clean.sh -u db_username -p db_pass  .
 (Please mind the space in second option)

 Installer scripts are not tested very much in MAC environment as per my
 knowledge. It is highly appreciated if you can add your finding (installer
 scripts for MAC) to Stratos. It will be helpful for future MAC users.


 We also followed the apache stratos wiki [3].
 Please provide a direction to proceed from here.

 *Note*: *earlier setup.sh file gave an error saying,*
 sed: illegal option --r
 *Then the shell script was changed accordingly[2].*
 *Please note that we are using Mac OSX 10.9.4*

 *Then again an error appeared stating -i switch is 

Re: [Dev] [DEV][APIM] writing automation tests for APIM

2014-09-17 Thread Nuwan Dias
This is a duplicate of [1]? This has been fixed in 1.8.0 (RC packs).

[1] - https://wso2.org/jira/browse/APIMANAGER-2765

Thanks,
NuwanD.

On Tue, Sep 16, 2014 at 11:11 AM, Waruna Perera waru...@wso2.com wrote:

 Hi,

 Issue logged for for *APIM does not return correct error when adding
 document with duplicate name to a API.*

 [1] https://wso2.org/jira/browse/APIMANAGER-2874

 On Wed, Sep 10, 2014 at 10:51 PM, Sanjeewa Malalgoda sanje...@wso2.com
 wrote:

 Hi Waruna,
 In UI we first call host object isContextExist method and then validate
 it before add API. That is why you dont get this error in UI. AFAIR there
 is no rest API to check context existence. Its API developers
 responsibility to check this first. But still we need to have same check in
 add API method as well. So we might need to add this check in add API
 method(to work rest call properly).

 Thanks,
 sanjeewa.

 On Wed, Sep 10, 2014 at 2:11 AM, Waruna Perera waru...@wso2.com wrote:

 Hi,

 Issue logged in JIRA related to automation test case.

 [1] https://wso2.org/jira/browse/APIMANAGER-2835

 On Thu, Sep 4, 2014 at 11:02 AM, Waruna Perera waru...@wso2.com wrote:

 Hi Sanjeewa,

 Noted. I will update the thread as we move forward about the API calls
 which we will think of useful to have.

 Thanks


 On Thu, Sep 4, 2014 at 10:47 AM, Sanjeewa Malalgoda sanje...@wso2.com
 wrote:

 Hi Waruna,


 On Wed, Sep 3, 2014 at 9:49 PM, Waruna Perera waru...@wso2.com
 wrote:

 Hi,

 Amalka and me started doing above $subject by following[1]. When
 following some of the test cases available we found that API calls in
 publisher[2] and store are limited. The search API functions are covered 
 by
 calling host objects. I have few questions regarding that.

 Do we have a plan to provide other API calls in publisher and store?

 I assume here you are talking about rest APIs that we documented. For
 the moment most of required operations are exposed as rest APIs. But still
 there are missing parts. In such cases  we can deploy simple jag file in
 the server and call to host object. If you looked at HostObjectTestCase,
 you will see how we tested host object operations that did not exposed as
 rest APIs. Please refer java test cases available in product.

 Do we need uniformity with test cases? (some via API calls and others
 with direct host object calls)

 IMO there is no such requirement. We cant test all scenarios in the
 same way. Important thing is cover use cases as much as possible.

 Thanks,
 sanjeewa.


 [1]
 https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AmcQWA48EWBddEdzVVZ4aDJTVTBOeV9fVkE0dU9KMWcusp

 [2] https://docs.wso2.com/display/AM170/Publisher+APIs

 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




 --

 *Sanjeewa Malalgoda*
 WSO2 Inc.
 Mobile : +94713068779

  http://sanjeewamalalgoda.blogspot.com/blog
 :http://sanjeewamalalgoda.blogspot.com/
 http://sanjeewamalalgoda.blogspot.com/





 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




 --

 *Sanjeewa Malalgoda*
 WSO2 Inc.
 Mobile : +94713068779

  http://sanjeewamalalgoda.blogspot.com/blog
 :http://sanjeewamalalgoda.blogspot.com/
 http://sanjeewamalalgoda.blogspot.com/





 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




-- 
Nuwan Dias

Associate Tech Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Sachini Jayasekara
Congratulations Sewwandhi!!!

On Wed, Sep 17, 2014 at 11:56 AM, Ramith Jayasinghe ram...@wso2.com wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer. Keep
 up the good work!
 thanks and best regards,

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

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


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




-- 



*Thanks  Regards,Sachini JayasekaraSoftware Engineer; **WSO2 Inc. *

*lean . enterprise . middleware |  http://wso2.com http://wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Thilini Shanika
Congratulations :)

On Wed, Sep 17, 2014 at 12:28 PM, Danesh Kuruppu dan...@wso2.com wrote:

 Congrats Sewwandi !!!

 On Wed, Sep 17, 2014 at 12:23 PM, Dhanuka Ranasinghe dhan...@wso2.com
 wrote:

 Congrattzzz !!!

 *Dhanuka Ranasinghe*

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

 phone : +94 715381915

 On Wed, Sep 17, 2014 at 12:22 PM, Chalitha Waldeniyage chali...@wso2.com
  wrote:

 Congratulations Sewwandi !!! :)

 On Wed, Sep 17, 2014 at 12:20 PM, Gayashan Amarasinghe 
 gayas...@wso2.com wrote:

 Congratulations Sewwandi!!!

 On Wed, Sep 17, 2014 at 12:19 PM, Aruna Karunarathna ar...@wso2.com
 wrote:

 Congratulations Sewwandi...!!!

 On Wed, Sep 17, 2014 at 12:17 PM, Rajith Vitharana raji...@wso2.com
 wrote:

 Congrags ... :)

 On Wed, Sep 17, 2014 at 12:16 PM, Nipuni Perera nip...@wso2.com
 wrote:


 Congradulations Sewwandi

 On Wed, Sep 17, 2014 at 12:13 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Congratulations !!!

 On Wed, Sep 17, 2014 at 12:09 PM, Sinthuja Ragendran 
 sinth...@wso2.com wrote:

 Congratz sewwandi!

 On Wed, Sep 17, 2014 at 11:56 AM, Ramith Jayasinghe 
 ram...@wso2.com wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 thanks and best regards,

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

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


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




 --
 *Sinthuja Rajendran*
 Senior Software Engineer http://wso2.com/
 WSO2, Inc.:http://wso2.com

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



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




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/




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




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


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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --

 *Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


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




 --
 *Gayashan Amarasinghe*
 Software Engineer | Platform TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94718314517
 Blog : gayashan-a.blogspot.com

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




 --
 *Chalitha Maheshwari*
 Software Engineer-QA,
 WSO2 Inc.

 *E-mail:* chali...@wso2.com
 *Mobile: *+94710 411 112

 ___
 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




 --

 Danesh Kuruppu
 Software Engineer
 WSO2 Inc,
 Mobile: +94 (77) 1690552

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




-- 
Thilini Shanika
Software Engineer
WSO2, Inc.; http://wso2.com
20, Palmgrove Avenue, Colombo 3

E-mail: tgtshan...@gmail.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Kasun Dissanayake
Hi Sewwandi

Congradzzz.

On Wed, Sep 17, 2014 at 1:03 PM, Thilini Shanika thili...@wso2.com wrote:

 Congratulations :)

 On Wed, Sep 17, 2014 at 12:28 PM, Danesh Kuruppu dan...@wso2.com wrote:

 Congrats Sewwandi !!!

 On Wed, Sep 17, 2014 at 12:23 PM, Dhanuka Ranasinghe dhan...@wso2.com
 wrote:

 Congrattzzz !!!

 *Dhanuka Ranasinghe*

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

 phone : +94 715381915

 On Wed, Sep 17, 2014 at 12:22 PM, Chalitha Waldeniyage 
 chali...@wso2.com wrote:

 Congratulations Sewwandi !!! :)

 On Wed, Sep 17, 2014 at 12:20 PM, Gayashan Amarasinghe 
 gayas...@wso2.com wrote:

 Congratulations Sewwandi!!!

 On Wed, Sep 17, 2014 at 12:19 PM, Aruna Karunarathna ar...@wso2.com
 wrote:

 Congratulations Sewwandi...!!!

 On Wed, Sep 17, 2014 at 12:17 PM, Rajith Vitharana raji...@wso2.com
 wrote:

 Congrags ... :)

 On Wed, Sep 17, 2014 at 12:16 PM, Nipuni Perera nip...@wso2.com
 wrote:


 Congradulations Sewwandi

 On Wed, Sep 17, 2014 at 12:13 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Congratulations !!!

 On Wed, Sep 17, 2014 at 12:09 PM, Sinthuja Ragendran 
 sinth...@wso2.com wrote:

 Congratz sewwandi!

 On Wed, Sep 17, 2014 at 11:56 AM, Ramith Jayasinghe 
 ram...@wso2.com wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2
 committer. Keep up the good work!
 thanks and best regards,

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

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


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




 --
 *Sinthuja Rajendran*
 Senior Software Engineer http://wso2.com/
 WSO2, Inc.:http://wso2.com

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



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




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/




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




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


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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --

 *Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


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




 --
 *Gayashan Amarasinghe*
 Software Engineer | Platform TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94718314517
 Blog : gayashan-a.blogspot.com

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




 --
 *Chalitha Maheshwari*
 Software Engineer-QA,
 WSO2 Inc.

 *E-mail:* chali...@wso2.com
 *Mobile: *+94710 411 112

 ___
 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




 --

 Danesh Kuruppu
 Software Engineer
 WSO2 Inc,
 Mobile: +94 (77) 1690552

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




 --
 Thilini Shanika
 Software Engineer
 WSO2, Inc.; http://wso2.com
 20, Palmgrove Avenue, Colombo 3

 E-mail: tgtshan...@gmail.com


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




-- 
Kasun Dissanayake
Software Engineer
WSO2 Inc.
Lean | Enterprise | Middleware
Tel - +94 77 086 2860
Skype - kasun.dissanayake4
LinkedIn - lk.linkedin.com/in/kasundis/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][APIM] writing automation tests for APIM

2014-09-17 Thread Waruna Perera
Hi,

I will close the duplicate issue.

Thanks

On Tue, Sep 16, 2014 at 11:49 AM, Nuwan Dias nuw...@wso2.com wrote:

 This is a duplicate of [1]? This has been fixed in 1.8.0 (RC packs).

 [1] - https://wso2.org/jira/browse/APIMANAGER-2765

 Thanks,
 NuwanD.

 On Tue, Sep 16, 2014 at 11:11 AM, Waruna Perera waru...@wso2.com wrote:

 Hi,

 Issue logged for for *APIM does not return correct error when adding
 document with duplicate name to a API.*

 [1] https://wso2.org/jira/browse/APIMANAGER-2874

 On Wed, Sep 10, 2014 at 10:51 PM, Sanjeewa Malalgoda sanje...@wso2.com
 wrote:

 Hi Waruna,
 In UI we first call host object isContextExist method and then validate
 it before add API. That is why you dont get this error in UI. AFAIR there
 is no rest API to check context existence. Its API developers
 responsibility to check this first. But still we need to have same check in
 add API method as well. So we might need to add this check in add API
 method(to work rest call properly).

 Thanks,
 sanjeewa.

 On Wed, Sep 10, 2014 at 2:11 AM, Waruna Perera waru...@wso2.com wrote:

 Hi,

 Issue logged in JIRA related to automation test case.

 [1] https://wso2.org/jira/browse/APIMANAGER-2835

 On Thu, Sep 4, 2014 at 11:02 AM, Waruna Perera waru...@wso2.com
 wrote:

 Hi Sanjeewa,

 Noted. I will update the thread as we move forward about the API calls
 which we will think of useful to have.

 Thanks


 On Thu, Sep 4, 2014 at 10:47 AM, Sanjeewa Malalgoda sanje...@wso2.com
  wrote:

 Hi Waruna,


 On Wed, Sep 3, 2014 at 9:49 PM, Waruna Perera waru...@wso2.com
 wrote:

 Hi,

 Amalka and me started doing above $subject by following[1]. When
 following some of the test cases available we found that API calls in
 publisher[2] and store are limited. The search API functions are 
 covered by
 calling host objects. I have few questions regarding that.

 Do we have a plan to provide other API calls in publisher and store?

 I assume here you are talking about rest APIs that we documented. For
 the moment most of required operations are exposed as rest APIs. But 
 still
 there are missing parts. In such cases  we can deploy simple jag file in
 the server and call to host object. If you looked at HostObjectTestCase,
 you will see how we tested host object operations that did not exposed as
 rest APIs. Please refer java test cases available in product.

 Do we need uniformity with test cases? (some via API calls and others
 with direct host object calls)

 IMO there is no such requirement. We cant test all scenarios in the
 same way. Important thing is cover use cases as much as possible.

 Thanks,
 sanjeewa.


 [1]
 https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AmcQWA48EWBddEdzVVZ4aDJTVTBOeV9fVkE0dU9KMWcusp

 [2] https://docs.wso2.com/display/AM170/Publisher+APIs

 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




 --

 *Sanjeewa Malalgoda*
 WSO2 Inc.
 Mobile : +94713068779

  http://sanjeewamalalgoda.blogspot.com/blog
 :http://sanjeewamalalgoda.blogspot.com/
 http://sanjeewamalalgoda.blogspot.com/





 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




 --

 *Sanjeewa Malalgoda*
 WSO2 Inc.
 Mobile : +94713068779

  http://sanjeewamalalgoda.blogspot.com/blog
 :http://sanjeewamalalgoda.blogspot.com/
 http://sanjeewamalalgoda.blogspot.com/





 --
 Waruna Perera
 Senior Software Engineer - Test Automation
 Mobile: +94 77 3867037
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




 --
 Nuwan Dias

 Associate Tech Lead - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729




-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Ramith Jayasinghe
Hi Sewwandhi,

Congratulations!

It is with great pleasure that we welcome you as a WSO2 committer. Keep up
the good work!
thanks and best regards,


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

E: ram...@wso2.com
P: +94 777542851
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] What is the usage of Internal Role in Identity Server Users and Roles

2014-09-17 Thread Tharindu Edirisinghe
I checked the code (org.wso2.carbon.identity.application.mgt) and found
that from all the places where the role is referred, it refers to the role
from the applicationName. Therefore if let user specify the name for the
role there are multiple places to be changed including the database
level.

As discussed with Asela I will go forward with the Option 2 mentioned by
Suresh where it will log a proper error message (at UI level also display a
message)

On Tue, Sep 16, 2014 at 9:53 AM, Tharindu Edirisinghe tharin...@wso2.com
wrote:

 Thanks Suresh  Prasad...

 I think Option 2 and 3 suggested by Suresh together would solve the
 issue... but before that I have to check from where this role name is
 referred. If the user can change the role name, that name should be
 retrieved from all the places the where the role is used if for the role
 name, SP's name is referred.

 On Mon, Sep 15, 2014 at 11:02 PM, Suresh Attanayaka sur...@wso2.com
 wrote:

 However in the role of the application, those have edit permission to the
 application. That is why we have to be careful here. First question is, how
 we can get a role with the same name here. Three options here.

 1. If role exist, don't try to create a new, use the existing - Issue :
 Users who were in that role inherently gets edit permissions to the
 application which might not be the expected behavior.

 2. If role exist, fail application creating. Log a proper Error message
 in the log file.

 3. Allow the role name to be specified in the SP Config. So this will be
 configurable to user an existing role or create a new role if it doesn't
 exist.

 Thanks,
 -Suresh

 On Mon, Sep 15, 2014 at 9:31 AM, Tharindu Edirisinghe tharin...@wso2.com
  wrote:

 Hi,

 I'm working on issue [1 https://wso2.org/jira/browse/IDENTITY-2717]
 and noticed following.

 When registering a Service Provider, it creates an internal role with
 the same name given for SP. If we already have an internal role with the
 name given for the new SP, we cannot register the SP as the role creation
 for SP fails.

 [1] https://wso2.org/jira/browse/IDENTITY-2717

 --

 Thanks  Best Regards,

 Tharindu Edirisinghe
 Software Engineer

 *WSO2 Inc*
 *email   : tharin...@wso2.com tharin...@wso2.com *
 *mobile : +94 775 181586*
 *www: :http://wso2.com http://wso2.com/ *lean . enterprise .
 middleware



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




 --
 Suresh Attanayake
 Senior Software Engineer; WSO2 Inc. http://wso2.com/
 Blog : http://sureshatt.blogspot.com/
 Twitter : https://twitter.com/sureshatt
 LinkedIn : http://lk.linkedin.com/in/sureshatt
 Mobile : +94755012060




 --

 Thanks  Best Regards,

 Tharindu Edirisinghe
 Software Engineer

 *WSO2 Inc*
 *email   : tharin...@wso2.com tharin...@wso2.com *
 *mobile : +94 775 181586*
 *www: :http://wso2.com http://wso2.com/ *lean . enterprise . middleware





-- 

Thanks  Best Regards,

Tharindu Edirisinghe
Software Engineer

*WSO2 Inc*
*email   : tharin...@wso2.com tharin...@wso2.com *
*mobile : +94 775 181586*
*www: :http://wso2.com http://wso2.com/ *lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Creating puppet scripts for API-M distributed setup

2014-09-17 Thread Yasassri Ratnayake
Hi,

Please find the Puppet Scripts from location-[1]. Scripts need some fine
tuning with the configurations.

In-order to run the scripts. Clone the repo and do the necessary parameter
changes in the params class and execute the scripts.


[1]  - https://github.com/ycrnet/Puppet-Scripts

-- 
Yasassri Ratnayake
Software Engineer - QA
WSO2 Inc ; http://wso2.com
lean.enterprise.middleware
*Mobile : +94715933168 %2B94715933168*
*Blog : http://yasassriratnayake.blogspot.com/
http://yasassriratnayake.blogspot.com/*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Commit to Kernal

2014-09-17 Thread Tharindu Edirisinghe
Hi Sameera,

Now you should be able to proceed. Added some fix and all tests are
successful. Pull request is the same.

On Wed, Sep 17, 2014 at 10:38 AM, Sameera Jayasoma same...@wso2.com wrote:

 I am getting a test failure in the user.core bundle with this patch.
 Please have a look

 On Fri, Sep 12, 2014 at 5:27 PM, Johann Nallathamby joh...@wso2.com
 wrote:

 Hi Sameera,

 Patch looks OK. We need to commit this to 4.2.0 as well.

 Thanks,
 Johann.

 On Fri, Sep 12, 2014 at 3:04 PM, Sameera Jayasoma same...@wso2.com
 wrote:

 Hi Johana,

 Can you review this patch? Do we need to need commit this patch to
 Carbon 4.2.0 branch also?

 Thanks,
 Sameera.

 On Thu, Sep 11, 2014 at 7:47 PM, Tharindu Edirisinghe 
 tharin...@wso2.com wrote:

 Hi Kernal Team,

 Please apply the patch to resolve issue [1].

 Pull request for the same is [2].

 [1] https://wso2.org/jira/browse/IDENTITY-2711

 [2]https://github.com/wso2-dev/carbon4-kernel/pull/96


 --

 Thanks  Best Regards,

 Tharindu Edirisinghe
 Software Engineer

 *WSO2 Inc*
 *email   : tharin...@wso2.com tharin...@wso2.com *
 *mobile : +94 775 181586*
 *www: :http://wso2.com http://wso2.com/ *lean . enterprise .
 middleware



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




 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://sameera.adahas.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




 --
 Thanks  Regards,

 *Johann Dilantha Nallathamby*
 Associate 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*




 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://sameera.adahas.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




-- 

Thanks  Best Regards,

Tharindu Edirisinghe
Software Engineer

*WSO2 Inc*
*email   : tharin...@wso2.com tharin...@wso2.com *
*mobile : +94 775 181586*
*www: :http://wso2.com http://wso2.com/ *lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Prasanna Dangalla
HI,

The sed issue came to me also.  I modifed the scripts and changed all sed
to gsed.


On Wed, Sep 17, 2014 at 12:52 PM, Manula Chathurika Thantriwatte 
manu...@wso2.com wrote:

 Hi,

 The $subject error occurs because in the first time the script fails, and
 at that time it already create the database. Since you didn't run the
 clean.sh databases are already in the environment. After you run the
 setup.sh in second time you will get the $subject error.

 Thanks !


 On Wed, Sep 17, 2014 at 12:46 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Udara,
 Yes, We will do the needful.

 Thanks,
 Thushara.

 On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage ud...@wso2.com wrote:



 On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Thanks Lasindu,

 Thushara and I are in the process of modifying the shell scripts
 suitable for osx.
 We contacted Nirmal, Lakmal, Waruna and Udara and had a quick
 discussion.

 After the discussion, the solution we found was to delete the
 USERSTORE_DB_SCHEMA database from mysql manually.

 As mentioned earlier, once $ sudo ./setup.sh -p default -s command
 is run we get the following error.
 outputEventAdaptor name=JMSOutputAdaptor statistics=disable
   trace=enable type=jms xmlns=
 http://wso2.org/carbon/eventadaptormanager;
   !--property
 name=java.naming.provider.urlCEP_HOME/repository/conf/jndi.properties/property--
   property name=java.naming.provider.urltcp://10.100.5.175:61616
 /property
   property
 name=java.naming.factory.initialorg.apache.activemq.jndi.ActiveMQInitialContextFactory/property
   property
 name=transport.jms.ConnectionFactoryJNDINameTopicConnectionFactory/property
   property name=transport.jms.DestinationTypetopic/property
 /outputEventAdaptor
 End configuring the Complex Event Processor
 /WSO2/Products/stratos/opt/stratos-installer
 Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
 chown: suhanr: illegal group name

 What it tries to do is changing the ownership of installer to user
 suhanr that he can start Stratos. I guess the user group suhanr  is not
 present in your environment. Please check with the command groups.

 *After the second attempt we were getting the said error. $subject.*

 As a temporary solution we deleted the said database from mysql.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | *USERSTORE_DB_SCHEMA* |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql drop database *USERSTORE_DB_SCHEMA*;
 Query OK, 39 rows affected (0.05 sec)

 mysql show databases;
 ++
 | Database   |
 ++
 | information_schema |
 | mysql  |
 | performance_schema |
 | test   |
 ++
 4 rows in set (0.00 sec)

 Then we were able to avoid the mentioned error in $subject.

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 11:21 AM, Lasindu Charith lasi...@wso2.com
 wrote:

 Hi Thushara and Suhan,

 Better if you can discuss the issues related to Apaches Stratos in
 stratos-dev list (
 http://stratos.apache.org/community/mailing-lists.html)
 But for now, regarding the issues you have when setting up Stratos in
 osx, Nirmal, Reka or Prasanna might be able to help (Added).

 Thanks,

 On Tue, Sep 16, 2014 at 3:57 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 We have installed mysql for OSX 10.9 [1]

 [1] http://www.macminivault.com/mysql-mavericks/

 On Tue, Sep 16, 2014 at 3:55 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 Myself and Thushara were following the tutorial [1] installing
 apache Stratos and came to the following section.

- Run the stratos-setup.sh file as the root.

 $ sudo ./setup.sh -p default

 After running the command we got the following error in our mac book
 pros.
 Detail terminal output is attached in the mail for reference.

 /WSO2/Products/stratos/opt/stratos-installer
 Warning: Using a password on the command line interface can be
 insecure.
 *ERROR 1061 (42000) at line 57: Duplicate key name
 'REG_PATH_IND_BY_PATH_VALUE'*


 This issue occurs when you try to install Stratos for the second time
 since database values are already there. Ideally clean.sh should delete the
 database. If  databases are not cleaned correctly by clean.sh it is a bug.
 Please create a jira and report it. Before that try following and check
 whether databases are deleted

 ./clean.sh -udb_username -pdb_pass or
 ./clean.sh -u db_username -p db_pass  .
 (Please mind the space in second option)

 Installer scripts are not tested very much in MAC environment as per my
 knowledge. It is highly appreciated if you can add your finding (installer
 scripts for MAC) to Stratos. It will be helpful for future MAC users.


 We also followed the apache stratos wiki [3].
 Please provide a direction to proceed from here.

 *Note*: *earlier setup.sh file gave an error 

Re: [Dev] [IS] What is the usage of Internal Role in Identity Server Users and Roles

2014-09-17 Thread Darshana Gunawardana
Have we considered permission based access control rather having role
based?.. Almost all our carbon access control done using permissions rather
roles.


On Tue, Sep 16, 2014 at 9:53 AM, Tharindu Edirisinghe tharin...@wso2.com
wrote:

 Thanks Suresh  Prasad...

 I think Option 2 and 3 suggested by Suresh together would solve the
 issue... but before that I have to check from where this role name is
 referred. If the user can change the role name, that name should be
 retrieved from all the places the where the role is used if for the role
 name, SP's name is referred.

 On Mon, Sep 15, 2014 at 11:02 PM, Suresh Attanayaka sur...@wso2.com
 wrote:

 However in the role of the application, those have edit permission to the
 application. That is why we have to be careful here. First question is, how
 we can get a role with the same name here. Three options here.

 1. If role exist, don't try to create a new, use the existing - Issue :
 Users who were in that role inherently gets edit permissions to the
 application which might not be the expected behavior.

 2. If role exist, fail application creating. Log a proper Error message
 in the log file.

 3. Allow the role name to be specified in the SP Config. So this will be
 configurable to user an existing role or create a new role if it doesn't
 exist.

 Thanks,
 -Suresh

 On Mon, Sep 15, 2014 at 9:31 AM, Tharindu Edirisinghe tharin...@wso2.com
  wrote:

 Hi,

 I'm working on issue [1 https://wso2.org/jira/browse/IDENTITY-2717]
 and noticed following.

 When registering a Service Provider, it creates an internal role with
 the same name given for SP. If we already have an internal role with the
 name given for the new SP, we cannot register the SP as the role creation
 for SP fails.

 [1] https://wso2.org/jira/browse/IDENTITY-2717

 --

 Thanks  Best Regards,

 Tharindu Edirisinghe
 Software Engineer

 *WSO2 Inc*
 *email   : tharin...@wso2.com tharin...@wso2.com *
 *mobile : +94 775 181586*
 *www: :http://wso2.com http://wso2.com/ *lean . enterprise .
 middleware



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




 --
 Suresh Attanayake
 Senior Software Engineer; WSO2 Inc. http://wso2.com/
 Blog : http://sureshatt.blogspot.com/
 Twitter : https://twitter.com/sureshatt
 LinkedIn : http://lk.linkedin.com/in/sureshatt
 Mobile : +94755012060




 --

 Thanks  Best Regards,

 Tharindu Edirisinghe
 Software Engineer

 *WSO2 Inc*
 *email   : tharin...@wso2.com tharin...@wso2.com *
 *mobile : +94 775 181586*
 *www: :http://wso2.com http://wso2.com/ *lean . enterprise . middleware



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




-- 
Regards,


*Darshana Gunawardana*Software Engineer
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com darsh...@wso2.com*
*Mobile: +94718566859 %2B94718566859*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Isuruwan Herath
Congratz!!!

On Wed, Sep 17, 2014 at 1:28 PM, Dumidu Handakumbura dum...@wso2.com
wrote:

 Congrats :)

 On Wed, Sep 17, 2014 at 1:10 PM, Kasun Dissanayake kas...@wso2.com
 wrote:

 Hi Sewwandi

 Congradzzz.

 On Wed, Sep 17, 2014 at 1:03 PM, Thilini Shanika thili...@wso2.com
 wrote:

 Congratulations :)

 On Wed, Sep 17, 2014 at 12:28 PM, Danesh Kuruppu dan...@wso2.com
 wrote:

 Congrats Sewwandi !!!

 On Wed, Sep 17, 2014 at 12:23 PM, Dhanuka Ranasinghe dhan...@wso2.com
 wrote:

 Congrattzzz !!!

 *Dhanuka Ranasinghe*

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

 phone : +94 715381915

 On Wed, Sep 17, 2014 at 12:22 PM, Chalitha Waldeniyage 
 chali...@wso2.com wrote:

 Congratulations Sewwandi !!! :)

 On Wed, Sep 17, 2014 at 12:20 PM, Gayashan Amarasinghe 
 gayas...@wso2.com wrote:

 Congratulations Sewwandi!!!

 On Wed, Sep 17, 2014 at 12:19 PM, Aruna Karunarathna ar...@wso2.com
  wrote:

 Congratulations Sewwandi...!!!

 On Wed, Sep 17, 2014 at 12:17 PM, Rajith Vitharana 
 raji...@wso2.com wrote:

 Congrags ... :)

 On Wed, Sep 17, 2014 at 12:16 PM, Nipuni Perera nip...@wso2.com
 wrote:


 Congradulations Sewwandi

 On Wed, Sep 17, 2014 at 12:13 PM, Manula Chathurika Thantriwatte
 manu...@wso2.com wrote:

 Congratulations !!!

 On Wed, Sep 17, 2014 at 12:09 PM, Sinthuja Ragendran 
 sinth...@wso2.com wrote:

 Congratz sewwandi!

 On Wed, Sep 17, 2014 at 11:56 AM, Ramith Jayasinghe 
 ram...@wso2.com wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2
 committer. Keep up the good work!
 thanks and best regards,

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

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


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




 --
 *Sinthuja Rajendran*
 Senior Software Engineer http://wso2.com/
 WSO2, Inc.:http://wso2.com

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



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




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/




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




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


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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --

 *Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


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




 --
 *Gayashan Amarasinghe*
 Software Engineer | Platform TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94718314517
 Blog : gayashan-a.blogspot.com

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




 --
 *Chalitha Maheshwari*
 Software Engineer-QA,
 WSO2 Inc.

 *E-mail:* chali...@wso2.com
 *Mobile: *+94710 411 112

 ___
 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




 --

 Danesh Kuruppu
 Software Engineer
 WSO2 Inc,
 Mobile: +94 (77) 1690552

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




 --
 Thilini Shanika
 Software Engineer
 WSO2, Inc.; http://wso2.com
 20, Palmgrove Avenue, Colombo 3

 E-mail: tgtshan...@gmail.com


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




 --
 Kasun Dissanayake
 Software Engineer
 WSO2 Inc.
 Lean | Enterprise | Middleware
 Tel - +94 77 086 2860
 Skype - kasun.dissanayake4
 LinkedIn - lk.linkedin.com/in/kasundis/

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




 --
 *Dumidu 

Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Ishara Karunarathna
Congratz Sewwandi .

On Tue, Sep 16, 2014 at 11:26 PM, Ramith Jayasinghe ram...@wso2.com wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer. Keep
 up the good work!
 thanks and best regards,

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

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


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




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

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


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Hasitha Hiranya
Congrats Sewwandi !!!

On Wed, Sep 17, 2014 at 1:57 PM, Ishara Karunarathna isha...@wso2.com
wrote:

 Congratz Sewwandi .

 On Tue, Sep 16, 2014 at 11:26 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer. Keep
 up the good work!
 thanks and best regards,

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

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


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




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

 email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile: +94
 718211678

 ___
 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


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Shazni Nazeer
Congrats!!!

Shazni Nazeer

Senior Software Engineer

Mob : +94 37331
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com

On Wed, Sep 17, 2014 at 1:59 PM, Hasitha Hiranya hasit...@wso2.com wrote:

 Congrats Sewwandi !!!

 On Wed, Sep 17, 2014 at 1:57 PM, Ishara Karunarathna isha...@wso2.com
 wrote:

 Congratz Sewwandi .

 On Tue, Sep 16, 2014 at 11:26 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer. Keep
 up the good work!
 thanks and best regards,

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

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


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




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

 email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile: +94
 718211678

 ___
 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


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


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Heshani Gamage
Congratulations Sewwandi!

Regards,
Heshani

On Wed, Sep 17, 2014 at 2:00 PM, Shazni Nazeer sha...@wso2.com wrote:

 Congrats!!!

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com

 On Wed, Sep 17, 2014 at 1:59 PM, Hasitha Hiranya hasit...@wso2.com
 wrote:

 Congrats Sewwandi !!!

 On Wed, Sep 17, 2014 at 1:57 PM, Ishara Karunarathna isha...@wso2.com
 wrote:

 Congratz Sewwandi .

 On Tue, Sep 16, 2014 at 11:26 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 thanks and best regards,

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

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


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




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

 email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile: +94
 718211678

 ___
 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



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




-- 
Heshani Gamage
Software Engineer, WSO2, Inc.
email : hesh...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] schema error in uploading a process to the BPS

2014-09-17 Thread Thilini Ishaka
Hi Akila,


On Wed, Sep 17, 2014 at 12:39 PM, Akila Nimantha [IT/EKO/LOITS] 
aki...@lolctech.com wrote:

  Hi Thilini,



 Thanks for your instant reply and Now it works fine J . But  I didn’t
 change anything in CReadLegacy.wsdl and just got a copy from BRS L. It
 seems problem with wsdl : definition namespaces. Are there specially things
 to do when creating services

​No manual steps. It should work OOTB.​

Need to check your rule service​ to provide an exact answer for this.

in BRS to overcome this in future ?? (or should I write definition
 namespaces myself.)



 Regards,

 Akila



 *From:* Thilini Ishaka [mailto:thil...@wso2.com]
 *Sent:* Wednesday, September 17, 2014 11:37 AM
 *To:* Akila Nimantha [IT/EKO/LOITS]
 *Cc:* dev@wso2.org
 *Subject:* Re: [Dev] schema error in uploading a process to the BPS



 Hi Akila,

 CReadLegacy.wsdl seems to be invalid.

 Herewith attached the modified wsdl file and the bpel (containing the
 updated wsdl).

 Thanks

 Thilini



 On Tue, Sep 16, 2014 at 11:25 AM, Akila Nimantha [IT/EKO/LOITS] 
 aki...@lolctech.com wrote:

  *Hi all,*



 I am trying to invoke BRS service from BPEL and when I upload the process
 to the BPS, it gives following error in my BPS log.

 Also I searched in the internet and I couldn’t find any solution for
 this…(but kind of similar question in stackoverflow and they say to change
 xml schema. But couldn’t figure out how to apply it to my situation. )

 Also I attached BRS wsdl file and BPEL Process.



 Caused by: org.apache.ode.bpel.compiler.api.CompilationException: error:
 [CompilationErrors] Compilation completed with 1 error(s):


 file:/u01/jb/wso2bps-3.2.0/tmp/work/bpelTemp/1.4108449590014995E12/HowToDo_1.0.0/CReadLegacy.wsdl:0:
 error: [SchemaError] Error in schema processing: src-resolve.4.2: Error
 resolving component 'ax2493:InitRule'. It was detected that
 'ax2493:InitRule' is in namespace 'http://lolc.com/initrule', but
 components from this namespace are not referenceable from schema document
 'file:/u01/jb/wso2bps-3.2.0/tmp/work/bpelTemp/1.4108449590014995E12/HowToDo_1.0.0/CReadLegacy.wsdl'.
 If this is the incorrect namespace, perhaps the prefix of 'ax2493:InitRule'
 needs to be changed. If this is the correct namespace, then an appropriate
 'import' tag should be added to
 'file:/u01/jb/wso2bps-3.2.0/tmp/work/bpelTemp/1.4108449590014995E12/HowToDo_1.0.0/CReadLegacy.wsdl'.



at
 org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:815)

at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:278)

at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:364)

at
 org.apache.ode.store.DeploymentUnitDir$5.run(DeploymentUnitDir.java:221)

at org.apache.ode.utils.InternPool.runBlock(InternPool.java:57)

at
 org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:218)

at
 org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:177)

at
 org.wso2.carbon.bpel.ui.fileupload.BPELUploadExecutor.validateBPELPackage(BPELUploadExecutor.java:292)

... 38 more





 Regards,

 Akila

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


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




 --

 Thilini Ishaka
 Senior Software Engineer

 Integration Technologies Team

 Phone: +94 11 214 5345

 WSO2 Inc. http://wso2.com

 blog: thiliniishaka.blogspot.com

 linkedin: http://lk.linkedin.com/in/thiliniishaka

 twitter: https://twitter.com/#!/ThiliniIsh

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




-- 
Thilini Ishaka
Senior Software Engineer
Integration Technologies Team
Phone: 

Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Reka Thirunavukkarasu
Congratz Sewwandi..!!!

Thanks,
Reka

On Wed, Sep 17, 2014 at 2:03 PM, Heshani Gamage hesh...@wso2.com wrote:

 Congratulations Sewwandi!

 Regards,
 Heshani

 On Wed, Sep 17, 2014 at 2:00 PM, Shazni Nazeer sha...@wso2.com wrote:

 Congrats!!!

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com

 On Wed, Sep 17, 2014 at 1:59 PM, Hasitha Hiranya hasit...@wso2.com
 wrote:

 Congrats Sewwandi !!!

 On Wed, Sep 17, 2014 at 1:57 PM, Ishara Karunarathna isha...@wso2.com
 wrote:

 Congratz Sewwandi .

 On Tue, Sep 16, 2014 at 11:26 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 thanks and best regards,

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

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


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




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

 email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile: +94
 718211678

 ___
 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



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




 --
 Heshani Gamage
 Software Engineer, WSO2, Inc.
 email : hesh...@wso2.com

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




-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Pamod Sylvester
Congratulations Sewwandi !!

On Wed, Sep 17, 2014 at 2:21 PM, Reka Thirunavukkarasu r...@wso2.com
wrote:

 Congratz Sewwandi..!!!

 Thanks,
 Reka

 On Wed, Sep 17, 2014 at 2:03 PM, Heshani Gamage hesh...@wso2.com wrote:

 Congratulations Sewwandi!

 Regards,
 Heshani

 On Wed, Sep 17, 2014 at 2:00 PM, Shazni Nazeer sha...@wso2.com wrote:

 Congrats!!!

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com

 On Wed, Sep 17, 2014 at 1:59 PM, Hasitha Hiranya hasit...@wso2.com
 wrote:

 Congrats Sewwandi !!!

 On Wed, Sep 17, 2014 at 1:57 PM, Ishara Karunarathna isha...@wso2.com
 wrote:

 Congratz Sewwandi .

 On Tue, Sep 16, 2014 at 11:26 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 thanks and best regards,

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

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


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




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

 email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile: +94
 718211678

 ___
 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



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




 --
 Heshani Gamage
 Software Engineer, WSO2, Inc.
 email : hesh...@wso2.com

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




 --
 Reka Thirunavukkarasu
 Senior Software Engineer,
 WSO2, Inc.:http://wso2.com,
 Mobile: +94776442007



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




-- 
*Pamod Sylvester *
 *Senior Software Engineer *
Integration Technologies Team, WSO2 Inc.; http://wso2.com
email: pa...@wso2.com cell: +94 77 7779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Suhan Dharmasuriya
Hi Manula,

Nirmal, Thushara and I did try running clean.sh script but had no luck.
Sample output is as follows.
Note that mysql root password is 'pass'.
Suhans-MacBook-Pro:stratos-installer suhanr$ sudo ./clean.sh -u root -p pass
Please confirm that you want to remove stratos databases, servers and logs
[y/n] y
Stopping all java processes
No matching processes were found
Waiting for applications to exit
Removing userstore database
Warning: Using a password on the command line interface can be insecure.
Removing Stratos
Removing logs
Suhans-MacBook-Pro:stratos-installer suhanr$

According to the mysql server output the database is still there.
mysql show databases;
+-+
| Database|
+-+
| information_schema  |
| USERSTORE_DB_SCHEMA |
| mysql   |
| performance_schema  |
| test|
+-+
5 rows in set (0.00 sec)

mysql show databases;
+-+
| Database|
+-+
| information_schema  |
| USERSTORE_DB_SCHEMA |
| mysql   |
| performance_schema  |
| test|
+-+
5 rows in set (0.00 sec)

Thanks,
Suhan

On Wed, Sep 17, 2014 at 1:38 PM, Prasanna Dangalla prasa...@wso2.com
wrote:

 HI,

 The sed issue came to me also.  I modifed the scripts and changed all sed
 to gsed.


 On Wed, Sep 17, 2014 at 12:52 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 The $subject error occurs because in the first time the script fails, and
 at that time it already create the database. Since you didn't run the
 clean.sh databases are already in the environment. After you run the
 setup.sh in second time you will get the $subject error.

 Thanks !


 On Wed, Sep 17, 2014 at 12:46 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Udara,
 Yes, We will do the needful.

 Thanks,
 Thushara.

 On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage ud...@wso2.com wrote:



 On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Thanks Lasindu,

 Thushara and I are in the process of modifying the shell scripts
 suitable for osx.
 We contacted Nirmal, Lakmal, Waruna and Udara and had a quick
 discussion.

 After the discussion, the solution we found was to delete the
 USERSTORE_DB_SCHEMA database from mysql manually.

 As mentioned earlier, once $ sudo ./setup.sh -p default -s command
 is run we get the following error.
 outputEventAdaptor name=JMSOutputAdaptor statistics=disable
   trace=enable type=jms xmlns=
 http://wso2.org/carbon/eventadaptormanager;
   !--property
 name=java.naming.provider.urlCEP_HOME/repository/conf/jndi.properties/property--
   property name=java.naming.provider.urltcp://10.100.5.175:61616
 /property
   property
 name=java.naming.factory.initialorg.apache.activemq.jndi.ActiveMQInitialContextFactory/property
   property
 name=transport.jms.ConnectionFactoryJNDINameTopicConnectionFactory/property
   property name=transport.jms.DestinationTypetopic/property
 /outputEventAdaptor
 End configuring the Complex Event Processor
 /WSO2/Products/stratos/opt/stratos-installer
 Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
 chown: suhanr: illegal group name

 What it tries to do is changing the ownership of installer to user
 suhanr that he can start Stratos. I guess the user group suhanr  is not
 present in your environment. Please check with the command groups.

 *After the second attempt we were getting the said error. $subject.*

 As a temporary solution we deleted the said database from mysql.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | *USERSTORE_DB_SCHEMA* |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql drop database *USERSTORE_DB_SCHEMA*;
 Query OK, 39 rows affected (0.05 sec)

 mysql show databases;
 ++
 | Database   |
 ++
 | information_schema |
 | mysql  |
 | performance_schema |
 | test   |
 ++
 4 rows in set (0.00 sec)

 Then we were able to avoid the mentioned error in $subject.

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 11:21 AM, Lasindu Charith lasi...@wso2.com
 wrote:

 Hi Thushara and Suhan,

 Better if you can discuss the issues related to Apaches Stratos in
 stratos-dev list (
 http://stratos.apache.org/community/mailing-lists.html)
 But for now, regarding the issues you have when setting up Stratos in
 osx, Nirmal, Reka or Prasanna might be able to help (Added).

 Thanks,

 On Tue, Sep 16, 2014 at 3:57 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 We have installed mysql for OSX 10.9 [1]

 [1] http://www.macminivault.com/mysql-mavericks/

 On Tue, Sep 16, 2014 at 3:55 PM, Suhan Dharmasuriya suh...@wso2.com
  wrote:

 Hi,

 Myself and Thushara were following the tutorial [1] installing
 apache Stratos and 

Re: [Dev] Error in writing a Carbon component

2014-09-17 Thread Lahiru Cooray
thanks a lot Firzhan.. Will try this..

On Wed, Sep 17, 2014 at 12:47 PM, Firzhan Naqash firz...@wso2.com wrote:


 Hi Lahiru,

 I think you haven't mentioned the repository and plugin-repository
 proplerly in your pom.xml file.

 Try to add nexus-repo in your pom.xml file

 repositories
 repository
 idwso2-nexus/id
 nameWSO2 internal Repository/name
 urlhttp://maven.wso2.org/nexus/content/groups/wso2-public//url
 releases
 enabledtrue/enabled
 updatePolicydaily/updatePolicy
 checksumPolicyfail/checksumPolicy
 /releases
 /repository

 /repositories

 And try to add plugin-repository in your pom file.

 pluginRepositories
 pluginRepository
 idwso2-maven2-repository-1/id
 urlhttp://dist.wso2.org/maven2/url
 /pluginRepository
 pluginRepository
 idwso2-maven2-repository-2/id
 urlhttp://dist.wso2.org/snapshots/maven2/url
 /pluginRepository
 pluginRepository
 idrepository.dev.java.net-maven2/id
 nameJava.net Repository for Maven/name
 urlhttp://download.java.net/maven/2//url
 layoutdefault/layout
 /pluginRepository
 /pluginRepositories


 Do a clean mvn build. This may solve your problem


 Regards,
 Firzhan

 On Wed, Sep 17, 2014 at 12:44 PM, Lahiru Cooray lahi...@wso2.com wrote:

 Hi,

 I'm following these tutorials to write a Carbon component (and a Feature).
 [1]
 http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
 [2]
 http://wso2.com/library/tutorials/2014/03/how-to-create-a-feature-from-wso2-carbon-component/

 I have successfully completed the tutorial [1].
 But when I follow all the steps in tutorial [2] , I get the below error.
 please help..


 *Error
 stack*

  SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder.

 SLF4J: Defaulting to no-operation (NOP) logger implementation

 SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
 further details.

 [INFO] Scanning for projects...

 [WARNING]

 [WARNING] Some problems were encountered while building the effective
 model for org.wso2.carbon:org.wso2.carbon.student.mgt:bundle:4.2.0

 [WARNING] 'build.plugins.plugin.version' for
 org.apache.felix:maven-bundle-plugin is missing. @ line 19, column 21

 [WARNING] The expression ${pom.artifactId} is deprecated. Please use
 ${project.artifactId} instead.

 [WARNING] The expression ${pom.artifactId} is deprecated. Please use
 ${project.artifactId} instead.

 [WARNING]

 [WARNING] Some problems were encountered while building the effective
 model for org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0

 [WARNING] 'build.plugins.plugin.version' for
 org.apache.felix:maven-bundle-plugin is missing. @ line 133, column 21

 [WARNING] 'build.plugins.plugin.version' for
 org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 114, column
 21

 [WARNING]

 [WARNING] Some problems were encountered while building the effective
 model for org.wso2.carbon:org.wso2.carbon.student.mgt.ui:bundle:4.2.0

 [WARNING] 'build.plugins.plugin.version' for
 org.apache.felix:maven-bundle-plugin is missing. @ line 25, column 21

 [WARNING] The expression ${pom.artifactId} is deprecated. Please use
 ${project.artifactId} instead.

 [WARNING]

 [WARNING] It is highly recommended to fix these problems because they
 threaten the stability of your build.

 [WARNING]

 [WARNING] For this reason, future Maven versions might no longer support
 building such malformed projects.

 [WARNING]

 [INFO]
 

 [INFO] Reactor Build Order:

 [INFO]

 [INFO] WSO2 Carbon - Student Manager

 [INFO] WSO2 Carbon - Student Manager Components

 [INFO] WSO2 Carbon - Student Manager Server Component

 [INFO] WSO2 Carbon - Student Manager Stub

 [INFO] WSO2 Carbon - Student Manager UI Component

 [INFO] WSO2 Carbon - Student Manager Features

 [INFO] WSO2 Carbon - Student Manager UI Feature

 [INFO] WSO2 Carbon - Student Manager Aggregate Feature

 [INFO] WSO2 Carbon - Student Manager Feature Repository

 [INFO]


 [INFO]
 

 [INFO] Building WSO2 Carbon - Student Manager 4.2.0

 [INFO]
 

 [INFO]

 [INFO] --- maven-install-plugin:2.3.1:install (default-install) @
 student-manager ---

 [INFO] Installing
 /Users/lahiruC/Documents/FastTrackerProgram/7-Carbon/StudentMgtEx/student-manager/pom.xml
 to
 /Users/lahiruC/.m2/repository/org/wso2/carbon/student-manager/4.2.0/student-manager-4.2.0.pom

 [INFO]


 [INFO]
 

 [INFO] Building WSO2 Carbon - Student Manager Components 4.2.0

 

Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Manula Chathurika Thantriwatte
Hi Suhan,

Can you please debug and see the username and the password is actually
there in the database cleanup function. You can simply use echo statement
inside the drop database function and verify that. clean.sh script work
perfectly in ubuntu. I'm not sure is there any impact on MAC.

Thanks !


On Wed, Sep 17, 2014 at 2:29 PM, Suhan Dharmasuriya suh...@wso2.com wrote:

 Hi Manula,

 Nirmal, Thushara and I did try running clean.sh script but had no luck.
 Sample output is as follows.
 Note that mysql root password is 'pass'.
 Suhans-MacBook-Pro:stratos-installer suhanr$ sudo ./clean.sh -u root -p
 pass
 Please confirm that you want to remove stratos databases, servers and logs
 [y/n] y
 Stopping all java processes
 No matching processes were found
 Waiting for applications to exit
 Removing userstore database
 Warning: Using a password on the command line interface can be insecure.
 Removing Stratos
 Removing logs
 Suhans-MacBook-Pro:stratos-installer suhanr$

 According to the mysql server output the database is still there.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 1:38 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 HI,

 The sed issue came to me also.  I modifed the scripts and changed all sed
 to gsed.


 On Wed, Sep 17, 2014 at 12:52 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 The $subject error occurs because in the first time the script fails,
 and at that time it already create the database. Since you didn't run the
 clean.sh databases are already in the environment. After you run the
 setup.sh in second time you will get the $subject error.

 Thanks !


 On Wed, Sep 17, 2014 at 12:46 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Udara,
 Yes, We will do the needful.

 Thanks,
 Thushara.

 On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage ud...@wso2.com
 wrote:



 On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Thanks Lasindu,

 Thushara and I are in the process of modifying the shell scripts
 suitable for osx.
 We contacted Nirmal, Lakmal, Waruna and Udara and had a quick
 discussion.

 After the discussion, the solution we found was to delete the
 USERSTORE_DB_SCHEMA database from mysql manually.

 As mentioned earlier, once $ sudo ./setup.sh -p default -s command
 is run we get the following error.
 outputEventAdaptor name=JMSOutputAdaptor statistics=disable
   trace=enable type=jms xmlns=
 http://wso2.org/carbon/eventadaptormanager;
   !--property
 name=java.naming.provider.urlCEP_HOME/repository/conf/jndi.properties/property--
   property name=java.naming.provider.urltcp://10.100.5.175:61616
 /property
   property
 name=java.naming.factory.initialorg.apache.activemq.jndi.ActiveMQInitialContextFactory/property
   property
 name=transport.jms.ConnectionFactoryJNDINameTopicConnectionFactory/property
   property name=transport.jms.DestinationTypetopic/property
 /outputEventAdaptor
 End configuring the Complex Event Processor
 /WSO2/Products/stratos/opt/stratos-installer
 Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
 chown: suhanr: illegal group name

 What it tries to do is changing the ownership of installer to user
 suhanr that he can start Stratos. I guess the user group suhanr  is not
 present in your environment. Please check with the command groups.

 *After the second attempt we were getting the said error. $subject.*

 As a temporary solution we deleted the said database from mysql.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | *USERSTORE_DB_SCHEMA* |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql drop database *USERSTORE_DB_SCHEMA*;
 Query OK, 39 rows affected (0.05 sec)

 mysql show databases;
 ++
 | Database   |
 ++
 | information_schema |
 | mysql  |
 | performance_schema |
 | test   |
 ++
 4 rows in set (0.00 sec)

 Then we were able to avoid the mentioned error in $subject.

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 11:21 AM, Lasindu Charith lasi...@wso2.com
 wrote:

 Hi Thushara and Suhan,

 Better if you can discuss the issues related to Apaches Stratos in
 stratos-dev list (
 http://stratos.apache.org/community/mailing-lists.html)
 But for now, regarding the issues you have when setting up 

Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Prasanna Dangalla
Hi,

For mac install homebrew and install gsed.
Change the sed commands in setup.sh and openstack.sh

I have attached above mentioned two files with changes



On Wed, Sep 17, 2014 at 2:41 PM, Manula Chathurika Thantriwatte 
manu...@wso2.com wrote:

 Hi Suhan,

 Can you please debug and see the username and the password is actually
 there in the database cleanup function. You can simply use echo statement
 inside the drop database function and verify that. clean.sh script work
 perfectly in ubuntu. I'm not sure is there any impact on MAC.

 Thanks !


 On Wed, Sep 17, 2014 at 2:29 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi Manula,

 Nirmal, Thushara and I did try running clean.sh script but had no luck.
 Sample output is as follows.
 Note that mysql root password is 'pass'.
 Suhans-MacBook-Pro:stratos-installer suhanr$ sudo ./clean.sh -u root -p
 pass
 Please confirm that you want to remove stratos databases, servers and
 logs [y/n] y
 Stopping all java processes
 No matching processes were found
 Waiting for applications to exit
 Removing userstore database
 Warning: Using a password on the command line interface can be insecure.
 Removing Stratos
 Removing logs
 Suhans-MacBook-Pro:stratos-installer suhanr$

 According to the mysql server output the database is still there.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 1:38 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 HI,

 The sed issue came to me also.  I modifed the scripts and changed all
 sed to gsed.


 On Wed, Sep 17, 2014 at 12:52 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 The $subject error occurs because in the first time the script fails,
 and at that time it already create the database. Since you didn't run the
 clean.sh databases are already in the environment. After you run the
 setup.sh in second time you will get the $subject error.

 Thanks !


 On Wed, Sep 17, 2014 at 12:46 PM, Thushara Ranawaka thusha...@wso2.com
  wrote:

 Hi Udara,
 Yes, We will do the needful.

 Thanks,
 Thushara.

 On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage ud...@wso2.com
 wrote:



 On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya suh...@wso2.com
  wrote:

 Thanks Lasindu,

 Thushara and I are in the process of modifying the shell scripts
 suitable for osx.
 We contacted Nirmal, Lakmal, Waruna and Udara and had a quick
 discussion.

 After the discussion, the solution we found was to delete the
 USERSTORE_DB_SCHEMA database from mysql manually.

 As mentioned earlier, once $ sudo ./setup.sh -p default -s command
 is run we get the following error.
 outputEventAdaptor name=JMSOutputAdaptor statistics=disable
   trace=enable type=jms xmlns=
 http://wso2.org/carbon/eventadaptormanager;
   !--property
 name=java.naming.provider.urlCEP_HOME/repository/conf/jndi.properties/property--
   property name=java.naming.provider.urltcp://10.100.5.175:61616
 /property
   property
 name=java.naming.factory.initialorg.apache.activemq.jndi.ActiveMQInitialContextFactory/property
   property
 name=transport.jms.ConnectionFactoryJNDINameTopicConnectionFactory/property
   property name=transport.jms.DestinationTypetopic/property
 /outputEventAdaptor
 End configuring the Complex Event Processor
 /WSO2/Products/stratos/opt/stratos-installer
 Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
 chown: suhanr: illegal group name

 What it tries to do is changing the ownership of installer to user
 suhanr that he can start Stratos. I guess the user group suhanr  is not
 present in your environment. Please check with the command groups.

 *After the second attempt we were getting the said error. $subject.*

 As a temporary solution we deleted the said database from mysql.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | *USERSTORE_DB_SCHEMA* |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql drop database *USERSTORE_DB_SCHEMA*;
 Query OK, 39 rows affected (0.05 sec)

 mysql show databases;
 ++
 | Database   |
 ++
 | information_schema |
 | mysql  |
 | performance_schema |
 | test   |
 ++
 4 rows in set (0.00 sec)

 Then we were able to avoid the mentioned error in $subject.

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 11:21 AM, Lasindu 

[Dev] [Bamboo-Build] Bamboo test email

2014-09-17 Thread Bamboo
This is a test email generated by Bamboo.

If you receive this email, your mail server settings on Bamboo are correct.

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


Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Thushara Ranawaka
Hi Manula,

FYI

In mac when we run mysql -u $mysql_user -p$mysql_pass -e DROP DATABASE IF
EXISTS $userstore_db_schema;  it works without any issue. we will debug
the shell script and let you know.

mysql show databases;

+-+

| Database|

+-+

| information_schema  |

| USERSTORE_DB_SCHEMA |

| mysql   |

| performance_schema  |

| test|

+-+

5 rows in set (0.00 sec)


mysql exit

Bye

Thusharas-MacBook-Pro:~ thushara$ mysql -u root -ppassword -e DROP
DATABASE IF EXISTS USERSTORE_DB_SCHEMA;

Warning: Using a password on the command line interface can be insecure.

Thusharas-MacBook-Pro:~ thushara$ mysql

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 28

Server version: 5.6.20 MySQL Community Server (GPL)


Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.


Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.


Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.


mysql show databases;

++

| Database   |

++

| information_schema |

| mysql  |

| performance_schema |

| test   |

++

4 rows in set (0.00 sec)



On Wed, Sep 17, 2014 at 2:41 PM, Manula Chathurika Thantriwatte 
manu...@wso2.com wrote:

 Hi Suhan,

 Can you please debug and see the username and the password is actually
 there in the database cleanup function. You can simply use echo statement
 inside the drop database function and verify that. clean.sh script work
 perfectly in ubuntu. I'm not sure is there any impact on MAC.

 Thanks !


 On Wed, Sep 17, 2014 at 2:29 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi Manula,

 Nirmal, Thushara and I did try running clean.sh script but had no luck.
 Sample output is as follows.
 Note that mysql root password is 'pass'.
 Suhans-MacBook-Pro:stratos-installer suhanr$ sudo ./clean.sh -u root -p
 pass
 Please confirm that you want to remove stratos databases, servers and
 logs [y/n] y
 Stopping all java processes
 No matching processes were found
 Waiting for applications to exit
 Removing userstore database
 Warning: Using a password on the command line interface can be insecure.
 Removing Stratos
 Removing logs
 Suhans-MacBook-Pro:stratos-installer suhanr$

 According to the mysql server output the database is still there.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 1:38 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 HI,

 The sed issue came to me also.  I modifed the scripts and changed all
 sed to gsed.


 On Wed, Sep 17, 2014 at 12:52 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 The $subject error occurs because in the first time the script fails,
 and at that time it already create the database. Since you didn't run the
 clean.sh databases are already in the environment. After you run the
 setup.sh in second time you will get the $subject error.

 Thanks !


 On Wed, Sep 17, 2014 at 12:46 PM, Thushara Ranawaka thusha...@wso2.com
  wrote:

 Hi Udara,
 Yes, We will do the needful.

 Thanks,
 Thushara.

 On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage ud...@wso2.com
 wrote:



 On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya suh...@wso2.com
  wrote:

 Thanks Lasindu,

 Thushara and I are in the process of modifying the shell scripts
 suitable for osx.
 We contacted Nirmal, Lakmal, Waruna and Udara and had a quick
 discussion.

 After the discussion, the solution we found was to delete the
 USERSTORE_DB_SCHEMA database from mysql manually.

 As mentioned earlier, once $ sudo ./setup.sh -p default -s command
 is run we get the following error.
 outputEventAdaptor name=JMSOutputAdaptor statistics=disable
   trace=enable type=jms xmlns=
 http://wso2.org/carbon/eventadaptormanager;
   !--property
 name=java.naming.provider.urlCEP_HOME/repository/conf/jndi.properties/property--
   property name=java.naming.provider.urltcp://10.100.5.175:61616
 /property
   property
 name=java.naming.factory.initialorg.apache.activemq.jndi.ActiveMQInitialContextFactory/property
   property
 name=transport.jms.ConnectionFactoryJNDINameTopicConnectionFactory/property
   property name=transport.jms.DestinationTypetopic/property
 /outputEventAdaptor
 End configuring the Complex Event 

Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Thushara Ranawaka
Hi,

Issue was the database name.
I did the following changes in the setup.conf and now clean.sh is working
properly.

# export userstore_db_schema=userstore
export userstore_db_schema=USERSTORE_DB_SCHEMA # for mac osx

Is there any issue or conflict in above setup?

Thanks,
Thushara

On Wed, Sep 17, 2014 at 2:50 PM, Thushara Ranawaka thusha...@wso2.com
wrote:

 Hi Manula,

 FYI

 In mac when we run mysql -u $mysql_user -p$mysql_pass -e DROP DATABASE
 IF EXISTS $userstore_db_schema;  it works without any issue. we will
 debug the shell script and let you know.

 mysql show databases;

 +-+

 | Database|

 +-+

 | information_schema  |

 | USERSTORE_DB_SCHEMA |

 | mysql   |

 | performance_schema  |

 | test|

 +-+

 5 rows in set (0.00 sec)


 mysql exit

 Bye

 Thusharas-MacBook-Pro:~ thushara$ mysql -u root -ppassword -e DROP
 DATABASE IF EXISTS USERSTORE_DB_SCHEMA;

 Warning: Using a password on the command line interface can be insecure.

 Thusharas-MacBook-Pro:~ thushara$ mysql

 Welcome to the MySQL monitor.  Commands end with ; or \g.

 Your MySQL connection id is 28

 Server version: 5.6.20 MySQL Community Server (GPL)


 Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights
 reserved.


 Oracle is a registered trademark of Oracle Corporation and/or its

 affiliates. Other names may be trademarks of their respective

 owners.


 Type 'help;' or '\h' for help. Type '\c' to clear the current input
 statement.


 mysql show databases;

 ++

 | Database   |

 ++

 | information_schema |

 | mysql  |

 | performance_schema |

 | test   |

 ++

 4 rows in set (0.00 sec)



 On Wed, Sep 17, 2014 at 2:41 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi Suhan,

 Can you please debug and see the username and the password is actually
 there in the database cleanup function. You can simply use echo statement
 inside the drop database function and verify that. clean.sh script work
 perfectly in ubuntu. I'm not sure is there any impact on MAC.

 Thanks !


 On Wed, Sep 17, 2014 at 2:29 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi Manula,

 Nirmal, Thushara and I did try running clean.sh script but had no luck.
 Sample output is as follows.
 Note that mysql root password is 'pass'.
 Suhans-MacBook-Pro:stratos-installer suhanr$ sudo ./clean.sh -u root -p
 pass
 Please confirm that you want to remove stratos databases, servers and
 logs [y/n] y
 Stopping all java processes
 No matching processes were found
 Waiting for applications to exit
 Removing userstore database
 Warning: Using a password on the command line interface can be insecure.
 Removing Stratos
 Removing logs
 Suhans-MacBook-Pro:stratos-installer suhanr$

 According to the mysql server output the database is still there.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 1:38 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 HI,

 The sed issue came to me also.  I modifed the scripts and changed all
 sed to gsed.


 On Wed, Sep 17, 2014 at 12:52 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 The $subject error occurs because in the first time the script fails,
 and at that time it already create the database. Since you didn't run the
 clean.sh databases are already in the environment. After you run the
 setup.sh in second time you will get the $subject error.

 Thanks !


 On Wed, Sep 17, 2014 at 12:46 PM, Thushara Ranawaka 
 thusha...@wso2.com wrote:

 Hi Udara,
 Yes, We will do the needful.

 Thanks,
 Thushara.

 On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage ud...@wso2.com
 wrote:



 On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya 
 suh...@wso2.com wrote:

 Thanks Lasindu,

 Thushara and I are in the process of modifying the shell scripts
 suitable for osx.
 We contacted Nirmal, Lakmal, Waruna and Udara and had a quick
 discussion.

 After the discussion, the solution we found was to delete the
 USERSTORE_DB_SCHEMA database from mysql manually.

 As mentioned earlier, once $ sudo ./setup.sh -p default -s command
 is run we get the following error.
 outputEventAdaptor name=JMSOutputAdaptor statistics=disable
   trace=enable type=jms xmlns=
 http://wso2.org/carbon/eventadaptormanager;
   !--property
 

Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Manula Chathurika Thantriwatte
Hi,

It might be a problem. Then it create the database as
USERSTORE_DB_SCHEMA. Isn't it ?

On Wed, Sep 17, 2014 at 3:10 PM, Thushara Ranawaka thusha...@wso2.com
wrote:

 Hi,

 Issue was the database name.
 I did the following changes in the setup.conf and now clean.sh is working
 properly.

 # export userstore_db_schema=userstore
 export userstore_db_schema=USERSTORE_DB_SCHEMA # for mac osx

 Is there any issue or conflict in above setup?

 Thanks,
 Thushara

 On Wed, Sep 17, 2014 at 2:50 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Manula,

 FYI

 In mac when we run mysql -u $mysql_user -p$mysql_pass -e DROP DATABASE
 IF EXISTS $userstore_db_schema;  it works without any issue. we will
 debug the shell script and let you know.

 mysql show databases;

 +-+

 | Database|

 +-+

 | information_schema  |

 | USERSTORE_DB_SCHEMA |

 | mysql   |

 | performance_schema  |

 | test|

 +-+

 5 rows in set (0.00 sec)


 mysql exit

 Bye

 Thusharas-MacBook-Pro:~ thushara$ mysql -u root -ppassword -e DROP
 DATABASE IF EXISTS USERSTORE_DB_SCHEMA;

 Warning: Using a password on the command line interface can be insecure.

 Thusharas-MacBook-Pro:~ thushara$ mysql

 Welcome to the MySQL monitor.  Commands end with ; or \g.

 Your MySQL connection id is 28

 Server version: 5.6.20 MySQL Community Server (GPL)


 Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights
 reserved.


 Oracle is a registered trademark of Oracle Corporation and/or its

 affiliates. Other names may be trademarks of their respective

 owners.


 Type 'help;' or '\h' for help. Type '\c' to clear the current input
 statement.


 mysql show databases;

 ++

 | Database   |

 ++

 | information_schema |

 | mysql  |

 | performance_schema |

 | test   |

 ++

 4 rows in set (0.00 sec)



 On Wed, Sep 17, 2014 at 2:41 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi Suhan,

 Can you please debug and see the username and the password is actually
 there in the database cleanup function. You can simply use echo statement
 inside the drop database function and verify that. clean.sh script work
 perfectly in ubuntu. I'm not sure is there any impact on MAC.

 Thanks !


 On Wed, Sep 17, 2014 at 2:29 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi Manula,

 Nirmal, Thushara and I did try running clean.sh script but had no luck.
 Sample output is as follows.
 Note that mysql root password is 'pass'.
 Suhans-MacBook-Pro:stratos-installer suhanr$ sudo ./clean.sh -u root -p
 pass
 Please confirm that you want to remove stratos databases, servers and
 logs [y/n] y
 Stopping all java processes
 No matching processes were found
 Waiting for applications to exit
 Removing userstore database
 Warning: Using a password on the command line interface can be insecure.
 Removing Stratos
 Removing logs
 Suhans-MacBook-Pro:stratos-installer suhanr$

 According to the mysql server output the database is still there.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 1:38 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 HI,

 The sed issue came to me also.  I modifed the scripts and changed all
 sed to gsed.


 On Wed, Sep 17, 2014 at 12:52 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 The $subject error occurs because in the first time the script fails,
 and at that time it already create the database. Since you didn't run the
 clean.sh databases are already in the environment. After you run the
 setup.sh in second time you will get the $subject error.

 Thanks !


 On Wed, Sep 17, 2014 at 12:46 PM, Thushara Ranawaka 
 thusha...@wso2.com wrote:

 Hi Udara,
 Yes, We will do the needful.

 Thanks,
 Thushara.

 On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage ud...@wso2.com
 wrote:



 On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya 
 suh...@wso2.com wrote:

 Thanks Lasindu,

 Thushara and I are in the process of modifying the shell scripts
 suitable for osx.
 We contacted Nirmal, Lakmal, Waruna and Udara and had a quick
 discussion.

 After the discussion, the solution we found was to delete the
 USERSTORE_DB_SCHEMA database from mysql manually.

 As mentioned earlier, once $ sudo ./setup.sh -p default -s command
 is run we get the following error.
 outputEventAdaptor 

Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Thushara Ranawaka
Hi Manula,
Yes it is.


On Wed, Sep 17, 2014 at 3:18 PM, Manula Chathurika Thantriwatte 
manu...@wso2.com wrote:

 Hi,

 It might be a problem. Then it create the database as
 USERSTORE_DB_SCHEMA. Isn't it ?

 On Wed, Sep 17, 2014 at 3:10 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi,

 Issue was the database name.
 I did the following changes in the setup.conf and now clean.sh is working
 properly.

 # export userstore_db_schema=userstore
 export userstore_db_schema=USERSTORE_DB_SCHEMA # for mac osx

 Is there any issue or conflict in above setup?

 Thanks,
 Thushara

 On Wed, Sep 17, 2014 at 2:50 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Manula,

 FYI

 In mac when we run mysql -u $mysql_user -p$mysql_pass -e DROP DATABASE
 IF EXISTS $userstore_db_schema;  it works without any issue. we will
 debug the shell script and let you know.

 mysql show databases;

 +-+

 | Database|

 +-+

 | information_schema  |

 | USERSTORE_DB_SCHEMA |

 | mysql   |

 | performance_schema  |

 | test|

 +-+

 5 rows in set (0.00 sec)


 mysql exit

 Bye

 Thusharas-MacBook-Pro:~ thushara$ mysql -u root -ppassword -e DROP
 DATABASE IF EXISTS USERSTORE_DB_SCHEMA;

 Warning: Using a password on the command line interface can be insecure.

 Thusharas-MacBook-Pro:~ thushara$ mysql

 Welcome to the MySQL monitor.  Commands end with ; or \g.

 Your MySQL connection id is 28

 Server version: 5.6.20 MySQL Community Server (GPL)


 Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights
 reserved.


 Oracle is a registered trademark of Oracle Corporation and/or its

 affiliates. Other names may be trademarks of their respective

 owners.


 Type 'help;' or '\h' for help. Type '\c' to clear the current input
 statement.


 mysql show databases;

 ++

 | Database   |

 ++

 | information_schema |

 | mysql  |

 | performance_schema |

 | test   |

 ++

 4 rows in set (0.00 sec)



 On Wed, Sep 17, 2014 at 2:41 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi Suhan,

 Can you please debug and see the username and the password is actually
 there in the database cleanup function. You can simply use echo statement
 inside the drop database function and verify that. clean.sh script work
 perfectly in ubuntu. I'm not sure is there any impact on MAC.

 Thanks !


 On Wed, Sep 17, 2014 at 2:29 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi Manula,

 Nirmal, Thushara and I did try running clean.sh script but had no luck.
 Sample output is as follows.
 Note that mysql root password is 'pass'.
 Suhans-MacBook-Pro:stratos-installer suhanr$ sudo ./clean.sh -u root
 -p pass
 Please confirm that you want to remove stratos databases, servers and
 logs [y/n] y
 Stopping all java processes
 No matching processes were found
 Waiting for applications to exit
 Removing userstore database
 Warning: Using a password on the command line interface can be
 insecure.
 Removing Stratos
 Removing logs
 Suhans-MacBook-Pro:stratos-installer suhanr$

 According to the mysql server output the database is still there.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 1:38 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 HI,

 The sed issue came to me also.  I modifed the scripts and changed all
 sed to gsed.


 On Wed, Sep 17, 2014 at 12:52 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 The $subject error occurs because in the first time the script
 fails, and at that time it already create the database. Since you didn't
 run the clean.sh databases are already in the environment. After you run
 the setup.sh in second time you will get the $subject error.

 Thanks !


 On Wed, Sep 17, 2014 at 12:46 PM, Thushara Ranawaka 
 thusha...@wso2.com wrote:

 Hi Udara,
 Yes, We will do the needful.

 Thanks,
 Thushara.

 On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage ud...@wso2.com
 wrote:



 On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya 
 suh...@wso2.com wrote:

 Thanks Lasindu,

 Thushara and I are in the process of modifying the shell scripts
 suitable for osx.
 We contacted Nirmal, Lakmal, Waruna and Udara and had a quick
 discussion.

 After the discussion, the solution we found was to delete the
 USERSTORE_DB_SCHEMA database from mysql manually.

 As mentioned 

Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Nirmal Fernando
Please check the place where it creates this database. Seems like it's not
properly replaced.

On Wed, Sep 17, 2014 at 3:22 PM, Thushara Ranawaka thusha...@wso2.com
wrote:

 Hi Manula,
 Yes it is.


 On Wed, Sep 17, 2014 at 3:18 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 It might be a problem. Then it create the database as
 USERSTORE_DB_SCHEMA. Isn't it ?

 On Wed, Sep 17, 2014 at 3:10 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi,

 Issue was the database name.
 I did the following changes in the setup.conf and now clean.sh is
 working properly.

 # export userstore_db_schema=userstore
 export userstore_db_schema=USERSTORE_DB_SCHEMA # for mac osx

 Is there any issue or conflict in above setup?

 Thanks,
 Thushara

 On Wed, Sep 17, 2014 at 2:50 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Manula,

 FYI

 In mac when we run mysql -u $mysql_user -p$mysql_pass -e DROP
 DATABASE IF EXISTS $userstore_db_schema;  it works without any issue.
 we will debug the shell script and let you know.

 mysql show databases;

 +-+

 | Database|

 +-+

 | information_schema  |

 | USERSTORE_DB_SCHEMA |

 | mysql   |

 | performance_schema  |

 | test|

 +-+

 5 rows in set (0.00 sec)


 mysql exit

 Bye

 Thusharas-MacBook-Pro:~ thushara$ mysql -u root -ppassword -e DROP
 DATABASE IF EXISTS USERSTORE_DB_SCHEMA;

 Warning: Using a password on the command line interface can be insecure.

 Thusharas-MacBook-Pro:~ thushara$ mysql

 Welcome to the MySQL monitor.  Commands end with ; or \g.

 Your MySQL connection id is 28

 Server version: 5.6.20 MySQL Community Server (GPL)


 Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights
 reserved.


 Oracle is a registered trademark of Oracle Corporation and/or its

 affiliates. Other names may be trademarks of their respective

 owners.


 Type 'help;' or '\h' for help. Type '\c' to clear the current input
 statement.


 mysql show databases;

 ++

 | Database   |

 ++

 | information_schema |

 | mysql  |

 | performance_schema |

 | test   |

 ++

 4 rows in set (0.00 sec)



 On Wed, Sep 17, 2014 at 2:41 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi Suhan,

 Can you please debug and see the username and the password is actually
 there in the database cleanup function. You can simply use echo statement
 inside the drop database function and verify that. clean.sh script work
 perfectly in ubuntu. I'm not sure is there any impact on MAC.

 Thanks !


 On Wed, Sep 17, 2014 at 2:29 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi Manula,

 Nirmal, Thushara and I did try running clean.sh script but had no
 luck.
 Sample output is as follows.
 Note that mysql root password is 'pass'.
 Suhans-MacBook-Pro:stratos-installer suhanr$ sudo ./clean.sh -u root
 -p pass
 Please confirm that you want to remove stratos databases, servers and
 logs [y/n] y
 Stopping all java processes
 No matching processes were found
 Waiting for applications to exit
 Removing userstore database
 Warning: Using a password on the command line interface can be
 insecure.
 Removing Stratos
 Removing logs
 Suhans-MacBook-Pro:stratos-installer suhanr$

 According to the mysql server output the database is still there.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 1:38 PM, Prasanna Dangalla prasa...@wso2.com
  wrote:

 HI,

 The sed issue came to me also.  I modifed the scripts and changed
 all sed to gsed.


 On Wed, Sep 17, 2014 at 12:52 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 The $subject error occurs because in the first time the script
 fails, and at that time it already create the database. Since you 
 didn't
 run the clean.sh databases are already in the environment. After you 
 run
 the setup.sh in second time you will get the $subject error.

 Thanks !


 On Wed, Sep 17, 2014 at 12:46 PM, Thushara Ranawaka 
 thusha...@wso2.com wrote:

 Hi Udara,
 Yes, We will do the needful.

 Thanks,
 Thushara.

 On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage ud...@wso2.com
 wrote:



 On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya 
 suh...@wso2.com wrote:

 Thanks Lasindu,

 Thushara and I are in the process of modifying the shell scripts
 suitable for osx.
 We contacted Nirmal, Lakmal, 

Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Inosh Perera
congrats Sewwandi!! :)


On Wed, Sep 17, 2014 at 2:24 PM, Pamod Sylvester pa...@wso2.com wrote:

 Congratulations Sewwandi !!

 On Wed, Sep 17, 2014 at 2:21 PM, Reka Thirunavukkarasu r...@wso2.com
 wrote:

 Congratz Sewwandi..!!!

 Thanks,
 Reka

 On Wed, Sep 17, 2014 at 2:03 PM, Heshani Gamage hesh...@wso2.com wrote:

 Congratulations Sewwandi!

 Regards,
 Heshani

 On Wed, Sep 17, 2014 at 2:00 PM, Shazni Nazeer sha...@wso2.com wrote:

 Congrats!!!

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com

 On Wed, Sep 17, 2014 at 1:59 PM, Hasitha Hiranya hasit...@wso2.com
 wrote:

 Congrats Sewwandi !!!

 On Wed, Sep 17, 2014 at 1:57 PM, Ishara Karunarathna isha...@wso2.com
  wrote:

 Congratz Sewwandi .

 On Tue, Sep 16, 2014 at 11:26 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 thanks and best regards,

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

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


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




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

 email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile: +94
 718211678

 ___
 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



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




 --
 Heshani Gamage
 Software Engineer, WSO2, Inc.
 email : hesh...@wso2.com

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




 --
 Reka Thirunavukkarasu
 Senior Software Engineer,
 WSO2, Inc.:http://wso2.com,
 Mobile: +94776442007



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




 --
 *Pamod Sylvester *
  *Senior Software Engineer *
 Integration Technologies Team, WSO2 Inc.; http://wso2.com
 email: pa...@wso2.com cell: +94 77 7779495

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




-- 
Inosh Perera
Software Engineer, WSO2 Inc.
Tel: 0785293686
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Harshan Liyanage
congratz Sewwandi 

Best Regards,

Lakshitha Harshan
Software Engineer
Mobile: *+94724423048*
Email: hars...@wso2.com
Blog : http://harshanliyanage.blogspot.com/
*WSO2, Inc. :** wso2.com http://wso2.com/*
lean.enterprise.middleware.

On Wed, Sep 17, 2014 at 3:31 PM, Inosh Perera ino...@wso2.com wrote:

 congrats Sewwandi!! :)


 On Wed, Sep 17, 2014 at 2:24 PM, Pamod Sylvester pa...@wso2.com wrote:

 Congratulations Sewwandi !!

 On Wed, Sep 17, 2014 at 2:21 PM, Reka Thirunavukkarasu r...@wso2.com
 wrote:

 Congratz Sewwandi..!!!

 Thanks,
 Reka

 On Wed, Sep 17, 2014 at 2:03 PM, Heshani Gamage hesh...@wso2.com
 wrote:

 Congratulations Sewwandi!

 Regards,
 Heshani

 On Wed, Sep 17, 2014 at 2:00 PM, Shazni Nazeer sha...@wso2.com wrote:

 Congrats!!!

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com

 On Wed, Sep 17, 2014 at 1:59 PM, Hasitha Hiranya hasit...@wso2.com
 wrote:

 Congrats Sewwandi !!!

 On Wed, Sep 17, 2014 at 1:57 PM, Ishara Karunarathna 
 isha...@wso2.com wrote:

 Congratz Sewwandi .

 On Tue, Sep 16, 2014 at 11:26 PM, Ramith Jayasinghe ram...@wso2.com
  wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 thanks and best regards,

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

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


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




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

 email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,
 mobile: +94 718211678

 ___
 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



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




 --
 Heshani Gamage
 Software Engineer, WSO2, Inc.
 email : hesh...@wso2.com

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




 --
 Reka Thirunavukkarasu
 Senior Software Engineer,
 WSO2, Inc.:http://wso2.com,
 Mobile: +94776442007



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




 --
 *Pamod Sylvester *
  *Senior Software Engineer *
 Integration Technologies Team, WSO2 Inc.; http://wso2.com
 email: pa...@wso2.com cell: +94 77 7779495

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




 --
 Inosh Perera
 Software Engineer, WSO2 Inc.
 Tel: 0785293686

 ___
 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 Committers += Sewwandhi Perera

2014-09-17 Thread Dunith Dhanushka
Congrats Sewwandhi!

On Wed, Sep 17, 2014 at 3:34 PM, Harshan Liyanage hars...@wso2.com wrote:

 congratz Sewwandi 

 Best Regards,

 Lakshitha Harshan
 Software Engineer
 Mobile: *+94724423048*
 Email: hars...@wso2.com
 Blog : http://harshanliyanage.blogspot.com/
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

 On Wed, Sep 17, 2014 at 3:31 PM, Inosh Perera ino...@wso2.com wrote:

 congrats Sewwandi!! :)


 On Wed, Sep 17, 2014 at 2:24 PM, Pamod Sylvester pa...@wso2.com wrote:

 Congratulations Sewwandi !!

 On Wed, Sep 17, 2014 at 2:21 PM, Reka Thirunavukkarasu r...@wso2.com
 wrote:

 Congratz Sewwandi..!!!

 Thanks,
 Reka

 On Wed, Sep 17, 2014 at 2:03 PM, Heshani Gamage hesh...@wso2.com
 wrote:

 Congratulations Sewwandi!

 Regards,
 Heshani

 On Wed, Sep 17, 2014 at 2:00 PM, Shazni Nazeer sha...@wso2.com
 wrote:

 Congrats!!!

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com

 On Wed, Sep 17, 2014 at 1:59 PM, Hasitha Hiranya hasit...@wso2.com
 wrote:

 Congrats Sewwandi !!!

 On Wed, Sep 17, 2014 at 1:57 PM, Ishara Karunarathna 
 isha...@wso2.com wrote:

 Congratz Sewwandi .

 On Tue, Sep 16, 2014 at 11:26 PM, Ramith Jayasinghe 
 ram...@wso2.com wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 thanks and best regards,

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

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


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




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

 email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,
 mobile: +94 718211678

 ___
 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



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




 --
 Heshani Gamage
 Software Engineer, WSO2, Inc.
 email : hesh...@wso2.com

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




 --
 Reka Thirunavukkarasu
 Senior Software Engineer,
 WSO2, Inc.:http://wso2.com,
 Mobile: +94776442007



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




 --
 *Pamod Sylvester *
  *Senior Software Engineer *
 Integration Technologies Team, WSO2 Inc.; http://wso2.com
 email: pa...@wso2.com cell: +94 77 7779495

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




 --
 Inosh Perera
 Software Engineer, WSO2 Inc.
 Tel: 0785293686

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

Dunith Dhanushka,
Senior Software Engineer - BAM,
WSO2 Inc,

Mobile - +94 71 8615744
Blog - dunithd.wordpress.com http://blog.dunith.com
Twitter - @dunithd http://twitter.com/dunithd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DSS] Datasource deployer

2014-09-17 Thread Rajith Vitharana
Hi Sameera,

Attached here with is the reviewed diff file and in [1] is the relevant
pull request for the carban4-kernel

[1] - https://github.com/wso2-dev/carbon4-kernel/pull/103

Thanks

On Fri, Sep 12, 2014 at 3:04 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Sameera,

 Sure. I reviewed an earlier version of the code, then I told to do some
 changes. Will check the latest changes.

 Cheers,
 Anjana.

 On Fri, Sep 12, 2014 at 2:58 PM, Sameera Jayasoma same...@wso2.com
 wrote:

 Thanks Manoj.

 Anjana, Can you please review this pull request?

 Thanks,
 Sameera.

 On Thu, Sep 11, 2014 at 9:22 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Team,

 Hence this is a new feature this has some API additions. Please review
 this and commit.

 Thanks
 Manoj


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

 On Thu, Sep 11, 2014 at 3:17 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi,

 please find the pull request for the carbon4-kernal git repository for
 above changes in [1]

 [1] - https://github.com/wso2-dev/carbon4-kernel/pull/95

 Thanks,

 On Tue, Jul 29, 2014 at 6:12 PM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi,

 I have attached the new diff file for the data source deployer
 feature. I have added the password encryption support so the datasource 
 xml
 files can have encrypted passwords. Sample car file is also attached here
 with. Please review and commit.

 Thanks,


 On Mon, Jul 28, 2014 at 11:48 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi Jasintha,Sohani,

 Thanks for the quick response. The type defined in artifact.xml
 should be datasource/datasource for it to be picked up by the 
 datasource
 deployment handler and get deployed. Below is a sample

 ?xml version=1.0 encoding=UTF-8?
 artifact name=DataSourceA version=1.0.0
 type=datasource/datasource serverRole=ApplicationServer
 fileDataSource.xml/file
 /artifact

 Thanks,


 On Mon, Jul 28, 2014 at 11:37 AM, Sohani Weerasinghe soh...@wso2.com
  wrote:

 Hi,

 I am working on implementing the Datasource editor in DevS.

  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 Mon, Jul 28, 2014 at 11:04 AM, Jasintha Dasanayake 
 jasin...@wso2.com wrote:

 Hi

 We can provide a single page form editor in DevS to edit this config

 Thanks and regards
 /Jasintha



 On Mon, Jul 28, 2014 at 10:36 AM, Rajith Vitharana 
 raji...@wso2.com wrote:

 Hi Kasun,

 Yes these datasources only provides a read-only view. and they
 won't be saved in the registry. other than that they are same as the
 datasources which we can create using UI.

 Hi Nirmal,

 noted. I'll try out encryption of passwords and to get DevS support

 Thanks,


 On Mon, Jul 28, 2014 at 10:28 AM, Nirmal Fernando nir...@wso2.com
  wrote:

 Thanks Rajith. Seems like for this feature, we need DevS support
 (data source resource type) before deployed in a production 
 environment.
 Also, this feature should ideally support encryption of passwords.


 On Mon, Jul 28, 2014 at 10:21 AM, Rajith Vitharana 
 raji...@wso2.com wrote:

 Hi Nirmal,

 This is a Appdeployment handler which will pickup datasources
 deployed as carbon application and register them as datasources.
 since datasource xml file is already in car app this feature
 wont save it to the registry to avoid duplication.
 datasources deployed as car apps can't be edited using UI.
 Editing them should be done by redeploying the car app.

 Thanks,


 On Mon, Jul 28, 2014 at 9:49 AM, Nirmal Fernando 
 nir...@wso2.com wrote:

 Hi Rajith,

 Can you please also mention what new improvements this patch
 brings?


 On Mon, Jul 28, 2014 at 9:39 AM, Rajith Vitharana 
 raji...@wso2.com wrote:

 Hi,

 Attached here with the diff for datasource deployer feature
 for org.wso2.carbon.ndatasource.core and a sample car file. 
 please review
 and commit

 Thanks,

 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/





 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/




 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/





 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/




 --

 *Jasintha Dasanayake *

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

Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Prasanna Dangalla
Hi all,

Issue was with the sed and database name.

Fixed those in suhanr's  mac and stratos installed successfully :D .

Step followed

1. Installed homerew
ruby -e $(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)
2. Installed gnu-sed
brew install gnu-sed
3. Changed 'sed' to 'gsed' in setup.sh and openstack.sh scripts
4. Run setup.sh

No issues in clean.sh


On Wed, Sep 17, 2014 at 3:24 PM, Nirmal Fernando nir...@wso2.com wrote:

 Please check the place where it creates this database. Seems like it's not
 properly replaced.

 On Wed, Sep 17, 2014 at 3:22 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Manula,
 Yes it is.


 On Wed, Sep 17, 2014 at 3:18 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 It might be a problem. Then it create the database as
 USERSTORE_DB_SCHEMA. Isn't it ?

 On Wed, Sep 17, 2014 at 3:10 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi,

 Issue was the database name.
 I did the following changes in the setup.conf and now clean.sh is
 working properly.

 # export userstore_db_schema=userstore
 export userstore_db_schema=USERSTORE_DB_SCHEMA # for mac osx

 Is there any issue or conflict in above setup?

 Thanks,
 Thushara

 On Wed, Sep 17, 2014 at 2:50 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Manula,

 FYI

 In mac when we run mysql -u $mysql_user -p$mysql_pass -e DROP
 DATABASE IF EXISTS $userstore_db_schema;  it works without any
 issue. we will debug the shell script and let you know.

 mysql show databases;

 +-+

 | Database|

 +-+

 | information_schema  |

 | USERSTORE_DB_SCHEMA |

 | mysql   |

 | performance_schema  |

 | test|

 +-+

 5 rows in set (0.00 sec)


 mysql exit

 Bye

 Thusharas-MacBook-Pro:~ thushara$ mysql -u root -ppassword -e DROP
 DATABASE IF EXISTS USERSTORE_DB_SCHEMA;

 Warning: Using a password on the command line interface can be
 insecure.

 Thusharas-MacBook-Pro:~ thushara$ mysql

 Welcome to the MySQL monitor.  Commands end with ; or \g.

 Your MySQL connection id is 28

 Server version: 5.6.20 MySQL Community Server (GPL)


 Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights
 reserved.


 Oracle is a registered trademark of Oracle Corporation and/or its

 affiliates. Other names may be trademarks of their respective

 owners.


 Type 'help;' or '\h' for help. Type '\c' to clear the current input
 statement.


 mysql show databases;

 ++

 | Database   |

 ++

 | information_schema |

 | mysql  |

 | performance_schema |

 | test   |

 ++

 4 rows in set (0.00 sec)



 On Wed, Sep 17, 2014 at 2:41 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi Suhan,

 Can you please debug and see the username and the password is
 actually there in the database cleanup function. You can simply use echo
 statement inside the drop database function and verify that. clean.sh
 script work perfectly in ubuntu. I'm not sure is there any impact on MAC.

 Thanks !


 On Wed, Sep 17, 2014 at 2:29 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi Manula,

 Nirmal, Thushara and I did try running clean.sh script but had no
 luck.
 Sample output is as follows.
 Note that mysql root password is 'pass'.
 Suhans-MacBook-Pro:stratos-installer suhanr$ sudo ./clean.sh -u root
 -p pass
 Please confirm that you want to remove stratos databases, servers
 and logs [y/n] y
 Stopping all java processes
 No matching processes were found
 Waiting for applications to exit
 Removing userstore database
 Warning: Using a password on the command line interface can be
 insecure.
 Removing Stratos
 Removing logs
 Suhans-MacBook-Pro:stratos-installer suhanr$

 According to the mysql server output the database is still there.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 1:38 PM, Prasanna Dangalla 
 prasa...@wso2.com wrote:

 HI,

 The sed issue came to me also.  I modifed the scripts and changed
 all sed to gsed.


 On Wed, Sep 17, 2014 at 12:52 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 The $subject error occurs because in the first time the script
 fails, and at that time it already create the database. Since you 
 didn't
 run the clean.sh databases are already in the environment. After you 
 run
 the setup.sh in second time 

Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Suhan Dharmasuriya
Hi all,

Adding to Prasanna's comment.

Following issue,
Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
chown: suhanr: illegal group name
was solved by,
1. Adding a user group as suhanr in mac osx (System Preferences - Users 
Groups (Unlock to change) - new Group as 'suhanr')
2.  sudo chown -R suhanr:suhanr *

Thanks,
Suhan

On Wed, Sep 17, 2014 at 4:39 PM, Prasanna Dangalla prasa...@wso2.com
wrote:

 Hi all,

 Issue was with the sed and database name.

 Fixed those in suhanr's  mac and stratos installed successfully :D .

 Step followed

 1. Installed homerew
 ruby -e $(curl -fsSL
 https://raw.githubusercontent.com/Homebrew/install/master/install)
 2. Installed gnu-sed
 brew install gnu-sed
 3. Changed 'sed' to 'gsed' in setup.sh and openstack.sh scripts
 4. Run setup.sh

 No issues in clean.sh


 On Wed, Sep 17, 2014 at 3:24 PM, Nirmal Fernando nir...@wso2.com wrote:

 Please check the place where it creates this database. Seems like it's
 not properly replaced.

 On Wed, Sep 17, 2014 at 3:22 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Manula,
 Yes it is.


 On Wed, Sep 17, 2014 at 3:18 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 It might be a problem. Then it create the database as
 USERSTORE_DB_SCHEMA. Isn't it ?

 On Wed, Sep 17, 2014 at 3:10 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi,

 Issue was the database name.
 I did the following changes in the setup.conf and now clean.sh is
 working properly.

 # export userstore_db_schema=userstore
 export userstore_db_schema=USERSTORE_DB_SCHEMA # for mac osx

 Is there any issue or conflict in above setup?

 Thanks,
 Thushara

 On Wed, Sep 17, 2014 at 2:50 PM, Thushara Ranawaka thusha...@wso2.com
  wrote:

 Hi Manula,

 FYI

 In mac when we run mysql -u $mysql_user -p$mysql_pass -e DROP
 DATABASE IF EXISTS $userstore_db_schema;  it works without any
 issue. we will debug the shell script and let you know.

 mysql show databases;

 +-+

 | Database|

 +-+

 | information_schema  |

 | USERSTORE_DB_SCHEMA |

 | mysql   |

 | performance_schema  |

 | test|

 +-+

 5 rows in set (0.00 sec)


 mysql exit

 Bye

 Thusharas-MacBook-Pro:~ thushara$ mysql -u root -ppassword -e DROP
 DATABASE IF EXISTS USERSTORE_DB_SCHEMA;

 Warning: Using a password on the command line interface can be
 insecure.

 Thusharas-MacBook-Pro:~ thushara$ mysql

 Welcome to the MySQL monitor.  Commands end with ; or \g.

 Your MySQL connection id is 28

 Server version: 5.6.20 MySQL Community Server (GPL)


 Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights
 reserved.


 Oracle is a registered trademark of Oracle Corporation and/or its

 affiliates. Other names may be trademarks of their respective

 owners.


 Type 'help;' or '\h' for help. Type '\c' to clear the current input
 statement.


 mysql show databases;

 ++

 | Database   |

 ++

 | information_schema |

 | mysql  |

 | performance_schema |

 | test   |

 ++

 4 rows in set (0.00 sec)



 On Wed, Sep 17, 2014 at 2:41 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi Suhan,

 Can you please debug and see the username and the password is
 actually there in the database cleanup function. You can simply use echo
 statement inside the drop database function and verify that. clean.sh
 script work perfectly in ubuntu. I'm not sure is there any impact on 
 MAC.

 Thanks !


 On Wed, Sep 17, 2014 at 2:29 PM, Suhan Dharmasuriya suh...@wso2.com
  wrote:

 Hi Manula,

 Nirmal, Thushara and I did try running clean.sh script but had no
 luck.
 Sample output is as follows.
 Note that mysql root password is 'pass'.
 Suhans-MacBook-Pro:stratos-installer suhanr$ sudo ./clean.sh -u
 root -p pass
 Please confirm that you want to remove stratos databases, servers
 and logs [y/n] y
 Stopping all java processes
 No matching processes were found
 Waiting for applications to exit
 Removing userstore database
 Warning: Using a password on the command line interface can be
 insecure.
 Removing Stratos
 Removing logs
 Suhans-MacBook-Pro:stratos-installer suhanr$

 According to the mysql server output the database is still there.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 1:38 PM, Prasanna Dangalla 
 prasa...@wso2.com 

Re: [Dev] Maven build failure when generating service stub for a WSO2 Carbon Component

2014-09-17 Thread Prasanna Dangalla
Hi Vimalathan,

Add the following dependency and check whether its working.

dependency
groupIdorg.apache.axis2.wso2/groupId
artifactIdaxis2-client/artifactId
version1.6.1.wso2v10/version
/dependency

Working sample pom file attached.

Thanks

On Wed, Sep 17, 2014 at 12:29 PM, Amal Gunatilake am...@wso2.com wrote:

 Hi Vimalathan,

 The following lines doesn't correlate with your m2 repository. Please
 verify the paths you have given are correct and the corresponding jars
 exists.

 pathelement 
 location=/Users/rajeevanv/.m2/repository/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar/\
 pathelement 
 location=/Users/rajeevanv/.m2/repository/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar
  /\
 pathelement 
 location=/Users/rajeevanv/.m2/repository/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar
  /\



 Thank you   Best regards,

 *Amal Gunatilake*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 On Wed, Sep 17, 2014 at 12:18 PM, Aruna Karunarathna ar...@wso2.com
 wrote:

 Hi Vimalathan,

 Can you try adding the wso2 repo to your pom.xml file.

 Regards,
 Aruna

 On Tue, Sep 16, 2014 at 10:56 AM, Vimalanathan Rajeevan 
 rajeev...@wso2.com wrote:

 Hi,

 I got a maven build failure when trying to create a service stub after
 successfully creating server component and generating .wsdl file. I was
 following a tutorial [1].
 [1]
 http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/

 Please find  the attached org.wso2.carbon.student.mgt.stub → pom.xml
 file is used. I am getting the following error when building 
 org.wso2.carbon.student.mgt.stub
 module using maven.

 *Failed to execute goal on project org.wso2.carbon.student.mgt.stub:
 Could not resolve dependencies for project
 org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0:*

 *The following artifacts could not be resolved:
 org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10,
 org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4,
 wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4: *

 *Failure to find org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 in
 http://repo.maven.apache.org/maven2 http://repo.maven.apache.org/maven2
 was cached in the local repository, resolution will not be reattempted
 until the update interval of central has elapsed or updates are forced*

 It seems like problem with maven dependency versions. Please help me to
 get this resolved.

 Best Regards,
 V.Rajeevan
 Software Engineer,
 WSO2 Inc. :http://wso2.com

 Mobile : +94 773090875
 Email : rajeev...@wso2.com

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




 --

 *Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


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



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




-- 
Prasanna Dangalla
Software Engineer, WSO2, Inc.; http://wso2.com/
lean.enterprise.middleware

cell: +94 777 55 80 30 | +94 718 11 27 51
twitter: @prasa77
?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd;
parent
artifactIdstudent-manager-components/artifactId
groupIdorg.wso2.carbon/groupId
version4.2.0/version
/parent
modelVersion4.0.0/modelVersion

artifactIdorg.wso2.carbon.student.mgt.stub/artifactId

packagingbundle/packaging
nameWSO2 Carbon - Student Manager Stub/name

dependencies
dependency
groupIdorg.apache.axis2.wso2/groupId
artifactIdaxis2/artifactId
version1.6.1.wso2v10/version
/dependency
dependency
groupIdorg.apache.ws.commons.axiom.wso2/groupId
artifactIdaxiom/artifactId
version1.2.11.wso2v4/version
/dependency
dependency
groupIdwsdl4j.wso2/groupId
artifactIdwsdl4j/artifactId
version1.6.2.wso2v4/version
/dependency
dependency
groupIdorg.apache.axis2.wso2/groupId
artifactIdaxis2-client/artifactId
version1.6.1.wso2v10/version
/dependency
/dependencies

build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
executions
execution
  

[Dev] Issue when creating an API in APIM with production endpoint as https to EMM

2014-09-17 Thread Niranjan Karunanandham
Hi,

I have created an endpoint in EMM for which I want to create an API in the
APIM. I have generated a SSL certificate and import it to
both client-truststore.jks and wso2carbon.jks in the APIM and EMM.
At the time of creating the API, in theProduction Endpoint, if I give it
has https://10.100.5.18:9443 and click on Test button, I get message
Invalid, but if I give it as http with port as 9763, it says that it is
valid.
How do I configure an API with the production endpoint which accesses the
EMM endpoint using https connection?

Regards,
Nira

-- 

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


[Dev] [Greg] Error when starting the server in wso2greg-5.0.0-SNAPSHOT

2014-09-17 Thread Prasanna Dangalla
Hi all,

I build the wso2greg-5.0.0-SNAPSHOT using source in git. (
https://github.com/wso2-dev/product-greg). Build was successful. But the
following error occurs when running the wso2server.sh.

I added the this (
-javaagent:$CARBON_HOME/repository/components/plugins/jamm_0.2.5.wso2v2.jar
\ ) line to wso2server.sh too, but the error still remains.


[2014-09-17 13:51:50,679] ERROR {org.apache.cassandra.cql3.QueryProcessor}
-  Unable to initialize MemoryMeter (jamm not specified as javaagent).
This means Cassandra will be unable to measure object sizes accurately and
may consequently OOM.
[2014-09-17 13:51:50,689] ERROR
{org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager}
-  Could not initialize the DataSource:bpsds
javax.naming.ServiceUnavailableException [Root exception is
java.rmi.ConnectException: Connection refused to host: localhost; nested
exception is:
java.net.ConnectException: Connection refused]
at
com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
at
com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:107)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at
org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.lookupInJNDI(BasicDataSourceManager.java:134)
at
org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.initExternalDb(BasicDataSourceManager.java:112)
at
org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.initDataSource(BasicDataSourceManager.java:107)
at
org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.startDataSource(BasicDataSourceManager.java:100)
at
org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.start(BasicDataSourceManager.java:67)
at
org.wso2.carbon.attachment.mgt.server.AttachmentServer.initDataSourceManager(AttachmentServer.java:90)
at
org.wso2.carbon.attachment.mgt.server.AttachmentServer.init(AttachmentServer.java:59)
at
org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.initAttachmentServer(AttachmentServiceComponent.java:90)
at
org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.activate(AttachmentServiceComponent.java:71)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at
org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
at
org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.registerServices(DataSourceServiceComponent.java:125)
at
org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.initSuperTenantUserDataSources(DataSourceServiceComponent.java:220)
at
org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.checkInitTenantUserDataSources(DataSourceServiceComponent.java:205)
at

Re: [Dev] [DSS] Datasource deployer

2014-09-17 Thread Anjana Fernando
And, yeah, as Rajith mentioned, I've reviewed the changes in the last
version.

Cheers,
Anjana.

On Wed, Sep 17, 2014 at 3:51 PM, Rajith Vitharana raji...@wso2.com wrote:

 Hi Sameera,

 Attached here with is the reviewed diff file and in [1] is the relevant
 pull request for the carban4-kernel

 [1] - https://github.com/wso2-dev/carbon4-kernel/pull/103

 Thanks

 On Fri, Sep 12, 2014 at 3:04 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Sameera,

 Sure. I reviewed an earlier version of the code, then I told to do some
 changes. Will check the latest changes.

 Cheers,
 Anjana.

 On Fri, Sep 12, 2014 at 2:58 PM, Sameera Jayasoma same...@wso2.com
 wrote:

 Thanks Manoj.

 Anjana, Can you please review this pull request?

 Thanks,
 Sameera.

 On Thu, Sep 11, 2014 at 9:22 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi Team,

 Hence this is a new feature this has some API additions. Please review
 this and commit.

 Thanks
 Manoj


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

 On Thu, Sep 11, 2014 at 3:17 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi,

 please find the pull request for the carbon4-kernal git repository for
 above changes in [1]

 [1] - https://github.com/wso2-dev/carbon4-kernel/pull/95

 Thanks,

 On Tue, Jul 29, 2014 at 6:12 PM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi,

 I have attached the new diff file for the data source deployer
 feature. I have added the password encryption support so the datasource 
 xml
 files can have encrypted passwords. Sample car file is also attached here
 with. Please review and commit.

 Thanks,


 On Mon, Jul 28, 2014 at 11:48 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi Jasintha,Sohani,

 Thanks for the quick response. The type defined in artifact.xml
 should be datasource/datasource for it to be picked up by the 
 datasource
 deployment handler and get deployed. Below is a sample

 ?xml version=1.0 encoding=UTF-8?
 artifact name=DataSourceA version=1.0.0
 type=datasource/datasource serverRole=ApplicationServer
 fileDataSource.xml/file
 /artifact

 Thanks,


 On Mon, Jul 28, 2014 at 11:37 AM, Sohani Weerasinghe 
 soh...@wso2.com wrote:

 Hi,

 I am working on implementing the Datasource editor in DevS.

  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 Mon, Jul 28, 2014 at 11:04 AM, Jasintha Dasanayake 
 jasin...@wso2.com wrote:

 Hi

 We can provide a single page form editor in DevS to edit this
 config

 Thanks and regards
 /Jasintha



 On Mon, Jul 28, 2014 at 10:36 AM, Rajith Vitharana 
 raji...@wso2.com wrote:

 Hi Kasun,

 Yes these datasources only provides a read-only view. and they
 won't be saved in the registry. other than that they are same as the
 datasources which we can create using UI.

 Hi Nirmal,

 noted. I'll try out encryption of passwords and to get DevS
 support

 Thanks,


 On Mon, Jul 28, 2014 at 10:28 AM, Nirmal Fernando 
 nir...@wso2.com wrote:

 Thanks Rajith. Seems like for this feature, we need DevS support
 (data source resource type) before deployed in a production 
 environment.
 Also, this feature should ideally support encryption of passwords.


 On Mon, Jul 28, 2014 at 10:21 AM, Rajith Vitharana 
 raji...@wso2.com wrote:

 Hi Nirmal,

 This is a Appdeployment handler which will pickup datasources
 deployed as carbon application and register them as datasources.
 since datasource xml file is already in car app this feature
 wont save it to the registry to avoid duplication.
 datasources deployed as car apps can't be edited using UI.
 Editing them should be done by redeploying the car app.

 Thanks,


 On Mon, Jul 28, 2014 at 9:49 AM, Nirmal Fernando 
 nir...@wso2.com wrote:

 Hi Rajith,

 Can you please also mention what new improvements this patch
 brings?


 On Mon, Jul 28, 2014 at 9:39 AM, Rajith Vitharana 
 raji...@wso2.com wrote:

 Hi,

 Attached here with the diff for datasource deployer feature
 for org.wso2.carbon.ndatasource.core and a sample car file. 
 please review
 and commit

 Thanks,

 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/





 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/




 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/





 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com

Re: [Dev] Maven build failure when generating service stub for a WSO2 Carbon Component

2014-09-17 Thread Vimalanathan Rajeevan
Hi All,

Thank you very much for your replies. I added the maven dependency and
repository information and it worked fine. Here is the pom.xml I updated to
get it worked.

?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd;
parent
artifactIdstudent-manager-components/artifactId
groupIdorg.wso2.carbon/groupId
version4.2.0/version
/parent
modelVersion4.0.0/modelVersion

artifactIdorg.wso2.carbon.student.mgt.stub/artifactId

packagingbundle/packaging
nameWSO2 Carbon - Student Manager Stub/name

dependencies
dependency
groupIdorg.apache.axis2.wso2/groupId
artifactIdaxis2/artifactId
version1.6.1.wso2v10/version
/dependency
dependency
groupIdorg.apache.axis2.wso2/groupId
artifactIdaxis2-client/artifactId
version1.6.1.wso2v10/version
/dependency
dependency
groupIdorg.apache.ws.commons.axiom.wso2/groupId
artifactIdaxiom/artifactId
version1.2.11.wso2v4/version
/dependency
dependency
groupIdwsdl4j.wso2/groupId
artifactIdwsdl4j/artifactId
version1.6.2.wso2v4/version
/dependency
/dependencies

repositories
repository
idwso2-nexus/id
nameWSO2 internal Repository/name
urlhttp://maven.wso2.org/nexus/content/groups/wso2-public/
/url
releases
enabledtrue/enabled
updatePolicydaily/updatePolicy
checksumPolicyignore/checksumPolicy
/releases
/repository
/repositories

build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
executions
execution
idsource-code-generation/id
phaseprocess-resources/phase
goals
goalrun/goal
/goals
configuration
tasks
path id=wsdl2java.classpath
pathelement
location=${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar/
pathelement
location=${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar
/
pathelement
location=${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar
/
/path
java
classname=org.apache.axis2.wsdl.WSDL2Java fork=true
classpath refid=wsdl2java.classpath
/
arg line=-uri
src/main/resources/StudentManager.wsdl -u -uw
 -o target/generated-code -p
org.wso2.carbon.student.mgt.stub/
/java
/tasks
/configuration
/execution
/executions
/plugin

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdbuild-helper-maven-plugin/artifactId
executions
execution
idadd-source/id
phasegenerate-sources/phase
goals
goaladd-source/goal
/goals
configuration
sources
sourcetarget/generated-code/src/source
/sources
/configuration
/execution
/executions
/plugin

plugin
groupIdorg.apache.felix/groupId
artifactIdmaven-bundle-plugin/artifactId
extensionstrue/extensions
configuration
instructions

Bundle-SymbolicName${project.artifactId}/Bundle-SymbolicName
Bundle-Name${project.artifactId}/Bundle-Name
Private-Package
/Private-Package
Export-Package
org.wso2.carbon.student.mgt.*
/Export-Package
Import-Package
!org.wso2.carbon.student.mgt.*
/Import-Package
DynamicImport-Package*/DynamicImport-Package
 

[Dev] Please merge AS Integration test commit#29

2014-09-17 Thread Nuwan Wimalasekara
Hi AS Team,
Please merge the pull request https://github.com/wso2-dev/product-as/pull/29
This will integrate the tests-ui module with the existing ui test classes
on old test module

Thanks,
Nuwanw

-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Greg] Error when starting the server in wso2greg-5.0.0-SNAPSHOT

2014-09-17 Thread Denuwanthi De Silva
Hi,

The jira[1] mentions the steps to resolve the above issue.

steps:
1. add org.github.jamm,\ in
$CARBON_PRODUCT/repository/conf/etc/launch.ini

2. add following javaagent command in server startup script (wso2server.sh)
-javaagent:$CARBON_HOME/repository/components/plugins/jamm_0.2.5.wso2v2.jar
\


[1]https://wso2.org/jira/browse/REGISTRY-2224

Thanks.

On Wed, Sep 17, 2014 at 5:05 PM, Prasanna Dangalla prasa...@wso2.com
wrote:

 Hi all,

 I build the wso2greg-5.0.0-SNAPSHOT using source in git. (
 https://github.com/wso2-dev/product-greg). Build was successful. But the
 following error occurs when running the wso2server.sh.

 I added the this (
 -javaagent:$CARBON_HOME/repository/components/plugins/jamm_0.2.5.wso2v2.jar
 \ ) line to wso2server.sh too, but the error still remains.


 [2014-09-17 13:51:50,679] ERROR {org.apache.cassandra.cql3.QueryProcessor}
 -  Unable to initialize MemoryMeter (jamm not specified as javaagent).
 This means Cassandra will be unable to measure object sizes accurately and
 may consequently OOM.
 [2014-09-17 13:51:50,689] ERROR
 {org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager}
 -  Could not initialize the DataSource:bpsds
 javax.naming.ServiceUnavailableException [Root exception is
 java.rmi.ConnectException: Connection refused to host: localhost; nested
 exception is:
 java.net.ConnectException: Connection refused]
 at
 com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
 at
 com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:107)
 at javax.naming.InitialContext.lookup(InitialContext.java:392)
 at
 org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.lookupInJNDI(BasicDataSourceManager.java:134)
 at
 org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.initExternalDb(BasicDataSourceManager.java:112)
 at
 org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.initDataSource(BasicDataSourceManager.java:107)
 at
 org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.startDataSource(BasicDataSourceManager.java:100)
 at
 org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.start(BasicDataSourceManager.java:67)
 at
 org.wso2.carbon.attachment.mgt.server.AttachmentServer.initDataSourceManager(AttachmentServer.java:90)
 at
 org.wso2.carbon.attachment.mgt.server.AttachmentServer.init(AttachmentServer.java:59)
 at
 org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.initAttachmentServer(AttachmentServiceComponent.java:90)
 at
 org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.activate(AttachmentServiceComponent.java:71)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
 at
 

Re: [Dev] {chunk 13 packs}-14-09-2014/

2014-09-17 Thread Evanthika Amarasiri
Hi Ratha,

The OOM issue we noticed was due to the fact there was not enough memory in
the cloud instance that these servers were running on. We will move the
servers to an instance with more memory and see whether we see the same.
You can ignore this issue for the moment.

Regards,
Evanthika

On Tue, Sep 16, 2014 at 6:51 PM, Evanthika Amarasiri evanth...@wso2.com
wrote:

 Hi Ratha,

 We are getting an OOM error and key manager/gatway nodes crash when
 regenerating tokens and doing some other operations. See [1]. We are
 blocked by this issue since we cannot continue testing on our clustered
 setup.  Also, we see some other issues with the store as well. See [2]. How
 soon can we get a new pack with fixes for these issues?

 [1] - https://wso2.org/jira/browse/APIMANAGER-2856
 [2] - https://wso2.org/jira/browse/APIMANAGER-2858

 Regards,
 Evanthika Amarasiri
 Senior Technical Lead - Quality Assurance
 Mobile: +94773125935

 wso2.com lean.enterprise.middleware

 On Mon, Sep 15, 2014 at 11:08 AM, Amila De Silva ami...@wso2.com wrote:

 Hi,
 Added the config element mentioned in [1] to specify a custom
 JWTGenerator. However, the default implementation will be picked if this
 change is absent.


 [1] https://wso2.org/jira/browse/APIMANAGER-2711

 On Mon, Sep 15, 2014 at 9:18 AM, Pavithra Madurangi pavit...@wso2.com
 wrote:

 Hi Ratha,

 In the latest build, observed that configuration for self sign up to the
 store is missing from api-manager.xml (below config). Any particular reason
 for that?

 !--
 Use this configuration to control the self-sign-up capability in
 API store.
 --
 SelfSignUp
 !--
 Enable or disable the self-sign-up feature.
 --
 Enabledtrue/Enabled

 !--
 Self signed up users should be associated with a suitable
 subscriber
 role for them to be able to access the API store portal.
 This required
 parameter specifies which role should be used for that
 purpose. The role
 specified here must have the
 '/permission/admin/manage/api/subscribe'
 permission.
 --
 SubscriberRoleNamesubscriber/SubscriberRoleName
 /SelfSignUp

 On Mon, Sep 15, 2014 at 7:05 AM, Evanthika Amarasiri evanth...@wso2.com
  wrote:

 Meaning, have you introduced new configurations since the  last
 release? We are planning to replace the packs and copy the conf folder in
 the setup we have done. But last time we noticed you have introduced two
 new parameters to registry.xml  api manager.xmls.
 Hence the question.


 On Monday, September 15, 2014, Vijayaratha Vijayasingam 
 rat...@wso2.com wrote:

 What type of config change you mean?

 BTW, p2 repo is here[1] (not in the same folder since i got some svn
 conflicts).
 @Pavithra, i will check the p2 issue you reported..

 [1]
 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/14_09_2014_p2/

 Thanks

 On 14 September 2014 22:37, Evanthika Amarasiri evanth...@wso2.com
 wrote:

 Hi Ratha,

 Have you guys done any configuration changes since the day you
 released 4th September packs?

 Regards,
 Evanthika

 On Sun, Sep 14, 2014 at 10:21 PM, Vijayaratha Vijayasingam 
 rat...@wso2.com wrote:

 Please find here;
 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/14-09-2014/

 Will commit p2 repo soon..

 Thanks..

 --
 -Ratha





 --
 -Ratha



 --
 Regards,
 Evanthika Amarasiri
 Senior Technical Lead - Quality Assurance
 Mobile: +94773125935

 wso2.com lean.enterprise.middleware


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




 --
 *Pavithra Madurangi*
 Associate Technical Lead - QA.
 WSO2 Inc.: http://wso2.com/
 Mobile: +94777207357 / +94773814110

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




 --
 *Amila De Silva*

 WSO2 Inc.
 mobile :(+94) 775119302


 ___
 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] [Greg] Error when starting the server in wso2greg-5.0.0-SNAPSHOT

2014-09-17 Thread Prasanna Dangalla
Hi Denuwanthi,

Thanks for the reply. First[1] error was fixed from that. but the second
one[2] remains.

[1] ERROR {org.apache.cassandra.cql3.
QueryProcessor} -  Unable to initialize MemoryMeter (jamm not specified as
javaagent).  This means Cassandra will be unable to measure object sizes
accurately and may consequently OOM.

[2] ERROR {org.wso2.carbon.attachment.
mgt.core.datasource.impl.BasicDataSourceManager} -  Could not initialize
the DataSource:bpsds

On Wed, Sep 17, 2014 at 5:27 PM, Denuwanthi De Silva denuwan...@wso2.com
wrote:

 Hi,

 The jira[1] mentions the steps to resolve the above issue.

 steps:
 1. add org.github.jamm,\ in
 $CARBON_PRODUCT/repository/conf/etc/launch.ini

 2. add following javaagent command in server startup script (wso2server.sh)
 -javaagent:$CARBON_HOME/repository/components/plugins/jamm_0.2.5.wso2v2.jar
 \


 [1]https://wso2.org/jira/browse/REGISTRY-2224

 Thanks.

 On Wed, Sep 17, 2014 at 5:05 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 Hi all,

 I build the wso2greg-5.0.0-SNAPSHOT using source in git. (
 https://github.com/wso2-dev/product-greg). Build was successful. But the
 following error occurs when running the wso2server.sh.

 I added the this (
 -javaagent:$CARBON_HOME/repository/components/plugins/jamm_0.2.5.wso2v2.jar
 \ ) line to wso2server.sh too, but the error still remains.


 [2014-09-17 13:51:50,679] ERROR
 {org.apache.cassandra.cql3.QueryProcessor} -  Unable to initialize
 MemoryMeter (jamm not specified as javaagent).  This means Cassandra will
 be unable to measure object sizes accurately and may consequently OOM.
 [2014-09-17 13:51:50,689] ERROR
 {org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager}
 -  Could not initialize the DataSource:bpsds
 javax.naming.ServiceUnavailableException [Root exception is
 java.rmi.ConnectException: Connection refused to host: localhost; nested
 exception is:
 java.net.ConnectException: Connection refused]
 at
 com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
 at
 com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:107)
 at javax.naming.InitialContext.lookup(InitialContext.java:392)
 at
 org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.lookupInJNDI(BasicDataSourceManager.java:134)
 at
 org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.initExternalDb(BasicDataSourceManager.java:112)
 at
 org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.initDataSource(BasicDataSourceManager.java:107)
 at
 org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.startDataSource(BasicDataSourceManager.java:100)
 at
 org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.start(BasicDataSourceManager.java:67)
 at
 org.wso2.carbon.attachment.mgt.server.AttachmentServer.initDataSourceManager(AttachmentServer.java:90)
 at
 org.wso2.carbon.attachment.mgt.server.AttachmentServer.init(AttachmentServer.java:59)
 at
 org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.initAttachmentServer(AttachmentServiceComponent.java:90)
 at
 org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.activate(AttachmentServiceComponent.java:71)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 

Re: [Dev] Clarification on IS sample is needed - Configuring SAML2 SSO

2014-09-17 Thread Asok Perera
Thank you Prasad..
This is what I needed to get clarified

*Asok Aravinda Perera*
Software Engineer
WSO2, Inc.;http://wso2.com/
http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ
lean.enterprise.middleware

Mobile: +94722241032

On Tue, Sep 16, 2014 at 2:08 AM, Prasad Tissera pras...@wso2.com wrote:

 When a service provider created in IS, a role is created for that service
 provider. If you want only user1 to access the app1 you can assign the role
 only to the user1, and remove the role from super admin role list.



 On Mon, Sep 15, 2014 at 4:34 AM, Asok Perera as...@wso2.com wrote:

 Thank you Pushpalanka !
 But there is another clarification needed.
 What if a user needs to isolate two web apps ? Meaning, what if there
 'cannot' be a super user sort of a logging (admin credentials) for two web
 apps which is secured through a single IS ?

 BR



 *Asok Aravinda Perera*
 Software Engineer
 WSO2, Inc.;http://wso2.com/
 http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ
 lean.enterprise.middleware

 Mobile: +94722241032

 On Fri, Sep 12, 2014 at 10:15 AM, Pushpalanka Jayawardhana 
 la...@wso2.com wrote:

 Hi Asok,

 This comes with the behavior of SSO.
 When you register travelocity.com as a service provider in IS and point
 travelocity.com webapp to use IS as the identity provider,
 authentication process of webapp is totally handled by IS.
 Even the page you enter username/password is submitted by IS. Webapp
 does not have any idea on the valid user name and password of the user
 trying to login as all these details are captured and authenticated at IS
 side. IS then just let the webapp knows whether the user is authenticated
 or not.

 This helps to keep the user passwords in a secured centralized place
 than saving it in each webapp and helps to provide a better user experience
 by not asking users to type username/password several times(If you are
 logged into IS, you are automatically logged into travelocity.com as
 well.).

 Therefore any other user in IS also can login to travelocity.com webapp
 with his/her credentials.
 This article[1] will provide more insight.
 Hope this helps.

 [1] -
 http://wso2.com/library/articles/2010/07/saml2-web-browser-based-sso-wso2-identity-server/

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


 On Fri, Sep 12, 2014 at 9:54 AM, Asok Perera as...@wso2.com wrote:

 Hi,

 This is a question occurred to me while working on 'Configuring SAML2
 SSO' sample in Identity server. (link below)
 https://docs.wso2.com/display/IS500/Configuring+SAML2+SSO

 According to that sample, a user can log into service provider's
 site/portal with Identity server's admin credentials. In this case, one can
 use admin/admin username/password to log into travelocity.com.

 The question is, can I assume that IS admin is treated as a super user
 who can log into all the service providers' web apps / services ?
 If not, can somebody explain me why we can use admin credentials in the
 above sample ?

 BR

 *Asok Aravinda Perera*
 Software Engineer
 WSO2, Inc.;http://wso2.com/
 http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ
 lean.enterprise.middleware

 Mobile: +94722241032

 ___
 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




 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444

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


[Dev] Problem with binding BAM data receiver to loopback address(localhost).

2014-09-17 Thread Dunith Dhanushka
Hi folks,

Currently we have a problem with binding BAM data receiver to local
loopback address(localhost/127.0.0.1). In fact, databridge.receiver binds
to localhost without any issues. Problem arises when the databridge.agent
tries to connect to data receiver.

Given below is the code used by data publishers to connect to the receiver
(See
org.wso2.carbon.databridge.agent.thrift.internal.pool.client.general.ClientPoolFactory
)

TTransport receiverTransport = null;
try {
receiverTransport = new
TSocket(HostAddressFinder.findAddress(hostNameAndPort[0]),

 Integer.parseInt(hostNameAndPort[1]));
} catch (SocketException ignored) {
//already checked
}

Problem with this approach is HostAddressFinder.findAddress returns a
different IP when hostNameAndPort[0] is set to localhost. In other cases
it would work fine.

According to current HostAddressFinder.findAddress implementation, it
eleminates localhost or 127.0.0.1 and returns an address of a another
NIC. Since thrift receiver is not bound to that particular interface, an
error will be thrown at the client side.

public static String findAddress(String hostname) throws SocketException {
if (hostname.trim().equals(localhost) ||
hostname.trim().equals(127.0.0.1) || hostname.trim().equals(::1)) {
EnumerationNetworkInterface ifaces =
NetworkInterface.getNetworkInterfaces();
while (ifaces.hasMoreElements()) {
NetworkInterface iface = ifaces.nextElement();
EnumerationInetAddress addresses =
iface.getInetAddresses();

while (addresses.hasMoreElements()) {
InetAddress addr = addresses.nextElement();
if (addr instanceof Inet4Address 
!addr.isLoopbackAddress()) {
return addr.getHostAddress();
}
}
}
return 127.0.0.1;
} else {
return hostname;
}
}


Why we purposely eliminate loopback address in the above method?

There'll be a probelm when a server  got multiple network interfaces and
customer wants to bind the receiver to loopback address. According to above
implementation, that is impossible. As a solution, is it safe to remove
this loopback address elimination and accept whatever the value passed as
the hostName?

Please mention your concerns.

Regards,

Dunith Dhanushka,
Senior Software Engineer - BAM,
WSO2 Inc,

Mobile - +94 71 8615744
Blog - dunithd.wordpress.com http://blog.dunith.com
Twitter - @dunithd http://twitter.com/dunithd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Does AS (or Carbon Server) make sure to properly start it self, before join with the cluster ?

2014-09-17 Thread Asanka Vithanage
Hi All,

I am currently testing on a ELB 211 fronted 1 manager/2 worker AS 521
cluster. Here when i am following below steps, i am getting below noted
errors on ELB stack traces.


*Steps:*

Setup a 1 manager/2 worker node ELB fronted setup

Invoke SimpleStockQuate service deployed on AS 521(http path) continuously
using jmeter script(with 1000 jmeter threads and 10 seconds ramp-up period)

Down the worker node using ./wso2server.sh stop command

Startup the downed worker node and check the ELB logs

*Issue:*

Intermittently observed following issue on ELB stack trace, but AS stack
traces does not show any thing except member left/member join messages


Note: I have tried above steps nearly 10 times and out of them 3 times
observed below error.[Attached ELB log for further reference]

TID: [0] [ELB] [2014-09-17 11:13:55,107]  INFO
{org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent} -
 Member left [aa7c330e-eb71-488c-a905-79c3a07ba671]: /10.0.0.85:4300
{org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent}

TID: [0] [ELB] [2014-09-17 11:13:55,122]  INFO
{org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent} -
 Member left [aa7c330e-eb71-488c-a905-79c3a07ba671]: /10.0.0.85:4300
{org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent}

TID: [0] [ELB] [2014-09-17 11:16:12,293]  INFO
{org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent} -
 Member joined [cd2f1123-f734-456f-bc3f-7ae03ec0142a]: /10.0.0.85:4300
{org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent}

TID: [0] [ELB] [2014-09-17 11:16:12,297]  INFO
{org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent} -
 Member joined [cd2f1123-f734-456f-bc3f-7ae03ec0142a]: /10.0.0.85:4300
{org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent}

TID: [0] [ELB] [2014-09-17 11:16:15,423]  INFO
{org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent} -
 Application member Host:10.0.0.85, Remote Host:null, Port: 4300,
HTTP:9765, HTTPS:9445, Domain: wso2.as.domain, Sub-domain:worker,
Active:true joined application cluster
{org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent}

TID: [0] [ELB] [2014-09-17 11:16:16,139]  WARN
{org.apache.synapse.transport.passthru.TargetHandler} -  Connection closed
by target host before receiving the request
{org.apache.synapse.transport.passthru.TargetHandler}

TID: [0] [ELB] [2014-09-17 11:16:16,169]  INFO
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} -
 Failed to send message to Member Host:10.0.0.85, Remote Host:null, Port:
4300, HTTP:9765, HTTPS:9445, Domain: wso2.as.domain, Sub-domain:worker,
Active:true . Error Code: 101508
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}

TID: [0] [ELB] [2014-09-17 11:16:16,170] ERROR
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} -
 Error sending request! Connection timeout after request is read by the
host as.wso2.com . Error code: 101508 Protocol State: RESPONSE HEAD
{org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}



After analyzing AS and ELB stack-traces, i felt that AS worker nodes join
the cluster before it properly initialized. So when ELB handover the job to
AS worker nodes, It fails to do the job.


Does my observation make sense here or is there any other reason for this
behavior?


WDYT?



-- 
Asanka Vithanage
Senior Software Engineer -QA
Mobile: +94 0716286708
Email: asan...@wso2.com
WSO2 Inc. www.wso2.com
TID: [0] [ELB] [2014-09-17 10:46:24,517]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Starting WSO2 Carbon... {org.wso2.carbon.core.internal.CarbonCoreActivator}
TID: [0] [ELB] [2014-09-17 10:46:24,519]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Operating System : Linux 3.13.0-30-generic, amd64 {org.wso2.carbon.core.internal.CarbonCoreActivator}
TID: [0] [ELB] [2014-09-17 10:46:24,519]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Home: /usr/local/java/jdk1.7.0_67/jre {org.wso2.carbon.core.internal.CarbonCoreActivator}
TID: [0] [ELB] [2014-09-17 10:46:24,519]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Version : 1.7.0_67 {org.wso2.carbon.core.internal.CarbonCoreActivator}
TID: [0] [ELB] [2014-09-17 10:46:24,519]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java VM  : Java HotSpot(TM) 64-Bit Server VM 24.65-b04,Oracle Corporation {org.wso2.carbon.core.internal.CarbonCoreActivator}
TID: [0] [ELB] [2014-09-17 10:46:24,519]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Carbon Home  : /home/ubuntu/ELBTest/wso2elb-2.1.1 {org.wso2.carbon.core.internal.CarbonCoreActivator}
TID: [0] [ELB] [2014-09-17 10:46:24,519]  INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Temp Dir: /home/ubuntu/ELBTest/wso2elb-2.1.1/tmp {org.wso2.carbon.core.internal.CarbonCoreActivator}
TID: 

Re: [Dev] Problem with binding BAM data receiver to loopback address(localhost).

2014-09-17 Thread Sriskandarajah Suhothayan
AFAIK this was needed in the initial implementation where we had issues in
building BAM data receiver in multiple addresses. I think we have solve
that issue now and hence we can now remove the findAddress().

Regards
Suho

On Wed, Sep 17, 2014 at 7:10 PM, Dunith Dhanushka dun...@wso2.com wrote:

 Hi folks,

 Currently we have a problem with binding BAM data receiver to local
 loopback address(localhost/127.0.0.1). In fact, databridge.receiver binds
 to localhost without any issues. Problem arises when the databridge.agent
 tries to connect to data receiver.

 Given below is the code used by data publishers to connect to the receiver
 (See
 org.wso2.carbon.databridge.agent.thrift.internal.pool.client.general.ClientPoolFactory
 )

 TTransport receiverTransport = null;
 try {
 receiverTransport = new
 TSocket(HostAddressFinder.findAddress(hostNameAndPort[0]),

  Integer.parseInt(hostNameAndPort[1]));
 } catch (SocketException ignored) {
 //already checked
 }

 Problem with this approach is HostAddressFinder.findAddress returns a
 different IP when hostNameAndPort[0] is set to localhost. In other cases
 it would work fine.

 According to current HostAddressFinder.findAddress implementation, it
 eleminates localhost or 127.0.0.1 and returns an address of a another
 NIC. Since thrift receiver is not bound to that particular interface, an
 error will be thrown at the client side.

 public static String findAddress(String hostname) throws SocketException {
 if (hostname.trim().equals(localhost) ||
 hostname.trim().equals(127.0.0.1) || hostname.trim().equals(::1)) {
 EnumerationNetworkInterface ifaces =
 NetworkInterface.getNetworkInterfaces();
 while (ifaces.hasMoreElements()) {
 NetworkInterface iface = ifaces.nextElement();
 EnumerationInetAddress addresses =
 iface.getInetAddresses();

 while (addresses.hasMoreElements()) {
 InetAddress addr = addresses.nextElement();
 if (addr instanceof Inet4Address 
 !addr.isLoopbackAddress()) {
 return addr.getHostAddress();
 }
 }
 }
 return 127.0.0.1;
 } else {
 return hostname;
 }
 }


 Why we purposely eliminate loopback address in the above method?

 There'll be a probelm when a server  got multiple network interfaces and
 customer wants to bind the receiver to loopback address. According to above
 implementation, that is impossible. As a solution, is it safe to remove
 this loopback address elimination and accept whatever the value passed as
 the hostName?

 Please mention your concerns.

 Regards,

 Dunith Dhanushka,
 Senior Software Engineer - BAM,
 WSO2 Inc,

 Mobile - +94 71 8615744
 Blog - dunithd.wordpress.com http://blog.dunith.com
 Twitter - @dunithd http://twitter.com/dunithd




-- 

*S. Suhothayan*
Technical Lead  Team Lead of WSO2 Complex Event Processor
 *WSO2 Inc. *http://wso2.com
* http://wso2.com/*
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
http://suhothayan.blogspot.com/twitter: http://twitter.com/suhothayan
http://twitter.com/suhothayan | linked-in:
http://lk.linkedin.com/in/suhothayan http://lk.linkedin.com/in/suhothayan*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Does AS (or Carbon Server) make sure to properly start it self, before join with the cluster ?

2014-09-17 Thread Nirodha Pramod
Hi Asanka,

I too have observed this behavior before. So the AS clustering ports get
opened early and joins with the ELB and the rest of the cluster before the
server is fully initialized.

-Nirodha

On Wed, Sep 17, 2014 at 7:16 AM, Asanka Vithanage asan...@wso2.com wrote:


 Hi All,

 I am currently testing on a ELB 211 fronted 1 manager/2 worker AS 521
 cluster. Here when i am following below steps, i am getting below noted
 errors on ELB stack traces.


 *Steps:*

 Setup a 1 manager/2 worker node ELB fronted setup

 Invoke SimpleStockQuate service deployed on AS 521(http path) continuously
 using jmeter script(with 1000 jmeter threads and 10 seconds ramp-up period)

 Down the worker node using ./wso2server.sh stop command

 Startup the downed worker node and check the ELB logs

 *Issue:*

 Intermittently observed following issue on ELB stack trace, but AS stack
 traces does not show any thing except member left/member join messages


 Note: I have tried above steps nearly 10 times and out of them 3 times
 observed below error.[Attached ELB log for further reference]

 TID: [0] [ELB] [2014-09-17 11:13:55,107]  INFO
 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent} -
  Member left [aa7c330e-eb71-488c-a905-79c3a07ba671]: /10.0.0.85:4300
 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent}

 TID: [0] [ELB] [2014-09-17 11:13:55,122]  INFO
 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent} -
  Member left [aa7c330e-eb71-488c-a905-79c3a07ba671]: /10.0.0.85:4300
 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent}

 TID: [0] [ELB] [2014-09-17 11:16:12,293]  INFO
 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent} -
  Member joined [cd2f1123-f734-456f-bc3f-7ae03ec0142a]: /10.0.0.85:4300
 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent}

 TID: [0] [ELB] [2014-09-17 11:16:12,297]  INFO
 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent} -
  Member joined [cd2f1123-f734-456f-bc3f-7ae03ec0142a]: /10.0.0.85:4300
 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent}

 TID: [0] [ELB] [2014-09-17 11:16:15,423]  INFO
 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent} -
  Application member Host:10.0.0.85, Remote Host:null, Port: 4300,
 HTTP:9765, HTTPS:9445, Domain: wso2.as.domain, Sub-domain:worker,
 Active:true joined application cluster
 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent}

 TID: [0] [ELB] [2014-09-17 11:16:16,139]  WARN
 {org.apache.synapse.transport.passthru.TargetHandler} -  Connection closed
 by target host before receiving the request
 {org.apache.synapse.transport.passthru.TargetHandler}

 TID: [0] [ELB] [2014-09-17 11:16:16,169]  INFO
 {org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} -
  Failed to send message to Member Host:10.0.0.85, Remote Host:null, Port:
 4300, HTTP:9765, HTTPS:9445, Domain: wso2.as.domain, Sub-domain:worker,
 Active:true . Error Code: 101508
 {org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}

 TID: [0] [ELB] [2014-09-17 11:16:16,170] ERROR
 {org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} -
  Error sending request! Connection timeout after request is read by the
 host as.wso2.com . Error code: 101508 Protocol State: RESPONSE HEAD
 {org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}



 After analyzing AS and ELB stack-traces, i felt that AS worker nodes join
 the cluster before it properly initialized. So when ELB handover the job to
 AS worker nodes, It fails to do the job.


 Does my observation make sense here or is there any other reason for this
 behavior?


 WDYT?



 --
 Asanka Vithanage
 Senior Software Engineer -QA
 Mobile: +94 0716286708
 Email: asan...@wso2.com
 WSO2 Inc. www.wso2.com


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




-- 

*Nirodha Gallage*
Senior Software Engineer, QA.
WSO2 Inc.: http://wso2.com/
Mobile: +94716429078
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Clarification on IS sample is needed - Configuring SAML2 SSO

2014-09-17 Thread Darshana Gunawardana
Hi Prasad and Asok,

On Wed, Sep 17, 2014 at 7:04 PM, Asok Perera as...@wso2.com wrote:

 Thank you Prasad..
 This is what I needed to get clarified

 *Asok Aravinda Perera*
 Software Engineer
 WSO2, Inc.;http://wso2.com/
 http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ
 lean.enterprise.middleware

 Mobile: +94722241032

 On Tue, Sep 16, 2014 at 2:08 AM, Prasad Tissera pras...@wso2.com wrote:

 When a service provider created in IS, a role is created for that service
 provider. If you want only user1 to access the app1 you can assign the role
 only to the user1, and remove the role from super admin role list.


This role is getting created when registering a Service Provider in IS. And
only users which have change this Service Provider configuration, the
relevant user should have that role.

Not having service provider role for a user, will not restrict from login
him to be log in.
In other words admin user will be able to login to both apps even admin do
not have any role which created when registering the Service Provider.




 On Mon, Sep 15, 2014 at 4:34 AM, Asok Perera as...@wso2.com wrote:

 Thank you Pushpalanka !
 But there is another clarification needed.
 What if a user needs to isolate two web apps ? Meaning, what if there
 'cannot' be a super user sort of a logging (admin credentials) for two web
 apps which is secured through a single IS ?


This is not straightforward but can be couple of ways to handle this...
One way will be considering this as authorization decision and handle it
from webapp side. From the SAML response you can get role list of
authenticated user and in webapp level it check that user have some
specific role.

On the other hand If you have one set of users which have access to only
one app and another set of users which have access to only to other app,
you could have two tenants and divide two user set into two tenants. There
are some some tradeoff of this pattern due to tenant isolation.

The most suited way we can decide when we have a more concrete use case.

Regards,
Darshana



 BR



 *Asok Aravinda Perera*
 Software Engineer
 WSO2, Inc.;http://wso2.com/
 http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ
 lean.enterprise.middleware

 Mobile: +94722241032

 On Fri, Sep 12, 2014 at 10:15 AM, Pushpalanka Jayawardhana 
 la...@wso2.com wrote:

 Hi Asok,

 This comes with the behavior of SSO.
 When you register travelocity.com as a service provider in IS and
 point travelocity.com webapp to use IS as the identity provider,
 authentication process of webapp is totally handled by IS.
 Even the page you enter username/password is submitted by IS. Webapp
 does not have any idea on the valid user name and password of the user
 trying to login as all these details are captured and authenticated at IS
 side. IS then just let the webapp knows whether the user is authenticated
 or not.

 This helps to keep the user passwords in a secured centralized place
 than saving it in each webapp and helps to provide a better user experience
 by not asking users to type username/password several times(If you are
 logged into IS, you are automatically logged into travelocity.com as
 well.).

 Therefore any other user in IS also can login to travelocity.com
 webapp with his/her credentials.
 This article[1] will provide more insight.
 Hope this helps.

 [1] -
 http://wso2.com/library/articles/2010/07/saml2-web-browser-based-sso-wso2-identity-server/

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


 On Fri, Sep 12, 2014 at 9:54 AM, Asok Perera as...@wso2.com wrote:

 Hi,

 This is a question occurred to me while working on 'Configuring SAML2
 SSO' sample in Identity server. (link below)
 https://docs.wso2.com/display/IS500/Configuring+SAML2+SSO

 According to that sample, a user can log into service provider's
 site/portal with Identity server's admin credentials. In this case, one 
 can
 use admin/admin username/password to log into travelocity.com.

 The question is, can I assume that IS admin is treated as a super user
 who can log into all the service providers' web apps / services ?
 If not, can somebody explain me why we can use admin credentials in
 the above sample ?

 BR

 *Asok Aravinda Perera*
 Software Engineer
 WSO2, Inc.;http://wso2.com/
 http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ
 lean.enterprise.middleware

 Mobile: +94722241032

 ___
 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




 --
 Prasad Tissera
 Software 

Re: [Dev] Clarification on IS sample is needed - Configuring SAML2 SSO

2014-09-17 Thread Darshana Gunawardana
Sent the half baked mail mistakenly

On Wed, Sep 17, 2014 at 10:11 PM, Darshana Gunawardana darsh...@wso2.com
wrote:

 Hi Prasad and Asok,

 On Wed, Sep 17, 2014 at 7:04 PM, Asok Perera as...@wso2.com wrote:

 Thank you Prasad..
 This is what I needed to get clarified

 *Asok Aravinda Perera*
 Software Engineer
 WSO2, Inc.;http://wso2.com/
 http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ
 lean.enterprise.middleware

 Mobile: +94722241032

 On Tue, Sep 16, 2014 at 2:08 AM, Prasad Tissera pras...@wso2.com wrote:

 When a service provider created in IS, a role is created for that
 service provider. If you want only user1 to access the app1 you can assign
 the role only to the user1, and remove the role from super admin role list.


 This role is getting created when registering a Service Provider in IS.
 And only users which have change this Service Provider configuration, the
 relevant user should have that role.

* This role is getting created when registering a Service Provider in
IS. And to change this Service Provider configuration, the relevant user
should have that role.


 Not having service provider role for a user, will not restrict from login
 him to be log in.
 In other words admin user will be able to login to both apps even admin do
 not have any role which created when registering the Service Provider.




 On Mon, Sep 15, 2014 at 4:34 AM, Asok Perera as...@wso2.com wrote:

 Thank you Pushpalanka !
 But there is another clarification needed.
 What if a user needs to isolate two web apps ? Meaning, what if there
 'cannot' be a super user sort of a logging (admin credentials) for two web
 apps which is secured through a single IS ?


 This is not straightforward but can be couple of ways to handle this...
 One way will be considering this as authorization decision and handle it
 from webapp side. From the SAML response you can get role list of
 authenticated user and in webapp level it check that user have some
 specific role.

 On the other hand If you have one set of users which have access to only
 one app and another set of users which have access to only to other app,
 you could have two tenants and divide two user set into two tenants. There
 are some some tradeoff of this pattern due to tenant isolation.

 The most suited way we can decide when we have a more concrete use case.

 Regards,
 Darshana



 BR



 *Asok Aravinda Perera*
 Software Engineer
 WSO2, Inc.;http://wso2.com/
 http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ
 lean.enterprise.middleware

 Mobile: +94722241032

 On Fri, Sep 12, 2014 at 10:15 AM, Pushpalanka Jayawardhana 
 la...@wso2.com wrote:

 Hi Asok,

 This comes with the behavior of SSO.
 When you register travelocity.com as a service provider in IS and
 point travelocity.com webapp to use IS as the identity provider,
 authentication process of webapp is totally handled by IS.
 Even the page you enter username/password is submitted by IS. Webapp
 does not have any idea on the valid user name and password of the user
 trying to login as all these details are captured and authenticated at IS
 side. IS then just let the webapp knows whether the user is authenticated
 or not.

 This helps to keep the user passwords in a secured centralized place
 than saving it in each webapp and helps to provide a better user 
 experience
 by not asking users to type username/password several times(If you are
 logged into IS, you are automatically logged into travelocity.com as
 well.).

 Therefore any other user in IS also can login to travelocity.com
 webapp with his/her credentials.
 This article[1] will provide more insight.
 Hope this helps.

 [1] -
 http://wso2.com/library/articles/2010/07/saml2-web-browser-based-sso-wso2-identity-server/

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


 On Fri, Sep 12, 2014 at 9:54 AM, Asok Perera as...@wso2.com wrote:

 Hi,

 This is a question occurred to me while working on 'Configuring SAML2
 SSO' sample in Identity server. (link below)
 https://docs.wso2.com/display/IS500/Configuring+SAML2+SSO

 According to that sample, a user can log into service provider's
 site/portal with Identity server's admin credentials. In this case, one 
 can
 use admin/admin username/password to log into travelocity.com.

 The question is, can I assume that IS admin is treated as a super
 user who can log into all the service providers' web apps / services ?
 If not, can somebody explain me why we can use admin credentials in
 the above sample ?

 BR

 *Asok Aravinda Perera*
 Software Engineer
 WSO2, Inc.;http://wso2.com/
 http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ
 lean.enterprise.middleware

 

Re: [Dev] Does AS (or Carbon Server) make sure to properly start it self, before join with the cluster ?

2014-09-17 Thread Afkham Azeez
No it doesn't happen. HTTP/S ports are open only after clustering is
properly initialized, and the LB adds members only after it can
successfully connect to the HTTP/S ports.

On Wed, Sep 17, 2014 at 7:46 PM, Asanka Vithanage asan...@wso2.com wrote:


 Hi All,

 I am currently testing on a ELB 211 fronted 1 manager/2 worker AS 521
 cluster. Here when i am following below steps, i am getting below noted
 errors on ELB stack traces.


 *Steps:*

 Setup a 1 manager/2 worker node ELB fronted setup

 Invoke SimpleStockQuate service deployed on AS 521(http path) continuously
 using jmeter script(with 1000 jmeter threads and 10 seconds ramp-up period)

 Down the worker node using ./wso2server.sh stop command

 Startup the downed worker node and check the ELB logs

 *Issue:*

 Intermittently observed following issue on ELB stack trace, but AS stack
 traces does not show any thing except member left/member join messages


 Note: I have tried above steps nearly 10 times and out of them 3 times
 observed below error.[Attached ELB log for further reference]

 TID: [0] [ELB] [2014-09-17 11:13:55,107]  INFO
 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent} -
  Member left [aa7c330e-eb71-488c-a905-79c3a07ba671]: /10.0.0.85:4300
 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent}

 TID: [0] [ELB] [2014-09-17 11:13:55,122]  INFO
 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent} -
  Member left [aa7c330e-eb71-488c-a905-79c3a07ba671]: /10.0.0.85:4300
 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent}

 TID: [0] [ELB] [2014-09-17 11:16:12,293]  INFO
 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent} -
  Member joined [cd2f1123-f734-456f-bc3f-7ae03ec0142a]: /10.0.0.85:4300
 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent}

 TID: [0] [ELB] [2014-09-17 11:16:12,297]  INFO
 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent} -
  Member joined [cd2f1123-f734-456f-bc3f-7ae03ec0142a]: /10.0.0.85:4300
 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent}

 TID: [0] [ELB] [2014-09-17 11:16:15,423]  INFO
 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent} -
  Application member Host:10.0.0.85, Remote Host:null, Port: 4300,
 HTTP:9765, HTTPS:9445, Domain: wso2.as.domain, Sub-domain:worker,
 Active:true joined application cluster
 {org.wso2.carbon.core.clustering.hazelcast.HazelcastGroupManagementAgent}

 TID: [0] [ELB] [2014-09-17 11:16:16,139]  WARN
 {org.apache.synapse.transport.passthru.TargetHandler} -  Connection closed
 by target host before receiving the request
 {org.apache.synapse.transport.passthru.TargetHandler}

 TID: [0] [ELB] [2014-09-17 11:16:16,169]  INFO
 {org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} -
  Failed to send message to Member Host:10.0.0.85, Remote Host:null, Port:
 4300, HTTP:9765, HTTPS:9445, Domain: wso2.as.domain, Sub-domain:worker,
 Active:true . Error Code: 101508
 {org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}

 TID: [0] [ELB] [2014-09-17 11:16:16,170] ERROR
 {org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint} -
  Error sending request! Connection timeout after request is read by the
 host as.wso2.com . Error code: 101508 Protocol State: RESPONSE HEAD
 {org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint}



 After analyzing AS and ELB stack-traces, i felt that AS worker nodes join
 the cluster before it properly initialized. So when ELB handover the job to
 AS worker nodes, It fails to do the job.


 Does my observation make sense here or is there any other reason for this
 behavior?


 WDYT?



 --
 Asanka Vithanage
 Senior Software Engineer -QA
 Mobile: +94 0716286708
 Email: asan...@wso2.com
 WSO2 Inc. www.wso2.com




-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* http://www.apache.org/*
*email: **az...@wso2.com* az...@wso2.com
* cell: +94 77 3320919blog: **http://blog.afkham.org*
http://blog.afkham.org
*twitter: **http://twitter.com/afkham_azeez*
http://twitter.com/afkham_azeez
*linked-in: **http://lk.linkedin.com/in/afkhamazeez
http://lk.linkedin.com/in/afkhamazeez*

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


Re: [Dev] [App Factory Training Project] Build a development statistics Dashboard for Apps in App Factory

2014-09-17 Thread Pirinthapan Mahendran
Hi Gayan and Dimuthu,

I have solved the issue.
In the above script I mistakenly defined all the columns as  primary keys
in the table commit_test1. That was the issue. Now I've corrected it and
its working as I expected.

Thanks.



Mahendran Pirinthapan
Software Engineer | WSO2 Inc.
Mobile +94772378732.

On Tue, Sep 16, 2014 at 10:55 PM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi Pirinthapan,

 I can see that you have tried to group by the relavant fields which is
 correct. I am not sure whether you have tried to group by later on after
 running the hive script at least once. Otherwise it is just basic sql and
 it should work.

 You can try dropping the hive intermediate hive table by running drop
 table AppCommits as a query in BAM. Run the aforesaid hive script again
 and see the result.

 Regards
 Gayan

 On Tue, Sep 16, 2014 at 6:52 PM, Pirinthapan Mahendran 
 pirintha...@wso2.com wrote:

 Hi Gayan,

 I have written the following hive script to collect the data from
 Cassandra.

 CREATE EXTERNAL TABLE IF NOT EXISTS AppCommit(row_id STRING,
 applicationKey STRING, tenantDomain STRING, user STRING, revision
 STRING, timeSt BIGINT)
 STORED BY 'org.apache.hadoop.hive.cassandra.CassandraStorageHandler'  with
 SERDEPROPERTIES(wso2.carbon.datasource.name =
 WSO2BAM_CASSANDRA_DATASOURCE,
 cassandra.cf.name = org_wso2_carbon_appfactory_appCommit ,
 cassandra.columns.mapping = :key, payload_appKey,
 payload_tenantDomain, payload_user, payload_revision, Timestamp);


 CREATE EXTERNAL TABLE IF NOT EXISTS commit_test1 (TENANT_DOMAIN STRING,
 APPLICATION_KEY STRING, DAY STRING, COMMITS BIGINT) STORED BY
 'org.wso2.carbon.hadoop.hive.jdbc.storage.JDBCStorageHandler' TBLPROPERTIES
 ( 'mapred.jdbc.driver.class' = 'com.mysql.jdbc.Driver' , '
 wso2.carbon.datasource.name'='WSO2_AF_STAT_DB','hive.jdbc.update.on.duplicate'
 = 'true', 'hive.jdbc.primary.key.fields' =
 'TENANT_DOMAIN,APPLICATION_KEY,DAY,COMMITS', 'hive.jdbc.table.create.query'
 = 'CREATE TABLE commit_test1(APPLICATION_KEY VARCHAR(100), TENANT_DOMAIN
 VARCHAR(100), DAY VARCHAR(100), COMMITS BIGINT)');


 INSERT OVERWRITE TABLE commit_test1
 SELECT rslt.tenantDomain, rslt.applicationKey, rslt.day,
 count(rslt.applicationKey) as COMMITS FROM(SELECT tenantDomain,
 applicationKey, day(from_unixtime(cast(timest/1000 as BIGINT),'-MM-dd
 HH:mm:ss.SSS' )) day FROM AppCommit WHERE (UNIX_TIMESTAMP() -
 cast(timest/1000 as BIGINT))  1209600) rslt GROUP BY rslt.tenantDomain,
 rslt.applicationKey, rslt.day;


 when I execute this script it insert the following data to mysql
 database.


 ​
 In the above table when the commit number increases, the new data is
 appended to the table as in the last four rows. But my requirement is to
 have only one entry for each combination of APPLICATION_KEY, TENANT_DOMAIN
 and DAY.

 So could you please tell me whether there are any methods to do this
 using Hive?

 Thanks.



 Mahendran Pirinthapan
 Software Engineer | WSO2 Inc.
 Mobile +94772378732.

 On Mon, Sep 15, 2014 at 10:05 PM, Pirinthapan Mahendran 
 pirintha...@wso2.com wrote:

 Thanks Gayan. Now its working.



 Mahendran Pirinthapan
 Software Engineer | WSO2 Inc.
 Mobile +94772378732.

 On Mon, Sep 15, 2014 at 9:40 PM, Gayan Dhanushka gay...@wso2.com
 wrote:

 Hi Pirinthapan,

 What you have done is correct. But in order to publish commit details
 to BAM from the gitblit server you need to enable data publishing in the
 gitblit server.

 Please locate and open the gitblit.properties file resides within
 GITBLIT_HOME/data folder. There is a property at the bottom called
 publishToBAM. You need to assign true to this property and restart the
 server.

 This should solve your problem.

 Thanks
 Gayan


 On Mon, Sep 15, 2014 at 9:25 PM, Pirinthapan Mahendran 
 pirintha...@wso2.com wrote:

 Hi Gayan,

 Now I'm writing Hive script to collect the necessary commit data from
 Cassandra to MYSQL.  Before I started to write this I tested the existing
 hive script  with the name AppCommits in BAM server. For this I did
 the following steps:

 1. I created an application in App Factory.
 2. Cloned the application to my PC.
 3. Made some changes and did some commits.
 4. Then I accessed the GitBlit server in the browser. It shows all the
 commit details.
 5. Then I executed the hive script AppCommits from BAM management
 console.
 6. Then I checked the mysql database. The table APP_COMMITS is
 there.
 7. But when I did some queries from that table, it returns empty set.

 According to my understanding whenever a commit happens the commit
 data will be published to the BAM server by the script [1].

 Could you please make me clear about whether my understandings and the
 procedures, I did, are correct. If those are correct could you please help
 me to find out, why the data is not in mysql.

 1.
 https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/products/appfactory/2.0.1/vmware/appfactory_deployment_s4/resources/configs/jenkins.groovy

 Thanks.



 Mahendran Pirinthapan
 

[Dev] [jaggeryjs] caramel helper issue

2014-09-17 Thread Dakshika Jayathilaka
Hi,

I'm using  {{js .}} helper on my page template. by default it will print
caramel context related information within the script tag. Is it a
default behavior or not?

ex:

scriptvar caramel = caramel || {}; caramel.context = /MYAPPPATH;
caramel.themer = theme0;caramel.url = function (path) { return
this.context + (path.charAt(0) !== '/' ? '/' : '') + path; };/script

please be kind enough to explain what went wrong here.. AFAIK we didn't
want to print above on page level.

Notice same behavior on ES latest version as wel.

Thank you.

*Dakshika Jayathilaka*
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Missing resources(js/css/images) in webapps

2014-09-17 Thread Udara Rathnayake
Hi,

Since we ship webapps with most of the products(AM,ES,UES etc..) now, its
better if we can test and resolve missing resources while releasing
products. All the time we don't have a method to track valid dependencies
and also reluctant to remove current dependencies since we are not sure
about the usage.

Noticed number of 404 Not Found errors for missing js/css files while
observing browser console(for fresh packs).

Regards,
UdaraR

-- 
*Udara Rathnayake*
Software Engineer
WSO2 Inc. : http://wso2.com

Mobile : 1 4087864651
Twitter : http://twitter.com/udarakr
Blog: http://udarakr.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Missing resources(js/css/images) in webapps

2014-09-17 Thread Dakshika Jayathilaka
+1 for having checking procedure.

I have notice same issue in several packs.
IMO we can add this validation part on QA process.

*Dakshika Jayathilaka*
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Thu, Sep 18, 2014 at 12:12 AM, Udara Rathnayake uda...@wso2.com wrote:

 Hi,

 Since we ship webapps with most of the products(AM,ES,UES etc..) now, its
 better if we can test and resolve missing resources while releasing
 products. All the time we don't have a method to track valid dependencies
 and also reluctant to remove current dependencies since we are not sure
 about the usage.

 Noticed number of 404 Not Found errors for missing js/css files while
 observing browser console(for fresh packs).

 Regards,
 UdaraR

 --
 *Udara Rathnayake*
 Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile : 1 4087864651
 Twitter : http://twitter.com/udarakr
 Blog: http://udarakr.blogspot.com


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


Re: [Dev] Hazlecast Error in Centos 6.5

2014-09-17 Thread Selvaratnam Uthaiyashankar
Hi Thayalan,

Did you report this in JIRA? I couldn't see any issues reported

Also, did you try the alpha pack? Do they still have this issue?

On Wed, Sep 10, 2014 at 4:29 PM, Thayalan thaya...@wso2.com wrote:

 Set-up the cluster using the build [1] below. There were no other patches
 applied to the build. Java version detail is in [2].

 1.
 https://svn.wso2.org/repos/wso2/people/maninda/BAM_packs/2014-09-05_wso2bam-2.5.0.zip

 2. Java Version details
 java version 1.7.0_65
 Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
 Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)




 On Wed, Sep 10, 2014 at 4:21 PM, Afkham Azeez az...@wso2.com wrote:

 Looks like a jar incompatibility. What patches have you put? Is the
 Hazelcast upgrade patch there? Also, is the corresponding kernel patch
 there?

 Azeez

 On Wed, Sep 10, 2014 at 4:13 PM, Thayalan thaya...@wso2.com wrote:

 Hi All,

 While setting up BAM 2.4.2 cluster set-up in Centos 6.5 noticed the
 below error during server start-up. Any idea for this exception.

 ERROR {org.apache.cassandra.service.CassandraDaemon} -  Exception in
 thread Thread[Cluster [wso2.carbon.domain] coordinator elector
 thread,5,main]
 java.lang.NoSuchMethodError:
 com.hazelcast.core.HazelcastInstance.getLock(Ljava/lang/String;)Lcom/hazelcast/core/ILock;
 at
 org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent$2.run(HazelcastClusteringAgent.java:227)

 --
 Regards,
 Thayalan Sivapaleswararajah
 Associate Technical Lead - QA
 Mob: +94(0)777872485
 Tel : +94(0)(11)2145345
 Fax : +94(0)(11)2145300
 Email: thaya...@wso2.com


 *Disclaimer*: *This communication may contain privileged or other
 confidential information and is intended exclusively for the addressee/s.
 If you are not the intended recipient/s, or believe that you may have
 received this communication in error, please reply to the sender indicating
 that fact and delete the copy you received and in addition, you should not
 print, copy, retransmit, disseminate, or otherwise use the information
 contained in this communication. Internet communications cannot be
 guaranteed to be timely, secure, error or virus-free. The sender does not
 accept liability for any errors or omissions.*




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/*
 *email: **az...@wso2.com* az...@wso2.com
 * cell: +94 77 3320919 %2B94%2077%203320919blog: *
 *http://blog.afkham.org* http://blog.afkham.org
 *twitter: **http://twitter.com/afkham_azeez*
 http://twitter.com/afkham_azeez
 *linked-in: **http://lk.linkedin.com/in/afkhamazeez
 http://lk.linkedin.com/in/afkhamazeez*

 *Lean . Enterprise . Middleware*




 --
 Regards,
 Thayalan Sivapaleswararajah
 Associate Technical Lead - QA
 Mob: +94(0)777872485
 Tel : +94(0)(11)2145345
 Fax : +94(0)(11)2145300
 Email: thaya...@wso2.com


 *Disclaimer*: *This communication may contain privileged or other
 confidential information and is intended exclusively for the addressee/s.
 If you are not the intended recipient/s, or believe that you may have
 received this communication in error, please reply to the sender indicating
 that fact and delete the copy you received and in addition, you should not
 print, copy, retransmit, disseminate, or otherwise use the information
 contained in this communication. Internet communications cannot be
 guaranteed to be timely, secure, error or virus-free. The sender does not
 accept liability for any errors or omissions.*


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




-- 
S.Uthaiyashankar
VP Engineering
WSO2 Inc.
http://wso2.com/ - lean . enterprise . middleware

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


Re: [Dev] Hazlecast Error in Centos 6.5

2014-09-17 Thread Gihan Anuruddha
Hi Thayalan,

AFAIK Maninda fixed this issue with alpha pack. Can you please try on that?

Alpha pack location:
https://svn.wso2.org/repos/wso2/people/maninda/BAM_packs/wso2bam-2.5.0_Alpha.zip

On Thu, Sep 18, 2014 at 8:44 AM, Selvaratnam Uthaiyashankar 
shan...@wso2.com wrote:

 Hi Thayalan,

 Did you report this in JIRA? I couldn't see any issues reported

 Also, did you try the alpha pack? Do they still have this issue?

 On Wed, Sep 10, 2014 at 4:29 PM, Thayalan thaya...@wso2.com wrote:

 Set-up the cluster using the build [1] below. There were no other patches
 applied to the build. Java version detail is in [2].

 1.
 https://svn.wso2.org/repos/wso2/people/maninda/BAM_packs/2014-09-05_wso2bam-2.5.0.zip

 2. Java Version details
 java version 1.7.0_65
 Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
 Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)




 On Wed, Sep 10, 2014 at 4:21 PM, Afkham Azeez az...@wso2.com wrote:

 Looks like a jar incompatibility. What patches have you put? Is the
 Hazelcast upgrade patch there? Also, is the corresponding kernel patch
 there?

 Azeez

 On Wed, Sep 10, 2014 at 4:13 PM, Thayalan thaya...@wso2.com wrote:

 Hi All,

 While setting up BAM 2.4.2 cluster set-up in Centos 6.5 noticed the
 below error during server start-up. Any idea for this exception.

 ERROR {org.apache.cassandra.service.CassandraDaemon} -  Exception in
 thread Thread[Cluster [wso2.carbon.domain] coordinator elector
 thread,5,main]
 java.lang.NoSuchMethodError:
 com.hazelcast.core.HazelcastInstance.getLock(Ljava/lang/String;)Lcom/hazelcast/core/ILock;
 at
 org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent$2.run(HazelcastClusteringAgent.java:227)

 --
 Regards,
 Thayalan Sivapaleswararajah
 Associate Technical Lead - QA
 Mob: +94(0)777872485
 Tel : +94(0)(11)2145345
 Fax : +94(0)(11)2145300
 Email: thaya...@wso2.com


 *Disclaimer*: *This communication may contain privileged or other
 confidential information and is intended exclusively for the addressee/s.
 If you are not the intended recipient/s, or believe that you may have
 received this communication in error, please reply to the sender indicating
 that fact and delete the copy you received and in addition, you should not
 print, copy, retransmit, disseminate, or otherwise use the information
 contained in this communication. Internet communications cannot be
 guaranteed to be timely, secure, error or virus-free. The sender does not
 accept liability for any errors or omissions.*




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/*
 *email: **az...@wso2.com* az...@wso2.com
 * cell: +94 77 3320919 %2B94%2077%203320919blog: *
 *http://blog.afkham.org* http://blog.afkham.org
 *twitter: **http://twitter.com/afkham_azeez*
 http://twitter.com/afkham_azeez
 *linked-in: **http://lk.linkedin.com/in/afkhamazeez
 http://lk.linkedin.com/in/afkhamazeez*

 *Lean . Enterprise . Middleware*




 --
 Regards,
 Thayalan Sivapaleswararajah
 Associate Technical Lead - QA
 Mob: +94(0)777872485
 Tel : +94(0)(11)2145345
 Fax : +94(0)(11)2145300
 Email: thaya...@wso2.com


 *Disclaimer*: *This communication may contain privileged or other
 confidential information and is intended exclusively for the addressee/s.
 If you are not the intended recipient/s, or believe that you may have
 received this communication in error, please reply to the sender indicating
 that fact and delete the copy you received and in addition, you should not
 print, copy, retransmit, disseminate, or otherwise use the information
 contained in this communication. Internet communications cannot be
 guaranteed to be timely, secure, error or virus-free. The sender does not
 accept liability for any errors or omissions.*


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




 --
 S.Uthaiyashankar
 VP Engineering
 WSO2 Inc.
 http://wso2.com/ - lean . enterprise . middleware

 Phone: +94 714897591

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




-- 
W.G. Gihan Anuruddha
Senior Software Engineer | WSO2, Inc.
M: +94772272595
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][Jaggery] Calling a Java method asynchronously from Jaggery

2014-09-17 Thread Inosh Perera
Thank you, I will look into these.

regards,
Inosh

On Wed, Sep 17, 2014 at 10:23 AM, Manuranga Perera m...@wso2.com wrote:

 setTimeout(function(){
 Packages.org.my.ClassName.method();
 },1);

 this will call it in a new thread.

 On Wed, Sep 17, 2014 at 9:57 AM, Kasun Dissanayake kas...@wso2.com
 wrote:

 Hi Inosh,

 AFAIY there is no way to do that. But you can easily use AJAX methods.
 Just follow these demos [1].

 [1] http://jaggeryjs.org/samples.jag

 Cheers

 On Wed, Sep 17, 2014 at 9:43 AM, Inosh Perera ino...@wso2.com wrote:

 Hi all,
 I need to call java method inside Jaggery. But this has to be done in an
 asynchronous way. Is there a way to do this in Jaggery? Is there a way to
 deal with threads in Jaggery?

 Regards,
 Inosh

 --
 Inosh Perera
 Software Engineer, WSO2 Inc.
 Tel: 0785293686

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




 --
 Kasun Dissanayake
 Software Engineer
 WSO2 Inc.
 Lean | Enterprise | Middleware
 Tel - +94 77 086 2860
 Skype - kasun.dissanayake4
 LinkedIn - lk.linkedin.com/in/kasundis/




 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com




-- 
Inosh Perera
Software Engineer, WSO2 Inc.
Tel: 0785293686
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Link CEP event adaptor doc with BAM 2.5.0

2014-09-17 Thread Praneesha Chandrasiri
Created a JIRA in [1] to track this.

[1] https://wso2.org/jira/browse/DOCUMENTATION-1124

On Mon, Sep 15, 2014 at 10:21 PM, Praneesha Chandrasiri pranee...@wso2.com
wrote:

 Hi Gihan,

 Sure. I will work on this.

 Thanks!

 On Mon, Sep 15, 2014 at 6:35 PM, Gihan Anuruddha gi...@wso2.com wrote:

 Hi Praneesha,

 With BAM 2.5.0 we have integrated several event adaptors to BAM. At the
 moment these event adaptors are available with CEP. Can you please link
 existing CEP event adaptor doc [1] with BAM 2.5.0 doc space?

 [1] - https://docs.wso2.com/display/CEP310/Working+with+Event+Adaptors

 --
 W.G. Gihan Anuruddha
 Senior Software Engineer | WSO2, Inc.
 M: +94772272595




 --
 Thanks  Best Regards,
 *Praneesha Chandrasiri*
 *Technical Writer*
 *WSO2 Inc. *
 *Mobile: +(94) 718156888 %2B%2894%29%20718156888*
 *E-mail: pranee...@wso2.com pranee...@wso2.com*




-- 
Thanks  Best Regards,
*Praneesha Chandrasiri*
*Technical Writer*
*WSO2 Inc. *
*Mobile: +(94) 718156888*
*E-mail: pranee...@wso2.com pranee...@wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Harshan Liyanage

2014-09-17 Thread Shanmugarajah Sinnathamby
Hi,

Its my pleasure to welcome Harshan Liyanage  as a WSO2 Committer. Harshan
has made great contributions to EMM product and other related products
during the last few months and in recognition of his commitment and
contributions, he has been voted as a committer.

Harshan, welcome aboard and keep up the good work.

Best Regards,
Shan









-- 
*Shanmugarajah (Shan)*
Director, Mobile Architecture,
WSO2, Inc.; http://wso2.com
Email: s...@wso2.com
Mobile : +9448260
Blog: http://shanfour.blogspot.com



-- 
*Shanmugarajah (Shan)*
Director, Mobile Architecture,
WSO2, Inc.; http://wso2.com
Email: s...@wso2.com
Mobile : +9448260
Blog: http://shanfour.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


  1   2   >