Re: [Dev] WSO2 Committers += Prasanna Dangalla

2015-04-08 Thread Shashika Karunatilaka
Congrats Prasanna

On Thu, Apr 9, 2015 at 9:14 AM, Thilini Cooray  wrote:

> Congratulations, Prasanna !
>
> On Thu, Apr 9, 2015 at 9:02 AM, Aruna Karunarathna  wrote:
>
>> Congratulations Prasa...!!!
>>
>> On Wed, Apr 8, 2015 at 7:37 PM, Dinesh J Weerakkody 
>> wrote:
>>
>>> Congratulations Prasanna...
>>>
>>> Thanks
>>>
>>> *Dinesh J. Weerakkody*
>>> Software Engineer
>>> WSO2 Inc.
>>> lean | enterprise | middleware
>>> M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
>>>
>>> On Thu, Apr 9, 2015 at 8:06 AM, Sagara Gunathunga 
>>> wrote:
>>>
 It's my pleasure to welcome Prasanna Dangalla as a WSO2 committer.
 Prasanna, welcome aboard and keep up the good work.


 Thanks !
 --
 Sagara Gunathunga

 Senior Technical Lead; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  http://ssagara.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
>>>
>>>
>>
>>
>> --
>>
>> *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
>>
>>
>
>
> --
> Best Regards,
>
> *Thilini Cooray*
> Software Engineer
> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
> E-mail : thili...@wso2.com
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Removing Temporary main() method

2015-04-19 Thread Shashika Karunatilaka
Hi Johan,

Shall i remove this main method from [1]

[1]
https://github.com/wso2/carbon4-kernel/blob/master/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/authorization/PermissionTreeUtil.java

On Mon, Apr 20, 2015 at 10:10 AM, Rajith Vitharana  wrote:

> Hi Anjana,
>
> Removed main method from DBUtils.java
>
> Thanks,
>
> On Mon, Apr 20, 2015 at 7:36 AM, Anjana Fernando  wrote:
>
>> Rajith please do the needful for the DBUtils class.
>>
>> Cheers,
>> Anjana.
>>
>> On Sun, Apr 19, 2015 at 5:39 PM, Gayan Gunawardana 
>> wrote:
>>
>>> Hi,
>>>
>>> Will it be possible to remove main method from following locations
>>> [1],[2] if they are not necessary.
>>>
>>> [1]
>>> https://github.com/wso2/carbon-data/blob/master/components/data-services/org.wso2.carbon.dataservices.core/src/main/java/org/wso2/carbon/dataservices/core/DBUtils.java
>>>
>>> [2]
>>> https://github.com/wso2/carbon4-kernel/blob/master/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/authorization/PermissionTreeUtil.java
>>>
>>> --
>>> Gayan Gunawardana
>>> Software Engineer; WSO2 Inc.; http://wso2.com/
>>> Email: ga...@wso2.com
>>> Mobile: +94 (71) 8020933
>>>
>>
>>
>>
>> --
>> *Anjana Fernando*
>> Senior Technical Lead
>> WSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware
>>
>
>
>
> --
> 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
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS][Carbon] A way to delay shutdown of hazelcast instance at server shutdown

2015-05-07 Thread Shashika Karunatilaka
HI Vinod,

AFAIK you have to implement [1] in BPS to handle these scenario in server
shutdown.

[1]
https://github.com/wso2/carbon4-kernel/blob/master/core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/ServerShutdownHandler.java

Thank you.

On Thu, May 7, 2015 at 8:58 PM, Vinod Kavinda  wrote:

> Hi all,
>
> I'm working on the issue [1] where we need to shutdown a time scheduler in
> BPS, before the hazelcast instance, at the server shutdown.
>
> I found this issue [2], but it is unresolved. Is there any workarounds?
>
> [1] - https://wso2.org/jira/browse/BPS-470
> [2] - https://wso2.org/jira/browse/CARBON-14719
>
> Thanks and Regards,
> Vinod Kavinda
> --
> Vinod Kavinda
> Software Engineer, *WSO2, Inc .*
> Mobile : +94 (0) 712 415544
> vi...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Can we add multiple product groups in automation.xml

2015-05-17 Thread Shashika Karunatilaka
Im in the process of creating platform test case.I need to get some
registry data in GREG product for my test case. My test case runs inside
the Application server.
When i add 2 product groups in automation.xml it throws an exception [1],
according to schema its possible to add multiple product groups, what
should be the issue, i have attached my automation.xml as well.


[1]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.18:test (default-test) on
project org.wso2.appserver.platform.tests: Execution default-test of goal
org.apache.maven.plugins:maven-surefire-plugin:2.18:test failed: There was
an error in the forked process

[ERROR] java.lang.ExceptionInInitializerError

[ERROR] at
org.wso2.carbon.automation.engine.context.AutomationContext.(AutomationContext.java:141)

[ERROR] at
org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:41)

[ERROR] at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)

[ERROR] at org.testng.TestNG.run(TestNG.java:983)

[ERROR] at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:295)

[ERROR] at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)

[ERROR] at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:90)

[ERROR] at
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)

[ERROR] at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)

[ERROR] at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

[ERROR] Caused by: java.lang.IllegalArgumentException: Error While reading
configurations[Ljava.lang.StackTraceElement;@2d7aece8

[ERROR] at
org.wso2.carbon.automation.engine.configurations.AutomationConfiguration.(AutomationConfiguration.java:26)

[ERROR] ... 10 more

-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792







6

standalone

false

true

false






http://10.100.2.51:/wd/hub/



firefox

/home/test/name/webDriver






jdbc:h2:testDB
wso2carbon
wso2carbon
org.h2.Driver


jdbc:h2:testDB
wso2carbon
wso2carbon
org.h2.Driver






keystores/products/wso2carbon.jks

JKS

wso2carbon

wso2carbon

wso2carbon




client-truststore.jks

JKS

wso2carbon





https://wso2.org/repo
file:///home/krishantha/test









admin
admin




testu1
testu1pass


testu2
testu2pass


testu3
testu3pass








admin
admin




testuser11
testuser11


testuser21
testuser21
















































localhost


9763
9443






localhost


9764
9444

Re: [Dev] Can we add multiple product groups in automation.xml

2015-05-17 Thread Shashika Karunatilaka
Hi all,

After offline chat had with dharshanaw this issue got fixed by
setting executionEnvironment to platform in automation.xml

Thank you

On Sun, May 17, 2015 at 3:37 PM, Shashika Karunatilaka 
wrote:

> Im in the process of creating platform test case.I need to get some
> registry data in GREG product for my test case. My test case runs inside
> the Application server.
> When i add 2 product groups in automation.xml it throws an exception [1],
> according to schema its possible to add multiple product groups, what
> should be the issue, i have attached my automation.xml as well.
>
>
> [1]
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.18:test (default-test) on
> project org.wso2.appserver.platform.tests: Execution default-test of goal
> org.apache.maven.plugins:maven-surefire-plugin:2.18:test failed: There was
> an error in the forked process
>
> [ERROR] java.lang.ExceptionInInitializerError
>
> [ERROR] at
> org.wso2.carbon.automation.engine.context.AutomationContext.(AutomationContext.java:141)
>
> [ERROR] at
> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:41)
>
> [ERROR] at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)
>
> [ERROR] at org.testng.TestNG.run(TestNG.java:983)
>
> [ERROR] at
> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:295)
>
> [ERROR] at
> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
>
> [ERROR] at
> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:90)
>
> [ERROR] at
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>
> [ERROR] at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>
> [ERROR] at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>
> [ERROR] Caused by: java.lang.IllegalArgumentException: Error While reading
> configurations[Ljava.lang.StackTraceElement;@2d7aece8
>
> [ERROR] at
> org.wso2.carbon.automation.engine.configurations.AutomationConfiguration.(AutomationConfiguration.java:26)
>
> [ERROR] ... 10 more
>
> --
> Shashika Prabath Karunatilaka,
> Software Engineer,
> WSO2, Inc: http://wso2.com/
> mobile : +94 77 7487792
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge the fix for CARBON-15235

2015-05-19 Thread Shashika Karunatilaka
Please review and merge the PR[1] for jira[2]

[1] https://github.com/wso2/wso2-axis2/pull/46
[2] https://wso2.org/jira/browse/CARBON-15235
-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to check whether a logged in user has admin role

2015-05-20 Thread Shashika Karunatilaka
HI Thilini,

Did you ended this started tenant flow

Thanks

On Thu, May 21, 2015 at 9:53 AM, Thilini Cooray  wrote:

> Hi,
>
> I was able to resolve the issue with the support of IS team.
>
> The problem has occurred because I was trying to authenticate a user of a
> different tenant domain using an admin of super tenant.
> IS maintains tenant isolation, therefore it cannot be done.
>
> So for each tenant domain we need to start a separate tenant flow and do
> the authentication within the flow of the tenant domain of the current user.
> After authentication, I retrieved all roles of the authenticated user and
> checked whether he has admin role.
>
> Following is the implementation.
>
> String tenantDomain = MultitenantUtils.getTenantDomain(username);
> PrivilegedCarbonContext.startTenantFlow();
> PrivilegedCarbonContext.getThreadLocalCarbonContext()
>.setTenantDomain(tenantDomain, true);
>
> UserStoreManager userstoremanager =
>   CarbonContext.getThreadLocalCarbonContext().getUserRealm()
>.getUserStoreManager();
>
> String tenantAwareUsername = 
> MultitenantUtils.getTenantAwareUsername(username);
>
> //authenticate user provided credentials
> if (userstoremanager.authenticate(tenantAwareUsername, password)) {
>log.info(username + " user authenticated successfully");
>//Get admin role name of the current domain
>String adminRoleName =
>  
> CarbonContext.getCurrentContext().getUserRealm().getRealmConfiguration()
>   .getAdminRoleName();
>
>String[] userRoles = 
> userstoremanager.getRoleListOfUser(tenantAwareUsername);
>
>//user is only authorized for exporting and importing if he is an admin of 
> his
>// domain
>if (Arrays.asList(userRoles).contains(adminRoleName)) {
>   log.info(username + " is authorized to import and export APIs");
>}
> }
>
> Thanks.
>
>
> On Thu, May 14, 2015 at 8:15 PM, Darshana Gunawardana 
> wrote:
>
>> On Thu, May 14, 2015 at 6:38 PM, Thilini Cooray 
>> wrote:
>>
>>> Hi,
>>>
>>> I am implementing API export feature for APIM.
>>>
>>> I want to check whether a logged in user has admin role, because we are
>>> going to allow only admin users to export and import APIs.
>>>
>>
>> If a particular feature needed to restricted, we usually done using
>> permission based manner. ie. To access RemoteUserStoreManager
>> functionalities, user needed to have /permission/admin/configure/security"
>> permission.
>>
>>
>>> Following is the source which I tried. But 
>>> userStoreManager.authenticate(username,
>>> password) does not authenticate tenant admins.
>>>
>>
>> The authenticate method of the remote RemoteUserStoreManagerService does
>> not create a session for given username password, rather just check whether
>> given credentials are correct.
>>
>> The sample [1] can use as a reference to authenticate and invoke methods
>> in RemoteUserStoreManagerService.
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/is/5.0.0/modules/samples/user-mgt/remote-user-mgt/src/main/java/org/wso2/remoteum/sample/RemoteUMClient.java
>>
>> Thanks,
>> Darshana.
>>
>>
>>> I get the session cookie by login using super tenant credentials.
>>>
>>> Any help is appreciated.
>>>
>>> Thank you.
>>>
>>>
>>> ServiceClient serviceClient;
>>> Options option;
>>>
>>>RemoteUserStoreManagerServiceStub userStoreManager =
>>>  new RemoteUserStoreManagerServiceStub(null, SERVICE_URL +
>>>  
>>> "RemoteUserStoreManagerService");
>>>
>>>serviceClient = userStoreManager._getServiceClient();
>>>option = serviceClient.getOptions();
>>>option.setManageSession(true);
>>>
>>> option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING,
>>>   sessionCookie);
>>>
>>>//Checking whether current user is authenticated and he has admin role
>>>if (userStoreManager.authenticate(username, password)) {
>>>
>>>   String adminRoleName =
>>> 
>>> CarbonContext.getCurrentContext().getUserRealm().getRealmConfiguration()
>>>  .getAdminRoleName();
>>>
>>>   if (userStoreManager.isExistingRole(adminRoleName)) {
>>>  userName = username;
>>>  LOG.info(username + " user authenticated successfully");
>>>  return true;
>>>   }
>>>}
>>>
>>>
>>> --
>>> Best Regards,
>>>
>>> *Thilini Cooray*
>>> Software Engineer
>>> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
>>> E-mail : thili...@wso2.com
>>>
>>> WSO2 Inc. www.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 .

Re: [Dev] [MB] Null pointer exception thrown when opening admin console

2015-05-21 Thread Shashika Karunatilaka
Hi Anuja,

Does this happen while you loggin to the management console?

Thank you.

On Thu, May 21, 2015 at 1:25 PM, Anuja Herath  wrote:

> Hi,
>
> I'm getting below exception when opening admin console.
>
> [2015-05-21 13:24:10,355] ERROR
> {org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient} -  Tenant
> domain has not been set in CarbonContext
>
> java.lang.NullPointerException: Tenant domain has not been set in
> CarbonContext
>
> at
> org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:79)
>
> at
> org.wso2.carbon.security.pox.POXSecurityHandler.getPOXCache(POXSecurityHandler.java:365)
>
> at
> org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:123)
>
> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
>
> at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
>
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
>
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
>
> at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:359)
>
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
>
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
>
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>
> at
> org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.loginWithRememberMeCookie(AuthenticationAdminStub.java:1724)
>
> at
> org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient.loginWithRememberMeCookie(AuthenticationAdminClient.java:99)
>
> at
> org.wso2.carbon.ui.DefaultCarbonAuthenticator.doAuthentication(DefaultCarbonAuthenticator.java:109)
>
> at
> org.wso2.carbon.ui.AbstractCarbonUIAuthenticator.handleSecurity(AbstractCarbonUIAuthenticator.java:218)
>
> at
> org.wso2.carbon.ui.BasicAuthUIAuthenticator.authenticateWithCookie(BasicAuthUIAuthenticator.java:96)
>
> at
> org.wso2.carbon.ui.CarbonUILoginUtil.saveOriginalUrl(CarbonUILoginUtil.java:118)
>
> at
> org.wso2.carbon.ui.CarbonSecuredHttpContext.handleSecurity(CarbonSecuredHttpContext.java:276)
>
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:60)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>
> at
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
>
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
>
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:183)
>
> at
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49)
>
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:146)
>
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
>
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
>
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
>
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
>
> at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
>
> at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
>
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:17

Re: [Dev] [MB] Null pointer exception thrown when opening admin console

2015-05-21 Thread Shashika Karunatilaka
Hi Anuja,

What is the MB version you are using, and this issue is fixed in the carbon
kernel 4.4.0, on this JIRA [1]

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

On Thu, May 21, 2015 at 2:04 PM, Anuja Herath  wrote:

> Hi Shashika,
>
> Yes, It happens when I login into console.
>
> Thank You.
>
> On Thu, May 21, 2015 at 2:03 PM, Shashika Karunatilaka  > wrote:
>
>> Hi Anuja,
>>
>> Does this happen while you loggin to the management console?
>>
>> Thank you.
>>
>> On Thu, May 21, 2015 at 1:25 PM, Anuja Herath  wrote:
>>
>>> Hi,
>>>
>>> I'm getting below exception when opening admin console.
>>>
>>> [2015-05-21 13:24:10,355] ERROR
>>> {org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient} -  Tenant
>>> domain has not been set in CarbonContext
>>>
>>> java.lang.NullPointerException: Tenant domain has not been set in
>>> CarbonContext
>>>
>>> at
>>> org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:79)
>>>
>>> at
>>> org.wso2.carbon.security.pox.POXSecurityHandler.getPOXCache(POXSecurityHandler.java:365)
>>>
>>> at
>>> org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:123)
>>>
>>> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
>>>
>>> at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
>>>
>>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
>>>
>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
>>>
>>> at
>>> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:359)
>>>
>>> at
>>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
>>>
>>> at
>>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
>>>
>>> at
>>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>>>
>>> at
>>> org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.loginWithRememberMeCookie(AuthenticationAdminStub.java:1724)
>>>
>>> at
>>> org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient.loginWithRememberMeCookie(AuthenticationAdminClient.java:99)
>>>
>>> at
>>> org.wso2.carbon.ui.DefaultCarbonAuthenticator.doAuthentication(DefaultCarbonAuthenticator.java:109)
>>>
>>> at
>>> org.wso2.carbon.ui.AbstractCarbonUIAuthenticator.handleSecurity(AbstractCarbonUIAuthenticator.java:218)
>>>
>>> at
>>> org.wso2.carbon.ui.BasicAuthUIAuthenticator.authenticateWithCookie(BasicAuthUIAuthenticator.java:96)
>>>
>>> at
>>> org.wso2.carbon.ui.CarbonUILoginUtil.saveOriginalUrl(CarbonUILoginUtil.java:118)
>>>
>>> at
>>> org.wso2.carbon.ui.CarbonSecuredHttpContext.handleSecurity(CarbonSecuredHttpContext.java:276)
>>>
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:60)
>>>
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>>>
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>>>
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>>
>>> at
>>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>>>
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>>>
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>>
>>> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>>>
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>>>
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>>
>>> at
>>> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>>>
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
>>>
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain

Re: [Dev] Tenant Cleanup Interval

2015-05-21 Thread Shashika Karunatilaka
Hi Bathiya,

Its also the same as in latest kernel versions.

Thank you.

On Fri, May 22, 2015 at 12:00 PM, Bhathiya Jayasekara 
wrote:

> Hi Malaka,
>
> In carbon 4.2.0, it can be done with below argument in wso2server.sh. Not
> sure about latest kernels.
>
> -Dtenant.idle.time=1 \
>
> Thanks,
> Bhathiya
>
> On Fri, May 22, 2015 at 11:31 AM, Malaka Silva  wrote:
>
>> Hi,
>>
>> Can we change the default value for $subject.
>>
>> I tried setting following in carbon.xml. It does not seem to be working.
>>
>> 
>> 
>> 
>> 1
>> 
>> 
>> 
>> 
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech Lead
>> M: +94 777 219 791
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>> http://www.wso2.com/about/team/malaka-silva/
>> 
>>
>> Save a tree -Conserve nature & Save the world for your future. Print this
>> email only if it is absolutely necessary.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Bhathiya Jayasekara*
> *Senior Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while running the Application server

2015-05-31 Thread Shashika Karunatilaka
HI,

Can you try running using java 1.6

On Mon, Jun 1, 2015 at 12:02 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi,
>
> Are you getting this in a fresh pack?
> Thanks
> /Thusitha
>
> On Mon, Jun 1, 2015 at 12:01 PM, Aaquibah Nashry  wrote:
>
>> Hi,
>> i get the following error when i try to run the application server. Can
>> anyone help me with this?
>>
>>
>> JAVA_HOME environment variable is set to /usr/lib/jvm/jdk1.7.0_79
>> CARBON_HOME environment variable is set to
>> /usr/nashry/home/SOFTWARES/org.wso2.carbon.server-4.2.0
>> wso2server.sh: 260: cd: can't cd to
>> /usr/nashry/home/SOFTWARES/org.wso2.carbon.server-4.2.0
>> Could not load Logmanager "org.apache.juli.ClassLoaderLogManager"
>> java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>> at java.util.logging.LogManager$1.run(LogManager.java:191)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.util.logging.LogManager.(LogManager.java:181)
>> at java.util.logging.Logger.demandLogger(Logger.java:339)
>> at java.util.logging.Logger.getLogger(Logger.java:393)
>> at com.sun.jmx.remote.util.ClassLogger.(ClassLogger.java:55)
>> at
>> sun.management.jmxremote.ConnectorBootstrap.(ConnectorBootstrap.java:823)
>> at sun.management.Agent.startLocalManagementAgent(Agent.java:144)
>> at sun.management.Agent.startAgent(Agent.java:264)
>> at sun.management.Agent.startAgent(Agent.java:456)
>> Error: Could not find or load main class
>> org.wso2.carbon.bootstrap.Bootstrap
>>
>> M.R.Aaquibah Nashry
>> *Intern, Engineering*
>> Mobile : +94 773946123
>> Tel  : +94 112662541
>> nas...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WS-Discovery support for JAX-WS/JAX-RS services

2015-06-02 Thread Shashika Karunatilaka
Please review and merge the implementation of feature [2] and test cases
[3] on JIRA [1]

[1] https://wso2.org/jira/browse/WSAS-1954
[2] https://github.com/wso2/carbon-deployment/pull/99
[3] https://github.com/wso2/product-as/pull/70

-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WS-Discovery support for JAX-WS/JAX-RS services

2015-06-02 Thread Shashika Karunatilaka
Hi Manoj

As per discussion i had with sameera, it will be done in the future as a
enhancement.

Thank you.

On Wed, Jun 3, 2015 at 10:26 AM, Manoj Kumara  wrote:

> Hi Shashika,
>
> Can you check the pull request with the suggestions of the last code
> review. IIRC we suggested to remove usage of axiom for xml processing.
>
> Regards,
> Manoj
>
>
> *Manoj Kumara*
> Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94713448188
>
> On Tue, Jun 2, 2015 at 9:12 PM, Shashika Karunatilaka 
> wrote:
>
>> Please review and merge the implementation of feature [2] and test cases
>> [3] on JIRA [1]
>>
>> [1] https://wso2.org/jira/browse/WSAS-1954
>> [2] https://github.com/wso2/carbon-deployment/pull/99
>> [3] https://github.com/wso2/product-as/pull/70
>>
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WS-Discovery support for JAX-WS/JAX-RS services

2015-06-02 Thread Shashika Karunatilaka
Hi Manoj/Supun

Jira created to track on [1]

@Manoj: other than xml processing improvement i have added all the things
mentioned in the code review.

[1] https://wso2.org/jira/browse/WSAS-1955

On Wed, Jun 3, 2015 at 10:38 AM, Supun Malinga  wrote:

>
>
> On Wed, Jun 3, 2015 at 10:34 AM, Shashika Karunatilaka  > wrote:
>
>> Hi Manoj
>>
>> As per discussion i had with sameera, it will be done in the future as a
>> enhancement.
>>
>
> Let's create a jira to track this..
>
> thanks,
>
>>
>> Thank you.
>>
>> On Wed, Jun 3, 2015 at 10:26 AM, Manoj Kumara  wrote:
>>
>>> Hi Shashika,
>>>
>>> Can you check the pull request with the suggestions of the last code
>>> review. IIRC we suggested to remove usage of axiom for xml processing.
>>>
>>> Regards,
>>> Manoj
>>>
>>>
>>> *Manoj Kumara*
>>> Software Engineer
>>> WSO2 Inc. http://wso2.com/
>>> *lean.enterprise.middleware*
>>> Mobile: +94713448188
>>>
>>> On Tue, Jun 2, 2015 at 9:12 PM, Shashika Karunatilaka <
>>> shashi...@wso2.com> wrote:
>>>
>>>> Please review and merge the implementation of feature [2] and test
>>>> cases [3] on JIRA [1]
>>>>
>>>> [1] https://wso2.org/jira/browse/WSAS-1954
>>>> [2] https://github.com/wso2/carbon-deployment/pull/99
>>>> [3] https://github.com/wso2/product-as/pull/70
>>>>
>>>> --
>>>> Shashika Prabath Karunatilaka,
>>>> Software Engineer,
>>>> WSO2, Inc: http://wso2.com/
>>>> mobile : +94 77 7487792
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>
>>
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Supun Malinga,
>
> Senior Software Engineer,
> WSO2 Inc.
> http://wso2.com
> email: sup...@wso2.com 
> mobile: +94 (0)71 56 91 321
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WS-Discovery support for JAX-WS/JAX-RS services

2015-06-04 Thread Shashika Karunatilaka
Hi Nilmini,

Please find the Documentation link[1] for ws-discovery feature.

[1]
https://docs.google.com/document/d/1DH83Dh9eKLqIglFBTaKHG12yV5dw_LmR_JkOEIo9evo/edit#heading=h.z6c7wruwli2j

Thank you.

On Wed, Jun 3, 2015 at 10:48 AM, Shashika Karunatilaka 
wrote:

> Hi Manoj/Supun
>
> Jira created to track on [1]
>
> @Manoj: other than xml processing improvement i have added all the things
> mentioned in the code review.
>
> [1] https://wso2.org/jira/browse/WSAS-1955
>
> On Wed, Jun 3, 2015 at 10:38 AM, Supun Malinga  wrote:
>
>>
>>
>> On Wed, Jun 3, 2015 at 10:34 AM, Shashika Karunatilaka <
>> shashi...@wso2.com> wrote:
>>
>>> Hi Manoj
>>>
>>> As per discussion i had with sameera, it will be done in the future as a
>>> enhancement.
>>>
>>
>> Let's create a jira to track this..
>>
>> thanks,
>>
>>>
>>> Thank you.
>>>
>>> On Wed, Jun 3, 2015 at 10:26 AM, Manoj Kumara  wrote:
>>>
>>>> Hi Shashika,
>>>>
>>>> Can you check the pull request with the suggestions of the last code
>>>> review. IIRC we suggested to remove usage of axiom for xml processing.
>>>>
>>>> Regards,
>>>> Manoj
>>>>
>>>>
>>>> *Manoj Kumara*
>>>> Software Engineer
>>>> WSO2 Inc. http://wso2.com/
>>>> *lean.enterprise.middleware*
>>>> Mobile: +94713448188
>>>>
>>>> On Tue, Jun 2, 2015 at 9:12 PM, Shashika Karunatilaka <
>>>> shashi...@wso2.com> wrote:
>>>>
>>>>> Please review and merge the implementation of feature [2] and test
>>>>> cases [3] on JIRA [1]
>>>>>
>>>>> [1] https://wso2.org/jira/browse/WSAS-1954
>>>>> [2] https://github.com/wso2/carbon-deployment/pull/99
>>>>> [3] https://github.com/wso2/product-as/pull/70
>>>>>
>>>>> --
>>>>> Shashika Prabath Karunatilaka,
>>>>> Software Engineer,
>>>>> WSO2, Inc: http://wso2.com/
>>>>> mobile : +94 77 7487792
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Shashika Prabath Karunatilaka,
>>> Software Engineer,
>>> WSO2, Inc: http://wso2.com/
>>> mobile : +94 77 7487792
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Supun Malinga,
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> email: sup...@wso2.com 
>> mobile: +94 (0)71 56 91 321
>>
>
>
>
> --
> Shashika Prabath Karunatilaka,
> Software Engineer,
> WSO2, Inc: http://wso2.com/
> mobile : +94 77 7487792
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Saneth Dharmakeerthi

2015-06-08 Thread Shashika Karunatilaka
Many Congrats Saneth

On Tue, Jun 9, 2015 at 11:27 AM, Krishantha Samaraweera  wrote:

> Hi all,
>
> It's my pleasure to welcome Saneth Dharmakeerthi as a WSO2 Committer.
>
> Saneth, welcome aboard and keep up the good work!
>
> Thanks,
> Krishantha.
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middleware.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge the PR for carbon-platform-integration-utils

2015-06-17 Thread Shashika Karunatilaka
Please review and merge following PR [1]

[1] https://github.com/wso2/carbon-platform-integration-utils/pull/48

-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge tenant deletion support PRs

2015-06-25 Thread Shashika Karunatilaka
Hi,

Please find the tenant deletion support PRs( [1], [2], [3], [4]) and test
case for product-as [5]

[1] https://github.com/wso2/carbon4-kernel/pull/250
[2] https://github.com/wso2/carbon-multitenancy/pull/43
[3] https://github.com/wso2/carbon-commons/pull/104
[4] https://github.com/wso2/carbon-registry/pull/84
[5] https://github.com/wso2/product-as/pull/107

Thank you.
-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] how to set up WSO2 APP manager for this special case?

2015-07-02 Thread Shashika Karunatilaka
to publish api1_1 and api1_2, but is not allowed to publish api2_1,
>> api2_2, api2_3. And developer2 is allowed to publish api2_1, api2_2 and
>> api2_3, but is not allowed to publish api1_1 and api1_2.
>>
>> The catch here is that the current implementation of WSO2 API manager
>> allows each developer to publish other developer's api, which is not my
>> goal.
>>
>>
>>
>> Please advice how to configure WSO2 API manager to achieve my goal. Or
>> it's impossible?
>>
>> Any suggestion will be highly appreciated.
>>
>>
>>
>> Thanks in advance,
>>
>> Bill
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org 
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>>
>>
>>
>> --
>>
>> *Sam Sivayogam*
>>
>>
>>
>> Software Engineer
>>
>> Mobile  : +94 772 906 439
>> Office   : +94 112 145 345
>>
>> *WSO2, Inc. :* wso2.com
>>
>> lean.enterprise.middleware.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org 
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Rushmin Fernando*
> *Technical Lead*
>
> WSO2 Inc. <http://wso2.com/> - Lean . Enterprise . Middleware
>
> email : rush...@wso2.com
> 
> mobile : +94772310855
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org 
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Best Regards,*
*Shashika karunatilaka,*

*B.Sc in Computer Science,*
*University of Colombo School of Computing,*
*Software Engineer, WSO2 Inc(www.wso2.com <http://www.wso2.com>)*
*D. S. Senanayeka College.*
http://shashikabokks.wordpress.com


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


Re: [Dev] Fwd: Pull request to include tenant deletion support

2015-01-11 Thread Shashika Karunatilaka
HI all,

Below are my findings for the wso2 repos that uses the above listener
class, please correct me if i missed any.


Repo

Componenent

class

carbon-multitenancy

(org.wso2.carbon.theme.mgt.util)

ThemeLoadingListener.java

(org.wso2.carbon.keystore.mgt)

KeystoreTenantMgtListener.java

carbon-storage-management

(org.wso2.carbon.cassandra.server)

TenantCreationListener.java

(org.wso2.carbon.hdfs.mgt)

HDFSTenantCreationListener.java

carbon-event-processing

(org.wso2.carbon.event.stream.manager.core.internal.util.helper)

TenantMgtListenerImpl.java

carbon-identity

(org.wso2.carbon.idp.mgt.internal )

TenantManagementListener.java

(org.wso2.carbon.identity.application.authentication.framework.listener)

AuthenticationEndpointTenantActivityListener.java

product-af

(org.wso2.carbon.appfactory.listners.tenant)

AppFactoryTenantMgtListener.java

(org.wso2.carbon.appfactory.s2.listeners)

CloudEnvironmentPermissionListener.java

(org.wso2.carbon.appfactory.stratos.listeners)

CloudEnvironmentPermissionListener.java

(org.wso2.carbon.appfactory.listners.tenant)

DefaultRolesCreatorForTenant.java

(org.wso2.carbon.appfactory.stratos.listeners)

AppFactoryTenantKeyStoreMgtListener.java

(org.wso2.carbon.appfactory.s2.listeners)

AppFactoryTenantKeyStoreMgtListener.java

(org.wso2.carbon.appfactory.listners.tenant)

AppFactoryTenantActivationListener.java

(org.wso2.carbon.appfactory.stratos.listeners)

S2IntegrationTenantActivationListener.java

(org.wso2.carbon.appfactory.s2.listeners)

S2IntegrationTenantActivationListener.java

private-paas

(org.apache.stratos.theme.mgt.util)

ThemeLoadingListener.java

On Fri, Jan 9, 2015 at 8:47 PM, Shashika Karunatilaka 
wrote:

> Hi all,
>
> I will include newly added method to all respective repositories of
> *TenantMgtListener* interface, and also will create necessary JIRAs
>
> Thank you
>
> On Fri, Jan 9, 2015 at 1:02 PM, Lakshman Udayakantha 
> wrote:
>
>> [fowarding to dev]
>>
>> Since new method introduced in *TenantMgtListener *interface, There may
>> be build failures after committing this. how should we proceed with that?
>>
>>
>> Hi Carbon team,
>>
>> Please review and merge the pull requests [1] and [2] that is include the
>> changes in tenant deletion support.
>>
>> [1] https://github.com/wso2-dev/carbon4-kernel/pull/134
>> [2] https://github.com/wso2-dev/carbon-multitenancy/pull/15
>>
>> Thanks
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0711241005*
>>
>>
>>
>>
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0711241005*
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Shashika Prabath Karunatilaka,
> Software Engineer,
> WSO2, Inc: http://wso2.com/
> mobile : +94 77 7487792
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build Failure due to missing package in axiom 1.2.11.wso2v5

2015-01-11 Thread Shashika Karunatilaka
HI Pamod,

As per our offline chat, can you try to build the product using java 1.6

Thank you.

On Thu, Jan 8, 2015 at 8:43 PM, Pamod Sylvester  wrote:

> Hi All,
>
> When building our product we're seeing the following issue,
>
> Cannot complete the install because one or more required items could not
> be found.
>  Software being installed: WSO2 Carbon - Feature - Andes 4.3.0.SNAPSHOT
> (org.wso2.carbon.andes.feature.group 4.3.0.SNAPSHOT)
> * Missing requirement: axiom 1.2.11.wso2v5 (axiom 1.2.11.wso2v5) requires
> 'package org.w3c.dom 0.0.0' but it could not be found*
> * Cannot satisfy dependency:*
> *  From: axis2 1.6.1.wso2v11 (axis2 1.6.1.wso2v11)*
> *  To: package javax.mail.internet 1.4.0*
> * Cannot satisfy dependency:*
> *  From: org.wso2.carbon.andes 4.3.0.SNAPSHOT (org.wso2.carbon.andes
> 4.3.0.SNAPSHOT)*
> *  To: package org.apache.axis2.clustering [1.6.1.wso2v11,1.7.0)*
> * Cannot satisfy dependency:*
> *  From: WSO2 Carbon - Feature - Andes 4.3.0.SNAPSHOT
> (org.wso2.carbon.andes.feature.group 4.3.0.SNAPSHOT)*
> *  To: org.wso2.carbon.andes.server.feature.group [4.3.0.SNAPSHOT]*
> * Cannot satisfy dependency:*
> *  From: WSO2 Carbon - Feature - Andes - Server 4.3.0.SNAPSHOT
> (org.wso2.carbon.andes.server.feature.group 4.3.0.SNAPSHOT)*
> *  To: org.wso2.carbon.andes [4.3.0.SNAPSHOT]*
>
> Also found some what slimier issues being pointed out in [1], but a proper
> solution was not discussed. Please do advice. Also I've attached the full
> log trace.
>
> [1] http://www.eclipse.org/forums/index.php/t/373379/
>
> Thanks,
> Pamod
>
> --
> *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
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What is the recommended JSON message builder/formatter?

2015-01-12 Thread Shashika Karunatilaka
HI Vijayaratha,

You can get some idea, Follow this [1]

[1]
http://charithaka.blogspot.co.uk/2013/10/the-difference-between-json-streaming.html

On Mon, Jan 12, 2015 at 12:44 PM, Vijayaratha Vijayasingam 
wrote:

> Hi;
> I see 3 implementations for JSON message handling.
>
>- org.apache.synapse.commons.json.*
>- org.apache.axis2.json.JSON*
>- org.apache.axis2.json.JSONBadgerfish*
>
>
> Are we using axis2 implementation/moved to synapse implementation? What
> are the pros in synapse implementation?
>
> Thanks.
>
> --
> -Ratha
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: Pull request to include tenant deletion support

2015-01-14 Thread Shashika Karunatilaka
Hi all,

I have created PRs for the respective repositories(I have added a comment
in each PR). Please merge the Tenant deletion PRs and merge the following
PRs.

*carbon-multitenancy*

JIRA : <http://goog_2064092294/>https://wso2.org/jira/browse/WSAS-1882
PR : https://github.com/wso2-dev/carbon-multitenancy/pull/16

*carbon-storage-management*

JIRA :  https://wso2.org/jira/browse/SS-454
<https://github.com/wso2-dev/carbon-event-processing/pull/45>
PR : https://github.com/wso2-dev/carbon-storage-management/pull/97

*carbon-event-processing*

JIRA : https://wso2.org/jira/browse/CEP-1000
<https://github.com/wso2-dev/carbon-event-processing/pull/45>
PR : https://github.com/wso2-dev/carbon-event-processing/pull/45

*carbon-identity*

JIRA : https://wso2.org/jira/browse/IDENTITY-2984
<https://github.com/wso2-dev/carbon-event-processing/pull/45>
PR : https://github.com/wso2-dev/carbon-identity/pull/63


Thank You

On Mon, Jan 12, 2015 at 10:48 AM, Shashika Karunatilaka 
wrote:

> HI all,
>
> Below are my findings for the wso2 repos that uses the above listener
> class, please correct me if i missed any.
>
>
> Repo
>
> Componenent
>
> class
>
> carbon-multitenancy
>
> (org.wso2.carbon.theme.mgt.util)
>
> ThemeLoadingListener.java
>
> (org.wso2.carbon.keystore.mgt)
>
> KeystoreTenantMgtListener.java
>
> carbon-storage-management
>
> (org.wso2.carbon.cassandra.server)
>
> TenantCreationListener.java
>
> (org.wso2.carbon.hdfs.mgt)
>
> HDFSTenantCreationListener.java
>
> carbon-event-processing
>
> (org.wso2.carbon.event.stream.manager.core.internal.util.helper)
>
> TenantMgtListenerImpl.java
>
> carbon-identity
>
> (org.wso2.carbon.idp.mgt.internal )
>
> TenantManagementListener.java
>
> (org.wso2.carbon.identity.application.authentication.framework.listener)
>
> AuthenticationEndpointTenantActivityListener.java
>
> product-af
>
> (org.wso2.carbon.appfactory.listners.tenant)
>
> AppFactoryTenantMgtListener.java
>
> (org.wso2.carbon.appfactory.s2.listeners)
>
> CloudEnvironmentPermissionListener.java
>
> (org.wso2.carbon.appfactory.stratos.listeners)
>
> CloudEnvironmentPermissionListener.java
>
> (org.wso2.carbon.appfactory.listners.tenant)
>
> DefaultRolesCreatorForTenant.java
>
> (org.wso2.carbon.appfactory.stratos.listeners)
>
> AppFactoryTenantKeyStoreMgtListener.java
>
> (org.wso2.carbon.appfactory.s2.listeners)
>
> AppFactoryTenantKeyStoreMgtListener.java
>
> (org.wso2.carbon.appfactory.listners.tenant)
>
> AppFactoryTenantActivationListener.java
>
> (org.wso2.carbon.appfactory.stratos.listeners)
>
> S2IntegrationTenantActivationListener.java
>
> (org.wso2.carbon.appfactory.s2.listeners)
>
> S2IntegrationTenantActivationListener.java
>
> private-paas
>
> (org.apache.stratos.theme.mgt.util)
>
> ThemeLoadingListener.java
>
> On Fri, Jan 9, 2015 at 8:47 PM, Shashika Karunatilaka 
> wrote:
>
>> Hi all,
>>
>> I will include newly added method to all respective repositories of
>> *TenantMgtListener* interface, and also will create necessary JIRAs
>>
>> Thank you
>>
>> On Fri, Jan 9, 2015 at 1:02 PM, Lakshman Udayakantha 
>> wrote:
>>
>>> [fowarding to dev]
>>>
>>> Since new method introduced in *TenantMgtListener *interface, There may
>>> be build failures after committing this. how should we proceed with
>>> that?
>>>
>>>
>>> Hi Carbon team,
>>>
>>> Please review and merge the pull requests [1] and [2] that is include
>>> the changes in tenant deletion support.
>>>
>>> [1] https://github.com/wso2-dev/carbon4-kernel/pull/134
>>> [2] https://github.com/wso2-dev/carbon-multitenancy/pull/15
>>>
>>> Thanks
>>> --
>>> Lakshman Udayakantha
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>> Mobile: *0711241005*
>>>
>>>
>>>
>>>
>>> --
>>> Lakshman Udayakantha
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>> Mobile: *0711241005*
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>
>
>
> --
> Shashika Prabath Karunatilaka,
> Software Engineer,
> WSO2, Inc: http://wso2.com/
> mobile : +94 77 7487792
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: Pull request to include tenant deletion support

2015-01-22 Thread Shashika Karunatilaka
adding Suho

On Fri, Jan 16, 2015 at 11:13 PM, KasunG Gajasinghe  wrote:

> Hi,
>
> This feature will be merged into Kernel 4.4.0-SNAPSHOT. The downstream
> projects should depend on kernel 4.3.0. So, there won't be any build breaks.
>
> Further, repo is currently depending carbon-multitenancy kernel 4.3.0. So,
> we might have to wait until a release happens from that repo. Otherwise, we
> will have to create a parallel branch.
>
>
> On Fri, Jan 16, 2015 at 12:28 PM, Lakshman Udayakantha  > wrote:
>
>> Hi All,
>>
>> when I delete tenant in wso2as-6.0.0-SNAPSHOT, got the following exception
>>
>> Error executing query DELETE FROM UM_CLAIM_BEHAVIOR WHERE UM_TENANT_ID =
>> ? for tenant: 1
>>
>> org.h2.jdbc.JdbcSQLException: Table "UM_CLAIM_BEHAVIOR" not found; SQL
>> statement:
>>
>> DELETE FROM UM_CLAIM_BEHAVIOR WHERE UM_TENANT_ID = ? [42102-140]
>>
>> at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
>>
>> at org.h2.message.DbException.get(DbException.java:167)
>>
>>
>> seems like UM_CLAIM_BEHAVIOR  table is not in database. How should I
>> proceed in this case?
>>
>> On Thu, Jan 15, 2015 at 8:45 PM, Johann Nallathamby 
>> wrote:
>>
>>> Was this code reviewed ? The new method in the listener does not follow
>>> the same convention as others. It says "onPreDelete", but other methods
>>> don't follow "pre/post" convention and you don't have hooks for all pre
>>> process actions.
>>>
>>> Can you please add pre process hooks for all the methods in that case ?
>>> Because if we miss to add it this time we won't be able to add it until
>>> next major release of this repo. So please use the opportunity to fix it.
>>>
>>> Also the comment on the interface is not correct. It says something
>>> specific to your implementation.
>>>
>>> On Wed, Jan 14, 2015 at 3:10 PM, Aruna Karunarathna 
>>> wrote:
>>>
>>>> I believe we need to merge all these PR's related to tenant deletion at
>>>> onetime coordinated manner. Otherwise there will be build breaks.
>>>>
>>>>
>>>> Regards,
>>>> Aruna
>>>>
>>>> On Wed, Jan 14, 2015 at 3:06 PM, Shashika Karunatilaka <
>>>> shashi...@wso2.com> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> I have created PRs for the respective repositories(I have added a
>>>>> comment in each PR). Please merge the Tenant deletion PRs and merge the
>>>>> following PRs.
>>>>>
>>>>> *carbon-multitenancy*
>>>>>
>>>>> JIRA : <http://goog_2064092294/>https://wso2.org/jira/browse/WSAS-1882
>>>>> PR : https://github.com/wso2-dev/carbon-multitenancy/pull/16
>>>>>
>>>>> *carbon-storage-management*
>>>>>
>>>>> JIRA :  https://wso2.org/jira/browse/SS-454
>>>>> <https://github.com/wso2-dev/carbon-event-processing/pull/45>
>>>>> PR : https://github.com/wso2-dev/carbon-storage-management/pull/97
>>>>>
>>>>> *carbon-event-processing*
>>>>>
>>>>> JIRA : https://wso2.org/jira/browse/CEP-1000
>>>>> <https://github.com/wso2-dev/carbon-event-processing/pull/45>
>>>>> PR : https://github.com/wso2-dev/carbon-event-processing/pull/45
>>>>>
>>>>> *carbon-identity*
>>>>>
>>>>> JIRA : https://wso2.org/jira/browse/IDENTITY-2984
>>>>> <https://github.com/wso2-dev/carbon-event-processing/pull/45>
>>>>> PR : https://github.com/wso2-dev/carbon-identity/pull/63
>>>>>
>>>>>
>>>>> Thank You
>>>>>
>>>>> On Mon, Jan 12, 2015 at 10:48 AM, Shashika Karunatilaka <
>>>>> shashi...@wso2.com> wrote:
>>>>>
>>>>>> HI all,
>>>>>>
>>>>>> Below are my findings for the wso2 repos that uses the above
>>>>>> listener class, please correct me if i missed any.
>>>>>>
>>>>>>
>>>>>> Repo
>>>>>>
>>>>>> Componenent
>>>>>>
>>>>>> class
>>>>>>
>>>>>> carbon-multitenancy
>>>>>>
>>>>>> (org.wso2.carbon.theme.mg

[Dev] Comparing two json objects

2015-01-26 Thread Shashika Karunatilaka
Hi,

Currently i need to do the $subject for a test case, found this blog [1].
what is the best way of doing $subject

[1]
http://madhukaudantha.blogspot.com/2014/03/comparing-json-java-testing.html

Thank you.

-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Comparing two json objects

2015-01-26 Thread Shashika Karunatilaka
H Shiva/Dimuthu

Thanks for the prompt reply.
@Shiva
i used that JsonAssert according to the blog i mentioned, and added the
below dependency



org.skyscreamer
jsonassert
1.2.3




On Mon, Jan 26, 2015 at 5:36 PM, Dimuthu De Lanerolle 
wrote:

> Hi Shashika,
>
> Hope this helpsl.
>
> [1]
> http://stackoverflow.com/questions/2253750/compare-two-json-objects-in-java
> [2] simple.parser.JSONParser -
> https://github.com/wso2-dev/carbon-platform-integration-utils/blob/master/common-framework-tests/src/main/java/org/wso2/carbon/integration/common/tests/JaggeryServerTest.java
>
> Regards
>
> On Mon, Jan 26, 2015 at 5:34 PM, Shiva Balachandran 
> wrote:
>
>> Hi Shashika,
>>
>> You can try JsonUnit <https://github.com/lukas-krecan/JsonUnit>. It can
>> compare two JSON objects and report differences. It's built on top of
>> Jackson.
>>
>> E.g-
>> assertJsonEquals("{\"test\":1}", "{\n\"test\": 2\n}");
>>
>> Results -
>> java.lang.AssertionError: JSON documents are different:
>> Different value found in node "test". Expected 1, got 2.
>>
>> or You can try JsonAssert [1].
>>
>> [1] - http://jsonassert.skyscreamer.org/quickstart.html
>>
>>
>>
>> Thank you,
>> Shiva Balachandran
>>
>>
>> On Mon, Jan 26, 2015 at 5:13 PM, Shashika Karunatilaka <
>> shashi...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> Currently i need to do the $subject for a test case, found this blog
>>> [1]. what is the best way of doing $subject
>>>
>>> [1]
>>> http://madhukaudantha.blogspot.com/2014/03/comparing-json-java-testing.html
>>>
>>>
>>> Thank you.
>>>
>>> --
>>> Shashika Prabath Karunatilaka,
>>> Software Engineer,
>>> WSO2, Inc: http://wso2.com/
>>> mobile : +94 77 7487792
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Shiva Balachandran
>> Software Engineer
>> WSO2 Inc.
>>
>> Mobile - +94 774445788
>> Blog - https://shivabalachandran.wordpress.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Dimuthu De Lanerolle
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middlewear.
> http://wso2.com/
> Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please merge the PR for Product-as

2015-01-27 Thread Shashika Karunatilaka
Hi,

Please merge the pull request [1] for product-as

[1] https://github.com/wso2/product-as/pull/40

-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please merge the following Test case for Product-as

2015-01-27 Thread Shashika Karunatilaka
HI

Please review and merge the following PR[1] on following JIRA [2]

[1] https://github.com/wso2/product-as/pull/41
[2] https://wso2.org/jira/browse/WSAS-1798



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue when running two AS instances on Windows command prompt.

2015-01-28 Thread Shashika Karunatilaka
Hi Irham,

I Tried your scenario on windows 7 mac VM, two instance on same command
prompt(START /B CMD /C CALL wso2server.bat and wso2server.bat -DportOffset=8
).
I used AS 6.0.0 SNAPSHOT pack and it works.

On Thu, Jan 29, 2015 at 10:43 AM, Aruna Karunarathna  wrote:

>
>
> On Thu, Jan 29, 2015 at 10:40 AM, Shani Ranasinghe  wrote:
>
>> Hi,
>>
>> This could be because the embedded H2 cannot create two instance at the
>> same time. Please make sure that there are no two instances running which
>> bind to the same WSO2CARBON_DB.
>>
>
> This is because the same carbon_home is set in the other instance also.
> Try initiating the other server instance in a new Command prompt.
>
>
>>
>>
>> On Thu, Jan 29, 2015 at 10:11 AM, Irham Iqbal  wrote:
>>
>>> Hi,
>>>
>>> When i am trying to run two AS instance using one command prompt i am
>>> getting some exceptions.
>>>
>>> I have started the first instance(pack wso2as-1) using START /B CMD /C
>>> CALL wso2server.bat command to run this as background process then
>>> after when the server has started up ,i went to a different AS pack
>>> wso2as-2 from the same command prompt and run wso2server.bat
>>> -DportOffset=8 then only i am getting the exceptions. In the exception
>>> it's seems like it still using the older pack's path as carbon home.
>>> I have attached the error log.
>>>
>>> Thanks,
>>> Iqbal
>>>
>>> --
>>> Irham Iqbal
>>> Software Engineer - Test Automation
>>>  WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>> phone: +94 777888452
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks and Regards
>> *,Shani Ranasinghe*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 77 2273555
>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>
>> ___
>> 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
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge the PR on DSS

2015-02-05 Thread Shashika Karunatilaka
Hi,

Please review and merge the following PR [1] for [2]

[1] https://github.com/wso2/product-dss/pull/13
[2] https://wso2.org/jira/browse/CARBON-15046

Thank You
-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Can't add tenants in latest ES pack

2015-02-08 Thread Shashika Karunatilaka
HI ayesh,

This is due to missing the package *org.wso2.carbon.tenant.mgt.message* export
in [1]. Now this was fixed in the carbon-multitenancy 4.3.4.

[1]
https://github.com/wso2/carbon-multitenancy/blob/master/components/tenant-mgt/org.wso2.carbon.tenant.mgt/pom.xml

On Mon, Feb 9, 2015 at 11:36 AM, Ayesha Dissanayaka  wrote:

> Hi,
>
> I am facing $Subject and getting below error when trying to add a new
> tenant.
>
> [2015-02-09 11:09:57,765] ERROR
> {org.wso2.carbon.tenant.mgt.ui.utils.TenantMgtUtil} -  Failed to add tenant
> config. tenant-domain: a.com, tenant-admin: ayesha.
> org.apache.axis2.AxisFault:
> org/wso2/carbon/tenant/mgt/message/TenantDeleteClusterMessage
> at
> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
> at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
> at
> org.wso2.carbon.tenant.mgt.stub.TenantMgtAdminServiceStub.addTenant(TenantMgtAdminServiceStub.java:2718)
> at
> org.wso2.carbon.tenant.mgt.ui.clients.TenantServiceClient.addTenant(TenantServiceClient.java:90)
> at
> org.wso2.carbon.tenant.mgt.ui.utils.TenantMgtUtil.addTenantConfigBean(TenantMgtUtil.java:67)
> at
> org.apache.jsp.tenant_002dmgt.submit_005ftenant_005fajaxprocessor_jsp._jspService(submit_005ftenant_005fajaxprocessor_jsp.java:136)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:183)
> 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:146)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
> at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.jav

