Re: [Dev] [APIM] Please review and commit patch

2015-01-15 Thread Nuwan Dias
Done, if that issue resolves the two related issues as well, please resolve
them too.

Thanks,
NuwanD.

On Tue, Jan 13, 2015 at 4:02 PM, Abimaran Kugathasan abima...@wso2.com
wrote:

 Hi Nuwan


 Please commit following JIRA

 1. https://wso2.org/jira/browse/APIMANAGER-3204


 --
 Thanks
 Abimaran Kugathasan

 Software Engineer | WSO2 Inc
 Data  APIs Technologies Team
 Mobile : +94 773922820

 http://stackoverflow.com/users/515034
 http://lk.linkedin.com/in/abimaran
 http://www.lkabimaran.blogspot.com/  https://github.com/abimaran
 https://twitter.com/abimaran




-- 
Nuwan Dias

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


Re: [Dev] [APIM] Please review and comit patches

2015-01-15 Thread Nuwan Dias
Done.

Thanks,
NuwanD.

On Tue, Jan 13, 2015 at 3:55 PM, Abimaran Kugathasan abima...@wso2.com
wrote:

 Hi Nuwan,


 These JIRAs are not commited yet. Please commit them.

 On Mon, Dec 22, 2014 at 2:33 PM, Abimaran Kugathasan abima...@wso2.com
 wrote:

 $subject please for following JIRAs

 1. https://wso2.org/jira/browse/APIMANAGER-2780
 2. https://wso2.org/jira/browse/APIMANAGER-2965
 3. https://wso2.org/jira/browse/APIMANAGER-3228
 4. https://wso2.org/jira/browse/APIMANAGER-3231

 --
 Thanks
 Abimaran Kugathasan

 Software Engineer | WSO2 Inc
 Data  APIs Technologies Team
 Mobile : +94 773922820

 http://stackoverflow.com/users/515034
 http://lk.linkedin.com/in/abimaran
 http://www.lkabimaran.blogspot.com/  https://github.com/abimaran
 https://twitter.com/abimaran




 --
 Thanks
 Abimaran Kugathasan

 Software Engineer | WSO2 Inc
 Data  APIs Technologies Team
 Mobile : +94 773922820

 http://stackoverflow.com/users/515034
 http://lk.linkedin.com/in/abimaran
 http://www.lkabimaran.blogspot.com/  https://github.com/abimaran
 https://twitter.com/abimaran




-- 
Nuwan Dias

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


[Dev] Cannot do a -Dsetup after deleting the h2 database in Greg 5.0.0 pack

2015-01-15 Thread Pulasthi Supun
Hi All/BPS team,

We are getting the following error when we try to start the server with
-Dsetup option.

1. started the fresh pack normally
2. stopped the server and deleted the content in /repository/database
folder
3. restarted with -Dsetup


[2015-01-15 22:25:37,370]  INFO
{org.wso2.carbon.humantask.core.internal.HumanTaskServiceComponent} -
 Initialising HumanTask Server
[2015-01-15 22:25:37,442] ERROR
{org.wso2.carbon.utils.dbcreator.DatabaseCreator} -  Error occurred while
executing SQL script for creating registry database
java.io.FileNotFoundException:
/home/pulasthi/wso2/greg5/wso2greg-5.0.0-SNAPSHOT/dbscripts/bps/bpel/create/h2.sql
(No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.init(FileInputStream.java:120)
at java.io.FileInputStream.init(FileInputStream.java:79)
at
org.wso2.carbon.utils.dbcreator.DatabaseCreator.executeSQLScript(DatabaseCreator.java:296)
at
org.wso2.carbon.utils.dbcreator.DatabaseCreator.createRegistryDatabase(DatabaseCreator.java:61)
at
org.wso2.carbon.humantask.core.db.Database.setupHumanTaskDatabase(Database.java:94)
at org.wso2.carbon.humantask.core.db.Database.start(Database.java:78)
at
org.wso2.carbon.humantask.core.HumanTaskServer.initDataSource(HumanTaskServer.java:166)
at
org.wso2.carbon.humantask.core.HumanTaskServer.init(HumanTaskServer.java:95)
at
org.wso2.carbon.humantask.core.internal.HumanTaskServiceComponent.initHumanTaskServer(HumanTaskServiceComponent.java:100)
at
org.wso2.carbon.humantask.core.internal.HumanTaskServiceComponent.activate(HumanTaskServiceComponent.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
at
org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.registerAttachmentServerService(AttachmentServiceComponent.java:98)
at
org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.activate(AttachmentServiceComponent.java:73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)

Re: [Dev] [Urgent] [Greg] - Error when server start up

2015-01-15 Thread Pulasthi Supun
Hi Sameera/All

I changed the spring framework jar that is being used from
spring.framework_3.2.9.wso2v1.jar to spring.framework-3.1.0.wso2v1 and
was not able to reproduce the error ( This issue comes intermittently ).
What is the version of spring framework that should be packed for kernel
4.3.0 based releases. The carbon kernel parent pom[1] specifies
3.1.0.wso2v2 as the spring framework version but in carbon-commons [2]
the spring framework version is 3.2.9.wso2v1.

Please advice.


[1] https://github.com/wso2/carbon4-kernel/blob/release-4.3.0/parent/pom.xml
[2] https://github.com/wso2-dev/carbon-commons/blob/master/pom.xml

Best Regards,
Pulasthi

On Wed, Jan 14, 2015 at 11:26 PM, Prasanna Dangalla prasa...@wso2.com
wrote:

 Hi All,

 We are getting this error in Greg server start-up. This is blocking the
 Greg-M1 release due on 19th Jan.

 [2015-01-14 23:09:59,315]  INFO
 {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
 XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
 [2015-01-14 23:09:59,352]  INFO
 {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
 XML bean definitions from URL
 [jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]
 [2015-01-14 23:09:59,438]  INFO
 {org.springframework.beans.factory.support.DefaultListableBeanFactory} -
 Pre-instantiating singletons in
 org.springframework.beans.factory.support.DefaultListableBeanFactory@5c22251d:
 defining beans
 [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,tokEP,authzEndpointBean,tokenEndpointBean,revokeEndpointBean,userinfoEndpointBean];
 root of factory hierarchy
 [2015-01-14 23:09:59,615]  INFO
 {org.springframework.beans.factory.support.DefaultListableBeanFactory} -
 Destroying singletons in
 org.springframework.beans.factory.support.DefaultListableBeanFactory@5c22251d:
 defining beans
 [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,tokEP,authzEndpointBean,tokenEndpointBean,revokeEndpointBean,userinfoEndpointBean];
 root of factory hierarchy
 [2015-01-14 23:09:59,616] ERROR
 {org.apache.catalina.core.ApplicationContext} -  StandardWrapper.Throwable
 org.springframework.beans.factory.BeanCreationException: Error creating
 bean with name 'tokEP': Cannot resolve reference to bean
 'authzEndpointBean' while setting bean property 'serviceBeans' with key
 [0]; nested exception is
 org.springframework.beans.factory.BeanCreationException: Error creating
 bean with name 'authzEndpointBean' defined in URL
 [jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]: Instantiation of bean
 failed; nested exception is java.lang.NoClassDefFoundError:
 org/wso2/carbon/identity/oauth/cache/CacheKey
 at
 org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
 at
 org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
 at
 org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
 at
 org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
 at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
 at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
 at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
 at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
 at
 org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
 at
 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
 at
 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
 at
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
 at
 org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
 at
 org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
 at
 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
 at
 org.apache.cxf.transport.servlet.CXFServlet.createSpringContext(CXFServlet.java:160)
 at
 

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

2015-01-15 Thread Johann Nallathamby
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 ar...@wso2.com 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.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 
 shashi...@wso2.com 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 
 lakshm...@wso2.com 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 : 

[Dev] Please merge pull requests for IDENTITY-2620

2015-01-15 Thread Gayan Gunawardana
Hi,

Please merge PR [1],[2] for [3].

[1] https://github.com/wso2-dev/carbon-identity/pull/64
[2] https://github.com/wso2-dev/charon/pull/3
[3] https://wso2.org/jira/browse/IDENTITY-2620
-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Anyone who has written a restful service using spring?

2015-01-15 Thread Niranjan Karunanandham
Hi all,

$Subject plz.

Regards,
Nira

-- 

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


[Dev] Unable to login to LoginLogoutClient by a user for a test case due to an error

2015-01-15 Thread Hemika Kodikara
Hi All,

I am in the middle of writing a test case. I have a need to call a stub
through a user. But unable to login to LoginLogoutClient through a user.

With Admin, I am able to call the stub as follows.

AutomationContext automationContext = new AutomationContext(MB,
TestUserMode.SUPER_TENANT_ADMIN);
LoginLogoutClient loginLogoutClient = new
LoginLogoutClient(automationContext);
String loginSession = loginLogoutClient.login();
AndesAdminClient andesAdminClient = new AndesAdminClient(backendURL,
loginSession,
ConfigurationContextProvider.getInstance().getConfigurationContext());
String queueName = destination.replace(queue, StringUtils.EMPTY);
andesAdminClient.deleteQueue(queueName);

But unable to connect through a user as follows.

AutomationContext automationContext = new AutomationContext(MB, mb001,
FrameworkConstants.SUPER_TENANT_KEY, permissionUser);
LoginLogoutClient loginLogoutClient = new
LoginLogoutClient(automationContext);
String loginSession = loginLogoutClient.login();
AndesAdminClient andesAdminClient = new AndesAdminClient(backendURL,
loginSession,
ConfigurationContextProvider.getInstance().getConfigurationContext());
String queueName = destination.replace(queue, StringUtils.EMPTY);
andesAdminClient.deleteQueue(queueName);


Receiving the following error.

performAllQueuePermissionCase(org.wso2.mb.integration.tests.amqp.functional.PermissionTreeTestCase)
 Time elapsed: 10.821 sec   FAILURE!
org.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException:
Login Unsuccessful. Return false as a login status by Server
at
org.wso2.carbon.integration.common.admin.client.AuthenticatorClient.login(AuthenticatorClient.java:61)
at
org.wso2.carbon.integration.common.utils.LoginLogoutClient.login(LoginLogoutClient.java:68)
at
org.wso2.mb.integration.tests.amqp.functional.PermissionTreeTestCase.performDelete(PermissionTreeTestCase.java:287)
at
org.wso2.mb.integration.tests.amqp.functional.PermissionTreeTestCase.performAllQueuePermissionCase(PermissionTreeTestCase.java:224)


Following are user information and platform information from automation.xml

superTenant
tenant domain=carbon.super key=superTenant
admin
user key=superAdmin
userNameadmin/userName
passwordadmin/password
/user
/admin
users
user key=user1
userNametestuser11/userName
passwordtestuser11/password
/user
user key=user2
userNametestuser21/userName
passwordtestuser21/password
/user
user key=permissionUser
userNamepermissionUser/userName
passwordpermissionUser/password
/user
/users
/tenant
/superTenant


platform
!--
cluster instance details to be used to platform test execution
--
productGroup name=MB clusteringEnabled=false default=true

instance name=mb001 type=standalone
nonBlockingTransportEnabled=false
hosts
host type=defaultlocalhost/host
/hosts
ports
port type=http9763/port
port type=https9443/port
/ports
properties

/properties
/instance
/productGroup
/platform

Any help would be useful.


Regards,
Hemika

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

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


[Dev] Need a sample code for creating custom event builder in CEP

2015-01-15 Thread Chathuranga Rajapaksha
Hi,

We are doing a CEP training project and we have to create a custom event
builder in CEP. But we couldn't find any documentation for this.

Can you send a sample code or any documentation related to this.

Thanks.

-- 

Best Regards,

*Chathuranga Lakmal Rajapaksha*
Software Engineering Intern, WSO2 Lanka (pvt) Ltd.


*B. Sc. Eng. (Hons) Undergraduate*

*Dept. of Computer Science and Engineering*
*University of Moratuwa, Sri Lanka*
Mobile:+94712894647
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need a sample code for creating custom event builder in CEP

2015-01-15 Thread Manula Chathurika Thantriwatte
Hi Chathuranga,

This will helpful to you [1].

[1] https://docs.wso2.com/display/CEP300/Working+with+Event+Builders

Thanks !

On Fri, Jan 16, 2015 at 9:51 AM, Chathuranga Rajapaksha 
chathuran...@wso2.com wrote:

 Hi,

 We are doing a CEP training project and we have to create a custom event
 builder in CEP. But we couldn't find any documentation for this.

 Can you send a sample code or any documentation related to this.

 Thanks.

 --

 Best Regards,

 *Chathuranga Lakmal Rajapaksha*
 Software Engineering Intern, WSO2 Lanka (pvt) Ltd.


 *B. Sc. Eng. (Hons) Undergraduate*

 *Dept. of Computer Science and Engineering*
 *University of Moratuwa, Sri Lanka*
 Mobile:+94712894647

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




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

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


Re: [Dev] Cannot do a -Dsetup after deleting the h2 database in Greg 5.0.0 pack

2015-01-15 Thread Pulasthi Supun
Hi Hasitha,

Thanks for the quick response. Will check what you have mentioned and see.

Regards,
Pulasthi
On Jan 16, 2015 7:55 AM, Hasitha Aravinda hasi...@wso2.com wrote:

 Hi Pulasthi,

 I had a look at HumanTask featue, It is copying all DB scripts to correct
 location. ( Carbon_Home/dbscripts/bps/bpel/create/ ). Please note that
 we have changed [1] the dbscript structure for BPS 3.5.0.

 Can you verify following.

 1) To verify Humantak feature installation, check whether all DB scripts
 are in Greg p2-profile target folder. ( in 
 Carbon_Home/dbscripts/bps/bpel/create/
 )
 2) Then check maven assembly in distribution build, whether it is poining
 to correct location.


 [1] Mail with Subject - dbscripts folder structure for BPS 3.5.0 @Dev

 Thanks,
 Hasitha.


 On Thu, Jan 15, 2015 at 10:34 PM, Pulasthi Supun pulas...@wso2.com
 wrote:

 Hi All/BPS team,

 We are getting the following error when we try to start the server with
 -Dsetup option.

 1. started the fresh pack normally
 2. stopped the server and deleted the content in /repository/database
 folder
 3. restarted with -Dsetup


 [2015-01-15 22:25:37,370]  INFO
 {org.wso2.carbon.humantask.core.internal.HumanTaskServiceComponent} -
  Initialising HumanTask Server
 [2015-01-15 22:25:37,442] ERROR
 {org.wso2.carbon.utils.dbcreator.DatabaseCreator} -  Error occurred while
 executing SQL script for creating registry database
 java.io.FileNotFoundException:
 /home/pulasthi/wso2/greg5/wso2greg-5.0.0-SNAPSHOT/dbscripts/bps/bpel/create/h2.sql
 (No such file or directory)
 at java.io.FileInputStream.open(Native Method)
 at java.io.FileInputStream.init(FileInputStream.java:120)
 at java.io.FileInputStream.init(FileInputStream.java:79)
 at
 org.wso2.carbon.utils.dbcreator.DatabaseCreator.executeSQLScript(DatabaseCreator.java:296)
 at
 org.wso2.carbon.utils.dbcreator.DatabaseCreator.createRegistryDatabase(DatabaseCreator.java:61)
 at
 org.wso2.carbon.humantask.core.db.Database.setupHumanTaskDatabase(Database.java:94)
 at org.wso2.carbon.humantask.core.db.Database.start(Database.java:78)
 at
 org.wso2.carbon.humantask.core.HumanTaskServer.initDataSource(HumanTaskServer.java:166)
 at
 org.wso2.carbon.humantask.core.HumanTaskServer.init(HumanTaskServer.java:95)
 at
 org.wso2.carbon.humantask.core.internal.HumanTaskServiceComponent.initHumanTaskServer(HumanTaskServiceComponent.java:100)
 at
 org.wso2.carbon.humantask.core.internal.HumanTaskServiceComponent.activate(HumanTaskServiceComponent.java:77)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
 at
 org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.registerAttachmentServerService(AttachmentServiceComponent.java:98)
 at
 org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.activate(AttachmentServiceComponent.java:73)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 

Re: [Dev] An error occurred while obtaining the list of states in MobileAppLifeCycle

2015-01-15 Thread Thushara Ranawaka
[adding dev]

Hi Shazni,

Yes, that was the issue. after using a fresh pack which include the given
patch, problem[1] sorted out.

[1] - https://wso2.org/jira/browse/REGISTRY-2382
Thanks,

On Fri, Jan 16, 2015 at 8:06 AM, Shazni Nazeer sha...@wso2.com wrote:

 For this issue I think the above attached jar should be in a fresh pack at
 the first start it self. If you have started your pack once before even
 without this jar it might not work. So add this jar in a fresh G-Reg 5 pack
 as a patch and try your scenario.

 This jar should be packed from the ES feature ideally once they merge and
 there latest feature is in nexus. Till then, you have to add this in a
 fresh pack it self.

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com

 On Thu, Jan 15, 2015 at 1:56 PM, Shazni Nazeer sha...@wso2.com wrote:

 Seems it's not related to that either. I can add a wsdl, view it add
 lifecycle etc. Are you checking this in a fresh G-Reg 5 build pack?

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com

 On Thu, Jan 15, 2015 at 1:23 PM, Shazni Nazeer sha...@wso2.com wrote:

 I think this needs the attached jar inside a patch. Can you check with
 the attached jar inside a patch?

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com

 On Thu, Jan 15, 2015 at 12:01 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:


 Hi Shazni,

 Im facing this issue[1] which looks cause by the multiple lifecycle PR.
 Will you be able to look into this issue.

 [1] - https://wso2.org/jira/browse/REGISTRY-2382
 Thanks,
 --
 Thushara Kasun Ranawaka
 Software Engineer
 WSO2 Inc.; http://www.wso2.com
 lean.enterprise.middleware
 Mobile : *+94 (0) 773438949 %2B94%20%280%29%20773438949*
 *thusha...@wso2.com thusha...@wso2.com*







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


Re: [Dev] Unable to login to LoginLogoutClient by a user for a test case due to an error

2015-01-15 Thread Waruna Perera
Hi Hemika,

Can you try the same thing in following manner as suggested below and see
whether user can login.

create UserManagementClient.
login to tenant  using UserManagementClient
create user with required permission via UserManagementClient
login with created user

Then we can pin point the issue. I have provided you with a code.

private UserManagementClient userManagementClient;

userManagementClient = new UserManagementClient(
context.getContextUrls().getBackEndUrl(),
context.getContextTenant().getContextUser().getUserName(),
context.getContextTenant().getContextUser().getPassword());

String subscriberUser = subscriberUser;
String password = password@123;
String accessToken;

if ((userManagementClient != null) 
!userManagementClient.userNameExists(Internal/subscriber,
subscriberUser)) {
userManagementClient.addUser(subscriberUser, password,
new String[]{Internal/subscriber}, null);
}


[1]
https://github.com/amalkasubasinghe/product-apim/blob/master/modules/integration/tests-integration/tests-scenario/src/test/java/org/wso2/carbon/am/tests/sample/JWTTestCase.java

On Fri, Jan 16, 2015 at 9:00 AM, Saneth Dharmakeerthi sane...@wso2.com
wrote:

 Hi Hemika,

 Can you please check whether you can manually login to the server with 
 permissionUser
 by  putting a long sleep or debug point before the String loginSession =
 loginLogoutClient.login();, so we can verify that the users is correctly
 created in the system with correct credential.

 Also please try with org.wso2.carbon.automation.core.utils.LoginLogoutUtil.



 Thanks and Best Regards,

 Saneth Dharmakeerthi
 Senior Software Engineer
 WSO2, Inc.
 Mobile: +94772325511

 On Fri, Jan 16, 2015 at 7:48 AM, Hemika Kodikara hem...@wso2.com wrote:

 Hi Nuwan,

 Yes that is there as well. Attaching the automation.xml.

 Following gets printed on the console.

 Jan 16, 2015 1:25:18 AM
 org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator
 addTenantUsers
 INFO: User - permissionUser created in tenant domain of  carbon.super

 Regards,
 Hemika

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

 Mobile : +9477762

 On Fri, Jan 16, 2015 at 6:53 AM, Nuwan Wimalasekara nuw...@wso2.com
 wrote:

 Hi
 Can you please check whether the user is created on the server. In order
 to create the user at the test execution time, you need to have the
 UserPopulateExtension  in automation.xml

 platformExecutionManager
 extentionClasses
 class

 nameorg.wso2.carbon.integration.common.extensions.usermgt.UserPopulateExtension/name
 /class
 /extentionClasses
 /platformExecutionManager

 Thanks,
 Nuwanw

 On Thu, Jan 15, 2015 at 11:41 AM, Hemika Kodikara hem...@wso2.com
 wrote:

 Hi All,

 I am in the middle of writing a test case. I have a need to call a stub
 through a user. But unable to login to LoginLogoutClient through a user.

 With Admin, I am able to call the stub as follows.

 AutomationContext automationContext = new AutomationContext(MB,
 TestUserMode.SUPER_TENANT_ADMIN);
 LoginLogoutClient loginLogoutClient = new
 LoginLogoutClient(automationContext);
 String loginSession = loginLogoutClient.login();
 AndesAdminClient andesAdminClient = new AndesAdminClient(backendURL,
 loginSession,
 ConfigurationContextProvider.getInstance().getConfigurationContext());
 String queueName = destination.replace(queue, StringUtils.EMPTY);
 andesAdminClient.deleteQueue(queueName);

 But unable to connect through a user as follows.

 AutomationContext automationContext = new AutomationContext(MB,
 mb001, FrameworkConstants.SUPER_TENANT_KEY, permissionUser);
 LoginLogoutClient loginLogoutClient = new
 LoginLogoutClient(automationContext);
 String loginSession = loginLogoutClient.login();
 AndesAdminClient andesAdminClient = new AndesAdminClient(backendURL,
 loginSession,
 ConfigurationContextProvider.getInstance().getConfigurationContext());
 String queueName = destination.replace(queue, StringUtils.EMPTY);
 andesAdminClient.deleteQueue(queueName);


 Receiving the following error.

 performAllQueuePermissionCase(org.wso2.mb.integration.tests.amqp.functional.PermissionTreeTestCase)
  Time elapsed: 10.821 sec   FAILURE!
 org.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException:
 Login Unsuccessful. Return false as a login status by Server
 at
 org.wso2.carbon.integration.common.admin.client.AuthenticatorClient.login(AuthenticatorClient.java:61)
 at
 org.wso2.carbon.integration.common.utils.LoginLogoutClient.login(LoginLogoutClient.java:68)
 at
 org.wso2.mb.integration.tests.amqp.functional.PermissionTreeTestCase.performDelete(PermissionTreeTestCase.java:287)
 at
 org.wso2.mb.integration.tests.amqp.functional.PermissionTreeTestCase.performAllQueuePermissionCase(PermissionTreeTestCase.java:224)


 Following are user information and platform information from
 automation.xml

 superTenant

[Dev] How to get Realm configuration in carbon 4.3.0

2015-01-15 Thread Lakshman Udayakantha
Hi Devs,

In carbon 4.2.0 below is the way it gets.

RealmConfiguration realmConfig =
TenantMgtServiceComponent.getRealmService().getBootstrapRealmConfiguration();

But in carbon 4.3.0 after I get realmConfig in above way, when I call

realmConfig.getRealmProperty(JDBCRealmConstants.URL);

is returns null. Even though url property is in masterdatasource.xml in
relevant datasource property. Is there any specific way to get realmConfig
in carbon 4.3.0?

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


Re: [Dev] Anyone who has written a restful service using spring?

2015-01-15 Thread Waruna Perera
Hi,

Pls see if this helps [1].

[1] https://spring.io/guides/gs/consuming-rest/

On Fri, Jan 16, 2015 at 12:47 AM, Niranjan Karunanandham niran...@wso2.com
wrote:

 Hi all,

 $Subject plz.

 Regards,
 Nira

 --

 *Niranjan Karunanandham*
 WSO2 Inc.: http://www.wso2.com

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




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


Re: [Dev] Need a sample code for creating custom event builder in CEP

2015-01-15 Thread Mohanadarshan Vivekanandalingam
Hi Chathuranga,

What is the use case for creating custom event builder. Can you please
specify the use case ?

Thanks,
Mohan


On Fri, Jan 16, 2015 at 9:51 AM, Chathuranga Rajapaksha 
chathuran...@wso2.com wrote:

 Hi,

 We are doing a CEP training project and we have to create a custom event
 builder in CEP. But we couldn't find any documentation for this.

 Can you send a sample code or any documentation related to this.

 Thanks.

 --

 Best Regards,

 *Chathuranga Lakmal Rajapaksha*
 Software Engineering Intern, WSO2 Lanka (pvt) Ltd.


 *B. Sc. Eng. (Hons) Undergraduate*

 *Dept. of Computer Science and Engineering*
 *University of Moratuwa, Sri Lanka*
 Mobile:+94712894647




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


Re: [Dev] Demote action is visible for Uploadable apps - APPFAC-2702

2015-01-15 Thread Dimuthu Leelarathne
Hi all,

The lifecycle page is the weakest page in AF and not fully dynamic. It
needs to be rewritten at some point.

thanks,
dimuthu


On Fri, Jan 16, 2015 at 7:16 AM, Janaka Ranabahu jan...@wso2.com wrote:

 Hi Danushka,

 On Wed, Jan 14, 2015 at 11:57 PM, Danushka Fernando danush...@wso2.com
 wrote:

 Hi all
 [1] is fixed by having a check in ui to check whether its an uploadable
 application. But currently we have a different lifecycle for uploadable
 applications. So shouldn't we fix this by changing something in lifecycle.
 Since we are moving towards lifecycle per app type, I prefer fixing this by
 looking at the lifecycle. WDYT?

 ​True. The UI should be generated by reading all the transition
 elements(where the event attribute is the action that is showed in the
 UI) of each stage. That way, the per app type lifecycle model will work
 without any issue.
 Please note that a lifecycle stage can have 0 or more transitions.

 Thanks,
 Janaka




 [1] https://wso2.org/jira/browse/APPFAC-2702


 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729




 --
 *Janaka Ranabahu*
 Senior Software Engineer; WSO2 Inc.; http://wso2.com


 *E-mail: jan...@wso2.com http://wso2.com**M: **+94 718370861
 %2B94%20718370861*

 Lean . Enterprise . Middleware




-- 
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] SVN External in APIM tests/resource

2015-01-15 Thread Dinesh J Weerakkody
Hi,

Following SVN External links are there in test module of APIManager 1.9.0.

   - modules/integration/tests/src/test/resources
   - modules/integration/tests-ui/src/test/resources

both locations are pointed to

https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/platform-integration/platform-automated-test-suite/
*1.8.0*/org.wso2.carbon.automation.test.repo/src/main/resources/artifacts/AM
artifacts/AM

I'm curious to know followings. please help me to understand.

   1. What is the reason for having a SVN external in these locations?
   2. Please note that it is pointed to 1.8.0 location. Is this pointed
   location is correct? I think it should be pointed to 1.9.0 location?
   3. There are several directories in
   org.wso2.carbon.automation.test.repo/src/main/resources/artifacts/AM
   artifacts/ location such as BAM, AS. if this location is for APIM what is
   the reason for having other product folders?
   4. If this is a common place to have all the configuration files why it
   is under 1.8.0? 1.8.0 is APIM version.


Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Anyone who has written a restful service using spring?

2015-01-15 Thread Abimaran Kugathasan
Hi Niranjan,


I jave written MDM client for WSO2 Enterprise Mobility Manager. You can
find it here [1]

[1] :
https://svn.wso2.com/wso2/interns/2013/abimaran/training/modules/project-windows-rest-mdm/

On Fri, Jan 16, 2015 at 10:23 AM, Waruna Perera waru...@wso2.com wrote:

 Hi,

 Pls see if this helps [1].

 [1] https://spring.io/guides/gs/consuming-rest/

 On Fri, Jan 16, 2015 at 12:47 AM, Niranjan Karunanandham 
 niran...@wso2.com wrote:

 Hi all,

 $Subject plz.

 Regards,
 Nira

 --

 *Niranjan Karunanandham*
 WSO2 Inc.: http://www.wso2.com

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




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

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




-- 
Thanks
Abimaran Kugathasan

Software Engineer | WSO2 Inc
Data  APIs Technologies Team
Mobile : +94 773922820

http://stackoverflow.com/users/515034
http://lk.linkedin.com/in/abimaran  http://www.lkabimaran.blogspot.com/
https://github.com/abimaran  https://twitter.com/abimaran
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Upgrading jcifs and JSch to the latest versions

2015-01-15 Thread Sandamal Weerasinghe
Hi Carbon Team,

Please merge the pull request [1]

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

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Wed, Jan 14, 2015 at 2:42 PM, Sandamal Weerasinghe sanda...@wso2.com
wrote:

 Hi all,

 Currently we are using jcifs_0.8.3 (released with Carbon 3.1.0)
 and jsch_0.1.49 (released with Carbon 4.1.0). I am in the process of
 upgrading them to the latest versions available on Maven.

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

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


Re: [Dev] Apply Security for Services via Developer Studio

2015-01-15 Thread Sohani Weerasinghe
Hi Harshana,

As the initial step we are going to implement an editor to generate
predefined ws- policy files conforming to ws-policy framework. As a further
improvement we will consider about facilitating to write custom policies.

Thanks,
Sohani

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

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

On Tue, Jan 13, 2015 at 11:13 AM, Harshana Eranga Martin 
harshan...@gmail.com wrote:

 Hi Sohani,

 In order to  create the policy file via DevS, is there an Editor in DevS
 which can generate ws-policy files conforming to ws-policy [1] franework?

 [1]. http://schemas.xmlsoap.org/ws/2004/09/policy/

 Thanks and Regards,
 Harshana
 On 13 Jan 2015 13:22, Sohani Weerasinghe soh...@wso2.com wrote:

 Hi,

 An improvement for applying security for web services by associating with
 WSDLs has been started. The security policy will be created via Developer
 Studio, basically for Axis2Service projects, ESB config projects and DSS
 projects. The security policy file will be saved as a registry resource and
 will be deployed via CAPPs.

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

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

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


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


Re: [Dev] [Urgent] [Greg] - Error when server start up

2015-01-15 Thread KasunG Gajasinghe
Hi Pulasthi,

You should use the spring framework 3.2.9 which should be used across all
the 4.3.0 based products. Spring comes from the platform. Carbon kernel
does not ship it.

Regards,
KasunG

On Thu, Jan 15, 2015 at 11:26 PM, Pulasthi Supun pulas...@wso2.com wrote:

 Hi Sameera/All

 I changed the spring framework jar that is being used from
 spring.framework_3.2.9.wso2v1.jar to spring.framework-3.1.0.wso2v1 and
 was not able to reproduce the error ( This issue comes intermittently ).
 What is the version of spring framework that should be packed for kernel
 4.3.0 based releases. The carbon kernel parent pom[1] specifies
 3.1.0.wso2v2 as the spring framework version but in carbon-commons [2]
 the spring framework version is 3.2.9.wso2v1.

 Please advice.


 [1]
 https://github.com/wso2/carbon4-kernel/blob/release-4.3.0/parent/pom.xml
 [2] https://github.com/wso2-dev/carbon-commons/blob/master/pom.xml

 Best Regards,
 Pulasthi

 On Wed, Jan 14, 2015 at 11:26 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 Hi All,

 We are getting this error in Greg server start-up. This is blocking the
 Greg-M1 release due on 19th Jan.

 [2015-01-14 23:09:59,315]  INFO
 {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
 XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
 [2015-01-14 23:09:59,352]  INFO
 {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
 XML bean definitions from URL
 [jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]
 [2015-01-14 23:09:59,438]  INFO
 {org.springframework.beans.factory.support.DefaultListableBeanFactory} -
 Pre-instantiating singletons in
 org.springframework.beans.factory.support.DefaultListableBeanFactory@5c22251d:
 defining beans
 [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,tokEP,authzEndpointBean,tokenEndpointBean,revokeEndpointBean,userinfoEndpointBean];
 root of factory hierarchy
 [2015-01-14 23:09:59,615]  INFO
 {org.springframework.beans.factory.support.DefaultListableBeanFactory} -
 Destroying singletons in
 org.springframework.beans.factory.support.DefaultListableBeanFactory@5c22251d:
 defining beans
 [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,tokEP,authzEndpointBean,tokenEndpointBean,revokeEndpointBean,userinfoEndpointBean];
 root of factory hierarchy
 [2015-01-14 23:09:59,616] ERROR
 {org.apache.catalina.core.ApplicationContext} -  StandardWrapper.Throwable
 org.springframework.beans.factory.BeanCreationException: Error creating
 bean with name 'tokEP': Cannot resolve reference to bean
 'authzEndpointBean' while setting bean property 'serviceBeans' with key
 [0]; nested exception is
 org.springframework.beans.factory.BeanCreationException: Error creating
 bean with name 'authzEndpointBean' defined in URL
 [jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]: Instantiation of bean
 failed; nested exception is java.lang.NoClassDefFoundError:
 org/wso2/carbon/identity/oauth/cache/CacheKey
 at
 org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
 at
 org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
 at
 org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
 at
 org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
 at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
 at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
 at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
 at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
 at
 org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
 at
 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
 at
 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
 at
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
 at
 org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
 at
 

Re: [Dev] [Urgent] [Greg] - Error when server start up

2015-01-15 Thread Supun Malinga
I think its better to investigate on the original issue on the CNF rather
than downgrading the spring version.

Anyways this looks like a CXF webapp deployment failure. CXF runtime
environment has spring as well. You can check what's the given runtime
environments in the webapp.

Try removing Carbon runtime env. if its enabled and not being used.

thanks,

On Fri, Jan 16, 2015 at 11:33 AM, KasunG Gajasinghe kas...@wso2.com wrote:

 Hi Pulasthi,

 You should use the spring framework 3.2.9 which should be used across all
 the 4.3.0 based products. Spring comes from the platform. Carbon kernel
 does not ship it.

 Regards,
 KasunG

 On Thu, Jan 15, 2015 at 11:26 PM, Pulasthi Supun pulas...@wso2.com
 wrote:

 Hi Sameera/All

 I changed the spring framework jar that is being used from
 spring.framework_3.2.9.wso2v1.jar to spring.framework-3.1.0.wso2v1 and
 was not able to reproduce the error ( This issue comes intermittently ).
 What is the version of spring framework that should be packed for kernel
 4.3.0 based releases. The carbon kernel parent pom[1] specifies
 3.1.0.wso2v2 as the spring framework version but in carbon-commons [2]
 the spring framework version is 3.2.9.wso2v1.

 Please advice.


 [1]
 https://github.com/wso2/carbon4-kernel/blob/release-4.3.0/parent/pom.xml
 [2] https://github.com/wso2-dev/carbon-commons/blob/master/pom.xml

 Best Regards,
 Pulasthi

 On Wed, Jan 14, 2015 at 11:26 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 Hi All,

 We are getting this error in Greg server start-up. This is blocking the
 Greg-M1 release due on 19th Jan.

 [2015-01-14 23:09:59,315]  INFO
 {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
 XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
 [2015-01-14 23:09:59,352]  INFO
 {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
 XML bean definitions from URL
 [jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]
 [2015-01-14 23:09:59,438]  INFO
 {org.springframework.beans.factory.support.DefaultListableBeanFactory} -
 Pre-instantiating singletons in
 org.springframework.beans.factory.support.DefaultListableBeanFactory@5c22251d:
 defining beans
 [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,tokEP,authzEndpointBean,tokenEndpointBean,revokeEndpointBean,userinfoEndpointBean];
 root of factory hierarchy
 [2015-01-14 23:09:59,615]  INFO
 {org.springframework.beans.factory.support.DefaultListableBeanFactory} -
 Destroying singletons in
 org.springframework.beans.factory.support.DefaultListableBeanFactory@5c22251d:
 defining beans
 [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,tokEP,authzEndpointBean,tokenEndpointBean,revokeEndpointBean,userinfoEndpointBean];
 root of factory hierarchy
 [2015-01-14 23:09:59,616] ERROR
 {org.apache.catalina.core.ApplicationContext} -  StandardWrapper.Throwable
 org.springframework.beans.factory.BeanCreationException: Error creating
 bean with name 'tokEP': Cannot resolve reference to bean
 'authzEndpointBean' while setting bean property 'serviceBeans' with key
 [0]; nested exception is
 org.springframework.beans.factory.BeanCreationException: Error creating
 bean with name 'authzEndpointBean' defined in URL
 [jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]: Instantiation of bean
 failed; nested exception is java.lang.NoClassDefFoundError:
 org/wso2/carbon/identity/oauth/cache/CacheKey
 at
 org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
 at
 org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
 at
 org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
 at
 org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
 at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
 at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
 at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
 at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
 at
 org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
 at
 

Re: [Dev] How to get Realm configuration in carbon 4.3.0

2015-01-15 Thread Lakshman Udayakantha
I am checking this in wso2as-6.0.0-SNAPSHOT. Anyone has any idea the reason
for this?

On Fri, Jan 16, 2015 at 10:19 AM, Lakshman Udayakantha lakshm...@wso2.com
wrote:

 Hi Devs,

 In carbon 4.2.0 below is the way it gets.

 RealmConfiguration realmConfig =
 TenantMgtServiceComponent.getRealmService().getBootstrapRealmConfiguration();

 But in carbon 4.3.0 after I get realmConfig in above way, when I call

 realmConfig.getRealmProperty(JDBCRealmConstants.URL);

 is returns null. Even though url property is in masterdatasource.xml in
 relevant datasource property. Is there any specific way to get realmConfig
 in carbon 4.3.0?

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


Re: [Dev] Cannot do a -Dsetup after deleting the h2 database in Greg 5.0.0 pack

2015-01-15 Thread Pulasthi Supun
Hi Hasitha,

Tested the changes and the issue was resolved.

Thanks,
Pulasthi

On Fri, Jan 16, 2015 at 9:59 AM, Pulasthi Supun pulas...@wso2.com wrote:

 Hi Hasitha,

 Thanks for the quick response. Will check what you have mentioned and see.

 Regards,
 Pulasthi
 On Jan 16, 2015 7:55 AM, Hasitha Aravinda hasi...@wso2.com wrote:

 Hi Pulasthi,

 I had a look at HumanTask featue, It is copying all DB scripts to correct
 location. ( Carbon_Home/dbscripts/bps/bpel/create/ ). Please note that
 we have changed [1] the dbscript structure for BPS 3.5.0.

 Can you verify following.

 1) To verify Humantak feature installation, check whether all DB scripts
 are in Greg p2-profile target folder. ( in 
 Carbon_Home/dbscripts/bps/bpel/create/
 )
 2) Then check maven assembly in distribution build, whether it is poining
 to correct location.


 [1] Mail with Subject - dbscripts folder structure for BPS 3.5.0 @Dev

 Thanks,
 Hasitha.


 On Thu, Jan 15, 2015 at 10:34 PM, Pulasthi Supun pulas...@wso2.com
 wrote:

 Hi All/BPS team,

 We are getting the following error when we try to start the server with
 -Dsetup option.

 1. started the fresh pack normally
 2. stopped the server and deleted the content in /repository/database
 folder
 3. restarted with -Dsetup


 [2015-01-15 22:25:37,370]  INFO
 {org.wso2.carbon.humantask.core.internal.HumanTaskServiceComponent} -
  Initialising HumanTask Server
 [2015-01-15 22:25:37,442] ERROR
 {org.wso2.carbon.utils.dbcreator.DatabaseCreator} -  Error occurred while
 executing SQL script for creating registry database
 java.io.FileNotFoundException:
 /home/pulasthi/wso2/greg5/wso2greg-5.0.0-SNAPSHOT/dbscripts/bps/bpel/create/h2.sql
 (No such file or directory)
 at java.io.FileInputStream.open(Native Method)
 at java.io.FileInputStream.init(FileInputStream.java:120)
 at java.io.FileInputStream.init(FileInputStream.java:79)
 at
 org.wso2.carbon.utils.dbcreator.DatabaseCreator.executeSQLScript(DatabaseCreator.java:296)
 at
 org.wso2.carbon.utils.dbcreator.DatabaseCreator.createRegistryDatabase(DatabaseCreator.java:61)
 at
 org.wso2.carbon.humantask.core.db.Database.setupHumanTaskDatabase(Database.java:94)
 at org.wso2.carbon.humantask.core.db.Database.start(Database.java:78)
 at
 org.wso2.carbon.humantask.core.HumanTaskServer.initDataSource(HumanTaskServer.java:166)
 at
 org.wso2.carbon.humantask.core.HumanTaskServer.init(HumanTaskServer.java:95)
 at
 org.wso2.carbon.humantask.core.internal.HumanTaskServiceComponent.initHumanTaskServer(HumanTaskServiceComponent.java:100)
 at
 org.wso2.carbon.humantask.core.internal.HumanTaskServiceComponent.activate(HumanTaskServiceComponent.java:77)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
 at
 org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.registerAttachmentServerService(AttachmentServiceComponent.java:98)
 at
 org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.activate(AttachmentServiceComponent.java:73)
 at 

[Dev] [ES] [APPM] Creating a duplicate assets exception is shown

2015-01-15 Thread Chathura Dilan
Hi,

Regarding the issue[1], IMO this is a user error and this should not be
shown to the backend as a exception. Exception should be thrown to the UI
layer to handle. WDYT?


[1]- https://wso2.org/jira/browse/APPM-310

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


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

2015-01-15 Thread Lakshman Udayakantha
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 joh...@wso2.com 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 ar...@wso2.com
 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.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 
 shashi...@wso2.com 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 
 lakshm...@wso2.com 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
 

Re: [Dev] How to get Realm configuration in carbon 4.3.0

2015-01-15 Thread Lakshman Udayakantha
Hi All,

problem solved by making a JNDI lookup for the datasourceName that came
with realmConfig.

Thanks

On Fri, Jan 16, 2015 at 11:49 AM, Lakshman Udayakantha lakshm...@wso2.com
wrote:

 I am checking this in wso2as-6.0.0-SNAPSHOT. Anyone has any idea the
 reason for this?

 On Fri, Jan 16, 2015 at 10:19 AM, Lakshman Udayakantha lakshm...@wso2.com
  wrote:

 Hi Devs,

 In carbon 4.2.0 below is the way it gets.

 RealmConfiguration realmConfig =
 TenantMgtServiceComponent.getRealmService().getBootstrapRealmConfiguration();

 But in carbon 4.3.0 after I get realmConfig in above way, when I call

 realmConfig.getRealmProperty(JDBCRealmConstants.URL);

 is returns null. Even though url property is in masterdatasource.xml in
 relevant datasource property. Is there any specific way to get realmConfig
 in carbon 4.3.0?

 --
 Lakshman Udayakantha
 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware
 Mobile: *0711241005*




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


[Dev] [AM] App Manager 1.0.0 Testing

2015-01-15 Thread Yasassri Ratnayake
Hi All,

We are currently testing the wso2appm-1.0.0-ALPHA pack. We will use this
thread to update the progress and issues.

ATM we are facing some blocking issues and they have being reported at [1],

@AM_Team please do the needful to fix these issues ASAP for us to continue
the testing without any delays.


[1] - *https://wso2.org/jira/issues/?filter=12103
https://wso2.org/jira/issues/?filter=12103*

With Regards,
-- 
Yasassri Ratnayake
Software Engineer - QA
WSO2 Inc ; http://wso2.com
lean.enterprise.middleware
*Mobile : +94715933168*
*Blog : http://yasassriratnayake.blogspot.com/
http://yasassriratnayake.blogspot.com/*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and commit attached test cases

2015-01-15 Thread Nuwan Dias
Adding Sanjeewa

On Fri, Jan 16, 2015 at 10:54 AM, Dinesh J Weerakkody dine...@wso2.com
wrote:

 Hi,

 I have attached herewith test cases and configuration files for

- Custom sequence execution on API invocation
- Performance test for My subscription page of API Store

 Please review and commit to APIM 1.9.0

 Thanks

 *Dinesh J. Weerakkody*
 Software Engineer
 WSO2 Inc.
 lean | enterprise | middleware
 M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com




-- 
Nuwan Dias

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


Re: [Dev] [AM] App Manager 1.0.0 Testing

2015-01-15 Thread Dinusha Senanayaka
Hi Yasassri,

We have assigned Ruwan  Chathura for fixing issues. will check on those
issues.

Regards,
Dinusha.

On Fri, Jan 16, 2015 at 12:35 PM, Yasassri Ratnayake yasas...@wso2.com
wrote:

 Hi All,

 We are currently testing the wso2appm-1.0.0-ALPHA pack. We will use this
 thread to update the progress and issues.

 ATM we are facing some blocking issues and they have being reported at
 [1],

 @AM_Team please do the needful to fix these issues ASAP for us to continue
 the testing without any delays.


 [1] - *https://wso2.org/jira/issues/?filter=12103
 https://wso2.org/jira/issues/?filter=12103*

 With Regards,
 --
 Yasassri Ratnayake
 Software Engineer - QA
 WSO2 Inc ; http://wso2.com
 lean.enterprise.middleware
 *Mobile : +94715933168 %2B94715933168*
 *Blog : http://yasassriratnayake.blogspot.com/
 http://yasassriratnayake.blogspot.com/*




-- 
Dinusha Dilrukshi
Senior Software Engineer
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] possibility of use WSO2 ELB with non WSO2 products

2015-01-15 Thread Akila Nimantha [IT/EKO/LOITS]
Hi all,

Is it possible to use wso2 ELB with non wso2 products like jboss(app server).

Regards,
Akila

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

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


[Dev] Jaggery Server Feature installation fails in IS Server P2 profile

2015-01-15 Thread Hasintha Indrajee
Hi all,

Please note $subject.  Appreciate if someone from Jaggery team can attend
to this. Refer the following trace for the error message logged.

Cannot complete the install because one or more required items could not be
found.
 Software being installed: Jaggery Server Feature
0.0.0.0_9_0_ALPHA5_wso2v1_SNAPSHOT (org.jaggeryjs.server.feature.group
0.0.0.0_9_0_ALPHA5_wso2v1_SNAPSHOT)
 Missing requirement: WSO2 Carbon - Addressing 4.3.0.SNAPSHOT
(org.wso2.carbon.addressing 4.3.0.SNAPSHOT) requires 'package
org.apache.axis2 [1.6.1.wso2v11-SNAPSHOT,1.7.0)' but it could not be found
 Cannot satisfy dependency:
  From: Jaggery Server Feature 0.0.0.0_9_0_ALPHA5_wso2v1_SNAPSHOT
(org.jaggeryjs.server.feature.group 0.0.0.0_9_0_ALPHA5_wso2v1_SNAPSHOT)
  To: org.wso2.carbon.addressing [4.3.0.SNAPSHOT,4.4.0)
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ES] Errors while running server - latest build

2015-01-15 Thread Ayesha Dissanayaka
Hi,

I am getting below error at the server startup.

ERROR {org.wso2.carbon.governance.lcm.util.CommonUtil} -  Configuration
file name configurations not matched with aspect name ServiceLifeCycle

Further, life-cycles are not attached to the default assets. (with the
changes in carbon-governance
https://github.com/wso2/carbon-governance/commit/bf13572edc127faa7a54dd9636568d3c6f7ad014
)

ERROR {JAGGERY.config.app:js} -  org.mozilla.javascript.WrappedException:
Wrapped org.wso2.carbon.governance.api.exception.GovernanceException: No
lifecycle associated with the artifact path /gadgets/admin/WSO2 Jira/1.0.0
(carbon/scripts/registry/artifacts.js#285)
at
org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
at
org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at
org.jaggeryjs.rhino.carbon.scripts.registry.c0._c_anonymous_21(carbon/scripts/registry/artifacts.js:285)
at
org.jaggeryjs.rhino.carbon.scripts.registry.c0.call(carbon/scripts/registry/artifacts.js)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at
org.jaggeryjs.rhino.publisher..config.defaults.c0._c_onAttachLifecycle_13(/publisher//config/defaults/install.js:273)
at
org.jaggeryjs.rhino.publisher..config.defaults.c0.call(/publisher//config/defaults/install.js)
at
org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
at
org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at
org.jaggeryjs.rhino.publisher.modules.c7._c_anonymous_16(/publisher/modules/asset.deployment.js:428)
at
org.jaggeryjs.rhino.publisher.modules.c7.call(/publisher/modules/asset.deployment.js)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at
org.jaggeryjs.rhino.publisher.modules.c7._c_anonymous_5(/publisher/modules/asset.deployment.js:166)
at
org.jaggeryjs.rhino.publisher.modules.c7.call(/publisher/modules/asset.deployment.js)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
at
org.jaggeryjs.rhino.publisher.modules.c7._c_anonymous_9(/publisher/modules/asset.deployment.js:297)
at
org.jaggeryjs.rhino.publisher.modules.c7.call(/publisher/modules/asset.deployment.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at
org.jaggeryjs.rhino.publisher.modules.c8._c_anonymous_13(/publisher/modules/bundler.js:168)
at
org.jaggeryjs.rhino.publisher.modules.c8.call(/publisher/modules/bundler.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at
org.jaggeryjs.rhino.publisher.modules.c7._c_anonymous_8(/publisher/modules/asset.deployment.js:283)
at
org.jaggeryjs.rhino.publisher.modules.c7.call(/publisher/modules/asset.deployment.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at
org.jaggeryjs.rhino.publisher.modules.c7._c_anonymous_7(/publisher/modules/asset.deployment.js:221)
at
org.jaggeryjs.rhino.publisher.modules.c7.call(/publisher/modules/asset.deployment.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at
org.jaggeryjs.rhino.publisher.modules.c8._c_anonymous_13(/publisher/modules/bundler.js:168)
at
org.jaggeryjs.rhino.publisher.modules.c8.call(/publisher/modules/bundler.js)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at
org.jaggeryjs.rhino.publisher.modules.c7._c_anonymous_6(/publisher/modules/asset.deployment.js:212)
at
org.jaggeryjs.rhino.publisher.modules.c7.call(/publisher/modules/asset.deployment.js)
at
org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
at
org.jaggeryjs.rhino.publisher.modules.c6._c_anonymous_3(/publisher/modules/publisher.js:101)
at
org.jaggeryjs.rhino.publisher.modules.c6.call(/publisher/modules/publisher.js)
at
org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
at
org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
at
org.jaggeryjs.rhino.event.scripts.c0._c_anonymous_7(event/scripts/event.js:89)
at org.jaggeryjs.rhino.event.scripts.c0.call(event/scripts/event.js)
at
org.mozilla.javascript.NativeArray.iterativeMethod(NativeArray.java:1584)
at org.mozilla.javascript.NativeArray.execIdCall(NativeArray.java:318)
at
org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
at

Re: [Dev] Demote action is visible for Uploadable apps - APPFAC-2702

2015-01-15 Thread Janaka Ranabahu
Hi Danushka,

On Wed, Jan 14, 2015 at 11:57 PM, Danushka Fernando danush...@wso2.com
wrote:

 Hi all
 [1] is fixed by having a check in ui to check whether its an uploadable
 application. But currently we have a different lifecycle for uploadable
 applications. So shouldn't we fix this by changing something in lifecycle.
 Since we are moving towards lifecycle per app type, I prefer fixing this by
 looking at the lifecycle. WDYT?

​True. The UI should be generated by reading all the transition
elements(where the event attribute is the action that is showed in the
UI) of each stage. That way, the per app type lifecycle model will work
without any issue.
Please note that a lifecycle stage can have 0 or more transitions.

Thanks,
Janaka




 [1] https://wso2.org/jira/browse/APPFAC-2702


 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729




-- 
*Janaka Ranabahu*
Senior Software Engineer; WSO2 Inc.; http://wso2.com


*E-mail: jan...@wso2.com http://wso2.com**M: **+94 718370861*

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


Re: [Dev] Cannot do a -Dsetup after deleting the h2 database in Greg 5.0.0 pack

2015-01-15 Thread Hasitha Aravinda
Hi Pulasthi,

I had a look at HumanTask featue, It is copying all DB scripts to correct
location. ( Carbon_Home/dbscripts/bps/bpel/create/ ). Please note that we
have changed [1] the dbscript structure for BPS 3.5.0.

Can you verify following.

1) To verify Humantak feature installation, check whether all DB scripts
are in Greg p2-profile target folder. ( in
Carbon_Home/dbscripts/bps/bpel/create/
)
2) Then check maven assembly in distribution build, whether it is poining
to correct location.


[1] Mail with Subject - dbscripts folder structure for BPS 3.5.0 @Dev

Thanks,
Hasitha.


On Thu, Jan 15, 2015 at 10:34 PM, Pulasthi Supun pulas...@wso2.com wrote:

 Hi All/BPS team,

 We are getting the following error when we try to start the server with
 -Dsetup option.

 1. started the fresh pack normally
 2. stopped the server and deleted the content in /repository/database
 folder
 3. restarted with -Dsetup


 [2015-01-15 22:25:37,370]  INFO
 {org.wso2.carbon.humantask.core.internal.HumanTaskServiceComponent} -
  Initialising HumanTask Server
 [2015-01-15 22:25:37,442] ERROR
 {org.wso2.carbon.utils.dbcreator.DatabaseCreator} -  Error occurred while
 executing SQL script for creating registry database
 java.io.FileNotFoundException:
 /home/pulasthi/wso2/greg5/wso2greg-5.0.0-SNAPSHOT/dbscripts/bps/bpel/create/h2.sql
 (No such file or directory)
 at java.io.FileInputStream.open(Native Method)
 at java.io.FileInputStream.init(FileInputStream.java:120)
 at java.io.FileInputStream.init(FileInputStream.java:79)
 at
 org.wso2.carbon.utils.dbcreator.DatabaseCreator.executeSQLScript(DatabaseCreator.java:296)
 at
 org.wso2.carbon.utils.dbcreator.DatabaseCreator.createRegistryDatabase(DatabaseCreator.java:61)
 at
 org.wso2.carbon.humantask.core.db.Database.setupHumanTaskDatabase(Database.java:94)
 at org.wso2.carbon.humantask.core.db.Database.start(Database.java:78)
 at
 org.wso2.carbon.humantask.core.HumanTaskServer.initDataSource(HumanTaskServer.java:166)
 at
 org.wso2.carbon.humantask.core.HumanTaskServer.init(HumanTaskServer.java:95)
 at
 org.wso2.carbon.humantask.core.internal.HumanTaskServiceComponent.initHumanTaskServer(HumanTaskServiceComponent.java:100)
 at
 org.wso2.carbon.humantask.core.internal.HumanTaskServiceComponent.activate(HumanTaskServiceComponent.java:77)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
 at
 org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.registerAttachmentServerService(AttachmentServiceComponent.java:98)
 at
 org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.activate(AttachmentServiceComponent.java:73)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 

Re: [Dev] Unable to login to LoginLogoutClient by a user for a test case due to an error

2015-01-15 Thread Hemika Kodikara
Hi Nuwan,

Yes that is there as well. Attaching the automation.xml.

Following gets printed on the console.

Jan 16, 2015 1:25:18 AM
org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator
addTenantUsers
INFO: User - permissionUser created in tenant domain of  carbon.super

Regards,
Hemika

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

Mobile : +9477762

On Fri, Jan 16, 2015 at 6:53 AM, Nuwan Wimalasekara nuw...@wso2.com wrote:

 Hi
 Can you please check whether the user is created on the server. In order
 to create the user at the test execution time, you need to have the
 UserPopulateExtension  in automation.xml

 platformExecutionManager
 extentionClasses
 class

 nameorg.wso2.carbon.integration.common.extensions.usermgt.UserPopulateExtension/name
 /class
 /extentionClasses
 /platformExecutionManager

 Thanks,
 Nuwanw

 On Thu, Jan 15, 2015 at 11:41 AM, Hemika Kodikara hem...@wso2.com wrote:

 Hi All,

 I am in the middle of writing a test case. I have a need to call a stub
 through a user. But unable to login to LoginLogoutClient through a user.

 With Admin, I am able to call the stub as follows.

 AutomationContext automationContext = new AutomationContext(MB,
 TestUserMode.SUPER_TENANT_ADMIN);
 LoginLogoutClient loginLogoutClient = new
 LoginLogoutClient(automationContext);
 String loginSession = loginLogoutClient.login();
 AndesAdminClient andesAdminClient = new AndesAdminClient(backendURL,
 loginSession,
 ConfigurationContextProvider.getInstance().getConfigurationContext());
 String queueName = destination.replace(queue, StringUtils.EMPTY);
 andesAdminClient.deleteQueue(queueName);

 But unable to connect through a user as follows.

 AutomationContext automationContext = new AutomationContext(MB,
 mb001, FrameworkConstants.SUPER_TENANT_KEY, permissionUser);
 LoginLogoutClient loginLogoutClient = new
 LoginLogoutClient(automationContext);
 String loginSession = loginLogoutClient.login();
 AndesAdminClient andesAdminClient = new AndesAdminClient(backendURL,
 loginSession,
 ConfigurationContextProvider.getInstance().getConfigurationContext());
 String queueName = destination.replace(queue, StringUtils.EMPTY);
 andesAdminClient.deleteQueue(queueName);


 Receiving the following error.

 performAllQueuePermissionCase(org.wso2.mb.integration.tests.amqp.functional.PermissionTreeTestCase)
  Time elapsed: 10.821 sec   FAILURE!
 org.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException:
 Login Unsuccessful. Return false as a login status by Server
 at
 org.wso2.carbon.integration.common.admin.client.AuthenticatorClient.login(AuthenticatorClient.java:61)
 at
 org.wso2.carbon.integration.common.utils.LoginLogoutClient.login(LoginLogoutClient.java:68)
 at
 org.wso2.mb.integration.tests.amqp.functional.PermissionTreeTestCase.performDelete(PermissionTreeTestCase.java:287)
 at
 org.wso2.mb.integration.tests.amqp.functional.PermissionTreeTestCase.performAllQueuePermissionCase(PermissionTreeTestCase.java:224)


 Following are user information and platform information from
 automation.xml

 superTenant
 tenant domain=carbon.super key=superTenant
 admin
 user key=superAdmin
 userNameadmin/userName
 passwordadmin/password
 /user
 /admin
 users
 user key=user1
 userNametestuser11/userName
 passwordtestuser11/password
 /user
 user key=user2
 userNametestuser21/userName
 passwordtestuser21/password
 /user
 user key=permissionUser
 userNamepermissionUser/userName
 passwordpermissionUser/password
 /user
 /users
 /tenant
 /superTenant


 platform
 !--
 cluster instance details to be used to platform test execution
 --
 productGroup name=MB clusteringEnabled=false default=true

 instance name=mb001 type=standalone
 nonBlockingTransportEnabled=false
 hosts
 host type=defaultlocalhost/host
 /hosts
 ports
 port type=http9763/port
 port type=https9443/port
 /ports
 properties

 /properties
 /instance
 /productGroup
 /platform

 Any help would be useful.


 Regards,
 Hemika

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

 Mobile : +9477762

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




 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 

Re: [Dev] Identity application management feature installation fails in Storage Server P2 profile

2015-01-15 Thread Prabath Abeysekera
This is fixed. Thanks guys for your time and effort put into getting this
resolved

Cheers,
Prabath

On Tue, Jan 13, 2015 at 12:57 AM, Harsha Kumara hars...@wso2.com wrote:

 Hi Prabath,

 As Hasintha said, the PR for syncing up the repos failed due to issue
 which we later fix. To get the product build back to normal,
 carbon-storage-management repo also needs to sync up again. Then PR for
 syncing up product will be merged.

 Thanks,
 Harsha

 On Mon, Jan 12, 2015 at 1:03 PM, Hasintha Indrajee hasin...@wso2.com
 wrote:

 Hi Prabath,

 Can you please merge changes from wso2-dev repo to wso2 repo. Seems like
 wso2 repo is not up to date with your dev repo.

 On Mon, Jan 12, 2015 at 11:24 AM, Harsha Kumara hars...@wso2.com wrote:

 Hi Prabath,

 Please ignore the above message as I though it's referring to
 carbon-storage-management repo. Above issue cause for the build failure on
 today.

 Since the identity wso2 and wso2-dev repos are synced, the product build
 failure should be fixed. I checked the product console out for the last
 build.Seems it not downloading the application management feature. I will
 check more with Hasintha.

 [1] -
 http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/application-mgt-feature/4.3.0-SNAPSHOT/

 Thanks,
 Harsha

 On Mon, Jan 12, 2015 at 7:57 AM, Harsha Kumara hars...@wso2.com wrote:

 Hi Prabath,

 It seems build failures are due to triggers of upstream projects or
 parallel builds. Default build should be fine. According to [1], build 262
 and 261 ran on same revision but 262 failed and 262 was success.

 [1] - https://wso2.org/jenkins/job/carbon-storage-management/

 Thanks,
 Harsha

 On Mon, Jan 12, 2015 at 7:41 AM, Prabath Abeysekera praba...@wso2.com
 wrote:

 Hi Hasintha,

 Are we done with this at least now? SS build still fails.

 Cheers,
 Prabath


 On Sunday, January 11, 2015, Prabath Abeysekera praba...@wso2.com
 wrote:

 Thanks Hasintha!

 On Sat, Jan 10, 2015 at 6:13 PM, Hasintha Indrajee hasin...@wso2.com
  wrote:

 Hi Prabath.

 Few more changes are done. Will merge them asap and let you know
 once they are merged to wso2 repo

 On Sat, Jan 10, 2015 at 6:04 PM, Hasintha Indrajee 
 hasin...@wso2.com wrote:

 The changes were merged to wso2 repo yesterday

 On Sat, Jan 10, 2015 at 11:40 AM, Prabath Abeysekera 
 praba...@wso2.com wrote:

 Hi Hasintha,

 Can we get these changes merged into wso2/carbon-identity
 repository ASAP? Storage Server P2 profile still fails indicating the 
 same
 problem.

 Cheers,
 Prabth

 On Fri, Jan 9, 2015 at 7:53 PM, Prabath Abeysekera 
 praba...@wso2.com wrote:

 Thanks Hasintha!

 On Fri, Jan 9, 2015 at 6:24 PM, Hasintha Indrajee 
 hasin...@wso2.com wrote:

 Hi Prabath,

 Build is fixed in wso2-dev and will be available in nexus once
 merged with wso2 repo.

 On Fri, Jan 9, 2015 at 4:21 PM, Prabath Abeysekera 
 praba...@wso2.com wrote:

 Folks,

 Please note $Subject. Appreciate if someone from IS team can
 fix this ASAP. Refer the following trace for the error message 
 logged.

 Installing org.wso2.carbon.user.mgt.feature.group
 4.3.0.SNAPSHOT.

 Installing
 org.wso2.carbon.identity.application.mgt.server.feature.group
 4.3.0.SNAPSHOT.

 Installation failed.

 Cannot complete the install because one or more required items
 could not be found.

  Software being installed: RSS Manager Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.rssmanager.feature.group 4.3.0.SNAPSHOT)

  Missing requirement: WSO2 Identity- Application Management
 Component 4.3.0.SNAPSHOT (org.wso2.carbon.identity.application.mgt
 4.3.0.SNAPSHOT) requires 'package org.wso2.carbon.identity.base
 [4.3.0,5.0.0)' but it could not be found

  Cannot satisfy dependency:

   From: org.wso2.carbon.rssmanager.core 4.3.0.SNAPSHOT
 (org.wso2.carbon.rssmanager.core 4.3.0.SNAPSHOT)

   To: package org.wso2.carbon.identity.application.mgt
 4.3.0.SNAPSHOT

  Cannot satisfy dependency:

   From: RSS Manager Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.rssmanager.feature.group 4.3.0.SNAPSHOT)

   To: org.wso2.carbon.rssmanager.server.feature.group
 [4.3.0.SNAPSHOT]

  Cannot satisfy dependency:

   From: RSS Manager Server Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.rssmanager.server.feature.group 4.3.0.SNAPSHOT)

   To: org.wso2.carbon.rssmanager.core [4.3.0.SNAPSHOT]

 Cheers,
 Prabath
 --
 Prabath Abeysekara
 Associate Technical Lead, Data TG.
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471





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




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






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



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


 ___
 Dev mailing list
 

Re: [Dev] [ES] Build fails giving compilation errors.

2015-01-15 Thread Ayesha Dissanayaka
Hi Shazni,

Pull request is merged and now product-es local build get success.

Thanks!
- Ayesha

On Thu, Jan 15, 2015 at 6:21 AM, Shazni Nazeer sha...@wso2.com wrote:

 Hi Ayesha,

 Refer the pull request at [1]. Please review and commit it to the
 product-es.

 [1] https://github.com/wso2-dev/product-es/pull/54

 regards

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com

 On Tue, Jan 13, 2015 at 11:58 PM, Ayesha Dissanayaka aye...@wso2.com
 wrote:

 Hi all,

 ES local build also fails giving below compilation errors. It should be
 after the changes made to carbon-governance in [1].

 @Shazni: Can you please send a pull request to *wso2-dev.product-es*
 repo adding necessory changes to ES source or advice how resolve those
 compilation errors.

 [1]
 https://github.com/wso2-dev/carbon-governance/commit/3a3d244e9a67d6aaa7c027b8bd18f02f05905326

 Thanks!
 - Ayesha

 -- Forwarded message --
 From: cbuil...@wso2.org
 Date: Wed, Jan 14, 2015 at 10:19 AM
 Subject: Build failed in Jenkins: product-es » jaggery-scxml-executors
 #4848
 To: buil...@wso2.org, ruch...@wso2.com, m...@wso2.com, ta...@wso2.com,
 uda...@wso2.com, samee...@wso2.com, samee...@wso2.com, aye...@wso2.com,
 man...@wso2.com


 See 
 https://wso2.org/jenkins/job/product-es/org.wso2.store$jaggery-scxml-executors/4848/
 

 --
 [...truncated 23 lines...]
 Downloading:
 http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/carbon-parent/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/carbon-parent/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/org.wso2.carbon.ndatasource.common/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.ndatasource.common/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/org.wso2.carbon.ndatasource.common/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/org.wso2.carbon.utils/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/org.wso2.carbon.utils/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.utils/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/org.wso2.carbon.user.api/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.user.api/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/org.wso2.carbon.user.api/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.base/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/org.wso2.carbon.base/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/org.wso2.carbon.base/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/org.wso2.carbon.logging/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/org.wso2.carbon.logging/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.logging/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/org.wso2.carbon.bootstrap/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.bootstrap/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/org.wso2.carbon.bootstrap/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.queuing/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/org.wso2.carbon.queuing/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/org.wso2.carbon.queuing/4.3.0-SNAPSHOT/maven-metadata.xml
 Downloading:
 

[Dev] [Urgent] [Greg] - Greg 5.0.0 server start up delays for several minutes

2015-01-15 Thread Prasanna Dangalla
Hi apim team,

Greg server hangs for several minutes after printing

JAVA_HOME environment variable is set to
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
CARBON_HOME environment variable is set to
/Users/prasanna/workspace/wso2/greg/git/prasanna/product-greg/modules/distribution/target/wso2greg-5.0.0-SNAPSHOT

We debug in osgi console. Then we found following two apimanager osgi
bundles were not started.

161INSTALLED   org.wso2.carbon.apimgt.core_4.3.0.SNAPSHOT
165INSTALLED   org.wso2.carbon.apimgt.interceptor_4.3.0.SNAPSHOT

diag 161 and diag 165 describes the following

osgi diag 161
reference:file:../plugins/org.wso2.carbon.apimgt.core_4.3.0.SNAPSHOT.jar
[161]
  Package uses conflict: Import-Package: org.wso2.carbon.apimgt.impl;
version=0.0.0
  Package uses conflict: Import-Package: org.wso2.carbon.apimgt.impl.utils;
version=0.0.0
  Direct constraints which are unresolved:
Missing optionally imported package org.wso2.carbon.apimgt.core_0.0.0.
Missing optionally imported package
org.wso2.carbon.apimgt.core.authenticate_0.0.0.
Missing optionally imported package
org.wso2.carbon.apimgt.core.gateway_0.0.0.
Missing optionally imported package
org.wso2.carbon.apimgt.core.internal_0.0.0.
Missing optionally imported package
org.wso2.carbon.apimgt.core.throttle_0.0.0.
Missing optionally imported package
org.wso2.carbon.apimgt.core.usage_0.0.0.
Missing optionally imported package
org.wso2.carbon.throttle.core_4.3.0.SNAPSHOT.


osgi diag 165
reference:file:../plugins/org.wso2.carbon.apimgt.interceptor_4.3.0.SNAPSHOT.jar
[165]
  Package uses conflict: Import-Package: org.wso2.carbon.apimgt.impl.dao;
version=0.0.0
  Package uses conflict: Import-Package: org.wso2.carbon.apimgt.impl.dto;
version=0.0.0
  Package uses conflict: Import-Package: org.wso2.carbon.apimgt.impl.utils;
version=0.0.0
  Direct constraints which are unresolved:
Missing optionally imported package org.wso2.carbon.apimgt.core_0.0.0.
Missing optionally imported package
org.wso2.carbon.apimgt.core.authenticate_0.0.0.
Missing optionally imported package
org.wso2.carbon.apimgt.core.gateway_0.0.0.
Missing optionally imported package
org.wso2.carbon.apimgt.core.throttle_0.0.0.
Missing optionally imported package
org.wso2.carbon.apimgt.core.usage_0.0.0.
Missing optionally imported package
org.wso2.carbon.apimgt.interceptor_0.0.0.
Missing optionally imported package
org.wso2.carbon.apimgt.interceptor.handler_0.0.0.
Missing optionally imported package
org.wso2.carbon.apimgt.interceptor.utils_0.0.0.
Missing optionally imported package
org.wso2.carbon.apimgt.interceptor.valve_0.0.0.
Missing optionally imported package
org.wso2.carbon.apimgt.usage.publisher.internal_0.0.0.
Missing optionally imported package
org.wso2.carbon.throttle.core_4.3.0.SNAPSHOT.
  Leaf constraints in the dependency chain which are unresolved:

reference:file:../plugins/org.wso2.carbon.apimgt.core_4.3.0.SNAPSHOT.jar
[161]
  Missing optionally imported package
org.wso2.carbon.throttle.core_4.3.0.SNAPSHOT.


We also found that in repository/components/plugins
org.wso2.carbon.apimgt.impl is contained in two jars as follows

Binary file org.wso2.carbon.apimgt.impl_4.3.0.SNAPSHOT.jar matches
Binary file org.wso2.carbon.apimgt.keymgt.stub_4.3.0.SNAPSHOT.jar matches

Then we removed
repository/components/plugins/org.wso2.carbon.apimgt.impl_4.3.0.SNAPSHOT.jar
Then the server start up lag was not there and server starts up quickly,
but several osgi bundles were not starting properly.

Thanks
-- 
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] [MB] RealmService is null when running a test case

2015-01-15 Thread Hemika Kodikara
Hi All,

During a test case I am running the following set of lines(product-mb).


UserRealm userRealm =
QueueManagerServiceValueHolder.getInstance().getRealmService().getTenantUserRealm(MultitenantConstants.SUPER_TENANT_ID);

// giving pub/sub permissions to 'create_pub_sub_queue_role' role
userRealm.getAuthorizationManager().authorizeRole(CREATE_PUB_SUB_QUEUE_ROLE,
event/queues/jms/testQueue3,
TreeNode.Permission.CONSUME.toString().toLowerCase());

userRealm.getAuthorizationManager().authorizeRole(CREATE_PUB_SUB_QUEUE_ROLE,
event/queues/jms/testQueue3,
TreeNode.Permission.PUBLISH.toString().toLowerCase());


While debugging found that
QueueManagerServiceValueHolder.getInstance().getRealmService() is
returning null. Its suppose to return a RealmService which I need to use it
to change permission for a role.

What may be the issue here ?

Regards,
Hemika

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

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


[Dev] Deadline for moving all code to GitHub

2015-01-15 Thread Afkham Azeez
Folks,
Our plan was to move all the code to GitHub last year, but unfortunately we
haven't moved some of the code yet. Shall we have a deadline  be done with
it? Otherwise this may drag on.

-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* http://www.apache.org/*
*email: **az...@wso2.com* az...@wso2.com
* cell: +94 77 3320919blog: **http://blog.afkham.org*
http://blog.afkham.org
*twitter: **http://twitter.com/afkham_azeez*
http://twitter.com/afkham_azeez
*linked-in: **http://lk.linkedin.com/in/afkhamazeez
http://lk.linkedin.com/in/afkhamazeez*

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


[Dev] Tomcat 7.0.54.wso2v1 is not available in nexus

2015-01-15 Thread Prabath Abeysekera
Hi Maheshika,

I see tomcat 7.0.54.wso2v1 orbit dependency is added to GIT but not
available in nexus. Any idea why?

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


Re: [Dev] Unable to login to LoginLogoutClient by a user for a test case due to an error

2015-01-15 Thread Saneth Dharmakeerthi
Hi Hemika,

Can you please check whether you can manually login to the server with
permissionUser
by  putting a long sleep or debug point before the String loginSession =
loginLogoutClient.login();, so we can verify that the users is correctly
created in the system with correct credential.

Also please try with org.wso2.carbon.automation.core.utils.LoginLogoutUtil.



Thanks and Best Regards,

Saneth Dharmakeerthi
Senior Software Engineer
WSO2, Inc.
Mobile: +94772325511

On Fri, Jan 16, 2015 at 7:48 AM, Hemika Kodikara hem...@wso2.com wrote:

 Hi Nuwan,

 Yes that is there as well. Attaching the automation.xml.

 Following gets printed on the console.

 Jan 16, 2015 1:25:18 AM
 org.wso2.carbon.integration.common.extensions.usermgt.UserPopulator
 addTenantUsers
 INFO: User - permissionUser created in tenant domain of  carbon.super

 Regards,
 Hemika

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

 Mobile : +9477762

 On Fri, Jan 16, 2015 at 6:53 AM, Nuwan Wimalasekara nuw...@wso2.com
 wrote:

 Hi
 Can you please check whether the user is created on the server. In order
 to create the user at the test execution time, you need to have the
 UserPopulateExtension  in automation.xml

 platformExecutionManager
 extentionClasses
 class

 nameorg.wso2.carbon.integration.common.extensions.usermgt.UserPopulateExtension/name
 /class
 /extentionClasses
 /platformExecutionManager

 Thanks,
 Nuwanw

 On Thu, Jan 15, 2015 at 11:41 AM, Hemika Kodikara hem...@wso2.com
 wrote:

 Hi All,

 I am in the middle of writing a test case. I have a need to call a stub
 through a user. But unable to login to LoginLogoutClient through a user.

 With Admin, I am able to call the stub as follows.

 AutomationContext automationContext = new AutomationContext(MB,
 TestUserMode.SUPER_TENANT_ADMIN);
 LoginLogoutClient loginLogoutClient = new
 LoginLogoutClient(automationContext);
 String loginSession = loginLogoutClient.login();
 AndesAdminClient andesAdminClient = new AndesAdminClient(backendURL,
 loginSession,
 ConfigurationContextProvider.getInstance().getConfigurationContext());
 String queueName = destination.replace(queue, StringUtils.EMPTY);
 andesAdminClient.deleteQueue(queueName);

 But unable to connect through a user as follows.

 AutomationContext automationContext = new AutomationContext(MB,
 mb001, FrameworkConstants.SUPER_TENANT_KEY, permissionUser);
 LoginLogoutClient loginLogoutClient = new
 LoginLogoutClient(automationContext);
 String loginSession = loginLogoutClient.login();
 AndesAdminClient andesAdminClient = new AndesAdminClient(backendURL,
 loginSession,
 ConfigurationContextProvider.getInstance().getConfigurationContext());
 String queueName = destination.replace(queue, StringUtils.EMPTY);
 andesAdminClient.deleteQueue(queueName);


 Receiving the following error.

 performAllQueuePermissionCase(org.wso2.mb.integration.tests.amqp.functional.PermissionTreeTestCase)
  Time elapsed: 10.821 sec   FAILURE!
 org.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException:
 Login Unsuccessful. Return false as a login status by Server
 at
 org.wso2.carbon.integration.common.admin.client.AuthenticatorClient.login(AuthenticatorClient.java:61)
 at
 org.wso2.carbon.integration.common.utils.LoginLogoutClient.login(LoginLogoutClient.java:68)
 at
 org.wso2.mb.integration.tests.amqp.functional.PermissionTreeTestCase.performDelete(PermissionTreeTestCase.java:287)
 at
 org.wso2.mb.integration.tests.amqp.functional.PermissionTreeTestCase.performAllQueuePermissionCase(PermissionTreeTestCase.java:224)


 Following are user information and platform information from
 automation.xml

 superTenant
 tenant domain=carbon.super key=superTenant
 admin
 user key=superAdmin
 userNameadmin/userName
 passwordadmin/password
 /user
 /admin
 users
 user key=user1
 userNametestuser11/userName
 passwordtestuser11/password
 /user
 user key=user2
 userNametestuser21/userName
 passwordtestuser21/password
 /user
 user key=permissionUser
 userNamepermissionUser/userName
 passwordpermissionUser/password
 /user
 /users
 /tenant
 /superTenant


 platform
 !--
 cluster instance details to be used to platform test execution
 --
 productGroup name=MB clusteringEnabled=false default=true

 instance name=mb001 type=standalone
 nonBlockingTransportEnabled=false
 hosts
 host type=defaultlocalhost/host
 /hosts
 ports
 port 

[Dev] [GitHub] Build Failure due to missing eclipse validateutility/runtime jars

2015-01-15 Thread Ruwan Yatawara
Hi All,

I tried to build the carbon-apimgt component on git and the build fails due
to missing jars in nexus. The jars in question are :

1) eclipse:validateutility:jar:0.95
2) org.eclipse.core:org.eclipse.core.runtime:jar:3.5.0.v20090429-1800

