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.

\
\
\



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

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

[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] 
mailto: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.
___
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 
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.; 
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*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 
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.
>trace="enable" type="jms" xmlns="
> http://wso2.org/carbon/eventadaptormanager";>
>   
>   tcp://10.100.5.175:61616
> 
>name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory
>name="transport.jms.ConnectionFactoryJNDIName">TopicConnectionFactory
>   topic
> 
> 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 
> 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 
>> 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 
>>> 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 -u -p or
./clean.sh -u  -p   .
(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   will modify the original file which you can
achieve the same as below without -i option
 sed > 


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

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

>
>
> On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya 
> 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.
>> >   trace="enable" type="jms" xmlns="
>> http://wso2.org/carbon/eventadaptormanager";>
>>   
>>   tcp://10.100.5.175:61616
>> 
>>   > name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory
>>   > name="transport.jms.ConnectionFactoryJNDIName">TopicConnectionFactory
>>   topic
>> 
>> 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 
>> 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 
>>> 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 
 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 -u -p or
> ./clean.sh -u  -p   .
> (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   will modify the original file which you can
> achieve the same as below without -i option
>  sed > 
>
>
> *Scripts are attached for reference. *
>
> [1]
> http://blog.ravihansa3000.c

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



wso2-nexus
WSO2 internal Repository
http://maven.wso2.org/nexus/content/groups/wso2-public/

true
daily
fail





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



wso2-maven2-repository-1
http://dist.wso2.org/maven2


wso2-maven2-repository-2
http://dist.wso2.org/snapshots/maven2


repository.dev.java.net-maven2
Java.net Repository for Maven
http://download.java.net/maven/2/
default




Do a clean mvn build. This may solve your problem


Regards,
Firzhan

On Wed, Sep 17, 2014 at 12:44 PM, Lahiru Cooray  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 (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/carb

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 
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
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
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 
wrote:

> Hi Udara,
> Yes, We will do the needful.
>
> Thanks,
> Thushara.
>
> On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage  wrote:
>
>>
>>
>> On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya 
>> 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.
>>> >>   trace="enable" type="jms" xmlns="
>>> http://wso2.org/carbon/eventadaptormanager";>
>>>   
>>>   tcp://10.100.5.175:61616
>>> 
>>>   >> name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory
>>>   >> name="transport.jms.ConnectionFactoryJNDIName">TopicConnectionFactory
>>>   topic
>>> 
>>> 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 
>>> 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 
 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 
> 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 -u -p or
>> ./clean.sh -u  -p   .
>> (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

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

> Hi Waruna,
>
>
> On Wed, Sep 3, 2014 at 9:49 PM, Waruna Perera 
> 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=0AmcQWA48EWBddEdzVVZ4aDJTVTBOeV9fVkE0dU9KMWc&usp
>>
>> [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
>
>  blog
> :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
>>
>>  blog
>> :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  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  *
___
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  wrote:

> Congrats Sewwandi !!!
>
> On Wed, Sep 17, 2014 at 12:23 PM, Dhanuka Ranasinghe 
> 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 > > 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 
 wrote:

> Congratulations Sewwandi...!!!
>
> On Wed, Sep 17, 2014 at 12:17 PM, Rajith Vitharana 
> wrote:
>
>> Congrags ... :)
>>
>> On Wed, Sep 17, 2014 at 12:16 PM, Nipuni Perera 
>> 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 
> 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
>>> 
>>>
>>>
>>> ___
>>> 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 

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

> Congratulations :)
>
> On Wed, Sep 17, 2014 at 12:28 PM, Danesh Kuruppu  wrote:
>
>> Congrats Sewwandi !!!
>>
>> On Wed, Sep 17, 2014 at 12:23 PM, Dhanuka Ranasinghe 
>> 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 
> wrote:
>
>> Congratulations Sewwandi...!!!
>>
>> On Wed, Sep 17, 2014 at 12:17 PM, Rajith Vitharana 
>> wrote:
>>
>>> Congrags ... :)
>>>
>>> On Wed, Sep 17, 2014 at 12:16 PM, Nipuni Perera 
>>> 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 
>> 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
 


 ___
 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

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  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  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 
>> 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  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 
 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  > wrote:
>
>> Hi Waruna,
>>
>>
>> On Wed, Sep 3, 2014 at 9:49 PM, Waruna Perera 
>> 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=0AmcQWA48EWBddEdzVVZ4aDJTVTBOeV9fVkE0dU9KMWc&usp
>>>
>>> [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
>>
>>  blog
>> :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
>>>
>>>  blog
>>> :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 
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 
> 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 > > wrote:
>>
>>> Hi,
>>>
>>> I'm working on issue [1 ]
>>> 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  *
>>> *mobile : +94 775 181586*
>>> *www: :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  *
> *mobile : +94 775 181586*
> *www: :http://wso2.com  *lean . enterprise . middleware
>
>
>


-- 

Thanks & Best Regards,

Tharindu Edirisinghe
Software Engineer

*WSO2 Inc*
*email   : tharin...@wso2.com  *
*mobile : +94 775 181586*
*www: :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 Dumidu Handakumbura
Congrats :)

On Wed, Sep 17, 2014 at 1:10 PM, Kasun Dissanayake  wrote:

> Hi Sewwandi
>
> Congradzzz.
>
> On Wed, Sep 17, 2014 at 1:03 PM, Thilini Shanika 
> wrote:
>
>> Congratulations :)
>>
>> On Wed, Sep 17, 2014 at 12:28 PM, Danesh Kuruppu  wrote:
>>
>>> Congrats Sewwandi !!!
>>>
>>> On Wed, Sep 17, 2014 at 12:23 PM, Dhanuka Ranasinghe 
>>> 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 
>> wrote:
>>
>>> Congratulations Sewwandi...!!!
>>>
>>> On Wed, Sep 17, 2014 at 12:17 PM, Rajith Vitharana >> > wrote:
>>>
 Congrags ... :)

 On Wed, Sep 17, 2014 at 12:16 PM, Nipuni Perera 
 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 