Re: [Dev] [ES] Can't add tenants in latest ES pack

2015-02-09 Thread Shashika Karunatilaka
Hi Supun,

I will look in to this

Thank you.

On Tue, Feb 10, 2015 at 9:39 AM, Supun Malinga  wrote:

> Shashika, since you are familiar with MT component, can you please own
> this and fix?.
> thanks,
>
> On Tue, Feb 10, 2015 at 3:14 AM, Harsha Kumara  wrote:
>
>> Hi Shashika/Ayesha,
>>
>> Got same issue while creating a tenant in latest SS pack with the
>> upgraded multitenancy version.  The issue seems to be causes with[1] . The
>> get element by id returns html element. When building the RegEX the value
>> of the html element need to be taken out.
>>
>> [1] -
>> https://github.com/wso2/carbon-registry/blob/master/components/registry/org.wso2.carbon.registry.common.ui/src/main/resources/web/registry_common/js/registry_validation.js#L129
>>
>> Thanks,
>> Harsha
>>
>> On Mon, Feb 9, 2015 at 1:28 PM, Ayesha Dissanayaka 
>> wrote:
>>
>>> Hi Shashika,
>>>
>>> Thanks for the response.
>>> But still I am getting error saying "The username contains illegal
>>> characters"  when adding tenants with some usernames only(ex: aysh,
>>> a). And no backend errors.
>>>
>>> Created this Jira reporting the issue.
>>> https://wso2.org/jira/browse/STORE-595
>>>
>>> Thanks!
>>> - Ayesha
>>>
>>> On Mon, Feb 9, 2015 at 11:51 AM, Shashika Karunatilaka <
>>> shashi...@wso2.com> wrote:
>>>
>>>> HI ayesh,
>>>>
>>>> This is due to missing the package *org.wso2.carbon.tenant.mgt.message*
>>>>  export in [1]. Now this was fixed in the carbon-multitenancy 4.3.4.
>>>>
>>>> [1]
>>>> https://github.com/wso2/carbon-multitenancy/blob/master/components/tenant-mgt/org.wso2.carbon.tenant.mgt/pom.xml
>>>>
>>>> On Mon, Feb 9, 2015 at 11:36 AM, Ayesha Dissanayaka 
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I am facing $Subject and getting below error when trying to add a new
>>>>> tenant.
>>>>>
>>>>> [2015-02-09 11:09:57,765] ERROR
>>>>> {org.wso2.carbon.tenant.mgt.ui.utils.TenantMgtUtil} -  Failed to add 
>>>>> tenant
>>>>> config. tenant-domain: a.com, tenant-admin: ayesha.
>>>>> org.apache.axis2.AxisFault:
>>>>> org/wso2/carbon/tenant/mgt/message/TenantDeleteClusterMessage
>>>>> at
>>>>> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
>>>>> at
>>>>> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
>>>>> at
>>>>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
>>>>> at
>>>>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
>>>>> at
>>>>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>>>>> at
>>>>> org.wso2.carbon.tenant.mgt.stub.TenantMgtAdminServiceStub.addTenant(TenantMgtAdminServiceStub.java:2718)
>>>>> at
>>>>> org.wso2.carbon.tenant.mgt.ui.clients.TenantServiceClient.addTenant(TenantServiceClient.java:90)
>>>>> at
>>>>> org.wso2.carbon.tenant.mgt.ui.utils.TenantMgtUtil.addTenantConfigBean(TenantMgtUtil.java:67)
>>>>> at
>>>>> org.apache.jsp.tenant_002dmgt.submit_005ftenant_005fajaxprocessor_jsp._jspService(submit_005ftenant_005fajaxprocessor_jsp.java:136)
>>>>> at
>>>>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>>>> at
>>>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
>>>>> at
>>>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
>>>>> at
>>>>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>>>> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
>>>>> at
>>>>> org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>>>> at
>>>>&g

Re: [Dev] [ES] Can't add tenants in latest ES pack

2015-02-09 Thread Shashika Karunatilaka
Seems this was a issue after adding this [1] to fix the following jira[2]

[1]
https://github.com/wso2/carbon-multitenancy/blob/master/components/tenant-mgt/org.wso2.carbon.tenant.mgt.ui/src/main/resources/web/tenant-mgt/add_tenant.jsp#L154
[2] https://wso2.org/jira/browse/REGISTRY-2326

On Tue, Feb 10, 2015 at 9:48 AM, Shashika Karunatilaka 
wrote:

> Hi Supun,
>
> I will look in to this
>
> Thank you.
>
> On Tue, Feb 10, 2015 at 9:39 AM, Supun Malinga  wrote:
>
>> Shashika, since you are familiar with MT component, can you please own
>> this and fix?.
>> thanks,
>>
>> On Tue, Feb 10, 2015 at 3:14 AM, Harsha Kumara  wrote:
>>
>>> Hi Shashika/Ayesha,
>>>
>>> Got same issue while creating a tenant in latest SS pack with the
>>> upgraded multitenancy version.  The issue seems to be causes with[1] . The
>>> get element by id returns html element. When building the RegEX the value
>>> of the html element need to be taken out.
>>>
>>> [1] -
>>> https://github.com/wso2/carbon-registry/blob/master/components/registry/org.wso2.carbon.registry.common.ui/src/main/resources/web/registry_common/js/registry_validation.js#L129
>>>
>>> Thanks,
>>> Harsha
>>>
>>> On Mon, Feb 9, 2015 at 1:28 PM, Ayesha Dissanayaka 
>>> wrote:
>>>
>>>> Hi Shashika,
>>>>
>>>> Thanks for the response.
>>>> But still I am getting error saying "The username contains illegal
>>>> characters"  when adding tenants with some usernames only(ex: aysh,
>>>> a). And no backend errors.
>>>>
>>>> Created this Jira reporting the issue.
>>>> https://wso2.org/jira/browse/STORE-595
>>>>
>>>> Thanks!
>>>> - Ayesha
>>>>
>>>> On Mon, Feb 9, 2015 at 11:51 AM, Shashika Karunatilaka <
>>>> shashi...@wso2.com> wrote:
>>>>
>>>>> HI ayesh,
>>>>>
>>>>> This is due to missing the package
>>>>> *org.wso2.carbon.tenant.mgt.message* export in [1]. Now this was
>>>>> fixed in the carbon-multitenancy 4.3.4.
>>>>>
>>>>> [1]
>>>>> https://github.com/wso2/carbon-multitenancy/blob/master/components/tenant-mgt/org.wso2.carbon.tenant.mgt/pom.xml
>>>>>
>>>>> On Mon, Feb 9, 2015 at 11:36 AM, Ayesha Dissanayaka 
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I am facing $Subject and getting below error when trying to add a new
>>>>>> tenant.
>>>>>>
>>>>>> [2015-02-09 11:09:57,765] ERROR
>>>>>> {org.wso2.carbon.tenant.mgt.ui.utils.TenantMgtUtil} -  Failed to add 
>>>>>> tenant
>>>>>> config. tenant-domain: a.com, tenant-admin: ayesha.
>>>>>> org.apache.axis2.AxisFault:
>>>>>> org/wso2/carbon/tenant/mgt/message/TenantDeleteClusterMessage
>>>>>> at
>>>>>> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
>>>>>> at
>>>>>> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
>>>>>> at
>>>>>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
>>>>>> at
>>>>>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
>>>>>> at
>>>>>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>>>>>> at
>>>>>> org.wso2.carbon.tenant.mgt.stub.TenantMgtAdminServiceStub.addTenant(TenantMgtAdminServiceStub.java:2718)
>>>>>> at
>>>>>> org.wso2.carbon.tenant.mgt.ui.clients.TenantServiceClient.addTenant(TenantServiceClient.java:90)
>>>>>> at
>>>>>> org.wso2.carbon.tenant.mgt.ui.utils.TenantMgtUtil.addTenantConfigBean(TenantMgtUtil.java:67)
>>>>>> at
>>>>>> org.apache.jsp.tenant_002dmgt.submit_005ftenant_005fajaxprocessor_jsp._jspService(submit_005ftenant_005fajaxprocessor_jsp.java:136)
>>>>>> at
>>>>>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>>>>> at
>>>>>> org.apache.jasper.servlet.

Re: [Dev] [AS] Polling Station Sample JS Code Patch for Google Chrome and Other Browsers

2015-02-12 Thread Shashika Karunatilaka
HI Rasika,

Please create public JIRA here [1] and attach your fix.

[1] https://wso2.org/jira/browse/WSAS

On Thu, Feb 12, 2015 at 5:27 PM, Rasika Perera  wrote:

> Hi all,
>
> WSO2 AS v5.2.1, Polling Station sample
>  does not work
> with Google Chrome and exceptional user agents. Because it is hard coded
> for IE, Gecko based(FF) and Opera. The documentation already has a
> recommendation for Firefox.
>
> [image: Inline image 1]
>
> Since, nowadays XMLSerializer() is supported by all `webkit` and `gecko`
> based browsers, I did a code patch for the `WSRequest.js` file.
>
> Now it is working for any user agent with `gecko-` or `web-kit` engines
> including Google Chrome and Safari.
>
> Please consider adding this file to the next release.
>
> NOTE: diff file and modified version of the file is attached.
>
> --
> With Regards,
>
> *Rasika Perera*
> Software Engineer
> M: +94 71 680 9060 E: rasi...@wso2.com
> LinkedIn: http://lk.linkedin.com/in/rasika90
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Deleting tenant related data from the DB level

2015-02-12 Thread Shashika Karunatilaka
HI all,

When adding tenant it creates some of DB level operations sequentially
as an *example*,
In tenant creation it creates a user, creates user roles, add permissions
to the roles and so on
when deleting there are few options

   1. Delete the role permissions for the user role, delete user roles for
   the user finally delete the user
   2. Delete  all the users, roles, role permissions data associated to
   that tenant

what would be the best approach?

Thank you

-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to Delete Tenant admin user

2015-02-15 Thread Shashika Karunatilaka
adding dev@

On Mon, Feb 16, 2015 at 10:12 AM, Shashika Karunatilaka 
wrote:

> Hi,
>
> I want to delete all the users associated to a tenant, to do that i'm
> taking the tenant's realm and get all the users and delete them. but when
> deleting admin user it doesnt allow to delete. I noticed that this is
> because when getting the tenant's realm it loads the tenant.
> How to achieve this??
>
> Thank you.
>
> --
> Shashika Prabath Karunatilaka,
> Software Engineer,
> WSO2, Inc: http://wso2.com/
> mobile : +94 77 7487792
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] HTTP Status 403 when trying to view the WSDL through the browser

2015-02-15 Thread Shashika Karunatilaka
HI Thusitha,

You have to set false in true
on /repository/conf/carbon.xml

Thank you.


On Mon, Feb 16, 2015 at 10:41 AM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi All,
>
> I'm trying to develop a simple carbon component based on [1]. After
> creating the component, I created the bundle and put it in the dropins
> folder and restarted the WSO2 Application server.
> When I try to access the wsdl of the created component as
> https://localhost:9443/services/OrderService?wsdl
>
> I'm getting 403 forbidden error.
> [image: Inline image 1]
>
> Is there any settings that I need to configure in order to view the WSDLs,
> which are deployed as Admin services?
>
> [1] -
> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
>
> Thank you.
> /Thusitha
> --
> Thusitha Dayaratne
> Software Engineer | WSO2 Inc
>
> Emailthusit...@wso2.com
> Mobile  +94712756809
> Blog  alokayasoya.blogspot.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Deleting tenant related data from the DB level

2015-02-16 Thread Shashika Karunatilaka
HI Kishanthan,

Yes, calling delete user API will internally delete all(roles, permissions)
data associated with that user. But there is a scenario where we cannot
delete the tenant admin user.
And my question here was, let say if this deleting process breaks at some
point, then it will remain those tenant related(none deleted) data in the
system. shouldn't this deletion process be atomic?

Thank you

On Mon, Feb 16, 2015 at 7:35 PM, Kishanthan Thangarajah  wrote:

> Shouldn't calling delete user API will internally delete all (roles,
> permissions) data associated with that user?
>
> On Fri, Feb 13, 2015 at 11:01 AM, Shashika Karunatilaka <
> shashi...@wso2.com> wrote:
>
>> HI all,
>>
>> When adding tenant it creates some of DB level operations sequentially
>> as an *example*,
>> In tenant creation it creates a user, creates user roles, add permissions
>> to the roles and so on
>> when deleting there are few options
>>
>>1. Delete the role permissions for the user role, delete user roles
>>for the user finally delete the user
>>2. Delete  all the users, roles, role permissions data associated to
>>that tenant
>>
>> what would be the best approach?
>>
>> Thank you
>>
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Senior Software Engineer,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>*
> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to delete All Claims of Dialect

2015-02-17 Thread Shashika Karunatilaka
Hi

Im in the process of deleting a tenant so to do that i need to delete all
the Dialects associated to that tenant but it doesnt allow to delete all
the claims associated that Dialect, is there any reason for not allowing
this. found that it was because of below line[1]

[1]
https://github.com/wso2/carbon4-kernel/blob/72fd99ad7fa602d838e1ec6984bb56712d64a8e4/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/claim/dao/ClaimDAO.java#L383
-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to delete All Claims of Dialect

2015-02-17 Thread Shashika Karunatilaka
Hi all,

Found that this was due to referential integrity constraints

On Tue, Feb 17, 2015 at 2:42 PM, Shashika Karunatilaka 
wrote:

> Hi
>
> Im in the process of deleting a tenant so to do that i need to delete all
> the Dialects associated to that tenant but it doesnt allow to delete all
> the claims associated that Dialect, is there any reason for not allowing
> this. found that it was because of below line[1]
>
> [1]
> https://github.com/wso2/carbon4-kernel/blob/72fd99ad7fa602d838e1ec6984bb56712d64a8e4/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/claim/dao/ClaimDAO.java#L383
> --
> Shashika Prabath Karunatilaka,
> Software Engineer,
> WSO2, Inc: http://wso2.com/
> mobile : +94 77 7487792
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Deleting tenant related data from the DB level

2015-02-18 Thread Shashika Karunatilaka
HI Johan,

Requirement here is to delete the tenant using API methods. Yes, to do that
i'm breaking the tenant deletion in to several methods.
Here I'm following the process of reverting the tenant creation.
As steps I'm trying to remove all the user management related data and
registry related data.
To remove the user management data I'm deleting the users, user roles, user
permissions so on.
During this i encountered the above issue of deleting the tenant admin. Yes
there is no way of deleting the tenant admin, here we trying to delete the
admin user, its roles. directly calling the DB. Do you see any other better
approach for this?

Thank you.

On Wed, Feb 18, 2015 at 1:33 PM, Johann Nallathamby  wrote:

> Can you please clarify, what is the requirement here ? As I can see you
> are trying to break tenant deletion into several methods. If DB
> transactions are not handled properly this will lead to inconsistent state.
>
> Currently we rely on cascade delete functionality of the database and that
> will make sure all the data is wiped out without leaving data in
> inconsistent state. Only for LDAP you have to separately delete the OUs
> which contain users and groups.
>
> Deleting tenant admin is also not something we support right now under the
> assumption we cannot change tenant admin once a tenant has been created.
>
>
>
> On Wed, Feb 18, 2015 at 12:31 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> For scenarios like above (delete tenant admin user) which we cannot use
>> the APIs, use the hard delete approach.
>>
>> On Tue, Feb 17, 2015 at 10:06 AM, Shashika Karunatilaka <
>> shashi...@wso2.com> wrote:
>>
>>> HI Kishanthan,
>>>
>>> Yes, calling delete user API will internally delete all(roles,
>>> permissions) data associated with that user. But there is a scenario where
>>> we cannot delete the tenant admin user.
>>> And my question here was, let say if this deleting process breaks at
>>> some point, then it will remain those tenant related(none deleted) data in
>>> the system. shouldn't this deletion process be atomic?
>>>
>>> Thank you
>>>
>>> On Mon, Feb 16, 2015 at 7:35 PM, Kishanthan Thangarajah <
>>> kishant...@wso2.com> wrote:
>>>
>>>> Shouldn't calling delete user API will internally delete all (roles,
>>>> permissions) data associated with that user?
>>>>
>>>> On Fri, Feb 13, 2015 at 11:01 AM, Shashika Karunatilaka <
>>>> shashi...@wso2.com> wrote:
>>>>
>>>>> HI all,
>>>>>
>>>>> When adding tenant it creates some of DB level operations sequentially
>>>>> as an *example*,
>>>>> In tenant creation it creates a user, creates user roles, add
>>>>> permissions to the roles and so on
>>>>> when deleting there are few options
>>>>>
>>>>>1. Delete the role permissions for the user role, delete user
>>>>>roles for the user finally delete the user
>>>>>2. Delete  all the users, roles, role permissions data associated
>>>>>to that tenant
>>>>>
>>>>> what would be the best approach?
>>>>>
>>>>> Thank you
>>>>>
>>>>> --
>>>>> Shashika Prabath Karunatilaka,
>>>>> Software Engineer,
>>>>> WSO2, Inc: http://wso2.com/
>>>>> mobile : +94 77 7487792
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Kishanthan Thangarajah*
>>>> Senior Software Engineer,
>>>> Platform Technologies Team,
>>>> WSO2, Inc.
>>>> lean.enterprise.middleware
>>>>
>>>> Mobile - +94773426635
>>>> Blog - *http://kishanthan.wordpress.com
>>>> <http://kishanthan.wordpress.com>*
>>>> Twitter - *http://twitter.com/kishanthan
>>>> <http://twitter.com/kishanthan>*
>>>>
>>>
>>>
>>>
>>> --
>>> Shashika Prabath Karunatilaka,
>>> Software Engineer,
>>> WSO2, Inc: http://wso2.com/
>>> mobile : +94 77 7487792
>>>
>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Senior Software Engineer,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> <http://kishanthan.wordpress.com>*
>> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Associate Technical Lead & Product Lead of WSO2 Identity Server
> Integration Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Registry related tenant data deletion

2015-02-22 Thread Shashika Karunatilaka
Hi,

Im in the process of deleting a tenant and all its related resources,so
what i came up with is to delete all the resources related to that tenant
using a direct DB call is there any other options to delete these data.
and if i to continue on the above approach what are the areas i have to
concern

-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Registry related tenant data deletion

2015-02-24 Thread Shashika Karunatilaka
Hi Senaka/all

To do delete the DB related data one option is to add a new method to
registry api called deleteAllTenantData(or suitable one) so i have to
implement this method on every dependent registry classes, Is it ok to
introduce new method to registry api?

As i see when deleting a registry resources it goes to
UserRegistry->CacheBackRegistry->EmbeddedRegistry and it calls data
deletion DAOs. So in my case do i need to go through this flow to delete
the DB data or is it enough calling the DB queries in UserRegistry tenant
data deletion method

Also i have another concern, as an example let say there is an association
related operation  so to do that it will go above process I mentioned and
call the DAOs, those DAOs are implemented in a structural manner where
JDBCAssociationDAO implemented all the AssociationDAO operation, in my case
do i need to adhere to above structure where adding all the registry
related table data deletion methods to interface and implement it or else
is it ok to call the queries directly?

Thank you.

On Tue, Feb 24, 2015 at 10:52 AM, Danesh Kuruppu  wrote:

> Hi Shashika,
>
> In solr indexing, we store the resource by its tenant_id
> (indexed_document_id = resourcePath + "tenant" + tenantId)
>
> e.g: Assume you stored resource from the tenant1, indexed document id
> looks like below,
>
> "id": "/_system/governance/services/aaa/aaa/1.0.0*tenantId1*"
>
> You can get all resource store under tenantId using wildcard search.
>
> id:**tenantId1*
>>
>
> In Solr server, they have provided an api to delete by query.
>
> deleteByQuery(String query)
>>
>
> We can write new method in SolrClient to support this and call it from
> your component. Currently we only support delete index by resource id where
> we need resource path.
>
> Thanks
> Danesh
>
> On Mon, Feb 23, 2015 at 7:14 PM, Senaka Fernando  wrote:
>
>> Hi Shashika,
>>
>> I believe this is the only way to do this. There are several things to
>> note here.
>>
>> 1. In memory data - Ideally unloading the tenant should clean-up all of
>> this and if it does not there is an issue.
>> 2. DB data - all the tables have a tenant-id column. What you need is a
>> query to delete all records matching that tenant id.
>> 3. Solr Index etc and Registry Extensions deployed on the Filesystem -
>> These should be in corresponding folder/files structures either having a
>> tenant id or tenant domain. I don't recall this is as X, Y, and Z and I
>> don't think anyone else would do too. You can scan the code (Registry
>> Kernel, Registry Component and Governance Component) but it can be tedious.
>> So, may be you can setup a tenant and grep for tenant-id/domain or grep for
>> "-1234" and "carbon.super" in the filesystem.
>> 4. Other related data - The kernel alone uses the filesystem (inside
>> repository/deployment) which you might need to clean. There are temporary
>> files created that many require cleaning and also logs, if you are
>> interested in a full wipeout. The registry utilises some of these standard
>> features from the kernel and some information (mostly transient) can be
>> found in those.
>>
>> Appreciate some help from others in the G-Reg team to identify anything I
>> missed.
>>
>> Thanks,
>> Senaka.
>>
>> On Mon, Feb 23, 2015 at 6:02 AM, Shashika Karunatilaka <
>> shashi...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> Im in the process of deleting a tenant and all its related resources,so
>>> what i came up with is to delete all the resources related to that tenant
>>> using a direct DB call is there any other options to delete these data.
>>> and if i to continue on the above approach what are the areas i have to
>>> concern
>>>
>>> --
>>> Shashika Prabath Karunatilaka,
>>> Software Engineer,
>>> WSO2, Inc: http://wso2.com/
>>> mobile : +94 77 7487792
>>>
>>
>>
>>
>> --
>>
>>
>> *[image: http://wso2.com] <http://wso2.com>Senaka Fernando*
>> Solutions Architect; WSO2 Inc.; http://wso2.com
>>
>>
>>
>> *Member; Apache Software Foundation; http://apache.org
>> <http://apache.org>E-mail: senaka AT wso2.com <http://wso2.com>**P: +1
>> 408 754 7388 <%2B1%20408%20754%207388>; ext: 51736*;
>>
>>
>> *M: +44 782 741 1966 <%2B44%20782%20741%201966>Linked-In:
>> http://linkedin.com/in/senakafernando
>> <http://linkedin.com/in/senakafernando>*Lean . Enterprise . Middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Danesh Kuruppu
> Software Engineer
> WSO2 Inc,
> Mobile: +94 (77) 1690552
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Registry related tenant data deletion

2015-02-25 Thread Shashika Karunatilaka
HI Senaka,

Main reason for putting this method inside the kernel is, because when
creating a tenant all the user management data addition resides inside the
kernel, and all the registry related data addition reside inside the. and
each data deletion methods also reside inside the kernel, so this is the
main reason for putting this method inside kernel to delete all the tenant
registry data

Thank you.

On Wed, Feb 25, 2015 at 2:39 PM, Senaka Fernando  wrote:

> Shashika,
>
> Apart from whatever tool that you build (again for a specific tenant
> administration purpose), who else will need to invoke this API method? My
> feeling is that this method does not belong inside the registry kernel or
> components. WDYT?
>
> Thanks,
> Senaka.
>
>
> On Wed, Feb 25, 2015 at 3:18 AM, Shashika Karunatilaka  > wrote:
>
>> Hi Senaka/all
>>
>> To do delete the DB related data one option is to add a new method to
>> registry api called deleteAllTenantData(or suitable one) so i have to
>> implement this method on every dependent registry classes, Is it ok to
>> introduce new method to registry api?
>>
>> As i see when deleting a registry resources it goes to
>> UserRegistry->CacheBackRegistry->EmbeddedRegistry and it calls data
>> deletion DAOs. So in my case do i need to go through this flow to delete
>> the DB data or is it enough calling the DB queries in UserRegistry tenant
>> data deletion method
>>
>> Also i have another concern, as an example let say there is an
>> association related operation  so to do that it will go above process I
>> mentioned and call the DAOs, those DAOs are implemented in a structural
>> manner where JDBCAssociationDAO implemented all the AssociationDAO
>> operation, in my case do i need to adhere to above structure where adding
>> all the registry related table data deletion methods to interface and
>> implement it or else is it ok to call the queries directly?
>>
>> Thank you.
>>
>> On Tue, Feb 24, 2015 at 10:52 AM, Danesh Kuruppu  wrote:
>>
>>> Hi Shashika,
>>>
>>> In solr indexing, we store the resource by its tenant_id
>>> (indexed_document_id = resourcePath + "tenant" + tenantId)
>>>
>>> e.g: Assume you stored resource from the tenant1, indexed document id
>>> looks like below,
>>>
>>> "id": "/_system/governance/services/aaa/aaa/1.0.0*tenantId1*"
>>>
>>> You can get all resource store under tenantId using wildcard search.
>>>
>>> id:**tenantId1*
>>>>
>>>
>>> In Solr server, they have provided an api to delete by query.
>>>
>>> deleteByQuery(String query)
>>>>
>>>
>>> We can write new method in SolrClient to support this and call it from
>>> your component. Currently we only support delete index by resource id where
>>> we need resource path.
>>>
>>> Thanks
>>> Danesh
>>>
>>> On Mon, Feb 23, 2015 at 7:14 PM, Senaka Fernando 
>>> wrote:
>>>
>>>> Hi Shashika,
>>>>
>>>> I believe this is the only way to do this. There are several things to
>>>> note here.
>>>>
>>>> 1. In memory data - Ideally unloading the tenant should clean-up all of
>>>> this and if it does not there is an issue.
>>>> 2. DB data - all the tables have a tenant-id column. What you need is a
>>>> query to delete all records matching that tenant id.
>>>> 3. Solr Index etc and Registry Extensions deployed on the Filesystem -
>>>> These should be in corresponding folder/files structures either having a
>>>> tenant id or tenant domain. I don't recall this is as X, Y, and Z and I
>>>> don't think anyone else would do too. You can scan the code (Registry
>>>> Kernel, Registry Component and Governance Component) but it can be tedious.
>>>> So, may be you can setup a tenant and grep for tenant-id/domain or grep for
>>>> "-1234" and "carbon.super" in the filesystem.
>>>> 4. Other related data - The kernel alone uses the filesystem (inside
>>>> repository/deployment) which you might need to clean. There are temporary
>>>> files created that many require cleaning and also logs, if you are
>>>> interested in a full wipeout. The registry utilises some of these standard
>>>> features from the kernel and some information (mostly transient) can be
>>>> found in those.
>>>>
>>>> Appreciate some help from others in the G-Reg t

Re: [Dev] Registry related tenant data deletion

2015-02-26 Thread Shashika Karunatilaka
HI Kishanthan,

Currently i have done some implementation on registry related data
deletion, removing solr indexes. But there are scenarios i have to consider
where deleting registry related data in mounted environment.

Thank you.

On Fri, Feb 27, 2015 at 10:00 AM, Kishanthan Thangarajah <
kishant...@wso2.com> wrote:

> Hi Senaka,
>
> We have an approach known as TenantMgtListener, where all the registered
> listeners will get notified when a tenant is created or deleted. There are
> methods (onPreDelete, onPostDelete, etc) that gets called by the tenant-mgt
> core component during tenant deletion. So for all component specific data
> deletion, we can use this listener approach. And from tenant-mgt/kernel
> point of view, we only have to deal with the kernel level registry data,
> when deleting a tenant.
>
> @Shashika, can we have an update on this please? Where are we with
> registry level tenant data deletion?
>
> On Wed, Feb 25, 2015 at 7:35 PM, Senaka Fernando  wrote:
>
>> Hi Shashika,
>>
>> So do you plan to create API methods on a per kernel component and per
>> product component basis? I would find that rather scattered and hard to
>> maintain. Though this looks justifiable from a kernel's point of view how
>> would you repeat the same at a component level? My thought was that you'd
>> be creating some new or adding to an existing component and you'll
>> aggregate all tenant clean-up functionality in there making it easier to
>> execute cross component operations. But, this is my personal viewpoint and
>> it could be that I'm missing something.
>>
>> Thanks,
>> Senaka.
>>
>> On Wed, Feb 25, 2015 at 10:21 AM, Shashika Karunatilaka <
>> shashi...@wso2.com> wrote:
>>
>>> HI Senaka,
>>>
>>> Main reason for putting this method inside the kernel is, because when
>>> creating a tenant all the user management data addition resides inside the
>>> kernel, and all the registry related data addition reside inside the. and
>>> each data deletion methods also reside inside the kernel, so this is the
>>> main reason for putting this method inside kernel to delete all the tenant
>>> registry data
>>>
>>> Thank you.
>>>
>>> On Wed, Feb 25, 2015 at 2:39 PM, Senaka Fernando 
>>> wrote:
>>>
>>>> Shashika,
>>>>
>>>> Apart from whatever tool that you build (again for a specific tenant
>>>> administration purpose), who else will need to invoke this API method? My
>>>> feeling is that this method does not belong inside the registry kernel or
>>>> components. WDYT?
>>>>
>>>> Thanks,
>>>> Senaka.
>>>>
>>>>
>>>> On Wed, Feb 25, 2015 at 3:18 AM, Shashika Karunatilaka <
>>>> shashi...@wso2.com> wrote:
>>>>
>>>>> Hi Senaka/all
>>>>>
>>>>> To do delete the DB related data one option is to add a new method to
>>>>> registry api called deleteAllTenantData(or suitable one) so i have to
>>>>> implement this method on every dependent registry classes, Is it ok to
>>>>> introduce new method to registry api?
>>>>>
>>>>> As i see when deleting a registry resources it goes to
>>>>> UserRegistry->CacheBackRegistry->EmbeddedRegistry and it calls data
>>>>> deletion DAOs. So in my case do i need to go through this flow to delete
>>>>> the DB data or is it enough calling the DB queries in UserRegistry tenant
>>>>> data deletion method
>>>>>
>>>>> Also i have another concern, as an example let say there is an
>>>>> association related operation  so to do that it will go above process I
>>>>> mentioned and call the DAOs, those DAOs are implemented in a structural
>>>>> manner where JDBCAssociationDAO implemented all the AssociationDAO
>>>>> operation, in my case do i need to adhere to above structure where adding
>>>>> all the registry related table data deletion methods to interface and
>>>>> implement it or else is it ok to call the queries directly?
>>>>>
>>>>> Thank you.
>>>>>
>>>>> On Tue, Feb 24, 2015 at 10:52 AM, Danesh Kuruppu 
>>>>> wrote:
>>>>>
>>>>>> Hi Shashika,
>>>>>>
>>>>>> In solr indexing, we store the resource by its tenant_id
>>>>>> (indexed_document_id = resourcePath + "tenant" + te

[Dev] Start Tenant Flow Code sample should need to be changed in 4.2.0 documentation

2015-02-28 Thread Shashika Karunatilaka
Hi,

Start Tenant Flow Code sample should need to be changed in 4.2.0
documentation[1]. currently in the documentation its getting CarbonContext
from the PrivilegedCarbonContext.getCurrentContext().
getCurrentContext() is deprecated in the 4.2.0, no longer available in
4.3.0. This is fixed in 4.3.0 documentation[2]. It should need to be
changed to get from getThreadLocalCarbonContext().

try{
PrivilegedCarbonContext.startTenantFlow();
PrivilegedCarbonContext privilegedCarbonContext =
   PrivilegedCarbonContext*.getCurrentContext();*
*change to* *->PrivilegedCarbonContext.getThreadLocalCarbonContext();*
   privilegedCarbonContext.setTenantId(tenantId);
   privilegedCarbonContext.setTenantDomain(tenantDomain);
   // set other stuff like registry etc. if needed

  doSomething();
} finally {
   PrivilegedCarbonContext.endTenantFlow();
}

[1] https://docs.wso2.com/display/Carbon420/CarbonContext+API
[2] https://docs.wso2.com/display/Carbon430/CarbonContext+API
-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Start Tenant Flow Code sample should need to be changed in 4.2.0 documentation

2015-03-02 Thread Shashika Karunatilaka
Hi

Need to remove the references to getCurrentContext() and the code block
need to be changed 4.2.0 documentation.

Thank you.

On Mon, Mar 2, 2015 at 7:56 AM, Nilmini Perera  wrote:

> Hi,
>
> Thanks for the mail Shashika.
>
> I remember removing the references to getCurrentContext() from the Carbon
> 4.3.0 docs as it is no longer valid. Should we do the same for Carbon 4.2.0
> ? or is it just this particular code block that needs to be changed?
>
> Regards,
> Nilmini
>
> On Sun, Mar 1, 2015 at 12:15 PM, Shashika Karunatilaka  > wrote:
>
>> Hi,
>>
>> Start Tenant Flow Code sample should need to be changed in 4.2.0
>> documentation[1]. currently in the documentation its getting CarbonContext
>> from the PrivilegedCarbonContext.getCurrentContext().
>> getCurrentContext() is deprecated in the 4.2.0, no longer available in
>> 4.3.0. This is fixed in 4.3.0 documentation[2]. It should need to be
>> changed to get from getThreadLocalCarbonContext().
>>
>> try{
>> PrivilegedCarbonContext.startTenantFlow();
>> PrivilegedCarbonContext privilegedCarbonContext =
>>PrivilegedCarbonContext*.getCurrentContext();*
>> *change to* *->PrivilegedCarbonContext.getThreadLocalCarbonContext();*
>>privilegedCarbonContext.setTenantId(tenantId);
>>privilegedCarbonContext.setTenantDomain(tenantDomain);
>>// set other stuff like registry etc. if needed
>>
>>   doSomething();
>> } finally {
>>PrivilegedCarbonContext.endTenantFlow();
>> }
>>
>> [1] https://docs.wso2.com/display/Carbon420/CarbonContext+API
>> [2] https://docs.wso2.com/display/Carbon430/CarbonContext+API
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "WSO2 Documentation" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to documentation+unsubscr...@wso2.com.
>> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>>
>
>
>
> --
> Nilmini Perera
>
> Senior Technical Writer
> WSO2 Inc.
>
> Mobile: 0094776722152
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Review and merge the PR for WSAS-1907

2015-03-04 Thread Shashika Karunatilaka
Hi,

Please review and merge the PR [1] for [2].

[1] https://github.com/wso2/product-as/pull/49
[2] https://wso2.org/jira/browse/WSAS-1907

-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Chamila de Alwis

2015-03-04 Thread Shashika Karunatilaka
Congrats Chamila

On Thu, Mar 5, 2015 at 11:19 AM, Vijitha Ekanayake 
wrote:

> Congratulations Chamila !!!
>
> On Thu, Mar 5, 2015 at 11:12 AM, Aiyadurai Rajeevan 
> wrote:
>
>> Congrats Chamila :)
>>
>> Thanks & Regards,
>> S.A.Rajeevan
>> Software Engineer WSO2 Inc
>> E-Mail: rajeev...@wso2.com | Mobile : +94776411636
>>
>> On Thu, Mar 5, 2015 at 11:10 AM, Jerad Rutnam  wrote:
>>
>>> Congratulations Chamila! :)
>>>
>>> On Thu, Mar 5, 2015 at 11:07 AM, Dakshika Jayathilaka >> > wrote:
>>>
 Congratz Chamilad...!

 *Dakshika Jayathilaka*
 Software Engineer
 WSO2, Inc.
 lean.enterprise.middleware
 0771100911

 On Thu, Mar 5, 2015 at 10:22 AM, Shiva Balachandran 
 wrote:

> Congrats Chamila. :)
>
> Good job! ^_^
>
> On Thu, Mar 5, 2015 at 10:14 AM, Kasun De Silva 
> wrote:
>
>> Congratz Chamila !!!
>>
>> *Kasun de Silva*
>> Software Engineer | *WSO2 Inc.*; http://wso2.com
>> lean.enterprise.middleware
>>
>> email   : kas...@wso2.com
>> mobile : +94 77 794 4260
>>
>>
>> On Thu, Mar 5, 2015 at 10:08 AM, Prasanna Dangalla > > wrote:
>>
>>> Congratulations Chamilad
>>>
>>> On Thu, Mar 5, 2015 at 10:01 AM, Imesh Gunaratne 
>>> wrote:
>>>
 Hi Devs,

 It's my pleasure to welcome Chamila de Alwis as a WSO2 Committer.
 Chamila, welcome aboard and keep up the good work!

 Thanks

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


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


>>>
>>>
>>> --
>>> 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
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> Shiva Balachandran
> Software Engineer
> WSO2 Inc.
>
> Mobile - +94 774445788
> Blog - https://shivabalachandran.wordpress.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


>>>
>>>
>>> --
>>> *Jerad Rutnam*
>>> *Software Engineer*
>>>
>>> WSO2 Inc.
>>> lean | enterprise | middleware
>>> M : +94 77 959 1609 | E : je...@wso2.com | W : 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
>>
>>
>
>
> --
> Vijitha Ekanayake
> Software Engineer*, *WSO2, Inc.; http://wso2.com/
> Mobile : +94 777 24 73 39 | +94 718 74 44 08
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Review and merge the PR for WSAS-1907

2015-03-04 Thread Shashika Karunatilaka
Hi Supun

Updated the PR[1] accordingly

[1] https://github.com/wso2/product-as/pull/49

On Wed, Mar 4, 2015 at 8:02 PM, Supun Malinga  wrote:

> Hi Shashika,
>
> Let's add the features into default and worker profile as well..
>
> thanks,
>
> On Wed, Mar 4, 2015 at 5:03 PM, Shashika Karunatilaka 
> wrote:
>
>> Hi,
>>
>> Please review and merge the PR [1] for [2].
>>
>> [1] https://github.com/wso2/product-as/pull/49
>> [2] https://wso2.org/jira/browse/WSAS-1907
>>
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>
>
>
> --
> Supun Malinga,
>
> Senior Software Engineer,
> WSO2 Inc.
> http://wso2.com
> email: sup...@wso2.com 
> mobile: +94 (0)71 56 91 321
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Ashan Manathunga

2015-03-06 Thread Shashika Karunatilaka
Many Congrats Ashan:D

On Fri, Mar 6, 2015 at 4:55 PM, Harsha Kumara  wrote:

> Congratulations Ashan!
>
> On Fri, Mar 6, 2015 at 4:53 PM, Srisunmugaraja Paraparan <
> parapa...@wso2.com> wrote:
>
>> Congratz Ashan.
>>
>> On Fri, Mar 6, 2015 at 4:45 PM, Samisa Abeysinghe 
>> wrote:
>>
>>> Hi All
>>> It's my pleasure to welcome Ashan as a WSO2 Committer.
>>>
>>> Ashan, welcome aboard and keep up the good work!
>>>
>>> Thanks,
>>> Samisa...
>>>
>>>
>>> Samisa Abeysinghe
>>>
>>> Vice President Delivery
>>>
>>> WSO2 Inc.
>>> http://wso2.com
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks & Regards
>> --
>> Srisunmugaraja Paraparan
>> Software Engineer,
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> email : parapa...@wso2.com, mobile : +94 77 0362151
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please commit the diff for CARBON-15184

2015-03-06 Thread Shashika Karunatilaka
Hi

Please commit the attached diff in the JIRA[1]

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

-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Platform Build Error

2015-03-07 Thread Shashika Karunatilaka
HI Yasith,

Whats the Java version you are building the source..

Thank you

On Sat, Mar 7, 2015 at 8:14 PM, Yasith Lokuge  wrote:

> I tried "mvn compile -x"
>
> This is what I got;
>
>
>
>
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 55.941 s
> [INFO] Finished at: 2015-03-07T20:03:03+05:30
> [INFO] Final Memory: 779M/2455M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-dependency-plugin:2.8:copy (copy-mars) on
> project rampart-integration: Artifac
> t has not been packaged yet. When used on reactor artifact, copy should be
> executed after packaging: see MDEP-187. -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.maven.plugins:maven-dependency-plugin:2.8:copy (co
> py-mars) on project rampart-integration: Artifact has not been packaged
> yet. When used on reactor artifact, copy should be executed after pa
> ckaging: see MDEP-187.
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
> 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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Artifact has
> not been packaged yet. When used on reactor artifact, copy should be
>  executed after packaging: see MDEP-187.
> at
> org.apache.maven.plugin.dependency.AbstractDependencyMojo.copyFile(AbstractDependencyMojo.java:224)
> at
> org.apache.maven.plugin.dependency.fromConfiguration.CopyMojo.copyArtifact(CopyMojo.java:133)
> at
> org.apache.maven.plugin.dependency.fromConfiguration.CopyMojo.doExecute(CopyMojo.java:111)
> at
> org.apache.maven.plugin.dependency.AbstractDependencyMojo.execute(AbstractDependencyMojo.java:167)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> ... 19 more
> [ERROR]
> [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/MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn  -rf :rampart-integration
>
> On Sat, Mar 7, 2015 at 8:13 PM, Yasith Lokuge  wrote:
>
>> Hi Tharindu,
>>
>> I have already added that part to the POM file but got the error when
>> building platform.
>>
>>
>>
>> On Sat, Mar 7, 2015 at 8:10 PM, Yasith Lokuge  wrote:
>>
>>> Thanks for the reply Tharindu, I'll try and let you know.
>>>
>>> On Sat, Mar 7, 2015 at 8:08 PM, Tharindu Edirisinghe >> > wrote:
>>>
 Hi Yasith,

 I assume you have built Orbit and Kernel and then you are trying to
 build the Platform (turing). You are getting this error because the
 required dependencies are not resolved. Please try adding the following
 repository details under the  tag in the pom file of the platform
 and then build the platform.

 
 
 wso2

Re: [Dev] Please commit the diff for CARBON-15184

2015-03-08 Thread Shashika Karunatilaka
Hi Sameera,

Please find the PR [1] here with

[1] https://github.com/wso2/carbon4-kernel/pull/162

Thank you.

On Fri, Mar 6, 2015 at 6:59 PM, Sameera Jayasoma  wrote:

> Done. Please send a PR to the Git repository.
>
> On Fri, Mar 6, 2015 at 6:20 PM, Shashika Karunatilaka 
> wrote:
>
>> Hi
>>
>> Please commit the attached diff in the JIRA[1]
>>
>> [1] https://wso2.org/jira/browse/CARBON-15184
>>
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://blog.sameera.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon] Getting tenant domain and tenant admin username from the tenant id

2015-03-09 Thread Shashika Karunatilaka
HI Chathura,

If you start a tenant flow you can set the tenant Id and from that you can
get the tenant domain from below code
PrivilegedCarbonContext.getThreadLocalCarbonContext().setTenantId(tenantId,
true);
setTenantId with boolean argument it will resolve the tenant domain. or
else you can get from
PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantDomain();

To get the admin user name you can use realmConfig
PrivilegedCarbonContext.getThreadLocalCarbonContext().getUserRealm().getRealmConfiguration().getAdminUserName()

Thank you.

On Mon, Mar 9, 2015 at 4:48 PM, Chathura Dilan  wrote:

> Hi All,
>
> Is there a way to get the tenant domain name and the tenant admin username
> when tenantId is provided to
> PrivilegedCarbonContext.getThreadLocalCarbonContext()?
>
>
> Thanks
>
> --
> Regards,
>
> Chatura Dilan Perera
> *(Senior Software Engineer** - WSO2 Inc.**)*
> www.dilan.me
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Removing -DhttpPort, -DhttpsPort system properties

2015-03-09 Thread Shashika Karunatilaka
Hi all,

Do we need to have the *-DhttpPort, **-DhttpsPort *as system properties
when running the carbon server.
IMO if we need to change the ports we have portOffset to run from different
ports or if there is a necessity of changing them we can change it in
catalina-server.xml. In that case do we need to have *-DhttpPort, *
*-DhttpsPort. *

WDYT?

Thank you.

-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] [Cluster] Error when trying to log in with the created tenants

2015-03-12 Thread Shashika Karunatilaka
Hi Kala,

Can you provide the error trace here.

Thank you.

On Thu, Mar 12, 2015 at 8:19 PM, Godwin Amila Shrimal 
wrote:

> Hi Kala,
>
> What is the ESB version you are using here ? mean time can you attach the
> wso2carbon.log file.
>
>
> Thanks
> Godwin
>
>
> On Thu, Mar 12, 2015 at 8:16 PM, Kala Weerawardana  wrote:
>
>> Hi,
>>
>> I created an ESB cluster fronted by ELB. Created a LDAP server through
>> ApacheDS.
>>
>> When creating a tenant the bellow error occurred.
>>
>> "ERROR - TenantPersistor Error in changing the tenant admin password for
>> tenant domain:"
>>
>> To fix this, I applied the patch related to [1]. The problem solved and I
>> was able to create tenants without a problem.
>>
>>
>>- Now when I try to log in with the created tenants I get an error
>>saying,
>>
>> "Login failed! Please recheck the username and password and try again."
>>
>>
>>- Then I tried to edit the tenant giving a new password and update.
>>Got an error saying,
>>
>>"ERROR - TenantMgtAdminService Error in changing the
>> tenant admin password, tenant domain:"
>>
>>
>> Is there a solution for this?
>>
>>
>> [1] - https://wso2.org/jira/browse/CARBON-15187
>>
>>
>> Thank you,
>> Kala
>> --
>> Kala C. Weerawardana
>> *Software Engineer - QA Team*
>> *WSO2 Inc. *
>> Mobile :  +94 (0) 716189886 +94 (0) 772877683
>> Blog : http://castakai.blogspot.com
>> k...@wso2.com
>>
>
>
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Adding missed dependency on carbon-identitiy-java8support branch

2015-03-17 Thread Shashika Karunatilaka
Hi Johann,

Please review and merge the following PR [1]
Missed dependency : org.wso2.carbon.ndatasource.common


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

-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon-identity java8support branch not work with the JDK 1.7

2015-03-18 Thread Shashika Karunatilaka
Hi Prabath,

This is due to missing dependency for org.wso2.carbon.ndatasource.common
,
but this org.wso2.carbon.identity.user.store.configuration.ui is now in
carbon-commons[1] not in carbon-identity.

[1]
https://github.com/wso2/carbon-commons/tree/master/components/userstore-config/org.wso2.carbon.identity.user.store.configuration.ui

Thank you.

On Thu, Mar 19, 2015 at 11:22 AM, Prabath Ariyarathna 
wrote:

> Hi IS Team.
>
> I'm testing ESB with kernel 4.4.0 on the JDK 1.7 and carbon-identity is on
> of the dependency. So I tried to compile carbon-identity java8support
> branch on the JDK 1.7.
> and getting following compilation issues from the *WSO2 Carbon - Identity
> User Store Configuration UI*
>
> ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile
> (default-compile) on project
> org.wso2.carbon.identity.user.store.configuration.ui: Compilation failure:
> Compilation failure:
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[28,41]
> error: package org.wso2.carbon.ndatasource.common does not exist
>
> [ERROR]
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[90,63]
> error: cannot find symbol
>
> [ERROR]
>
> [ERROR] class UserStoreConfigAdminServiceClient
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[165,66]
> error: cannot find symbol
>
> [ERROR]
>
> [ERROR] class UserStoreConfigAdminServiceClient
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[96,26]
> error: cannot find symbol
>
> [ERROR]
>
> [ERROR] class UserStoreConfigAdminServiceClient
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[98,22]
> error: cannot find symbol
>
> [ERROR]
>
> [ERROR] class UserStoreConfigAdminServiceClient
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[100,22]
> error: cannot find symbol
>
> [ERROR]
>
> [ERROR] class UserStoreConfigAdminServiceClient
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[148,30]
> error: cannot find symbol
>
> [ERROR]
>
> [ERROR] class UserStoreConfigAdminServiceClient
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[150,26]
> error: cannot find symbol
>
> [ERROR]
>
> [ERROR] class UserStoreConfigAdminServiceClient
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[152,26]
> error: cannot find symbol
>
> [ERROR]
>
> [ERROR] class UserStoreConfigAdminServiceClient
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[171,26]
> error: cannot find symbol
>
> [ERROR]
>
> [ERROR] class UserStoreConfigAdminServiceClient
>
> [ERROR]
> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[173,22]
> error: cannot

Re: [Dev] Carbon-identity java8support branch not work with the JDK 1.7

2015-03-18 Thread Shashika Karunatilaka
Hi Prabath,

Check the following PR [1], this component is moved to carbon-commons in
master branch not in the java8support branch.

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

On Thu, Mar 19, 2015 at 11:36 AM, Prabath Ariyarathna 
wrote:

> Hi Shashika.
>
> Thanks for the reply.
> This compilation issue is coming from the carbon-identity java8support
> branch. so can we do something for fix this dependency issue from the IS
> side ?
>
>
> On Thu, Mar 19, 2015 at 11:29 AM, Shashika Karunatilaka <
> shashi...@wso2.com> wrote:
>
>> Hi Prabath,
>>
>> This is due to missing dependency for org.wso2.carbon.ndatasource.common
>> <https://github.com/shashikap/carbon-identity/commit/373a0df6d2daab8a32a62112dda41318ca497370>,
>> but this org.wso2.carbon.identity.user.store.configuration.ui is now in
>> carbon-commons[1] not in carbon-identity.
>>
>> [1]
>> https://github.com/wso2/carbon-commons/tree/master/components/userstore-config/org.wso2.carbon.identity.user.store.configuration.ui
>>
>> Thank you.
>>
>> On Thu, Mar 19, 2015 at 11:22 AM, Prabath Ariyarathna > > wrote:
>>
>>> Hi IS Team.
>>>
>>> I'm testing ESB with kernel 4.4.0 on the JDK 1.7 and carbon-identity is
>>> on of the dependency. So I tried to compile carbon-identity java8support
>>> branch on the JDK 1.7.
>>> and getting following compilation issues from the *WSO2 Carbon -
>>> Identity User Store Configuration UI*
>>>
>>> ERROR] Failed to execute goal
>>> org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile
>>> (default-compile) on project
>>> org.wso2.carbon.identity.user.store.configuration.ui: Compilation failure:
>>> Compilation failure:
>>>
>>> [ERROR]
>>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[28,41]
>>> error: package org.wso2.carbon.ndatasource.common does not exist
>>>
>>> [ERROR]
>>>
>>> [ERROR]
>>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[90,63]
>>> error: cannot find symbol
>>>
>>> [ERROR]
>>>
>>> [ERROR] class UserStoreConfigAdminServiceClient
>>>
>>> [ERROR]
>>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[165,66]
>>> error: cannot find symbol
>>>
>>> [ERROR]
>>>
>>> [ERROR] class UserStoreConfigAdminServiceClient
>>>
>>> [ERROR]
>>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[96,26]
>>> error: cannot find symbol
>>>
>>> [ERROR]
>>>
>>> [ERROR] class UserStoreConfigAdminServiceClient
>>>
>>> [ERROR]
>>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[98,22]
>>> error: cannot find symbol
>>>
>>> [ERROR]
>>>
>>> [ERROR] class UserStoreConfigAdminServiceClient
>>>
>>> [ERROR]
>>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[100,22]
>>> error: cannot find symbol
>>>
>>> [ERROR]
>>>
>>> [ERROR] class UserStoreConfigAdminServiceClient
>>>
>>> [ERROR]
>>> /Users/prabath/projects/esb/jdk_1.8_migration/final/carbon-identity/components/identity/org.wso2.carbon.identity.user.store.configuration.ui/src/main/java/org/wso2/carbon/identity/user/store/configuration/ui/client/UserStoreConfigAdminServiceClient.java:[148,30]
>>> error: cannot find symbol
>>>
>>> [ERROR]
>>

Re: [Dev] [BAM] NullPointerException in the BAM 3.0 server start up

2015-03-19 Thread Shashika Karunatilaka
HI Niranda,

This issue is fixed in following Jira [1]

https://wso2.org/jira/browse/CARBON-15140

Thank you.

On Thu, Mar 19, 2015 at 2:57 PM, Niranda Perera  wrote:

> Hi all,
>
> I'm working on the BAM 3.0 M2 and in the server start up, when logging
> into the console, a 'NullPointerException: Tenant domain has not been set
> in CarbonContext' is thrown. Please see the stack trace below.
>
> [2015-03-19 14:52:30,402] ERROR
> {org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient} -  Tenant
> domain has not been set in CarbonContext
> java.lang.NullPointerException: Tenant domain has not been set in
> CarbonContext
> at
> org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:79)
> at
> org.wso2.carbon.security.pox.POXSecurityHandler.getPOXCache(POXSecurityHandler.java:365)
> at
> org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:123)
> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
> at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
> at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:359)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
> at
> org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.loginWithRememberMeCookie(AuthenticationAdminStub.java:1724)
> at
> org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient.loginWithRememberMeCookie(AuthenticationAdminClient.java:99)
> at
> org.wso2.carbon.ui.DefaultCarbonAuthenticator.doAuthentication(DefaultCarbonAuthenticator.java:109)
> at
> org.wso2.carbon.ui.AbstractCarbonUIAuthenticator.handleSecurity(AbstractCarbonUIAuthenticator.java:218)
> at
> org.wso2.carbon.ui.BasicAuthUIAuthenticator.authenticateWithCookie(BasicAuthUIAuthenticator.java:96)
> at
> org.wso2.carbon.ui.CarbonUILoginUtil.saveOriginalUrl(CarbonUILoginUtil.java:118)
> at
> org.wso2.carbon.ui.CarbonSecuredHttpContext.handleSecurity(CarbonSecuredHttpContext.java:276)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:60)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:183)
> 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:146)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
> at
> o

Re: [Dev] JSON parsing platform standard library

2015-03-23 Thread Shashika Karunatilaka
HI Inosh,

AFAIK its Gson now. As an example DSS 3.2.1 onwards, Application server it
uses Gson message formatter and builder. But in the ESB it uses Jsonpath
please refer this [1]

[1] https://docs.wso2.com/display/ESB480/About+this+Release

Thank you.

On Mon, Mar 23, 2015 at 7:25 PM, Inosh Perera  wrote:

> Hi all,
> What is platform standard library used for JSON parsing? I have seen some
> variation such as Gson, Jackson, jsonpath.
>
> Regards,
> Inosh
>
> --
> Inosh Perera
> Software Engineer, WSO2 Inc.
> Tel: 0785293686
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Enabling ghost mode in test environment

2015-03-24 Thread Shashika Karunatilaka
Hi,

I need to write a test case to get the first request to a deployed web app
after the web app went to ghost mode or unloaded. how should i enable ghost
mode, web app idle time in test environment?

Thank you.

-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Enabling ghost mode in test environment

2015-03-24 Thread Shashika Karunatilaka
Hi Mahesh,

AFAIK we cant enable ghost mode in test environment by editing carbon.xml.

On Tue, Mar 24, 2015 at 10:02 PM, Mahesh Chinthaka  wrote:

> Hi Shashika,
>
> You can enable Ghost mode deployment from setting the value 'true' in
> repository/conf/carbon.xml
>
>  
> *true*
> false
>  
>
>
> And to set the webapp unloading time u can do following,
>
> open wso2server.sh in vim editor ( sudo vi wso2server.sh)
> Add following line in the bottom section ( inside do while )
>
> -Dwebapp.idle.time=1 \
>
>
> Thanks
>
> On Tue, Mar 24, 2015 at 7:44 PM, Shashika Karunatilaka  > wrote:
>
>> Hi,
>>
>> I need to write a test case to get the first request to a deployed web
>> app after the web app went to ghost mode or unloaded. how should i enable
>> ghost mode, web app idle time in test environment?
>>
>> Thank you.
>>
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Mahesh Chinthaka Vidanagama* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
> Email: mahe...@wso2.com | Web: www.wso2.com
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge the PR for CARBON-15199

2015-03-24 Thread Shashika Karunatilaka
Hi,

Please review and merge the following PR [1] for Jira [2]

[1] https://github.com/wso2/carbon-deployment/pull/82
[2] https://wso2.org/jira/browse/CARBON-15199

-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Enabling ghost mode in test environment

2015-03-24 Thread Shashika Karunatilaka
Hi Saneth,

Thanks for the info, i will try with the steps you mentioned


On Wed, Mar 25, 2015 at 7:52 AM, Saneth Dharmakeerthi 
wrote:

> Hi Shashika,
>
> Small correction on CarbonTestServerManager and MultipleServersManager.
> As it shows in the code block  and  reference links in [2] and [3] in my
> previous mail, you have to create a instance of CarbonTestServerManager
> with your required parameters and using MultipleServersManager  you can
> start the server.
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> On Tue, Mar 24, 2015 at 11:17 PM, Saneth Dharmakeerthi 
> wrote:
>
>> Hi Shashika,
>>
>>- Only way to enable the Ghost mode in test environment is to
>>changing the repository/conf/carbon.xml.
>>
>> You have to copy the edited "carbon.xml"  at @BeforeClass method and
>> restore the carbon.xml at @AfterClasss method.
>> You can do this task by using applyConfiguration  methods in
>> org.wso2.carbon.integration.common.utils.mgt.ServerConfigurationManager.java.
>> For sample usage of ServerConfigurationManager [1].
>>
>>- *Do not edit the **wso2server.sh* and configure the webapp and
>>tenant unloading time.
>> For this you have to start a new
>>server with a port offset and pass those parameters. You can use one
>>of following ways.
>>   - Using CarbonTestServerManager.java. Usage and more details can
>>   be found in [2] mail thread and [3]
>>   - Using MultipleServersManager.java
>>
>> private HashMap serverPropertyMap = new
>> HashMap();
>>
>> private MultipleServersManager manager = new MultipleServersManager();
>>
>>
>> @BeforeClass(alwaysRun = true)
>>
>> public void init() throws Exception {
>>
>> // to start the server from a different port offset
>>
>> *int portOffset = 1;*
>>
>> *int idleTime = 1;*
>>
>> *serverPropertyMap.put("-DportOffset",
>> Integer.toString(portOffset));*
>>
>> *serverPropertyMap.put("-Dtenant.idle.time",
>> Integer.toString(idleTime));*
>>
>> AutomationContext autoCtx = new AutomationContext();
>>
>> CarbonTestServerManager server =
>>
>> new CarbonTestServerManager(autoCtx,
>> System.getProperty("carbon.zip"), serverPropertyMap);
>>
>> manager.startServers(server);
>>
>>
>> UserPopulator userPopulator = new UserPopulator("AS",
>> "appServerInstance0002");
>>
>> userPopulator.populateUsers();
>>
>> }
>>
>>
>> same as "-*Dtenant.idle.time" *u can  add the *"-Dwebapp.idle.time"*
>>
>>
>> [1]
>> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/api/lifecycle/APIManagerConfigurationChangeTest.java
>> [2][Dev] How to set tenant idle time in writing integration test for AS
>> 5.2.1
>> [3
>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/products/esb/4.7.0/modules/integration/tests/src/test/java/org/wso2/carbon/esb/test/servers/NewInstanceTestCase.java]
>>
>> Thanks and Best Regards,
>>
>> Saneth Dharmakeerthi
>> Senior Software Engineer
>> WSO2, Inc.
>> Mobile: +94772325511
>>
>> On Tue, Mar 24, 2015 at 10:14 PM, Shashika Karunatilaka <
>> shashi...@wso2.com> wrote:
>>
>>> Hi Mahesh,
>>>
>>> AFAIK we cant enable ghost mode in test environment by editing
>>> carbon.xml.
>>>
>>> On Tue, Mar 24, 2015 at 10:02 PM, Mahesh Chinthaka 
>>> wrote:
>>>
>>>> Hi Shashika,
>>>>
>>>> You can enable Ghost mode deployment from setting the value 'true' in
>>>> repository/conf/carbon.xml
>>>>
>>>>  
>>>> *true*
>>>> false
>>>>  
>>>>
>>>>
>>>> And to set the webapp unloading time u can do following,
>>>>
>>>> open wso2server.sh in vim editor ( sudo vi wso2server.sh)
>>>> Add following line in the bottom section ( inside do while )
>>>>
>>>> -Dwebapp.idle.time=1 \
>>>>
>>>>
>>>> Thanks
>>>>
>>>> On Tue, Mar 24, 2015 at 7:44 PM, Shashika Karunatilaka <
&g

[Dev] API subscribe not working in tenant mode in test automation`

2015-04-03 Thread Shashika Karunatilaka
Hi,

Currently i'm writing on a test case to publish a api through tenant and
want to subscribe that api and need to invoke the api i have created,
But im getting below error when calling
org.wso2.carbon.am.tests.util.APIStoreRestClient's subscribe() method
{"error" : true, "message" :
"org.wso2.carbon.apimgt.api.APIManagementException: Error while adding the
subscription for user: amuse...@wso2.com"}

This process works fine when doing it using super tenant mode.
Im using api manager 1.8.0.

Thank you.
-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] API subscribe not working in tenant mode in test automation`

2015-04-04 Thread Shashika Karunatilaka
Hi Saneth,

yes, can do the same thing.it works from ui.

On Sat, Apr 4, 2015 at 12:33 PM, Saneth Dharmakeerthi 
wrote:

> HI Shashika,
>
> Can you manually do the subscription from the same user (amuse...@wso2.com
> )?
> Check whether the given user has subscription permition.
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> On Sat, Apr 4, 2015 at 12:23 PM, Shashika Karunatilaka  > wrote:
>
>> Hi,
>>
>> Currently i'm writing on a test case to publish a api through tenant and
>> want to subscribe that api and need to invoke the api i have created,
>> But im getting below error when calling
>> org.wso2.carbon.am.tests.util.APIStoreRestClient's subscribe() method
>> {"error" : true, "message" :
>> "org.wso2.carbon.apimgt.api.APIManagementException: Error while adding the
>> subscription for user: amuse...@wso2.com"}
>>
>> This process works fine when doing it using super tenant mode.
>> Im using api manager 1.8.0.
>>
>> Thank you.
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] API subscribe not working in tenant mode in test automation`

2015-04-05 Thread Shashika Karunatilaka
Thanks Tharindu,
After adding Api provider as amuser11-AT-wso2.com solved the issue.

On Sat, Apr 4, 2015 at 8:32 PM, Tharindu Dharmarathna 
wrote:

> Hi Saneth,
>
> I checked with Shashika regarding this issue  happen when give provider
> name incorrectly. Because We are replacing '@' mark in tenant domain
> seperation in provider in to '-AT-'  therefore we have to give provider
> name  by replacing @ mark from that '-AT-' mark .
>
>
> Thanks
> Tharindu
>
> On Sat, Apr 4, 2015 at 1:19 PM, Saneth Dharmakeerthi 
> wrote:
>
>> Hi Shashika,
>>
>> Is there any detail log available in server side about this error.
>>
>> Thanks and Best Regards,
>>
>> Saneth Dharmakeerthi
>> Senior Software Engineer
>> WSO2, Inc.
>> Mobile: +94772325511
>>
>> On Sat, Apr 4, 2015 at 12:50 PM, Shashika Karunatilaka <
>> shashi...@wso2.com> wrote:
>>
>>> Hi Saneth,
>>>
>>> yes, can do the same thing.it works from ui.
>>>
>>> On Sat, Apr 4, 2015 at 12:33 PM, Saneth Dharmakeerthi 
>>> wrote:
>>>
>>>> HI Shashika,
>>>>
>>>> Can you manually do the subscription from the same user (
>>>> amuse...@wso2.com)?
>>>> Check whether the given user has subscription permition.
>>>>
>>>> Thanks and Best Regards,
>>>>
>>>> Saneth Dharmakeerthi
>>>> Senior Software Engineer
>>>> WSO2, Inc.
>>>> Mobile: +94772325511
>>>>
>>>> On Sat, Apr 4, 2015 at 12:23 PM, Shashika Karunatilaka <
>>>> shashi...@wso2.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Currently i'm writing on a test case to publish a api through tenant
>>>>> and want to subscribe that api and need to invoke the api i have created,
>>>>> But im getting below error when calling
>>>>> org.wso2.carbon.am.tests.util.APIStoreRestClient's subscribe() method
>>>>> {"error" : true, "message" :
>>>>> "org.wso2.carbon.apimgt.api.APIManagementException: Error while adding the
>>>>> subscription for user: amuse...@wso2.com"}
>>>>>
>>>>> This process works fine when doing it using super tenant mode.
>>>>> Im using api manager 1.8.0.
>>>>>
>>>>> Thank you.
>>>>> --
>>>>> Shashika Prabath Karunatilaka,
>>>>> Software Engineer,
>>>>> WSO2, Inc: http://wso2.com/
>>>>> mobile : +94 77 7487792
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Shashika Prabath Karunatilaka,
>>> Software Engineer,
>>> WSO2, Inc: http://wso2.com/
>>> mobile : +94 77 7487792
>>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Tharindu Dharmarathna*Associate Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94779109091 <%2B94779109091>*
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Anuruddha Premalal

2014-09-28 Thread Shashika Karunatilaka
Congratulations Anuruddha

On Mon, Sep 29, 2014 at 9:17 AM, Suhan Dharmasuriya  wrote:

> Congratz Anuruddha!
>
> On Mon, Sep 29, 2014 at 9:14 AM, Inosh Perera  wrote:
>
>> Congrats Anuruddha!!
>>
>> On Mon, Sep 29, 2014 at 9:10 AM, Jayanga Dissanayake 
>> wrote:
>>
>>> Congratulations Anuruddha...
>>>
>>> *Jayanga Dissanayake*
>>> Senior Software Engineer
>>> WSO2 Inc. - http://wso2.com/
>>> lean . enterprise . middleware
>>> email: jaya...@wso2.com
>>> mobile: +94772207259
>>>
>>> On Mon, Sep 29, 2014 at 9:07 AM, Dakshika Jayathilaka >> > wrote:
>>>
 Congratulations Anuruddha.!!

 *Dakshika Jayathilaka*
 Software Engineer
 WSO2, Inc.
 lean.enterprise.middleware
 0771100911

 On Mon, Sep 29, 2014 at 9:06 AM, Danesh Kuruppu 
 wrote:

> Congrats Anuruddha.!!
>
> On Mon, Sep 29, 2014 at 9:01 AM, Tharindu Dharmarathna <
> tharin...@wso2.com> wrote:
>
>> Congratz Anuruddha!!
>>
>> On Mon, Sep 29, 2014 at 8:58 AM, Rajith Siriwardena 
>> wrote:
>>
>>> Congratulations Anuruddha.!!
>>>
>>> On Mon, Sep 29, 2014 at 8:53 AM, Dimuthu Leelarathne <
>>> dimut...@wso2.com> wrote:
>>>
 Hi all,

 Its my pleasure to welcome Anuruddha Premalal  as a WSO2 Committer.
 Anuruddha has contributed immensely to WSO2 App Factory and has shown 
 great
 commitment. In recognition of his contribution, he has been voted as a 
 WSO2
 Committer.

 Anuruddha, welcome aboard!

 Regards,
 Amila.

 --
 Dimuthu Leelarathne
 Architect & Product Lead of App Factory

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com
 Mobile : 0773661935

 Lean . Enterprise . Middleware

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


>>>
>>>
>>> --
>>> *Rajith Siriwardana*
>>> Software Engineer | Cloud Team
>>> WSO2 Inc. ; http://wso2.com
>>> *lean. enterprise. middleware*
>>>
>>> ---
>>> *http://people.apache.org/~siriwardana
>>> *
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Tharindu Dharmarathna*Associate Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94779109091 <%2B94779109091>*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Danesh Kuruppu
> Software Engineer
> WSO2 Inc,
> Mobile: +94 (77) 1690552
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

 ___
 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
>>>
>>>
>>
>>
>> --
>> Inosh Perera
>> Software Engineer, WSO2 Inc.
>> Tel: 0785293686
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Suhan Dharmasuriya
> Software Engineer - Test Automation
>
> *WSO2, Inc. *
>
> lean . enterprise . middleware
> Tel: +94 112 145345
> Mob: +94 779 869138
> Blog: http://suhan-opensource.blogspot.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Commiters += Rajith Siriwardena

2014-09-28 Thread Shashika Karunatilaka
Congratulations Rajith

On Mon, Sep 29, 2014 at 9:13 AM, Inosh Perera  wrote:

> Congrats Rajith!!!
>
> On Mon, Sep 29, 2014 at 9:09 AM, Jayanga Dissanayake 
> wrote:
>
>> Congratulations Rajith...
>>
>> *Jayanga Dissanayake*
>> Senior Software Engineer
>> WSO2 Inc. - http://wso2.com/
>> lean . enterprise . middleware
>> email: jaya...@wso2.com
>> mobile: +94772207259
>>
>> On Fri, Sep 26, 2014 at 6:00 PM, Abimaran Kugathasan 
>> wrote:
>>
>>> Congrats Rajith!
>>>
>>> On Fri, Sep 26, 2014 at 11:55 AM, Suhan Dharmasuriya 
>>> wrote:
>>>
 Congratz Rajith!

 On Fri, Sep 26, 2014 at 11:21 AM, Manula Chathurika Thantriwatte <
 manu...@wso2.com> wrote:

> Congratulations Rajith !!!
>
> On Fri, Sep 26, 2014 at 11:18 AM, Lasindu Charith 
> wrote:
>
>> Congratz Rajith ..!!!
>>
>> On Fri, Sep 26, 2014 at 10:33 AM, Niranda Perera 
>> wrote:
>>
>>> Congrats Rajith! :-)
>>>
>>> On Fri, Sep 26, 2014 at 10:28 AM, Harsha Kumara 
>>> wrote:
>>>
 Congratulations Rajith!

 On Fri, Sep 26, 2014 at 10:19 AM, Gayashan Amarasinghe <
 gayas...@wso2.com> wrote:

> Congratulations Rajith!!!
>
> On Fri, Sep 26, 2014 at 10:12 AM, Jenananthan Yogendran <
> jenanant...@wso2.com> wrote:
>
>> Congrats Rajith
>>
>> On Fri, Sep 26, 2014 at 10:04 AM, Roshan Wijesena <
>> ros...@wso2.com> wrote:
>>
>>> Congrats Rajith..!!
>>>
>>> On Fri, Sep 26, 2014 at 9:59 AM, Ishara Cooray >> > wrote:
>>>
 Congrats Rajith..!

 Ishara Cooray
 Senior Software Engineer
 Mobile : +9477 262 9512
 WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 On Fri, Sep 26, 2014 at 9:55 AM, Darshana Akalanka Pagoda
 Arachchi  wrote:

> Congratulations Rajith...!!!
>
> On Fri, Sep 26, 2014 at 9:48 AM, Kasun De Silva <
> kas...@wso2.com> wrote:
>
>> Congrats Rajith !!!
>>
>> *Kasun de Silva*
>> Software Engineer | *WSO2 Inc.*; http://wso2.com
>> lean.enterprise.middleware
>>
>> email   : kas...@wso2.com
>> mobile : +94 77 794 4260
>>
>>
>> On Fri, Sep 26, 2014 at 9:44 AM, Isuru Ranawaka <
>> isu...@wso2.com> wrote:
>>
>>> Congrats Rajith
>>>
>>> On Fri, Sep 26, 2014 at 9:39 AM, Malintha Adikari <
>>> malin...@wso2.com> wrote:
>>>
 Congrats Rajith!

 On Fri, Sep 26, 2014 at 9:11 AM, Kalpa Welivitigoda <
 kal...@wso2.com> wrote:

> Congratulations Rajith !
>
> On Fri, Sep 26, 2014 at 9:08 AM, Rajkumar Rajaratnam <
> rajkum...@wso2.com> wrote:
>
>> Congratulations !!!
>>
>> On Fri, Sep 26, 2014 at 9:06 AM, Ayesha Dissanayaka <
>> aye...@wso2.com> wrote:
>>
>>> Congratulations Rajith!!
>>>
>>> On Fri, Sep 26, 2014 at 9:04 AM, Yasassri Ratnayake <
>>> yasas...@wso2.com> wrote:
>>>
 Congrats Rajith!

 On Fri, Sep 26, 2014 at 8:52 AM, Chamila Adhikarinayake
  wrote:

> Congratulations!!
>
> On Fri, Sep 26, 2014 at 8:42 AM, Sajini De Silva <
> saj...@wso2.com> wrote:
>
>> Congratulations Rajith!!!
>>
>> On Fri, Sep 26, 2014 at 8:38 AM, Sameera Jayaratna <
>> samee...@wso2.com> wrote:
>>
>>> Congratulations!!
>>>
>>> On Fri, Sep 26, 2014 at 8:36 AM, Thilini Shanika <
>>> thili...@wso2.com> wrote:
>>>
 Congratulations !!

 On Fri, Sep 26, 2014 at 8:30 AM, Darshana
 Gunawardana  wrote:

> Congratulations Rajith..!!
>
> On Fri, Sep 26, 2014 at 8:17 AM, Dunith Dhanushka
>  wrote:
>
>> Congrats Rajith!
>>
>> On Fri, Sep 26, 2014 at 7:58 AM, Nipuni Perera <
>> nip...@wso2.com> wrote:
>

[Dev] error in pom.xml when creating a carbon component service stubs

2014-09-30 Thread Shashika Karunatilaka
Hi
I was referring to this [1] article, At the stage of writing the service
stub in my pom.xml shows an error in the "execution" tag it says

"Plugin execution not covered by lifecycle configuration:
org.apache.maven.plugins:maven-antrun-plugin:1.1:run (execution:
source-code-generation, phase: process-resources)"

but when i run using "mvn clean install" it run without and error and
generates the stub classes without a issue. I wonder why it runs without a
issue and shows error.Does any body know why there is a issue in my pom.xml

Here with i have attached my pom.xml

[1]
http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/

-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792

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

*





	
		
		
			org.eclipse.m2e
			lifecycle-mapping
			1.0.0
			

	
		
			

	org.codehaus.mojo


	build-helper-maven-plugin


	[1.9.1,)


	add-source

			
			

			
		
	

			
		
	



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


Re: [Dev] error in pom.xml when creating a carbon component service stubs

2014-09-30 Thread Shashika Karunatilaka
HI Harsha, Sajith,
Thanks for the reply, as you mentioned adding  for the
maven-antrun-plugin,
in m2e plugin configurations fixed the problem.

On Tue, Sep 30, 2014 at 6:46 PM, Sajith Ravindra  wrote:

> Hi Shasika,,
>
> Adding  to m2e pluing configurations in your pom.xml for
> maven-antrun-plugin with  as  should fix your problem.
>
> E.g:
> 
>   
>   org.apache.maven.plugins 
>  maven-antrun-plugin 
>   [1.1,) 
>  
>run
>  
>
>
> 
>
> 
>
> Thanks
> *,Sajith Ravindra*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273550
> blog: http://sajithr.blogspot.com/
> <http://lk.linkedin.com/pub/shani-ranasinghe/34/111/ab>
>
> On Tue, Sep 30, 2014 at 5:23 PM, Shashika Karunatilaka  > wrote:
>
>> Hi
>> I was referring to this [1] article, At the stage of writing the service
>> stub in my pom.xml shows an error in the "execution" tag it says
>>
>> "Plugin execution not covered by lifecycle configuration:
>> org.apache.maven.plugins:maven-antrun-plugin:1.1:run (execution:
>> source-code-generation, phase: process-resources)"
>>
>> but when i run using "mvn clean install" it run without and error and
>> generates the stub classes without a issue. I wonder why it runs without a
>> issue and shows error.Does any body know why there is a issue in my pom.xml
>>
>> Here with i have attached my pom.xml
>>
>> [1]
>> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
>>
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Samith Dassanayake

2014-10-02 Thread Shashika Karunatilaka
Congrats Samith...!

On Thu, Oct 2, 2014 at 2:00 PM, Dunith Dhanushka  wrote:

> Congrats Samith!
>
> On Thu, Oct 2, 2014 at 1:47 PM, Harsha Kumara  wrote:
>
>> Congratz Samith!
>>
>> On Thu, Oct 2, 2014 at 1:41 PM, Buddhima Wijeweera 
>> wrote:
>>
>>> Congratz Samith!!!
>>>
>>> On Thu, Oct 2, 2014 at 1:09 PM, Anuruddha Premalal 
>>> wrote:
>>>
 Congratulations Samith !!

 On Thu, Oct 2, 2014 at 11:28 AM, Suhan Dharmasuriya 
 wrote:

> Congrats Samith!
>
> On Thu, Oct 2, 2014 at 11:27 AM, Vijitha Ekanayake 
> wrote:
>
>> Congratulations Samith!!!
>>
>> On Thu, Oct 2, 2014 at 11:25 AM, Gayashan Amarasinghe <
>> gayas...@wso2.com> wrote:
>>
>>> Congratulations Samith!!!
>>>
>>> On Thu, Oct 2, 2014 at 11:24 AM, Kasun Dissanayake 
>>> wrote:
>>>
 Congradzz Samith

 On Thu, Oct 2, 2014 at 10:46 AM, Roshan Wijesena 
 wrote:

> Congratulations!!
>
> On Thu, Oct 2, 2014 at 10:43 AM, Lasindu Charith  > wrote:
>
>> Congratz Samith ...!!!
>>
>> On Thu, Oct 2, 2014 at 10:40 AM, Kasun De Silva 
>> wrote:
>>
>>> Congratz Samith 
>>>
>>> *Kasun de Silva*
>>> Software Engineer | *WSO2 Inc.*; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> email   : kas...@wso2.com
>>> mobile : +94 77 794 4260
>>>
>>>
>>> On Thu, Oct 2, 2014 at 10:39 AM, Dimuthu Leelarathne <
>>> dimut...@wso2.com> wrote:
>>>
 Hi all,

 Its my pleasure to welcome Samith Dassanayake  as a WSO2
 Committer. Samith has contributed immensely to WSO2 App
 Factory and has shown great commitment. In recognition of his 
 contribution,
 he has been voted as a WSO2 Committer.

 Samith, welcome aboard!

 thanks,
 dimuthu

 --
 Dimuthu Leelarathne
 Architect & Product Lead of App Factory

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com
 Mobile : 0773661935

 Lean . Enterprise . Middleware

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


>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Lasindu Charith*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94714427192
>> Web: blog.lasindu.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Roshan Wijesena.
> Senior Software Engineer-WSO2 Inc.
> Mobile: *+94752126789*
> Email: ros...@wso2.com
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Kasun Dissanayake
 Software Engineer
 WSO2 Inc.
 Lean | Enterprise | Middleware
 Tel - +94 77 086 2860
 Skype - kasun.dissanayake4
 LinkedIn - lk.linkedin.com/in/kasundis/

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


>>>
>>>
>>> --
>>> *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
>>>
>>>
>>
>>
>> --
>> Vijitha Ekanayake
>> Software Engineer*, *WSO2, Inc.; http://wso2.com/
>> Mobile : +94 777 24 73 39 | +94 718 74 44 08
>> lean.enterprise.middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Suhan Dharmasuriya
> Software Engineer - Test Automation
>
> *WSO2, Inc. *
>
> lean . enterprise . middleware
> Tel:

Re: [Dev] Carbon component writing pom xml error

2014-10-02 Thread Shashika Karunatilaka
Hi Buddhi,
Try to use  instead of  tag

On Fri, Oct 3, 2014 at 12:11 PM, Roshan Deniyage  wrote:

> Hi,
>   The problem seems with the "" element. you don't need to
> put that element unless the pom is a parent pom which is inherited by other
> children poms. "maven-bundle-plugin" needs to come outside of the
> "" tag. Just removing the "" would solve the
> issue. Try it.
>
> Thanks,
>
> Roshan Deniyage
> Associate Technical Lead
> WSO2, Inc: http://wso2.com
>
> Mobile:  +94 777636406
> Twitter:  *https://twitter.com/roshku *
> LinkedIn :  https://www.linkedin.com/in/roshandeniyage
>
>
> On Fri, Oct 3, 2014 at 11:30 AM, Buddhi Senarathna 
> wrote:
>
>> Hi All,
>>
>> I wrote pom.xml file to build the stub to create my carbon component.
>> When i build it, it builds the bundle without giving any error. but it
>> indicates an error in ** tag and it says "Plugin execution
>> not covered by lifecycle configuration". to fix that i had put all the
>> *..* part inside
>> *..* tag. after i had done it, it
>> gives *project build error: Unknown packaging:* bundle in **
>> tag. how do i fix that?
>>
>> find my pom.xml here.
>>
>> 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";>
>> 4.0.0
>> 
>> org.wso2.carbon
>> add-number-components
>> 4.2.0
>> 
>> org.wso2.carbon.add.num.stub
>> bundle
>> WSO2 Carbon - Add Number 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.felix
>> maven-bundle-plugin
>> true
>> 
>> 
>>
>> ${project.artifactId}
>>
>> ${project.artifactId}
>> 
>> 
>> 
>> org.wso2.carbon.add.num.*
>> 
>> 
>> !org.wso2.carbon.add.num.*
>> 
>>
>> *
>> 
>> 
>> 
>>
>> 
>> org.apache.maven.plugins
>> maven-antrun-plugin
>> 1.1
>> 
>> 
>> source-code-generation
>> process-resources
>> 
>> run
>> 
>> 
>> 
>> 
>> >
>> location="${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar"
>> />
>> >
>> location="${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar"
>> />
>> >
>> location="${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar"
>> />
>> 
>> > classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
>> > refid="wsdl2java.classpath" />
>> > line="-uri
>> src/main/resources/OrderProcessingService.wsdl -u -uw
>>  -o target/generated-code -p
>> org.wso2.carbon.add.num.stub" />
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> 
>> org.codehaus.mojo
>> build-helper-maven-plugin
>> 
>> 
>> add-source
>> generate-sources
>> 
>> add-source
>> 
>> 
>> 
>>
>> target/generated-code/src
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> 
>>
>>
>> --
>>
>> *BuddhiC*
>>
>>
>>
>> *InternWSO2, Inc. *
>> *Mob: +94 755 446 685 <%2B

[Dev] CEP gives an error when adding stream-definition to a sample without using management console and re-run the sample

2014-10-08 Thread Shashika Karunatilaka
Hi,
I'm in a process of running a sample using [1],
in the samples there are pre-defined event streams, i found that those
stream definitions can be found at  
/samples/artifacts/sample-id/stream-definitions.xml.
If i tried to edit and add another attribute to
stream-definitions.xml's payloadData it gives me a error if i re run the
sample using [1].

{DataBridgeDS}  Error redefining event stream of carbon.super:

   {

 "name": "UserLoginInputStream",

 "version": "1.0.0",

 "nickName": "login",

 "description": "Handles event stream related to user login life
cycle.",

 "payloadData": [

{"name": "user_id",

 "type": "STRING"

},

{"name": "newly_added",

 "type": "STRING"

}

]

}



org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
Cannot define Stream definition:{

  "streamId": "UserLoginInputStream:1.0.0",

  "name": "UserLoginInputStream",

  "version": "1.0.0",

  "nickName": "login",

  "description": "Handles event stream related to user login life cycle.",

  "payloadData": [

{

  "name": "user_id",

  "type": "STRING"

}

  ]

}, Another Stream with same name and version exist :{

  "streamId": "UserLoginInputStream:1.0.0",

  "name": "UserLoginInputStream",

  "version": "1.0.0",

  "nickName": "login",

  "description": "Handles event stream related to user login life cycle.",

  "payloadData": [

{

  "name": "user_id",

  "type": "STRING"

}

  ]

}
and if i add the same data, save it using management console and re run the
product using [1], it gives a similar kind of error with regard to that
newly added data. then this can be fixed by adding the same data which
added using management console to  
/samples/artifacts/sample-id/stream-definitions.xml.
I found that there is another stream definition file in
/repository/conf/data-bridge
which updates the stream-definition when runnig the samples.

My question is there any other way, file which stores the stream definition
other than above mentioned locations?

[1]
https://docs.wso2.com/display/CEP310/Setting+up+CEP+Samples#SettingupCEPSamples-Prerequisites
-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ClassNotFoundException : org.wso2.carbon.student.mgt.GetStudents when creating carbon component.

2014-10-08 Thread Shashika Karunatilaka
Hi Hemika,
check the folder structure of the resources in eclipse

Thank you

On Thu, Oct 9, 2014 at 12:03 PM, Hemika Kodikara  wrote:

> Hi All,
>
> I have been following this tutorial on creating a carbon component [1]. I
> have created all 3 OSGI bundles and added them to the "dropins" folder.
> Once I start the carbon server, I see the component I created as
> "student.menu". But when clicked on it, nothing happens. In the carbon
> console I see the following error. I have also attached a copy of the tree
> structure of the "org.wso2.carbon.student.mgt.ui" project and also the
> content of the "org.wso2.carbon.student.mgt.ui" jar file.
>
>  The error -
>
> [2014-10-09 11:21:37,920] ERROR
> {org.apache.catalina.core.ApplicationDispatcher} -  Servlet.service() for
> servlet bridgeservlet threw exception
> java.lang.ClassNotFoundException: org.wso2.carbon.student.mgt.GetStudents
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
> at
> org.wso2.carbon.student.mgt.stub.StudentManagerStub.toEnvelope(StudentManagerStub.java:461)
> at
> org.wso2.carbon.student.mgt.stub.StudentManagerStub.getStudents(StudentManagerStub.java:169)
> at
> org.wso2.carbon.student.mgt.ui.StudentManagerClient.getStudents(StudentManagerClient.java:24)
> at
> org.apache.jsp.student_002dmgt.index_jsp._jspService(org.apache.jsp.student_002dmgt.index_jsp:77)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
> at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
> at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
> at
> org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
> at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
> at
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1015)
> at
> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:700)
> at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
> at
> org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
> at
> org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
> at
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
> at
> org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
> at
> org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
> at
> org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
> at
> org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
> at
> org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
> at
> org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_insertAttribute_7(o

Re: [Dev] ClassNotFoundException : org.wso2.carbon.student.mgt.GetStudents when creating carbon component.

2014-10-08 Thread Shashika Karunatilaka
yes as chamin said check the component.xml as well, seems it couldn't find
the resource.properties and map it

Thank you.

On Thu, Oct 9, 2014 at 12:15 PM, Chamin Nalinda  wrote:

> Hi Hemika,
>
> The menu should appear as "Students". Check your "Resources.properties"
> and "component.xml" and make sure they are accordance with documentation.
>
> On Thu, Oct 9, 2014 at 12:03 PM, Hemika Kodikara  wrote:
>
>> Hi All,
>>
>> I have been following this tutorial on creating a carbon component [1]. I
>> have created all 3 OSGI bundles and added them to the "dropins" folder.
>> Once I start the carbon server, I see the component I created as
>> "student.menu". But when clicked on it, nothing happens. In the carbon
>> console I see the following error. I have also attached a copy of the tree
>> structure of the "org.wso2.carbon.student.mgt.ui" project and also the
>> content of the "org.wso2.carbon.student.mgt.ui" jar file.
>>
>>  The error -
>>
>> [2014-10-09 11:21:37,920] ERROR
>> {org.apache.catalina.core.ApplicationDispatcher} -  Servlet.service() for
>> servlet bridgeservlet threw exception
>> java.lang.ClassNotFoundException: org.wso2.carbon.student.mgt.GetStudents
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455)
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
>> at
>> org.wso2.carbon.student.mgt.stub.StudentManagerStub.toEnvelope(StudentManagerStub.java:461)
>> at
>> org.wso2.carbon.student.mgt.stub.StudentManagerStub.getStudents(StudentManagerStub.java:169)
>> at
>> org.wso2.carbon.student.mgt.ui.StudentManagerClient.getStudents(StudentManagerClient.java:24)
>> at
>> org.apache.jsp.student_002dmgt.index_jsp._jspService(org.apache.jsp.student_002dmgt.index_jsp:77)
>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>> at
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>> at
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
>> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>> at
>> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
>> at
>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>> at
>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
>> at
>> org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
>> at
>> org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
>> at
>> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1015)
>> at
>> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:700)
>> at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:601)
>> at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
>> at
>> org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
>> at
>> org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
>> at
>> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
>> at
>> org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
>> at
>> org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
>

Re: [Dev] CEP gives an error when adding stream-definition to a sample without using management console and re-run the sample

2014-10-09 Thread Shashika Karunatilaka
Thanks Niranda and Rajeev your replies answered my question

On Thu, Oct 9, 2014 at 12:30 PM, Rajeev Sampath  wrote:

> Hi,
>
> This happens since the stream is already stored in the registry. You can
> either increment the version number of the modified stream or else delete
> the existing stream from the registry (Manage -> Event Streams in
> management console).
>
>
> Thanks
> Rajeev
>
> On Thu, Oct 9, 2014 at 11:34 AM, Shashika Karunatilaka  > wrote:
>
>> Hi,
>> I'm in a process of running a sample using [1],
>> in the samples there are pre-defined event streams, i found that those
>> stream definitions can be found at  
>> /samples/artifacts/sample-id/stream-definitions.xml.
>> If i tried to edit and add another attribute to
>> stream-definitions.xml's payloadData it gives me a error if i re run the
>> sample using [1].
>>
>> {DataBridgeDS}  Error redefining event stream of carbon.super:
>>
>>{
>>
>>  "name": "UserLoginInputStream",
>>
>>  "version": "1.0.0",
>>
>>  "nickName": "login",
>>
>>  "description": "Handles event stream related to user login life
>> cycle.",
>>
>>  "payloadData": [
>>
>> {"name": "user_id",
>>
>>  "type": "STRING"
>>
>> },
>>
>> {"name": "newly_added",
>>
>>  "type": "STRING"
>>
>> }
>>
>> ]
>>
>> }
>>
>>
>>
>> org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
>> Cannot define Stream definition:{
>>
>>   "streamId": "UserLoginInputStream:1.0.0",
>>
>>   "name": "UserLoginInputStream",
>>
>>   "version": "1.0.0",
>>
>>   "nickName": "login",
>>
>>   "description": "Handles event stream related to user login life cycle.",
>>
>>   "payloadData": [
>>
>> {
>>
>>   "name": "user_id",
>>
>>   "type": "STRING"
>>
>> }
>>
>>   ]
>>
>> }, Another Stream with same name and version exist :{
>>
>>   "streamId": "UserLoginInputStream:1.0.0",
>>
>>   "name": "UserLoginInputStream",
>>
>>   "version": "1.0.0",
>>
>>   "nickName": "login",
>>
>>   "description": "Handles event stream related to user login life cycle.",
>>
>>   "payloadData": [
>>
>> {
>>
>>   "name": "user_id",
>>
>>   "type": "STRING"
>>
>> }
>>
>>   ]
>>
>> }
>> and if i add the same data, save it using management console and re run
>> the product using [1], it gives a similar kind of error with regard to that
>> newly added data. then this can be fixed by adding the same data which
>> added using management console to  
>> /samples/artifacts/sample-id/stream-definitions.xml.
>> I found that there is another stream definition file in  
>> /repository/conf/data-bridge
>> which updates the stream-definition when runnig the samples.
>>
>> My question is there any other way, file which stores the stream
>> definition other than above mentioned locations?
>>
>> [1]
>> https://docs.wso2.com/display/CEP310/Setting+up+CEP+Samples#SettingupCEPSamples-Prerequisites
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rajeev Sampath
> Senior Software Engineer
> WSO2, Inc.; http://www.wso2.com.
>
> Mobile:
> * +94716265766 <%2B94716265766>*
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sameera Kannangara

2014-10-09 Thread Shashika Karunatilaka
Congrats sameera.

On Fri, Oct 10, 2014 at 10:36 AM, Yasassri Ratnayake 
wrote:

> Congrats Sameera!!
>
> On Fri, Oct 10, 2014 at 10:33 AM, Vijitha Ekanayake 
> wrote:
>
>> Congratulations Sameera !!!
>>
>> On Fri, Oct 10, 2014 at 9:42 AM, Heshani Gamage  wrote:
>>
>>> Congratulations Sameera!
>>>
>>> On Fri, Oct 10, 2014 at 9:38 AM, Subash Chaturanga 
>>> wrote:
>>>
 Hi all,
 It's our pleasure to welcome Sameera Kannangara as a WSO2 Committer.
 Sameera has contributed immensely to WSO2 Governance Registry and platform
 and shown great commitment. In recognition of his contribution, he has been
 voted as a WSO2 Commiter.

 Welcome aboard and keep up the good work.

 --
 Thanks
 /subash

 *Subash Chaturanga*
 Senior Software Engineer
 Platform TG; WSO2 Inc. http://wso2.com
 Contact:
 email: sub...@wso2.com
 blog:  http://subashsdm.blogspot.com/
 twitter: @subash89
 phone: +9477 2225922
 Lean . Enterprise . Middleware

 ___
 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
>>>
>>>
>>
>>
>> --
>> Vijitha Ekanayake
>> Software Engineer*, *WSO2, Inc.; http://wso2.com/
>> Mobile : +94 777 24 73 39 | +94 718 74 44 08
>> lean.enterprise.middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> 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
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Denuwanthi De Silva

2014-10-09 Thread Shashika Karunatilaka
Congrats Denuwanthi

On Fri, Oct 10, 2014 at 11:04 AM, Thilini Shanika  wrote:

> Congratulations Denuwanthi !!
>
> On Fri, Oct 10, 2014 at 11:00 AM, Gayashan Amarasinghe 
> wrote:
>
>> Congratulations Denuwanthi!!!
>>
>> On Fri, Oct 10, 2014 at 10:35 AM, Niranda Perera 
>> wrote:
>>
>>> Congrats Denuwanthi!
>>>
>>> On Fri, Oct 10, 2014 at 10:34 AM, Malithi Edirisinghe >> > wrote:
>>>
 Congratulations Denuwanthi ...

 On Fri, Oct 10, 2014 at 10:27 AM, Vijitha Ekanayake 
 wrote:

> Congratulations Denuwanthi !!!
>
> On Fri, Oct 10, 2014 at 9:55 AM, Prasanna Dangalla 
> wrote:
>
>> Congratulations Denuwanthi 
>>
>> On Fri, Oct 10, 2014 at 9:53 AM, Lasindu Charith 
>> wrote:
>>
>>> Congratulations Denuwanthi ..!!!
>>>
>>> On Fri, Oct 10, 2014 at 9:50 AM, Sewwandi Perera 
>>> wrote:
>>>

 Congratulations Denuwanthi...!!! :)

 On Fri, Oct 10, 2014 at 9:45 AM, Danesh Kuruppu 
 wrote:

> Congrats Denuwanthi !!!
>
> On Fri, Oct 10, 2014 at 9:44 AM, Sameera Jayaratna <
> samee...@wso2.com> wrote:
>
>> Congratz Denuwanthi!!
>>
>> On Fri, Oct 10, 2014 at 9:42 AM, Heshani Gamage > > wrote:
>>
>>> Congratulations Denuwanthi!
>>>
>>> On Fri, Oct 10, 2014 at 9:36 AM, Subash Chaturanga <
>>> sub...@wso2.com> wrote:
>>>
 Hi all,
 It's our pleasure to welcome Denuwanthi De Silva as a WSO2
 Committer. Denuwanthi has contributed immensely to WSO2 Governance 
 Registry
 and platform and shown great commitment. In recognition of her
 contribution, she has been voted as a WSO2 Commiter.

 Welcome aboard and keep up the good work.

 --
 Thanks
 /subash

 *Subash Chaturanga*
 Senior Software Engineer
 Platform TG; WSO2 Inc. http://wso2.com
 Contact:
 email: sub...@wso2.com
 blog:  http://subashsdm.blogspot.com/
 twitter: @subash89
 phone: +9477 2225922
 Lean . Enterprise . Middleware

 ___
 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
>>>
>>>
>>
>>
>> --
>>
>>
>>
>> *Thanks & Regards,Sameera Jayaratna Software Engineer; **WSO2
>> Inc. *
>>
>> *lean . enterprise . middleware |  http://wso2.com
>>  *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Danesh Kuruppu
> Software Engineer
> WSO2 Inc,
> Mobile: +94 (77) 1690552
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Sewwandi Perera
 Software Engineer

 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 mobile: +94-713765098

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


>>>
>>>
>>> --
>>> *Lasindu Charith*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94714427192
>>> Web: blog.lasindu.com
>>>
>>> ___
>>> 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
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vijitha Ekanayake
> Software Engineer*, *WSO2, Inc.; http://wso2.com/
> Mobile : +94 777 24 73 39 | +94 718 74 44 08
> lean.enterprise.middleware
>
> ___

[Dev] Custome Function in siddhi query

2014-10-15 Thread Shashika Karunatilaka
Hi,
I'm in the process of creating siddhi custom function, its like an
aggregate function which inputs a set of data returns a single value.
Is there a way  i can send data array to my custom function or else can i
handle that inside my custom function?
As an example there is a stream called "A", stream "A" has attribute called
"bookID", i need to pass all the bookID's in that stream to the aggregate
function and return a single value.

Thank you.

-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Custome Function in siddhi query

2014-10-16 Thread Shashika Karunatilaka
Hi Mohanadarshan,
Thanks for the info, yes i have to go with the custom window.

On Wed, Oct 15, 2014 at 6:03 PM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

>
>
> On Wed, Oct 15, 2014 at 5:52 PM, Shashika Karunatilaka  > wrote:
>
>> Hi,
>>
>
> Hi Shashika,
>
>
>>
>>
> I'm in the process of creating siddhi custom function, its like an
>> aggregate function which inputs a set of data returns a single value.
>> Is there a way  i can send data array to my custom function or else can i
>> handle that inside my custom function?
>> As an example there is a stream called "A", stream "A" has attribute
>> called "bookID", i need to pass all the bookID's in that stream to the
>> aggregate function and return a single value.
>>
>>
> Based on my understanding, i don't believe siddhi function is appropriate
> for your usecase.. You may need to use transform processor or window..
>
> Thanks,
> Mohan
>
>
>
>> Thank you.
>>
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *V. Mohanadarshan*
> *Software Engineer,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com <http://wso2.com> *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com
> phone:(+94) 771117673
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sachini Jayasekara

2014-10-16 Thread Shashika Karunatilaka
Congrats Sachini

On Fri, Oct 17, 2014 at 11:10 AM, Niranda Perera  wrote:

> Congrats Sachini!
>
> On Fri, Oct 17, 2014 at 11:03 AM, Anuruddha Premalal 
> wrote:
>
>> Congratulation Sachini!!
>>
>> On Fri, Oct 17, 2014 at 10:59 AM, Harsha Kumara  wrote:
>>
>>> Congratulations Sachini!
>>>
>>> On Fri, Oct 17, 2014 at 10:57 AM, Thilini Shanika 
>>> wrote:
>>>
 Congratulations Sachini :)

 On Fri, Oct 17, 2014 at 10:54 AM, Sithumini Senevirathne <
 sithumi...@wso2.com> wrote:

> Congratulations Sachini!!!
>
> On Fri, Oct 17, 2014 at 10:52 AM, Kasun De Silva 
> wrote:
>
>> Congratulations Sachini !!
>>
>> *Kasun de Silva*
>> Software Engineer | *WSO2 Inc.*; http://wso2.com
>> lean.enterprise.middleware
>>
>> email   : kas...@wso2.com
>> mobile : +94 77 794 4260
>>
>>
>> On Fri, Oct 17, 2014 at 10:51 AM, Vijitha Ekanayake <
>> vijit...@wso2.com> wrote:
>>
>>> Congratulations Sachini !!!
>>>
>>> On Fri, Oct 17, 2014 at 10:43 AM, Kalpa Welivitigoda <
>>> kal...@wso2.com> wrote:
>>>
 Congratulations Sachini !

 On Fri, Oct 17, 2014 at 10:41 AM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

> Hi all,
>
> It's our pleasure to welcome Sachini Jayasekara as a WSO2
> Committer. Sachini has contributed immensely to WSO2 Complex Event
> Processor especially on Siddhi and shown great commitment.
> In recognition of her contribution, she has been voted as a WSO2
> Commiter.
>
> Welcome aboard and keep up the good work !
>
> Regards
> Suho
>
> --
>
> *S. Suhothayan*
> Technical Lead & Team Lead of WSO2 Complex Event Processor
>  *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | 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
>
>


 --
 Best Regards,

 Kalpa Welivitigoda
 Software Engineer, WSO2 Inc. http://wso2.com
 Email: kal...@wso2.com
 Mobile: +94776509215

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


>>>
>>>
>>> --
>>> Vijitha Ekanayake
>>> Software Engineer*, *WSO2, Inc.; http://wso2.com/
>>> Mobile : +94 777 24 73 39 | +94 718 74 44 08
>>> lean.enterprise.middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> --
> Sithumini Senevirathne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> email: sithumi...@wso2.com,   mobile: +94 756977999
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


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


>>>
>>>
>>> --
>>> Harsha Kumara
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94775505618
>>> Blog:harshcreationz.blogspot.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Anuruddha Premalal*
>> Software Eng. | WSO2 Inc.
>> Mobile : +94710461070
>> Web site : www.regilandvalley.com
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shash

Re: [Dev] WSO2 Committers += Tishan Dahanayakage

2014-10-16 Thread Shashika Karunatilaka
Congrats Tishan

On Fri, Oct 17, 2014 at 11:22 AM, Danesh Kuruppu  wrote:

> Congrats Tishan!!!
>
> On Fri, Oct 17, 2014 at 11:11 AM, Denuwanthi De Silva  > wrote:
>
>> Congratulations Tishan!!
>>
>> On Fri, Oct 17, 2014 at 11:08 AM, Niranda Perera 
>> wrote:
>>
>>> Congrats Tishan!
>>>
>>> On Fri, Oct 17, 2014 at 11:04 AM, Ashan Dhananjaya 
>>> wrote:
>>>
 happy for you Tishan  :)

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


>>>
>>>
>>> --
>>> *Niranda Perera*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-71-554-8430
>>> Twitter: @n1r44 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Denuwanthi De Silva
>> Software Engineer;
>> WSO2 Inc.; http://wso2.com,
>> Email: denuwan...@wso2.com
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Danesh Kuruppu
> Software Engineer
> WSO2 Inc,
> Mobile: +94 (77) 1690552
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Gayashan Amarasinghe

2014-10-19 Thread Shashika Karunatilaka
Congrats Gayashan..

On Mon, Oct 20, 2014 at 12:23 PM, Vijitha Ekanayake 
wrote:

> Congratulations Gayashan ...!!!
>
> On Mon, Oct 20, 2014 at 11:50 AM, Sameera Jayasoma 
> wrote:
>
>> Hi Gayashan,
>>
>> It's my pleasure to welcome you to WSO2 Committers club. You've been
>> contributing to WSO2 in various forms, hence you deserve this. Please keep
>> up with good work you've been doing so far.
>>
>> Congratulations!!!
>>
>> Thanks,
>> Sameera.
>>
>> --
>> 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
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vijitha Ekanayake
> Software Engineer*, *WSO2, Inc.; http://wso2.com/
> Mobile : +94 777 24 73 39 | +94 718 74 44 08
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Lasindu Charith

2014-10-20 Thread Shashika Karunatilaka
Congrats Lasindu

On Tue, Oct 21, 2014 at 9:28 AM, Thilini Shanika  wrote:

> Congratulations Lasindu !!!
>
> On Tue, Oct 21, 2014 at 9:26 AM, Dakshika Jayathilaka 
> wrote:
>
>> Congratulations Lasindu !
>>
>> *Dakshika Jayathilaka*
>> Software Engineer
>> WSO2, Inc.
>> lean.enterprise.middleware
>> 0771100911
>>
>> On Tue, Oct 21, 2014 at 9:24 AM, Tharindu Edirisinghe > > wrote:
>>
>>> Congratulations Lasindu !!
>>>
>>> On Tue, Oct 21, 2014 at 9:23 AM, Suhan Dharmasuriya 
>>> wrote:
>>>
 Congrats Lasindu!!!

 On Tue, Oct 21, 2014 at 9:18 AM, Kasun De Silva 
 wrote:

> Congrats Lasindu !!!
>
> *Kasun de Silva*
> Software Engineer | *WSO2 Inc.*; http://wso2.com
> lean.enterprise.middleware
>
> email   : kas...@wso2.com
> mobile : +94 77 794 4260
>
>
> On Tue, Oct 21, 2014 at 9:09 AM, Lakmal Warusawithana  > wrote:
>
>> Hi all,
>>
>> It's my pleasure to announce Lasindu as a WSO2 Committer. Lasindu has
>> done great contributions to Apache Stratos and WSO2 Private PaaS 
>> products.
>> And in recognition of his contribution he has been voted as a WSO2 
>> commiter.
>>
>> Lasindu, welcome aboard and keep up the good work!.
>>
>> --
>> Lakmal Warusawithana
>> Vice President, Apache Stratos
>> Director - Cloud Architecture; WSO2 Inc.
>> Mobile : +94714289692
>> Blog : http://lakmalsview.blogspot.com/
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

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

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


>>>
>>>
>>> --
>>>
>>> Tharindu Edirisinghe
>>> Software Engineer | WSO2 Inc
>>> Identity Server Team
>>> mobile : +94 775 181586
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> Thilini Shanika
> Software Engineer
> WSO2, Inc.; http://wso2.com
> 20, Palmgrove Avenue, Colombo 3
>
> E-mail: tgtshan...@gmail.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Rajkumar Rajaratnam

2014-10-20 Thread Shashika Karunatilaka
Congrats Rajkumar

On Tue, Oct 21, 2014 at 9:28 AM, Thilini Shanika  wrote:

> Congratulations Rajkumar !!!
>
> On Tue, Oct 21, 2014 at 9:27 AM, Dakshika Jayathilaka 
> wrote:
>
>> Congratulations Raj !
>>
>> *Dakshika Jayathilaka*
>> Software Engineer
>> WSO2, Inc.
>> lean.enterprise.middleware
>> 0771100911
>>
>> On Tue, Oct 21, 2014 at 9:26 AM, Sameera Jayaratna 
>> wrote:
>>
>>> Congratz Rajkumar!!!
>>>
>>> On Tue, Oct 21, 2014 at 9:23 AM, Suhan Dharmasuriya 
>>> wrote:
>>>
 Congrats Rajkumar!!!

 On Tue, Oct 21, 2014 at 9:22 AM, Shiroshica Kulatilake 
 wrote:

> Congrats !!
>
> On Tue, Oct 21, 2014 at 9:19 AM, Kasun De Silva 
> wrote:
>
>> Congrats Rajkumar !!!
>>
>> *Kasun de Silva*
>> Software Engineer | *WSO2 Inc.*; http://wso2.com
>> lean.enterprise.middleware
>>
>> email   : kas...@wso2.com
>> mobile : +94 77 794 4260
>>
>>
>> On Tue, Oct 21, 2014 at 9:07 AM, Lakmal Warusawithana <
>> lak...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> It's my pleasure to announce Raj as a WSO2 Committer. Raj has done
>>> great contributions to Apache Stratos and WSO2 Private PaaS products. 
>>> And
>>> in recognition of his contribution he has been voted as a WSO2 commiter.
>>>
>>> Raj, welcome aboard and keep up the good work!.
>>>
>>> --
>>> Lakmal Warusawithana
>>> Vice President, Apache Stratos
>>> Director - Cloud Architecture; WSO2 Inc.
>>> Mobile : +94714289692
>>> Blog : http://lakmalsview.blogspot.com/
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Shiroshica Kulatilake
>
> Architect,
> WSO2, Inc. http://wso2.com/
> Phone: +94 776523867
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

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

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


>>>
>>>
>>> --
>>>
>>>
>>>
>>> *Thanks & Regards,Sameera Jayaratna Software Engineer; **WSO2 Inc. *
>>>
>>> *lean . enterprise . middleware |  http://wso2.com  *
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> Thilini Shanika
> Software Engineer
> WSO2, Inc.; http://wso2.com
> 20, Palmgrove Avenue, Colombo 3
>
> E-mail: tgtshan...@gmail.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Custome Function in siddhi query

2014-10-23 Thread Shashika Karunatilaka
Hi kasun,
Thanks for the info..

On Tue, Oct 21, 2014 at 3:24 PM, Kasun De Silva  wrote:

> Hi Shashika,
>
> I belieive you have to write a custom OutputAggregator (see :
> https://docs.wso2.com/display/CEP310/Writing+a+Custom+OutputAttributeAggregator)
> and use it with length or time based window.
>
> I have done a similar project which implements a decaying aggregator. you
> can find it from below link.
>
> svn link :
> https://svn.wso2.com/wso2/interns/2013/Disk_Backed_and_Decayed_Window_for_CEP/decayingaggregator/
>
> Thanks,
> Kasun
>
> *Kasun de Silva*
> Software Engineer | *WSO2 Inc.*; http://wso2.com
> lean.enterprise.middleware
>
> email   : kas...@wso2.com
> mobile : +94 77 794 4260
>
>
> On Sun, Oct 19, 2014 at 5:19 PM, Lahiru Cooray  wrote:
>
>> Hi Awanthika,
>>
>> I totally agree with your point when we except result for each event. We
>> can pass a single attribute to a custom function (in multiple
>> events/streams) and store it.
>> We wrote a function to calculate the cardinality (distinct event count in
>> each stream).And there we updated a single instance for multiple streams.
>>
>>
>>
>> On Sun, Oct 19, 2014 at 4:31 PM, Awanthika Senarath 
>> wrote:
>>
>>> Hi Lahiru,
>>>
>>> Yes, my bad. In that case he has to use a custom window.
>>>
>>> thanks and regards
>>>
>>> On Sun, Oct 19, 2014 at 3:21 PM, Lahiru Cooray  wrote:
>>>
>>>> Hi,
>>>> I guess Shashika needs to read all the events in a single stream and
>>>> out put a *single value.*
>>>>
>>>> *Stream1 *
>>>> Event 1 >>>>> {BookID:'001'} {BookName:'aaa' }
>>>> Event 2 >>>>> {BookID:'002'} {BookName:'bbb' }
>>>> Event 3 >>>>> {BookID:'003'} {BookName:'ccc' }
>>>>
>>>> *Eg: Output the Book Count *
>>>>
>>>> As per my understanding we cannot use a custom function for this use
>>>> case since it will output a result for each event.
>>>>
>>>> On Thu, Oct 16, 2014 at 6:42 PM, Shashika Karunatilaka <
>>>> shashi...@wso2.com> wrote:
>>>>
>>>>> Hi Mohanadarshan,
>>>>> Thanks for the info, yes i have to go with the custom window.
>>>>>
>>>>> On Wed, Oct 15, 2014 at 6:03 PM, Mohanadarshan Vivekanandalingam <
>>>>> mo...@wso2.com> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Oct 15, 2014 at 5:52 PM, Shashika Karunatilaka <
>>>>>> shashi...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>
>>>>>> Hi Shashika,
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>
>>>>>> I'm in the process of creating siddhi custom function, its like an
>>>>>>> aggregate function which inputs a set of data returns a single value.
>>>>>>> Is there a way  i can send data array to my custom function or else
>>>>>>> can i handle that inside my custom function?
>>>>>>> As an example there is a stream called "A", stream "A" has attribute
>>>>>>> called "bookID", i need to pass all the bookID's in that stream to the
>>>>>>> aggregate function and return a single value.
>>>>>>>
>>>>>>>
>>>>>> Based on my understanding, i don't believe siddhi function is
>>>>>> appropriate for your usecase.. You may need to use transform processor or
>>>>>> window..
>>>>>>
>>>>>> Thanks,
>>>>>> Mohan
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Thank you.
>>>>>>>
>>>>>>> --
>>>>>>> Shashika Prabath Karunatilaka,
>>>>>>> Software Engineer,
>>>>>>> WSO2, Inc: http://wso2.com/
>>>>>>> mobile : +94 77 7487792
>>>>>>>
>>>>>>> ___
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *V. Mohanadarshan*
>>>>>> *Software Engineer,*
>>>>>> *Data Technologies Team,*
>>>>>> *WSO2, Inc. http://wso2.com <http://wso2.com> *
>>>>>> *lean.enterprise.middleware.*
>>>>>>
>>>>>> email: mo...@wso2.com
>>>>>> phone:(+94) 771117673
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Shashika Prabath Karunatilaka,
>>>>> Software Engineer,
>>>>> WSO2, Inc: http://wso2.com/
>>>>> mobile : +94 77 7487792
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Lahiru Cooray*
>>>> Software Engineer
>>>> WSO2, Inc.;http://wso2.com/
>>>> lean.enterprise.middleware
>>>>
>>>> Mobile: +94 715 654154
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Awanthika Senarath
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94717681791
>>>
>>>
>>>
>>
>>
>> --
>> *Lahiru Cooray*
>> Software Engineer
>> WSO2, Inc.;http://wso2.com/
>> lean.enterprise.middleware
>>
>> Mobile: +94 715 654154
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Milinda Perera

2014-10-29 Thread Shashika Karunatilaka
Congrats Milinda

On Wed, Oct 29, 2014 at 4:22 PM, Manula Chathurika Thantriwatte <
manu...@wso2.com> wrote:

> Congratulations !!!
>
> On Wed, Oct 29, 2014 at 4:18 PM, Thilini Shanika 
> wrote:
>
>> Congratulations Milinda!!!
>>
>> On Wed, Oct 29, 2014 at 4:14 PM, Inshaf Mahath  wrote:
>>
>>> Congrats Milinda!! :)
>>>
>>> On Wed, Oct 29, 2014 at 3:39 PM, Amal Gunatilake  wrote:
>>>
 Congratulations Milinda!!

 Thank you  & Best regards,

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

 On Wed, Oct 29, 2014 at 3:31 PM, Malintha Adikari 
 wrote:

> Congratulations, Milinda!
>
>
> On Wed, Oct 29, 2014 at 9:59 AM, Denuwanthi De Silva <
> denuwan...@wso2.com> wrote:
>
>> Congratulations!!
>>
>> On Tue, Oct 28, 2014 at 7:05 PM, Shiva Balachandran 
>> wrote:
>>
>>> Congrats :)
>>>
>>> On Tue, Oct 28, 2014 at 5:07 PM, Roshan Deniyage 
>>> wrote:
>>>
 Congratulations Milinda !

 Roshan Deniyage
 Associate Technical Lead
 WSO2, Inc: http://wso2.com

 Mobile:  +94 777636406
 Twitter:  *https://twitter.com/roshku
 *
 LinkedIn :  https://www.linkedin.com/in/roshandeniyage


 On Tue, Oct 28, 2014 at 4:26 PM, Tharindu Edirisinghe <
 tharin...@wso2.com> wrote:

> Congratulations Milinda 
>
> On Tue, Oct 28, 2014 at 4:23 PM, Hasintha Indrajee <
> hasin...@wso2.com> wrote:
>
>> Congratulations Milinda !!
>>
>> On Tue, Oct 28, 2014 at 4:13 PM, Buddhima Wijeweera <
>> buddh...@wso2.com> wrote:
>>
>>> Congratulations Milinda !!!
>>>
>>> On Tue, Oct 28, 2014 at 3:39 PM, Yasassri Ratnayake <
>>> yasas...@wso2.com> wrote:
>>>
 Congrats Milinda :)

 On Tue, Oct 28, 2014 at 3:34 PM, Mahesh Chinthaka <
 mahe...@wso2.com> wrote:

> Congratz milinda...!!!
>
> On Tue, Oct 28, 2014 at 3:32 PM, Rajeevan Vimalanathan <
> rajeev...@wso2.com> wrote:
>
>> Congratz Milinda...!!
>>
>> On Tue, Oct 28, 2014 at 3:29 PM, Kasun De Silva <
>> kas...@wso2.com> wrote:
>>
>>> Congratz Milinda..!!!
>>>
>>> *Kasun de Silva*
>>> Software Engineer | *WSO2 Inc.*; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> email   : kas...@wso2.com
>>> mobile : +94 77 794 4260
>>>
>>>
>>> On Tue, Oct 28, 2014 at 3:28 PM, Dakshika Jayathilaka <
>>> daksh...@wso2.com> wrote:
>>>
 Congratulations Milinda.!!

 *Dakshika Jayathilaka*
 Software Engineer
 WSO2, Inc.
 lean.enterprise.middleware
 0771100911

 On Tue, Oct 28, 2014 at 3:27 PM, Supun Sethunga <
 sup...@wso2.com> wrote:

> Congratz!!
>
> On Tue, Oct 28, 2014 at 3:26 PM, Waruna Jayaweera <
> waru...@wso2.com> wrote:
>
>> Congratzz Milinda..
>>
>> On Tue, Oct 28, 2014 at 3:14 PM, Godwin Amila Shrimal <
>> god...@wso2.com> wrote:
>>
>>> Congratulations Milinda !!!
>>>
>>> On Tue, Oct 28, 2014 at 3:11 PM, Firzhan Naqash <
>>> firz...@wso2.com> wrote:
>>>
 Congars Milinda

 Regards,
 Firzhan

 On Tue, Oct 28, 2014 at 3:17 PM, Suhan Dharmasuriya <
 suh...@wso2.com> wrote:

> Congrats Milinda!!!
>
> On Tue, Oct 28, 2014 at 3:00 PM, Kalpa Welivitigoda <
> kal...@wso2.com> wrote:
>
>> Congratulations Milinda !
>>
>> On Tue, Oct 28, 2014 at 2:58 PM, Gayashan Amarasinghe
>>  wrote:
>>
>>> Congratulations Milinda!!! :)
>>>
>>> On Tue, Oct 28, 2014 at 2:53 PM, Nandika Jayawardana
>>>  wrote:
>>>
 Hi all,

 It's my pleasure to announce Milinda Perera as a
 WSO2 Committer. Milinda has been a valuable 

[Dev] Some missing code segment in CEP Writing custom output aggregator documentation

2014-10-30 Thread Shashika Karunatilaka
Hi,
There is some missing code segment in CEP Writing custom output aggregator
documentation [1].  *destroy method* ( which needs to be included when
overriding) is missing from the  *OuputAttributeAggregatorFactory class.*
Missed code segment :
@Override
public void destroy() {
}


[1]
https://docs.wso2.com/display/CEP310/Writing+a+Custom+OutputAttributeAggregator

Thank You.
-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Some missing code segment in CEP Writing custom output aggregator documentation

2014-10-30 Thread Shashika Karunatilaka
Hi Tishan,
yes code segment is missing from OutputAttributeAggregator class, i will
create a doc JIRA and assign it to Praneesha

On Thu, Oct 30, 2014 at 2:57 PM, Tishan Dahanayakage 
wrote:

> Hi Shashika,
>
> Code segment is missing from OutputAttributeAggregator class. isn't it?
> Please raise a doc JIRA and assign it to Praneesha.
>
> On Thu, Oct 30, 2014 at 2:46 PM, Shashika Karunatilaka  > wrote:
>
>> Hi,
>> There is some missing code segment in CEP Writing custom output
>> aggregator documentation [1].  *destroy method* ( which needs to be
>> included when overriding) is missing from the  
>> *OuputAttributeAggregatorFactory
>> class.*
>> Missed code segment :
>> @Override
>> public void destroy() {
>> }
>>
>>
>> [1]
>> https://docs.wso2.com/display/CEP310/Writing+a+Custom+OutputAttributeAggregator
>>
>> Thank You.
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Tishan Dahanayakage
> Software Engineer
> WSO2, Inc.
> Mobile:+94 716481328
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, re-transmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Some missing code segment in CEP Writing custom output aggregator documentation

2014-10-30 Thread Shashika Karunatilaka
Hi Tishan,
I have created a JIRA on [1].

[1] https://wso2.org/jira/browse/DOCUMENTATION-1223

Thank You.

On Thu, Oct 30, 2014 at 3:24 PM, Shashika Karunatilaka 
wrote:

> Hi Tishan,
> yes code segment is missing from OutputAttributeAggregator class, i will
> create a doc JIRA and assign it to Praneesha
>
> On Thu, Oct 30, 2014 at 2:57 PM, Tishan Dahanayakage 
> wrote:
>
>> Hi Shashika,
>>
>> Code segment is missing from OutputAttributeAggregator class. isn't it?
>> Please raise a doc JIRA and assign it to Praneesha.
>>
>> On Thu, Oct 30, 2014 at 2:46 PM, Shashika Karunatilaka <
>> shashi...@wso2.com> wrote:
>>
>>> Hi,
>>> There is some missing code segment in CEP Writing custom output
>>> aggregator documentation [1].  *destroy method* ( which needs to be
>>> included when overriding) is missing from the  
>>> *OuputAttributeAggregatorFactory
>>> class.*
>>> Missed code segment :
>>> @Override
>>> public void destroy() {
>>> }
>>>
>>>
>>> [1]
>>> https://docs.wso2.com/display/CEP310/Writing+a+Custom+OutputAttributeAggregator
>>>
>>> Thank You.
>>> --
>>> Shashika Prabath Karunatilaka,
>>> Software Engineer,
>>> WSO2, Inc: http://wso2.com/
>>> mobile : +94 77 7487792
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Tishan Dahanayakage
>> Software Engineer
>> WSO2, Inc.
>> Mobile:+94 716481328
>>
>> Disclaimer: This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may have
>> received this communication in error, please reply to the sender indicating
>> that fact and delete the copy you received and in addition, you should not
>> print, copy, re-transmit, disseminate, or otherwise use the information
>> contained in this communication. Internet communications cannot be
>> guaranteed to be timely, secure, error or virus-free. The sender does not
>> accept liability for any errors or omissions.
>>
>
>
>
> --
> Shashika Prabath Karunatilaka,
> Software Engineer,
> WSO2, Inc: http://wso2.com/
> mobile : +94 77 7487792
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Niranjan Karunanandham

2014-11-04 Thread Shashika Karunatilaka
Congrats Niranjan

On Tue, Nov 4, 2014 at 4:50 PM, Dakshika Jayathilaka 
wrote:

> Congratulations Nira...!
>
> *Dakshika Jayathilaka*
> Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
> On Tue, Nov 4, 2014 at 4:44 PM, Kasun De Silva  wrote:
>
>> Congrats Niranjan..!!
>>
>> *Kasun de Silva*
>> Software Engineer | *WSO2 Inc.*; http://wso2.com
>> lean.enterprise.middleware
>>
>> email   : kas...@wso2.com
>> mobile : +94 77 794 4260
>>
>>
>> On Tue, Nov 4, 2014 at 4:38 PM, Pulasthi Supun  wrote:
>>
>>> Congrats 
>>>
>>>
>>> On Tue, Nov 4, 2014 at 4:35 PM, Milinda Perera 
>>> wrote:
>>>
 Congrats Niranjan ..

 On Tue, Nov 4, 2014 at 4:26 PM, Mahesh Chinthaka 
 wrote:

> Congratulations Niranjan...!!!
>
> On Tue, Nov 4, 2014 at 4:22 PM, Nipuni Perera  wrote:
>
>> Congratulations Niranjan
>>
>>
>>
>>
>> On Tue, Nov 4, 2014 at 4:14 PM, Srisunmugaraja Paraparan <
>> parapa...@wso2.com> wrote:
>>
>>> Congratulations Niranjan ...
>>>
>>> On Tue, Nov 4, 2014 at 4:08 PM, Harsha Kumara 
>>> wrote:
>>>
 Congratulations Niranjan!

 On Tue, Nov 4, 2014 at 4:04 PM, Suhan Dharmasuriya >>> > wrote:

> Congrats Niranjan!!!
>
> On Tue, Nov 4, 2014 at 4:00 PM, Shiroshica Kulatilake <
> sh...@wso2.com> wrote:
>
>> Congrats !!
>>
>> On Tue, Nov 4, 2014 at 3:51 PM, Jayanga Dissanayake <
>> jaya...@wso2.com> wrote:
>>
>>> Congratulations Niranjan...
>>>
>>> *Jayanga Dissanayake*
>>> Senior Software Engineer
>>> WSO2 Inc. - http://wso2.com/
>>> lean . enterprise . middleware
>>> email: jaya...@wso2.com
>>> mobile: +94772207259
>>>
>>> On Tue, Nov 4, 2014 at 12:35 PM, Isuruwan Herath <
>>> isuru...@wso2.com> wrote:
>>>
 Congratulations !!!

 On Tue, Nov 4, 2014 at 12:32 PM, KasunG Gajasinghe <
 kas...@wso2.com> wrote:

> Congratulations Niranjan!
>
> On Tue, Nov 4, 2014 at 12:30 PM, Godwin Amila Shrimal <
> god...@wso2.com> wrote:
>
>> Congratulations Niranjan...!
>>
>> On Tue, Nov 4, 2014 at 12:27 PM, Senduran Balasubramaniyam <
>> sendu...@wso2.com> wrote:
>>
>>> Congratulations Niranjan !!
>>>
>>> On Tue, Nov 4, 2014 at 12:20 PM, Abimaran Kugathasan <
>>> abima...@wso2.com> wrote:
>>>
 Congrats Niranjan!

 On Tue, Nov 4, 2014 at 12:15 PM, Kasun Dissanayake <
 kas...@wso2.com> wrote:

> Congradzzz Nira !!!
>
> On Tue, Nov 4, 2014 at 12:06 PM, Inosh Perera <
> ino...@wso2.com> wrote:
>
>> Congratulations Niranjan !!
>>
>>
>>
>> On Tue, Nov 4, 2014 at 11:56 AM, Rajeevan Vimalanathan <
>> rajeev...@wso2.com> wrote:
>>
>>> Congratz Niranjan...!!!
>>>
>>> On Tue, Nov 4, 2014 at 11:54 AM, Gayashan Amarasinghe <
>>> gayas...@wso2.com> wrote:
>>>
 Congratulations Niranjan!!! :)

 On Tue, Nov 4, 2014 at 11:47 AM, Prasanna Dangalla <
 prasa...@wso2.com> wrote:

> Congratulations !!!
>
> On Tue, Nov 4, 2014 at 11:45 AM, Aruna Karunarathna <
> ar...@wso2.com> wrote:
>
>> Congratulations Nira..!!!
>>
>> On Tue, Nov 4, 2014 at 11:44 AM, Kalpa Welivitigoda <
>> kal...@wso2.com> wrote:
>>
>>> Congratulations Niranjan !
>>>
>>> On Tue, Nov 4, 2014 at 11:43 AM, Sameera Perera <
>>> samee...@wso2.com> wrote:
>>>
 Hi all,

 It's my pleasure to announce Niranjan as a WSO2
 Committer.  He has been an active contributor for
 WSO2 Enterprise Mobility Manager.

 Niranjan, welcome aboard and keep up the good
 work!.

 --

 --

 *Sameera Perera*
 Director of Engine

Re: [Dev] WSO2 Committers += Asanka Abeyweera

2014-11-06 Thread Shashika Karunatilaka
Congrats Asanka..

On Fri, Nov 7, 2014 at 10:06 AM, Isuru Ranawaka  wrote:

> Congratulations Asanka
>
> On Fri, Nov 7, 2014 at 9:58 AM, Anuruddha Premalal 
> wrote:
>
>> Congratulations Asanka!!
>>
>> On Fri, Nov 7, 2014 at 9:32 AM, Niranjan Karunanandham > > wrote:
>>
>>> Congrats Asanka!!
>>>
>>> On Fri, Nov 7, 2014 at 9:24 AM, Godwin Amila Shrimal 
>>> wrote:
>>>
 Congratulations Asanka...!

 On Fri, Nov 7, 2014 at 9:20 AM, Kalpa Welivitigoda 
 wrote:

> Congratulations Asanka !
>
> On Fri, Nov 7, 2014 at 9:18 AM, Roshan Deniyage 
> wrote:
>
>> Congrats asanka!
>>
>> Roshan Deniyage
>> Associate Technical Lead
>> WSO2, Inc: http://wso2.com
>>
>> Mobile:  +94 777636406
>> Twitter:  *https://twitter.com/roshku
>> *
>> LinkedIn :  https://www.linkedin.com/in/roshandeniyage
>>
>>
>> On Thu, Nov 6, 2014 at 6:10 AM, Dilan Udara Ariyaratne <
>> dil...@wso2.com> wrote:
>>
>>> Congratulations, Asanka...!!!
>>>
>>>
>>> *Dilan U. Ariyaratne*
>>> Software Engineer
>>> WSO2 Inc. 
>>> Mobile: +94775149066
>>> lean . enterprise . middleware
>>>
>>> On Wed, Nov 5, 2014 at 11:55 PM, Hasitha Hiranya 
>>> wrote:
>>>
 Congratulations, Asanka...!!!

 On Wed, Nov 5, 2014 at 11:29 PM, Harsha Kumara 
 wrote:

> Congratulations Asanka!
>
> On Wed, Nov 5, 2014 at 11:27 PM, Rajith Vitharana <
> raji...@wso2.com> wrote:
>
>> Congratulations Asanka ... !!
>>
>> On Wed, Nov 5, 2014 at 8:37 AM, Ramith Jayasinghe <
>> ram...@wso2.com> wrote:
>>
>>> Hi Asanka,
>>>  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
>>>
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *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
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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

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


>>>
>>>
>>> --
>>>
>>> *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/de

Re: [Dev] WSO2 Committers += Harsha Kumara

2014-11-06 Thread Shashika Karunatilaka
Congratulations Harsha...

On Fri, Nov 7, 2014 at 11:05 AM, Thilini Anoratna  wrote:

> Congratz Harsha!!  :)
>
> On Fri, Nov 7, 2014 at 10:53 AM, Buddhima Wijeweera 
> wrote:
>
>> Congratulations Harsha !!!
>>
>> On Fri, Nov 7, 2014 at 10:47 AM, Roshan Wijesena  wrote:
>>
>>> Congratulations..!!
>>>
>>> On Fri, Nov 7, 2014 at 10:41 AM, Rajeevan Vimalanathan <
>>> rajeev...@wso2.com> wrote:
>>>
 Congratz Harsha...!!!

 On Fri, Nov 7, 2014 at 10:33 AM, Kalpa Welivitigoda 
 wrote:

> Congratulations Harsha !
>
> On Fri, Nov 7, 2014 at 10:26 AM, Mahesh Chinthaka 
> wrote:
>
>> Congratulations Harsha
>>
>> On Fri, Nov 7, 2014 at 10:17 AM, Prabath Abeysekera <
>> praba...@wso2.com> wrote:
>>
>>> Hi Everyone,
>>>
>>> It's my pleasure to welcome Harsha Kumara as a WSO2 Committer.
>>> Harsha has always been a key member of the Storage Server team 
>>> contributing
>>> immensely to SS related developments ever since he joined us a few 
>>> months
>>> back. In recognition of his contributions, ownership shown towards the
>>> tasks/responsibilities assigned to him, and commitment, he's been voted 
>>> as
>>> a WSO2 committer.
>>>
>>> Harsha, Welcome aboard and keep up the awesome work!
>>>
>>>
>>> Cheers,
>>> Prabath
>>> --
>>> Prabath Abeysekara
>>> Associate Technical Lead, Data TG.
>>> WSO2 Inc.
>>> Email: praba...@wso2.com
>>> Mobile: +94774171471
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>> Email: mahe...@wso2.com | Web: www.wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


>>>
>>>
>>> --
>>> Roshan Wijesena.
>>> Senior Software Engineer-WSO2 Inc.
>>> Mobile: *+94752126789*
>>> Email: ros...@wso2.com
>>> *WSO2, Inc. :** wso2.com *
>>> lean.enterprise.middleware.
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Buddhima Wijeweera
>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>>
>> Email: buddh...@wso2.com
>> Blog:   https://buddhimawijeweera.wordpress.com
>> GitHub Profile: https://github.com/Buddhima
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thilini Anoratna
> Software Engineering Intern
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> Mobile : +94 (0) 778955654
> Email: thili...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ESB platform build failiure : Compilation failure in Apache Synapse - Non-blocking HTTP/s Transport

2014-11-10 Thread Shashika Karunatilaka
Hi,

Im getting an error when building ESB platform from source(error log also
attached),

=

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.0:compile
(default-compile) on project synapse-nhttp-transport: Compilation failure:
Compilation failure:

[ERROR]
/Users/shashika/Documents/WSO2_PRODUCT_BUILD/carbon/platform/turing-chunk07/dependencies/synapse/2.1.2-wso2v4/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/certificatevalidation/ocsp/OCSPVerifier.java:[229,41]
cannot find symbol

[ERROR] symbol  : constructor
AuthorityInformationAccess(org.bouncycastle.asn1.ASN1Sequence)

[ERROR] location: class
org.bouncycastle.asn1.x509.AuthorityInformationAccess

[ERROR]

[ERROR]
/Users/shashika/Documents/WSO2_PRODUCT_BUILD/carbon/platform/turing-chunk07/dependencies/synapse/2.1.2-wso2v4/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/certificatevalidation/crl/CRLVerifier.java:[149,60]
incompatible types

[ERROR] found   : org.bouncycastle.asn1.ASN1Primitive

[ERROR] required: org.bouncycastle.asn1.DERObject

 end of error log ===


my java version is 1.6.0_65, and maven version is 3.0.5

downloaded the platform from this [1]
[1] https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk07/


Thank you.
-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792

[INFO] 

[INFO] Reactor Summary:

[INFO] 

[INFO] ODE ... SUCCESS [0.343s]

[INFO] ODE :: Agents . SUCCESS [1.207s]

[INFO] ODE :: Utilities .. SUCCESS [1.983s]

[INFO] ODE :: Java Concurrent Objects (JACOB)  SUCCESS [0.571s]

[INFO] ODE :: BPEL Schemas ... SUCCESS [4.255s]

[INFO] ODE :: BPEL Test Script Files . SUCCESS [0.457s]

[INFO] ODE :: OBJ  SUCCESS [0.465s]

[INFO] ODE :: APIs ... SUCCESS [0.653s]

[INFO] ODE :: JCA Connector .. SUCCESS [0.291s]

[INFO] ODE :: DAO Interfaces . SUCCESS [0.325s]

[INFO] ODE :: OpenJPA DAO Impl ... SUCCESS [3.544s]

[INFO] ODE :: JCA Resource Archive ... SUCCESS [0.309s]

[INFO] ODE :: JCA Server . SUCCESS [0.262s]

[INFO] ODE :: BPEL Scheduler Simple .. SUCCESS [0.535s]

[INFO] ODE :: BPEL Compiler .. SUCCESS [1.358s]

[INFO] ODE :: Interface Layers Common  SUCCESS [0.417s]

[INFO] ODE :: BPEL Query Language  SUCCESS [0.771s]

[INFO] ODE :: Hibernate DAO Implementation ... SUCCESS [4.961s]

[INFO] ODE :: Command Line Tools . SUCCESS [0.371s]

[INFO] ODE :: Process Store .. SUCCESS [2.256s]

[INFO] ODE :: Runtime Engine . SUCCESS [1.745s]

[INFO] ODE :: OpenJPA DDL Generation . SUCCESS [5.962s]

[INFO] ODE :: Hibernate DAO DDL Generation ... SUCCESS [3.112s]

[INFO] ODE :: JCA Connector Implementation ... SUCCESS [0.335s]

[INFO] ODE :: BPEL Tests . SUCCESS [0.629s]

[INFO] ODE :: AXIS2 .. SUCCESS [0.732s]

[INFO] ODE :: Extensions . SUCCESS [0.010s]

[INFO] ODE :: Extensions E4X . SUCCESS [0.477s]

[INFO] ODE :: Extensions Long Running  SUCCESS [0.357s]

[INFO] ode.wso2 .. SUCCESS [2.200s]

[INFO] Apache Synapse - Secure vault . SUCCESS [0.875s]

[INFO] Apache Synapse  SUCCESS [0.742s]

[INFO] Apache Synapse - Commons classes .. SUCCESS [1.246s]

[INFO] Apache Synapse - Transports ... SUCCESS [0.504s]

[INFO] Apache Synapse - Non-blocking HTTP/s Transport  FAILURE [0.701s]

[INFO] Apache Synapse - PIPE Transport ... SKIPPED

[INFO] Apache Synapse - VFS Transport  SKIPPED

[INFO] Apache Synapse - Tasks classes  SKIPPED

[INFO] Apache Synapse - Core . SKIPPED

[INFO] Apache Synapse - FIX Transport  SKIPPED

[INFO] Apache Synapse - Extensions ... SKIPPED

[INFO] Apache Synapse - Samples .. SKIPPED

[INFO] Apache Synapse - Patches .. SKIPPED

[INFO] Apache Synapse - Experimental code  SKIPPED

[INFO] Apache Synapse - Web Application .. SKIPPED

[INFO] Apach

Re: [Dev] [CEP] How to write a Siddhi query to get the total count from an Event Table

2014-11-13 Thread Shashika Karunatilaka
HI supun,
you can use the count function and grouping it by Initial_state(group by
Initial_state)

Thanks

On Fri, Nov 14, 2014 at 12:23 PM, Seshika Fernando  wrote:

> Why dont you use the sum(Initial_state) function with a group by
> Initial_state?
>
> On Fri, Nov 14, 2014 at 12:12 PM, Supun Muthutantrige 
> wrote:
>
>> Hii all,
>>
>> There is a mysql table with the following content.
>>
>>
>> The format of the in stream
>>
>>state:HTS
>>state:HFS
>>state:HTM
>>state:HTS
>>state:HTL
>>state:HFS
>>state:MTS
>>state:HTS
>>state:HTL
>>state:MFM
>>state:HTS
>>state:HFS​
>>
>>
>> The following siddhi query is used to populate the above table.
>>
>>
>> --
>>
>> define table MarkovModel (State_Transition string, Initial_state string,
>> countP double) from ('datasource.name'='FD_ToolBox_DB', 
>> 'database.name'='FDtoolbox',
>> 'table.name'='MarkovModel');
>>
>> from every a = inStream -> b = inStream
>> select a.Event as initialState, b.Event as transState,
>> concat(a.Event,b.Event) as StateTransition
>> insert into forCalculation;
>>
>> from forCalculation[((StateTransition!=MarkovModel.State_Transition)
>> in MarkovModel)]
>> select StateTransition, initialState, 1.0 as stateTrans_count
>> insert into insertIntoModel;
>>
>>
>> from forCalculation[((StateTransition==MarkovModel.State_Transition) in
>> MarkovModel)]#window.length(1) join MarkovModel
>> on forCalculation.StateTransition == MarkovModel.State_Transition
>> select StateTransition, initialState, (MarkovModel.countP+1) as
>> updatedState_count
>> insert into updateModel;
>>
>>
>> --
>>
>> Want to know how get the total count of *Initial_state*'s from the above
>> table as a continuation to the above query.
>>
>> Ex: HFS - 2
>>   HTL - 2
>>   HTM - 1
>>   HTS - 4
>>   MFM - 1
>>   MTS - 1
>>
>> Would appreciate any suggestions.
>>
>> Thank you
>> Regards
>>
>> *Supun Rasitha Muthutantrige*
>> Software Engineer | Intern
>> WSO2 Inc: http://wso2.com
>> lean.enterprise.middleware
>> Mobile: 0758374608
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sajini De Silva

2014-11-18 Thread Shashika Karunatilaka
Congrats Sajini

On Tue, Nov 18, 2014 at 2:17 PM, Supun Malinga  wrote:

> Congrats Sajini! :)
>
> On Tue, Nov 18, 2014 at 2:13 PM, Godwin Amila Shrimal 
> wrote:
>
>> Congratulations Sajini !!!
>>
>> On Tue, Nov 18, 2014 at 2:08 PM, Malintha Adikari 
>> wrote:
>>
>>> Congratulations Sajini !!!
>>>
>>> On Tue, Nov 18, 2014 at 8:13 AM, Ashan Dhananjaya 
>>> wrote:
>>>
 congratzz sajini. all da very best!! happy for u.

 On Tue, Nov 18, 2014 at 1:26 PM, Ramith Jayasinghe 
 wrote:

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


 --
 Ashan Dhananjaya Kumara
 Trainee Software Engineer, WSO2 Inc.
 Inc: *WSO2 Inc. *
 Phone : +94715547461
 Blog : http://ashandhananjaya.blogspot.com/
 Twitter  : https://twitter.com/Dhananjaya92
 Say ello :https://ello.co/ashandk





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


>>>
>>>
>>> --
>>> *Malintha Adikari*
>>>  Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> Mobile: +94 71 2312958
>>> Blog:http://malinthas.blogspot.com
>>> Page:   http://about.me/malintha
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Supun Malinga,
>
> Senior Software Engineer,
> WSO2 Inc.
> http://wso2.com
> email: sup...@wso2.com 
> mobile: +94 (0)71 56 91 321
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Asitha Nanayakkara

2014-11-23 Thread Shashika Karunatilaka
Congrats Asitha

On Mon, Nov 24, 2014 at 10:09 AM, Rajeevan Vimalanathan 
wrote:

> Congratz Asitha...!!!
>
> On Mon, Nov 24, 2014 at 10:07 AM, Gayashan Amarasinghe 
> wrote:
>
>> Congratulations Nanayakkara!!! =)
>>
>> On Mon, Nov 24, 2014 at 10:01 AM, Roshan Wijesena 
>> wrote:
>>
>>> Congratulations!!
>>>
>>> On Mon, Nov 24, 2014 at 9:50 AM, Ramith Jayasinghe 
>>> wrote:
>>>
 Hi Asitha,
 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

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


>>>
>>>
>>> --
>>> Roshan Wijesena.
>>> Senior Software Engineer-WSO2 Inc.
>>> Mobile: *+94752126789*
>>> Email: ros...@wso2.com
>>> *WSO2, Inc. :** wso2.com *
>>> lean.enterprise.middleware.
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> 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
>
>


-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


  1   2   >