Re: [Dev] [ESB] Error when running test cases

2015-02-11 Thread Jeewantha Dharmaparakrama
,

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

 On Tue, Feb 10, 2015 at 9:32 AM, Pasadi Munasinghe pasa...@wso2.com
 wrote:

 Hi,
 When I'm attempting to run the integration tests in product-esb using
 esb 4.9.0.-M7 pack, I'm getting the following error. This only occurs 
 while
 running test cases , otherwise it is getting build successfully. Can 
 anyone
 suggest a solution for this..?
 Stack Trace is as follows,

 Running TestSuite
 ERROR
 [org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener] -
 Execution error occurred in
 TestExecutionListener:-[Ljava.lang.StackTraceElement;@7aae3364
 org.apache.maven.surefire.util.SurefireReflectionException:
 java.lang.reflect.InvocationTargetException; nested exception is
 java.lang.reflect.InvocationTargetException: null
 java.lang.reflect.InvocationTargetException
 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.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
 at
 org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
 at
 org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
 at
 org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
 at
 org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
 Caused by: java.lang.RuntimeException: Error on initializing test
 environment
 at
 org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.handleException(TestExecutionListener.java:71)
 at
 org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:52)
 at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)
 at org.testng.TestNG.run(TestNG.java:983)
 at
 org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
 at
 org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
 at
 org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
 ... 9 more
 *Caused by: java.lang.ClassNotFoundException:
 org.wso2.esb.integration.common.extensions.axis2server.Axis2ServerExtension*
 at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:169)
 at
 org.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.initiate(TestNGExtensionExecutor.java:96)
 at
 org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:46)
 ... 14 more


 Thanks,
 --
 Pasadi Munasinghe
 Software Engineer Intern
 WSO2, Inc
 Mobile: +9471 377 5515

 ___
 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




 --
 *Malintha Adikari*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 Mobile: +94 71 2312958
 Blog:http://malinthas.blogspot.com
 Page:   http://about.me/malintha

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




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Clustering] DepSync not working in tenant mode

2015-02-05 Thread Jeewantha Dharmaparakrama
 list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --

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


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




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Clustering] DepSync not working in tenant mode

2015-02-05 Thread Jeewantha Dharmaparakrama
]  INFO - Axis2SynapseController Deploying the
 Synapse service...
 [2015-02-06 11:54:32,855]  INFO - Axis2SynapseController Deploying
 Proxy services...
 [2015-02-06 11:54:32,855]  INFO - Axis2SynapseController Deploying
 EventSources...
 [2015-02-06 11:54:32,857]  INFO - ServerManager Server ready for
 processing...
 [2015-02-06 11:54:32,872]  WARN - MediationStatisticsServiceComponent
 Couldn't find the mediation statistics store for tenant id: 1
 [2015-02-06 11:54:32,884]  INFO - TenantAxisUtils Loaded tenant
 maheeka.com in 6137 ms


 Thanks,

 Maheeka Jayasuriya
 Software Engineer
 Mobile : +9450661

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




 --

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


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




 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 778403757
 Blog: http://jeewanthad.blogspot.com/

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





-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Eror Setting up Deployment Synchronizer for Manager Node

2015-01-30 Thread Jeewantha Dharmaparakrama
Sure will do.

Thanks,
Jeewantha

On Fri, Jan 30, 2015 at 1:56 PM, Kasun Indrasiri ka...@wso2.com wrote:

 Hi Jeewantha,

 Seems like that the clustered deployment is not properly working in 4.9
 M4. Can you please check.

 On Fri, Jan 30, 2015 at 8:05 AM, Harsha Thirimanna hars...@wso2.com
 wrote:

 Hi,

 Can you try with putting [1] to dropin ?

 [1] http://dist.wso2.org/tools/svnkit-1.3.9.wso2v1.jar


 *Harsha Thirimanna*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com
 * http://www.apache.org/*
 *email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770  ,
 +94 *
 *774617784twitter: **http://twitter.com/
 http://twitter.com/afkham_azeez*
 *harshathirimannlinked-in: **http:
 http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
 http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122*

 *Lean . Enterprise . Middleware*


 On Thu, Jan 29, 2015 at 1:54 AM, Aruna Karunarathna ar...@wso2.com
 wrote:

 Hi Nirmal,


 On Thu, Jan 29, 2015 at 3:11 PM, Nirmal Fernando nir...@wso2.com
 wrote:

 SVN server has SSLv3 enabled? There was a bug in previous releases
 which is fixed by now AFAIK.


 Yesterday, for some testing, I did the same and connected to the intern
 svn without any issues.

 Regards,
 Aruna



 On Thu, Jan 29, 2015 at 2:49 PM, Maheeka Jayasuriya mahe...@wso2.com
 wrote:

 Hi,

 I am trying to setup an svn deployment synchronizer for ESB when
 creating a manager node. However when I enable the synchronizer, ESB does
 not start. I continuously get following warning message at [1].

 The configurations in carbon.xml is :

 DeploymentSynchronizer
 Enabledtrue/Enabled
 AutoCommittrue/AutoCommit
 AutoCheckouttrue/AutoCheckout
 RepositoryTypesvn/RepositoryType
 SvnUrl
 https://svn.wso2.com/wso2/interns/2013/maheeka/esb_svn//SvnUrl
 SvnUsermahe...@wso2.com/SvnUser
 SvnPassword***/SvnPassword
 SvnUrlAppendTenantIdtrue/SvnUrlAppendTenantId
 /DeploymentSynchronizer

 I am trying to connect to the intern svn repo. How do I get this
 working?

 [1]

 [2015-01-29 14:20:57,525]  INFO - PermissionUpdater Permission cache
 updated for tenant -1234
 [2015-01-29 14:21:57,506]  WARN - AppDeployerServiceComponent Waiting
 for required OSGi services:
 org.wso2.carbon.application.deployer.synapse.service.SynapseAppDeployerService,org.wso2.carbon.mediation.initializer.services.SynapseEnvironmentService,
 [2015-01-29 14:21:57,517]  WARN - StartupFinalizerServiceComponent
 Waiting for required OSGi services:
 org.wso2.carbon.application.deployer.service.CappDeploymentService,org.wso2.carbon.server.admin.common.IServerAdmin,org.wso2.carbon.throttling.agent.ThrottlingAgent,
 [2015-01-29 14:22:57,506]  WARN - AppDeployerServiceComponent Waiting
 for required OSGi services:
 org.wso2.carbon.application.deployer.synapse.service.SynapseAppDeployerService,org.wso2.carbon.mediation.initializer.services.SynapseEnvironmentService,
 [2015-01-29 14:22:57,517]  WARN - StartupFinalizerServiceComponent
 Waiting for required OSGi services:
 org.wso2.carbon.application.deployer.service.CappDeploymentService,org.wso2.carbon.server.admin.common.IServerAdmin,org.wso2.carbon.throttling.agent.ThrottlingAgent,
 [2015-01-29 14:23:57,507]  WARN - AppDeployerServiceComponent Waiting
 for required OSGi services:
 org.wso2.carbon.application.deployer.synapse.service.SynapseAppDeployerService,org.wso2.carbon.mediation.initializer.services.SynapseEnvironmentService,

 Thanks,

 Maheeka Jayasuriya
 Software Engineer
 Mobile : +9450661

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




 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/



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




 --

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


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



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




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Eror Setting up Deployment Synchronizer for Manager Node

2015-01-30 Thread Jeewantha Dharmaparakrama
Hi Maheeka,

I tested Dep synch functionality in ESB 4.9.0 M5 pack and it works fine. I
followed the same Clustering guide but with few modifications.

1: Used the exact IP address of my local machine instead of localhost in
clustering configs in both ESB nodes
2: In the Manager Node Members section looks like follows.

  members
member
hostName10.100.0.17/hostName
port4010/port
/member
/members
4010 is the Group management port configured in ELB.

In Worker node

members
member
hostName10.100.0.17/hostName
port4010/port
/member
member
hostName10.100.0.17/hostName
port4100/port
/member
/members

4100 is the LocalMemberPort in Manager node.

Thanks,
Jeewantha

On Fri, Jan 30, 2015 at 2:03 PM, Jeewantha Dharmaparakrama 
jeewan...@wso2.com wrote:

 Sure will do.

 Thanks,
 Jeewantha

 On Fri, Jan 30, 2015 at 1:56 PM, Kasun Indrasiri ka...@wso2.com wrote:

 Hi Jeewantha,

 Seems like that the clustered deployment is not properly working in 4.9
 M4. Can you please check.

 On Fri, Jan 30, 2015 at 8:05 AM, Harsha Thirimanna hars...@wso2.com
 wrote:

 Hi,

 Can you try with putting [1] to dropin ?

 [1] http://dist.wso2.org/tools/svnkit-1.3.9.wso2v1.jar


 *Harsha Thirimanna*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com
 * http://www.apache.org/*
 *email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770  ,
 +94 *
 *774617784twitter: **http://twitter.com/
 http://twitter.com/afkham_azeez*
 *harshathirimannlinked-in: **http:
 http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
 http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122*

 *Lean . Enterprise . Middleware*


 On Thu, Jan 29, 2015 at 1:54 AM, Aruna Karunarathna ar...@wso2.com
 wrote:

 Hi Nirmal,


 On Thu, Jan 29, 2015 at 3:11 PM, Nirmal Fernando nir...@wso2.com
 wrote:

 SVN server has SSLv3 enabled? There was a bug in previous releases
 which is fixed by now AFAIK.


 Yesterday, for some testing, I did the same and connected to the intern
 svn without any issues.

 Regards,
 Aruna



 On Thu, Jan 29, 2015 at 2:49 PM, Maheeka Jayasuriya mahe...@wso2.com
 wrote:

 Hi,

 I am trying to setup an svn deployment synchronizer for ESB when
 creating a manager node. However when I enable the synchronizer, ESB does
 not start. I continuously get following warning message at [1].

 The configurations in carbon.xml is :

 DeploymentSynchronizer
 Enabledtrue/Enabled
 AutoCommittrue/AutoCommit
 AutoCheckouttrue/AutoCheckout
 RepositoryTypesvn/RepositoryType
 SvnUrl
 https://svn.wso2.com/wso2/interns/2013/maheeka/esb_svn//SvnUrl
 SvnUsermahe...@wso2.com/SvnUser
 SvnPassword***/SvnPassword
 SvnUrlAppendTenantIdtrue/SvnUrlAppendTenantId
 /DeploymentSynchronizer

 I am trying to connect to the intern svn repo. How do I get this
 working?

 [1]

 [2015-01-29 14:20:57,525]  INFO - PermissionUpdater Permission cache
 updated for tenant -1234
 [2015-01-29 14:21:57,506]  WARN - AppDeployerServiceComponent Waiting
 for required OSGi services:
 org.wso2.carbon.application.deployer.synapse.service.SynapseAppDeployerService,org.wso2.carbon.mediation.initializer.services.SynapseEnvironmentService,
 [2015-01-29 14:21:57,517]  WARN - StartupFinalizerServiceComponent
 Waiting for required OSGi services:
 org.wso2.carbon.application.deployer.service.CappDeploymentService,org.wso2.carbon.server.admin.common.IServerAdmin,org.wso2.carbon.throttling.agent.ThrottlingAgent,
 [2015-01-29 14:22:57,506]  WARN - AppDeployerServiceComponent Waiting
 for required OSGi services:
 org.wso2.carbon.application.deployer.synapse.service.SynapseAppDeployerService,org.wso2.carbon.mediation.initializer.services.SynapseEnvironmentService,
 [2015-01-29 14:22:57,517]  WARN - StartupFinalizerServiceComponent
 Waiting for required OSGi services:
 org.wso2.carbon.application.deployer.service.CappDeploymentService,org.wso2.carbon.server.admin.common.IServerAdmin,org.wso2.carbon.throttling.agent.ThrottlingAgent,
 [2015-01-29 14:23:57,507]  WARN - AppDeployerServiceComponent Waiting
 for required OSGi services:
 org.wso2.carbon.application.deployer.synapse.service.SynapseAppDeployerService,org.wso2.carbon.mediation.initializer.services.SynapseEnvironmentService,

 Thanks,

 Maheeka Jayasuriya
 Software Engineer
 Mobile : +9450661

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




 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/



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




 --

 *Aruna Sujith Karunarathna* | Software Engineer

[Dev] ESB 4.9.0 M4 Released

2014-12-12 Thread Jeewantha Dharmaparakrama
Hi all,

Please download WSO2 ESB 4.9.0 M4 from this location [1]. The main purpose
of this release is to release a stable pack with the new version of
httpcore and httpcore-nio ( 4.3.3 ) and to improve overall integration test
coverage.

[1]
https://svn.wso2.org/repos/wso2/people/jeewantha/4.9.0_release/released/M4/wso2esb-4.9.0-SNAPSHOT.zip

Thanks,
Jeewantha

-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] What is the alternative for ServiceMetaData#isCAppArtifactSpecified()

2014-12-11 Thread Jeewantha Dharmaparakrama
Hi CarbonTeam,

Looks like the method is removed from the new carbon-deployment module [1].
What is the alternative for this ?

[1]
https://github.com/wso2/carbon-deployment/blob/master/components/service-mgt/axis2-service-mgt/org.wso2.carbon.service.mgt/src/main/java/org/wso2/carbon/service/mgt/ServiceMetaData.java

Thanks,
Jeewantha

-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What is the alternative for ServiceMetaData#isCAppArtifactSpecified()

2014-12-11 Thread Jeewantha Dharmaparakrama
On Thu, Dec 11, 2014 at 7:15 PM, Pubudu Dissanayake pubu...@wso2.com
wrote:

 Hi Jeewantha

 It is not removed, *isCAppArtifact* is a newly added property to
 service-mgt component. It will be available once it is merged to
 carbon-deployment repo [1]
 If you are referring to this ESB integration [2] please comment out until
 that pull request is merged

 [1] https://github.com/wso2-dev/carbon-deployment/pull/57
 [2] https://github.com/wso2-dev/product-esb/pull/95


Yeah that's what I was referring to. I have already commented out the lines
which cause the issue [1]. Please let me know once your change is merged.

[1] https://github.com/wso2-dev/product-esb/pull/116

Thanks,
Jeewantha


 On Thu, Dec 11, 2014 at 6:30 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi CarbonTeam,

 Looks like the method is removed from the new carbon-deployment module
 [1]. What is the alternative for this ?

 [1]
 https://github.com/wso2/carbon-deployment/blob/master/components/service-mgt/axis2-service-mgt/org.wso2.carbon.service.mgt/src/main/java/org/wso2/carbon/service/mgt/ServiceMetaData.java

 Thanks,
 Jeewantha

 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 778403757
 Blog: http://jeewanthad.blogspot.com/

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




 --
 *Pubudu Dissanayake*
  Software Engineer

 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Mob: + 94 775 503 304

 Blog: http://geekdetected.wordpress.com/
 Linkedin: *http://lk.linkedin.com/in/pubududissanayake*
 http://lk.linkedin.com/in/pubududissanayake
 Flickr : https://www.flickr.com/photos/pubudufx/
 Twitter: https://twitter.com/GeekInAction



-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Important] wss4j 1.5.11.wso2v7 bundle does not contain Dynamic Imports

2014-12-09 Thread Jeewantha Dharmaparakrama
@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 
 org.apache.rampart.util.RampartUtil.getPasswordCB(RampartUtil.java:144)
  at 
 org.apache.rampart.util.RampartUtil.getPasswordCB(RampartUtil.java:118)
  at 
 org.apache.rampart.builder.BindingBuilder.getSignatureBuilder(BindingBuilder.java:295)
  at 
 org.apache.rampart.builder.BindingBuilder.getSignatureBuilder(BindingBuilder.java:252)
  at 
 org.apache.rampart.builder.AsymmetricBindingBuilder.doSignature(AsymmetricBindingBuilder.java:762)
  at 
 org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBindingBuilder.java:419

Re: [Dev] [Important] wss4j 1.5.11.wso2v7 bundle does not contain Dynamic Imports

2014-12-09 Thread Jeewantha Dharmaparakrama
@ISTeam, please merge the change to wso2 repo as well to avoid product
build failures.

On Tue, Dec 9, 2014 at 6:33 PM, Pulasthi Mahawithana pulast...@wso2.com
wrote:

 Hi,
 wss4j was added to security-mgt feature with [1], please review and merge.

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


 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 
 org.apache.rampart.util.RampartUtil.getPasswordCB(RampartUtil.java:144

Re: [Dev] [Important] wss4j 1.5.11.wso2v7 bundle does not contain Dynamic Imports

2014-12-08 Thread Jeewantha Dharmaparakrama
@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
 javascript:_e(%7B%7D,'cvml','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
 javascript:_e(%7B%7D,'cvml','pulast...@wso2.com'); wrote:

 Hi Kishanthan,

 Will do.

 On Fri, Dec 5, 2014 at 12:22 PM, Kishanthan Thangarajah 
 kishant...@wso2.com
 javascript:_e(%7B%7D,'cvml','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
 javascript:_e(%7B%7D,'cvml','kishant...@wso2.com'); wrote:



 On Thu, Dec 4, 2014 at 9:50 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com
 javascript:_e(%7B%7D,'cvml','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
 javascript:_e(%7B%7D,'cvml','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
 javascript:_e(%7B%7D,'cvml','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 
 org.apache.rampart.util.RampartUtil.getPasswordCB(RampartUtil.java:144)
at 
 org.apache.rampart.util.RampartUtil.getPasswordCB(RampartUtil.java:118)
at 
 org.apache.rampart.builder.BindingBuilder.getSignatureBuilder(BindingBuilder.java:295)
at 
 org.apache.rampart.builder.BindingBuilder.getSignatureBuilder(BindingBuilder.java:252)
at 
 org.apache.rampart.builder.AsymmetricBindingBuilder.doSignature(AsymmetricBindingBuilder.java:762)
at 
 org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBindingBuilder.java:419)
at 
 org.apache.rampart.builder.AsymmetricBindingBuilder.build(AsymmetricBindingBuilder.java:90)
at 
 org.apache.rampart.MessageBuilder.build(MessageBuilder.java:147)
at 
 org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:65

Re: [Dev] Please merge ESB Sample Integration test commit#101

2014-12-08 Thread Jeewantha Dharmaparakrama
Merged

On Mon, Dec 8, 2014 at 6:40 PM, Nuwan Wimalasekara nuw...@wso2.com wrote:

 Hi ESB Team,
 Please merge the pull request
 https://github.com/wso2-dev/product-esb/pull/101

 Thanks,
 Nuwanw

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

 phone: +94 71 668 4620






-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Disabled Test Packages in ESB 4.9.0-SNAPSHOT Integration

2014-12-08 Thread Jeewantha Dharmaparakrama
On Tue, Dec 9, 2014 at 12:46 PM, Krishantha Samaraweera krishan...@wso2.com
 wrote:

 Hi ESB Team,

 Following test packages are disabled in ESB integration tests. What is the
 reason for disabling tests ?

This was because of the test failures due to carbon changes. We are working
on to fix them ATM.

Jeewantha


 Don't we need to introduce set of new security tests due to QoS changes.

 *tests-mediator-1 *
 package name=org.wso2.carbon.esb.mediator.test.aggregate/
 package name=org.wso2.carbon.esb.mediator.test.cache/
 package name=org.wso2.carbon.esb.mediator.test.callTemplate/
 package name=org.wso2.carbon.esb.mediator.test.call/
 package name=org.wso2.carbon.esb.mediator.test.clone/
 package name=org.wso2.carbon.esb.mediator.test.fault/
 package name=org.wso2.carbon.esb.mediator.test.rule/

 *tests-mediator-2*
 package name=org.wso2.carbon.esb.mediator.test.send/
 package name=org.wso2.carbon.esb.message.processor.test/
 package name=org.wso2.carbon.esb.message.processor.test.forwarding/

 *tests-service*
 package name=org.wso2.carbon.esb.proxyservice.test.secureProxy/
 package name=org.wso2.carbon.esb.rest.test.security/
 package name=org.wso2.carbon.esb.car.deployment.test/

 Thanks,
 Krishantha.

 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Important] wss4j 1.5.11.wso2v7 bundle does not contain Dynamic Imports

2014-12-08 Thread Jeewantha Dharmaparakrama
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 
 org.apache.rampart.util.RampartUtil.getPasswordCB(RampartUtil.java:144)
   at 
 org.apache.rampart.util.RampartUtil.getPasswordCB(RampartUtil.java:118)
   at 
 org.apache.rampart.builder.BindingBuilder.getSignatureBuilder(BindingBuilder.java:295)
   at 
 org.apache.rampart.builder.BindingBuilder.getSignatureBuilder(BindingBuilder.java:252)
   at 
 org.apache.rampart.builder.AsymmetricBindingBuilder.doSignature(AsymmetricBindingBuilder.java:762)
   at 
 org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBindingBuilder.java:419)
   at 
 org.apache.rampart.builder.AsymmetricBindingBuilder.build(AsymmetricBindingBuilder.java:90)
   at 
 org.apache.rampart.MessageBuilder.build(MessageBuilder.java:147)
   at 
 org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:65)
   ... 9 more

[Dev] [Important] wss4j 1.5.11.wso2v7 bundle does not contain Dynamic Imports

2014-12-04 Thread Jeewantha Dharmaparakrama
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 
org.apache.rampart.util.RampartUtil.getPasswordCB(RampartUtil.java:144)
at 
org.apache.rampart.util.RampartUtil.getPasswordCB(RampartUtil.java:118)
at 
org.apache.rampart.builder.BindingBuilder.getSignatureBuilder(BindingBuilder.java:295)
at 
org.apache.rampart.builder.BindingBuilder.getSignatureBuilder(BindingBuilder.java:252)
at 
org.apache.rampart.builder.AsymmetricBindingBuilder.doSignature(AsymmetricBindingBuilder.java:762)
at 
org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBindingBuilder.java:419)
at 
org.apache.rampart.builder.AsymmetricBindingBuilder.build(AsymmetricBindingBuilder.java:90)
at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:147)
at 
org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:65)
... 9 more
Caused by: java.lang.ClassNotFoundException: samples.userguide.PWCallback
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at org.apache.ws.security.util.Loader.loadClass(Loader.java:243)
at org.apache.ws.security.util.Loader.loadClass(Loader.java:161)
at 
org.apache.rampart.util.RampartUtil.getPasswordCB(RampartUtil.java:142)
... 17 more

Thanks,
Jeewantha

-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Important] wss4j 1.5.11.wso2v7 bundle does not contain Dynamic Imports

2014-12-04 Thread Jeewantha Dharmaparakrama
I have already tested with adding Dynamic Imports to the bundle and
everything works as expected. We will need to release the bundle again.

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 
 org.apache.rampart.util.RampartUtil.getPasswordCB(RampartUtil.java:144)
  at 
 org.apache.rampart.util.RampartUtil.getPasswordCB(RampartUtil.java:118)
  at 
 org.apache.rampart.builder.BindingBuilder.getSignatureBuilder(BindingBuilder.java:295)
  at 
 org.apache.rampart.builder.BindingBuilder.getSignatureBuilder(BindingBuilder.java:252)
  at 
 org.apache.rampart.builder.AsymmetricBindingBuilder.doSignature(AsymmetricBindingBuilder.java:762)
  at 
 org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBindingBuilder.java:419)
  at 
 org.apache.rampart.builder.AsymmetricBindingBuilder.build(AsymmetricBindingBuilder.java:90)
  at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:147)
  at 
 org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:65)
  ... 9 more
 Caused by: java.lang.ClassNotFoundException: samples.userguide.PWCallback
  at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:190)
  at org.apache.ws.security.util.Loader.loadClass(Loader.java:243)
  at org.apache.ws.security.util.Loader.loadClass(Loader.java:161)
  at 
 org.apache.rampart.util.RampartUtil.getPasswordCB(RampartUtil.java:142)
  ... 17 more

 Thanks,
 Jeewantha

 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 778403757
 Blog: http://jeewanthad.blogspot.com/




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




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http

Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.3.0 RC1