>>> 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
> 
>
>
> ___
> 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

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/
*
___
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  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 
> 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 
>> 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  *
 *mobile : +94 775 181586*
 *www: :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 *
>>
>
>
>
> --
> 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  *
*mobile : +94 775 181586*
*www: :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 
> wrote:
>
>> Hi Udara,
>> Yes, We will do the needful.
>>
>> Thanks,
>> Thushara.
>>
>> On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage  wrote:
>>
>>>
>>>
>>> On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya 
>>> 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.
 >>>   trace="enable" type="jms" xmlns="
 http://wso2.org/carbon/eventadaptormanager";>
   
   tcp://10.100.5.175:61616
 
   >>> name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory
   >>> name="transport.jms.ConnectionFactoryJNDIName">TopicConnectionFactory
   topic
 
 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 
 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 
> 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 
>> 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 -u -p or
>>> ./clean.sh -u  -p   .
>>> (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 Stra

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 
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 
> 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 > > wrote:
>>
>>> Hi,
>>>
>>> I'm working on issue [1 ]
>>> 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  *
>>> *mobile : +94 775 181586*
>>> *www: :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  *
> *mobile : +94 775 181586*
> *www: :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 *
*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 
wrote:

> Congrats :)
>
> On Wed, Sep 17, 2014 at 1:10 PM, Kasun Dissanayake 
> wrote:
>
>> Hi Sewwandi
>>
>> Congradzzz.
>>
>> On Wed, Sep 17, 2014 at 1:03 PM, Thilini Shanika 
>> wrote:
>>
>>> Congratulations :)
>>>
>>> On Wed, Sep 17, 2014 at 12:28 PM, Danesh Kuruppu 
>>> wrote:
>>>
 Congrats Sewwandi !!!

 On Wed, Sep 17, 2014 at 12:23 PM, Dhanuka Ranasinghe 
 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 >> > 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 
> wrote:
>
>>
>> Congradulations Sewwandi
>>
>> On Wed, Sep 17, 2014 at 12:13 PM, Manula Chathurika Thantriwatte
>>  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 
 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
>> 
>>
>>
>> ___
>> 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
 ht

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

> Congratz Sewwandi .
>
> On Tue, Sep 16, 2014 at 11:26 PM, Ramith Jayasinghe 
> 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* 
___
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  wrote:

> Congrats Sewwandi !!!
>
> On Wed, Sep 17, 2014 at 1:57 PM, Ishara Karunarathna 
> wrote:
>
>> Congratz Sewwandi .
>>
>> On Tue, Sep 16, 2014 at 11:26 PM, Ramith Jayasinghe 
>> 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* 
>
>
> ___
> 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  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 
> wrote:
>
>> Congrats Sewwandi !!!
>>
>> On Wed, Sep 17, 2014 at 1:57 PM, Ishara Karunarathna 
>> wrote:
>>
>>> Congratz Sewwandi .
>>>
>>> On Tue, Sep 16, 2014 at 11:26 PM, Ramith Jayasinghe 
>>> 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* 
>>
>>
>> ___
>> 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 me

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