After applying adding these jars to nexus everything works fine though.

Please find below, error log.


[INFO] API Management  SUCCESS [0.154s]
[INFO] WSO2 Carbon - Api for API Management .. SUCCESS [1.959s]
[INFO] WSO2 Carbon - API Key Mgt Client .. SUCCESS [2.953s]
[INFO] WSO2 Carbon - API Management Implementation ... FAILURE [21.264s]
[INFO] WSO2 Carbon - HostObject for API management ... SKIPPED
[INFO] WSO2 Carbon - API Key Mgt . SKIPPED
[INFO] WSO2 Carbon - API Gateway . SKIPPED
[INFO] WSO2 Carbon - API Management Core . SKIPPED
[INFO] WSO2 Carbon - API Management Interceptor .. SKIPPED
[INFO] WSO2 Carbon - API Management Startup Publisher  SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 27.522s
[INFO] Finished at: Fri Jan 16 08:30:22 IST 2015
[INFO] Final Memory: 49M/1230M
[INFO]

[ERROR] Failed to execute goal on project org.wso2.carbon.apimgt.impl:
Could not resolve dependencies for project
org.wso2.carbon:org.wso2.carbon.apimgt.impl:bundle:4.3.0-SNAPSHOT: The
following artifacts could not be resolved:
eclipse:validateutility:jar:0.95,
org.eclipse.core:org.eclipse.core.runtime:jar:3.5.0.v20090429-1800: Failure
to find eclipse:validateutility:jar:0.95 in
http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
local repository, resolution will not be reattempted until the update
interval of wso2-nexus has elapsed or updates are forced - [Help 1]