2014-12-04 Thread Jeewantha Dharmaparakrama
-1 for this RC :(. WSS4J is released without Dynamic Imports hence it fails
when trying to load custom Password Callback Handlers. Please see thread
@Dev [Important] wss4j 1.5.11.wso2v7 bundle does not contain Dynamic
Imports

Thanks,
Jeewantha

On Tue, Dec 2, 2014 at 11:47 AM, Sameera Jayasoma same...@wso2.com wrote:

 Forwarding to eng-group list.

 Team, please do a smoke test once the AS and ESB packs are available on
 this Kernel RC. Areas to test are specified in the following document. You
 can create new columns for RC packs. Once the testing is done, please reply
 to the mail in the dev list.


 https://docs.google.com/a/wso2.com/spreadsheets/d/13Eut3_Pj_CaqsbXqS3eqNDIj7BHHI0D_k2raM5Wmc48/edit#gid=0

 Thanks,
 Sameera.


 -- Forwarded message --
 From: Kishanthan Thangarajah kishant...@wso2.com
 Date: Tue, Dec 2, 2014 at 2:01 AM
 Subject: [VOTE] Release WSO2 Carbon Kernel 4.3.0 RC1
 To: dev dev@wso2.org
 Cc: Gayashan Amarasinghe gayas...@wso2.com, Aruna Karunarathna 
 ar...@wso2.com, Manoj Kumara ma...@wso2.com, Nipuni Perera 
 nip...@wso2.com, Jayanga Dissanayake jaya...@wso2.com, Kalpa
 Welivitigoda kal...@wso2.com, Supun Malinga sup...@wso2.com, Pubudu
 Dissanayake pubu...@wso2.com, Niranjan Karunanandham niran...@wso2.com,
 KasunG Gajasinghe kas...@wso2.com, Shashika Karunatilaka 
 shashi...@wso2.com, Sameera Jayasoma same...@wso2.com, Sameera Perera 
 samee...@wso2.com


 Hi Devs,

 This is the *1st* release candidate of WSO2 Carbon Kernel 4.3.0.

 This release fixes the following issues:
 https://wso2.org/jira/browse/CARBON-15098?filter=12088

 Please download, test and vote.

 *Source  binary distribution files:*

 http://maven.wso2.org/nexus/content/repositories/staging/org/wso2/carbon/wso2carbon/4.3.0/

 *Maven staging repository:*
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-033/

 *The tag to be voted upon :*
 https://github.com/wso2/carbon4-kernel/releases/tag/4.3.0-RC1


 [ ] Broken - do not release (explain why)
 [ ] Stable - go ahead and release

 Thanks,
 Carbon Team.

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



 --
 Sameera Jayasoma,
 Software Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://sameera.adahas.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware

  --
 You received this message because you are subscribed to the Google Groups
 WSO2 Engineering Group group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to engineering-group+unsubscr...@wso2.com.
 For more options, visit https://groups.google.com/a/wso2.com/d/optout.




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please merge pull request to ESB - Property Integration Tests

2014-12-01 Thread Jeewantha Dharmaparakrama
Merged.

Thanks,
Jeewantha

On Fri, Nov 28, 2014 at 9:44 AM, Kasun Indrasiri ka...@wso2.com wrote:

 We are in the process of stabilizing 4.9 M4 with httpcore version upgrade.
 We'll process the PR along with that.

 On Thu, Nov 27, 2014 at 1:47 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 This pull request is still pending. Can someone from ESB team apply it.

 Thanks,
 Krishantha.

 On Thu, Nov 13, 2014 at 7:01 PM, Dimuthu De Lanerolle dimut...@wso2.com
 wrote:

 Hi ESB Team,

 Please merge the pull request [1] to ESB which adds property Integration
 Tests and other related changes.

 [1] https://github.com/wso2-dev/product-esb/pull/78

 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




 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to configure forwarding message processor to execute a sequence upon retry - ESB

2014-11-25 Thread Jeewantha Dharmaparakrama
You should be able to define a REST API in the ESB and use the URL of the
API as the target endpoint. The sequence can be defined in the API.


On Tue, Nov 25, 2014 at 1:16 PM, Kavith Lokuhewage kav...@wso2.com wrote:

 Hi,

 I'm trying to implement  guaranteed delivery with ActiveMQ - ESB 4.8. I am
 following sample available at [1].
 In the sample, forwarding message processor forwards the msg to endpoint
 defined in target.endpoint property upon retry.
 In my scenario, I want to forward the message to a sequence. How can I
 achieve this?

 Thanks.

 [1] https://docs.wso2.com/display/IntegrationPatterns/Guaranteed+Delivery

 --
 *Kavith Lokuhewage*
 Software Engineer
 WSO2 Inc. - http://wso2.com
 lean . enterprise . middleware
 Mobile - +9477-9-145-123 | +9471-455-6-401
 Linkedin http://www.linkedin.com/pub/kavith-lokuhewage/49/473/419
 Twitter https://twitter.com/KavithThiranga

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




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error bulding ES: 'package org.apache.ws.security [1.5.11.wso2v7-SNAPSHOT, 2.0.0)' not found

2014-11-25 Thread Jeewantha Dharmaparakrama
Thanks Sameera. Can you merge it to wso2 repo please ? We are getting the
following build error when building the ESB.

Installation failed.
Cannot complete the install because one or more required items could
not be found.
 Software being installed: Reliable Messaging Feature 4.3.0.SNAPSHOT
(org.wso2.carbon.rm.feature.group 4.3.0.SNAPSHOT)
 Missing requirement: WSO2 Carbon - Reliable Messaging BE
4.3.0.SNAPSHOT (org.wso2.carbon.rm 4.3.0.SNAPSHOT) requires 'package
org.apache.ws.security [1.5.11.wso2v7-SNAPSHOT,2.0.0)' but it could
not be found
 Cannot satisfy dependency:
  From: Reliable Messaging Feature 4.3.0.SNAPSHOT
(org.wso2.carbon.rm.feature.group 4.3.0.SNAPSHOT)
  To: org.wso2.carbon.rm.server.feature.group [4.3.0.SNAPSHOT]
 Cannot satisfy dependency:
  From: Reliable Messaging Core Feature 4.3.0.SNAPSHOT
(org.wso2.carbon.rm.server.feature.group 4.3.0.SNAPSHOT)
  To: org.wso2.carbon.rm [4.3.0.SNAPSHOT]
Application failed, log file location:
/build/jenkins-home/workspace/product-esb/.repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1416907694390.log

Thanks,
Jeewantha

On Tue, Nov 25, 2014 at 2:45 PM, Sameera Jayasoma same...@wso2.com wrote:

 Done. Please check,

 Thanks,
 Sameera.

 On Tue, Nov 25, 2014 at 2:33 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Carbon Team,

 We are blocked with the ESB 4.9.0 M4 due to the above.

 Please merge and add to wso2 reop.

 Thank you.

 Best Regards,
 Malaka

 On Mon, Nov 24, 2014 at 4:23 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 I've created the pull request for carbon-qos. Someone who has commit
 rights please merge.
 https://github.com/wso2-dev/carbon-qos/pull/3

 On Fri, Nov 21, 2014 at 7:42 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Carbon-qos module has the wrong dependency [1]. Please fix.

 [1] https://github.com/wso2-dev/carbon-qos/blob/master/pom.xml

 On Fri, Nov 21, 2014 at 2:38 PM, Sameera Perera samee...@wso2.com
 wrote:

 Thanks Nipuni and Nuwan.
 I'll try that.

 On Fri, Nov 21, 2014 at 2:34 PM, Nuwan Wimalasekara nuw...@wso2.com
 wrote:

 Hi Sameera,
 IS team has updated the dependency to wso2-wss4j-1.5.11-wso2v7. But
 It take some time to get deployed into online repos. For the moment you 
 can
 get rid of this issue by building the carbon-identity[1].

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

 Thanks,
 Nuwanw

 On Fri, Nov 21, 2014 at 2:17 PM, Nipuni Perera nip...@wso2.com
 wrote:

 Hi,

 This is as we have released wso2-wss4j-1.5.11-wso2v7 yesterday and
 project dependencies should update current SNAPSHOT versions to
 released versions 1.5.11-wso2v7 to avoid above failures.

 Thanks,
 Nipuni

 On Fri, Nov 21, 2014 at 1:42 PM, Sameera Perera samee...@wso2.com
 wrote:

 Thanks Nipuni.

 On Fri, Nov 21, 2014 at 1:40 PM, Nipuni Perera nip...@wso2.com
 wrote:

 Hi,

 It seems this is the same issue reported earlier with subject 
 Missing wso2.carbon,security.mgt.featur SNAPSHOT and the issue is 
 due to
 wss4j not deployed to nexus yet with the new release.

 Thanks,
 Nipuni

 On Fri, Nov 21, 2014 at 1:25 PM, Sameera Perera samee...@wso2.com
  wrote:

 Hi all,

 I'm getting the following error while building ES. Can someone
 from IS look in to this?

 Software being installed: Identity Core Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.identity.core.feature.group 4.3.0.SNAPSHOT)
  Missing requirement: org.wso2.carbon.security.mgt 4.3.0.SNAPSHOT
 (org.wso2.carbon.security.mgt 4.3.0.SNAPSHOT) requires 'package
 org.apache.ws.security [1.5.11.wso2v7-SNAPSHOT,2.0.0)' but it could 
 not be
 found
  Cannot satisfy dependency:
   From: Identity Core Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.identity.core.feature.group 4.3.0.SNAPSHOT)
   To: org.wso2.carbon.identity.core.server.feature.group
 [4.3.0.SNAPSHOT]
  Cannot satisfy dependency:
   From: Identity Core Server Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.identity.core.server.feature.group 4.3.0.SNAPSHOT)
   To: org.wso2.carbon.security.mgt.server.feature.group
 [4.3.0.SNAPSHOT,4.4.0)
  Cannot satisfy dependency:
   From: WSO2 Carbon - Security Management Core Feature
 4.3.0.SNAPSHOT (org.wso2.carbon.security.mgt.server.feature.group
 4.3.0.SNAPSHOT)
   To: org.wso2.carbon.security.mgt [4.3.0.SNAPSHOT]
 Application failed, log file location:
 E:\Users\Sameera\.m2\repository\org\eclipse\tycho\tycho-p2-runtime\0.13.0\eclipse\configuration\1416552970918.log

 --

 --

 *Sameera Perera*
 Director of Engineering
 gtalk: samee...@wso2.com
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 *WSO2, Inc.* http://wso2.com/
 lean.enterprise.middleware



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




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




 --

 --

 *Sameera Perera*
 Director

Re: [Dev] Is Ntask core broken ?

2014-11-24 Thread Jeewantha Dharmaparakrama
Hi Anjana,

On Fri, Nov 21, 2014 at 9:18 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Jeewantha,

 On Fri, Nov 21, 2014 at 9:00 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:



 On Fri, Nov 21, 2014 at 8:57 PM, Anjana Fernando anj...@wso2.com wrote:

 [my earlier mail send failed, not sure it actually went through or not,
 so re-sending]

 On Fri, Nov 21, 2014 at 8:34 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Chanakas change was for mediation-ntask component and that change is
 already there in the pack. Everything works when ntask-core jar is replaced
 with what was released in M3. Obviously ntask-core jar which gets packed in
 M4 has the issue. Could it be due to the latest changes done on ntask-core 
 ?


 Oh Yeah, I see, yeah, then something in ntask should be wrong. And I
 just remembered, we have recently done a change that came from Kernel, for
 the startup handler, maybe that is not working as expected after the
 change. Is the issue happening, when restarting the server after some tasks
 are scheduled?, or does the problem also there when you just schedule a new
 task when the server is running? ..

 its when scheduling a new task.


 I see, that's a bit strange, maybe the server startup flag is indirectly
 affecting the server scheduling in the runtime also, can you please debug
 [1], and see if the ESB is calling that observer, specifically calling
 completingServerStartup method in that. This most probably have to be the
 problem, because we have rest of the identical ntask code in the Turing
 branch now for other releases, and they are working properly, but with the
 old startup handler.

 The method completingServerStartup is never called when ESB starts up.
Where do you think the issue is ? Kernal ?

Thanks,
Jeewantha


 [1]
 https://github.com/wso2-dev/carbon-utils/blob/master/components/ntask/org.wso2.carbon.ntask.core/src/main/java/org/wso2/carbon/ntask/core/TaskStartupHandler.java

 Cheers,
 Anjana.



 Thanks,
 Jeewantha


 Anyways, @Chanika, can you please check this out. Verify the new usage
 of ServerStartupObserver in ntask.

 Cheers,
 Anjana.





 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 778403757
 Blog: http://jeewanthad.blogspot.com/




 --
 *Anjana Fernando*
 Senior Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware




 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 778403757
 Blog: http://jeewanthad.blogspot.com/




 --
 *Anjana Fernando*
 Senior Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Is Ntask core broken ?

2014-11-24 Thread Jeewantha Dharmaparakrama
On Mon, Nov 24, 2014 at 2:50 PM, Chanika Geeganage chan...@wso2.com wrote:

 I tested DSS task with both methods in the startup handler, but the issue
 reported in [1] was fixed when the
 this.getTaskService().serverInitialized() is called in
 completingServerStartup method.

For ESB completedServerStartup() is called but completingServerStartup() is
never called. When *this.getTaskService().serverInitialized() *is called
inside completedServerStartup() our synapse Task runs without issues. What
is the solution for this ?


 On Mon, Nov 24, 2014 at 2:21 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Anjana,

 On Fri, Nov 21, 2014 at 9:18 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Jeewantha,

 On Fri, Nov 21, 2014 at 9:00 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:



 On Fri, Nov 21, 2014 at 8:57 PM, Anjana Fernando anj...@wso2.com
 wrote:

 [my earlier mail send failed, not sure it actually went through or
 not, so re-sending]

 On Fri, Nov 21, 2014 at 8:34 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Chanakas change was for mediation-ntask component and that change is
 already there in the pack. Everything works when ntask-core jar is 
 replaced
 with what was released in M3. Obviously ntask-core jar which gets packed 
 in
 M4 has the issue. Could it be due to the latest changes done on 
 ntask-core ?


 Oh Yeah, I see, yeah, then something in ntask should be wrong. And I
 just remembered, we have recently done a change that came from Kernel, for
 the startup handler, maybe that is not working as expected after the
 change. Is the issue happening, when restarting the server after some 
 tasks
 are scheduled?, or does the problem also there when you just schedule a 
 new
 task when the server is running? ..

 its when scheduling a new task.


 I see, that's a bit strange, maybe the server startup flag is indirectly
 affecting the server scheduling in the runtime also, can you please debug
 [1], and see if the ESB is calling that observer, specifically calling
 completingServerStartup method in that. This most probably have to be the
 problem, because we have rest of the identical ntask code in the Turing
 branch now for other releases, and they are working properly, but with the
 old startup handler.

  The method completingServerStartup is never called when ESB starts up.
 Where do you think the issue is ? Kernal ?

 Thanks,
 Jeewantha


 [1]
 https://github.com/wso2-dev/carbon-utils/blob/master/components/ntask/org.wso2.carbon.ntask.core/src/main/java/org/wso2/carbon/ntask/core/TaskStartupHandler.java

 Cheers,
 Anjana.



 Thanks,
 Jeewantha


 Anyways, @Chanika, can you please check this out. Verify the new usage
 of ServerStartupObserver in ntask.

 Cheers,
 Anjana.





 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 778403757
 Blog: http://jeewanthad.blogspot.com/




 --
 *Anjana Fernando*
 Senior Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware




 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 778403757
 Blog: http://jeewanthad.blogspot.com/




 --
 *Anjana Fernando*
 Senior Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware




 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 778403757
 Blog: http://jeewanthad.blogspot.com/




 --
 Best Regards..

 Chanika Geeganage
 Software Engineer
 Mobile : +94773522586
 WSO2, Inc.; http://wso2.com




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error bulding ES: 'package org.apache.ws.security [1.5.11.wso2v7-SNAPSHOT, 2.0.0)' not found

2014-11-24 Thread Jeewantha Dharmaparakrama
I've created the pull request for carbon-qos. Someone who has commit rights
please merge.
https://github.com/wso2-dev/carbon-qos/pull/3

On Fri, Nov 21, 2014 at 7:42 PM, Jeewantha Dharmaparakrama 
jeewan...@wso2.com wrote:

 Carbon-qos module has the wrong dependency [1]. Please fix.

 [1] https://github.com/wso2-dev/carbon-qos/blob/master/pom.xml

 On Fri, Nov 21, 2014 at 2:38 PM, Sameera Perera samee...@wso2.com wrote:

 Thanks Nipuni and Nuwan.
 I'll try that.

 On Fri, Nov 21, 2014 at 2:34 PM, Nuwan Wimalasekara nuw...@wso2.com
 wrote:

 Hi Sameera,
 IS team has updated the dependency to wso2-wss4j-1.5.11-wso2v7. But It
 take some time to get deployed into online repos. For the moment you can
 get rid of this issue by building the carbon-identity[1].

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

 Thanks,
 Nuwanw

 On Fri, Nov 21, 2014 at 2:17 PM, Nipuni Perera nip...@wso2.com wrote:

 Hi,

 This is as we have released wso2-wss4j-1.5.11-wso2v7 yesterday and
 project dependencies should update current SNAPSHOT versions to
 released versions 1.5.11-wso2v7 to avoid above failures.

 Thanks,
 Nipuni

 On Fri, Nov 21, 2014 at 1:42 PM, Sameera Perera samee...@wso2.com
 wrote:

 Thanks Nipuni.

 On Fri, Nov 21, 2014 at 1:40 PM, Nipuni Perera nip...@wso2.com
 wrote:

 Hi,

 It seems this is the same issue reported earlier with subject 
 Missing wso2.carbon,security.mgt.featur SNAPSHOT and the issue is due to
 wss4j not deployed to nexus yet with the new release.

 Thanks,
 Nipuni

 On Fri, Nov 21, 2014 at 1:25 PM, Sameera Perera samee...@wso2.com
 wrote:

 Hi all,

 I'm getting the following error while building ES. Can someone from
 IS look in to this?

 Software being installed: Identity Core Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.identity.core.feature.group 4.3.0.SNAPSHOT)
  Missing requirement: org.wso2.carbon.security.mgt 4.3.0.SNAPSHOT
 (org.wso2.carbon.security.mgt 4.3.0.SNAPSHOT) requires 'package
 org.apache.ws.security [1.5.11.wso2v7-SNAPSHOT,2.0.0)' but it could not 
 be
 found
  Cannot satisfy dependency:
   From: Identity Core Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.identity.core.feature.group 4.3.0.SNAPSHOT)
   To: org.wso2.carbon.identity.core.server.feature.group
 [4.3.0.SNAPSHOT]
  Cannot satisfy dependency:
   From: Identity Core Server Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.identity.core.server.feature.group 4.3.0.SNAPSHOT)
   To: org.wso2.carbon.security.mgt.server.feature.group
 [4.3.0.SNAPSHOT,4.4.0)
  Cannot satisfy dependency:
   From: WSO2 Carbon - Security Management Core Feature
 4.3.0.SNAPSHOT (org.wso2.carbon.security.mgt.server.feature.group
 4.3.0.SNAPSHOT)
   To: org.wso2.carbon.security.mgt [4.3.0.SNAPSHOT]
 Application failed, log file location:
 E:\Users\Sameera\.m2\repository\org\eclipse\tycho\tycho-p2-runtime\0.13.0\eclipse\configuration\1416552970918.log

 --

 --

 *Sameera Perera*
 Director of Engineering
 gtalk: samee...@wso2.com
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 *WSO2, Inc.* http://wso2.com/
 lean.enterprise.middleware



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




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




 --

 --

 *Sameera Perera*
 Director of Engineering
 gtalk: samee...@wso2.com
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 *WSO2, Inc.* http://wso2.com/
 lean.enterprise.middleware





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


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




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

 phone: +94 71 668 4620






 --

 --

 *Sameera Perera*
 Director of Engineering
 gtalk: samee...@wso2.com
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 *WSO2, Inc.* http://wso2.com/
 lean.enterprise.middleware



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




 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 778403757
 Blog: http://jeewanthad.blogspot.com/




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error bulding ES: 'package org.apache.ws.security [1.5.11.wso2v7-SNAPSHOT, 2.0.0)' not found

2014-11-21 Thread Jeewantha Dharmaparakrama
Carbon-qos module has the wrong dependency [1]. Please fix.

[1] https://github.com/wso2-dev/carbon-qos/blob/master/pom.xml

On Fri, Nov 21, 2014 at 2:38 PM, Sameera Perera samee...@wso2.com wrote:

 Thanks Nipuni and Nuwan.
 I'll try that.

 On Fri, Nov 21, 2014 at 2:34 PM, Nuwan Wimalasekara nuw...@wso2.com
 wrote:

 Hi Sameera,
 IS team has updated the dependency to wso2-wss4j-1.5.11-wso2v7. But It
 take some time to get deployed into online repos. For the moment you can
 get rid of this issue by building the carbon-identity[1].

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

 Thanks,
 Nuwanw

 On Fri, Nov 21, 2014 at 2:17 PM, Nipuni Perera nip...@wso2.com wrote:

 Hi,

 This is as we have released wso2-wss4j-1.5.11-wso2v7 yesterday and
 project dependencies should update current SNAPSHOT versions to
 released versions 1.5.11-wso2v7 to avoid above failures.

 Thanks,
 Nipuni

 On Fri, Nov 21, 2014 at 1:42 PM, Sameera Perera samee...@wso2.com
 wrote:

 Thanks Nipuni.

 On Fri, Nov 21, 2014 at 1:40 PM, Nipuni Perera nip...@wso2.com wrote:

 Hi,

 It seems this is the same issue reported earlier with subject 
 Missing wso2.carbon,security.mgt.featur SNAPSHOT and the issue is due to
 wss4j not deployed to nexus yet with the new release.

 Thanks,
 Nipuni

 On Fri, Nov 21, 2014 at 1:25 PM, Sameera Perera samee...@wso2.com
 wrote:

 Hi all,

 I'm getting the following error while building ES. Can someone from
 IS look in to this?

 Software being installed: Identity Core Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.identity.core.feature.group 4.3.0.SNAPSHOT)
  Missing requirement: org.wso2.carbon.security.mgt 4.3.0.SNAPSHOT
 (org.wso2.carbon.security.mgt 4.3.0.SNAPSHOT) requires 'package
 org.apache.ws.security [1.5.11.wso2v7-SNAPSHOT,2.0.0)' but it could not 
 be
 found
  Cannot satisfy dependency:
   From: Identity Core Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.identity.core.feature.group 4.3.0.SNAPSHOT)
   To: org.wso2.carbon.identity.core.server.feature.group
 [4.3.0.SNAPSHOT]
  Cannot satisfy dependency:
   From: Identity Core Server Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.identity.core.server.feature.group 4.3.0.SNAPSHOT)
   To: org.wso2.carbon.security.mgt.server.feature.group
 [4.3.0.SNAPSHOT,4.4.0)
  Cannot satisfy dependency:
   From: WSO2 Carbon - Security Management Core Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.security.mgt.server.feature.group 4.3.0.SNAPSHOT)
   To: org.wso2.carbon.security.mgt [4.3.0.SNAPSHOT]
 Application failed, log file location:
 E:\Users\Sameera\.m2\repository\org\eclipse\tycho\tycho-p2-runtime\0.13.0\eclipse\configuration\1416552970918.log

 --

 --

 *Sameera Perera*
 Director of Engineering
 gtalk: samee...@wso2.com
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 *WSO2, Inc.* http://wso2.com/
 lean.enterprise.middleware



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




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




 --

 --

 *Sameera Perera*
 Director of Engineering
 gtalk: samee...@wso2.com
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 *WSO2, Inc.* http://wso2.com/
 lean.enterprise.middleware





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


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




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

 phone: +94 71 668 4620






 --

 --

 *Sameera Perera*
 Director of Engineering
 gtalk: samee...@wso2.com
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 *WSO2, Inc.* http://wso2.com/
 lean.enterprise.middleware



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




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Is Ntask core broken ?

2014-11-21 Thread Jeewantha Dharmaparakrama
Hi All,

I created an ESB pack[1] with the latest changes in wso2-dev repo and looks
like ntask core is broken. A scheduled task never gets executed. (execute()
method of the Task is never called). When I patch the pack with
org.wso2.carbon.ntask.core_4.3.0.SNAPSHOT.jar released in ESB 4.9.0 M3 pack
all work as expected. What is the reason for this ?

[1]
https://svn.wso2.org/repos/wso2/people/jeewantha/4.9.0_release/21stNov/wso2esb-4.9.0-SNAPSHOT.zip

Thanks,
Jeewantha

-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Is Ntask core broken ?

2014-11-21 Thread Jeewantha Dharmaparakrama
On Fri, Nov 21, 2014 at 8:57 PM, Anjana Fernando anj...@wso2.com wrote:

 [my earlier mail send failed, not sure it actually went through or not, so
 re-sending]

 On Fri, Nov 21, 2014 at 8:34 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Chanakas change was for mediation-ntask component and that change is
 already there in the pack. Everything works when ntask-core jar is replaced
 with what was released in M3. Obviously ntask-core jar which gets packed in
 M4 has the issue. Could it be due to the latest changes done on ntask-core ?


 Oh Yeah, I see, yeah, then something in ntask should be wrong. And I just
 remembered, we have recently done a change that came from Kernel, for the
 startup handler, maybe that is not working as expected after the change. Is
 the issue happening, when restarting the server after some tasks are
 scheduled?, or does the problem also there when you just schedule a new
 task when the server is running? ..

its when scheduling a new task.

Thanks,
Jeewantha


 Anyways, @Chanika, can you please check this out. Verify the new usage of
 ServerStartupObserver in ntask.

 Cheers,
 Anjana.





 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 778403757
 Blog: http://jeewanthad.blogspot.com/




 --
 *Anjana Fernando*
 Senior Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB-dev - P2 Profile Generation build failure

2014-11-16 Thread Jeewantha Dharmaparakrama
I think this is because of Axiom got released and Snapshot version is no
longer available. Will update once the build is fixed.

Thanks,
Jeewantha

On Mon, Nov 17, 2014 at 11:27 AM, Dimuthu De Lanerolle dimut...@wso2.com
wrote:

 Getting the below build failure.

 [ERROR] rdsInstalling org.wso2.carbon.service.mgt.server.feature.group
 4.3.0.SNAPSHOT.
 Installation failed.
 Cannot complete the install because one or more required items could not
 be found.
  Software being installed: WSO2 Carbon - Tryit Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.tryit.feature.group 4.3.0.SNAPSHOT)
  Missing requirement: org.wso2.carbon.tryit 4.3.0.SNAPSHOT
 (org.wso2.carbon.tryit 4.3.0.SNAPSHOT) requires 'package
 org.apache.axiom.om [1.2.11.wso2v5-SNAPSHOT,1.3.0)' but it could not be
 found
  Cannot satisfy dependency:
   From: WSO2 Carbon - Tryit Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.tryit.feature.group 4.3.0.SNAPSHOT)
   To: org.wso2.carbon.tryit.server.feature.group [4.3.0.SNAPSHOT]
  Cannot satisfy dependency:
   From: WSO2 Carbon - Tryit Server Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.tryit.server.feature.group 4.3.0.SNAPSHOT)
   To: org.wso2.carbon.tryit [4.3.0.SNAPSHOT]
 Application failed, log file location:
 /home/dimuthu/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1416203231121.log

 [INFO]
 
 [INFO] Reactor Summary:
 [INFO]
 [INFO] WSO2 ESB - Aggregator Module .. SUCCESS [0.270s]
 [INFO] WSO2 ESB - Styles Parent .. SUCCESS [0.105s]
 [INFO] WSO2 ESB - Styles . SUCCESS [3.494s]
 [INFO] WSO2 ESB - Samples Parent . SUCCESS [0.060s]
 [INFO] WSO2 ESB - Samples  SUCCESS [5.519s]
 [INFO] WSO2 ESB - Features Parent  SUCCESS [0.062s]
 [INFO] WSO2 ESB - Features Aggregator Module . SUCCESS [0.008s]
 [INFO] WSO2 ESB - Styles Features  SUCCESS [0.934s]
 [INFO] WSO2 ESB - Samples Features ... SUCCESS [0.307s]
 [INFO] WSO2 ESB - P2 Profile Generation .. FAILURE
 [45.590s]
 [INFO] WSO2 ESB - Distribution ... SKIPPED
 [INFO] WSO2 ESB - Integration Parent . SKIPPED
 [INFO] integration-test-common ... SKIPPED
 [INFO] ESB Integration Test Admin Clients  SKIPPED
 [INFO] ESB Integration Test UI Pages . SKIPPED
 [INFO] ESB Integration Extensions  SKIPPED
 [INFO] ESB Integration Test Common Utils . SKIPPED
 [INFO] ESB Test Service Module ... SKIPPED
 [INFO] ESB test Module-Transport . SKIPPED
 [INFO] ESB test Module-Service ... SKIPPED
 [INFO] ESB test Module-mediator-1  SKIPPED
 [INFO] ESB test Module-mediator-2  SKIPPED
 [INFO] ESB test Module - Sample .. SKIPPED
 [INFO] ESB test Module-Other . SKIPPED
 [INFO] Integration Test Reporting  SKIPPED
 [INFO] ESB test Module - Sample .. SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 59.449s
 [INFO] Finished at: Mon Nov 17 11:17:18 IST 2014
 [INFO] Final Memory: 39M/874M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
 (3-p2-profile-generation) on project wso2esb-p2-profile: P2 publisher
 return code was 13 - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.


 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




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Can we cluster axis2 server with Hazalcast?

2014-07-15 Thread Jeewantha Dharmaparakrama
Hi All,

We do not ship Tribes now AFAIK. In that case can we cluster axis2 server
with Hazalcast?

Thanks,
Jeewantha

-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can we cluster axis2 server with Hazalcast?

2014-07-15 Thread Jeewantha Dharmaparakrama
To use dynamic load balancing with multiple axis2 nodes. [1]

[1]
https://docs.wso2.com/display/ESB481/Sample+57%3A+Dynamic+Load+Balancing+between+Three+Nodes


On Tue, Jul 15, 2014 at 7:16 PM, Kasun Gajasinghe kas...@wso2.com wrote:

 Hi Jeewantha,

 What's the exact requirement you are trying to achieve here?


 On Tue, Jul 15, 2014 at 7:05 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi All,

 We do not ship Tribes now AFAIK. In that case can we cluster axis2 server
 with Hazalcast?

 Thanks,
 Jeewantha

 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 778403757
 Blog: http://jeewanthad.blogspot.com/

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




 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org






-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can we cluster axis2 server with Hazalcast?

2014-07-15 Thread Jeewantha Dharmaparakrama
On Tue, Jul 15, 2014 at 7:59 PM, Afkham Azeez az...@wso2.com wrote:

 Yes, it is coupled with Carbon. Why can't they use AppServer instead of
 Axis2?


 On Tue, Jul 15, 2014 at 7:38 PM, Sameera Jayasoma same...@wso2.com
 wrote:

 Hi Kasun/Jeewantha,

 I don't think its possible. HZ based clustering implementation uses
 Carbon kernel internals. So you cannot simply replace the existing Tribes
 based implementation with HZ base impl that easily.

 In that case should we ship Tribes with ESB to support  sample 57? [1]