> Congratulations Sewwandi!
>
> Regards,
> Heshani
>
> On Wed, Sep 17, 2014 at 2:00 PM, Shazni Nazeer  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 
>> wrote:
>>
>>> Congrats Sewwandi !!!
>>>
>>> On Wed, Sep 17, 2014 at 1:57 PM, Ishara Karunarathna 
>>> wrote:
>>>
 Congratz Sewwandi .

 On Tue, Sep 16, 2014 at 11:26 PM, Ramith Jayasinghe 
 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* 
>>>
>>>
>>> ___
>>> 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 
wrote:

> Congratz Sewwandi..!!!
>
> Thanks,
> Reka
>
> On Wed, Sep 17, 2014 at 2:03 PM, Heshani Gamage  wrote:
>
>> Congratulations Sewwandi!
>>
>> Regards,
>> Heshani
>>
>> On Wed, Sep 17, 2014 at 2:00 PM, Shazni Nazeer  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 
>>> wrote:
>>>
 Congrats Sewwandi !!!

 On Wed, Sep 17, 2014 at 1:57 PM, Ishara Karunarathna 
 wrote:

> Congratz Sewwandi .
>
> On Tue, Sep 16, 2014 at 11:26 PM, Ramith Jayasinghe 
> 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* 


 ___
 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 
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 
>> wrote:
>>
>>> Hi Udara,
>>> Yes, We will do the needful.
>>>
>>> Thanks,
>>> Thushara.
>>>
>>> On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage  wrote:
>>>


 On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya 
 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.
>    trace="enable" type="jms" xmlns="
> http://wso2.org/carbon/eventadaptormanager";>
>   
>   tcp://10.100.5.175:61616
> 
>    name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory
>    name="transport.jms.ConnectionFactoryJNDIName">TopicConnectionFactory
>   topic
> 
> 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 
> 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 
>> wrote:
>>
>>> We have installed mysql for OSX 10.9 [1]
>>>
>>> [1] http://www.macminivault.com/mysql-mavericks/
>>>
>>> On Tue, S

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  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
>
> 
> 
> wso2-nexus
> WSO2 internal Repository
> http://maven.wso2.org/nexus/content/groups/wso2-public/
> 
> true
> daily
> fail
> 
> 
>
> 
>
> And try to add plugin-repository in your pom file.
>
> 
> 
> wso2-maven2-repository-1
> http://dist.wso2.org/maven2
> 
> 
> wso2-maven2-repository-2
> http://dist.wso2.org/snapshots/maven2
> 
> 
> repository.dev.java.net-maven2
> Java.net Repository for Maven
> http://download.java.net/maven/2/
> default
> 
> 
>
>
> Do a clean mvn build. This may solve your problem
>
>
> Regards,
> Firzhan
>
> On Wed, Sep 17, 2014 at 12:44 PM, Lahiru Cooray  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]
>> --

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  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 
> 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 
>>> wrote:
>>>
 Hi Udara,
 Yes, We will do the needful.

 Thanks,
 Thushara.

 On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage 
 wrote:

>
>
> On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya 
> 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.
>> >   trace="enable" type="jms" xmlns="
>> http://wso2.org/carbon/eventadaptormanager";>
>>   
>>   tcp://10.100.5.175:61616
>> 
>>   > name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory
>>   > name="transport.jms.ConnectionFactoryJNDIName">TopicConnectionFactory
>>   topic
>> 
>> 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 
>> wrote:
>>
>>> Hi Thushara and Suhan

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

> Hi Udara,
> Yes, We will do the needful.
>
> Thanks,
> Thushara.
>
> On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage 
> wrote:
>
>>
>>
>> On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya > > 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.
>>> >>   trace="enable" type="jms" xmlns="
>>> http://wso2.org/carbon/eventadaptormanager";>
>>>   
>>>   tcp://10.100.5.175:61616
>>> 
>>>   >> name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory
>>>   >> name="transport.jms.ConnectionFactoryJNDIName">TopicConnectionFactory
>>>   topic
>>> 
>>> 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   |
>>> +---

[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 
> 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 
>> 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 >>> > wrote:

> Hi Udara,
> Yes, We will do the needful.
>
> Thanks,
> Thushara.
>
> On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage 
> wrote:
>
>>
>>
>> On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya > > 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.
>>> >>   trace="enable" type="jms" xmlns="
>>> http://wso2.org/carbon/eventadaptormanager";>
>>>   
>>>   tcp://10.100.5.175:61616
>>> 
>>>   >> name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory
>>>   >> name="transport.jms.ConnectionFactoryJNDIName">TopicConnecti

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

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

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

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

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

> Congratulations Sewwandi !!
>
> On Wed, Sep 17, 2014 at 2:21 PM, Reka Thirunavukkarasu 
> wrote:
>
>> Congratz Sewwandi..!!!
>>
>> Thanks,
>> Reka
>>
>> On Wed, Sep 17, 2014 at 2:03 PM, Heshani Gamage  wrote:
>>
>>> Congratulations Sewwandi!
>>>
>>> Regards,
>>> Heshani
>>>
>>> On Wed, Sep 17, 2014 at 2:00 PM, Shazni Nazeer  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 
 wrote:

> Congrats Sewwandi !!!
>
> On Wed, Sep 17, 2014 at 1:57 PM, Ishara Karunarathna  > wrote:
>
>> Congratz Sewwandi .
>>
>> On Tue, Sep 16, 2014 at 11:26 PM, Ramith Jayasinghe 
>> 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* 
>
>
> ___
> 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 *
lean.enterprise.middleware.

On Wed, Sep 17, 2014 at 3:31 PM, Inosh Perera  wrote:

> congrats Sewwandi!! :)
>
>
> On Wed, Sep 17, 2014 at 2:24 PM, Pamod Sylvester  wrote:
>
>> Congratulations Sewwandi !!
>>
>> On Wed, Sep 17, 2014 at 2:21 PM, Reka Thirunavukkarasu 
>> wrote:
>>
>>> Congratz Sewwandi..!!!
>>>
>>> Thanks,
>>> Reka
>>>
>>> On Wed, Sep 17, 2014 at 2:03 PM, Heshani Gamage 
>>> wrote:
>>>
 Congratulations Sewwandi!

 Regards,
 Heshani

 On Wed, Sep 17, 2014 at 2:00 PM, Shazni Nazeer  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 
> 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 >> > 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* 
>>
>>
>> ___
>> 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  wrote:

> congratz Sewwandi 
>
> Best Regards,
>
> Lakshitha Harshan
> Software Engineer
> Mobile: *+94724423048*
> Email: hars...@wso2.com
> Blog : http://harshanliyanage.blogspot.com/
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>
> On Wed, Sep 17, 2014 at 3:31 PM, Inosh Perera  wrote:
>
>> congrats Sewwandi!! :)
>>
>>
>> On Wed, Sep 17, 2014 at 2:24 PM, Pamod Sylvester  wrote:
>>
>>> Congratulations Sewwandi !!
>>>
>>> On Wed, Sep 17, 2014 at 2:21 PM, Reka Thirunavukkarasu 
>>> wrote:
>>>
 Congratz Sewwandi..!!!

 Thanks,
 Reka

 On Wed, Sep 17, 2014 at 2:03 PM, Heshani Gamage 
 wrote:

> Congratulations Sewwandi!
>
> Regards,
> Heshani
>
> On Wed, Sep 17, 2014 at 2:00 PM, Shazni Nazeer 
> 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 
>> 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* 
>>>
>>>
>>> ___
>>> 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 
Twitter - @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  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 
> wrote:
>
>> Thanks Manoj.
>>
>> Anjana, Can you please review this pull request?
>>
>> Thanks,
>> Sameera.
>>
>> On Thu, Sep 11, 2014 at 9:22 PM, Manoj Kumara  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 
>>> 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 
 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 
> 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
>>
>> 
>> > type="datasource/datasource" serverRole="ApplicationServer">
>> DataSource.xml
>> 
>>
>> Thanks,
>>
>>
>> On Mon, Jul 28, 2014 at 11:37 AM, Sohani Weerasinghe > > 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  > 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,
>>

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

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

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.


org.apache.axis2.wso2
axis2-client
1.6.1.wso2v10


Working sample pom file attached.

Thanks

On Wed, Sep 17, 2014 at 12:29 PM, Amal Gunatilake  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.
>
>  location="/Users/rajeevanv/.m2/repository/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar"/>\
>  location="/Users/rajeevanv/.m2/repository/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar"
>  />\
>  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 
> 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 
>>> 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

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

student-manager-components
org.wso2.carbon
4.2.0

4.0.0

org.wso2.carbon.student.mgt.stub

bundle
WSO2 Carbon - Student Manager Stub



org.apache.axis2.wso2
axis2
1.6.1.wso2v10


org.apache.ws.commons.axiom.wso2
axiom
1.2.11.wso2v4


wsdl4j.wso2
wsdl4j
1.6.2.wso2v4


org.apache.axis2.wso2
axis2-client
1.6.1.wso2v10






org.apache.maven.plugins
maven-antrun-plugin
1.1