Thanks and Regards,

Ruwan Yatawara

Senior Software Engineer,
WSO2 Inc.

email : ruw...@wso2.com
mobile : +94 77 9110413
blog : http://thoughts.ruwan-ace.com/
www: :http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GitHub] Build Failure due to missing eclipse validateutility/runtime jars

2015-01-15 Thread Ruwan Yatawara
Correction : added the jars to local m2 repo. I believe said jars should be
uploaded to nexus.

Thanks and Regards,

Ruwan Yatawara

Senior Software Engineer,
WSO2 Inc.

email : ruw...@wso2.com
mobile : +94 77 9110413
blog : http://thoughts.ruwan-ace.com/
www: :http://wso2.com


On Fri, Jan 16, 2015 at 9:26 AM, Ruwan Yatawara ruw...@wso2.com wrote:

 Hi All,

 I tried to build the carbon-apimgt component on git and the build fails
 due to missing jars in nexus. The jars in question are :

 1) eclipse:validateutility:jar:0.95
 2) org.eclipse.core:org.eclipse.core.runtime:jar:3.5.0.v20090429-1800

 After applying adding these jars to nexus everything works fine though.

 Please find below, error log.


 [INFO] API Management  SUCCESS [0.154s]
 [INFO] WSO2 Carbon - Api for API Management .. SUCCESS [1.959s]
 [INFO] WSO2 Carbon - API Key Mgt Client .. SUCCESS [2.953s]
 [INFO] WSO2 Carbon - API Management Implementation ... FAILURE
 [21.264s]
 [INFO] WSO2 Carbon - HostObject for API management ... SKIPPED
 [INFO] WSO2 Carbon - API Key Mgt . SKIPPED
 [INFO] WSO2 Carbon - API Gateway . SKIPPED
 [INFO] WSO2 Carbon - API Management Core . SKIPPED
 [INFO] WSO2 Carbon - API Management Interceptor .. SKIPPED
 [INFO] WSO2 Carbon - API Management Startup Publisher  SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 27.522s
 [INFO] Finished at: Fri Jan 16 08:30:22 IST 2015
 [INFO] Final Memory: 49M/1230M
 [INFO]
 
 [ERROR] Failed to execute goal on project org.wso2.carbon.apimgt.impl:
 Could not resolve dependencies for project
 org.wso2.carbon:org.wso2.carbon.apimgt.impl:bundle:4.3.0-SNAPSHOT: The
 following artifacts could not be resolved:
 eclipse:validateutility:jar:0.95,
 org.eclipse.core:org.eclipse.core.runtime:jar:3.5.0.v20090429-1800: Failure
 to find eclipse:validateutility:jar:0.95 in
 http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
 local repository, resolution will not be reattempted until the update
 interval of wso2-nexus has elapsed or updates are forced - [Help 1]





 Thanks and Regards,

 Ruwan Yatawara

 Senior Software Engineer,
 WSO2 Inc.

 email : ruw...@wso2.com
 mobile : +94 77 9110413
 blog : http://thoughts.ruwan-ace.com/
 www: :http://wso2.com


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


Re: [Dev] Unable to login to LoginLogoutClient by a user for a test case due to an error

2015-01-15 Thread Nuwan Wimalasekara
Hi
Can you please check whether the user is created on the server. In order to
create the user at the test execution time, you need to have the
UserPopulateExtension  in automation.xml

platformExecutionManager
extentionClasses
class
nameorg.wso2.carbon.integration.common.extensions.usermgt.UserPopulateExtension/name
/class
/extentionClasses
/platformExecutionManager

Thanks,
Nuwanw

On Thu, Jan 15, 2015 at 11:41 AM, Hemika Kodikara hem...@wso2.com wrote:

 Hi All,

 I am in the middle of writing a test case. I have a need to call a stub
 through a user. But unable to login to LoginLogoutClient through a user.

 With Admin, I am able to call the stub as follows.

 AutomationContext automationContext = new AutomationContext(MB,
 TestUserMode.SUPER_TENANT_ADMIN);
 LoginLogoutClient loginLogoutClient = new
 LoginLogoutClient(automationContext);
 String loginSession = loginLogoutClient.login();
 AndesAdminClient andesAdminClient = new AndesAdminClient(backendURL,
 loginSession,
 ConfigurationContextProvider.getInstance().getConfigurationContext());
 String queueName = destination.replace(queue, StringUtils.EMPTY);
 andesAdminClient.deleteQueue(queueName);

 But unable to connect through a user as follows.

 AutomationContext automationContext = new AutomationContext(MB, mb001,
 FrameworkConstants.SUPER_TENANT_KEY, permissionUser);
 LoginLogoutClient loginLogoutClient = new
 LoginLogoutClient(automationContext);
 String loginSession = loginLogoutClient.login();
 AndesAdminClient andesAdminClient = new AndesAdminClient(backendURL,
 loginSession,
 ConfigurationContextProvider.getInstance().getConfigurationContext());
 String queueName = destination.replace(queue, StringUtils.EMPTY);
 andesAdminClient.deleteQueue(queueName);


 Receiving the following error.

 performAllQueuePermissionCase(org.wso2.mb.integration.tests.amqp.functional.PermissionTreeTestCase)
  Time elapsed: 10.821 sec   FAILURE!
 org.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException:
 Login Unsuccessful. Return false as a login status by Server
 at
 org.wso2.carbon.integration.common.admin.client.AuthenticatorClient.login(AuthenticatorClient.java:61)
 at
 org.wso2.carbon.integration.common.utils.LoginLogoutClient.login(LoginLogoutClient.java:68)
 at
 org.wso2.mb.integration.tests.amqp.functional.PermissionTreeTestCase.performDelete(PermissionTreeTestCase.java:287)
 at
 org.wso2.mb.integration.tests.amqp.functional.PermissionTreeTestCase.performAllQueuePermissionCase(PermissionTreeTestCase.java:224)


 Following are user information and platform information from automation.xml

 superTenant
 tenant domain=carbon.super key=superTenant
 admin
 user key=superAdmin
 userNameadmin/userName
 passwordadmin/password
 /user
 /admin
 users
 user key=user1
 userNametestuser11/userName
 passwordtestuser11/password
 /user
 user key=user2
 userNametestuser21/userName
 passwordtestuser21/password
 /user
 user key=permissionUser
 userNamepermissionUser/userName
 passwordpermissionUser/password
 /user
 /users
 /tenant
 /superTenant


 platform
 !--
 cluster instance details to be used to platform test execution
 --
 productGroup name=MB clusteringEnabled=false default=true

 instance name=mb001 type=standalone
 nonBlockingTransportEnabled=false
 hosts
 host type=defaultlocalhost/host
 /hosts
 ports
 port type=http9763/port
 port type=https9443/port
 /ports
 properties

 /properties
 /instance
 /productGroup
 /platform

 Any help would be useful.


 Regards,
 Hemika

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

 Mobile : +9477762

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




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

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


[Dev] Carbon 5 Tentative Release Date

2015-01-15 Thread Tapas Jena
Hi Guys,

Is there any tentative date for Carbon 5 release. I am mainly looking for
REST admin services feature.

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