[1]
https://docs.wso2.com/display/ESB481/Sample+57%3A+Dynamic+Load+Balancing+between+Three+Nodes


 Thanks,
 Sameera.


 On Tue, Jul 15, 2014 at 7:31 PM, Kasun Gajasinghe kas...@wso2.com
 wrote:


 Technically, you should be able to since the Hazelcast clustering in
 Carbon has been implemented using Axis2 clustering interfaces. You can try
 by replacing the tribes clustering agent with hz clustering agent in
 axis2.xml, and adding org.wso2.carbon.core/Hz as a dependency.
 Org.wso2.carbon.core contains the Hz based axis2 clustering code.

 Regards,
 KasunG


 On Tue, Jul 15, 2014 at 7:20 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 To use dynamic load balancing with multiple axis2 nodes. [1]

 [1]
 https://docs.wso2.com/display/ESB481/Sample+57%3A+Dynamic+Load+Balancing+between+Three+Nodes


 On Tue, Jul 15, 2014 at 7:16 PM, Kasun Gajasinghe kas...@wso2.com
 wrote:

 Hi Jeewantha,

 What's the exact requirement you are trying to achieve here?


 On Tue, Jul 15, 2014 at 7:05 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi All,

 We do not ship Tribes now AFAIK. In that case can we cluster axis2
 server with Hazalcast?

 Thanks,
 Jeewantha

 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 778403757
 Blog: http://jeewanthad.blogspot.com/

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




 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org






 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 778403757
 Blog: http://jeewanthad.blogspot.com/




 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org






 --
 Sameera Jayasoma,
 Software Architect,

  WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://sameera.adahas.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




 --
 *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%203320919 blog: *
 *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*




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BAM] Optimizing BAM Mediator Data Publishing Logic

2014-06-20 Thread Jeewantha Dharmaparakrama
 (BamMediatorException e) {
 String errorMsg = Problem occurred while logging events 
 in the BAM Mediator.  + e.getMessage();
 log.error(errorMsg, e);
 throw new BamMediatorException(errorMsg, e);
 }
 }

 ...

 }

 I think if we move this logic to a new thread we could reduce the
 time it takes to execute the data publishing logic from the main 
 message
 flow. WDYT?

 Thanks

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


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




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

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





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




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


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




 --
 Ayashkantha Ramasinghe
 Software Engineer WSO2, Inc.
 email: ayashkan...@wso2.com sanj...@wso2.com;
 TP: +94 77 7 487 669




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


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




 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.com/




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


 Thanks,



 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.com/




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] moving httpcore dependency to git

2014-05-04 Thread Jeewantha Dharmaparakrama
Hi Kernel team,

We need to patch httpcore for kernal 4.3.0 to support HTTP DELETEs with
payloads. The fix was already done few months back but since there was a
kernal API change we had to postpone that to the next kernal release.
Please add the dependency code to git ASAP since the new feature should be
released with ESB 4.9.0.

Thanks in advance,
Jeewantha



On Wed, Apr 30, 2014 at 11:04 AM, Sudheera Palihakkara sudhe...@wso2.comwrote:

 Hi,

 Can we do the $subject. I'm trying to apply the fix for Congestion HTTP
 DELETE issue  and I can't find the dependency in git.

 Thanks.




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] OCSP/CRL in transport listener

2014-03-21 Thread Jeewantha Dharmaparakrama
Well first ESB tries with OCSP. If the CA does not support OCSP it tries
with CRL. Both protocols do the same thing but OCSP is newer. Thats why ESB
tries OCSP first.

Did you add the OCSP url in the certificate properly? IINM Digicert should
support OCSP. If OCSP url is added properly, try to debug the code and find
where it get fails.

Jeewantha.


On Fri, Mar 21, 2014 at 9:57 AM, Sudheera Palihakkara sudhe...@wso2.comwrote:

 Hi Jeewantha,

 I have created CA and client certificates like you asked. And using curl
 did the request. Here's what I got at the server log.

 INFO - CacheManager OCSPCache Cache Manager Started
 INFO - CacheManager CRLCache Cache Manager Started
 INFO - RevocationVerificationManager OCSPVerifier failed.
 INFO - CRLVerifier Trying to get CRL for URL:
 http://crl3.digicert.com/ca3-g17.crl
 INFO - CRLCache Before set- HashMap size 0
 INFO - CRLCache After set - HashMap size 1
 INFO - PathChecker Certificate status is: Good
 INFO - CertificatePathValidator Certificate path validated
 INFO - RevocationVerificationManager Path verification Successful. Took
 1075 ms.


 looks like OCSPVerifier has failed, what do you think? is it because a
 issue in the source or the certificate created by me?


 On Thu, Mar 20, 2014 at 11:01 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 +1.

 So when you invoke the HTTPS service with client auth enabled, the
 connection should be rejected since there is no OCSP/CRL information in the
 client certificate.

 But we should test this with some custom made certificates. Create a self
 signed *CA certificate* and a *User certificate* signed by that CA. You
 can use the tool *openssl*  for this. (No need to create an intermediate
 CA cert) [1]. Before giving the Certificate signing request(CSR) to the CA
 you have to give the proper X509Extensions *Authority Information Access*[2] 
  and *Crl
 Distribution Points* [3] so that the URLs for OCSP and CRL servers will
 be added to the certificate you create. You will have to create an
 *openssl.cnf* file with the following information to be given to
 *openssl* with the CSR as an extension file.

 authorityInfoAccess = OCSP;URI: http://ocsp.digicert.com
 crlDistributionPoints=URI:http://crl3.digicert.com/ca3-g17.crl

 The above urls are from the CA which has signed WSO2 certificates
 (Digicert). Please check the certificate. Now you can add the created
 certificates to wso2carbon.jks (Both keystore and truststore) : see online
 resources on how to do that. Once configured, call the HTTPS service with
 client auth enabled. Use curl to send the getQuote request.

 curl -X POST -H 'Content-Type: text/xml; charset=UTF-8' -H 'SOAPAction: 
 urn:getQuote' -d @request_file.xml --cacert ca.crt --cert user.crt -v 
 https://localhost:8243


 Now the ESB should do OCSP/CRL validations and since there are no
 revocation information with Digicert on the certificate you created, the
 HTTPS connection should be established.

 Please ask if you have any questions.

 [1]
 http://blog.didierstevens.com/2008/12/30/howto-make-your-own-cert-with-openssl/
 [2]
 http://www.oracle.com/technetwork/articles/soa/patil-certrevoc-1873528.html
 [3] http://stackoverflow.com/a/12023746/1411653

 Thanks,
 Jeewantha


 On Wed, Mar 19, 2014 at 10:50 PM, Sudheera Palihakkara sudhe...@wso2.com
  wrote:

 Hi Jeewantha,

 I have moved ServerConnFactoryBuilder and ClientConnFactoryBuilder from
 /transport/nhttp/config/ to /transport/http/config/  because those two
 classed are common to both nhttp and passthru transports.

 Here are the diff files of the two files that I edited.

 I used an online tool to generate ServerConnFactoryBuilder.diff because
 I did not committed the changes after I moved the file to http directory so
 the format of the diff file may different.

 thanks.



 On Wed, Mar 19, 2014 at 8:57 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 [Adding @dev]

 Hi Sudheera,

 Did you remove ServerConnFactoryBuilder and ClientConnFactoryBuilder
 from the source and added the changed classes again? Its difficult to see
 which lines have changed in the patch file.
 Please remove ServerConnFactoryBuilder and ClientConnFactoryBuilder
 from your local source, svn up again, and then do the changes in those
 files and create the patch file.

 Thanks,
 Jeewantha


 On Wed, Mar 19, 2014 at 3:00 AM, Sudheera Palihakkara 
 sudhe...@wso2.com wrote:

 Hi ayya,

 I have done some coding ServerSSLSetupHander.java and
 ServerConnFactoryBuilder.java as they did in the backend side. I think the
 logic is ok but it's hard to test since we don't have certificate chain
 that signed by a CA. I used wso2carbon.jks for client and the request get
 failed since both ocsp and crl verification get failed for wso2carbon.jks 
 .
 I have attached the diff file. Can you take a look.


 thanks.


 On Wed, Mar 19, 2014 at 11:43 AM, Sudheera Palihakkara 
 sudhe...@wso2.com wrote:

 Hi ayya,

 In ServerConnFactoryBuilder.java file line 202

Re: [Dev] OCSP/CRL in transport listener

2014-03-21 Thread Jeewantha Dharmaparakrama
+1. That explains it :). Since you've created the Custom certificates I
guess we can write an integration test so that we are done done with this
feature. Please talk to Kasun about the integration test.

Note: I dont think I have handled all the OSCP response status values in
the code. If you have time try to do some research on how to deal with
response statuses like *tryLater*, *sigRequired* and
*unauthorized.*
Jeewantha


On Fri, Mar 21, 2014 at 11:28 AM, Sudheera Palihakkara sudhe...@wso2.comwrote:

 Hi,

 I have debugged the code, In OCSPverifier line no 84
 ocspResponse.getStatus() returns integer 6 which is defined as
 OCSPRespStatus.UNAUTHORIZED. According to 
 ietfhttp://www.ietf.org/rfc/rfc2560.txtthis is because the client is not 
 authorized to make the query to the
 server.





 On Fri, Mar 21, 2014 at 10:20 PM, Sudheera Palihakkara 
 sudhe...@wso2.comwrote:

 Yeah I've added the url, cert param have these extentions at the runtime

 Certificate Extensions: 2
 [1]: ObjectId: 1.3.6.1.5.5.7.1.1 Criticality=false
 AuthorityInfoAccess [
   [
accessMethod: ocsp
accessLocation: URIName: http://ocsp.digicert.com
 ]
 ]

 [2]: ObjectId: 2.5.29.31 Criticality=false
 CRLDistributionPoints [
   [DistributionPoint:
  [URIName: http://crl3.digicert.com/ca3-g17.crl]
 ]]


 I'll try debugging. :)



 On Fri, Mar 21, 2014 at 9:48 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Well first ESB tries with OCSP. If the CA does not support OCSP it tries
 with CRL. Both protocols do the same thing but OCSP is newer. Thats why ESB
 tries OCSP first.

 Did you add the OCSP url in the certificate properly? IINM Digicert
 should support OCSP. If OCSP url is added properly, try to debug the code
 and find where it get fails.

 Jeewantha.


 On Fri, Mar 21, 2014 at 9:57 AM, Sudheera Palihakkara sudhe...@wso2.com
  wrote:

 Hi Jeewantha,

 I have created CA and client certificates like you asked. And using
 curl did the request. Here's what I got at the server log.

 INFO - CacheManager OCSPCache Cache Manager Started
 INFO - CacheManager CRLCache Cache Manager Started
 INFO - RevocationVerificationManager OCSPVerifier failed.
 INFO - CRLVerifier Trying to get CRL for URL:
 http://crl3.digicert.com/ca3-g17.crl
 INFO - CRLCache Before set- HashMap size 0
 INFO - CRLCache After set - HashMap size 1
 INFO - PathChecker Certificate status is: Good
 INFO - CertificatePathValidator Certificate path validated
 INFO - RevocationVerificationManager Path verification Successful. Took
 1075 ms.


 looks like OCSPVerifier has failed, what do you think? is it because a
 issue in the source or the certificate created by me?


 On Thu, Mar 20, 2014 at 11:01 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 +1.

 So when you invoke the HTTPS service with client auth enabled, the
 connection should be rejected since there is no OCSP/CRL information in 
 the
 client certificate.

 But we should test this with some custom made certificates. Create a
 self signed *CA certificate* and a *User certificate* signed by that
 CA. You can use the tool *openssl*  for this. (No need to create an
 intermediate CA cert) [1]. Before giving the Certificate signing
 request(CSR) to the CA you have to give the proper X509Extensions 
 *Authority
 Information Access* [2]  and *Crl Distribution Points* [3] so that
 the URLs for OCSP and CRL servers will be added to the certificate you
 create. You will have to create an *openssl.cnf* file with the
 following information to be given to *openssl* with the CSR as an
 extension file.

 authorityInfoAccess = OCSP;URI: http://ocsp.digicert.com
 crlDistributionPoints=URI:http://crl3.digicert.com/ca3-g17.crl




 The above urls are from the CA which has signed WSO2 certificates
 (Digicert). Please check the certificate. Now you can add the created
 certificates to wso2carbon.jks (Both keystore and truststore) : see online
 resources on how to do that. Once configured, call the HTTPS service with
 client auth enabled. Use curl to send the getQuote request.

 curl -X POST -H 'Content-Type: text/xml; charset=UTF-8' -H 'SOAPAction: 
 urn:getQuote' -d @request_file.xml --cacert ca.crt --cert user.crt -v 
 https://localhost:8243





 Now the ESB should do OCSP/CRL validations and since there are no
 revocation information with Digicert on the certificate you created, the
 HTTPS connection should be established.

 Please ask if you have any questions.

 [1]
 http://blog.didierstevens.com/2008/12/30/howto-make-your-own-cert-with-openssl/
 [2]
 http://www.oracle.com/technetwork/articles/soa/patil-certrevoc-1873528.html
 [3] http://stackoverflow.com/a/12023746/1411653

 Thanks,
 Jeewantha


 On Wed, Mar 19, 2014 at 10:50 PM, Sudheera Palihakkara 
 sudhe...@wso2.com wrote:

 Hi Jeewantha,

 I have moved ServerConnFactoryBuilder and ClientConnFactoryBuilder
 from /transport/nhttp/config/ to /transport/http/config/  because those 
 two
 classed are common to both nhttp and passthru transports

Re: [Dev] OCSP/CRL in transport listener

2014-03-20 Thread Jeewantha Dharmaparakrama
+1.

So when you invoke the HTTPS service with client auth enabled, the
connection should be rejected since there is no OCSP/CRL information in the
client certificate.

But we should test this with some custom made certificates. Create a self
signed *CA certificate* and a *User certificate* signed by that CA. You can
use the tool *openssl*  for this. (No need to create an intermediate CA
cert) [1]. Before giving the Certificate signing request(CSR) to the CA you
have to give the proper X509Extensions *Authority Information Access* [2]
and *Crl Distribution Points* [3] so that the URLs for OCSP and CRL servers
will be added to the certificate you create. You will have to create an
*openssl.cnf* file with the following information to be given to
*openssl*with the CSR as an extension file.

authorityInfoAccess = OCSP;URI: http://ocsp.digicert.com
crlDistributionPoints=URI:http://crl3.digicert.com/ca3-g17.crl

The above urls are from the CA which has signed WSO2 certificates
(Digicert). Please check the certificate. Now you can add the created
certificates to wso2carbon.jks (Both keystore and truststore) : see online
resources on how to do that. Once configured, call the HTTPS service with
client auth enabled. Use curl to send the getQuote request.

curl -X POST -H 'Content-Type: text/xml; charset=UTF-8' -H
'SOAPAction: urn:getQuote' -d @request_file.xml --cacert ca.crt
--cert user.crt -v https://localhost:8243

Now the ESB should do OCSP/CRL validations and since there are no
revocation information with Digicert on the certificate you created, the
HTTPS connection should be established.

Please ask if you have any questions.

[1]
http://blog.didierstevens.com/2008/12/30/howto-make-your-own-cert-with-openssl/
[2]
http://www.oracle.com/technetwork/articles/soa/patil-certrevoc-1873528.html
[3] http://stackoverflow.com/a/12023746/1411653

Thanks,
Jeewantha


On Wed, Mar 19, 2014 at 10:50 PM, Sudheera Palihakkara sudhe...@wso2.comwrote:

 Hi Jeewantha,

 I have moved ServerConnFactoryBuilder and ClientConnFactoryBuilder from
 /transport/nhttp/config/ to /transport/http/config/  because those two
 classed are common to both nhttp and passthru transports.

 Here are the diff files of the two files that I edited.

 I used an online tool to generate ServerConnFactoryBuilder.diff because I
 did not committed the changes after I moved the file to http directory so
 the format of the diff file may different.

 thanks.



 On Wed, Mar 19, 2014 at 8:57 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 [Adding @dev]

 Hi Sudheera,

 Did you remove ServerConnFactoryBuilder and ClientConnFactoryBuilder from
 the source and added the changed classes again? Its difficult to see which
 lines have changed in the patch file.
 Please remove ServerConnFactoryBuilder and ClientConnFactoryBuilder from
 your local source, svn up again, and then do the changes in those files and
 create the patch file.

 Thanks,
 Jeewantha


 On Wed, Mar 19, 2014 at 3:00 AM, Sudheera Palihakkara 
 sudhe...@wso2.comwrote:

 Hi ayya,

 I have done some coding ServerSSLSetupHander.java and
 ServerConnFactoryBuilder.java as they did in the backend side. I think the
 logic is ok but it's hard to test since we don't have certificate chain
 that signed by a CA. I used wso2carbon.jks for client and the request get
 failed since both ocsp and crl verification get failed for wso2carbon.jks .
 I have attached the diff file. Can you take a look.


 thanks.


 On Wed, Mar 19, 2014 at 11:43 AM, Sudheera Palihakkara 
 sudhe...@wso2.com wrote:

 Hi ayya,

 In ServerConnFactoryBuilder.java file line 202



 *   ServerSSLSetupHandler sslSetupHandler =
(clientAuth != null || httpsProtocols !=
 null) ?  new
 ServerSSLSetupHandler(clientAuth,httpsProtocols) : null;*

 it seems like if SSLVerifyClient parameter not defined then
 *ServerSSLSetupHandler()* isn't get invoked. Do we need this
 SSLVerifyClient  parameter set to required in order to verify ocsp and
 crl ?





 On Sat, Mar 15, 2014 at 12:20 AM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Sudheera,

 You don't need SSL Profiles to talk to HTTPS backends. SSL profiles
 are to define different SSL configurations (Trust stores, Keystores) to
 different backends. And according to the logs, the connection is not made
 to an HTTPS backend. Error occurs during SSL handshake.

 To make an HTTPS connection just host your service in some server
 (doesnt matter which) and in the ESB define the endpoint to connect to the
 https port with the correct HTTPS endpoint URL.

 However to test OCSP/CRL you cant use a carbon server which runs in
 your local macine. The reason is, the certificates defined in the Carbon
 Servers are fake (Self signed). That's why the web browser says Untrusted
 connection when you try connect to the management console of a locally
 running carbon server. And in those fake certificates, the CRL/OCSP urls

Re: [Dev] How to access registry within costom mediator

2014-03-20 Thread Jeewantha Dharmaparakrama
Hi Susinda,

Try this,

messageContext.getEntry(conf:/foo);

Thanks,
Jeewantha




On Thu, Mar 20, 2014 at 11:18 PM, Susinda Perera susi...@wso2.com wrote:

 Any code examples on $subject? And best-practices etc..

 I have tried with org.wso2.carbon.mediation.registry.WSO2Registry but it
 gives following exception
 java.lang.NullPointerException: Tenant domain has not been set in 
 CarbonContext
 when executing Resource resource =  registry.getResource(key);

 Any ideas?


 Thanks
 /Susinda

 --
 *Susinda Perera*
 Software Engineer
 Mobile:(+94)716049075

 WSO2 Inc. http://wso2.com/
 Tel : 94 11 214 5345 Fax :94 11 2145300


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




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Adding attachment to Synapse MessageContext

2014-03-20 Thread Jeewantha Dharmaparakrama
Hi Ramindu,

Is SOAP with attachments enabled in the ESB? You might need to enable MTOM
[1]

[1] https://docs.wso2.org/pages/viewpage.action?pageId=26838822

Jeewantha


On Wed, Mar 19, 2014 at 2:10 PM, Ramindu Deshapriya rasad...@gmail.comwrote:

 Hi Paul,


 Paul Fremantle-2 wrote
  How are you serializing the message?

 I'm not serializing it, as far as I can tell. I'm receiving an input stream
 for a file from a backend service (Google Contacts API) and attempting to
 attach it to the Synapse message context by assigning it to a DataHandler.

 Thanks.



 --
 View this message in context:
 http://wso2-oxygen-tank.10903.n7.nabble.com/ESB-Adding-attachment-to-Synapse-MessageContext-tp93759p93761.html
 Sent from the WSO2 Development mailing list archive at Nabble.com.
 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] OCSP/CRL in transport listener

2014-03-19 Thread Jeewantha Dharmaparakrama
[Adding @dev]

Hi Sudheera,

Did you remove ServerConnFactoryBuilder and ClientConnFactoryBuilder from
the source and added the changed classes again? Its difficult to see which
lines have changed in the patch file.
Please remove ServerConnFactoryBuilder and ClientConnFactoryBuilder from
your local source, svn up again, and then do the changes in those files and
create the patch file.

Thanks,
Jeewantha


On Wed, Mar 19, 2014 at 3:00 AM, Sudheera Palihakkara sudhe...@wso2.comwrote:

 Hi ayya,

 I have done some coding ServerSSLSetupHander.java and
 ServerConnFactoryBuilder.java as they did in the backend side. I think the
 logic is ok but it's hard to test since we don't have certificate chain
 that signed by a CA. I used wso2carbon.jks for client and the request get
 failed since both ocsp and crl verification get failed for wso2carbon.jks .
 I have attached the diff file. Can you take a look.


 thanks.


 On Wed, Mar 19, 2014 at 11:43 AM, Sudheera Palihakkara 
 sudhe...@wso2.comwrote:

 Hi ayya,

 In ServerConnFactoryBuilder.java file line 202



 *   ServerSSLSetupHandler sslSetupHandler =
(clientAuth != null || httpsProtocols !=
 null) ?  new
 ServerSSLSetupHandler(clientAuth,httpsProtocols) : null;*

 it seems like if SSLVerifyClient parameter not defined then
 *ServerSSLSetupHandler()* isn't get invoked. Do we need this
 SSLVerifyClient  parameter set to required in order to verify ocsp and
 crl ?





 On Sat, Mar 15, 2014 at 12:20 AM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Sudheera,

 You don't need SSL Profiles to talk to HTTPS backends. SSL profiles are
 to define different SSL configurations (Trust stores, Keystores) to
 different backends. And according to the logs, the connection is not made
 to an HTTPS backend. Error occurs during SSL handshake.

 To make an HTTPS connection just host your service in some server
 (doesnt matter which) and in the ESB define the endpoint to connect to the
 https port with the correct HTTPS endpoint URL.

 However to test OCSP/CRL you cant use a carbon server which runs in your
 local macine. The reason is, the certificates defined in the Carbon Servers
 are fake (Self signed). That's why the web browser says Untrusted
 connection when you try connect to the management console of a locally
 running carbon server. And in those fake certificates, the CRL/OCSP urls
 are not defined. So you cant test OCSP/CRL feature that way.

 So don't run the backend in your local machine. Instead, use some HTTPS
 backend like https://www.facebook.com or if you need a webservice use
 the echo service in Stratos Live[1] . Stratos live uses valid WSO2
 certificates signed by Digicert, a valid CA which has its OCSP/CRL servers
 running[2].

 [1] https://stratoslive.wso2.com/services/echo?wsdl
 [2] http://www.digicert.com/

 If you have more questions please ask on @Dev to be more visible to the
 public.

 Thanks,
 Jeewantha


 On Fri, Mar 14, 2014 at 2:09 AM, Sudheera Palihakkara sudhe...@wso2.com
  wrote:

 Hi ayya.

 I'm trying to invoke the already implemented ocsp at the transport
 sender and get an idea about the flow. But I'm having some difficulties
 during the process. here's what I've done

 1 . followed this 
 [1http://pathberiya.blogspot.com/2010/07/ssl-profiles-in-wso2-esb.html]
 document to create the SSL profiles. (used same axis2.xml with password as
 *wso2carbon* )
 2. Started a separate DSS with  clientAuth=true in
 catalina-server.xml
 3. created a proxy service in ESB to invoke *echo service* deployed at
 DSS with use of *https* in the endppoint.

 When I invoked the proxy service I'm getting this error

 *[2014-03-14 13:11:10,725] ERROR - TargetHandler I/O error:
 Unrecognized SSL message, plaintext connection?*

 Full error log[2 http://pastebin.com/5VMK4cnT].

 Can you help me out please. I there any other way to test this, I might
 need something similar for transport listener too. thank you


 [1]
 http://pathberiya.blogspot.com/2010/07/ssl-profiles-in-wso2-esb.html
 [2] http://pastebin.com/5VMK4cnT




 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/






-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Mediation components committed

2014-02-02 Thread Jeewantha Dharmaparakrama
ID - jeewamp
Email - jeew...@gmail.com


On Mon, Feb 3, 2014 at 11:59 AM, Vanjikumaran Sivajothy va...@wso2.comwrote:

 My Id - vanjikumaran
 email address - vanjikuma...@gmail.com


 On Mon, Feb 3, 2014 at 11:58 AM, Vanjikumaran Sivajothy va...@wso2.comwrote:

 Please grant the rights to us (myself, jeewantha, Ishan)

 for https://github.com/wso2/carbon-mediation

 wso2-synapse (have to create)



 On Mon, Feb 3, 2014 at 11:15 AM, Vanjikumaran Sivajothy 
 va...@wso2.comwrote:

 Thanks you Eranda


 On Mon, Feb 3, 2014 at 9:09 AM, Eranda Sooriyabandara 
 era...@wso2.comwrote:

 Hi Vanji,
 I did the preliminary changes need to be done to the mediation
 components and committed to [1]. You first need to add the related service
 stubs and features before you start building it.

 thanks
 Eranda

 [1]. https://github.com/wso2/carbon-mediation

 --

 *Eranda Sooriyabandara *Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise . Middleware

 E-mail: eranda AT wso2.com
 Mobile: +94 716 472 816
 Linked-In: http://www.linkedin.com/in/erandasooriyabandara
 Blog: http://emsooriyabandara.blogspot.com/







 --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com http://wso2.com/*
 *Mobile:(+94)777219209*
 *Mobile USA:**(+1)918 813 2403*
 [image: Facebook] https://www.facebook.com/vanjikumaran [image:
 Twitter] https://twitter.com/vanjikumaran [image: 
 LinkedIn]http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 
 [image:
 Blogger] http://vanjikumaran.blogspot.com/ [image: 
 SlideShare]http://www.slideshare.net/vanjikumaran

 This communication may contain privileged or other
 confidential information and is intended exclusively for the addressee/s.
 If you are not the intended recipient/s, or believe that you may
 have received this communication in error, please reply to the
 sender indicating that fact and delete the copy you received and in
 addition, you should not print, copy, re-transmit, disseminate, or
 otherwise use the information contained in this communication.
 Internet communications cannot be guaranteed to be timely, secure, error
 or virus-free. The sender does not accept liability for any errors
 or omissions




 --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com http://wso2.com/*
 *Mobile:(+94)777219209*
 *Mobile USA:**(+1)918 813 2403*
 [image: Facebook] https://www.facebook.com/vanjikumaran [image:
 Twitter] https://twitter.com/vanjikumaran [image: 
 LinkedIn]http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 
 [image:
 Blogger] http://vanjikumaran.blogspot.com/ [image: 
 SlideShare]http://www.slideshare.net/vanjikumaran

 This communication may contain privileged or other
 confidential information and is intended exclusively for the addressee/s.
 If you are not the intended recipient/s, or believe that you may
 have received this communication in error, please reply to the
 sender indicating that fact and delete the copy you received and in
 addition, you should not print, copy, re-transmit, disseminate, or
 otherwise use the information contained in this communication.
 Internet communications cannot be guaranteed to be timely, secure, error
 or virus-free. The sender does not accept liability for any errors
 or omissions




 --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com http://wso2.com/*
 *Mobile:(+94)777219209*
 *Mobile USA:**(+1)918 813 2403*
 [image: Facebook] https://www.facebook.com/vanjikumaran [image: 
 Twitter]https://twitter.com/vanjikumaran [image:
 LinkedIn] http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 
 [image:
 Blogger] http://vanjikumaran.blogspot.com/ [image: 
 SlideShare]http://www.slideshare.net/vanjikumaran

 This communication may contain privileged or other
 confidential information and is intended exclusively for the addressee/s.
 If you are not the intended recipient/s, or believe that you may
 have received this communication in error, please reply to the
 sender indicating that fact and delete the copy you received and in
 addition, you should not print, copy, re-transmit, disseminate, or
 otherwise use the information contained in this communication.
 Internet communications cannot be guaranteed to be timely, secure, error
 or virus-free. The sender does not accept liability for any errors
 or omissions




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] HTTP DELETE with entity body support for WSO2 ESB Passthru transport

2014-01-23 Thread Jeewantha Dharmaparakrama
Adding the bin.xml


On Thu, Jan 23, 2014 at 5:29 PM, Jeewantha Dharmaparakrama 
jeewan...@wso2.com wrote:

 Hi Manoj,

 Attached are the diffs to be committed to patch0005 in kernal 4.2.0.
 Please do the needful.

 Thanks,
 Jeewantha


 On Thu, Jan 16, 2014 at 1:52 PM, Kasun Indrasiri ka...@wso2.com wrote:

 +1 This is looking good. Shall we incorporate the changes in to the
 latest ESB version and verify the fix with the integration tests.


 On Thu, Jan 16, 2014 at 11:45 AM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Folks,

 We had been implementing this feature last week and thought it needed
 public attention. First of all, HTTP/1.1 DELETE with entity body does NOT
 violate the spec [1] [2]. But the initial design of apache-httpcomponents
 considers DELETE as a Non entity enclosing request. To support this
 feature, we introduced a third category Possible entity enclosing request
 because now a DELETE can be of either type, with or without entity body.

 Once the whole HTTP request is read, a Possible entity enclosing
 request will create the correct object entity enclosing request or a
 non entity enclosing request by looking at it headers. We look at the
 header Content-Length to determine if the request has a payload.

 So now, the following is a perfectly valid HTTP DELETE request.

 DELETE /order/delete HTTP/1.1
 Accept-Encoding: gzip,deflate
 Content-Type: text/xml;charset=UTF-8
 SOAPAction: urn:echoInt
 Content-Length: 290
 Host: jeewantha:8280
 Connection: Keep-Alive
 User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

 soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/; xmlns:echo=
 http://echo.services.core.carbon.wso2.org;   soapenv:Header/
 soapenv:Body  echo:echoInt !--Optional:--
 in5/in  /echo:echoInt   /soapenv:Body/soapenv:Envelope

 Note that this is a sample POST to StockQuoteService of which I changed
 the method to DELETE. In other words, DELETE with payloads work exactly as
 POSTs.

 [1] http://stackoverflow.com/a/299696/1411653
 [2] http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.7

 Thanks,
 Jeewantha

 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/




 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
Index: 4.2.0/patches/patch0005/distribution/bin.xml
===
--- 4.2.0/patches/patch0005/distribution/bin.xml	(revision 195042)
+++ 4.2.0/patches/patch0005/distribution/bin.xml	(working copy)
@@ -65,6 +65,12 @@
 destNameaxis2_1.6.1.wso2v10.jar/destName
 fileMode644/fileMode
 /file
+file
+source../dependencies/orbit/httpcore/4.3.0.wso2v1/target/httpcore-4.3.0.wso2v1.jar/source
+outputDirectoryWSO2-CARBON-PATCH-4.2.0-0005/patch0005/outputDirectory
+destNamehttpcore_4.3.0.wso2v1.jar/destName
+fileMode644/fileMode
+/file
 	file
 source../dependencies/transports/modules/jms/target/axis2-transport-jms-1.1.0-wso2v9.jar/source
 outputDirectoryWSO2-CARBON-PATCH-4.2.0-0005/patch0005/outputDirectory
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] HTTP DELETE with entity body support for WSO2 ESB Passthru transport

2014-01-15 Thread Jeewantha Dharmaparakrama
Hi Folks,

We had been implementing this feature last week and thought it needed
public attention. First of all, HTTP/1.1 DELETE with entity body does NOT
violate the spec [1] [2]. But the initial design of apache-httpcomponents
considers DELETE as a Non entity enclosing request. To support this
feature, we introduced a third category Possible entity enclosing request
because now a DELETE can be of either type, with or without entity body.

Once the whole HTTP request is read, a Possible entity enclosing request
will create the correct object entity enclosing request or a non entity
enclosing request by looking at it headers. We look at the header
Content-Length to determine if the request has a payload.

So now, the following is a perfectly valid HTTP DELETE request.

DELETE /order/delete HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: urn:echoInt
Content-Length: 290
Host: jeewantha:8280
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:echo=http://echo.services.core.carbon.wso2.org;
soapenv:Header/   soapenv:Body  echo:echoInt
!--Optional:-- in5/in  /echo:echoInt
/soapenv:Body/soapenv:Envelope

Note that this is a sample POST to StockQuoteService of which I changed the
method to DELETE. In other words, DELETE with payloads work exactly as
POSTs.

[1] http://stackoverflow.com/a/299696/1411653
[2] http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.7

Thanks,
Jeewantha

-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error Running wso2esb 4.8.0 Sample 200: Using WS-Security with policy attachments for proxy services

2013-12-19 Thread Jeewantha Dharmaparakrama
 JDK version is java version 1.6.0_45.

 Don't we have to mention this in the example documentation also? WDYT?


 [1].
 http://docs.wso2.org/display/ESB480/Sample+200%3A+Using+WS-Security+with+policy+attachments+for+proxy+services
 [2]. http://stackoverflow.com/a/17318843
 --

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





 --

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


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




 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/


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




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 WSB Sample 57: Dynamic load balancing between 3 nodes - Missing LoadBalanceEventHandler

2013-12-18 Thread Jeewantha Dharmaparakrama
-envelope/
 reason value=COULDN'T SEND THE MESSAGE TO THE SERVER./
 /makefault
 send/
 /sequence
 /definitions

 Please look in to this issue.

 Thank you


 [1]
 http://docs.wso2.org/display/ESB480/Sample+57%3A+Dynamic+load+balancing+between+3+nodes



 --
 *Pubudu Dissanayake*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Mobile: 0775503304

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




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Jeewantha Dharmaparakrama
Hi Dimuthu,

You have to set the password callback handler at client side. Try adding it
to client's options  [1]

[1] http://wso2.com/library/3733/

Jeewantha


On Mon, Dec 9, 2013 at 9:43 AM, Dimuthu Upeksha dimut...@wso2.com wrote:

 Hi all,
 I am trying to implement a secure client to a secure proxy service in ESB.
 However I am getting an exception [2] at line [3]. I tried to capture
 packets going out from the client using tcpMon but I found nothing going
 out. It seems like a dependancy problem in the client but not sure. What
 could be the reason for that?

 Thank you

 [1] https://gist.github.com/DImuthuUpe/7867226
 [2] https://gist.github.com/DImuthuUpe/7867246
 [3] https://gist.github.com/DImuthuUpe/7867226#file-gistfile1-txt-L127

 Dimuthu

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




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Jeewantha Dharmaparakrama
You have to create that Implementing
javax.security.auth.callback.CallbackHandler. See the example in the
article. When WSS Policy is enabled ( I believe you enabled Username Token
Policy at ESB proxy) , there has to be WSSecurity header in the SOAP
request with Username and password. Rampart needs a password callback
handler to get the password.

Jeewantha


On Mon, Dec 9, 2013 at 10:07 AM, Dimuthu Upeksha dimut...@wso2.com wrote:

 Hi Jeewantha,
 The class PasswordCallbackHandler can not be found in axis2 or rampart
 libs. What is the library that contains it?


 On Mon, Dec 9, 2013 at 10:00 AM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Dimuthu,

 You have to set the password callback handler at client side. Try adding
 it to client's options  [1]

 [1] http://wso2.com/library/3733/

 Jeewantha


 On Mon, Dec 9, 2013 at 9:43 AM, Dimuthu Upeksha dimut...@wso2.comwrote:

 Hi all,
 I am trying to implement a secure client to a secure proxy service in
 ESB. However I am getting an exception [2] at line [3]. I tried to capture
 packets going out from the client using tcpMon but I found nothing going
 out. It seems like a dependancy problem in the client but not sure. What
 could be the reason for that?

 Thank you

 [1] https://gist.github.com/DImuthuUpe/7867226
 [2] https://gist.github.com/DImuthuUpe/7867246
 [3] https://gist.github.com/DImuthuUpe/7867226#file-gistfile1-txt-L127

 Dimuthu

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




 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/





-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Jeewantha Dharmaparakrama
Hi Dimuthu,

Did you create the password callback handler add add that to your clients
classpath? After adding that to classpath you have to tell Rampart what the
password callback handler is like follows.

Options options = client.getOptions();
options.put(WSHandlerConstants.PW_CALLBACK_REF, new PasswordCallbackHandler());

You will have to put username as well in which case I guess you could use
this [1].

Hi Samisa,

I guess this is not documented properly except for this one [2]

[1]
http://ws.apache.org/wss4j/apidocs/org/apache/ws/security/handler/WSHandlerConstants.html#USER
[2] http://wso2.com/library/3733/

Jeewantha


On Mon, Dec 9, 2013 at 10:27 AM, Dimuthu Upeksha dimut...@wso2.com wrote:

 I did as in the article but still I'm getting the same exception. Then I
 added these libraries [1] to the classpath then new exception occurred [2].

 [1] http://mavenhub.com/c/samples/userguide/pwcallback/jar
 [2] https://gist.github.com/DImuthuUpe/7867567


 On Mon, Dec 9, 2013 at 10:16 AM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 You have to create that Implementing
 javax.security.auth.callback.CallbackHandler. See the example in the
 article. When WSS Policy is enabled ( I believe you enabled Username Token
 Policy at ESB proxy) , there has to be WSSecurity header in the SOAP
 request with Username and password. Rampart needs a password callback
 handler to get the password.

 Jeewantha


 On Mon, Dec 9, 2013 at 10:07 AM, Dimuthu Upeksha dimut...@wso2.comwrote:

 Hi Jeewantha,
 The class PasswordCallbackHandler can not be found in axis2 or rampart
 libs. What is the library that contains it?


 On Mon, Dec 9, 2013 at 10:00 AM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Dimuthu,

 You have to set the password callback handler at client side. Try
 adding it to client's options  [1]

 [1] http://wso2.com/library/3733/

 Jeewantha


 On Mon, Dec 9, 2013 at 9:43 AM, Dimuthu Upeksha dimut...@wso2.comwrote:

 Hi all,
 I am trying to implement a secure client to a secure proxy service in
 ESB. However I am getting an exception [2] at line [3]. I tried to capture
 packets going out from the client using tcpMon but I found nothing going
 out. It seems like a dependancy problem in the client but not sure. What
 could be the reason for that?

 Thank you

 [1] https://gist.github.com/DImuthuUpe/7867226
 [2] https://gist.github.com/DImuthuUpe/7867246
 [3] https://gist.github.com/DImuthuUpe/7867226#file-gistfile1-txt-L127

 Dimuthu

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




 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/





 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/





-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Jeewantha Dharmaparakrama
On Mon, Dec 9, 2013 at 10:40 AM, Samisa Abeysinghe sam...@wso2.com wrote:

 OK, we need to create a doc Jira please.

created https://wso2.org/jira/browse/DOCUMENTATION-515


 Thanks,
 Samisa...


 Samisa Abeysinghe

 Vice President Training

 WSO2 Inc.
 http://wso2.com



 On Mon, Dec 9, 2013 at 10:38 AM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Dimuthu,

 Did you create the password callback handler add add that to your clients
 classpath? After adding that to classpath you have to tell Rampart what the
 password callback handler is like follows.

 Options options = client.getOptions();
 options.put(WSHandlerConstants.PW_CALLBACK_REF, new 
 PasswordCallbackHandler());

 You will have to put username as well in which case I guess you could use
 this [1].

 Hi Samisa,

 I guess this is not documented properly except for this one [2]

 [1]
 http://ws.apache.org/wss4j/apidocs/org/apache/ws/security/handler/WSHandlerConstants.html#USER
 [2] http://wso2.com/library/3733/

 Jeewantha



 On Mon, Dec 9, 2013 at 10:27 AM, Dimuthu Upeksha dimut...@wso2.comwrote:

 I did as in the article but still I'm getting the same exception. Then I
 added these libraries [1] to the classpath then new exception occurred [2].

 [1] http://mavenhub.com/c/samples/userguide/pwcallback/jar
 [2] https://gist.github.com/DImuthuUpe/7867567


 On Mon, Dec 9, 2013 at 10:16 AM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 You have to create that Implementing
 javax.security.auth.callback.CallbackHandler. See the example in the
 article. When WSS Policy is enabled ( I believe you enabled Username Token
 Policy at ESB proxy) , there has to be WSSecurity header in the SOAP
 request with Username and password. Rampart needs a password callback
 handler to get the password.

 Jeewantha


 On Mon, Dec 9, 2013 at 10:07 AM, Dimuthu Upeksha dimut...@wso2.comwrote:

 Hi Jeewantha,
 The class PasswordCallbackHandler can not be found in axis2 or
 rampart libs. What is the library that contains it?


 On Mon, Dec 9, 2013 at 10:00 AM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Dimuthu,

 You have to set the password callback handler at client side. Try
 adding it to client's options  [1]

 [1] http://wso2.com/library/3733/

 Jeewantha


 On Mon, Dec 9, 2013 at 9:43 AM, Dimuthu Upeksha dimut...@wso2.comwrote:

 Hi all,
 I am trying to implement a secure client to a secure proxy service
 in ESB. However I am getting an exception [2] at line [3]. I tried to
 capture packets going out from the client using tcpMon but I found 
 nothing
 going out. It seems like a dependancy problem in the client but not 
 sure.
 What could be the reason for that?

 Thank you

 [1] https://gist.github.com/DImuthuUpe/7867226
 [2] https://gist.github.com/DImuthuUpe/7867246
 [3]
 https://gist.github.com/DImuthuUpe/7867226#file-gistfile1-txt-L127

 Dimuthu

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




 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/





 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/





 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/





-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Jeewantha Dharmaparakrama
might be an issue with the version. WSS4J 1.6.13 should have that method.
[1]
http://ws.apache.org/wss4j/apidocs/org/apache/ws/security/WSPasswordCallback.html#getIdentifier%28%29

Jeewantha


On Mon, Dec 9, 2013 at 11:31 AM, Dimuthu Upeksha dimut...@wso2.com wrote:

 Hi Jeewantha,
 I created the PasswordCallbackHandler class and added above lines to the
 client. And added wss4j-1.6.4.jar to the class path also. Then I get
 following error

 ---

 Exception in thread main java.lang.NoSuchMethodError:
 org.apache.ws.security.WSPasswordCallback.getIdentifer()Ljava/lang/String;

 at samples.userguide.PWCallback.handle(PWCallback.java:144)

 at org.apache.rampart.builder.BindingBuilder.getSignatureBuilder(
 BindingBuilder.java:306)

 at org.apache.rampart.builder.BindingBuilder.getSignatureBuilder(
 BindingBuilder.java:252)

 

 Thank you

 Dimuthu


 On Mon, Dec 9, 2013 at 10:47 AM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:




 On Mon, Dec 9, 2013 at 10:40 AM, Samisa Abeysinghe sam...@wso2.comwrote:

 OK, we need to create a doc Jira please.

 created https://wso2.org/jira/browse/DOCUMENTATION-515


 Thanks,
 Samisa...


 Samisa Abeysinghe

 Vice President Training

 WSO2 Inc.
 http://wso2.com



 On Mon, Dec 9, 2013 at 10:38 AM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Dimuthu,

 Did you create the password callback handler add add that to your
 clients classpath? After adding that to classpath you have to tell Rampart
 what the password callback handler is like follows.

 Options options = client.getOptions();
 options.put(WSHandlerConstants.PW_CALLBACK_REF, new 
 PasswordCallbackHandler());

 You will have to put username as well in which case I guess you could
 use this [1].

 Hi Samisa,

 I guess this is not documented properly except for this one [2]

 [1]
 http://ws.apache.org/wss4j/apidocs/org/apache/ws/security/handler/WSHandlerConstants.html#USER
 [2] http://wso2.com/library/3733/

 Jeewantha



 On Mon, Dec 9, 2013 at 10:27 AM, Dimuthu Upeksha dimut...@wso2.comwrote:

 I did as in the article but still I'm getting the same exception. Then
 I added these libraries [1] to the classpath then new exception occurred
 [2].

 [1] http://mavenhub.com/c/samples/userguide/pwcallback/jar
 [2] https://gist.github.com/DImuthuUpe/7867567


 On Mon, Dec 9, 2013 at 10:16 AM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 You have to create that Implementing
 javax.security.auth.callback.CallbackHandler. See the example in the
 article. When WSS Policy is enabled ( I believe you enabled Username 
 Token
 Policy at ESB proxy) , there has to be WSSecurity header in the SOAP
 request with Username and password. Rampart needs a password callback
 handler to get the password.

 Jeewantha


 On Mon, Dec 9, 2013 at 10:07 AM, Dimuthu Upeksha 
 dimut...@wso2.comwrote:

 Hi Jeewantha,
 The class PasswordCallbackHandler can not be found in axis2 or
 rampart libs. What is the library that contains it?


 On Mon, Dec 9, 2013 at 10:00 AM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Dimuthu,

 You have to set the password callback handler at client side. Try
 adding it to client's options  [1]

 [1] http://wso2.com/library/3733/

 Jeewantha


 On Mon, Dec 9, 2013 at 9:43 AM, Dimuthu Upeksha 
 dimut...@wso2.comwrote:

 Hi all,
 I am trying to implement a secure client to a secure proxy service
 in ESB. However I am getting an exception [2] at line [3]. I tried to
 capture packets going out from the client using tcpMon but I found 
 nothing
 going out. It seems like a dependancy problem in the client but not 
 sure.
 What could be the reason for that?

 Thank you

 [1] https://gist.github.com/DImuthuUpe/7867226
 [2] https://gist.github.com/DImuthuUpe/7867246
 [3]
 https://gist.github.com/DImuthuUpe/7867226#file-gistfile1-txt-L127

 Dimuthu

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




 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/





 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/





 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/





 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com

Re: [Dev] Specifying sslProtocol parameter in Transport Listener of ESB

2013-08-30 Thread Jeewantha Dharmaparakrama
We can't pass ciphers to NIO or Passthru transport as we do in Servlet
Transport. The provided functionality to specify the SSLProtocol to make
javax.net.ssl.SSLContext. The default is TLS.

Jeewantha


On Fri, Aug 30, 2013 at 5:48 PM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi


 On Mon, Jul 29, 2013 at 5:12 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 To get SSL context when making an HTTPS connection you need to do this.

 javax.net.ssl.SSLContext sslcontext =
 javax.net.ssl.SSLContext.getInstance(TLS);

 This depends on the JVM. For example on IBM JVM, it should be
 SSLContext.getInstance(SSL_TLS); [1]


 For the oracle jdk, how do we specify the SSLv3 in the NIO transport? As
 mentioned by Isuru, we need to pass ciphers as well in order to disable
 weak and medium cipher strength.

 After configuring the SSLv3 with ciphers, servlet transport is working
 fine. So how can we do the same in NIO transport for oracle JDK?

 Thanks,
 Reka


 [1]
 http://publib.boulder.ibm.com/infocenter/javasdk/v6r0/index.jsp?topic=%2Fcom.ibm.java.security.component.doc%2Fsecurity-component%2Fjsse2Docs%2Fsslcontext.html


 On Fri, Jul 26, 2013 at 11:06 AM, Isuru Perera isu...@wso2.com wrote:

 Hi,

 When comparing with Tomcat configuration options for SSL [1], it seems
 that the SSL transports for ESB lacks support for many important
 configurations.

 AFAIK, the option to specify SSL protocol only introduced in ESB 4.7.0.

 On Wed, Jul 24, 2013 at 10:53 AM, Isuru Perera isu...@wso2.com wrote:


 Hi,

  On Tue, Jul 23, 2013 at 12:54 PM, Ramith Jayasinghe 
 ram...@wso2.comwrote:

 So now whats the purpose of HttpsProtocols which is also configured
 in axis2.xml (for esb) ?

 Could someone from ESB team please give an answer for this?

 This configuration is to specify SSL protocol for HTTP transport of
 Synapse. What we specify in tomcat configuration is for the sevlet
 transport.


 I think we really need to revisit the SSL transport configurations and
 properly document those.

 [1] http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#SSL_Support



 On Tue, Jul 23, 2013 at 12:14 PM, Isuru Perera isu...@wso2.comwrote:

 Hi all,

 Thanks Miyuru and Ramith for the information.

 This is fixed in ESB 4.7.0 with ESBJAVA-2029 [1].

 The change is to add a parameter as follows. (I couldn't find about
 this in ESB Docs!)

 parameter name=SSLProtocol.../parameter

 I still have a doubt whether this can be used to achieve
 StackOverflow user's requirement as there is no place to specify 
 ciphers
 parameter.

 Appreciate any guidance on this.

 Thanks!

 [1] https://wso2.org/jira/browse/ESBJAVA-2029


 On Tue, Jul 23, 2013 at 9:10 AM, Isuru Perera isu...@wso2.comwrote:

 Hi,

 This is regarding StackOverflow question [1].

 Basically the user needs to configure sslProtocol + other parameters
 as defined in Tomcat connector [2].

 I gave a quick answer by looking at the docs. I informed that those
 parameters can be specified in HTTPS Servlet Transport since it is 
 based on
 the Tomcat connector.

 Please let me know how to achieve similar SSL configuration in NHTTP
 or PassThrough transport.

 Thanks!

 [1]
 http://stackoverflow.com/questions/17752636/wso2-esb-4-0-3-how-to-specify-sslprotocol-parameter-for-transport-listner-http
 [2] http://tomcat.apache.org/tomcat-7.0-doc/config/http.html

 --
 Isuru Perera
 Senior Software Engineer | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 Twitter: http://twitter.com/chrishantha | LinkedIn:
 http://lk.linkedin.com/in/chrishantha/




 --
 Isuru Perera
 Senior Software Engineer | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 Twitter: http://twitter.com/chrishantha | LinkedIn:
 http://lk.linkedin.com/in/chrishantha/

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




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

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




 --
 Isuru Perera
 Senior Software Engineer | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 Twitter: http://twitter.com/chrishantha | LinkedIn:
 http://lk.linkedin.com/in/chrishantha/




 --
 Isuru Perera
 Senior Software Engineer | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 Twitter: http://twitter.com/chrishantha | LinkedIn:
 http://lk.linkedin.com/in/chrishantha/

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




 --
 Jeewantha Dharmaparakrama

 Software Engineer; WSO2, Inc.; http://wso2.com/

 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/

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




 --
 Reka Thirunavukkarasu
 Software

Re: [Dev] Specifying sslProtocol parameter in Transport Listener of ESB

2013-08-30 Thread Jeewantha Dharmaparakrama
Please see
http://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html#getInstance(java.lang.String)
http://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#SSLContext


On Sat, Aug 31, 2013 at 7:03 AM, Jeewantha Dharmaparakrama 
jeewan...@wso2.com wrote:

 We can't pass ciphers to NIO or Passthru transport as we do in Servlet
 Transport. The provided functionality to specify the SSLProtocol to make
 javax.net.ssl.SSLContext. The default is TLS.

 Jeewantha


 On Fri, Aug 30, 2013 at 5:48 PM, Reka Thirunavukkarasu r...@wso2.comwrote:

 Hi


 On Mon, Jul 29, 2013 at 5:12 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 To get SSL context when making an HTTPS connection you need to do this.

 javax.net.ssl.SSLContext sslcontext =
 javax.net.ssl.SSLContext.getInstance(TLS);

 This depends on the JVM. For example on IBM JVM, it should be
 SSLContext.getInstance(SSL_TLS); [1]


 For the oracle jdk, how do we specify the SSLv3 in the NIO transport? As
 mentioned by Isuru, we need to pass ciphers as well in order to disable
 weak and medium cipher strength.

 After configuring the SSLv3 with ciphers, servlet transport is working
 fine. So how can we do the same in NIO transport for oracle JDK?

 Thanks,
 Reka


 [1]
 http://publib.boulder.ibm.com/infocenter/javasdk/v6r0/index.jsp?topic=%2Fcom.ibm.java.security.component.doc%2Fsecurity-component%2Fjsse2Docs%2Fsslcontext.html


 On Fri, Jul 26, 2013 at 11:06 AM, Isuru Perera isu...@wso2.com wrote:

 Hi,

 When comparing with Tomcat configuration options for SSL [1], it seems
 that the SSL transports for ESB lacks support for many important
 configurations.

 AFAIK, the option to specify SSL protocol only introduced in ESB 4.7.0.

 On Wed, Jul 24, 2013 at 10:53 AM, Isuru Perera isu...@wso2.com wrote:


 Hi,

  On Tue, Jul 23, 2013 at 12:54 PM, Ramith Jayasinghe 
 ram...@wso2.comwrote:

 So now whats the purpose of HttpsProtocols which is also configured
 in axis2.xml (for esb) ?

 Could someone from ESB team please give an answer for this?

 This configuration is to specify SSL protocol for HTTP transport of
 Synapse. What we specify in tomcat configuration is for the sevlet
 transport.


 I think we really need to revisit the SSL transport configurations and
 properly document those.

 [1]
 http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#SSL_Support



 On Tue, Jul 23, 2013 at 12:14 PM, Isuru Perera isu...@wso2.comwrote:

 Hi all,

 Thanks Miyuru and Ramith for the information.

 This is fixed in ESB 4.7.0 with ESBJAVA-2029 [1].

 The change is to add a parameter as follows. (I couldn't find about
 this in ESB Docs!)

 parameter name=SSLProtocol.../parameter

 I still have a doubt whether this can be used to achieve
 StackOverflow user's requirement as there is no place to specify 
 ciphers
 parameter.

 Appreciate any guidance on this.

 Thanks!

 [1] https://wso2.org/jira/browse/ESBJAVA-2029


 On Tue, Jul 23, 2013 at 9:10 AM, Isuru Perera isu...@wso2.comwrote:

 Hi,

 This is regarding StackOverflow question [1].

 Basically the user needs to configure sslProtocol + other
 parameters as defined in Tomcat connector [2].

 I gave a quick answer by looking at the docs. I informed that those
 parameters can be specified in HTTPS Servlet Transport since it is 
 based on
 the Tomcat connector.

 Please let me know how to achieve similar SSL configuration in
 NHTTP or PassThrough transport.

 Thanks!

 [1]
 http://stackoverflow.com/questions/17752636/wso2-esb-4-0-3-how-to-specify-sslprotocol-parameter-for-transport-listner-http
 [2] http://tomcat.apache.org/tomcat-7.0-doc/config/http.html

 --
 Isuru Perera
 Senior Software Engineer | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 Twitter: http://twitter.com/chrishantha | LinkedIn:
 http://lk.linkedin.com/in/chrishantha/




 --
 Isuru Perera
 Senior Software Engineer | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 Twitter: http://twitter.com/chrishantha | LinkedIn:
 http://lk.linkedin.com/in/chrishantha/

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




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

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




 --
 Isuru Perera
 Senior Software Engineer | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 Twitter: http://twitter.com/chrishantha | LinkedIn:
 http://lk.linkedin.com/in/chrishantha/




 --
 Isuru Perera
 Senior Software Engineer | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 Twitter: http://twitter.com/chrishantha | LinkedIn:
 http://lk.linkedin.com/in/chrishantha/

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




 --
 Jeewantha Dharmaparakrama

 Software Engineer; WSO2, Inc.; http://wso2.com/

 Phone : (+94) 774726790
 Skype

Re: [Dev] - java.nio.BufferOverflowException thrown at ELB side for different operations

2013-08-25 Thread Jeewantha Dharmaparakrama
Please provide the logs with wire-logs on :). Its difficult to analize the
stack trace since there can be many possibilities.
Jeewantha


On Mon, Aug 26, 2013 at 9:42 AM, Kasun Indrasiri ka...@wso2.com wrote:

 We are looking in to these issues.


 On Sun, Aug 25, 2013 at 12:40 PM, Evanthika Amarasiri 
 evanth...@wso2.comwrote:

 Noticed the below exception at ELB side while uploading a service.
 Noticed the same while accessing the Management Console yesterday.


 *
 TID: [0] [ELB] [2013-08-25 12:35:21,274] ERROR
 {org.apache.synapse.transport.passthru.SourceHandler} -  Unexoected error:
 null {org.apache.synapse.transport.passthru.SourceHandler}
 java.nio.BufferOverflowException
 at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:200)
  at
 org.apache.http.impl.nio.reactor.SessionOutputBufferImpl.write(SessionOutputBufferImpl.java:177)
  at
 org.apache.http.impl.nio.codecs.ChunkEncoder.write(ChunkEncoder.java:115)
  at org.apache.synapse.transport.passthru.Pipe.consume(Pipe.java:140)
 at
 org.apache.synapse.transport.passthru.SourceResponse.write(SourceResponse.java:158)
  at
 org.apache.synapse.transport.passthru.SourceHandler.outputReady(SourceHandler.java:253)
  at
 org.apache.http.impl.nio.DefaultNHttpServerConnection.produceOutput(DefaultNHttpServerConnection.java:316)
  at
 org.apache.synapse.transport.http.conn.LoggingNHttpServerConnection.produceOutput(LoggingNHttpServerConnection.java:112)
  at
 org.apache.synapse.transport.passthru.ServerIODispatch.onOutputReady(ServerIODispatch.java:87)
  at
 org.apache.synapse.transport.passthru.ServerIODispatch.onOutputReady(ServerIODispatch.java:39)
  at
 org.apache.http.impl.nio.reactor.AbstractIODispatch.outputReady(AbstractIODispatch.java:150)
  at
 org.apache.http.impl.nio.reactor.BaseIOReactor.writable(BaseIOReactor.java:180)
 at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:342)
  at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:316)
  at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:277)
 at
 org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:105)
  at
 org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:584)
  at java.lang.Thread.run(Thread.java:722)
 TID: [0] [ELB] [2013-08-25 12:35:21,276] ERROR
 {org.apache.synapse.transport.passthru.SourceHandler} -  Unexpected I/O
 error: java.nio.channels.ClosedChannelException
 {org.apache.synapse.transport.passthru.SourceHandler}
 java.nio.channels.ClosedChannelException
 at
 sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:249)
  at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:440)
 at
 org.apache.http.nio.reactor.ssl.SSLIOSession.sendEncryptedData(SSLIOSession.java:334)
  at
 org.apache.http.nio.reactor.ssl.SSLIOSession.outboundTransport(SSLIOSession.java:417)
  at
 org.apache.http.impl.nio.reactor.AbstractIODispatch.outputReady(AbstractIODispatch.java:152)
  at
 org.apache.http.impl.nio.reactor.BaseIOReactor.writable(BaseIOReactor.java:180)
  at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:342)
  at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:316)
  at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:277)
  at
 org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:105)
  at
 org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:584)
  at java.lang.Thread.run(Thread.java:722)


 Regards,
 Evanthika Amarasiri
 Senior Technical Lead - Quality Assurance
 Mobile: +94773125935
 *
 *
 wso2.com Lean Enterprise Middleware

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




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 71 536 4128
 Blog : http://kasunpanorama.blogspot.com/

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




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] LB Stabilization for Kernel 4.2.0 release

2013-08-21 Thread Jeewantha Dharmaparakrama
On Wed, Aug 21, 2013 at 7:39 AM, Sameera Jayasoma same...@wso2.com wrote:

 Can we have an update on the ELB issues?

This issue has been dragging for some time and its not been easy to fix it
cause the error is thrown from httpcore-nio runtime. While an HTTP request
being served, the connection gets closed abruptly and the server continues
to use a closed connection, hence the error is thrown. The problem is even
worse since its intermittent and cant get reproduced locally. This can
either be a bug in httpcore-nio or not be a bug at all. When a connection
is broken due to network inconsistencies, it is reasonable for the server
to throw an Exception.  But at the same time, httocore can erroneously be
using a closed connection. We cant analyze  the run time behaviour either
coz the issue does not get reproduced locally. Using EC2 setup used by QA
team for debugging purposes is not practical. So its a good idea if we can
have a clone of the Ec2 set-up for debugging purposes.

Jeewantha



 On Mon, Aug 19, 2013 at 2:41 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Evanthika,

 Can you kindly enable wire logs in the ELB in EC2 cluster and provide the
 logs when this exception is thrown?

 Thanks,
 Jeewantha.


 On Fri, Aug 16, 2013 at 4:22 PM, Afkham Azeez az...@wso2.com wrote:

 It was a configuration issue where the subDomain wasn't properly getting
 set.


 On Fri, Aug 16, 2013 at 1:07 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Folks,

 LB seems to be unstable when clustered with latest 4.2.0 kernal packs
 [1]. Though this was first thought of as a PTT issue (see thread@dev -
 java.nio.channels.ClosedChannelException thrown time to time on ELB
 console) there seems to be some inconstancy when nodes are joined to
 the cluster which we are currently looking into.

 When a management node is added to the cluster, only the following log
 message is printed in sout.

 INFO {org.wso2.carbon.core.clustering.hazelcast.util.MemberUtils} -
 Added member: Host:127.0.0.1, Remote Host:null, Port: 3999, HTTP:-1,
 HTTPS:-1, Domain: null, Sub-domain:null, Active:true

 This was checked with the packs built on 5th and 9th august [2] and as
 per discussion with Azeez and Sameera, the products do not get clustered
 properly. When management console is accessed, a SOAP Fault pops up on the
 browser as

 soapenv:Envelopesoapenv:
 BodynullResponseTimestampThu Aug 15 2013 16:55:05 GMT+0530
 (IST)/TimestampAckFailure/AckErrorsShortMessageGateway
 Error/ShortMessageLongMessageNo application members available
 /LongMessageErrorCode500
 /ErrorCodeSeverityCodeError/SeverityCodeErrorClassificationRequestError/ErrorClassification/ErrorsServiceNamenull/ServiceNameResponseCodenull/ResponseCodeContentTypenull/ContentTypeVersion1.5.1/Version/nullResponse/soapenv:Body/soapenv:Envelope

 and with an Exception at the ELB backend

 [2013-08-15 16:55:05,407] ERROR - TenantAwareLoadBalanceEndpoint No
 application members available
 [2013-08-15 16:55:05,909]  WARN - SourceHandler Illegal incoming
 connection state: REQUEST_DONE . Possibly two send backs are happening for
 the same request
 [2013-08-15 16:55:05,909]  WARN - SourceHandler Trying to write
 response body while the handler is in an inconsistent state REQUEST_DONE
 [2013-08-15 16:55:05,910] ERROR - TenantAwareLoadBalanceEndpoint No
 application members available
 [2013-08-15 16:57:28,353] ERROR - TenantAwareLoadBalanceEndpoint No
 application members available
 [2013-08-15 16:57:28,708]  WARN - SourceHandler Illegal incoming
 connection state: REQUEST_DONE . Possibly two send backs are happening for
 the same request
 [2013-08-15 16:57:28,709]  WARN - SourceHandler Trying to write
 response body while the handler is in an inconsistent state REQUEST_DONE
 [2013-08-15 16:57:28,709] ERROR - TenantAwareLoadBalanceEndpoint No
 application members available
 [2013-08-15 16:57:28,710] ERROR - SourceHandler Unexpected I/O error:
 java.nio.channels.ClosedChannelException
 java.nio.channels.ClosedChannelException
 at
 sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:135)
 at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:326)
 at
 org.apache.http.nio.reactor.ssl.SSLIOSession.sendEncryptedData(SSLIOSession.java:331)
 at
 org.apache.http.nio.reactor.ssl.SSLIOSession.outboundTransport(SSLIOSession.java:411)
 at
 org.apache.http.impl.nio.reactor.AbstractIODispatch.outputReady(AbstractIODispatch.java:150)
 at
 org.apache.http.impl.nio.reactor.BaseIOReactor.writable(BaseIOReactor.java:181)
 at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:346)
 at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:320)
 at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:280)
 at
 org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106

Re: [Dev] LB Stabilization for Kernel 4.2.0 release

2013-08-21 Thread Jeewantha Dharmaparakrama
On Mon, Aug 19, 2013 at 2:41 PM, Jeewantha Dharmaparakrama 
jeewan...@wso2.com wrote:

 Hi Evanthika,

 Can you kindly enable wire logs in the ELB in EC2 cluster and provide the
 logs when this exception is thrown?

The error logs are kinda urgent. It would be easy if we get access to the
QA EC2 setup.
Jeewantha.


 Thanks,
 Jeewantha.


 On Fri, Aug 16, 2013 at 4:22 PM, Afkham Azeez az...@wso2.com wrote:

 It was a configuration issue where the subDomain wasn't properly getting
 set.


 On Fri, Aug 16, 2013 at 1:07 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Folks,

 LB seems to be unstable when clustered with latest 4.2.0 kernal packs
 [1]. Though this was first thought of as a PTT issue (see thread@dev - 
 java.nio.channels.ClosedChannelException
 thrown time to time on ELB console) there seems to be some inconstancy
 when nodes are joined to the cluster which we are currently looking into.

 When a management node is added to the cluster, only the following log
 message is printed in sout.

 INFO {org.wso2.carbon.core.clustering.hazelcast.util.MemberUtils} -
 Added member: Host:127.0.0.1, Remote Host:null, Port: 3999, HTTP:-1,
 HTTPS:-1, Domain: null, Sub-domain:null, Active:true

 This was checked with the packs built on 5th and 9th august [2] and as
 per discussion with Azeez and Sameera, the products do not get clustered
 properly. When management console is accessed, a SOAP Fault pops up on the
 browser as

 soapenv:Envelopesoapenv:
 BodynullResponseTimestampThu Aug 15 2013 16:55:05 GMT+0530
 (IST)/TimestampAckFailure/AckErrorsShortMessageGateway
 Error/ShortMessageLongMessageNo application members available
 /LongMessageErrorCode500
 /ErrorCodeSeverityCodeError/SeverityCodeErrorClassificationRequestError/ErrorClassification/ErrorsServiceNamenull/ServiceNameResponseCodenull/ResponseCodeContentTypenull/ContentTypeVersion1.5.1/Version/nullResponse/soapenv:Body/soapenv:Envelope

 and with an Exception at the ELB backend

 [2013-08-15 16:55:05,407] ERROR - TenantAwareLoadBalanceEndpoint No
 application members available
 [2013-08-15 16:55:05,909]  WARN - SourceHandler Illegal incoming
 connection state: REQUEST_DONE . Possibly two send backs are happening for
 the same request
 [2013-08-15 16:55:05,909]  WARN - SourceHandler Trying to write response
 body while the handler is in an inconsistent state REQUEST_DONE
 [2013-08-15 16:55:05,910] ERROR - TenantAwareLoadBalanceEndpoint No
 application members available
 [2013-08-15 16:57:28,353] ERROR - TenantAwareLoadBalanceEndpoint No
 application members available
 [2013-08-15 16:57:28,708]  WARN - SourceHandler Illegal incoming
 connection state: REQUEST_DONE . Possibly two send backs are happening for
 the same request
 [2013-08-15 16:57:28,709]  WARN - SourceHandler Trying to write response
 body while the handler is in an inconsistent state REQUEST_DONE
 [2013-08-15 16:57:28,709] ERROR - TenantAwareLoadBalanceEndpoint No
 application members available
 [2013-08-15 16:57:28,710] ERROR - SourceHandler Unexpected I/O error:
 java.nio.channels.ClosedChannelException
 java.nio.channels.ClosedChannelException
 at
 sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:135)
 at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:326)
 at
 org.apache.http.nio.reactor.ssl.SSLIOSession.sendEncryptedData(SSLIOSession.java:331)
 at
 org.apache.http.nio.reactor.ssl.SSLIOSession.outboundTransport(SSLIOSession.java:411)
 at
 org.apache.http.impl.nio.reactor.AbstractIODispatch.outputReady(AbstractIODispatch.java:150)
 at
 org.apache.http.impl.nio.reactor.BaseIOReactor.writable(BaseIOReactor.java:181)
 at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:346)
 at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:320)
 at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:280)
 at
 org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106)
 at
 org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:604)
 at java.lang.Thread.run(Thread.java:662)

 ELB tries to send a request to the management node but the application
 member is not found, hence gets a ClosedChannelException.

 [1] https://wso2.org/jira/browse/LB-74
 [2] 
 http://ec2-54-224-94-128.compute-1.amazonaws.com/05-08-2013/http://www.google.com/url?q=http%3A%2F%2Fec2-54-224-94-128.compute-1.amazonaws.com%2F05-08-2013%2Fsa=Dsntz=1usg=AFQjCNGFLcc1dySI1P2yUGSGveqEpgXIug
 http://ec2-54-224-94-128.compute-1.amazonaws.com/09-08-2013/

 Jeewantha.



 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/




 --
 *Afkham Azeez*
 Director of Architecture; WSO2

Re: [Dev] LB Stabilization for Kernel 4.2.0 release

2013-08-21 Thread Jeewantha Dharmaparakrama
On Wed, Aug 21, 2013 at 7:12 PM, Evanthika Amarasiri evanth...@wso2.comwrote:

 Hi Jeewantha,

 I have enabled wire logs in ELB  sent you setup information on a separate
 email.

Thanks a lot.


 Regards,
 Evanthika


 On Wed, Aug 21, 2013 at 4:07 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:




 On Mon, Aug 19, 2013 at 2:41 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Evanthika,

 Can you kindly enable wire logs in the ELB in EC2 cluster and provide
 the logs when this exception is thrown?

 The error logs are kinda urgent. It would be easy if we get access to the
 QA EC2 setup.
 Jeewantha.


 Thanks,
 Jeewantha.


 On Fri, Aug 16, 2013 at 4:22 PM, Afkham Azeez az...@wso2.com wrote:

 It was a configuration issue where the subDomain wasn't properly
 getting set.


 On Fri, Aug 16, 2013 at 1:07 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Folks,

 LB seems to be unstable when clustered with latest 4.2.0 kernal packs
 [1]. Though this was first thought of as a PTT issue (see thread@dev- 
 java.nio.channels.ClosedChannelException
 thrown time to time on ELB console) there seems to be some
 inconstancy when nodes are joined to the cluster which we are currently
 looking into.

 When a management node is added to the cluster, only the following log
 message is printed in sout.

 INFO {org.wso2.carbon.core.clustering.hazelcast.util.MemberUtils} -
 Added member: Host:127.0.0.1, Remote Host:null, Port: 3999, HTTP:-1,
 HTTPS:-1, Domain: null, Sub-domain:null, Active:true

 This was checked with the packs built on 5th and 9th august [2] and as
 per discussion with Azeez and Sameera, the products do not get clustered
 properly. When management console is accessed, a SOAP Fault pops up on the
 browser as

 soapenv:Envelopesoapenv:
 BodynullResponseTimestampThu Aug 15 2013 16:55:05 GMT+0530
 (IST)/TimestampAckFailure/AckErrorsShortMessageGateway
 Error/ShortMessageLongMessageNo application members available
 /LongMessageErrorCode500
 /ErrorCodeSeverityCodeError/SeverityCodeErrorClassificationRequestError/ErrorClassification/ErrorsServiceNamenull/ServiceNameResponseCodenull/ResponseCodeContentTypenull/ContentTypeVersion1.5.1/Version/nullResponse/soapenv:Body/soapenv:Envelope

 and with an Exception at the ELB backend

 [2013-08-15 16:55:05,407] ERROR - TenantAwareLoadBalanceEndpoint No
 application members available
 [2013-08-15 16:55:05,909]  WARN - SourceHandler Illegal incoming
 connection state: REQUEST_DONE . Possibly two send backs are happening for
 the same request
 [2013-08-15 16:55:05,909]  WARN - SourceHandler Trying to write
 response body while the handler is in an inconsistent state REQUEST_DONE
 [2013-08-15 16:55:05,910] ERROR - TenantAwareLoadBalanceEndpoint No
 application members available
 [2013-08-15 16:57:28,353] ERROR - TenantAwareLoadBalanceEndpoint No
 application members available
 [2013-08-15 16:57:28,708]  WARN - SourceHandler Illegal incoming
 connection state: REQUEST_DONE . Possibly two send backs are happening for
 the same request
 [2013-08-15 16:57:28,709]  WARN - SourceHandler Trying to write
 response body while the handler is in an inconsistent state REQUEST_DONE
 [2013-08-15 16:57:28,709] ERROR - TenantAwareLoadBalanceEndpoint No
 application members available
 [2013-08-15 16:57:28,710] ERROR - SourceHandler Unexpected I/O error:
 java.nio.channels.ClosedChannelException
 java.nio.channels.ClosedChannelException
 at
 sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:135)
 at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:326)
 at
 org.apache.http.nio.reactor.ssl.SSLIOSession.sendEncryptedData(SSLIOSession.java:331)
 at
 org.apache.http.nio.reactor.ssl.SSLIOSession.outboundTransport(SSLIOSession.java:411)
 at
 org.apache.http.impl.nio.reactor.AbstractIODispatch.outputReady(AbstractIODispatch.java:150)
 at
 org.apache.http.impl.nio.reactor.BaseIOReactor.writable(BaseIOReactor.java:181)
 at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:346)
 at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:320)
 at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:280)
 at
 org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106)
 at
 org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:604)
 at java.lang.Thread.run(Thread.java:662)

 ELB tries to send a request to the management node but the application
 member is not found, hence gets a ClosedChannelException.

 [1] https://wso2.org/jira/browse/LB-74
 [2] 
 http://ec2-54-224-94-128.compute-1.amazonaws.com/05-08-2013/http://www.google.com/url?q=http%3A%2F%2Fec2-54-224-94-128.compute-1.amazonaws.com%2F05-08-2013%2Fsa=Dsntz=1usg=AFQjCNGFLcc1dySI1P2yUGSGveqEpgXIug
 http://ec2-54-224-94-128.compute-1.amazonaws.com/09-08-2013/

 Jeewantha

Re: [Dev] LB Stabilization for Kernel 4.2.0 release

2013-08-19 Thread Jeewantha Dharmaparakrama
Hi Evanthika,

Can you kindly enable wire logs in the ELB in EC2 cluster and provide the
logs when this exception is thrown?

Thanks,
Jeewantha.


On Fri, Aug 16, 2013 at 4:22 PM, Afkham Azeez az...@wso2.com wrote:

 It was a configuration issue where the subDomain wasn't properly getting
 set.


 On Fri, Aug 16, 2013 at 1:07 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Folks,

 LB seems to be unstable when clustered with latest 4.2.0 kernal packs
 [1]. Though this was first thought of as a PTT issue (see thread@dev - 
 java.nio.channels.ClosedChannelException
 thrown time to time on ELB console) there seems to be some inconstancy
 when nodes are joined to the cluster which we are currently looking into.

 When a management node is added to the cluster, only the following log
 message is printed in sout.

 INFO {org.wso2.carbon.core.clustering.hazelcast.util.MemberUtils} -
 Added member: Host:127.0.0.1, Remote Host:null, Port: 3999, HTTP:-1,
 HTTPS:-1, Domain: null, Sub-domain:null, Active:true

 This was checked with the packs built on 5th and 9th august [2] and as
 per discussion with Azeez and Sameera, the products do not get clustered
 properly. When management console is accessed, a SOAP Fault pops up on the
 browser as

 soapenv:Envelopesoapenv:
 BodynullResponseTimestampThu Aug 15 2013 16:55:05 GMT+0530
 (IST)/TimestampAckFailure/AckErrorsShortMessageGateway
 Error/ShortMessageLongMessageNo application members available
 /LongMessageErrorCode500
 /ErrorCodeSeverityCodeError/SeverityCodeErrorClassificationRequestError/ErrorClassification/ErrorsServiceNamenull/ServiceNameResponseCodenull/ResponseCodeContentTypenull/ContentTypeVersion1.5.1/Version/nullResponse/soapenv:Body/soapenv:Envelope

 and with an Exception at the ELB backend

 [2013-08-15 16:55:05,407] ERROR - TenantAwareLoadBalanceEndpoint No
 application members available
 [2013-08-15 16:55:05,909]  WARN - SourceHandler Illegal incoming
 connection state: REQUEST_DONE . Possibly two send backs are happening for
 the same request
 [2013-08-15 16:55:05,909]  WARN - SourceHandler Trying to write response
 body while the handler is in an inconsistent state REQUEST_DONE
 [2013-08-15 16:55:05,910] ERROR - TenantAwareLoadBalanceEndpoint No
 application members available
 [2013-08-15 16:57:28,353] ERROR - TenantAwareLoadBalanceEndpoint No
 application members available
 [2013-08-15 16:57:28,708]  WARN - SourceHandler Illegal incoming
 connection state: REQUEST_DONE . Possibly two send backs are happening for
 the same request
 [2013-08-15 16:57:28,709]  WARN - SourceHandler Trying to write response
 body while the handler is in an inconsistent state REQUEST_DONE
 [2013-08-15 16:57:28,709] ERROR - TenantAwareLoadBalanceEndpoint No
 application members available
 [2013-08-15 16:57:28,710] ERROR - SourceHandler Unexpected I/O error:
 java.nio.channels.ClosedChannelException
 java.nio.channels.ClosedChannelException
 at
 sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:135)
 at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:326)
 at
 org.apache.http.nio.reactor.ssl.SSLIOSession.sendEncryptedData(SSLIOSession.java:331)
 at
 org.apache.http.nio.reactor.ssl.SSLIOSession.outboundTransport(SSLIOSession.java:411)
 at
 org.apache.http.impl.nio.reactor.AbstractIODispatch.outputReady(AbstractIODispatch.java:150)
 at
 org.apache.http.impl.nio.reactor.BaseIOReactor.writable(BaseIOReactor.java:181)
 at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:346)
 at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:320)
 at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:280)
 at
 org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106)
 at
 org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:604)
 at java.lang.Thread.run(Thread.java:662)

 ELB tries to send a request to the management node but the application
 member is not found, hence gets a ClosedChannelException.

 [1] https://wso2.org/jira/browse/LB-74
 [2] 
 http://ec2-54-224-94-128.compute-1.amazonaws.com/05-08-2013/http://www.google.com/url?q=http%3A%2F%2Fec2-54-224-94-128.compute-1.amazonaws.com%2F05-08-2013%2Fsa=Dsntz=1usg=AFQjCNGFLcc1dySI1P2yUGSGveqEpgXIug
 http://ec2-54-224-94-128.compute-1.amazonaws.com/09-08-2013/

 Jeewantha.



 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/




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

Re: [Dev] [ELB] Null pointer while starting the pack.

2013-08-17 Thread Jeewantha Dharmaparakrama
)
  at
 org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:114)
 at
 org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:199)
  at
 org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
  at
 org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:337)
 at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:169)
  at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 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: java.lang.ClassNotFoundException: org.apache.http.HttpHost*
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
  at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
  at
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  ... 28 more



 On Sat, Aug 17, 2013 at 2:47 AM, Pradeep Fernando prad...@wso2.comwrote:

 observed, below while starting up the branch built pack..




 java.lang.NullPointerException
 at
 org.apache.synapse.transport.passthru.PassThroughHttpListener.start(PassThroughHttpListener.java:213)
 at
 org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:168)
 at
 org.apache.axis2.engine.ListenerManager.startSystem(ListenerManager.java:186)
 at
 org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeInitialization(StartupFinalizerServiceComponent.java:166)
 at
 org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.serviceChanged(StartupFinalizerServiceComponent.java:284)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)




 --
 Sameera Jayasoma,
 Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://sameera.adahas.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections

 Lean . Enterprise . Middleware

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




 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/




 --
 Sameera Jayasoma,
 Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://sameera.adahas.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections

 Lean . Enterprise . Middleware




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] LB Stabilization for Kernel 4.2.0 release

2013-08-16 Thread Jeewantha Dharmaparakrama
Hi Folks,

LB seems to be unstable when clustered with latest 4.2.0 kernal packs [1].
Though this was first thought of as a PTT issue (see thread@dev -
java.nio.channels.ClosedChannelException
thrown time to time on ELB console) there seems to be some inconstancy
when nodes are joined to the cluster which we are currently looking into.

When a management node is added to the cluster, only the following log
message is printed in sout.

INFO {org.wso2.carbon.core.clustering.hazelcast.util.MemberUtils} -  Added
member: Host:127.0.0.1, Remote Host:null, Port: 3999, HTTP:-1, HTTPS:-1,
Domain: null, Sub-domain:null, Active:true

This was checked with the packs built on 5th and 9th august [2] and as per
discussion with Azeez and Sameera, the products do not get clustered
properly. When management console is accessed, a SOAP Fault pops up on the
browser as

soapenv:Envelopesoapenv:
BodynullResponseTimestampThu Aug 15 2013 16:55:05 GMT+0530
(IST)/TimestampAckFailure/AckErrorsShortMessageGateway
Error/ShortMessageLongMessageNo application members available
/LongMessageErrorCode500
/ErrorCodeSeverityCodeError/SeverityCodeErrorClassificationRequestError/ErrorClassification/ErrorsServiceNamenull/ServiceNameResponseCodenull/ResponseCodeContentTypenull/ContentTypeVersion1.5.1/Version/nullResponse/soapenv:Body/soapenv:Envelope

and with an Exception at the ELB backend

[2013-08-15 16:55:05,407] ERROR - TenantAwareLoadBalanceEndpoint No
application members available
[2013-08-15 16:55:05,909]  WARN - SourceHandler Illegal incoming connection
state: REQUEST_DONE . Possibly two send backs are happening for the same
request
[2013-08-15 16:55:05,909]  WARN - SourceHandler Trying to write response
body while the handler is in an inconsistent state REQUEST_DONE
[2013-08-15 16:55:05,910] ERROR - TenantAwareLoadBalanceEndpoint No
application members available
[2013-08-15 16:57:28,353] ERROR - TenantAwareLoadBalanceEndpoint No
application members available
[2013-08-15 16:57:28,708]  WARN - SourceHandler Illegal incoming connection
state: REQUEST_DONE . Possibly two send backs are happening for the same
request
[2013-08-15 16:57:28,709]  WARN - SourceHandler Trying to write response
body while the handler is in an inconsistent state REQUEST_DONE
[2013-08-15 16:57:28,709] ERROR - TenantAwareLoadBalanceEndpoint No
application members available
[2013-08-15 16:57:28,710] ERROR - SourceHandler Unexpected I/O error:
java.nio.channels.ClosedChannelException
java.nio.channels.ClosedChannelException
at
sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:135)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:326)
at
org.apache.http.nio.reactor.ssl.SSLIOSession.sendEncryptedData(SSLIOSession.java:331)
at
org.apache.http.nio.reactor.ssl.SSLIOSession.outboundTransport(SSLIOSession.java:411)
at
org.apache.http.impl.nio.reactor.AbstractIODispatch.outputReady(AbstractIODispatch.java:150)
at
org.apache.http.impl.nio.reactor.BaseIOReactor.writable(BaseIOReactor.java:181)
at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:346)
at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:320)
at
org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:280)
at
org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106)
at
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:604)
at java.lang.Thread.run(Thread.java:662)

ELB tries to send a request to the management node but the application
member is not found, hence gets a ClosedChannelException.

[1] https://wso2.org/jira/browse/LB-74
[2] 
http://ec2-54-224-94-128.compute-1.amazonaws.com/05-08-2013/http://www.google.com/url?q=http%3A%2F%2Fec2-54-224-94-128.compute-1.amazonaws.com%2F05-08-2013%2Fsa=Dsntz=1usg=AFQjCNGFLcc1dySI1P2yUGSGveqEpgXIug
http://ec2-54-224-94-128.compute-1.amazonaws.com/09-08-2013/

Jeewantha.



-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failure in Kernel trunk

2013-08-14 Thread Jeewantha Dharmaparakrama
 - Integration . SKIPPED
 [INFO] WSO2 Carbon - Security Verification Service ... SKIPPED
 [INFO] WSO2 Carbon - Integration Core  SKIPPED
 [INFO] WSO2 Carbon - Integration Testing Framework ... SKIPPED
 [INFO] WSO2 Carbon - Integration Tests ... SKIPPED
 [INFO] WSO2 Carbon - Product Parent .. SKIPPED
 [INFO] WSO2 Carbon - UI styles ... SKIPPED
 [INFO] WSO2 Carbon - Style Feature ... SKIPPED
 [INFO] WSO2 Carbon - Profile Generation .. SKIPPED
 [INFO] WSO2 Carbon - Distribution  SKIPPED
 [INFO] Distribution-Aggregate  SKIPPED
 [INFO] WSO2 Carbon - Aggregate Pom ... SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 1:40.606s
 [INFO] Finished at: Wed Aug 14 11:59:38 IST 2013
 [INFO] Final Memory: 346M/1727M
 [INFO]
 
 [ERROR] Failed to execute goal on project axis2-client: Could not resolve
 dependencies for project
 org.apache.axis2.wso2:axis2-client:bundle:1.6.1.wso2v10: Failure to find
 org.apache.httpcomponents.wso2:httpcore:jar:4.3.0.wso2v1 in
 http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
 local repository, resolution will not be reattempted until the update
 interval of wso2-nexus has elapsed or updates are forced - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the
 command
 [ERROR]   mvn goals -rf :axis2-client


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

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

 *Lean . Enterprise . Middleware




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can we move platform/dependecies/orbit/httpcore to orbit/httpcore

2013-08-14 Thread Jeewantha Dharmaparakrama
changed in r181104.
orbit.version.httpcore4.3.0.wso2v1/orbit.version.httpcore


On Wed, Aug 14, 2013 at 7:04 PM, Pradeep Fernando prad...@wso2.com wrote:

 Hi Jeewantha.

 please update the orbit version located in kernel/parent

 orbit.version.httpcore4.1.0-wso2v1/orbit.version.httpcore


 On Wed, Aug 14, 2013 at 6:28 PM, Pradeep Fernando prad...@wso2.comwrote:

 Hi,

 kernel/axis2-client depends on http-core. This is a blocker. can you
 please move this orbit ASAP... :)

 thanks
 --Pradeep


 On Wed, Aug 14, 2013 at 2:51 PM, Kasun Indrasiri ka...@wso2.com wrote:




 On Wed, Aug 14, 2013 at 12:08 PM, Shameera Rathnayaka shame...@wso2.com
  wrote:

 Hi,

 As i observe platform/dependencies pom doesn't have httpcore module
 (but there is a httpcore directory in platform/dependencies) and there is a
 platform/dependecies/orbit/httpcore orbit bundle. It seems the better place
 for put this httpcore orbit is orbit/httpcore not
 platform/dependecies/orbit/httpcore . do we have any blockers for this 
 move?

 +1. We don't need to have httpcore source locally.


 Thank,
 Shameera.
 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT
 apache.org shame...@apache.org*
 *phone:  +9471 922 1454*
 *
 *
 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 71 536 4128
 Blog : http://kasunpanorama.blogspot.com/

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




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

 blog: http://pradeepfernando.blogspot.com
 m: +94776603662




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

 blog: http://pradeepfernando.blogspot.com
 m: +94776603662




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] mediation-initializer cannot be built.

2013-08-13 Thread Jeewantha Dharmaparakrama
The version for

dependency
groupIdorg.wso2.carbon/groupId
artifactIdorg.wso2.carbon.caching.core/artifactId
/dependency

should be added to dependencyManagement tag in the parent pom file.
Please fix this asap.

Thanks.


On Tue, Aug 13, 2013 at 11:15 AM, Jeewantha Dharmaparakrama 
jeewan...@wso2.com wrote:

 Hi,

 The pom file
 carbon/platform/trunk/components/mediation-initializer/org.wso2.carbon.mediation.initializer/pom.xml
 seems to be erroneous.

 mvn clean install -Dmaven.test.skip=true
 [INFO] Scanning for projects...
 [ERROR] The build could not read 1 project - [Help 1]
 [ERROR]
 [ERROR]   The project
 org.wso2.carbon:org.wso2.carbon.mediation.initializer:4.2.0-SNAPSHOT
 (/mnt/wso2/wso2_stuff/development/public/carbon/platform/trunk/components/mediation-initializer/org.wso2.carbon.mediation.initializer/pom.xml)
 has 1 error
 [ERROR] 'dependencies.dependency.version' for
 org.wso2.carbon:org.wso2.carbon.caching.core:jar is missing. @ line 78,
 column 21
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException


 Jeewantha.


 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Latest ELB spins after a simple load test/long running test

2013-08-12 Thread Jeewantha Dharmaparakrama
Working on it


On Tue, Aug 13, 2013 at 10:27 AM, Kasun Indrasiri ka...@wso2.com wrote:

 We are done with the migration to latest httpcore-nio 4.3.

 @Jeewantha/Vanji : Please get new ELB and ESB packs with the required
 changes.


 On Thu, Aug 8, 2013 at 11:24 AM, Evanthika Amarasiri 
 evanth...@wso2.comwrote:

 Thanks Kasun.

 - Evanthika


 On Thu, Aug 8, 2013 at 11:22 AM, Kasun Indrasiri ka...@wso2.com wrote:

 I think this is the CPU spinning issue which occurs due to a JDK bug. We
 will provide, pack with upgraded httpcore + the fix for spinning issue
 ASAP.


 On Thu, Aug 8, 2013 at 11:10 AM, Evanthika Amarasiri evanth...@wso2.com
  wrote:

 Hi,

 We setup a worker/manager separated cluster with the latest ELB. Then
 we setup a long running test and noticed the CPU usage going up (100%).
 Even after stopping the long running test, the CPU usage remained the same.

 Regards,
 Evanthika Amarasiri
 Senior Technical Lead - Quality Assurance
 Mobile: +94773125935
 *
 *
 wso2.com Lean Enterprise Middleware




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 71 536 4128
 Blog : http://kasunpanorama.blogspot.com/





 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 71 536 4128
 Blog : http://kasunpanorama.blogspot.com/




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] mediation-initializer cannot be built.

2013-08-12 Thread Jeewantha Dharmaparakrama
Hi,

The pom file
carbon/platform/trunk/components/mediation-initializer/org.wso2.carbon.mediation.initializer/pom.xml
seems to be erroneous.

mvn clean install -Dmaven.test.skip=true
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project - [Help 1]
[ERROR]
[ERROR]   The project
org.wso2.carbon:org.wso2.carbon.mediation.initializer:4.2.0-SNAPSHOT
(/mnt/wso2/wso2_stuff/development/public/carbon/platform/trunk/components/mediation-initializer/org.wso2.carbon.mediation.initializer/pom.xml)
has 1 error
[ERROR] 'dependencies.dependency.version' for
org.wso2.carbon:org.wso2.carbon.caching.core:jar is missing. @ line 78,
column 21
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException


Jeewantha.


-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Tenant domain has not been set in CarbonContext. NPE in ELB

2013-08-09 Thread Jeewantha Dharmaparakrama
Hi,

Why do I get this when ELB is clustered with ESB. I downloaded the ELB from
[1]

[2013-08-09 15:27:22,852] ERROR - NativeWorkerPool Uncaught exception
java.lang.NullPointerException: Tenant domain has not been set in
CarbonContext
at
org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:79)
at
org.wso2.carbon.registry.core.utils.RegistryUtils.getCacheManager(RegistryUtils.java:289)
at
org.wso2.carbon.registry.core.utils.RegistryUtils.getResourceCache(RegistryUtils.java:272)
at
org.wso2.carbon.registry.core.caching.CacheBackedRegistry.getCache(CacheBackedRegistry.java:62)
at
org.wso2.carbon.registry.core.caching.CacheBackedRegistry.resourceExists(CacheBackedRegistry.java:246)
at
org.wso2.carbon.registry.core.session.UserRegistry.resourceExists(UserRegistry.java:629)
at
org.wso2.carbon.lb.endpoint.internal.RegistryManager.getMapping(RegistryManager.java:39)
at
org.wso2.carbon.lb.endpoint.endpoint.TenantAwareLoadBalanceEndpoint.send(TenantAwareLoadBalanceEndpoint.java:232)
at
org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:95)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:71)
at
org.apache.synapse.mediators.filters.InMediator.mediate(InMediator.java:55)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:71)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:114)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:199)
at
org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:337)
at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:169)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

[1] http://ec2-54-224-94-128.compute-1.amazonaws.com/05-08-2013/

Jeewantha

-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] UnsupportedOperationException when trying to cluster ESB with worker manager setup

2013-08-07 Thread Jeewantha Dharmaparakrama
Hi,

What is the reason for this exception?

[2013-08-07 12:02:14,278] FATAL - CarbonServerManager WSO2 Carbon
initialization Failed
java.lang.UnsupportedOperationException: setNodeManager is no longer
supported
at
org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent.setNodeManager(HazelcastClusteringAgent.java:368)
at
org.apache.axis2.deployment.ClusterBuilder.loadNodeManager(ClusterBuilder.java:347)
at
org.apache.axis2.deployment.ClusterBuilder.buildCluster(ClusterBuilder.java:100)
at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:186)
at
org.wso2.carbon.core.CarbonAxisConfigurator.populateAxisConfiguration(CarbonAxisConfigurator.java:308)
at
org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfiguration(CarbonAxisConfigurator.java:188)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
at
org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65)
at
org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:398)
at
org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:290)
at
org.wso2.carbon.core.init.OSGiAxis2ServicesListener.bundleChanged(OSGiAxis2ServicesListener.java:84)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

Jeewantha
-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] java.nio.channels.ClosedChannelException thrown time to time on ELB console

2013-08-06 Thread Jeewantha Dharmaparakrama
What is the ELB pack I should use to reproduce this?


On Mon, Aug 5, 2013 at 4:32 PM, Nirmal Fernando nir...@wso2.com wrote:

 Thanks for looking into this.


 On Mon, Aug 5, 2013 at 4:27 PM, Kasun Indrasiri ka...@wso2.com wrote:

 Hi Jeewantha,

 Lets check with a local deployment with the latest packs.


 On Fri, Aug 2, 2013 at 3:39 PM, Nirmal Fernando nir...@wso2.com wrote:

 Hi ESB team,

 Can you please own this passthru transport issue too?


 On Fri, Aug 2, 2013 at 3:36 PM, Nirodha Pramod niro...@wso2.com wrote:

 Hi,

 This issue occurs very frequently now. When this exception occurred
 then the mgt console operations become annoyingly slow. and have to restart
 ELB.

 regards,
 Nirodha




 On Thu, Aug 1, 2013 at 9:10 AM, Nirodha Pramod niro...@wso2.comwrote:

 Hi,

 Observed that this usually happens when working with the mgt console
 operations. Didn't occur much when doing service invocations.

 regards,
 Nirodha


 On Wed, Jul 31, 2013 at 11:38 AM, Evanthika Amarasiri 
 evanth...@wso2.com wrote:

 Hi,

 We see a java.nio.channels.ClosedChannelException on the ELB node of
 a worker manager separated setup time to time. [1]


 TID: [0] [ELB] [2013-07-31 11:23:07,866]  WARN
 {org.apache.synapse.transport.passthru.SourceHandler} -  Illegal incoming
 connection state: REQUEST_DONE . Possibly two send backs are happening 
 for
 the same request {org.apache.synapse.transport.passthru.SourceHandler}
 TID: [0] [ELB] [2013-07-31 11:23:07,866]  WARN
 {org.apache.synapse.transport.passthru.SourceHandler} -  Trying to write
 response body while the handler is in an inconsistent state REQUEST_DONE
 {org.apache.synapse.transport.passthru.SourceHandler}
 TID: [0] [ELB] [2013-07-31 11:23:07,867] ERROR
 {org.apache.synapse.transport.passthru.SourceHandler} -  Unexpected I/O
 error: java.nio.channels.ClosedChannelException
 {org.apache.synapse.transport.passthru.SourceHandler}
 java.nio.channels.ClosedChannelException
 at
 sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:249)
 at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:440)
  at
 org.apache.http.nio.reactor.ssl.SSLIOSession.sendEncryptedData(SSLIOSession.java:331)
 at
 org.apache.http.nio.reactor.ssl.SSLIOSession.outboundTransport(SSLIOSession.java:411)
  at
 org.apache.http.impl.nio.reactor.AbstractIODispatch.outputReady(AbstractIODispatch.java:150)
 at
 org.apache.http.impl.nio.reactor.BaseIOReactor.writable(BaseIOReactor.java:181)
  at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:346)
 at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:320)
  at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:280)
 at
 org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106)
  at
 org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:604)
 at java.lang.Thread.run(Thread.java:722)

 [1] - https://wso2.org/jira/browse/LB-74

 Regards,
 Evanthika Amarasiri
 Technical Lead - Quality Assurance
 Management Committee - QA Technologies
 Mobile: +94773125935
 *
 *
 wso2.com Lean Enterprise Middleware

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




 --
 *
 *
 *Nirodha Gallage*
 Senior Software Engineer, QA.
 WSO2 Inc.: http://wso2.com/
 Mobile: +94716429078




 --
 *
 *
 *Nirodha Gallage*
 Senior Software Engineer, QA.
 WSO2 Inc.: http://wso2.com/
 Mobile: +94716429078

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




 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 71 536 4128
 Blog : http://kasunpanorama.blogspot.com/




 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Status of ESB 4.8.0 on kernal 4.2.0

2013-08-06 Thread Jeewantha Dharmaparakrama
Hi Folks,

Following are the test results of the pack we built last Friday. The tests
were run one by one since we cannot run all the tests in one go because
many tests get skipped.
However we noticed an API change on org.wso2.carbon.user.core hence
almost all the tests were skiped on the pack we built today. Once the
needful change is done on the test framework we could provide an ESB pack
for QA.



passed   failed skipped

Server-Stratup
-1   0  0
Throttle-mediator-Test -
6   1  0
ProxyService-Test-
184  47  2
Endpoint-Test
-   40   0  0
LocalEntry-Test
-8   0  0
nhttp-Transport-Test
-0   0  8
Resource-MediaType-Test   -
4   0  0
Rest-API-Test
-1   1  0
Servlet-transport-Test
-1   0  0
VFS-transport-Test  -
24   0  0
Aggregate-mediator-Test -
38   1  0
Cache-mediator-Test   -
2   0  0
Call-mediator-Test
-3   0  0
CallOut-mediator-Test  -
9   0  0
Clone-mediator-Test -
14   0  0
ConditionalRouting-mediator-Test-
5   0  0
Drop-mediator-Test
-1   0  0
Message-Store-Test -
6   0  0
Enrich-mediator-Test-
36   0  0
Fault-mediator-Test
-   30   0  0
Filter-mediator-Test
-4   0  0
Header-mediator-Test  -
2   0  0
In-mediator-Test
-2   0  0
Log-mediator-Test
-1   0  0
Out-mediator-Test
-2   0  0
JMS-transport-Test  -
20   1  0
Property-mediator-Test-
37   1  0
PayloadFactory-mediator-Test -
13  0  0
Rewrite-mediator-Test  -
60  0  0
Router-mediator-Test   -
8  0  0
Rule-mediator-Test  -
  15  0  0
Message-Processor-Test -
3  1  0
Send-mediator-Test  -
   70  0  0
Sequence-mediator-Test  -
2  0  0
Switch-mediator-Test-
   12  0  0
Validate-mediator-Test  -
11  0  0
XQuery-mediator-Test   -
12  0  0
XSLT-mediator-Test   -
7  0  0
FastXSLT-mediator-Test-
3  0  0
Class-mediator-Test  -
   5  0  0
Iterate-mediator-Test -
  31  0  0
Spring-mediator-Test -
5  1  0
Smook-mediator-Test-
2  1  0
Script-mediator-Test
-   16  0  0
ESB-Sample-Test   -
32  0  0
TCP-transport-Test
-  1  0  0
POX-security-Test
- 8  4 12
Rest-JSON-Test
- 2  0  0
CAR-Deployment-
0  0  7
ScheduleTask-Test
- 2  0  0
Scenario-Test
- 1  0  0
GZIP-Compression-Test  -
6  0  0

BR,
Jeewantha
-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Cant create user role due to Api change in user-core

2013-08-06 Thread Jeewantha Dharmaparakrama
)
at
org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
at
org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
at
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
at
org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
at
org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_insertAttribute_7(org.apache.jsp.admin.layout.template_jsp:598)
at
org.apache.jsp.admin.layout.template_jsp._jspService(org.apache.jsp.admin.layout.template_jsp:335)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)


-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Status of ESB 4.8.0 on kernal 4.2.0

2013-08-06 Thread Jeewantha Dharmaparakrama
On Wed, Aug 7, 2013 at 12:34 AM, Krishantha Samaraweera krishan...@wso2.com
 wrote:

 Hi,

 On Tue, Aug 6, 2013 at 5:30 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Folks,

 Following are the test results of the pack we built last Friday. The
 tests were run one by one since we cannot run all the tests in one go
 because many tests get skipped.


 @Jeewantha - What's the reason for test skipped ? Is it the same
 connection refused error ?

AFAIU yes.



 However we noticed an API change on org.wso2.carbon.user.core hence
 almost all the tests were skiped on the pack we built today. Once the
 needful change is done on the test framework we could provide an ESB pack
 for QA.



 passed   failed skipped

 Server-Stratup
   -1   0  0
 Throttle-mediator-Test
 -6   1  0
 ProxyService-Test
 -  184  47  2
 Endpoint-Test
  -   40   0  0
 LocalEntry-Test
-8   0  0
 nhttp-Transport-Test
 -0   0  8
 Resource-MediaType-Test   -
 4   0  0
 Rest-API-Test
  -1   1  0
 Servlet-transport-Test
 -1   0  0
 VFS-transport-Test
 -   24   0  0
 Aggregate-mediator-Test -
 38   1  0
 Cache-mediator-Test
 -2   0  0
 Call-mediator-Test
 -3   0  0
 CallOut-mediator-Test
 -9   0  0
 Clone-mediator-Test
 -   14   0  0
 ConditionalRouting-mediator-Test-
 5   0  0
 Drop-mediator-Test
 -1   0  0
 Message-Store-Test
 -6   0  0
 Enrich-mediator-Test
 -   36   0  0
 Fault-mediator-Test
 -   30   0  0
 Filter-mediator-Test
 -4   0  0
 Header-mediator-Test
 -2   0  0
 In-mediator-Test
  -2   0  0
 Log-mediator-Test
 -1   0  0
 Out-mediator-Test
 -2   0  0
 JMS-transport-Test
 -   20   1  0
 Property-mediator-Test-
 37   1  0
 PayloadFactory-mediator-Test -
 13  0  0
 Rewrite-mediator-Test  -
   60  0  0
 Router-mediator-Test   -
 8  0  0
 Rule-mediator-Test
 -15  0  0
 Message-Processor-Test -
 3  1  0
 Send-mediator-Test  -
70  0  0
 Sequence-mediator-Test  -
  2  0  0
 Switch-mediator-Test-
12  0  0
 Validate-mediator-Test  -
   11  0  0
 XQuery-mediator-Test   -
   12  0  0
 XSLT-mediator-Test
 - 7  0  0
 FastXSLT-mediator-Test-
 3  0  0
 Class-mediator-Test
 -5  0  0
 Iterate-mediator-Test
 -   31  0  0
 Spring-mediator-Test
 - 5  1  0
 Smook-mediator-Test-
2  1  0
 Script-mediator-Test
-   16  0  0
 ESB-Sample-Test
 - 32  0  0
 TCP-transport-Test
   -  1  0  0
 POX-security-Test
- 8  4 12
 Rest-JSON-Test
   - 2  0  0
 CAR-Deployment
 - 0  0  7
 ScheduleTask-Test
   - 2  0  0
 Scenario-Test
   - 1  0  0
 GZIP-Compression-Test  -
   6  0  0

 BR,
 Jeewantha
 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/

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





-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] NoClassDefFound in automation framework. org.wso2.caching.* is not used anymore.

2013-07-29 Thread Jeewantha Dharmaparakrama
The automation framework throws the following exception.

[2013-07-29 13:25:27,475]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
[2013-07-29 13:25:27,473] ERROR - NativeWorkerPool Uncaught exception
[2013-07-29 13:25:27,475]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
java.lang.NoClassDefFoundError: org/wso2/caching/CacheConfiguration
[2013-07-29 13:25:27,475]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at
org.apache.synapse.transport.passthru.util.CacheMessageBuilderDispatchandler.invoke(CacheMessageBuilderDispatchandler.java:52)
[2013-07-29 13:25:27,475]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
[2013-07-29 13:25:27,475]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
[2013-07-29 13:25:27,475]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
[2013-07-29 13:25:27,476]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:426)
[2013-07-29 13:25:27,476]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at
org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(DynamicAxisOperation.java:185)
[2013-07-29 13:25:27,476]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at
org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:167)
[2013-07-29 13:25:27,476]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
[2013-07-29 13:25:27,476]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at
org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:481)
[2013-07-29 13:25:27,476]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:57)
[2013-07-29 13:25:27,476]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:342)
[2013-07-29 13:25:27,477]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at
org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:329)
[2013-07-29 13:25:27,477]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at
org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:59)
[2013-07-29 13:25:27,477]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at
org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:95)
[2013-07-29 13:25:27,477]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:71)
[2013-07-29 13:25:27,477]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:114)
[2013-07-29 13:25:27,477]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at
org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:162)
[2013-07-29 13:25:27,478]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
[2013-07-29 13:25:27,478]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at
org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:404)
[2013-07-29 13:25:27,478]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:184)
[2013-07-29 13:25:27,478]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
[2013-07-29 13:25:27,478]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
[2013-07-29 13:25:27,478]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
[2013-07-29 13:25:27,478]  INFO
{org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
at java.lang.Thread.run(Thread.java:662)

Thanks,
Jeewantha


-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc

Re: [Dev] NoClassDefFound in automation framework. org.wso2.caching.* is not used anymore.

2013-07-29 Thread Jeewantha Dharmaparakrama
On Mon, Jul 29, 2013 at 1:46 PM, Nuwan Wimalasekara nuw...@wso2.com wrote:

 Hi Jeewantha
 This exception trace is from the server side. Not in the framework. As the
 exception, it occurs when the server is started. So can you please check
 the server startup manually. I think server still uses caching components.

You are right. Ill check it.
Thanks,
Jeewantha.


 Thanks
 Nuwanw


 On Mon, Jul 29, 2013 at 1:27 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 The automation framework throws the following exception.

 [2013-07-29 13:25:27,475]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 [2013-07-29 13:25:27,473] ERROR - NativeWorkerPool Uncaught exception
 [2013-07-29 13:25:27,475]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 java.lang.NoClassDefFoundError: org/wso2/caching/CacheConfiguration
 [2013-07-29 13:25:27,475]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 at
 org.apache.synapse.transport.passthru.util.CacheMessageBuilderDispatchandler.invoke(CacheMessageBuilderDispatchandler.java:52)
 [2013-07-29 13:25:27,475]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 [2013-07-29 13:25:27,475]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 [2013-07-29 13:25:27,475]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 [2013-07-29 13:25:27,476]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:426)
 [2013-07-29 13:25:27,476]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 at
 org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(DynamicAxisOperation.java:185)
 [2013-07-29 13:25:27,476]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 at
 org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:167)
 [2013-07-29 13:25:27,476]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 [2013-07-29 13:25:27,476]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 at
 org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:481)
 [2013-07-29 13:25:27,476]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:57)
 [2013-07-29 13:25:27,476]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 at
 org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:342)
 [2013-07-29 13:25:27,477]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 at
 org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:329)
 [2013-07-29 13:25:27,477]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 at
 org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:59)
 [2013-07-29 13:25:27,477]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 at
 org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:95)
 [2013-07-29 13:25:27,477]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:71)
 [2013-07-29 13:25:27,477]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 at
 org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:114)
 [2013-07-29 13:25:27,477]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 at
 org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:162)
 [2013-07-29 13:25:27,478]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 [2013-07-29 13:25:27,478]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 at
 org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:404)
 [2013-07-29 13:25:27,478]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:184)
 [2013-07-29 13:25:27,478]  INFO
 {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} -
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 [2013-07-29 13:25:27,478]  INFO
 {org.wso2

[Dev] ESB 4.8.0 pack - 29th July

2013-07-29 Thread Jeewantha Dharmaparakrama
.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by:
org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:
Resource does not exist at path /_system/governance/permission/
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.get(EmbeddedRegistry.java:532)
at
org.wso2.carbon.registry.core.caching.CacheBackedRegistry.get(CacheBackedRegistry.java:164)
at
org.wso2.carbon.registry.core.session.UserRegistry.get(UserRegistry.java:524)
at
org.wso2.carbon.core.services.loggeduserinfo.LoggedUserInfoAdmin.getUserPermissions(LoggedUserInfoAdmin.java:99)
at
org.wso2.carbon.core.services.loggeduserinfo.LoggedUserInfoAdmin.getUserInfo(LoggedUserInfoAdmin.java:70)
... 52 more
[2013-07-29 16:13:03,357]  WARN - CarbonAuthenticationUtil Failed
Administrator login attempt 'admin[-1234]' at [2013-07-29 16:13:03,356+0530]


-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Specifying sslProtocol parameter in Transport Listener of ESB

2013-07-29 Thread Jeewantha Dharmaparakrama
To get SSL context when making an HTTPS connection you need to do this.

javax.net.ssl.SSLContext sslcontext =
javax.net.ssl.SSLContext.getInstance(TLS);

This depends on the JVM. For example on IBM JVM, it should be
SSLContext.getInstance(SSL_TLS); [1]

[1]
http://publib.boulder.ibm.com/infocenter/javasdk/v6r0/index.jsp?topic=%2Fcom.ibm.java.security.component.doc%2Fsecurity-component%2Fjsse2Docs%2Fsslcontext.html


On Fri, Jul 26, 2013 at 11:06 AM, Isuru Perera isu...@wso2.com wrote:

 Hi,

 When comparing with Tomcat configuration options for SSL [1], it seems
 that the SSL transports for ESB lacks support for many important
 configurations.

 AFAIK, the option to specify SSL protocol only introduced in ESB 4.7.0.

 On Wed, Jul 24, 2013 at 10:53 AM, Isuru Perera isu...@wso2.com wrote:


 Hi,

 On Tue, Jul 23, 2013 at 12:54 PM, Ramith Jayasinghe ram...@wso2.comwrote:

 So now whats the purpose of HttpsProtocols which is also configured in
 axis2.xml (for esb) ?

 Could someone from ESB team please give an answer for this?

 This configuration is to specify SSL protocol for HTTP transport of
Synapse. What we specify in tomcat configuration is for the sevlet
transport.


 I think we really need to revisit the SSL transport configurations and
 properly document those.

 [1] http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#SSL_Support



 On Tue, Jul 23, 2013 at 12:14 PM, Isuru Perera isu...@wso2.com wrote:

 Hi all,

 Thanks Miyuru and Ramith for the information.

 This is fixed in ESB 4.7.0 with ESBJAVA-2029 [1].

 The change is to add a parameter as follows. (I couldn't find about
 this in ESB Docs!)

 parameter name=SSLProtocol.../parameter

 I still have a doubt whether this can be used to achieve StackOverflow
 user's requirement as there is no place to specify ciphers parameter.

 Appreciate any guidance on this.

 Thanks!

 [1] https://wso2.org/jira/browse/ESBJAVA-2029


 On Tue, Jul 23, 2013 at 9:10 AM, Isuru Perera isu...@wso2.com wrote:

 Hi,

 This is regarding StackOverflow question [1].

 Basically the user needs to configure sslProtocol + other parameters
 as defined in Tomcat connector [2].

 I gave a quick answer by looking at the docs. I informed that those
 parameters can be specified in HTTPS Servlet Transport since it is based 
 on
 the Tomcat connector.

 Please let me know how to achieve similar SSL configuration in NHTTP
 or PassThrough transport.

 Thanks!

 [1]
 http://stackoverflow.com/questions/17752636/wso2-esb-4-0-3-how-to-specify-sslprotocol-parameter-for-transport-listner-http
 [2] http://tomcat.apache.org/tomcat-7.0-doc/config/http.html

 --
 Isuru Perera
 Senior Software Engineer | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 Twitter: http://twitter.com/chrishantha | LinkedIn:
 http://lk.linkedin.com/in/chrishantha/




 --
 Isuru Perera
 Senior Software Engineer | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 Twitter: http://twitter.com/chrishantha | LinkedIn:
 http://lk.linkedin.com/in/chrishantha/

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




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

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




 --
 Isuru Perera
 Senior Software Engineer | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 Twitter: http://twitter.com/chrishantha | LinkedIn:
 http://lk.linkedin.com/in/chrishantha/




 --
 Isuru Perera
 Senior Software Engineer | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 Twitter: http://twitter.com/chrishantha | LinkedIn:
 http://lk.linkedin.com/in/chrishantha/

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




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB 4.8.0 pack - 29th July

2013-07-29 Thread Jeewantha Dharmaparakrama
Test results for this pack:

passed: 233
Failed: 48
Skipped: 606

Jeewantha.


On Mon, Jul 29, 2013 at 4:18 PM, Jeewantha Dharmaparakrama 
jeewan...@wso2.com wrote:

 Hi,
 $subject.

 https://svn.wso2.org/repos/wso2/people/jeewantha/4.8.0-release/29072013wso2esb-4.8.0-SNAPSHOT_Pack2.zip

 Tenants login fails in this pack. Worked fine on the pack built on Friday.

 Jeewantha.


 [2013-07-29 16:12:56,485] ERROR - AuthenticationAdmin
 org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:
 Resource does not exist at path /_system/governance/permission/
 [2013-07-29 16:12:56,486] ERROR - RPCMessageReceiver Resource does not
 exist at path /_system/governance/permission/
 java.lang.reflect.InvocationTargetException
 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:178)
 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:398)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.wso2.carbon.core.commons.stub.loggeduserinfo.LoggedUserInfoAdminStub.getUserInfo(LoggedUserInfoAdminStub.java:187)
 at
 org.wso2.carbon.ui.AbstractCarbonUIAuthenticator.setUserAuthorizationInfo(AbstractCarbonUIAuthenticator.java:460)
 at
 org.wso2.carbon.ui.AbstractCarbonUIAuthenticator.handleSecurity(AbstractCarbonUIAuthenticator.java:230)
 at
 org.wso2.carbon.ui.BasicAuthUIAuthenticator.authenticate(BasicAuthUIAuthenticator.java:77)
 at
 org.wso2.carbon.ui.CarbonUILoginUtil.handleLogin(CarbonUILoginUtil.java:342)
 at
 org.wso2.carbon.ui.CarbonSecuredHttpContext.handleSecurity(CarbonSecuredHttpContext.java:246)
 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:60)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
 at
 org.wso2

Re: [Dev] What are these new INFO - ServerConnFactoryBuilder logs at start up

2013-07-19 Thread Jeewantha Dharmaparakrama
These logs are printed when SSLContext is made when initializing Passthru
or NHttp  transport listeners.
Jeewantha.


On Fri, Jul 19, 2013 at 12:31 PM, Suresh Attanayaka sur...@wso2.com wrote:

 Hi,

 These seems come from Synapse. May be Kasun or Jeewantha knows.

 Thanks,
 -Suresh


 On Fri, Jul 19, 2013 at 11:48 AM, Nirodha Pramod niro...@wso2.com wrote:

 Hi,

 What are these following INFO logs which can be seen at server startup of
 4.2.0 packs. Seems like related to keystores. However these occur only in
 API-M and ESB packs, (not in IS, AS, GReg)

 [2013-07-19 11:21:53,943]  INFO - TomcatGenericWebappsDeployer Deployed
 webapp:
 StandardEngine[Catalina].StandardHost[localhost].StandardContext[/STRATOS_ROOT].File[/home/nirodha/WSO2/Carbon4/4.2.0/19July/packs/wso2am-1.4.0-SNAPSHOT/repository/deployment/server/webapps/STRATOS_ROOT]
 [2013-07-19 11:21:54,084]  INFO - ServerConnFactoryBuilder HTTPS Loading
 Identity Keystore from : repository/resources/security/wso2carbon.jks
 [2013-07-19 11:21:54,097]  INFO - ServerConnFactoryBuilder HTTPS Subject
 DN: CN=localhost, O=WSO2, L=Mountain View, ST=CA, C=US
 [2013-07-19 11:21:54,098]  INFO - ServerConnFactoryBuilder HTTPS Issuer
 DN: CN=localhost, O=WSO2, L=Mountain View, ST=CA, C=US
 [2013-07-19 11:21:54,098]  INFO - ServerConnFactoryBuilder HTTPS Loading
 Trust Keystore from : repository/resources/security/client-truststore.jks

 Thanks,
 Nirodha

 --
 *
 *
 *Nirodha Gallage*
 Senior Software Engineer, QA.
 WSO2 Inc.: http://wso2.com/
 Mobile: +94716429078




 --
 Suresh Attanayake
 Senior Software Engineer; WSO2 Inc. http://wso2.com/
 Blog : http://sureshatt.blogspot.com/
 Web : http://www.ssoarcade.com/
 Facebook : https://www.facebook.com/IdentityWorld
 Twitter : https://twitter.com/sureshatt
 LinkedIn : http://lk.linkedin.com/in/sureshatt
 Mobile : +94755012060
 Mobile : +01-616-617-1172




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What are these new INFO - ServerConnFactoryBuilder logs at start up

2013-07-19 Thread Jeewantha Dharmaparakrama
That's a change done by Oleg to print the certificate information in the
keyStore.

162829 oleg@wso2. for (X509Certificate
cert: certs) {
162829 oleg@wso2. log.info(name + 
Subject DN:  + cert.getSubjectDN());
162829 oleg@wso2. log.info(name + 
Issuer DN:  + cert.getIssuerDN());
162829 oleg@wso2. }



On Fri, Jul 19, 2013 at 2:08 PM, Suresh Attanayaka sur...@wso2.com wrote:

 Hi,

 On Fri, Jul 19, 2013 at 2:01 PM, Nirodha Pramod niro...@wso2.com wrote:

 So whats the importance of having them in the startup log? we haven;t
 seen these logs in previous releases.


 I think they should be debug logs.



 On Fri, Jul 19, 2013 at 1:53 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 These logs are printed when SSLContext is made when initializing
 Passthru or NHttp  transport listeners.
 Jeewantha.


 On Fri, Jul 19, 2013 at 12:31 PM, Suresh Attanayaka sur...@wso2.comwrote:

 Hi,

 These seems come from Synapse. May be Kasun or Jeewantha knows.

 Thanks,
 -Suresh


 On Fri, Jul 19, 2013 at 11:48 AM, Nirodha Pramod niro...@wso2.comwrote:

 Hi,

 What are these following INFO logs which can be seen at server startup
 of 4.2.0 packs. Seems like related to keystores. However these occur only
 in API-M and ESB packs, (not in IS, AS, GReg)

 [2013-07-19 11:21:53,943]  INFO - TomcatGenericWebappsDeployer
 Deployed webapp:
 StandardEngine[Catalina].StandardHost[localhost].StandardContext[/STRATOS_ROOT].File[/home/nirodha/WSO2/Carbon4/4.2.0/19July/packs/wso2am-1.4.0-SNAPSHOT/repository/deployment/server/webapps/STRATOS_ROOT]
 [2013-07-19 11:21:54,084]  INFO - ServerConnFactoryBuilder HTTPS
 Loading Identity Keystore from :
 repository/resources/security/wso2carbon.jks
 [2013-07-19 11:21:54,097]  INFO - ServerConnFactoryBuilder HTTPS
 Subject DN: CN=localhost, O=WSO2, L=Mountain View, ST=CA, C=US
 [2013-07-19 11:21:54,098]  INFO - ServerConnFactoryBuilder HTTPS
 Issuer DN: CN=localhost, O=WSO2, L=Mountain View, ST=CA, C=US
 [2013-07-19 11:21:54,098]  INFO - ServerConnFactoryBuilder HTTPS
 Loading Trust Keystore from :
 repository/resources/security/client-truststore.jks

 Thanks,
 Nirodha

 --
 *
 *
 *Nirodha Gallage*
 Senior Software Engineer, QA.
 WSO2 Inc.: http://wso2.com/
 Mobile: +94716429078




 --
 Suresh Attanayake
 Senior Software Engineer; WSO2 Inc. http://wso2.com/
 Blog : http://sureshatt.blogspot.com/
 Web : http://www.ssoarcade.com/
 Facebook : https://www.facebook.com/IdentityWorld
 Twitter : https://twitter.com/sureshatt
 LinkedIn : http://lk.linkedin.com/in/sureshatt
 Mobile : +94755012060
 Mobile : +01-616-617-1172




 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/




 --
 *
 *
 *Nirodha Gallage*
 Senior Software Engineer, QA.
 WSO2 Inc.: http://wso2.com/
 Mobile: +94716429078




 --
 Suresh Attanayake
 Senior Software Engineer; WSO2 Inc. http://wso2.com/
 Blog : http://sureshatt.blogspot.com/
 Web : http://www.ssoarcade.com/
 Facebook : https://www.facebook.com/IdentityWorld
 Twitter : https://twitter.com/sureshatt
 LinkedIn : http://lk.linkedin.com/in/sureshatt
 Mobile : +94755012060
 Mobile : +01-616-617-1172




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Multiple Synapse versions on trunk

2013-07-12 Thread Jeewantha Dharmaparakrama
Already removed synapse v7 in commit r177645


On Fri, Jul 12, 2013 at 10:36 PM, Isuru Udana isu...@wso2.com wrote:

 Yes we have to remove 2.1.1-wso2v7.

 @Jeewantha,
 If you have completed updating synapse version to 2.1.1-wso2v8, please
 remove 2.1.1-wso2v7.

 Thanks.




 On Fri, Jul 12, 2013 at 10:17 PM, Sagara Gunathunga sag...@wso2.comwrote:


 We have 2.1.1-wso2v7  and 2.1.1-wso2v8 versions on trunk, can we get rid
 of 2.1.1-wso2v7 ?

 Thanks !

 --
 Sagara Gunathunga

 Senior Technical Lead; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  http://ssagara.blogspot.com


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




 --
 *Isuru Udana*
 *
  *
 Senior *
 Software Engineer
 *
 WSO2 Inc.; http://wso2.com
 email: isu...@wso2.com cell: +94 77 3791887
 blog: http://mytecheye.blogspot.com/
 twitter: http://twitter.com/isudana




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 ESB 4.8.0

2013-07-09 Thread Jeewantha Dharmaparakrama
Hi all,

As we discussed offline, the next release will be WSO2 ESB 4.8.0 which will
be shipped with carbon 4.2.0.

Thanks,
Jeewantha

-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Better way to find isXML()?

2013-06-19 Thread Jeewantha Dharmaparakrama
IINM we just need to know whether the String value is xml or json. Cant we
just count the ,  , /  and / characters to figure that out.  Will
something like {numberOf(/) + numberOf(/) == numberOf()} do the
job? Just an idea.


On Wed, Jun 19, 2013 at 2:41 PM, Srinath Perera srin...@wso2.com wrote:

 Following is expensive. We generally do not throw exceptions on legal
 execution flow.


 /2.1.1-wso2v6/modules/core/src/main/java/org/apache/synapse/mediators/transform/PayloadFactoryMediator.java

 private boolean isXML(String value) {
 try {
 AXIOMUtil.stringToOM(value);
 } catch (XMLStreamException ignore) {
 // means not a xml
 return false;
 } catch (OMException ignore) {
 // means not a xml
 return false;
 }
 return true;
 }

 --
 
 Srinath Perera, Ph.D.
   Director, Research, WSO2 Inc.
   Visiting Faculty, University of Moratuwa
   Member, Apache Software Foundation
   Research Scientist, Lanka Software Foundation
   Blog: http://srinathsview.blogspot.com/
   Photos: http://www.flickr.com/photos/hemapani/
Phone: 0772360902

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




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can we configure additional SSL configurations in NIOSSL Listener/Sender

2013-06-12 Thread Jeewantha Dharmaparakrama
Hi Asela,

We can add new configurations to it. I guess this answers your question.

See how the parameters HostNameVerifier and
CertificateRevocationVerifire are used in[1]

final Parameter hvp = transportOut.getParameter(HostnameVerifier);
final String hvs = hvp != null ? hvp.getValue().toString() : null;
final Parameter cvp =
transportOut.getParameter(CertificateRevocationVerifier);
final String cvs = cvp != null ? cvp.getValue().toString() : null;

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/dependencies/synapse/2.1.1-wso2v6/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/config/ClientConnFactoryBuilder.java

Jeewantha


On Wed, Jun 12, 2013 at 7:42 PM, Asela Pathberiya as...@wso2.com wrote:


 Hi All,

 According to the NIOSSL listener/sender configuration in axis2.xml, we are
 supporting some parameters to configure. Are  these only configurations
 that are supported by implementations?  Or  Can not we add new
 configurations to it?  (such as sslProtocol that is supported by tomcat
 config)

 --
 Thanks  Regards,
 Asela

 Mobile : +94 777 625 933




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Deploy .epr file programatically to GREG for BPS Integration test

2013-05-20 Thread Jeewantha Dharmaparakrama
Hi all,

I'm trying to write an Integration test for this issue[1] for BPS. The
scenario is : a process is deployed with its deploy.xml referring to an
endpoint reference stored in governance registry. I believe I can deploy
the process in BPS as in [2] where the BPEL  should be in
/repository/samples/bpel. But how would I deploy the .epr file in GREG
programatically?
I was told to look at this[3] implementation. If this the right way to do
this, how would I initialize *ResourceAdminServiceClient(serverBackEndUrl,
serverSessionCookie) *?

I would need the server backend url and session cookie.? Please advice.

[1] https://wso2.org/jira/browse/BPS-239
[2]
https://svn.wso2.com/wso2/custom/projects/projects/carbon/4.0.0/platform/trunk/products/bps/3.0.0/modules/integration/org.wso2.bps.integration.tests/src/test/java/org/wso2/bps/integration/tests/management/bpel/DeploymentTestCase.java
[3]
https://svn.wso2.com/wso2/custom/projects/projects/carbon/4.0.0/platform/trunk/products/esb/4.5.1/modules/integration/tests/src/test/java/org/wso2/carbon/esb/mediator/test/payload/factory/ESB1666TestCase.java


Thanks,
Jeewantha.

-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Ravi Undupitiya

2013-05-14 Thread Jeewantha Dharmaparakrama
+1. Congratz Ravi.


On Tue, May 14, 2013 at 11:48 AM, Miyuru Wanninayaka miy...@wso2.comwrote:

 Hi all,

 It's my pleasure to announce Ravi as a WSO2 committer. Ravi made a
 excellent contribution to WSO2 ESB.

 @Ravi, welcome abroad and keep up the good work!

 Cheers!
 --
 Miyuru Wanninayaka
 Senior Software Engineer
 Member, Management Committee - Integration Technologies
 WSO2 Inc. : http://wso2.com

 Mobile : +94 77 209 9788
 Blog : http://miyurudw.blogspot.com
 Flickr : http://www.flickr.com/photos/miyuru_daminda
 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Danushka Fernando

2013-05-14 Thread Jeewantha Dharmaparakrama
Congratz!!


On Tue, May 14, 2013 at 12:00 PM, Lasantha Fernando lasan...@wso2.comwrote:

 Congratulations Danushka!!


 On 14 May 2013 11:42, Gayan Dhanushka gay...@wso2.com wrote:

 Great congratz


 On Tue, May 14, 2013 at 11:41 AM, Gayan Dhanushka gay...@wso2.comwrote:

 +1


 On Tue, May 14, 2013 at 11:35 AM, Ramith Jayasinghe ram...@wso2.comwrote:

 Hi,
  Its my pleasure to welcome Danushka Fernando as a WSO2 Commiter.
  He made excellent contributions towards making the Appfactory stable
 and worked on improving the performance.

 Danushka, welcome aboard and keep up the good work.

 regards
 --
 Ramith Jayasinghe

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




 --

 Gayan Dhanushka
 Software Engineer
 WSO2 Inc.
 http://wso2.com

 Mobile : 0716662327




 --

 Gayan Dhanushka
 Software Engineer
 WSO2 Inc.
 http://wso2.com

 Mobile : 0716662327

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




 --
 *Lasantha Fernando*
 Software Engineer - Data Technologies Team
 WSO2 Inc. http://wso2.com

 email: lasan...@wso2.com
 mobile: (+94) 71 5247551

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




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Dependencies for org.wso2.carbon.endpoint.feature not in nexus

2013-05-06 Thread Jeewantha Dharmaparakrama
Hi all,

The following dependencies for
carbon/platform/4.1.0/features/endpoints/org.wso2.carbon.endpoint.feature/4.1.2are
not there in nexus.

dependencies
dependency
groupIdorg.wso2.carbon/groupId
artifactIdorg.wso2.carbon.endpoint.server.feature/artifactId
version4.1.1/version
typezip/type
/dependency
dependency
groupIdorg.wso2.carbon/groupId
artifactIdorg.wso2.carbon.endpoint.ui.feature/artifactId
version4.1.2/version
typezip/type
/dependency
/dependencies

http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.endpoint.server.feature/
http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.endpoint.ui.feature/

Would changing the versions to 4.1.0 solve the issue?

Jeewantha.

-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Synapse NHTTP - 202 Accepted Responses

2013-05-06 Thread Jeewantha Dharmaparakrama
Hi Lakmali,

HTTPCoreNIOSender#sendAsyncResponse() method is called by Synapse if it
decides that the Client needs a response. For example if the client is in
dual channel mode (HTTP) i.e. if the client expects a response, AND if the
backend is say JMS, Synapse will mediate the message to the JMS broker and
will probably send an HTTP 202 response with an empty body to the client.
ClientHandler is used to send requests to an HTTP Backend. So
ClientHandler#responseReceived() method is called when Synapse receives a
response from the BackEnd. If that response is an HTTP 202, Synapse would
send that response to the client.
Do you want to add the payload of HTTP 202 response from the backend to the
response message for the client? Then you will have to get the content from
the server response and add that to the response message for the client.

Jeewantha.



On Mon, May 6, 2013 at 8:43 PM, Supun Kamburugamuva supu...@gmail.comwrote:

 If a payload is available why do you need to send a 202? Instead you can
 simply send a 200 OK.

 Supun..


 On Mon, May 6, 2013 at 6:04 AM, Lakmali Baminiwatta lakm...@wso2.comwrote:


 Hi Kasun,

 I am trying to do a fix to synapse nhttp, to return the payload for 202
 accepted messages if available. Although I did a similar fix which was done
 with passthru as below, it sends an empty envelope with the response.

 +++
 src/main/java/org/apache/synapse/transport/nhttp/HttpCoreNIOSender.java
 @@ -547,8 +547,7 @@
   * if this is a dummy message to handle http 202 case with
 non-blocking IO
   * write an empty byte array as body
   */
 -if (msgContext.isPropertyTrue(NhttpConstants.SC_ACCEPTED)
 -|| Boolean.TRUE == noEntityBody) {
 +if (Boolean.TRUE == noEntityBody) {
  out.write(new byte[0]);
  } else {
  if (forceContentLength) {


 In nhttp/ClientHandler.java #responseReceived method, it creates a dummy
 message with an empty SOAP envelope. As a result the original payload
 recieved from the backend get dropped. Can you advice on this for a fix?

 Thanks,
 Lakmali

 --
 Lakmali Baminiwatta*
 *
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 mobile:  +94 71 2335936
 *
 *

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




 --
 Supun Kamburugamuva
 Member, Apache Software Foundation; http://www.apache.org
 E-mail: supu...@gmail.com;  Mobile: +1 812 369 6762
 Blog: http://supunk.blogspot.com


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




-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Invitation: OCSP/CRL feature code review @ Mon Apr 1, 2013 2:30pm - 3:30pm (dev@wso2.org)

2013-03-31 Thread Jeewantha Dharmaparakrama
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20130401T09Z
DTEND:20130401T10Z
DTSTAMP:20130401T051310Z
ORGANIZER;CN=jeewan...@wso2.com:mailto:jeewan...@wso2.com
UID:vf5c4e0s6fbg0pq8gabhet3...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Prabath Siriwardana;X-NUM-GUESTS=0:mailto:prab...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Jeewantha Dharmaparakrama;X-NUM-GUESTS=0:mailto:jeewan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Kasun Indrasiri;X-NUM-GUESTS=0:mailto:ka...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
CREATED:20130401T051310Z
DESCRIPTION:View your event at http://www.google.com/calendar/event?action=
 VIEWeid=dmY1YzRlMHM2ZmJnMHBxOGdhYmhldDNldGsgZGV2QHdzbzIub3Jntok=MTgjamVld
 2FudGhhQHdzbzIuY29tOTk3OThmZGY4YTJhNGU3OTNiOWE1MDBiNTdjNjMyNDZjMTE4YmI2Ywc
 tz=Asia/Colombohl=en.
LAST-MODIFIED:20130401T051310Z
LOCATION:#58 5th floor meeting room
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:OCSP/CRL feature code review
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


[Dev] Updated Invitation: OCSP/CRL feature code review @ Mon Apr 1, 2013 2pm - 3pm (dev@wso2.org)

2013-03-31 Thread Jeewantha Dharmaparakrama
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20130401T083000Z
DTEND:20130401T093000Z
DTSTAMP:20130401T054837Z
ORGANIZER;CN=jeewan...@wso2.com:mailto:jeewan...@wso2.com
UID:vf5c4e0s6fbg0pq8gabhet3...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Prabath Siriwardana;X-NUM-GUESTS=0:mailto:prab...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Jeewantha Dharmaparakrama;X-NUM-GUESTS=0:mailto:jeewan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Kasun Indrasiri;X-NUM-GUESTS=0:mailto:ka...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
CREATED:20130401T051310Z
DESCRIPTION:View your event at http://www.google.com/calendar/event?action=
 VIEWeid=dmY1YzRlMHM2ZmJnMHBxOGdhYmhldDNldGsgZGV2QHdzbzIub3Jntok=MTgjamVld
 2FudGhhQHdzbzIuY29tOTk3OThmZGY4YTJhNGU3OTNiOWE1MDBiNTdjNjMyNDZjMTE4YmI2Ywc
 tz=Asia/Colombohl=en.
LAST-MODIFIED:20130401T054837Z
LOCATION:#58 5th floor meeting room
SEQUENCE:1
STATUS:CONFIRMED
SUMMARY:OCSP/CRL feature code review
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


Re: [Dev] ESB 4.7.0 latest pack failed to start

2013-03-08 Thread Jeewantha Dharmaparakrama
Hi,
This issue is fixed now. New version (4.2.3.wso2v1) of Httpcore,
httpcore-nio and httpclient are added to svn.
Jeewantha



On Wed, Mar 6, 2013 at 4:19 PM, Lalaji Sureshika lal...@wso2.com wrote:

 Hi Jeewantha,

 Thanks for the clue. But can we get this issue sorted  soon,since this is
 a blocker for APIManager 1.4.0 release cycle..

 Thanks;

 /Lalaji

 On Tue, Mar 5, 2013 at 4:55 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Hi Lalaji,
 This issue is caused by the wrong version of httpclient (4.1.1.wso2v1).
 If you download version 4.2.3 from http://hc.apache.org/downloads.cgiand add 
 to $ESB_HOME/repository/components/plugins and remove the old
 version it would work. We will fix this issue asap.
 Cheers,
 Jeewantha.


 On Tue, Mar 5, 2013 at 5:11 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 What is the httpclient version we should use? Currently
 httpclient_4.1.1.wso2v1 is used.


 On Tue, Mar 5, 2013 at 4:50 PM, Isuru Udana isu...@wso2.com wrote:



 On Tue, Mar 5, 2013 at 2:57 AM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Synapse 2.1.1-wso2v3 uses version 4.2.3 for both httpcore and
 httpcore-nio. Shouldnt there be a 4.2.3-wso2vX version for that? Currently
 it seems like httpcore and httpcore-nio are being downloaded from remote
 maven repos

 i think this is ok.
 please check how two versions of httpcore get packed into ESB
 distribution.



 On Tue, Mar 5, 2013 at 8:23 AM, Kasun Indrasiri ka...@wso2.comwrote:

 Hi Jeewantha,

 Can you check from where the old HTTP Core getting packed? Its not in
 the kernel.. so should be somewhere in platform.


 On Mon, Mar 4, 2013 at 1:03 PM, Kasun Indrasiri ka...@wso2.comwrote:



 -- Forwarded message --
 From: Oleg Kalnichevski o...@wso2.com
 Date: Mon, Mar 4, 2013 at 12:56 PM
 Subject: Re: [Dev] ESB 4.7.0 latest pack failed to start
 To: Kasun Indrasiri ka...@wso2.com


 Versioning conflict between HttpCore and HttpCore NIO. Apparently
 HttpCore is still at version 4.1.x.

 Oleg

 On Mon, Mar 4, 2013 at 7:49 PM, Kasun Indrasiri ka...@wso2.com
 wrote:
  Hi Oleg,
 
  Any idea, what's causing this?

 
  -- Forwarded message --
  From: Nuwan Wimalasekara nuw...@wso2.com
  Date: Mon, Mar 4, 2013 at 5:48 AM
  Subject: [Dev] ESB 4.7.0 latest pack failed to start
  To: WSO2 Developers' List dev@wso2.org
 
 
  HI,
  I build the ESB 4.7.0 distribution and Bellow Error occurred when
 starting
  ESB server and server stopped. Please check
 
  2013-03-04 17:13:51,076] FATAL - CarbonServerManager WSO2 Carbon
  initialization Failed
 
  Full log:
  nuwanw@nuwanw-ThinkPad-T520
 :~/svn/carbon/platform/branches/4.0.0/products/esb/4.7.0/modules/distribution/target/wso2esb-4.7.0/bin$
  ./wso2server.sh
  JAVA_HOME environment variable is set to
  /home/nuwanw/software/java/jdk1.6.0_22
  CARBON_HOME environment variable is set to
 
 /home/nuwanw/svn/carbon/platform/branches/4.0.0/products/esb/4.7.0/modules/distribution/target/wso2esb-4.7.0
  [2013-03-04 17:09:46,177]  INFO - CarbonCoreActivator Starting WSO2
  Carbon...
  [2013-03-04 17:09:46,180]  INFO - CarbonCoreActivator Operating
 System :
  Linux 3.2.0-38-generic, amd64
  [2013-03-04 17:09:46,180]  INFO - CarbonCoreActivator Java Home
  :
  /home/nuwanw/software/java/jdk1.6.0_22/jre
  [2013-03-04 17:09:46,180]  INFO - CarbonCoreActivator Java Version
 :
  1.6.0_22
  [2013-03-04 17:09:46,180]  INFO - CarbonCoreActivator Java VM
  :
  Java HotSpot(TM) 64-Bit Server VM 17.1-b03,Sun Microsystems Inc.
  [2013-03-04 17:09:46,180]  INFO - CarbonCoreActivator Carbon Home
  :
 
 /home/nuwanw/svn/carbon/platform/branches/4.0.0/products/esb/4.7.0/modules/distribution/target/wso2esb-4.7.0
  [2013-03-04 17:09:46,180]  INFO - CarbonCoreActivator Java Temp
 Dir:
 
 /home/nuwanw/svn/carbon/platform/branches/4.0.0/products/esb/4.7.0/modules/distribution/target/wso2esb-4.7.0/tmp
  [2013-03-04 17:09:46,180]  INFO - CarbonCoreActivator User
 :
  nuwanw, en-US, Asia/Colombo
  [2013-03-04 17:09:46,213]  INFO - AgentHolder Agent created !
  [2013-03-04 17:09:46,238]  INFO - AgentDS Successfully deployed
 Agent Client
  [2013-03-04 17:09:48,964]  INFO - EmbeddedRegistryService
 Configured
  Registry in 80ms
  [2013-03-04 17:09:49,210]  INFO - RegistryCoreServiceComponent
 Registry Mode
  : READ-WRITE
  [2013-03-04 17:09:50,604]  INFO - ClusterBuilder Clustering has
 been
  disabled
  [2013-03-04 17:09:51,078]  INFO - LandingPageWebappDeployer
 Deployed product
  landing page webapp:
 
 StandardEngine[Catalina].StandardHost[localhost].StandardContext[/home]
  [2013-03-04 17:09:51,124]  INFO - PassThroughHttpSSLSender
 Initializing
  Pass-through HTTP/S Sender...
  [2013-03-04 17:09:51,143]  INFO - PassThroughHttpSSLSender Loading
 Identity
  Keystore from : repository/resources/security/wso2carbon.jks
  [2013-03-04 17:09:51,191]  INFO - PassThroughHttpSSLSender Loading
 Trust
  Keystore from : repository/resources/security/client

Re: [Dev] ESB 4.7.0 latest pack failed to start

2013-03-05 Thread Jeewantha Dharmaparakrama
Hi Lalaji,
This issue is caused by the wrong version of httpclient (4.1.1.wso2v1). If
you download version 4.2.3 from http://hc.apache.org/downloads.cgi and add
to $ESB_HOME/repository/components/plugins and remove the old version it
would work. We will fix this issue asap.
Cheers,
Jeewantha.


On Tue, Mar 5, 2013 at 5:11 PM, Jeewantha Dharmaparakrama 
jeewan...@wso2.com wrote:

 What is the httpclient version we should use? Currently
 httpclient_4.1.1.wso2v1 is used.


 On Tue, Mar 5, 2013 at 4:50 PM, Isuru Udana isu...@wso2.com wrote:



 On Tue, Mar 5, 2013 at 2:57 AM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 Synapse 2.1.1-wso2v3 uses version 4.2.3 for both httpcore and
 httpcore-nio. Shouldnt there be a 4.2.3-wso2vX version for that? Currently
 it seems like httpcore and httpcore-nio are being downloaded from remote
 maven repos

 i think this is ok.
 please check how two versions of httpcore get packed into ESB
 distribution.



 On Tue, Mar 5, 2013 at 8:23 AM, Kasun Indrasiri ka...@wso2.com wrote:

 Hi Jeewantha,

 Can you check from where the old HTTP Core getting packed? Its not in
 the kernel.. so should be somewhere in platform.


 On Mon, Mar 4, 2013 at 1:03 PM, Kasun Indrasiri ka...@wso2.com wrote:



 -- Forwarded message --
 From: Oleg Kalnichevski o...@wso2.com
 Date: Mon, Mar 4, 2013 at 12:56 PM
 Subject: Re: [Dev] ESB 4.7.0 latest pack failed to start
 To: Kasun Indrasiri ka...@wso2.com


 Versioning conflict between HttpCore and HttpCore NIO. Apparently
 HttpCore is still at version 4.1.x.

 Oleg

 On Mon, Mar 4, 2013 at 7:49 PM, Kasun Indrasiri ka...@wso2.com
 wrote:
  Hi Oleg,
 
  Any idea, what's causing this?
 
  -- Forwarded message --
  From: Nuwan Wimalasekara nuw...@wso2.com
  Date: Mon, Mar 4, 2013 at 5:48 AM
  Subject: [Dev] ESB 4.7.0 latest pack failed to start
  To: WSO2 Developers' List dev@wso2.org
 
 
  HI,
  I build the ESB 4.7.0 distribution and Bellow Error occurred when
 starting
  ESB server and server stopped. Please check
 
  2013-03-04 17:13:51,076] FATAL - CarbonServerManager WSO2 Carbon
  initialization Failed
 
  Full log:
  nuwanw@nuwanw-ThinkPad-T520
 :~/svn/carbon/platform/branches/4.0.0/products/esb/4.7.0/modules/distribution/target/wso2esb-4.7.0/bin$
  ./wso2server.sh
  JAVA_HOME environment variable is set to
  /home/nuwanw/software/java/jdk1.6.0_22
  CARBON_HOME environment variable is set to
 
 /home/nuwanw/svn/carbon/platform/branches/4.0.0/products/esb/4.7.0/modules/distribution/target/wso2esb-4.7.0
  [2013-03-04 17:09:46,177]  INFO - CarbonCoreActivator Starting WSO2
  Carbon...
  [2013-03-04 17:09:46,180]  INFO - CarbonCoreActivator Operating
 System :
  Linux 3.2.0-38-generic, amd64
  [2013-03-04 17:09:46,180]  INFO - CarbonCoreActivator Java Home
:
  /home/nuwanw/software/java/jdk1.6.0_22/jre
  [2013-03-04 17:09:46,180]  INFO - CarbonCoreActivator Java Version
   :
  1.6.0_22
  [2013-03-04 17:09:46,180]  INFO - CarbonCoreActivator Java VM
:
  Java HotSpot(TM) 64-Bit Server VM 17.1-b03,Sun Microsystems Inc.
  [2013-03-04 17:09:46,180]  INFO - CarbonCoreActivator Carbon Home
:
 
 /home/nuwanw/svn/carbon/platform/branches/4.0.0/products/esb/4.7.0/modules/distribution/target/wso2esb-4.7.0
  [2013-03-04 17:09:46,180]  INFO - CarbonCoreActivator Java Temp Dir
:
 
 /home/nuwanw/svn/carbon/platform/branches/4.0.0/products/esb/4.7.0/modules/distribution/target/wso2esb-4.7.0/tmp
  [2013-03-04 17:09:46,180]  INFO - CarbonCoreActivator User
   :
  nuwanw, en-US, Asia/Colombo
  [2013-03-04 17:09:46,213]  INFO - AgentHolder Agent created !
  [2013-03-04 17:09:46,238]  INFO - AgentDS Successfully deployed
 Agent Client
  [2013-03-04 17:09:48,964]  INFO - EmbeddedRegistryService Configured
  Registry in 80ms
  [2013-03-04 17:09:49,210]  INFO - RegistryCoreServiceComponent
 Registry Mode
  : READ-WRITE
  [2013-03-04 17:09:50,604]  INFO - ClusterBuilder Clustering has been
  disabled
  [2013-03-04 17:09:51,078]  INFO - LandingPageWebappDeployer Deployed
 product
  landing page webapp:
 
 StandardEngine[Catalina].StandardHost[localhost].StandardContext[/home]
  [2013-03-04 17:09:51,124]  INFO - PassThroughHttpSSLSender
 Initializing
  Pass-through HTTP/S Sender...
  [2013-03-04 17:09:51,143]  INFO - PassThroughHttpSSLSender Loading
 Identity
  Keystore from : repository/resources/security/wso2carbon.jks
  [2013-03-04 17:09:51,191]  INFO - PassThroughHttpSSLSender Loading
 Trust
  Keystore from : repository/resources/security/client-truststore.jks
  [2013-03-04 17:09:51,217] FATAL - CarbonServerManager WSO2 Carbon
  initialization Failed
  java.lang.NoSuchMethodError:
 
 org.apache.http.params.HttpConnectionParams.getSoKeepalive(Lorg/apache/http/params/HttpParams;)Z
  at
 
 org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.convert(AbstractMultiworkerIOReactor.java:203)
  at
 
 org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.init(DefaultConnectingIOReactor.java:117

[Dev] Invitation: Code Review OCSP/CRL @ Thu Feb 28, 2013 2:30pm - 3pm (dev@wso2.org)

2013-02-27 Thread Jeewantha Dharmaparakrama
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20130228T09Z
DTEND:20130228T093000Z
DTSTAMP:20130228T050854Z
ORGANIZER;CN=Jeewantha Dharmaparakrama:mailto:jeewan...@wso2.com
UID:r66o7vmcvpqb0lpdhv78ou1...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Prabath Siriwardana;X-NUM-GUESTS=0:mailto:prab...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Miyuru Wanninayaka;X-NUM-GUESTS=0:mailto:miy...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=jeewan...@wso2.com;X-NUM-GUESTS=0:mailto:jeewan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Kasun Indrasiri;X-NUM-GUESTS=0:mailto:ka...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
CLASS:PUBLIC
CREATED:20130228T050443Z
DESCRIPTION:Code review for OCSP/CRL implementations for synapse.\nView you
 r event at http://www.google.com/calendar/event?action=VIEWeid=cjY2bzd2bWN
 2cHFiMGxwZGh2NzhvdTFubW8gZGV2QHdzbzIub3Jntok=MTgjamVld2FudGhhQHdzbzIuY29tZ
 WQ5NzBjODFlY2NlNjkzNTQwZmNkZTcyYTAyODBiZDk2Y2Q4ZjJmYQctz=Asia/Colombohl=e
 n.
LAST-MODIFIED:20130228T050854Z
LOCATION:
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Code Review OCSP/CRL
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


[Dev] Build Error in platform/4.0.0/dependencies/hive/0.8.1-wso2v5/jdbc

2012-11-26 Thread Jeewantha Dharmaparakrama
$subject pls. The error message:

Buildfile:
/media/Development/Work/platform/4.0.0/dependencies/hive/0.8.1-wso2v5/jdbc/build.xml

create-dirs:
 [echo] Project: jdbc
 [copy] Warning:
/media/Development/Work/platform/4.0.0/dependencies/hive/0.8.1-wso2v5/jdbc/src/test/resources
does not exist.

init:
 [echo] Project: jdbc

ivy-init-settings:
 [echo] Project: jdbc

ivy-resolve:
 [echo] Project: jdbc
[ivy:resolve] :: Apache Ivy 2.3.0-rc2 - 20121105223351 ::
http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file =
/media/Development/Work/platform/4.0.0/dependencies/hive/0.8.1-wso2v5/ivy/ivysettings.xml
[ivy:report] Processing
/media/Development/Work/platform/4.0.0/dependencies/hive/0.8.1-wso2v5/build/ivy/resolution-cache/org.apache.hive-hive-jdbc-default.xml
to
/media/Development/Work/platform/4.0.0/dependencies/hive/0.8.1-wso2v5/build/ivy/report/org.apache.hive-hive-jdbc-default.html

ivy-retrieve:
 [echo] Project: jdbc

compile:
 [echo] Project: jdbc
[javac] Compiling 14 source files to
/media/Development/Work/platform/4.0.0/dependencies/hive/0.8.1-wso2v5/build/jdbc/classes
[javac]
/media/Development/Work/platform/4.0.0/dependencies/hive/0.8.1-wso2v5/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveCallableStatement.java:48:
error: HiveCallableStatement is not abstract and does not override abstract
method TgetObject(String,ClassT) in CallableStatement
[javac] public class HiveCallableStatement implements
java.sql.CallableStatement {
[javac]^
[javac]   where T is a type-variable:
[javac] T extends Object declared in method
TgetObject(String,ClassT)
[javac]
/media/Development/Work/platform/4.0.0/dependencies/hive/0.8.1-wso2v5/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveConnection.java:54:
error: HiveConnection is not abstract and does not override abstract method
getNetworkTimeout() in Connection
[javac] public class HiveConnection implements java.sql.Connection {
[javac]^
[javac]
/media/Development/Work/platform/4.0.0/dependencies/hive/0.8.1-wso2v5/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDataSource.java:31:
error: HiveDataSource is not abstract and does not override abstract method
getParentLogger() in CommonDataSource
[javac] public class HiveDataSource implements DataSource {
[javac]^
[javac]
/media/Development/Work/platform/4.0.0/dependencies/hive/0.8.1-wso2v5/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDatabaseMetaData.java:43:
error: HiveDatabaseMetaData is not abstract and does not override abstract
method generatedKeyAlwaysReturned() in DatabaseMetaData
[javac] public class HiveDatabaseMetaData implements
java.sql.DatabaseMetaData {
[javac]^
[javac]
/media/Development/Work/platform/4.0.0/dependencies/hive/0.8.1-wso2v5/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDatabaseMetaData.java:113:
error: anonymous org.apache.hadoop.hive.jdbc.HiveDatabaseMetaData$1 is
not abstract and does not override abstract method
TgetObject(String,ClassT) in ResultSet
[javac]   , catalogs) {
[javac]   ^
[javac]   where T is a type-variable:
[javac] T extends Object declared in method
TgetObject(String,ClassT)
[javac]
/media/Development/Work/platform/4.0.0/dependencies/hive/0.8.1-wso2v5/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDatabaseMetaData.java:222:
error: anonymous org.apache.hadoop.hive.jdbc.HiveDatabaseMetaData$2 is
not abstract and does not override abstract method
TgetObject(String,ClassT) in ResultSet
[javac]   , columns) {
[javac]  ^
[javac]   where T is a type-variable:
[javac] T extends Object declared in method
TgetObject(String,ClassT)
[javac]
/media/Development/Work/platform/4.0.0/dependencies/hive/0.8.1-wso2v5/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDatabaseMetaData.java:513:
error: anonymous org.apache.hadoop.hive.jdbc.HiveDatabaseMetaData$3 is
not abstract and does not override abstract method
TgetObject(String,ClassT) in ResultSet
[javac] , Arrays.asList(STRING, STRING), null) {
[javac]^
[javac]   where T is a type-variable:
[javac] T extends Object declared in method
TgetObject(String,ClassT)
[javac]
/media/Development/Work/platform/4.0.0/dependencies/hive/0.8.1-wso2v5/jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveDatabaseMetaData.java:553:
error: anonymous org.apache.hadoop.hive.jdbc.HiveDatabaseMetaData$4 is
not abstract and does not override abstract method
TgetObject(String,ClassT) in ResultSet
[javac] , Arrays.asList(STRING), new
ArrayListTableType(Arrays.asList(tt))) {

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


Re: [Dev] Kernel build failed - User Management UI

2012-11-23 Thread Jeewantha Dharmaparakrama
Compile /kernel/4.0.0/dependencies/orbit/axiom/1.2.11.wso2v3 as a
workaround. Your local repo doesnt have V3. The build process downloads V2.
This has to be fixed.


On Fri, Nov 23, 2012 at 1:10 PM, Ishan Somasiri ish...@wso2.com wrote:

 I too got the same error, any solutions?

 On Fri, Nov 23, 2012 at 11:45 AM, Buddhima Wijeweera buddh...@wso2.comwrote:

 Hi,
 I got the following Compilation failure while   building kernel

 *[ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
 (default-compile) on project org.wso2.carbon.user.mgt.ui:* *Compilation
 failure*: Compilation failure:
 [ERROR]
 /home/buddhima/repo/carbon/kernel/branches/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/Util.java:[20,49]
 package org.wso2.carbon.user.mgt.stub.types.carbon does not exist
 [ERROR]
 /home/buddhima/repo/carbon/kernel/branches/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/Util.java:[21,49]
 package org.wso2.carbon.user.mgt.stub.types.carbon does not exist
 [ERROR]
 /home/buddhima/repo/carbon/kernel/branches/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/Util.java:[22,49]
 package org.wso2.carbon.user.mgt.stub.types.carbon does not exist
 [ERROR]
 /home/buddhima/repo/carbon/kernel/branches/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/Util.java:[23,49]
 package org.wso2.carbon.user.mgt.stub.types.carbon does not exist
 [ERROR]
 /home/buddhima/repo/carbon/kernel/branches/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/Util.java:[34,18]
 cannot find symbol
 [ERROR] symbol  : class FlaggedName
 [ERROR] location: class org.wso2.carbon.user.mgt.ui.Util
 [ERROR]
 /home/buddhima/repo/carbon/kernel/branches/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/Util.java:[53,12]
 cannot find symbol
 [ERROR] symbol  : class FlaggedName
  

 Seem like not pointing to the correct place through pom or error with new
 bundle

 Thanks
 --Buddhima

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




 --
 Thanks!
 --
 Ishan Thilina Somasiri
 www.blog.ishans.info


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


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


Re: [Dev] Build error /carbon/kernel/branches/4.0.0/patch-releases/4.0.5

2012-11-21 Thread Jeewantha Dharmaparakrama
when
dependency
groupIdorg.apache.ws.commons.axiom/groupId
artifactIdaxiom/artifactId
version1.2.11-wso2v3/version
/dependency
is added to a pom , maven downloads version1.2.11-wso2v2/version
Therefor the kernal cannot be built with a clean local repository.

The ant-run-plugin in
kernel/4.0.0/service-stubs/org.wso2.carbon.user.mgt.stub/4.0.5/pom.xmlneeds
pathelement
location=${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2
v3/axiom-1.2.11.wso2v3.jar/

This is why this build error occurs. Can somebody please check if this can
be resolved?
Thanks,
Jeewantha.



On Tue, Nov 20, 2012 at 9:58 PM, Nuwan Dias nuw...@wso2.com wrote:

 This was fixed. Please update
 kernel/4.0.0/service-stubs/org.wso2.carbon.user.mgt.stub and re-build.

 Thanks,
 NuwanD.


 On Tue, Nov 20, 2012 at 7:21 PM, Jeewantha Dharmaparakrama 
 jeewan...@wso2.com wrote:

 $subject pls. The error message:

 [INFO] -
 [ERROR] COMPILATION ERROR :
 [INFO] -
 [ERROR]
 /media/Development/Work/kernel/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/UserAdminClient.java:[31,0]
 error: package org.wso2.carbon.user.mgt.stub does not exist
 [ERROR]
 /media/Development/Work/kernel/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/UserAdminClient.java:[42,14]
 error: cannot find symbol
 [ERROR]  class UserAdminClient
 /media/Development/Work/kernel/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/Util.java:[20,49]
 error: package org.wso2.carbon.user.mgt.stub.types.carbon does not exist
 [ERROR]
 /media/Development/Work/kernel/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/Util.java:[21,49]
 error: package org.wso2.carbon.user.mgt.stub.types.carbon does not exist
 [ERROR]
 /media/Development/Work/kernel/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/Util.java:[22,49]
 error: package org.wso2.carbon.user.mgt.stub.types.carbon does not exist
 [ERROR]
 /media/Development/Work/kernel/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/Util.java:[23,49]
 error: package org.wso2.carbon.user.mgt.stub.types.carbon does not exist
 [ERROR]
 /media/Development/Work/kernel/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/Util.java:[34,18]
 error: cannot find symbol
 [ERROR]  class Util
 /media/Development/Work/kernel/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/Util.java:[53,12]
 error: cannot find symbol
 [ERROR]  class Util

 ..
 .
 [INFO] -
 [INFO]
 
 [INFO] Reactor Summary:
 [INFO]
 [INFO] WSO2 Carbon - User Management Stub  SUCCESS
 [2.083s]
 [INFO] WSO2 Carbon - Aggregate Pom ... SUCCESS
 [0.062s]
 [INFO] WSO2 Carbon - Patch releases - service-stubs - Aggregator Module
 SUCCESS [0.004s]
 [INFO] WSO2 Carbon - Utilities ... SUCCESS
 [4.387s]
 [INFO] WSO2 Carbon - User Manager Kernel . SUCCESS
 [3.687s]
 [INFO] WSO2 Carbon - Registry Kernel . SUCCESS
 [26.638s]
 [INFO] WSO2 Carbon - Kernel .. SUCCESS
 [4.879s]
 [INFO] WSO2 Carbon - User Management Common .. SUCCESS
 [0.684s]
 [INFO] WSO2 Carbon - User Management . SUCCESS
 [1.469s]
 [INFO] WSO2 Carbon - User Management UI .. FAILURE
 [0.631s]
 [INFO] WSO2 Carbon - Patch releases - core - Aggregator Module  SKIPPED
 [INFO] WSO2 Carbon - Carbon Common Feature ... SKIPPED
 [INFO] WSO2 Carbon - Carbon UI Feature ... SKIPPED
 [INFO] WSO2 Carbon - Carbon Server Feature ... SKIPPED
 [INFO] WSO2 Carbon - Carbon Feature .. SKIPPED
 [INFO] WSO2 Carbon - Patch releases - features - Aggregator Module
 SKIPPED
 [INFO] WSO2 Carbon Core - Distribution ... SKIPPED
 [INFO] WSO2 Carbon - Integration . SKIPPED
 [INFO] WSO2 Carbon - Security Verification Service ... SKIPPED
 [INFO] WSO2 Carbon - Integration Core  SKIPPED
 [INFO] WSO2 Carbon - Integration Testing Framework ... SKIPPED
 [INFO] WSO2 Carbon - Integration Tests ... SKIPPED
 [INFO] WSO2 Carbon - Patch releases - distribution - Aggregator Module
 SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 45.607s
 [INFO] Finished at: Tue Nov 20 19:18:01 IST 2012
 [INFO

[Dev] Build error /carbon/kernel/branches/4.0.0/patch-releases/4.0.5

2012-11-20 Thread Jeewantha Dharmaparakrama
$subject pls. The error message:

[INFO] -
[ERROR] COMPILATION ERROR :
[INFO] -
[ERROR]
/media/Development/Work/kernel/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/UserAdminClient.java:[31,0]
error: package org.wso2.carbon.user.mgt.stub does not exist
[ERROR]
/media/Development/Work/kernel/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/UserAdminClient.java:[42,14]
error: cannot find symbol
[ERROR]  class UserAdminClient
/media/Development/Work/kernel/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/Util.java:[20,49]
error: package org.wso2.carbon.user.mgt.stub.types.carbon does not exist
[ERROR]
/media/Development/Work/kernel/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/Util.java:[21,49]
error: package org.wso2.carbon.user.mgt.stub.types.carbon does not exist
[ERROR]
/media/Development/Work/kernel/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/Util.java:[22,49]
error: package org.wso2.carbon.user.mgt.stub.types.carbon does not exist
[ERROR]
/media/Development/Work/kernel/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/Util.java:[23,49]
error: package org.wso2.carbon.user.mgt.stub.types.carbon does not exist
[ERROR]
/media/Development/Work/kernel/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/Util.java:[34,18]
error: cannot find symbol
[ERROR]  class Util
/media/Development/Work/kernel/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/Util.java:[53,12]
error: cannot find symbol
[ERROR]  class Util

..
.
[INFO] -
[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 Carbon - User Management Stub  SUCCESS [2.083s]
[INFO] WSO2 Carbon - Aggregate Pom ... SUCCESS [0.062s]
[INFO] WSO2 Carbon - Patch releases - service-stubs - Aggregator Module
SUCCESS [0.004s]
[INFO] WSO2 Carbon - Utilities ... SUCCESS [4.387s]
[INFO] WSO2 Carbon - User Manager Kernel . SUCCESS [3.687s]
[INFO] WSO2 Carbon - Registry Kernel . SUCCESS [26.638s]
[INFO] WSO2 Carbon - Kernel .. SUCCESS [4.879s]
[INFO] WSO2 Carbon - User Management Common .. SUCCESS [0.684s]
[INFO] WSO2 Carbon - User Management . SUCCESS [1.469s]
[INFO] WSO2 Carbon - User Management UI .. FAILURE [0.631s]
[INFO] WSO2 Carbon - Patch releases - core - Aggregator Module  SKIPPED
[INFO] WSO2 Carbon - Carbon Common Feature ... SKIPPED
[INFO] WSO2 Carbon - Carbon UI Feature ... SKIPPED
[INFO] WSO2 Carbon - Carbon Server Feature ... SKIPPED
[INFO] WSO2 Carbon - Carbon Feature .. SKIPPED
[INFO] WSO2 Carbon - Patch releases - features - Aggregator Module  SKIPPED
[INFO] WSO2 Carbon Core - Distribution ... SKIPPED
[INFO] WSO2 Carbon - Integration . SKIPPED
[INFO] WSO2 Carbon - Security Verification Service ... SKIPPED
[INFO] WSO2 Carbon - Integration Core  SKIPPED
[INFO] WSO2 Carbon - Integration Testing Framework ... SKIPPED
[INFO] WSO2 Carbon - Integration Tests ... SKIPPED
[INFO] WSO2 Carbon - Patch releases - distribution - Aggregator Module
SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 45.607s
[INFO] Finished at: Tue Nov 20 19:18:01 IST 2012
[INFO] Final Memory: 116M/744M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project org.wso2.carbon.user.mgt.ui: Compilation
failure: Compilation failure:
[ERROR]
/media/Development/Work/kernel/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/UserAdminClient.java:[31,0]
error: package org.wso2.carbon.user.mgt.stub does not exist
[ERROR]
/media/Development/Work/kernel/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/UserAdminClient.java:[42,14]
error: cannot find symbol
[ERROR] class UserAdminClient
[ERROR]
/media/Development/Work/kernel/4.0.0/core/org.wso2.carbon.user.mgt.ui/4.0.5/src/main/java/org/wso2/carbon/user/mgt/ui/Util.java:[20,49]
error: package org.wso2.carbon.user.mgt.stub.types.carbon does not exist
[ERROR]