source-code-generation
process-resources

run










   

[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 the"Production 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
org.wso2.carbon.ndatasource.core.internal.DataSourceServiceCompo

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  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  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 
>> wrote:
>>
>>> Thanks Manoj.
>>>
>>> Anjana, Can you please review this pull request?
>>>
>>> Thanks,
>>> Sameera.
>>>
>>> On Thu, Sep 11, 2014 at 9:22 PM, Manoj Kumara  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 
 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 
> 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 
>> 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
>>>
>>> 
>>> >> type="datasource/datasource" serverRole="ApplicationServer">
>>> DataSource.xml
>>> 
>>>
>>> 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?
>
>
>>

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.


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

student-manager-components
org.wso2.carbon
4.2.0

4.0.0

org.wso2.carbon.student.mgt.stub

bundle
WSO2 Carbon - Student Manager Stub



org.apache.axis2.wso2
axis2
1.6.1.wso2v10


org.apache.axis2.wso2
axis2-client
1.6.1.wso2v10


org.apache.ws.commons.axiom.wso2
axiom
1.2.11.wso2v4


wsdl4j.wso2
wsdl4j
1.6.2.wso2v4





wso2-nexus
WSO2 internal Repository
http://maven.wso2.org/nexus/content/groups/wso2-public/


true
daily
ignore







org.apache.maven.plugins
maven-antrun-plugin
1.1


source-code-generation
process-resources

run



















org.codehaus.mojo
build-helper-maven-plugin


add-source
generate-sources

add-source



target/generated-code/src







org.apache.felix
maven-bundle-plugin
true



${project.artifactId}
${project.artifactId}



org.wso2.carbon.student.mgt.*


!org.wso2.carbon.student.mgt.*

*







On Wed, Sep 17, 2014 at 4:52 PM, Prasanna Dangalla 
wrote:

> Hi Vimalathan,
>
> Add the following dependency and check whether its working.
>
> 
> org.apache.axis2.wso2
> axis2-client
> 1.6.1.wso2v10
> 
>
> Working sample pom file attached.
>
> Thanks
>
> On Wed, Sep 17, 2014 at 12:29 PM, Amal Gunatilake  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.
>>
>> > location="/Users/rajeevanv/.m2/repository/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar"/>\
>> > location="/Users/rajeevanv/.m2/repository/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar"
>>  />\
>> > 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 
>> 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 e

[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 
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
> org.eclipse.osgi.fra

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 
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  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 
>> 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?
>>>
>>> 
>>> 
>>> 
>>> true
>>>
>>> 
>>> subscriber
>>> 
>>>
>>> On Mon, Sep 15, 2014 at 7:05 AM, Evanthika Amarasiri >> > 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 
> 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 
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 
> 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)
>>  

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/

lean.enterprise.middleware

Mobile: +94722241032

On Tue, Sep 16, 2014 at 2:08 AM, Prasad Tissera  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  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/
>> 
>> 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  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/
 
 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")) {
Enumeration ifaces =
NetworkInterface.getNetworkInterfaces();
while (ifaces.hasMoreElements()) {
NetworkInterface iface = ifaces.nextElement();
Enumeration 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 
Twitter - @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: [0

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  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")) {
> Enumeration ifaces =
> NetworkInterface.getNetworkInterfaces();
> while (ifaces.hasMoreElements()) {
> NetworkInterface iface = ifaces.nextElement();
> Enumeration 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 
> Twitter - @dunithd 
>



-- 

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


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
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  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  wrote:

> Thank you Prasad..
> This is what I needed to get clarified
>
> *Asok Aravinda Perera*
> Software Engineer
> WSO2, Inc.;http://wso2.com/
> 
> lean.enterprise.middleware
>
> Mobile: +94722241032
>
> On Tue, Sep 16, 2014 at 2:08 AM, Prasad Tissera  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  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/
>>> 
>>> 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  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/
> 
> lean.enterprise.middle

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

> Hi Prasad and Asok,
>
> On Wed, Sep 17, 2014 at 7:04 PM, Asok Perera  wrote:
>
>> Thank you Prasad..
>> This is what I needed to get clarified
>>
>> *Asok Aravinda Perera*
>> Software Engineer
>> WSO2, Inc.;http://wso2.com/
>> 
>> lean.enterprise.middleware
>>
>> Mobile: +94722241032
>>
>> On Tue, Sep 16, 2014 at 2:08 AM, Prasad Tissera  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  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/
 
 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  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
>

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  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/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **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  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 
>>> 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
 /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 whet

[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  tag. Is it a
default behavior or not?

ex: