Re: [Dev] Error when adding Resident Identity Provider entry for tenant
Can this be because of defining the idp in sso-idp-config.xml? Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Dec 10, 2014 at 12:54 PM, Udara Liyanage ud...@wso2.com wrote: Hi, Following error is appearing continuously after a tenant is created. Seems like UNIQUE (TENANT_ID, NAME)) constraint of the IDP table is violating since tenantid=1 domain=local is trying to be inserted again and again. What could be the issue ? *Query getting executed* INSERT INTO IDP (TENANT_ID, NAME, IS_PRIMARY, HOME_REALM_ID, CERTIFICATE, ALIAS, INBOUND_PROV_ENABLED, INBOUND_PROV_USER_STORE_ID, USER_CLAIM_URI, ROLE_CLAIM_URI,DEFAULT_AUTHENTICATOR_NAME,DEFAULT_PRO_CONNECTOR_NAME, DESCRIPTION,IS_FEDERATION_HUB,IS_LOCAL_CLAIM_DIALECT,PROVISIONING_ROLE, IS_ENABLED, DISPLAY_NAME ) VALUES (1, 'LOCAL', '1','localhost',null, null, '0', null, null, null,null,null, null,'0','0' ,null, '1', null) 36 Query rollback 36 Query rollback *Constrain:* UNIQUE (TENANT_ID, NAME)); [2014-12-10 12:49:01,056] ERROR {org.wso2.carbon.idp.mgt.internal.TenantManagementListener} - Error when adding Resident Identity Provider entry for tenant udara.com org.wso2.carbon.identity.application.common.IdentityApplicationManagementException: Error occurred while adding Identity Provider for tenant 1 at org.wso2.carbon.idp.mgt.dao.IdPManagementDAO.addIdP(IdPManagementDAO.java:1364) at org.wso2.carbon.idp.mgt.dao.CacheBackedIdPMgtDAO.addIdP(CacheBackedIdPMgtDAO.java:275) at org.wso2.carbon.idp.mgt.IdentityProviderManager.addResidentIdP(IdentityProviderManager.java:325) at org.wso2.carbon.idp.mgt.internal.TenantManagementListener.onTenantCreate(TenantManagementListener.java:48) at org.wso2.carbon.tenant.mgt.util.TenantMgtUtil.triggerAddTenant(TenantMgtUtil.java:94) at org.apache.stratos.manager.publisher.TenantSynzhronizerTask.execute(TenantSynzhronizerTask.java:82) at org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67) at org.quartz.core.JobRunShell.run(JobRunShell.java:213) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662) Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '1-LOCAL' for key 'TENANT_ID' at sun.reflect.GeneratedConstructorAccessor89.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.mysql.jdbc.Util.handleNewInstance(Util.java:409) at com.mysql.jdbc.Util.getInstance(Util.java:384) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1039) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4232) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4164) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2615) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2776) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2838) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2082) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2334) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2262) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2246) at org.wso2.carbon.idp.mgt.dao.IdPManagementDAO.addIdP(IdPManagementDAO.java:1300) ... 13 more [2014-12-10 12:49:01,057] ERROR {org.apache.stratos.manager.publisher.TenantSynzhronizerTask} - Could not publish complete tenant event org.wso2.carbon.stratos.common.exception.StratosException: Error when adding Resident Identity Provider entry for tenant udara.com at org.wso2.carbon.idp.mgt.internal.TenantManagementListener.onTenantCreate(TenantManagementListener.java:53) at org.wso2.carbon.tenant.mgt.util.TenantMgtUtil.triggerAddTenant(TenantMgtUtil.java:94) at org.apache.stratos.manager.publisher.TenantSynzhronizerTask.execute(TenantSynzhronizerTask.java:82) at org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67) at org.quartz.core.JobRunShell.run(JobRunShell.java:213) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662) -- Udara
Re: [Dev] Chunk -14 RC packs
Hi all; Please find the RC2 +p2 repo packs with few more fixes. Revision :210446 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/chunk-14-RC2-Packs/ Thanks On 6 December 2014 at 14:02, Vijayaratha Vijayasingam rat...@wso2.com wrote: Hi all; Please find APIM+BAM RC packs and p2 repo.[1] Revision :210263 [1] https://svn.wso2.org/repos/wso2/scratch/chunk13-release/chunk-14-RC-Packs/ Thanks. -- -Ratha -- -Ratha ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Carbon 4.3.0 snapshot based server hangs
Hi all , The seems to be two versions of wss4j is being packed. wss4j_1.5.11.wso2v7.jar wss4j_1.5.11.wso2v8-SNAPSHOT.jar Thanks Geeth *G. K. S. Munasinghe* *Software Engineer,* *WSO2, Inc. http://wso2.com http://wso2.com/ * *lean.enterprise.middleware.* email: ge...@wso2.com phone:(+94) 777911226 On Wed, Dec 10, 2014 at 12:24 PM, Prabath Abeysekera praba...@wso2.com wrote: I did some further analysis on this and came across the following output upon the security management related bundles. osgi diag 143 reference:file:../plugins/org.wso2.carbon.security.mgt_4.3.0.SNAPSHOT.jar [143] Package uses conflict: Import-Package: org.apache.rahas; version=[1.6.1.wso2v12,2.0.0) Package uses conflict: Import-Package: org.apache.rahas.impl; version=[1.6.1.wso2v12,2.0.0) Package uses conflict: Import-Package: org.apache.rampart.policy; version=[1.6.1.wso2v13-SNAPSHOT,2.0.0) Package uses conflict: Import-Package: org.apache.rampart.util; version=[1.6.1.wso2v13-SNAPSHOT,2.0.0) Package uses conflict: Import-Package: org.apache.ws.security; version=[1.5.11.wso2v8-SNAPSHOT,2.0.0) Package uses conflict: Import-Package: org.apache.ws.security.components.crypto; version=[1.5.11.wso2v8-SNAPSHOT,2.0.0) Package uses conflict: Import-Package: org.apache.ws.security.handler; version=[1.5.11.wso2v8-SNAPSHOT,2.0.0) Package uses conflict: Import-Package: org.apache.ws.security.message; version=[1.5.11.wso2v8-SNAPSHOT,2.0.0) Direct constraints which are unresolved: Missing imported package org.apache.rahas_[1.6.1.wso2v12,2.0.0). Missing imported package org.apache.rahas.impl_[1.6.1.wso2v12,2.0.0). Missing imported package org.apache.rampart.policy_[1.6.1.wso2v13-SNAPSHOT,2.0.0). Missing imported package org.apache.rampart.policy.model_[1.6.1.wso2v13-SNAPSHOT,2.0.0). Missing imported package org.apache.rampart.util_[1.6.1.wso2v13-SNAPSHOT,2.0.0). As it appears, version conflicts observed in some of the dependencies interrupt proper activation of the dependent bundles? Appreciate some help on getting this resolved ASAP. Cheers, Prabath On Wed, Dec 10, 2014 at 12:22 PM, Supun Malinga sup...@wso2.com wrote: Hi, Apparently the kernel snapshot is of older build. However I checked the md5 of the zip and it matches the given. Looks like something went wrong in jenkins upload of kernel zip build. I tried to start the kernel zip at [1] but it started up properly. But we cannot have any conclusions from this. @Maheshika, Shall we trigger a build in kernel and check pls ?. [1] http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/wso2carbon-core/4.3.0-SNAPSHOT/ On Wed, Dec 10, 2014 at 12:12 PM, Sameera Jayaratna samee...@wso2.com wrote: Hi, ES also has the same issue today. Thank you, Sameera On Wed, Dec 10, 2014 at 12:08 PM, Prabath Abeysekera praba...@wso2.com wrote: Guys, This is a blocker for all on-going CDM related developments too. Can someone from Kernel team please check on this ASAP? Cheers, Prabath On Wed, Dec 10, 2014 at 12:03 PM, Lochana Menikarachchi loch...@wso2.com wrote: This start happening after building our product this morning.. Please advice.. [2014-12-10 11:17:39,563] INFO {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} - Configured Registry in 44ms [2014-12-10 11:17:39,647] INFO {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} - Registry Mode: READ-WRITE [2014-12-10 11:17:39,832] INFO {org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} - Carbon UserStoreMgtDSComponent activated successfully. [2014-12-10 11:21:20,680] INFO {org.apache.catalina.startup.TaglibUriRule} - TLD skipped. URI: http://tiles.apache.org/tags-tiles is already defined [2014-12-10 11:25:22,364] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Carbon initialization is delayed due to the following unsatisfied items: [2014-12-10 11:25:22,365] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required Module: org.wso2.carbon.security.mgt-4.3.0-SNAPSHOT [2014-12-10 11:25:22,366] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required Module: rampart-trust-1.6.1.wso2v13-SNAPSHOT [2014-12-10 11:25:22,366] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required Module: rampart-core-1.6.1.wso2v13-SNAPSHOT [2014-12-10 11:25:22,366] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required OSGi Service: org.apache.axis2.engine.AxisObserver [2014-12-10 11:25:22,366] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required OSGiAxis2Service: org.wso2.carbon.security.mgt-4.3.0.SNAPSHOT [2014-12-10 11:26:22,363] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Carbon initialization is delayed due to the following unsatisfied items: [2014-12-10 11:26:22,363] WARN
Re: [Dev] identity server latest source code chunk
Hi Hasintha, Thank you for the quick response. I have tried both svn and git. Unfortunately svn checkout [1] returns only pom files and there is something wrong woth project structure: [ERROR] The project org.wso2.carbon:product-releases:4.2.0-chunk15 (/mnt/storage1/oidc/workspace/wso2/wso2carbon-platform-source/pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact org.wso2.carbon:platform-parent:pom:4.2.0 in central (http://repo.maven.apache.org/maven2) and 'parent.relativePath' points at wrong local POM @ line 6, column 13 - I seems, that something more is required then simple checkout of chunk-15. Previously I have tried to follow the steps described in documentation: https://docs.wso2.com/display/IS500/Building+from+Source which says: svn checkout https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk11/ and this command seems to checkout whole platform source. It lasts very long, compilation process is even longer and the code unfortunately does not contain latest updates. git clone [2] works fine, however during compilation the following error occurs: [ERROR] Failed to execute goal on project org.wso2.identity.styles: Could not resolve dependencies for project org.wso2.identity:org.wso2.identity.styles:bundle:5.1.0-SNAPSHOT: The following artifacts could not be resolved: org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v5-SNAPSHOT, org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v11-SNAPSHOT: Could not find artifact org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v5-SNAPSHOT in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) - [Help 1] Do you have any idea how to solve this issue? Best Marcin On 10/12/14 08:08, Hasintha Indrajee wrote: Hi Marcin, You can use chunk 15 to build WSO2 Identity Server with latest updates. Use the SVN location [1] to checkout the source. At the same time we are maintaining git repo for the IS with latest updates. Find the git repo [2] with the latest updates. [1] https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/product-releases/chunk-15 [2] https://github.com/wso2/product-is Thanks, Hasintha. On Tue, Dec 9, 2014 at 8:38 PM, Marcin Krystek mkrys...@man.poznan.pl mailto:mkrys...@man.poznan.pl wrote: Hello, which svn chunk should I download to build WSO2 Identity Server with latest updates? Is this: https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk13/ ? Is this the only code I need to build this server or should I download and build something more? I'm interested in building server with latests bugfixes like: https://wso2.org/jira/browse/IDENTITY-2800 and others. I will be grateful for direct svn links Thank you in advance, regards Marcin ___ Dev mailing list Dev@wso2.org mailto: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] {password-reset-link} written literally in password reset email
Having read the source, the documentation for WSO2 5.0.0 Identity Server is out of date: https://docs.wso2.com/display/IS500/Recover+with +Notification There is no longer a template tag called {password-reset-link}, and the {key} is now called {confirmation-code}. I have raised a JIRA bug for this: https://wso2.org/jira/browse/DOCUMENTATION-1367 On di, 2014-12-09 at 16:09 +0100, Adam Serafini wrote: Hi all, I am following: https://docs.wso2.com/display/IS500/Recover+with +Notification Everything is working up until sendRecoveryNotification(). I can send a password reset email, but the email just has {password-reset-link} written literally, rather than the URL defined in targetEpr with confirmation key appended. The {key} tag is also written literally in the email so I am unable to build the link manually (I was expecting that it might output the confirmation key). There does not appear to be anything useful in the logs. Would anyone have any pointers to investigate further? Kind regards, Adam This message (including any attachments) may contain information that is privileged or confidential. If you are not the intended recipient, please notify the sender and delete this email immediately from your systems and destroy all copies of it. You may not, directly or indirectly, use, disclose, distribute, print or copy this email or any part of it if you are not the intended recipient ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Avoiding Android memory leaks
Hi all, While refactoring some of the EMM Android code, I realized, it has a lot of memory leaks due to passing Activity context objects around. This can be avoided by following the guide lines provided by Google's Romain Guy[1]. [1] http://www.curious-creature.com/2008/12/18/avoid-memory-leaks-on-android/comment-page-1/ Regards, Inosh -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Carbon 4.3.0 snapshot based server hangs
Kernel snapshot build was not enabled for uploading snapshot artifacts. This should be the issue here. A new build is triggered with the required change. On a related note, from now on-wards kernel will not pack wss4j bundle. Other products have to get it from carbon-identity (security-mgt feature). This is discussed in [Important] wss4j 1.5.11.wso2v7 bundle does not contain Dynamic Imports. On Wed, Dec 10, 2014 at 12:22 PM, Supun Malinga sup...@wso2.com wrote: Hi, Apparently the kernel snapshot is of older build. However I checked the md5 of the zip and it matches the given. Looks like something went wrong in jenkins upload of kernel zip build. I tried to start the kernel zip at [1] but it started up properly. But we cannot have any conclusions from this. @Maheshika, Shall we trigger a build in kernel and check pls ?. [1] http://maven.wso2.org/nexus/content/repositories/snapshots/org/wso2/carbon/wso2carbon-core/4.3.0-SNAPSHOT/ On Wed, Dec 10, 2014 at 12:12 PM, Sameera Jayaratna samee...@wso2.com wrote: Hi, ES also has the same issue today. Thank you, Sameera On Wed, Dec 10, 2014 at 12:08 PM, Prabath Abeysekera praba...@wso2.com wrote: Guys, This is a blocker for all on-going CDM related developments too. Can someone from Kernel team please check on this ASAP? Cheers, Prabath On Wed, Dec 10, 2014 at 12:03 PM, Lochana Menikarachchi loch...@wso2.com wrote: This start happening after building our product this morning.. Please advice.. [2014-12-10 11:17:39,563] INFO {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} - Configured Registry in 44ms [2014-12-10 11:17:39,647] INFO {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} - Registry Mode: READ-WRITE [2014-12-10 11:17:39,832] INFO {org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} - Carbon UserStoreMgtDSComponent activated successfully. [2014-12-10 11:21:20,680] INFO {org.apache.catalina.startup.TaglibUriRule} - TLD skipped. URI: http://tiles.apache.org/tags-tiles is already defined [2014-12-10 11:25:22,364] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Carbon initialization is delayed due to the following unsatisfied items: [2014-12-10 11:25:22,365] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required Module: org.wso2.carbon.security.mgt-4.3.0-SNAPSHOT [2014-12-10 11:25:22,366] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required Module: rampart-trust-1.6.1.wso2v13-SNAPSHOT [2014-12-10 11:25:22,366] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required Module: rampart-core-1.6.1.wso2v13-SNAPSHOT [2014-12-10 11:25:22,366] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required OSGi Service: org.apache.axis2.engine.AxisObserver [2014-12-10 11:25:22,366] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required OSGiAxis2Service: org.wso2.carbon.security.mgt-4.3.0.SNAPSHOT [2014-12-10 11:26:22,363] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Carbon initialization is delayed due to the following unsatisfied items: [2014-12-10 11:26:22,363] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required Module: org.wso2.carbon.security.mgt-4.3.0-SNAPSHOT [2014-12-10 11:26:22,364] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required Module: rampart-trust-1.6.1.wso2v13-SNAPSHOT [2014-12-10 11:26:22,364] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required Module: rampart-core-1.6.1.wso2v13-SNAPSHOT [2014-12-10 11:26:22,364] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required OSGi Service: org.apache.axis2.engine.AxisObserver [2014-12-10 11:26:22,364] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required OSGiAxis2Service: org.wso2.carbon.security.mgt-4.3.0.SNAPSHOT [2014-12-10 11:27:22,363] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Carbon initialization is delayed due to the following unsatisfied items: [2014-12-10 11:27:22,364] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required Module: org.wso2.carbon.security.mgt-4.3.0-SNAPSHOT [2014-12-10 11:27:22,364] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required Module: rampart-trust-1.6.1.wso2v13-SNAPSHOT [2014-12-10 11:27:22,364] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required Module: rampart-core-1.6.1.wso2v13-SNAPSHOT [2014-12-10 11:27:22,364] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required OSGi Service: org.apache.axis2.engine.AxisObserver [2014-12-10 11:27:22,364] WARN {org.wso2.carbon.core.init.CarbonServerManager} - Waiting for required OSGiAxis2Service: org.wso2.carbon.security.mgt-4.3.0.SNAPSHOT [2014-12-10 11:28:22,363] WARN
Re: [Dev] [Important] wss4j 1.5.11.wso2v7 bundle does not contain Dynamic Imports
The changes have been added to those repos. On Wed, Dec 10, 2014 at 12:56 PM, Jeewantha Dharmaparakrama jeewan...@wso2.com wrote: @CarbonTeam. Seems like wss4j version is not update in carbon-utils[1] and carbon-qos[2] repos. Please check [1] https://github.com/wso2/carbon-utils/blob/master/pom.xml [2] https://github.com/wso2/carbon-qos/blob/master/pom.xml On Tue, Dec 9, 2014 at 4:52 PM, Kishanthan Thangarajah kishant...@wso2.com wrote: Done. Will be available with the next SNAPSHOT build. On Tue, Dec 9, 2014 at 3:01 PM, Jeewantha Dharmaparakrama jeewan...@wso2.com wrote: @CarbonTeam, please do the needful to merge the Kernal change to master branch. ESB still gets wss4j 1.5.11.wso2v7 bundle from Kernal dependencies. Thanks, Jeewantha On Tue, Dec 9, 2014 at 1:28 PM, Jeewantha Dharmaparakrama jeewan...@wso2.com wrote: Folks, Doesn't look like wss4j new bundle is included in security-mgt feature [1]. @IS Team, can you guys check on this ASAP ? [1] https://github.com/wso2-dev/carbon-identity/blob/master/features/security-mgt/org.wso2.carbon.security.mgt.server.feature/pom.xml On Mon, Dec 8, 2014 at 3:42 PM, Jeewantha Dharmaparakrama jeewan...@wso2.com wrote: @IS Team, is the bundle added to security-mgt feature ? Do we have do any changes from ESB side? On Monday, December 8, 2014, Kishanthan Thangarajah kishant...@wso2.com wrote: This has been merged to master branch. @ESB Team, please test your scenarios with wss4j-1.5.11-wso2v8-SNAPSHOT. On Fri, Dec 5, 2014 at 5:35 PM, Pulasthi Mahawithana pulast...@wso2.com wrote: Created a PR [1] to fix this. Please review and merge. [1] https://github.com/wso2-dev/wso2-wss4j/pull/2 On Fri, Dec 5, 2014 at 12:45 PM, Pulasthi Mahawithana pulast...@wso2.com wrote: Hi Kishanthan, Will do. On Fri, Dec 5, 2014 at 12:22 PM, Kishanthan Thangarajah kishant...@wso2.com wrote: @Pulasthi, can you work with ESB team and fix this? We need to fix the issue with orbit bundle and make the changes available in the master branch of wss4j. On Fri, Dec 5, 2014 at 11:24 AM, Kishanthan Thangarajah kishant...@wso2.com wrote: On Thu, Dec 4, 2014 at 9:50 PM, Jeewantha Dharmaparakrama jeewan...@wso2.com wrote: I have already tested with adding Dynamic Imports to the bundle and everything works as expected. We will need to release the bundle again. Can you sent the changes as a PR to master branch? Thanks, Jeewantha On Thu, Dec 4, 2014 at 7:50 PM, Kishanthan Thangarajah kishant...@wso2.com wrote: The following commit has introduced this change : https://github.com/wso2/wso2-wss4j/commit/3185c3f155df48f6a666cd79873010f62b8c97a9 @Pulasthi/Johann, the above commit has removed the DynamicImport-Package tag in the orbit bundle. This change has no impact on kernel, but since wss4j-1.5.11-wso2v7 is already released and bundled with kernel, we need to cancel the vote called for carbon-kernel RC1 release. @Jeewantha, you need to reply to the vote thread [VOTE] Release WSO2 Carbon Kernel 4.3.0 RC1 and CANCEL it with the explanation. We are currently looking for the possibilities of removing wss4j from kernel and call for kernel RC2 ASAP. @Jeewantha, at the same time you can quickly do a test by introducing DynamicImport-Package*/DynamicImport-Package to the orbit pom of the release tag of wss4j : https://github.com/wso2/wso2-wss4j/releases/tag/wso2-wss4j-1.5.11-wso2v7 and build it and see. If this passes, we can do an immediate release of wss4j-1.5.11-wso2v8. On Thu, Dec 4, 2014 at 6:26 PM, Jeewantha Dharmaparakrama jeewan...@wso2.com wrote: Hi IS team, Due to this Rampart fails to load custom Password Callback Handlers and many ESB security related integration tests fail. wss4j uses Class.forName() to load password callback handlers and therefor throws the following exception. How should we deal with this ? org.apache.axis2.AxisFault: Cannot load password callback class: samples.userguide.PWCallback at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:76) at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340) at org.apache.axis2.engine.Phase.invoke(Phase.java:313) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:427) at org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:278) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) at org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:512) at org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:489) at com.dimuthuupeksha.clients.OrderProcessingSecureClient.main(OrderProcessingSecureClient.java:127) Caused by: org.apache.rampart.RampartException: Cannot load password callback class: samples.userguide.PWCallback at
Re: [Dev] Custom Serializer property for hazelcast in Carbon
I'm afraid this cannot be added to 4.3.0 kernel. We are already set for the release and now in RC3 stage with final packs and in final testing phase. On Wed, Dec 10, 2014 at 12:02 PM, Afkham Azeez az...@wso2.com wrote: This is a non-intrusive change that does not require any changes to existing config files or will not break anything. If custom serializers are defined in the axis2.xml clustering section, the kernel will pick up those serializers. This code was written by me yesterday, and I can assure that it will not break anything. :) Azeez On Wed, Dec 10, 2014 at 11:36 AM, Ramith Jayasinghe ram...@wso2.com wrote: Just to give some context: we need to keep several maps in hazelcast ( where values are not primitives) for MB's new slot based message delivery scheme. By registering custom serializers we can optimize the information that’s been transmitted across the cluster ( reducing the overhead for hazelcast etc). On Wed, Dec 10, 2014 at 11:29 AM, Sajini De Silva saj...@wso2.com wrote: Hi, Yesterday I tested the patch gave by Azeez to enable custom serializing in hazelcast and its working. Are we going to ship this change with Carbon 4.3.0 release? Thank you, Sajini -- Sajini De SIlva Software Engineer; WSO2 Inc.; http://wso2.com , Email: saj...@wso2.com Blog: http://sajinid.blogspot.com/ Git hub profile: https://github.com/sajinidesilva Phone: +94 712797729 -- Ramith Jayasinghe Technical Lead WSO2 Inc., http://wso2.com lean.enterprise.middleware E: ram...@wso2.com P: +94 777542851 -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/* *email: **az...@wso2.com* az...@wso2.com * cell: +94 77 3320919 %2B94%2077%203320919blog: * *http://blog.afkham.org* http://blog.afkham.org *twitter: **http://twitter.com/afkham_azeez* http://twitter.com/afkham_azeez *linked-in: **http://lk.linkedin.com/in/afkhamazeez http://lk.linkedin.com/in/afkhamazeez* *Lean . Enterprise . Middleware* -- *Kishanthan Thangarajah* Senior Software Engineer, Platform Technologies Team, WSO2, Inc. lean.enterprise.middleware Mobile - +94773426635 Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com* Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Avoiding Android memory leaks
Hi Inosh, Great! Please create JIRAs upon all such instances and fix them as appropriate. Cheers, Prabath On Wed, Dec 10, 2014 at 3:18 PM, Inosh Perera ino...@wso2.com wrote: Hi all, While refactoring some of the EMM Android code, I realized, it has a lot of memory leaks due to passing Activity context objects around. This can be avoided by following the guide lines provided by Google's Romain Guy[1]. [1] http://www.curious-creature.com/2008/12/18/avoid-memory-leaks-on-android/comment-page-1/ Regards, Inosh -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 -- 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
[Dev] Upgrading CQL to the latest release version 2.1.3
Hi All, Since there are number of improvements made for the latest CQL driver, we are going to upgrade CQL driver to the latest version which also need for MB as well. Current version is 1.0.8.wso2v1 which we added as orbit bundle due to dependency conflicts in OSGi environment. With the latest release, they have removed cassandra and jackson dependencies from CQL driver. We most probably can update the CQL driver to the 2.1.3 without a orbit bundle. Since there are some API changes, we will needs to fix them. Please find [1] and [2] as upgrade instructions from datastax. We are now testing the cql upgrade with latest version from https://github.com/wso2-dev/carbon-storage-management/tree/cql_upgrade branch, @Asitha,Madhawa can you update the thread whether data reader feature with the latest CQL driver works as expected in MB? [1] -hhttps:// github.com/datastax/java-driver/blob/2.0/driver-core/Upgrade_guide_to_2.0.rst [2] - https://github.com/datastax/java-driver/blob/2.1/driver-core/Upgrade_guide_to_2.1.rst [3] -https://github.com/datastax/java-driver Thanks, Harsha -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Upgrading CQL to the latest release version 2.1.3
we need to test a new driver on cassandra ring (with a MB load test). On Wed, Dec 10, 2014 at 3:55 PM, Harsha Kumara hars...@wso2.com wrote: Hi All, Since there are number of improvements made for the latest CQL driver, we are going to upgrade CQL driver to the latest version which also need for MB as well. Current version is 1.0.8.wso2v1 which we added as orbit bundle due to dependency conflicts in OSGi environment. With the latest release, they have removed cassandra and jackson dependencies from CQL driver. We most probably can update the CQL driver to the 2.1.3 without a orbit bundle. Since there are some API changes, we will needs to fix them. Please find [1] and [2] as upgrade instructions from datastax. We are now testing the cql upgrade with latest version from https://github.com/wso2-dev/carbon-storage-management/tree/cql_upgrade branch, @Asitha,Madhawa can you update the thread whether data reader feature with the latest CQL driver works as expected in MB? [1] -hhttps:// github.com/datastax/java-driver/blob/2.0/driver-core/Upgrade_guide_to_2.0.rst [2] - https://github.com/datastax/java-driver/blob/2.1/driver-core/Upgrade_guide_to_2.1.rst [3] -https://github.com/datastax/java-driver Thanks, Harsha -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com -- Ramith Jayasinghe Technical Lead WSO2 Inc., http://wso2.com lean.enterprise.middleware E: ram...@wso2.com P: +94 777542851 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [DEV] Please review and commit
Hi, I have attached a diff file herewith which has test cases and some improvements to TestUtil class. This diff contain testcases for following jiras https://wso2.org/jira/browse/APIMANAGER-3017 https://wso2.org/jira/browse/APIMANAGER-3149 https://wso2.org/jira/browse/APIMANAGER-2957 Modifications done to TestUtil class Used api name as contextpath (removed hard coded path. otherwise we cannot create multiple APIs) and JSONParser to check the response status when creating an API Thanks *Dinesh J. Weerakkody* Software Engineer WSO2 Inc. lean | enterprise | middleware M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com Index: 1.8.0/modules/integration/tests-ui/src/test/java/org/wso2/carbon/am/integration/ui/APIMANAGER2957EpochTimeTestCase.java === --- 1.8.0/modules/integration/tests-ui/src/test/java/org/wso2/carbon/am/integration/ui/APIMANAGER2957EpochTimeTestCase.java (revision 0) +++ 1.8.0/modules/integration/tests-ui/src/test/java/org/wso2/carbon/am/integration/ui/APIMANAGER2957EpochTimeTestCase.java (working copy) @@ -0,0 +1,118 @@ +/* +*Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. +* +*WSO2 Inc. licenses this file to you under the Apache License, +*Version 2.0 (the License); you may not use this file except +*in compliance with the License. +*You may obtain a copy of the License at +* +*http://www.apache.org/licenses/LICENSE-2.0 +* +*Unless required by applicable law or agreed to in writing, +*software distributed under the License is distributed on an +*AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +*KIND, either express or implied. See the License for the +*specific language governing permissions and limitations +*under the License. +*/ + +package org.wso2.carbon.am.integration.ui; + +import org.apache.http.protocol.HttpContext; +import org.openqa.selenium.Alert; +import org.openqa.selenium.By; +import org.openqa.selenium.NoAlertPresentException; +import org.openqa.selenium.NoSuchElementException; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.support.ui.ExpectedConditions; +import org.openqa.selenium.support.ui.WebDriverWait; +import org.testng.Assert; +import org.testng.annotations.AfterClass; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; +import org.wso2.carbon.am.integration.ui.util.TestUtil; +import org.wso2.carbon.automation.core.BrowserManager; +import org.wso2.carbon.automation.core.ProductConstant; + +import java.util.concurrent.TimeUnit; +import java.util.regex.Pattern; + +import static org.testng.Assert.assertTrue; + +public class APIMANAGER2957EpochTimeTestCase extends AMIntegrationUiTestBase { +private WebDriver driver; +private boolean acceptNextAlert = true; +private StringBuffer verificationErrors = new StringBuffer(); + +private static final String TEST_DATA_API_NAME = EpochAPI; +private static final String TEST_DATA_API_VERSION = 1.0.0; +private static final String TEST_DATA_API_TIER = Unlimited; +private static final String TEST_DATA_APP_NAME = DefaultApplication; + +@BeforeClass(alwaysRun = true) +public void init() throws Exception { +super.init(0); +driver = BrowserManager.getWebDriver(); +driver.get(getLoginURL(ProductConstant.AM_SERVER_NAME)); + +driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); +} + +@Test(groups = wso2.am, description = This method adds and publishes the Test API in carbon.super store) +public void testCreatePublishAndSubscribeAPI() throws Exception { + +// login to publisher and create new API +String publisherURL = getPublisherURL(ProductConstant.AM_SERVER_NAME); +HttpContext httpContext = TestUtil.login(userInfo.getUserName(), userInfo.getPassword(), publisherURL); +assertTrue(TestUtil.addAPI(userInfo.getUserName(), TEST_DATA_API_NAME, TEST_DATA_API_VERSION, httpContext, publisherURL)); +assertTrue(TestUtil.publishAPI(userInfo.getUserName(), TEST_DATA_API_NAME, TEST_DATA_API_VERSION, httpContext, publisherURL)); + +// login to store and subscribe to API +String storeURL = getStoreURL(ProductConstant.AM_SERVER_NAME); +httpContext = TestUtil.login(userInfo.getUserName(), userInfo.getPassword(), storeURL); +assertTrue(TestUtil.addSubscription(userInfo.getUserName(), TEST_DATA_API_NAME, TEST_DATA_API_VERSION, TEST_DATA_API_TIER, TEST_DATA_APP_NAME, httpContext, storeURL)); + +System.out.println(API Create and Publish test case is completed ); +} + +@Test(groups = wso2.am, description = Check time conversion from epoch to human readable version, dependsOnMethods = testCreatePublishAndSubscribeAPI) +public void testFIDELITYDEV86EpochTimeTestCase() throws Exception { +// login to publisher +driver.get(getPublisherURL(ProductConstant.AM_SERVER_NAME) +
[Dev] Screen capturing feature in a UI test failure situation is now available with WSO2Test Framework.
Hi All, New feature was introduced to the WSO2 Test Framework to capture the web browser screen in a test failure situation. New listener was introduce to wso2/carbon-platform-integration-utils (4.3.0 SNAPSHOT) and it can be only used with UI test modules. - Following configuration need to be added to the TestNG suite xml file to make this feature available on UI test modules listeners listener class-name=org.wso2.carbon.automation.engine.testlisteners.TestSuiteListener/ listener class-name=org.wso2.carbon.automation.engine.testlisteners.TestTransformerListener/ *listener class-name=org.wso2.carbon.integration.common.extensions.selenium.uimgt.UIManagementListener/* /listeners - All captured Screens are stored in {basedir} */target/capturedscreens/failedtests/ *location with test case name and timestamp. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Increase the width of the title in a gadget - ues
Hi, As our titles of some gadgets are too long, can we increase the width of the title in a gadget. Thank you. -- /Lalanke Athauda/ *Lanka Software Foundation* www.opensource.lk http://www.opensource.lk/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [BAM]Shouldn't we rename Mediation Data Agent to Mediation Stat Data Agent
Hi All, As per [1] , we are actually setting up a mediation stat data agent but our docs say this as Setting Up Mediation Data Agent. So IMO this misleads with BAM Mediator[2] so Shouldn't we rename Mediation Data Agent to Mediation Stat Data Agent our documentations. [1] https://docs.wso2.com/display/BAM250/Setting+up+Mediation+Data+Agent [2] https://docs.wso2.com/display/BAM250/Setting+up+BAM+Mediator -- Asanka Vithanage Senior Software Engineer -QA Mobile: +94 0716286708 Email: asan...@wso2.com WSO2 Inc. www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Please review commit
Hi, Please review commit the changes for https://wso2.org/jira/browse/ESBJAVA-3345 https://wso2.org/jira/browse/ESBJAVA-3341 -- Priya Kishok Software Engineer WSO2, Inc : http://wso2.com Mob : +94774457404 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Please review commit
Hi, Sorry, https://wso2.org/jira/browse/ESBJAVA-3341 is merged by the ESB team. Please verify commit https://wso2.org/jira/browse/ESBJAVA-3345 On Wed, Dec 10, 2014 at 7:46 PM, Priyadarssini Kishokumar priyadarss...@wso2.com wrote: Hi, Please review commit the changes for https://wso2.org/jira/browse/ESBJAVA-3345 https://wso2.org/jira/browse/ESBJAVA-3341 -- Priya Kishok Software Engineer WSO2, Inc : http://wso2.com Mob : +94774457404 -- Priya Kishok Software Engineer WSO2, Inc : http://wso2.com Mob : +94774457404 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Custom Serializer property for hazelcast in Carbon
Ramith et al, Put this as a kernel patch. On Wed, Dec 10, 2014 at 3:25 PM, Kishanthan Thangarajah kishant...@wso2.com wrote: I'm afraid this cannot be added to 4.3.0 kernel. We are already set for the release and now in RC3 stage with final packs and in final testing phase. On Wed, Dec 10, 2014 at 12:02 PM, Afkham Azeez az...@wso2.com wrote: This is a non-intrusive change that does not require any changes to existing config files or will not break anything. If custom serializers are defined in the axis2.xml clustering section, the kernel will pick up those serializers. This code was written by me yesterday, and I can assure that it will not break anything. :) Azeez On Wed, Dec 10, 2014 at 11:36 AM, Ramith Jayasinghe ram...@wso2.com wrote: Just to give some context: we need to keep several maps in hazelcast ( where values are not primitives) for MB's new slot based message delivery scheme. By registering custom serializers we can optimize the information that’s been transmitted across the cluster ( reducing the overhead for hazelcast etc). On Wed, Dec 10, 2014 at 11:29 AM, Sajini De Silva saj...@wso2.com wrote: Hi, Yesterday I tested the patch gave by Azeez to enable custom serializing in hazelcast and its working. Are we going to ship this change with Carbon 4.3.0 release? Thank you, Sajini -- Sajini De SIlva Software Engineer; WSO2 Inc.; http://wso2.com , Email: saj...@wso2.com Blog: http://sajinid.blogspot.com/ Git hub profile: https://github.com/sajinidesilva Phone: +94 712797729 -- Ramith Jayasinghe Technical Lead WSO2 Inc., http://wso2.com lean.enterprise.middleware E: ram...@wso2.com P: +94 777542851 -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/* *email: **az...@wso2.com* az...@wso2.com * cell: +94 77 3320919 %2B94%2077%203320919blog: * *http://blog.afkham.org* http://blog.afkham.org *twitter: **http://twitter.com/afkham_azeez* http://twitter.com/afkham_azeez *linked-in: **http://lk.linkedin.com/in/afkhamazeez http://lk.linkedin.com/in/afkhamazeez* *Lean . Enterprise . Middleware* -- *Kishanthan Thangarajah* Senior Software Engineer, Platform Technologies Team, WSO2, Inc. lean.enterprise.middleware Mobile - +94773426635 Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com* Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan* -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * http://www.apache.org/* *email: **az...@wso2.com* az...@wso2.com * cell: +94 77 3320919blog: **http://blog.afkham.org* http://blog.afkham.org *twitter: **http://twitter.com/afkham_azeez* http://twitter.com/afkham_azeez *linked-in: **http://lk.linkedin.com/in/afkhamazeez http://lk.linkedin.com/in/afkhamazeez* *Lean . Enterprise . Middleware* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [BAM]Shouldn't we rename Mediation Data Agent to Mediation Stat Data Agent
Thanks for bringing this up Asanka! I have done the change in [1]. @BAM Team - Please advice if I have missed anything on this. [1] https://docs.wso2.com/display/BAM250/Setting+up+Mediation+Stat+Data+Agent On Wed, Dec 10, 2014 at 7:10 PM, Asanka Vithanage asan...@wso2.com wrote: Hi All, As per [1] , we are actually setting up a mediation stat data agent but our docs say this as Setting Up Mediation Data Agent. So IMO this misleads with BAM Mediator[2] so Shouldn't we rename Mediation Data Agent to Mediation Stat Data Agent our documentations. [1] https://docs.wso2.com/display/BAM250/Setting+up+Mediation+Data+Agent [2] https://docs.wso2.com/display/BAM250/Setting+up+BAM+Mediator -- Asanka Vithanage Senior Software Engineer -QA Mobile: +94 0716286708 Email: asan...@wso2.com WSO2 Inc. www.wso2.com -- Thanks Best Regards, *Praneesha Chandrasiri* *Technical Writer* *WSO2 Inc. * *Mobile: +(94) 718156888* *E-mail: pranee...@wso2.com pranee...@wso2.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [BAM]Shouldn't we rename Mediation Data Agent to Mediation Stat Data Agent
Looks fine! .. Cheers, Anjana. On Wed, Dec 10, 2014 at 7:53 PM, Praneesha Chandrasiri pranee...@wso2.com wrote: Thanks for bringing this up Asanka! I have done the change in [1]. @BAM Team - Please advice if I have missed anything on this. [1] https://docs.wso2.com/display/BAM250/Setting+up+Mediation+Stat+Data+Agent On Wed, Dec 10, 2014 at 7:10 PM, Asanka Vithanage asan...@wso2.com wrote: Hi All, As per [1] , we are actually setting up a mediation stat data agent but our docs say this as Setting Up Mediation Data Agent. So IMO this misleads with BAM Mediator[2] so Shouldn't we rename Mediation Data Agent to Mediation Stat Data Agent our documentations. [1] https://docs.wso2.com/display/BAM250/Setting+up+Mediation+Data+Agent [2] https://docs.wso2.com/display/BAM250/Setting+up+BAM+Mediator -- Asanka Vithanage Senior Software Engineer -QA Mobile: +94 0716286708 Email: asan...@wso2.com WSO2 Inc. www.wso2.com -- Thanks Best Regards, *Praneesha Chandrasiri* *Technical Writer* *WSO2 Inc. * *Mobile: +(94) 718156888 %2B%2894%29%20718156888* *E-mail: pranee...@wso2.com pranee...@wso2.com* -- *Anjana Fernando* Senior Technical Lead WSO2 Inc. | http://wso2.com lean . enterprise . middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [BAM]Shouldn't we rename Mediation Data Agent to Mediation Stat Data Agent
Thanks a lot Anjana! On Wed, Dec 10, 2014 at 8:01 PM, Anjana Fernando anj...@wso2.com wrote: Looks fine! .. Cheers, Anjana. On Wed, Dec 10, 2014 at 7:53 PM, Praneesha Chandrasiri pranee...@wso2.com wrote: Thanks for bringing this up Asanka! I have done the change in [1]. @BAM Team - Please advice if I have missed anything on this. [1] https://docs.wso2.com/display/BAM250/Setting+up+Mediation+Stat+Data+Agent On Wed, Dec 10, 2014 at 7:10 PM, Asanka Vithanage asan...@wso2.com wrote: Hi All, As per [1] , we are actually setting up a mediation stat data agent but our docs say this as Setting Up Mediation Data Agent. So IMO this misleads with BAM Mediator[2] so Shouldn't we rename Mediation Data Agent to Mediation Stat Data Agent our documentations. [1] https://docs.wso2.com/display/BAM250/Setting+up+Mediation+Data+Agent [2] https://docs.wso2.com/display/BAM250/Setting+up+BAM+Mediator -- Asanka Vithanage Senior Software Engineer -QA Mobile: +94 0716286708 Email: asan...@wso2.com WSO2 Inc. www.wso2.com -- Thanks Best Regards, *Praneesha Chandrasiri* *Technical Writer* *WSO2 Inc. * *Mobile: +(94) 718156888 %2B%2894%29%20718156888* *E-mail: pranee...@wso2.com pranee...@wso2.com* -- *Anjana Fernando* Senior Technical Lead WSO2 Inc. | http://wso2.com lean . enterprise . middleware -- Thanks Best Regards, *Praneesha Chandrasiri* *Technical Writer* *WSO2 Inc. * *Mobile: +(94) 718156888* *E-mail: pranee...@wso2.com pranee...@wso2.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [AF] Where to convert cartride type to lower case.
Hi All AF is subscribing to stratos cartridges in two places. 1. For multi tenant cartridges at tenant creation 2. For single tenant cartridges at app creation Earlier for appserver cartridges for three stages we name them as asdev, astest, asprod. But with the implementation of separating runtimes we need change them to append stage to the given prefix in runtime config. (for eg:- as). So they will be asDevelopment, asProduction, asTesting. However we need to have all small letters in alias and cartridge type. So we need to change them to asdevelopment, astesting, asproduction. In code level we need to convert this alias and type to lowercase. In the implementation we have implemented a class named StratosRestService to subscribe to the cartridge using stratos rest service. This class will call the rest service with given parameters. So where should this toLowerCase should call from following option. 1. Within the StratosRestService which will cause to do it one place. 2. The places that calling StratosRestService which will cause to do it in multiple places. IMO this is about whats the StratosRestService class's responsibilities. WDYT? Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [BAM]Shouldn't we rename Mediation Data Agent to Mediation Stat Data Agent
Looping in @documentation group. On Wed, Dec 10, 2014 at 8:03 PM, Praneesha Chandrasiri pranee...@wso2.com wrote: Thanks a lot Anjana! On Wed, Dec 10, 2014 at 8:01 PM, Anjana Fernando anj...@wso2.com wrote: Looks fine! .. Cheers, Anjana. On Wed, Dec 10, 2014 at 7:53 PM, Praneesha Chandrasiri pranee...@wso2.com wrote: Thanks for bringing this up Asanka! I have done the change in [1]. @BAM Team - Please advice if I have missed anything on this. [1] https://docs.wso2.com/display/BAM250/Setting+up+Mediation+Stat+Data+Agent On Wed, Dec 10, 2014 at 7:10 PM, Asanka Vithanage asan...@wso2.com wrote: Hi All, As per [1] , we are actually setting up a mediation stat data agent but our docs say this as Setting Up Mediation Data Agent. So IMO this misleads with BAM Mediator[2] so Shouldn't we rename Mediation Data Agent to Mediation Stat Data Agent our documentations. [1] https://docs.wso2.com/display/BAM250/Setting+up+Mediation+Data+Agent [2] https://docs.wso2.com/display/BAM250/Setting+up+BAM+Mediator -- Asanka Vithanage Senior Software Engineer -QA Mobile: +94 0716286708 Email: asan...@wso2.com WSO2 Inc. www.wso2.com -- Thanks Best Regards, *Praneesha Chandrasiri* *Technical Writer* *WSO2 Inc. * *Mobile: +(94) 718156888 %2B%2894%29%20718156888* *E-mail: pranee...@wso2.com pranee...@wso2.com* -- *Anjana Fernando* Senior Technical Lead WSO2 Inc. | http://wso2.com lean . enterprise . middleware -- Thanks Best Regards, *Praneesha Chandrasiri* *Technical Writer* *WSO2 Inc. * *Mobile: +(94) 718156888 %2B%2894%29%20718156888* *E-mail: pranee...@wso2.com pranee...@wso2.com* -- Thanks Best Regards, *Praneesha Chandrasiri* *Technical Writer* *WSO2 Inc. * *Mobile: +(94) 718156888* *E-mail: pranee...@wso2.com pranee...@wso2.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Where to convert cartride type to lower case.
+1 for make it withing the class, if convert to lowercase is must to have for stratos cartridge alias. harshat@mobile On Dec 10, 2014 7:33 AM, Danushka Fernando danush...@wso2.com wrote: Hi All AF is subscribing to stratos cartridges in two places. 1. For multi tenant cartridges at tenant creation 2. For single tenant cartridges at app creation Earlier for appserver cartridges for three stages we name them as asdev, astest, asprod. But with the implementation of separating runtimes we need change them to append stage to the given prefix in runtime config. (for eg:- as). So they will be asDevelopment, asProduction, asTesting. However we need to have all small letters in alias and cartridge type. So we need to change them to asdevelopment, astesting, asproduction. In code level we need to convert this alias and type to lowercase. In the implementation we have implemented a class named StratosRestService to subscribe to the cartridge using stratos rest service. This class will call the rest service with given parameters. So where should this toLowerCase should call from following option. 1. Within the StratosRestService which will cause to do it one place. 2. The places that calling StratosRestService which will cause to do it in multiple places. IMO this is about whats the StratosRestService class's responsibilities. WDYT? Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Request to commit patch for IDENTITY-2914
Hi Team, Please review and commit the diff attached with [1]. [1] https://wso2.org/jira/browse/IDENTITY-2914 Thanks, Malithi. -- *Malithi Edirisinghe* Senior Software Engineer WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Getting started with Puppet
Here are some blog posts I have written when I was doing some puppet related deployment. http://soatutorials.blogspot.com/2013/11/how-puppet-works-in-your-it.html http://soatutorials.blogspot.com/2013/12/installing-puppet-on-red-hat-linux.html http://soatutorials.blogspot.com/2013/12/how-to-deploy-your-wso2-server-in-1.html Thanks, Chanaka On Wed, Dec 10, 2014 at 11:59 AM, Chamila De Alwis chami...@wso2.com wrote: Hi Michael, Puppet takes less time to get familiar to, so I think you will be able to get around the language syntax quickly by following the resources Thilina provided. Especially the VM based exercises will give you an idea on the inner workings of Puppet. Setting up WSO2 API Manager with Puppet is already handled, although in a somewhat different context in WSO2 Private PaaS [1]. What Private PaaS does, in brief, is to use Puppet to deploy applications, frameworks etc, to newly spawned VM instances. There are certain prerequisites this workflow needs, however the other details, especially regarding setting up folders, configuration templates, and setting up different components of the APIM, will help you in writing your module. [1] - https://github.com/wso2/private-paas/tree/4.0.0-rc1/puppet/modules/apimanager Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Wed, Dec 10, 2014 at 8:09 AM, Thilina Piyasundara thili...@wso2.com wrote: Hi Michael, Please refer to those inline comments. On Tue, Dec 9, 2014 at 11:35 PM, Michael mcnasty...@gmail.com wrote: Good Morning, I have a good amount of experience with WSO2 API Manager, Linux and some experience with scripting. But I have zero experience with Puppet. I am hoping to install WSO2 API Manager using Puppet as a working example and then hand over the project to another chap. What do you think would be the best way to approach this, keeping in mind I have no experience with Puppet. For example, you might suggest: 1. Go do this online course here.. 2. Check out this site over here and read with Bob said... 3. Here is a example here that another guy did... but make sure you do x, y and z. I have found these: https://forge.puppetlabs.com/thilina I did this as a test round so it's not up-to-date. So don't use it. https://github.com/wso2/Puppet/tree/master/modules/apimanager/1.5.0/apimanager (Don't use this.) We have change the puppet github repository to this https://github.com/wso2/Puppet-Modules new repo. But to be honest I'm not sure where to start - I definitely don't want to spend 2 months doing courses just to get this started. Any advice you can offer? Here are some resources to learn puppet. We use puppet opensource. Intro guide : https://docs.puppetlabs.com/learning/variables.html Try the test VM from puppet labs (download it and try it) : http://puppetlabs.com/download-learning-vm Go through the library and learn step by step : https://puppetlabs.com/learn/library This is a good *troubleshoot* guide I use: http://bitcube.co.uk/content/ puppet-errors-explained ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev Thanks and regards, Thilina Piyasundara Systems Engineer M: 071-775-0006 Blog: thilina.piyasundara.org Linkedin: linkedin.com/in/thilinapiyasundara WSO2, Inc. http://wso2.com/ lean . enterprise . middleware https://cloud.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Please review commit
Merged the PR https://github.com/wso2-dev/carbon-deployment/pull/50 thanks, On Wed, Dec 10, 2014 at 7:50 PM, Priyadarssini Kishokumar priyadarss...@wso2.com wrote: Hi, Sorry, https://wso2.org/jira/browse/ESBJAVA-3341 is merged by the ESB team. Please verify commit https://wso2.org/jira/browse/ESBJAVA-3345 On Wed, Dec 10, 2014 at 7:46 PM, Priyadarssini Kishokumar priyadarss...@wso2.com wrote: Hi, Please review commit the changes for https://wso2.org/jira/browse/ESBJAVA-3345 https://wso2.org/jira/browse/ESBJAVA-3341 -- Priya Kishok Software Engineer WSO2, Inc : http://wso2.com Mob : +94774457404 -- Priya Kishok Software Engineer WSO2, Inc : http://wso2.com Mob : +94774457404 -- Supun Malinga, Senior Software Engineer, WSO2 Inc. http://wso2.com email: sup...@wso2.com sup...@wso2.com mobile: +94 (0)71 56 91 321 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Chunk -14 RC packs
Hi all; Please find the RC3+p2 repo packs. revision 210484 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/chunk-14-RC3-Packs/ Thanks On 10 December 2014 at 14:08, Vijayaratha Vijayasingam rat...@wso2.com wrote: Hi all; Please find the RC2 +p2 repo packs with few more fixes. Revision :210446 https://svn.wso2.org/repos/wso2/scratch/chunk13-release/chunk-14-RC2-Packs/ Thanks On 6 December 2014 at 14:02, Vijayaratha Vijayasingam rat...@wso2.com wrote: Hi all; Please find APIM+BAM RC packs and p2 repo.[1] Revision :210263 [1] https://svn.wso2.org/repos/wso2/scratch/chunk13-release/chunk-14-RC-Packs/ Thanks. -- -Ratha -- -Ratha -- -Ratha ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Note]Code freeze -05/12/2014 -3pm
Hi all; Platform is open for all commits. Make sure the versions of released components. You can not commit to released components. If you do, you might need to revert your commits. Thanks. On 5 December 2014 at 17:08, Vijayaratha Vijayasingam rat...@wso2.com wrote: Platform is frozen .. Thanks. On 4 December 2014 at 21:47, Vijayaratha Vijayasingam rat...@wso2.com wrote: Hi all; We will freeze the platform tomorrow by 3pm for chunk-14 RC build. Except AM/BAM team members, others won't be allowed to commit. Please note. Thanks. -- -Ratha -- -Ratha -- -Ratha ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Error when logging from a tenant
Hi, I encountered following error while logging from a tenant. Please note that this is not visible when logging from super tenant. [2014-12-11 09:35:38,793] INFO {org.apache.stratos.cloud.controller.deployers.CloudControllerDeployer} - Successfully deployed the cloud-controller XML file located at /home/udara/stratos/install/apache-stratos-default/repository/tenants/1/../../conf/cloud-controller.xml [2014-12-11 09:35:38,938] INFO {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} - Permission cache updated for tenant 1 [2014-12-11 09:35:38,953] ERROR {org.wso2.carbon.sts.STSDeploymentListener} - Error occur while deploying wso2carbon-sts service for tenant 1 org.apache.axis2.phaseresolver.PhaseException: Did not find the desired phase 'Transport' while deploying handler 'POXSecurityHandler'. at org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:75) at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToFlow(PhaseResolver.java:68) at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:104) at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:110) at org.apache.axis2.description.AxisOperation.onEngage(AxisOperation.java:152) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478) at org.apache.axis2.description.AxisService.onEngage(AxisService.java:827) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478) at org.apache.axis2.description.AxisServiceGroup.onEngage(AxisServiceGroup.java:134) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:439) at org.apache.axis2.engine.AxisConfiguration.addServiceGroup(AxisConfiguration.java:380) at org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentEngine.java:602) at org.wso2.carbon.sts.STSDeploymentListener.createService(STSDeploymentListener.java:148) at org.wso2.carbon.sts.STSDeploymentListener.createdConfigurationContext(STSDeploymentListener.java:82) at org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:344) at org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:135) at org.wso2.carbon.core.services.util.CarbonAuthenticationUtil.onSuccessAdminLogin(CarbonAuthenticationUtil.java:131) at org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login(AuthenticationAdmin.java:118) 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.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82) at org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45) at org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) at org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.login(AuthenticationAdminStub.java:659) at org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient.login(AuthenticationAdminClient.java:64) at org.wso2.carbon.ui.DefaultCarbonAuthenticator.doAuthentication(DefaultCarbonAuthenticator.java:119) at org.wso2.carbon.ui.AbstractCarbonUIAuthenticator.handleSecurity(AbstractCarbonUIAuthenticator.java:218) at org.wso2.carbon.ui.BasicAuthUIAuthenticator.authenticate(BasicAuthUIAuthenticator.java:96) at org.wso2.carbon.ui.CarbonUILoginUtil.handleLogin(CarbonUILoginUtil.java:358) at org.wso2.carbon.ui.CarbonSecuredHttpContext.handleSecurity(CarbonSecuredHttpContext.java:246) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:60) at
Re: [Dev] Error when logging from a tenant
Got the similar issue when testing Chunk5 releases. check if the phase name=Transport/ is added in the OutFaultFlow axis2.xml. This resolved the issue. HTH Regards, NuwanS. On Thu, Dec 11, 2014 at 9:43 AM, Udara Liyanage ud...@wso2.com wrote: Hi, I encountered following error while logging from a tenant. Please note that this is not visible when logging from super tenant. [2014-12-11 09:35:38,793] INFO {org.apache.stratos.cloud.controller.deployers.CloudControllerDeployer} - Successfully deployed the cloud-controller XML file located at /home/udara/stratos/install/apache-stratos-default/repository/tenants/1/../../conf/cloud-controller.xml [2014-12-11 09:35:38,938] INFO {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} - Permission cache updated for tenant 1 [2014-12-11 09:35:38,953] ERROR {org.wso2.carbon.sts.STSDeploymentListener} - Error occur while deploying wso2carbon-sts service for tenant 1 org.apache.axis2.phaseresolver.PhaseException: Did not find the desired phase 'Transport' while deploying handler 'POXSecurityHandler'. at org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:75) at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToFlow(PhaseResolver.java:68) at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:104) at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:110) at org.apache.axis2.description.AxisOperation.onEngage(AxisOperation.java:152) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478) at org.apache.axis2.description.AxisService.onEngage(AxisService.java:827) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478) at org.apache.axis2.description.AxisServiceGroup.onEngage(AxisServiceGroup.java:134) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:439) at org.apache.axis2.engine.AxisConfiguration.addServiceGroup(AxisConfiguration.java:380) at org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentEngine.java:602) at org.wso2.carbon.sts.STSDeploymentListener.createService(STSDeploymentListener.java:148) at org.wso2.carbon.sts.STSDeploymentListener.createdConfigurationContext(STSDeploymentListener.java:82) at org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:344) at org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:135) at org.wso2.carbon.core.services.util.CarbonAuthenticationUtil.onSuccessAdminLogin(CarbonAuthenticationUtil.java:131) at org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login(AuthenticationAdmin.java:118) 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.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82) at org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45) at org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) at org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.login(AuthenticationAdminStub.java:659) at org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient.login(AuthenticationAdminClient.java:64) at org.wso2.carbon.ui.DefaultCarbonAuthenticator.doAuthentication(DefaultCarbonAuthenticator.java:119) at org.wso2.carbon.ui.AbstractCarbonUIAuthenticator.handleSecurity(AbstractCarbonUIAuthenticator.java:218) at org.wso2.carbon.ui.BasicAuthUIAuthenticator.authenticate(BasicAuthUIAuthenticator.java:96) at
Re: [Dev] [Stripe ESB Connector] Getting 400 Bad Request Error
Hi Keerthika, I have tried your use-case and notice your request is going with a payload. However, your back-end is not expecting that. Therefore you need to drop your message body in the request mediation flow. In order to drop the message payload you need to perform two tasks in the wso2 ESB. Create empty payload using Payload mediator https://docs.wso2.com/display/ESB481/PayloadFactory+Mediator use the FORCE_POST_PUT_NOBODY https://docs.wso2.com/display/ESB481/HTTP+Transport+Properties#HTTPTransportProperties-FORCE_POST_PUT_NOBODYproperty to enforce. Example is given below that demonstrate the use case. api xmlns=http://ws.apache.org/ns/synapse; name=strip context=/strip resource methods=POST GET inSequence header name=Authorization scope=transport value=Bearer X/header property name=uri.var.chargeId expression=json-eval($.chargeId) scope=default type=STRING/property * payloadFactory media-type=json * *format/format * *args/args * * /payloadFactory* property name=ContentType value=application/x-www-form-urlencoded scope=axis2/property property name=messageType value=application/x-www-form-urlencoded scope=axis2/property * property name=FORCE_POST_PUT_NOBODY value=true scope=axis2 type=BOOLEAN/property* call endpoint address uri=https://api.stripe.com/v1/charges/{uri.var.chargeId}/refunds;/address /endpoint /call respond/respond /inSequence /resource /api On Thu, Dec 11, 2014 at 10:06 AM, Keerthika Mahendralingam keerth...@wso2.com wrote: Hi all, I am trying to send a post request to https://api.stripe.com/v1/charges/ https://www.google.com/url?q=https%3A%2F%2Fapi.stripe.com%2Fv1%2Fcharges%2Fsa=Dsntz=1usg=AFQjCNFej5mTQCtPacoinYr0qTl7-XDUeg {CHARGE_ID}/refunds. There are some optional parameters for this request. When I invoked the endpoint through esb with the optional parameters I am able to get the expected response. But if I invoked the endpoint without the optional parameters, an additional body is sent with the request. Please find the wire log for the both requests with optional parameters and mandatory parameter : *Wire log for the request with optional parameter:* [2014-12-11 09:35:54,151] DEBUG - wire POST /services/stripe_createANewRefund HTTP/1.1[\r][\n] [2014-12-11 09:35:54,151] DEBUG - wire Host: keerthikas-macbook-pro.local:8280[\r][\n] [2014-12-11 09:35:54,151] DEBUG - wire Connection: keep-alive[\r][\n] [2014-12-11 09:35:54,151] DEBUG - wire Content-Length: 61[\r][\n] [2014-12-11 09:35:54,151] DEBUG - wire Cache-Control: no-cache[\r][\n] [2014-12-11 09:35:54,151] DEBUG - wire Origin: chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n] [2014-12-11 09:35:54,151] DEBUG - wire User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36[\r][\n] [2014-12-11 09:35:54,152] DEBUG - wire Content-Type: application/json[\r][\n] [2014-12-11 09:35:54,152] DEBUG - wire Accept: */*[\r][\n] [2014-12-11 09:35:54,152] DEBUG - wire Accept-Encoding: gzip, deflate[\r][\n] [2014-12-11 09:35:54,152] DEBUG - wire Accept-Language: en-US,en;q=0.8[\r][\n] [2014-12-11 09:35:54,152] DEBUG - wire Cookie: SERVERID=djc19[\r][\n] [2014-12-11 09:35:54,152] DEBUG - wire [\r][\n] [2014-12-11 09:35:54,152] DEBUG - wire {[\n] [2014-12-11 09:35:54,152] DEBUG - wire chargeId:ch_158NuEDpl35Wu2ui6atArh0E,[\n] [2014-12-11 09:35:54,152] DEBUG - wireamount:50[\n] [2014-12-11 09:35:54,152] DEBUG - wire } [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4 POST /services/stripe_createANewRefund HTTP/1.1 [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4 Host: keerthikas-macbook-pro.local:8280 [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4 Connection: keep-alive [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4 Content-Length: 61 [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4 Cache-Control: no-cache [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4 Origin: chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4 Content-Type: application/json [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4 Accept: */* [2014-12-11 09:35:54,154] DEBUG - headers http-incoming-4 Accept-Encoding: gzip, deflate [2014-12-11 09:35:54,154] DEBUG - headers http-incoming-4 Accept-Language: en-US,en;q=0.8 [2014-12-11 09:35:54,154] DEBUG - headers http-incoming-4 Cookie: SERVERID=djc19 [2014-12-11 09:35:54,156] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON
[Dev] Deploy Web App to Tomcat issue
Hi, I am working on writing integration testing for ESB. Here I need to start a tomcat instance and deploy web app to tomcat dynamically.When I start and deploy the web app it gives following warning and application failed to deploy. Same war file getting deployed successfully in external tomcat Web Server. codes which have used to create tomcat instance and deploy webapp private final Tomcat tomcat = new Tomcat(); // Configure the standard host StandardHost stdHost = (StandardHost) tomcat.getHost(); stdHost.setAutoDeploy(true); stdHost.setDeployOnStartup(true); stdHost.setUnpackWARs(true); tomcat.setHost(stdHost); //deploy Service tomcat.addWebapp(tomcat.getHost(), *webAppUrl, webAppPath*); *tomcat.start();* INFO: No global web.xml found Dec 11, 2014 10:08:50 AM org.apache.catalina.core.ApplicationContext log INFO: Marking servlet jsp as unavailable Dec 11, 2014 10:08:50 AM org.apache.catalina.core.StandardContext loadOnStartup SEVERE: Servlet /service threw load() exception java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532) at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514) at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1137) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1081) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:695) I put the required jars to to the classpath but still getting the same issue.Can anyone help me to sort out this issue? Thanks. -- Vijitha Ekanayake Software Engineer*, *WSO2, Inc.; http://wso2.com/ Mobile : +94 777 24 73 39 | +94 718 74 44 08 lean.enterprise.middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Error when logging from a tenant
Hi Nuwan, Did as you mentioned, still same issue On Thu, Dec 11, 2014 at 9:55 AM, Nuwan Silva nuw...@wso2.com wrote: Got the similar issue when testing Chunk5 releases. check if the phase name=Transport/ is added in the OutFaultFlow axis2.xml. This resolved the issue. HTH Regards, NuwanS. On Thu, Dec 11, 2014 at 9:43 AM, Udara Liyanage ud...@wso2.com wrote: Hi, I encountered following error while logging from a tenant. Please note that this is not visible when logging from super tenant. [2014-12-11 09:35:38,793] INFO {org.apache.stratos.cloud.controller.deployers.CloudControllerDeployer} - Successfully deployed the cloud-controller XML file located at /home/udara/stratos/install/apache-stratos-default/repository/tenants/1/../../conf/cloud-controller.xml [2014-12-11 09:35:38,938] INFO {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} - Permission cache updated for tenant 1 [2014-12-11 09:35:38,953] ERROR {org.wso2.carbon.sts.STSDeploymentListener} - Error occur while deploying wso2carbon-sts service for tenant 1 org.apache.axis2.phaseresolver.PhaseException: Did not find the desired phase 'Transport' while deploying handler 'POXSecurityHandler'. at org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:75) at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToFlow(PhaseResolver.java:68) at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:104) at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:110) at org.apache.axis2.description.AxisOperation.onEngage(AxisOperation.java:152) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478) at org.apache.axis2.description.AxisService.onEngage(AxisService.java:827) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478) at org.apache.axis2.description.AxisServiceGroup.onEngage(AxisServiceGroup.java:134) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:439) at org.apache.axis2.engine.AxisConfiguration.addServiceGroup(AxisConfiguration.java:380) at org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentEngine.java:602) at org.wso2.carbon.sts.STSDeploymentListener.createService(STSDeploymentListener.java:148) at org.wso2.carbon.sts.STSDeploymentListener.createdConfigurationContext(STSDeploymentListener.java:82) at org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:344) at org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:135) at org.wso2.carbon.core.services.util.CarbonAuthenticationUtil.onSuccessAdminLogin(CarbonAuthenticationUtil.java:131) at org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login(AuthenticationAdmin.java:118) 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.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82) at org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45) at org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) at org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.login(AuthenticationAdminStub.java:659) at org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient.login(AuthenticationAdminClient.java:64) at org.wso2.carbon.ui.DefaultCarbonAuthenticator.doAuthentication(DefaultCarbonAuthenticator.java:119) at
[Dev] [Stripe ESB Connector] Getting 400 Bad Request Error
Hi all, I am trying to send a post request to https://api.stripe.com/v1/charges/ https://www.google.com/url?q=https%3A%2F%2Fapi.stripe.com%2Fv1%2Fcharges%2Fsa=Dsntz=1usg=AFQjCNFej5mTQCtPacoinYr0qTl7-XDUeg {CHARGE_ID}/refunds. There are some optional parameters for this request. When I invoked the endpoint through esb with the optional parameters I am able to get the expected response. But if I invoked the endpoint without the optional parameters, an additional body is sent with the request. Please find the wire log for the both requests with optional parameters and mandatory parameter : *Wire log for the request with optional parameter:* [2014-12-11 09:35:54,151] DEBUG - wire POST /services/stripe_createANewRefund HTTP/1.1[\r][\n] [2014-12-11 09:35:54,151] DEBUG - wire Host: keerthikas-macbook-pro.local:8280[\r][\n] [2014-12-11 09:35:54,151] DEBUG - wire Connection: keep-alive[\r][\n] [2014-12-11 09:35:54,151] DEBUG - wire Content-Length: 61[\r][\n] [2014-12-11 09:35:54,151] DEBUG - wire Cache-Control: no-cache[\r][\n] [2014-12-11 09:35:54,151] DEBUG - wire Origin: chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n] [2014-12-11 09:35:54,151] DEBUG - wire User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36[\r][\n] [2014-12-11 09:35:54,152] DEBUG - wire Content-Type: application/json[\r][\n] [2014-12-11 09:35:54,152] DEBUG - wire Accept: */*[\r][\n] [2014-12-11 09:35:54,152] DEBUG - wire Accept-Encoding: gzip, deflate[\r][\n] [2014-12-11 09:35:54,152] DEBUG - wire Accept-Language: en-US,en;q=0.8[\r][\n] [2014-12-11 09:35:54,152] DEBUG - wire Cookie: SERVERID=djc19[\r][\n] [2014-12-11 09:35:54,152] DEBUG - wire [\r][\n] [2014-12-11 09:35:54,152] DEBUG - wire {[\n] [2014-12-11 09:35:54,152] DEBUG - wire chargeId:ch_158NuEDpl35Wu2ui6atArh0E,[\n] [2014-12-11 09:35:54,152] DEBUG - wireamount:50[\n] [2014-12-11 09:35:54,152] DEBUG - wire } [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4 POST /services/stripe_createANewRefund HTTP/1.1 [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4 Host: keerthikas-macbook-pro.local:8280 [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4 Connection: keep-alive [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4 Content-Length: 61 [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4 Cache-Control: no-cache [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4 Origin: chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4 Content-Type: application/json [2014-12-11 09:35:54,153] DEBUG - headers http-incoming-4 Accept: */* [2014-12-11 09:35:54,154] DEBUG - headers http-incoming-4 Accept-Encoding: gzip, deflate [2014-12-11 09:35:54,154] DEBUG - headers http-incoming-4 Accept-Language: en-US,en;q=0.8 [2014-12-11 09:35:54,154] DEBUG - headers http-incoming-4 Cookie: SERVERID=djc19 [2014-12-11 09:35:54,156] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path $.refundApplicationFee. Returning empty result. Error invalid path [2014-12-11 09:35:54,156] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path $.reason. Returning empty result. Error invalid path [2014-12-11 09:35:54,157] ERROR - SynapseJsonPath #stringValueOf. Error evaluating JSON Path $.metadata. Returning empty result. Error invalid path [2014-12-11 09:35:55,264] DEBUG - headers http-outgoing-2 POST /v1/charges/ch_158NuEDpl35Wu2ui6atArh0E/refunds HTTP/1.1 [2014-12-11 09:35:55,264] DEBUG - headers http-outgoing-2 Accept-Language: en-US,en;q=0.8 [2014-12-11 09:35:55,264] DEBUG - headers http-outgoing-2 Cookie: SERVERID=djc19 [2014-12-11 09:35:55,264] DEBUG - headers http-outgoing-2 Authorization: Bearer sk_test_Gd3JGidPIzfPkMOC8ZGnPEdf [2014-12-11 09:35:55,264] DEBUG - headers http-outgoing-2 Accept-Encoding: gzip, deflate [2014-12-11 09:35:55,264] DEBUG - headers http-outgoing-2 Origin: chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm [2014-12-11 09:35:55,265] DEBUG - headers http-outgoing-2 Content-Type: application/x-www-form-urlencoded [2014-12-11 09:35:55,265] DEBUG - headers http-outgoing-2 Accept: */* [2014-12-11 09:35:55,265] DEBUG - headers http-outgoing-2 Cache-Control: no-cache [2014-12-11 09:35:55,265] DEBUG - headers http-outgoing-2 Transfer-Encoding: chunked [2014-12-11 09:35:55,265] DEBUG - headers http-outgoing-2 Host: api.stripe.com:80 [2014-12-11 09:35:55,265] DEBUG - headers http-outgoing-2 Connection: Keep-Alive [2014-12-11 09:35:55,265] DEBUG - headers http-outgoing-2 User-Agent: Synapse-PT-HttpComponents-NIO [2014-12-11 09:35:55,266] DEBUG - wire POST /v1/charges/ *ch_158NuEDpl35Wu2ui6atArh0E*/refunds HTTP/1.1[\r][\n]
Re: [Dev] Error when logging from a tenant
Since, this is tenant flow, you need to do the change in repository/conf/axis2/tenant-axis2.xml On Thu, Dec 11, 2014 at 10:23 AM, Udara Liyanage ud...@wso2.com wrote: Hi Nuwan, Did as you mentioned, still same issue On Thu, Dec 11, 2014 at 9:55 AM, Nuwan Silva nuw...@wso2.com wrote: Got the similar issue when testing Chunk5 releases. check if the phase name=Transport/ is added in the OutFaultFlow axis2.xml. This resolved the issue. HTH Regards, NuwanS. On Thu, Dec 11, 2014 at 9:43 AM, Udara Liyanage ud...@wso2.com wrote: Hi, I encountered following error while logging from a tenant. Please note that this is not visible when logging from super tenant. [2014-12-11 09:35:38,793] INFO {org.apache.stratos.cloud.controller.deployers.CloudControllerDeployer} - Successfully deployed the cloud-controller XML file located at /home/udara/stratos/install/apache-stratos-default/repository/tenants/1/../../conf/cloud-controller.xml [2014-12-11 09:35:38,938] INFO {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} - Permission cache updated for tenant 1 [2014-12-11 09:35:38,953] ERROR {org.wso2.carbon.sts.STSDeploymentListener} - Error occur while deploying wso2carbon-sts service for tenant 1 org.apache.axis2.phaseresolver.PhaseException: Did not find the desired phase 'Transport' while deploying handler 'POXSecurityHandler'. at org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:75) at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToFlow(PhaseResolver.java:68) at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:104) at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:110) at org.apache.axis2.description.AxisOperation.onEngage(AxisOperation.java:152) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478) at org.apache.axis2.description.AxisService.onEngage(AxisService.java:827) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478) at org.apache.axis2.description.AxisServiceGroup.onEngage(AxisServiceGroup.java:134) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:439) at org.apache.axis2.engine.AxisConfiguration.addServiceGroup(AxisConfiguration.java:380) at org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentEngine.java:602) at org.wso2.carbon.sts.STSDeploymentListener.createService(STSDeploymentListener.java:148) at org.wso2.carbon.sts.STSDeploymentListener.createdConfigurationContext(STSDeploymentListener.java:82) at org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:344) at org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:135) at org.wso2.carbon.core.services.util.CarbonAuthenticationUtil.onSuccessAdminLogin(CarbonAuthenticationUtil.java:131) at org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login(AuthenticationAdmin.java:118) 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.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82) at org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45) at org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) at org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.login(AuthenticationAdminStub.java:659) at org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient.login(AuthenticationAdminClient.java:64) at
Re: [Dev] Error when logging from a tenant
Hi Nirmal, Error disappeared when added to tenant-axis2.xml. However UI giving some errors HTTP method GET is not supported by this URL On Thu, Dec 11, 2014 at 10:27 AM, Nirmal Fernando nir...@wso2.com wrote: Since, this is tenant flow, you need to do the change in repository/conf/axis2/tenant-axis2.xml On Thu, Dec 11, 2014 at 10:23 AM, Udara Liyanage ud...@wso2.com wrote: Hi Nuwan, Did as you mentioned, still same issue On Thu, Dec 11, 2014 at 9:55 AM, Nuwan Silva nuw...@wso2.com wrote: Got the similar issue when testing Chunk5 releases. check if the phase name=Transport/ is added in the OutFaultFlow axis2.xml. This resolved the issue. HTH Regards, NuwanS. On Thu, Dec 11, 2014 at 9:43 AM, Udara Liyanage ud...@wso2.com wrote: Hi, I encountered following error while logging from a tenant. Please note that this is not visible when logging from super tenant. [2014-12-11 09:35:38,793] INFO {org.apache.stratos.cloud.controller.deployers.CloudControllerDeployer} - Successfully deployed the cloud-controller XML file located at /home/udara/stratos/install/apache-stratos-default/repository/tenants/1/../../conf/cloud-controller.xml [2014-12-11 09:35:38,938] INFO {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} - Permission cache updated for tenant 1 [2014-12-11 09:35:38,953] ERROR {org.wso2.carbon.sts.STSDeploymentListener} - Error occur while deploying wso2carbon-sts service for tenant 1 org.apache.axis2.phaseresolver.PhaseException: Did not find the desired phase 'Transport' while deploying handler 'POXSecurityHandler'. at org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:75) at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToFlow(PhaseResolver.java:68) at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:104) at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:110) at org.apache.axis2.description.AxisOperation.onEngage(AxisOperation.java:152) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478) at org.apache.axis2.description.AxisService.onEngage(AxisService.java:827) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478) at org.apache.axis2.description.AxisServiceGroup.onEngage(AxisServiceGroup.java:134) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:439) at org.apache.axis2.engine.AxisConfiguration.addServiceGroup(AxisConfiguration.java:380) at org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentEngine.java:602) at org.wso2.carbon.sts.STSDeploymentListener.createService(STSDeploymentListener.java:148) at org.wso2.carbon.sts.STSDeploymentListener.createdConfigurationContext(STSDeploymentListener.java:82) at org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:344) at org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:135) at org.wso2.carbon.core.services.util.CarbonAuthenticationUtil.onSuccessAdminLogin(CarbonAuthenticationUtil.java:131) at org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login(AuthenticationAdmin.java:118) 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.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169) at org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82) at org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45) at org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) at
Re: [Dev] Deploy Web App to Tomcat issue
Hi Vijitha, Can you make sure whether you have the servlet-api jar inside WEB-INF/lib or may be you are packaging the war adding this dependency in provided scope. Thanks, Malithi. On Thu, Dec 11, 2014 at 10:23 AM, Vijitha Ekanayake vijit...@wso2.com wrote: Hi, I am working on writing integration testing for ESB. Here I need to start a tomcat instance and deploy web app to tomcat dynamically.When I start and deploy the web app it gives following warning and application failed to deploy. Same war file getting deployed successfully in external tomcat Web Server. codes which have used to create tomcat instance and deploy webapp private final Tomcat tomcat = new Tomcat(); // Configure the standard host StandardHost stdHost = (StandardHost) tomcat.getHost(); stdHost.setAutoDeploy(true); stdHost.setDeployOnStartup(true); stdHost.setUnpackWARs(true); tomcat.setHost(stdHost); //deploy Service tomcat.addWebapp(tomcat.getHost(), *webAppUrl, webAppPath*); *tomcat.start();* INFO: No global web.xml found Dec 11, 2014 10:08:50 AM org.apache.catalina.core.ApplicationContext log INFO: Marking servlet jsp as unavailable Dec 11, 2014 10:08:50 AM org.apache.catalina.core.StandardContext loadOnStartup SEVERE: Servlet /service threw load() exception java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532) at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514) at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1137) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1081) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:695) I put the required jars to to the classpath but still getting the same issue.Can anyone help me to sort out this issue? Thanks. -- Vijitha Ekanayake Software Engineer*, *WSO2, Inc.; http://wso2.com/ Mobile : +94 777 24 73 39 | +94 718 74 44 08 lean.enterprise.middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Malithi Edirisinghe* Senior Software Engineer WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Request to commit the patch APPM-49
Hi, Please review and commit the diff attached with [1] [1] https://wso2.org/jira/browse/APPM-49 -- *Lahiru Cooray* Software Engineer WSO2, Inc.;http://wso2.com/ lean.enterprise.middleware Mobile: +94 715 654154 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [ESB] Registry based json requests fails to read the payload from thr registry when Media Type is application/json
I have created the following JIRA [1] since I found that ESB fails to read correctly the json request payload saved in the registry in Media-type application/json . [2] . [1] https://wso2.org/jira/browse/ESBJAVA-3459 [2] payloadFactory media-type=json format key=conf:/repository/esb/registry/jsonrequest.txt/ args/ /payloadFactory Regards -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Stripe ESB Connector] Getting 400 Bad Request Error
Thank you Vanji for your quick response. I tried your suggested method. But when I hardcoded the value for chageId and send the post request with the payload from the rest client the empty payload was removed and correct request was sent. But when I try to get the chargeId from the payload removes the message context also *property name=FORCE_POST_PUT_NOBODY value=true scope=axis2 type=BOOLEAN/* removes the message context also. Please find the wire log: [2014-12-11 11:01:03,568] DEBUG - wire POST /strip HTTP/1.1[\r][\n] [2014-12-11 11:01:03,568] DEBUG - wire Host: 10.100.5.169:8280[\r][\n] [2014-12-11 11:01:03,568] DEBUG - wire Connection: keep-alive[\r][\n] [2014-12-11 11:01:03,568] DEBUG - wire Content-Length: 44[\r][\n] [2014-12-11 11:01:03,568] DEBUG - wire Cache-Control: no-cache[\r][\n] [2014-12-11 11:01:03,568] DEBUG - wire Origin: chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n] [2014-12-11 11:01:03,568] DEBUG - wire User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36[\r][\n] [2014-12-11 11:01:03,568] DEBUG - wire Content-Type: application/json[\r][\n] [2014-12-11 11:01:03,568] DEBUG - wire Accept: */*[\r][\n] [2014-12-11 11:01:03,568] DEBUG - wire Accept-Encoding: gzip, deflate[\r][\n] [2014-12-11 11:01:03,569] DEBUG - wire Accept-Language: en-US,en;q=0.8[\r][\n] [2014-12-11 11:01:03,569] DEBUG - wire [\r][\n] [2014-12-11 11:01:03,569] DEBUG - wire {[\n] [2014-12-11 11:01:03,569] DEBUG - wire *chargeId:ch_158NuEDpl35Wu2ui6atArh0E*[\n] [2014-12-11 11:01:03,570] DEBUG - wire } [2014-12-11 11:01:03,571] DEBUG - headers http-incoming-2 POST /strip HTTP/1.1 [2014-12-11 11:01:03,571] DEBUG - headers http-incoming-2 Host: 10.100.5.169:8280 [2014-12-11 11:01:03,571] DEBUG - headers http-incoming-2 Connection: keep-alive [2014-12-11 11:01:03,571] DEBUG - headers http-incoming-2 Content-Length: 44 [2014-12-11 11:01:03,571] DEBUG - headers http-incoming-2 Cache-Control: no-cache [2014-12-11 11:01:03,571] DEBUG - headers http-incoming-2 Origin: chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm [2014-12-11 11:01:03,572] DEBUG - headers http-incoming-2 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 [2014-12-11 11:01:03,572] DEBUG - headers http-incoming-2 Content-Type: application/json [2014-12-11 11:01:03,572] DEBUG - headers http-incoming-2 Accept: */* [2014-12-11 11:01:03,572] DEBUG - headers http-incoming-2 Accept-Encoding: gzip, deflate [2014-12-11 11:01:03,572] DEBUG - headers http-incoming-2 Accept-Language: en-US,en;q=0.8 [2014-12-11 11:01:03,572] DEBUG - headers http-incoming-2 Cookie: MSG14178730176680.29427175505634384=true; MSG14178733498110.13085054063584778=true; MSG14178733599110.6219386089528006=true; MSG14178737859670.9529352123700151=true; MSG14178737969220.7098197557439472=true; MSG14178742229450.11304979617306088=true; MSG14178742459580.08636783896345823=true; MSG14178743775100.8277019213681849=true; MSG14178744009480.1176885444149115=true; MSG14178744961220.12665969302078872=true; MSG14178745125470.7059473583386973=true; MSG14178746301280.5421815401876321=true; MSG14178749920270.16922145677337863=true; MSG14178750099790.9279498346279079=true; MSG14178752074000.7968266996983095=true; MSG14178752284520.3200580037079722=true; MSG14178759605060.21670383101954604=true; MSG14178759719000.4556431273477163=true; MSG14178760965150.9435498284164892=true; MSG14178761060100.2838820086933652=true; MSG14179410733150.9565482556718199=true; MSG14179410950800.04846375334425135=true; MSG14179455481590.07412600774150879=true; MSG14179455562460.4402089613229584=true; MSG14179456372820.13647268855455874=true; MSG14179456467490.9615653270227574=true; MSG14179457888170.3561121989855156=true; MSG14179458087970.3274270139955=true; MSG14179458931480.43382225798195906=true; MSG14179459297600.020534603827859765=true; MSG14179459966390.6664658852131142=true; MSG14179460204050.14013169399751735=true; MSG14179489015150.06760873851129723=true; MSG14179489099060.5499165139086787=true; MSG14179491204370.12483201997664095=true; MSG14179491378060.04953538185644113=true; MSG14179495124730.1470145124103216=true; MSG14179495216360.5932151724208592=true; MSG14180160515350.3206177291762258=true; MSG14180160586290.21535470793461686=true; MSG14180180629350.34373419260761984=true; MSG14180180771320.43280719820494484=true; MSG14180183718290.7533101304562387=true; MSG14180183793000.3531918009854791=true; MSG14180187292670.3233565871754088=true; MSG14180187481570.19749683627420767=true; MSG14180188821080.7404282564701233=true; MSG14180188986720.5087172081446473=true; MSG14180195868500.9925920539609546=true; MSG14180196038340.36159794798652867=true; MSG14180196296280.7191546107618206=true; MSG14180200404930.846025712109372=true; MSG14180200498980.3576538787263849=true; MSG14180211287070.6981240320779332=true;
[Dev] App Manager latest build pack - 11-12-2014
Hi, Please find the $subject in [1]. [1]. http://builder1.us1.wso2.org/~appm/11-12-2014/ Regards, Dinusha. -- 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] Can we associate multiple assertion consumer URLs for a service provider ?
Hi, Requirement is, in App Manager, synapse gateway act as the assertion consumer URL. It's possible to expose gateway url from http and https at the same time which will give two access urls. So when we registering SP for this app, we need to associate both http and https urls as assertion consumer urls. Regards, Dinusha. -- 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
Re: [Dev] Deploy Web App to Tomcat issue
Hi Malithi, Thanks for the response. the servlet-api jar is already inside WEB-INF/lib. as you said i was packaging the war adding dependency in provided scope. i tried packaging the war removing dependency provided scope. but still having the same issue. On Thu, Dec 11, 2014 at 10:37 AM, Malithi Edirisinghe malit...@wso2.com wrote: Hi Vijitha, Can you make sure whether you have the servlet-api jar inside WEB-INF/lib or may be you are packaging the war adding this dependency in provided scope. Thanks, Malithi. On Thu, Dec 11, 2014 at 10:23 AM, Vijitha Ekanayake vijit...@wso2.com wrote: Hi, I am working on writing integration testing for ESB. Here I need to start a tomcat instance and deploy web app to tomcat dynamically.When I start and deploy the web app it gives following warning and application failed to deploy. Same war file getting deployed successfully in external tomcat Web Server. codes which have used to create tomcat instance and deploy webapp private final Tomcat tomcat = new Tomcat(); // Configure the standard host StandardHost stdHost = (StandardHost) tomcat.getHost(); stdHost.setAutoDeploy(true); stdHost.setDeployOnStartup(true); stdHost.setUnpackWARs(true); tomcat.setHost(stdHost); //deploy Service tomcat.addWebapp(tomcat.getHost(), *webAppUrl, webAppPath*); *tomcat.start();* INFO: No global web.xml found Dec 11, 2014 10:08:50 AM org.apache.catalina.core.ApplicationContext log INFO: Marking servlet jsp as unavailable Dec 11, 2014 10:08:50 AM org.apache.catalina.core.StandardContext loadOnStartup SEVERE: Servlet /service threw load() exception java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532) at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514) at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1137) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1081) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:695) I put the required jars to to the classpath but still getting the same issue.Can anyone help me to sort out this issue? Thanks. -- Vijitha Ekanayake Software Engineer*, *WSO2, Inc.; http://wso2.com/ Mobile : +94 777 24 73 39 | +94 718 74 44 08 lean.enterprise.middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Malithi Edirisinghe* Senior Software Engineer WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com -- Vijitha Ekanayake Software Engineer*, *WSO2, Inc.; http://wso2.com/ Mobile : +94 777 24 73 39 | +94 718 74 44 08 lean.enterprise.middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Deploy Web App to Tomcat issue
Hi Vijitha, Did you try this manually ? I mean deploy your web application to a tomcat manually. Thanks, Iqbal On Thu, Dec 11, 2014 at 1:13 PM, Vijitha Ekanayake vijit...@wso2.com wrote: Hi Malithi, Thanks for the response. the servlet-api jar is already inside WEB-INF/lib. as you said i was packaging the war adding dependency in provided scope. i tried packaging the war removing dependency provided scope. but still having the same issue. On Thu, Dec 11, 2014 at 10:37 AM, Malithi Edirisinghe malit...@wso2.com wrote: Hi Vijitha, Can you make sure whether you have the servlet-api jar inside WEB-INF/lib or may be you are packaging the war adding this dependency in provided scope. Thanks, Malithi. On Thu, Dec 11, 2014 at 10:23 AM, Vijitha Ekanayake vijit...@wso2.com wrote: Hi, I am working on writing integration testing for ESB. Here I need to start a tomcat instance and deploy web app to tomcat dynamically.When I start and deploy the web app it gives following warning and application failed to deploy. Same war file getting deployed successfully in external tomcat Web Server. codes which have used to create tomcat instance and deploy webapp private final Tomcat tomcat = new Tomcat(); // Configure the standard host StandardHost stdHost = (StandardHost) tomcat.getHost(); stdHost.setAutoDeploy(true); stdHost.setDeployOnStartup(true); stdHost.setUnpackWARs(true); tomcat.setHost(stdHost); //deploy Service tomcat.addWebapp(tomcat.getHost(), *webAppUrl, webAppPath*); *tomcat.start();* INFO: No global web.xml found Dec 11, 2014 10:08:50 AM org.apache.catalina.core.ApplicationContext log INFO: Marking servlet jsp as unavailable Dec 11, 2014 10:08:50 AM org.apache.catalina.core.StandardContext loadOnStartup SEVERE: Servlet /service threw load() exception java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532) at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514) at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1137) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1081) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:695) I put the required jars to to the classpath but still getting the same issue.Can anyone help me to sort out this issue? Thanks. -- Vijitha Ekanayake Software Engineer*, *WSO2, Inc.; http://wso2.com/ Mobile : +94 777 24 73 39 | +94 718 74 44 08 lean.enterprise.middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Malithi Edirisinghe* Senior Software Engineer WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com -- Vijitha Ekanayake Software Engineer*, *WSO2, Inc.; http://wso2.com/ Mobile : +94 777 24 73 39 | +94 718 74 44 08 lean.enterprise.middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Irham Iqbal Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 777888452 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev