Re: [Dev] Adding data to database in WSO2 App Cloud

2014-07-10 Thread Firzhan Naqash
Hi,

You have to get the remote connection enabled from the Infra. By default it
has been disabled.

Regards,
Firzhan


On Thu, Jul 10, 2014 at 10:45 AM, Udara Liyanage ud...@wso2.com wrote:

 HI,

 I tried telnet mysql-dev-01.cloud.wso2.com
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x 3006 and there was a
 response. MySQL server seems to run on the given host and port. Please
 check whether remote login has enabled from MySQL server side.


 On Thu, Jul 10, 2014 at 8:15 AM, Nilashan Namasivayam n.nil...@gmail.com
 wrote:

 Hi,

 Even I tried like this, It shows same error.
 For the username for the database, It automatically create a username
 than I given, Like if I put dbuser then It creates dbuser_ubITB7my. So
 Do I use this one? and I have used this one also, It shows same error.

 Thank you,

 Regards,
 Nilashan


 On Thu, Jul 10, 2014 at 7:58 AM, Danushka Fernando danush...@wso2.com
 wrote:

 Hi
 When you use mysql client you have to give the host name for -h option
 not the db URL. So try

 mysql -u dbuser -h mysql-
 http://mysql-dev-01.cloud.wso2.com:3306/db1_xdev
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x-01.
 http://mysql-dev-01.cloud.wso2.com:3306/db1_xcloud.wso2
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x.com
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x -p
 On Jul 9, 2014 10:56 PM, Nilashan Namasivayam n.nil...@gmail.com
 wrote:

 Hi,

 I'm trying to add some data to the database in App Cloud.

 The database url like this:
   jdbc:mysql://mysql-dev-01.cloud.wso2.com:3306/db1_x


 and I have tried to connect via MySQL client like this
  mysql -u dbuser -h jdbc:mysql://
 mysql-dev-01.cloud.wso2.com:3306/db1_x -p

 After trying the above code, I get this error in console
   ERROR 2005 (HY000): Unknown MySQL server host 'jdbc:mysql://
 mysql-dev-01.cloud.wso2.com:3306/db1_x' (2)

 What can be the problem?

 I'm following this documentation:

 http://docs.wso2.com/display/AppCloud/Add+Data+to+my+Database+or+Connect+to+an+External+Database

 Do we need any additional configuration in App Cloud than mentioned in
 the above link?


 Regards,
 Nilashan

 ___
 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




 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

 ___
 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] Adding data to database in WSO2 App Cloud

2014-07-10 Thread Nilashan Namasivayam
Hi,

Thanks, How to enable it from the Infra?

Regards,
Nilashan


On Thu, Jul 10, 2014 at 11:44 AM, Firzhan Naqash firz...@wso2.com wrote:


 Hi,

 You have to get the remote connection enabled from the Infra. By default
 it has been disabled.

 Regards,
 Firzhan


 On Thu, Jul 10, 2014 at 10:45 AM, Udara Liyanage ud...@wso2.com wrote:

 HI,

 I tried telnet mysql-dev-01.cloud.wso2.com
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x 3006 and there was a
 response. MySQL server seems to run on the given host and port. Please
 check whether remote login has enabled from MySQL server side.


 On Thu, Jul 10, 2014 at 8:15 AM, Nilashan Namasivayam n.nil...@gmail.com
  wrote:

 Hi,

 Even I tried like this, It shows same error.
 For the username for the database, It automatically create a username
 than I given, Like if I put dbuser then It creates dbuser_ubITB7my. So
 Do I use this one? and I have used this one also, It shows same error.

 Thank you,

 Regards,
 Nilashan


 On Thu, Jul 10, 2014 at 7:58 AM, Danushka Fernando danush...@wso2.com
 wrote:

 Hi
 When you use mysql client you have to give the host name for -h option
 not the db URL. So try

 mysql -u dbuser -h mysql-
 http://mysql-dev-01.cloud.wso2.com:3306/db1_xdev
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x-01.
 http://mysql-dev-01.cloud.wso2.com:3306/db1_xcloud.wso2
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x.com
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x -p
 On Jul 9, 2014 10:56 PM, Nilashan Namasivayam n.nil...@gmail.com
 wrote:

 Hi,

 I'm trying to add some data to the database in App Cloud.

 The database url like this:
   jdbc:mysql://mysql-dev-01.cloud.wso2.com:3306/db1_x


 and I have tried to connect via MySQL client like this
  mysql -u dbuser -h jdbc:mysql://
 mysql-dev-01.cloud.wso2.com:3306/db1_x -p

 After trying the above code, I get this error in console
   ERROR 2005 (HY000): Unknown MySQL server host 'jdbc:mysql://
 mysql-dev-01.cloud.wso2.com:3306/db1_x' (2)

 What can be the problem?

 I'm following this documentation:

 http://docs.wso2.com/display/AppCloud/Add+Data+to+my+Database+or+Connect+to+an+External+Database

 Do we need any additional configuration in App Cloud than mentioned in
 the above link?


 Regards,
 Nilashan

 ___
 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




 --

 Udara Liyanage
 Software Engineer
  WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

 ___
 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] Adding data to database in WSO2 App Cloud

2014-07-10 Thread Danushka Fernando
Hi
This is WSO2 Cloud hosted in EC2. So If it can be telnet, then it is open
to the public. This is nothing to do with Infra. Amila can you check what's
going wrong here.

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


On Thu, Jul 10, 2014 at 11:44 AM, Firzhan Naqash firz...@wso2.com wrote:


 Hi,

 You have to get the remote connection enabled from the Infra. By default
 it has been disabled.

 Regards,
 Firzhan


 On Thu, Jul 10, 2014 at 10:45 AM, Udara Liyanage ud...@wso2.com wrote:

 HI,

 I tried telnet mysql-dev-01.cloud.wso2.com
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x 3006 and there was a
 response. MySQL server seems to run on the given host and port. Please
 check whether remote login has enabled from MySQL server side.


 On Thu, Jul 10, 2014 at 8:15 AM, Nilashan Namasivayam n.nil...@gmail.com
  wrote:

 Hi,

 Even I tried like this, It shows same error.
 For the username for the database, It automatically create a username
 than I given, Like if I put dbuser then It creates dbuser_ubITB7my. So
 Do I use this one? and I have used this one also, It shows same error.

 Thank you,

 Regards,
 Nilashan


 On Thu, Jul 10, 2014 at 7:58 AM, Danushka Fernando danush...@wso2.com
 wrote:

 Hi
 When you use mysql client you have to give the host name for -h option
 not the db URL. So try

 mysql -u dbuser -h mysql-
 http://mysql-dev-01.cloud.wso2.com:3306/db1_xdev
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x-01.
 http://mysql-dev-01.cloud.wso2.com:3306/db1_xcloud.wso2
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x.com
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x -p
 On Jul 9, 2014 10:56 PM, Nilashan Namasivayam n.nil...@gmail.com
 wrote:

 Hi,

 I'm trying to add some data to the database in App Cloud.

 The database url like this:
   jdbc:mysql://mysql-dev-01.cloud.wso2.com:3306/db1_x


 and I have tried to connect via MySQL client like this
  mysql -u dbuser -h jdbc:mysql://
 mysql-dev-01.cloud.wso2.com:3306/db1_x -p

 After trying the above code, I get this error in console
   ERROR 2005 (HY000): Unknown MySQL server host 'jdbc:mysql://
 mysql-dev-01.cloud.wso2.com:3306/db1_x' (2)

 What can be the problem?

 I'm following this documentation:

 http://docs.wso2.com/display/AppCloud/Add+Data+to+my+Database+or+Connect+to+an+External+Database

 Do we need any additional configuration in App Cloud than mentioned in
 the above link?


 Regards,
 Nilashan

 ___
 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




 --

 Udara Liyanage
 Software Engineer
  WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

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



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


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


Re: [Dev] Plug Jaggery test framework to automation framework - Executing jaggery test cases during the build time and bridging it with test framework

2014-07-10 Thread Ruchira Wageesha
Hi Krishantha,

If it is just a dummy class as you mentioned, then that would be fine. i.e.
we neither need to maintain any *.xml configurations or Java codes, other
than the pom.xml configuration.

Regarding my initial suggestion, you would be able to do it using [1].

[1]
http://testng.org/doc/documentation-main.html#running-testng-programmatically
[2]
http://stackoverflow.com/questions/13732015/dynamic-test-suites-using-testng


On Wed, Jul 9, 2014 at 11:20 AM, Krishantha Samaraweera krishan...@wso2.com
 wrote:

 Hi Ruchira,


 On Mon, Jul 7, 2014 at 6:39 PM, Ruchira Wageesha ruch...@wso2.com wrote:




 On Mon, Jul 7, 2014 at 4:46 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Ruchira,

 This is not going to be a simple plugin to implement.This plugin will
 act as a test executor and report generator, and we need to integrate code
 coverage generation as well. Maven already provide sure-fire plug for test
 execution and TestNG and Emma provide other capabilities. So writing a new
 plugin from the scratch will be more work and we are going to ignore
 existing plugins and test framework capabilities. I think we are trying to
 reinvent the wheel

 Sorry Krishantha, you have got it wrong :). I never said to reinvent the
 wheel and I know it is useless.

 To clarify what I meant, assume the configuration that everyone put in
 their pom.xml asking TestNG/Emma to execute the test class that they
 wrote(Let's say it as X and everyone will have to write the same class).
 Instead of that, your test framework jar bundles the class(X) and you write
 a maven plugin, which allows someone to ask TestNG/Emma to execute tests
 with your bundled class(X) by just specifying maven plugin configuration in
 their pom.xml


 Idea of this new feature was to run jaggery tests and display the result
 in TestNG report generated by test framework. To implement the plugin you
 mentioned, we need to write a wrapper plugin around surefire plugin. I
 don't know whether this capability is provided by maven.

 The test class that developers going write will be look like this [1]. It
 is matter of extending abstract test class. Will do a demo on this and
 discuss with you. So we can decide what is the best way to go ahead.

 [1]
 https://github.com/wso2/product-dss/blob/master/modules/integration/tests-integration/tests/src/test/java/org/wso2/dss/integration/test/server/mgt/DSSServerBundleStatusTestCase.java


  again.

 Adding one single test class just by extending a class provided by test
 framework doesn't going to be overkill.

 Is there a way to discover all jaggery applications hosted in carbon
 server instance? if jaggery app discovery is available, then we can use
 testNG listener to run all unit tests in those Jaggery apps even without
 writing single java class in product test modules.

 +1. If you list down all the directories available within
 repository/deployment/server/jaggeryapps directory, those are the Jaggery
 apps available.


 If we refer carbon.home in tests case, then the test case will have to be
 skipped from platform/distributed scenarios (where distribution is hosted
 remotely). We refer carbon.home only if there is no way to get test inputs.

 Is there a admin service to get all jaggery apps deployed on carbon
 instance ?

 Thanks,
 Krishantha.




 Thanks,
 Krishantha.



 On Mon, Jul 7, 2014 at 4:31 PM, Ruchira Wageesha ruch...@wso2.com
 wrote:

 Hi Dimuthu,

 With this approach, everyone who wants to test Jaggery apps will have
 to write the same Java code by extending your base class, which is
 redundant. Hence, IMO, the best options would be to wrap your base class
 and write a maven plugin. So, what other's will have to do is, just add
 that configuration in the pom and tests will be executed automatically
 without writing any Java code.

 /Ruchira


 On Mon, Jul 7, 2014 at 3:39 PM, Dimuthu De Lanerolle dimut...@wso2.com
  wrote:

 Hi,

 I have started working on this. Our plan is to write a common test
 class inside carbon-platform-integration-utils module which product teams
 can extend and start running jaggery tests residing inside
 [PRODUCT_HOME]/repository/deployment/server/jaggeryapps/xxx/test 
 directory.
 Invocation of each test endpoint will be treated as a separate test case
 resulting number of test cases to be executed will get equal to number of
 test endpoints to be invoked.

 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





 --

 *Ruchira Wageesha**Associate Technical Lead*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com
 http://wso2.com*

 *email: ruch...@wso2.com ruch...@wso2.com,   blog:
 ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com,
 mobile: +94 77 5493444 %2B94%2077%205493444*




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

Re: [Dev] Plug Jaggery test framework to automation framework - Executing jaggery test cases during the build time and bridging it with test framework

2014-07-10 Thread Chamil Jeewantha
Hi All,

I was thinking the tests are written in Java. I had a chat with Ruchira 
understood the tests are written in Jaggery. So let me take back the
annotation. BTW, my personal opinion is, just putting a dummy java class to
identify whether its Jaggery test is bit odd.

There are many other java based scripting languages which may have
integrated with TestNG. I think its better to do a small research to find
what is the way they have followed. [1] for example. WDYT?

[1] https://code.google.com/p/testngroove/


On Thu, Jul 10, 2014 at 12:10 PM, Ruchira Wageesha ruch...@wso2.com wrote:

 Hi Krishantha,

 If it is just a dummy class as you mentioned, then that would be fine.
 i.e. we neither need to maintain any *.xml configurations or Java codes,
 other than the pom.xml configuration.

 Regarding my initial suggestion, you would be able to do it using [1].

 [1]
 http://testng.org/doc/documentation-main.html#running-testng-programmatically
 [2]
 http://stackoverflow.com/questions/13732015/dynamic-test-suites-using-testng


 On Wed, Jul 9, 2014 at 11:20 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Ruchira,


 On Mon, Jul 7, 2014 at 6:39 PM, Ruchira Wageesha ruch...@wso2.com
 wrote:




 On Mon, Jul 7, 2014 at 4:46 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Ruchira,

 This is not going to be a simple plugin to implement.This plugin will
 act as a test executor and report generator, and we need to integrate code
 coverage generation as well. Maven already provide sure-fire plug for test
 execution and TestNG and Emma provide other capabilities. So writing a new
 plugin from the scratch will be more work and we are going to ignore
 existing plugins and test framework capabilities. I think we are trying to
 reinvent the wheel

 Sorry Krishantha, you have got it wrong :). I never said to reinvent the
 wheel and I know it is useless.

 To clarify what I meant, assume the configuration that everyone put in
 their pom.xml asking TestNG/Emma to execute the test class that they
 wrote(Let's say it as X and everyone will have to write the same class).
 Instead of that, your test framework jar bundles the class(X) and you write
 a maven plugin, which allows someone to ask TestNG/Emma to execute tests
 with your bundled class(X) by just specifying maven plugin configuration in
 their pom.xml


 Idea of this new feature was to run jaggery tests and display the result
 in TestNG report generated by test framework. To implement the plugin you
 mentioned, we need to write a wrapper plugin around surefire plugin. I
 don't know whether this capability is provided by maven.

 The test class that developers going write will be look like this [1]. It
 is matter of extending abstract test class. Will do a demo on this and
 discuss with you. So we can decide what is the best way to go ahead.

 [1]
 https://github.com/wso2/product-dss/blob/master/modules/integration/tests-integration/tests/src/test/java/org/wso2/dss/integration/test/server/mgt/DSSServerBundleStatusTestCase.java


  again.

 Adding one single test class just by extending a class provided by test
 framework doesn't going to be overkill.

 Is there a way to discover all jaggery applications hosted in carbon
 server instance? if jaggery app discovery is available, then we can use
 testNG listener to run all unit tests in those Jaggery apps even without
 writing single java class in product test modules.

 +1. If you list down all the directories available within
 repository/deployment/server/jaggeryapps directory, those are the Jaggery
 apps available.


 If we refer carbon.home in tests case, then the test case will have to be
 skipped from platform/distributed scenarios (where distribution is hosted
 remotely). We refer carbon.home only if there is no way to get test inputs.

 Is there a admin service to get all jaggery apps deployed on carbon
 instance ?

 Thanks,
 Krishantha.




 Thanks,
 Krishantha.



 On Mon, Jul 7, 2014 at 4:31 PM, Ruchira Wageesha ruch...@wso2.com
 wrote:

 Hi Dimuthu,

 With this approach, everyone who wants to test Jaggery apps will have
 to write the same Java code by extending your base class, which is
 redundant. Hence, IMO, the best options would be to wrap your base class
 and write a maven plugin. So, what other's will have to do is, just add
 that configuration in the pom and tests will be executed automatically
 without writing any Java code.

 /Ruchira


 On Mon, Jul 7, 2014 at 3:39 PM, Dimuthu De Lanerolle 
 dimut...@wso2.com wrote:

 Hi,

 I have started working on this. Our plan is to write a common test
 class inside carbon-platform-integration-utils module which product teams
 can extend and start running jaggery tests residing inside
 [PRODUCT_HOME]/repository/deployment/server/jaggeryapps/xxx/test 
 directory.
 Invocation of each test endpoint will be treated as a separate test case
 resulting number of test cases to be executed will get equal to number of
 test endpoints to be invoked.

 

Re: [Dev] Plug Jaggery test framework to automation framework - Executing jaggery test cases during the build time and bridging it with test framework

2014-07-10 Thread Krishantha Samaraweera
Hi Chamil,

On Thu, Jul 10, 2014 at 10:57 AM, Chamil Jeewantha cha...@wso2.com wrote:

 AFAIU, If any test is extended from the base class, you identify it as a
 jaggery test and do some special treatment like integrating to Emma etc...
 The annotation marks the class as qualified to receive the special
 treatment you are going to do within the abstract class. The best example
 is the difference between JUnit 3  4.

 In JUnit 3 we had to extend our test class from junit.framework.TestCase
 class. But in Junit 4, the abstract class has been deprecated and
 introduced a simple annotations.

 So I think asking people to implement their test classes from a Abstract
 class is an old fashion which was followed before java 5. We can improve
 the readability of the test using annotations.


Lets say we have set of tests which need to be executed with different
configurations. Then we need to abstract the test methods and write test
classes extending the abstract class to avoid repetition of tests.
Ruchira's requirement is to code less test execution, so I don't think
annotations would help here.

We already use standard TestNG annotations, however implementing new
annotation for each requirement does't going to scale.

Thanks,
Krishantha.



 On Thu, Jul 10, 2014 at 10:25 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Chamil,

 We can introduce TestNG custom annotation easily, but I'm in confusion
 how custom annotation fit in to this context.

 Only thing which comes to my mind is include the base class to all
 products using TestNG annotation transform listener.

 Thanks,
 Krishantha.






 On Thu, Jul 10, 2014 at 10:16 AM, Chamil Jeewantha cha...@wso2.com
 wrote:

 Hi All,

 Why can't we use an annotation like @JaggeryTest rather than a Base
 class in this case? It will be more sophisticated to the test writers.

 Regards,
 Chamil


 On Wed, Jul 9, 2014 at 11:59 AM, Ruchira Wageesha ruch...@wso2.com
 wrote:

 Hi Krishantha,

 You should be able to use the same admin service that you use for Java
 webapps.


 On Wed, Jul 9, 2014 at 11:20 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Ruchira,


 On Mon, Jul 7, 2014 at 6:39 PM, Ruchira Wageesha ruch...@wso2.com
 wrote:




 On Mon, Jul 7, 2014 at 4:46 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Ruchira,

 This is not going to be a simple plugin to implement.This plugin
 will act as a test executor and report generator, and we need to 
 integrate
 code coverage generation as well. Maven already provide sure-fire plug 
 for
 test execution and TestNG and Emma provide other capabilities. So 
 writing a
 new plugin from the scratch will be more work and we are going to ignore
 existing plugins and test framework capabilities. I think we are trying 
 to
 reinvent the wheel

 Sorry Krishantha, you have got it wrong :). I never said to reinvent
 the wheel and I know it is useless.

 To clarify what I meant, assume the configuration that everyone put
 in their pom.xml asking TestNG/Emma to execute the test class that they
 wrote(Let's say it as X and everyone will have to write the same class).
 Instead of that, your test framework jar bundles the class(X) and you 
 write
 a maven plugin, which allows someone to ask TestNG/Emma to execute tests
 with your bundled class(X) by just specifying maven plugin configuration 
 in
 their pom.xml


 Idea of this new feature was to run jaggery tests and display the
 result in TestNG report generated by test framework. To implement the
 plugin you mentioned, we need to write a wrapper plugin around surefire
 plugin. I don't know whether this capability is provided by maven.

 The test class that developers going write will be look like this [1].
 It is matter of extending abstract test class. Will do a demo on this and
 discuss with you. So we can decide what is the best way to go ahead.

 [1]
 https://github.com/wso2/product-dss/blob/master/modules/integration/tests-integration/tests/src/test/java/org/wso2/dss/integration/test/server/mgt/DSSServerBundleStatusTestCase.java


  again.

 Adding one single test class just by extending a class provided by
 test framework doesn't going to be overkill.

 Is there a way to discover all jaggery applications hosted in carbon
 server instance? if jaggery app discovery is available, then we can use
 testNG listener to run all unit tests in those Jaggery apps even without
 writing single java class in product test modules.

 +1. If you list down all the directories available within
 repository/deployment/server/jaggeryapps directory, those are the Jaggery
 apps available.


 If we refer carbon.home in tests case, then the test case will have to
 be skipped from platform/distributed scenarios (where distribution is
 hosted remotely). We refer carbon.home only if there is no way to get test
 inputs.

 Is there a admin service to get all jaggery apps deployed on carbon
 instance ?

 Thanks,
 Krishantha.




 Thanks,
 Krishantha.



 On Mon, Jul 7, 

Re: [Dev] Plug Jaggery test framework to automation framework - Executing jaggery test cases during the build time and bridging it with test framework

2014-07-10 Thread Krishantha Samaraweera
Hi Ruchira,

On Thu, Jul 10, 2014 at 12:10 PM, Ruchira Wageesha ruch...@wso2.com wrote:

 Hi Krishantha,

 If it is just a dummy class as you mentioned, then that would be fine.
 i.e. we neither need to maintain any *.xml configurations or Java codes,
 other than the pom.xml configuration.

 Regarding my initial suggestion, you would be able to do it using [1].

 [1]
 http://testng.org/doc/documentation-main.html#running-testng-programmatically
 [2]
 http://stackoverflow.com/questions/13732015/dynamic-test-suites-using-testng


We used to run TestNG programatically in our early days. But it has many
problems when it comes to test management (i.e you can't run selected tests
without changing the test runner class)

I'm researching around TestNG advance capabilities get the common test
class running even without dummy class.

Thanks,
Krishantha.




 On Wed, Jul 9, 2014 at 11:20 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Ruchira,


 On Mon, Jul 7, 2014 at 6:39 PM, Ruchira Wageesha ruch...@wso2.com
 wrote:




 On Mon, Jul 7, 2014 at 4:46 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Ruchira,

 This is not going to be a simple plugin to implement.This plugin will
 act as a test executor and report generator, and we need to integrate code
 coverage generation as well. Maven already provide sure-fire plug for test
 execution and TestNG and Emma provide other capabilities. So writing a new
 plugin from the scratch will be more work and we are going to ignore
 existing plugins and test framework capabilities. I think we are trying to
 reinvent the wheel

 Sorry Krishantha, you have got it wrong :). I never said to reinvent the
 wheel and I know it is useless.

 To clarify what I meant, assume the configuration that everyone put in
 their pom.xml asking TestNG/Emma to execute the test class that they
 wrote(Let's say it as X and everyone will have to write the same class).
 Instead of that, your test framework jar bundles the class(X) and you write
 a maven plugin, which allows someone to ask TestNG/Emma to execute tests
 with your bundled class(X) by just specifying maven plugin configuration in
 their pom.xml


 Idea of this new feature was to run jaggery tests and display the result
 in TestNG report generated by test framework. To implement the plugin you
 mentioned, we need to write a wrapper plugin around surefire plugin. I
 don't know whether this capability is provided by maven.

 The test class that developers going write will be look like this [1]. It
 is matter of extending abstract test class. Will do a demo on this and
 discuss with you. So we can decide what is the best way to go ahead.

 [1]
 https://github.com/wso2/product-dss/blob/master/modules/integration/tests-integration/tests/src/test/java/org/wso2/dss/integration/test/server/mgt/DSSServerBundleStatusTestCase.java


  again.

 Adding one single test class just by extending a class provided by test
 framework doesn't going to be overkill.

 Is there a way to discover all jaggery applications hosted in carbon
 server instance? if jaggery app discovery is available, then we can use
 testNG listener to run all unit tests in those Jaggery apps even without
 writing single java class in product test modules.

 +1. If you list down all the directories available within
 repository/deployment/server/jaggeryapps directory, those are the Jaggery
 apps available.


 If we refer carbon.home in tests case, then the test case will have to be
 skipped from platform/distributed scenarios (where distribution is hosted
 remotely). We refer carbon.home only if there is no way to get test inputs.

 Is there a admin service to get all jaggery apps deployed on carbon
 instance ?

 Thanks,
 Krishantha.




 Thanks,
 Krishantha.



 On Mon, Jul 7, 2014 at 4:31 PM, Ruchira Wageesha ruch...@wso2.com
 wrote:

 Hi Dimuthu,

 With this approach, everyone who wants to test Jaggery apps will have
 to write the same Java code by extending your base class, which is
 redundant. Hence, IMO, the best options would be to wrap your base class
 and write a maven plugin. So, what other's will have to do is, just add
 that configuration in the pom and tests will be executed automatically
 without writing any Java code.

 /Ruchira


 On Mon, Jul 7, 2014 at 3:39 PM, Dimuthu De Lanerolle 
 dimut...@wso2.com wrote:

 Hi,

 I have started working on this. Our plan is to write a common test
 class inside carbon-platform-integration-utils module which product teams
 can extend and start running jaggery tests residing inside
 [PRODUCT_HOME]/repository/deployment/server/jaggeryapps/xxx/test 
 directory.
 Invocation of each test endpoint will be treated as a separate test case
 resulting number of test cases to be executed will get equal to number of
 test endpoints to be invoked.

 Regards

 Dimuthu De Lanerolle
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middlewear.
 http://wso2.com/
 Tel. : +94 11 2145345  Fax : +94 11 2145300  email :
 

Re: [Dev] Plug Jaggery test framework to automation framework - Executing jaggery test cases during the build time and bridging it with test framework

2014-07-10 Thread Krishantha Samaraweera
Hi Chamil

On Thu, Jul 10, 2014 at 12:39 PM, Chamil Jeewantha cha...@wso2.com wrote:

 Hi All,

 I was thinking the tests are written in Java. I had a chat with Ruchira 
 understood the tests are written in Jaggery. So let me take back the
 annotation. BTW, my personal opinion is, just putting a dummy java class to
 identify whether its Jaggery test is bit odd.


Dummy class is not to identify the Jaggery tests,  it does many more
functionalities, like identify all endpoints in each Jaggery app and send a
GET request to execute the tests represented at each endpoint.


 There are many other java based scripting languages which may have
 integrated with TestNG. I think its better to do a small research to find
 what is the way they have followed. [1] for example. WDYT?


This is just a matter of sending GET request to Jaggery app endpoint. No
scripting required IMO.

Thanks,
Krishantha.


 [1] https://code.google.com/p/testngroove/


 On Thu, Jul 10, 2014 at 12:10 PM, Ruchira Wageesha ruch...@wso2.com
 wrote:

 Hi Krishantha,

 If it is just a dummy class as you mentioned, then that would be fine.
 i.e. we neither need to maintain any *.xml configurations or Java codes,
 other than the pom.xml configuration.

 Regarding my initial suggestion, you would be able to do it using [1].

 [1]
 http://testng.org/doc/documentation-main.html#running-testng-programmatically
 [2]
 http://stackoverflow.com/questions/13732015/dynamic-test-suites-using-testng


 On Wed, Jul 9, 2014 at 11:20 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Ruchira,


 On Mon, Jul 7, 2014 at 6:39 PM, Ruchira Wageesha ruch...@wso2.com
 wrote:




 On Mon, Jul 7, 2014 at 4:46 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Ruchira,

 This is not going to be a simple plugin to implement.This plugin will
 act as a test executor and report generator, and we need to integrate code
 coverage generation as well. Maven already provide sure-fire plug for test
 execution and TestNG and Emma provide other capabilities. So writing a new
 plugin from the scratch will be more work and we are going to ignore
 existing plugins and test framework capabilities. I think we are trying to
 reinvent the wheel

 Sorry Krishantha, you have got it wrong :). I never said to reinvent
 the wheel and I know it is useless.

 To clarify what I meant, assume the configuration that everyone put in
 their pom.xml asking TestNG/Emma to execute the test class that they
 wrote(Let's say it as X and everyone will have to write the same class).
 Instead of that, your test framework jar bundles the class(X) and you write
 a maven plugin, which allows someone to ask TestNG/Emma to execute tests
 with your bundled class(X) by just specifying maven plugin configuration in
 their pom.xml


 Idea of this new feature was to run jaggery tests and display the result
 in TestNG report generated by test framework. To implement the plugin you
 mentioned, we need to write a wrapper plugin around surefire plugin. I
 don't know whether this capability is provided by maven.

 The test class that developers going write will be look like this [1].
 It is matter of extending abstract test class. Will do a demo on this and
 discuss with you. So we can decide what is the best way to go ahead.

 [1]
 https://github.com/wso2/product-dss/blob/master/modules/integration/tests-integration/tests/src/test/java/org/wso2/dss/integration/test/server/mgt/DSSServerBundleStatusTestCase.java


  again.

 Adding one single test class just by extending a class provided by
 test framework doesn't going to be overkill.

 Is there a way to discover all jaggery applications hosted in carbon
 server instance? if jaggery app discovery is available, then we can use
 testNG listener to run all unit tests in those Jaggery apps even without
 writing single java class in product test modules.

 +1. If you list down all the directories available within
 repository/deployment/server/jaggeryapps directory, those are the Jaggery
 apps available.


 If we refer carbon.home in tests case, then the test case will have to
 be skipped from platform/distributed scenarios (where distribution is
 hosted remotely). We refer carbon.home only if there is no way to get test
 inputs.

 Is there a admin service to get all jaggery apps deployed on carbon
 instance ?

 Thanks,
 Krishantha.




 Thanks,
 Krishantha.



 On Mon, Jul 7, 2014 at 4:31 PM, Ruchira Wageesha ruch...@wso2.com
 wrote:

 Hi Dimuthu,

 With this approach, everyone who wants to test Jaggery apps will have
 to write the same Java code by extending your base class, which is
 redundant. Hence, IMO, the best options would be to wrap your base class
 and write a maven plugin. So, what other's will have to do is, just add
 that configuration in the pom and tests will be executed automatically
 without writing any Java code.

 /Ruchira


 On Mon, Jul 7, 2014 at 3:39 PM, Dimuthu De Lanerolle 
 dimut...@wso2.com wrote:

 Hi,

 I have started working on this. 

[Dev] Out of Memory Error When Setting up DepSync

2014-07-10 Thread Dumidu Handakumbura
Hi guys,

I'm getting the following exception when setting up dep sync for a DSS
cluster. Im using SVN 1.7.9. Would downgrading my svn version fix the issue
or is there a work around?

java.lang.OutOfMemoryError: Java heap space
Dumping heap to
/home/dumidu/QAWork/DSS3.2.2Rel/master/wso2dss-3.2.2/repository/logs/heap-dump.hprof
...
Unable to create
/home/dumidu/QAWork/DSS3.2.2Rel/master/wso2dss-3.2.2/repository/logs/heap-dump.hprof:
File exists
[2014-07-10 13:55:31,068] ERROR
{org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask} -  Error
while running deployment scheduler..
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2367)
at
java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)
at
java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114)
at
java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415)
at java.lang.StringBuffer.append(StringBuffer.java:237)
at
org.tmatesoft.svn.core.SVNErrorMessage.getFullMessage(SVNErrorMessage.java:257)
at
org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:58)
at
org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory.open(SVNAdminAreaFactory.java:163)
at
org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.doOpen(SVNWCAccess.java:364)
at
org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess.java:272)
at
org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess.java:265)
at
org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess.java:261)
at
org.tmatesoft.svn.core.wc.SVNStatusClient.doStatus(SVNStatusClient.java:316)
at
org.tmatesoft.svn.core.javahl.SVNClientImpl.status(SVNClientImpl.java:296)
at
org.tmatesoft.svn.core.javahl.SVNClientImpl.status(SVNClientImpl.java:278)
at
org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getStatus(AbstractJhlClientAdapter.java:542)
at
org.tigris.subversion.svnclientadapter.svnkit.SvnKitClientAdapter.getStatus(SvnKitClientAdapter.java:144)
at
org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getStatus(AbstractJhlClientAdapter.java:528)
at
org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getStatus(AbstractJhlClientAdapter.java:521)
at
org.wso2.carbon.deployment.synchronizer.subversion.SVNBasedArtifactRepository.cleanupDeletedFiles(SVNBasedArtifactRepository.java:533)

Please find the full stack trace attached.


Regards,


-- 
*Dumidu Handakumbura*
Software Engineer - QA
WSO2 Inc; http://www.wso2.com/.
Mobile;
*+9406740 *


depsync_exception.odt
Description: application/vnd.oasis.opendocument.text
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Out of Memory Error When Setting up DepSync

2014-07-10 Thread Kasun Dissanayake
Hi Dumidu

Are you using the default size of JVM heap memory size or are you getting
this error when you building this using maven ?


On Thu, Jul 10, 2014 at 2:07 PM, Dumidu Handakumbura dum...@wso2.com
wrote:

 Hi guys,

 I'm getting the following exception when setting up dep sync for a DSS
 cluster. Im using SVN 1.7.9. Would downgrading my svn version fix the issue
 or is there a work around?

 java.lang.OutOfMemoryError: Java heap space
 Dumping heap to
 /home/dumidu/QAWork/DSS3.2.2Rel/master/wso2dss-3.2.2/repository/logs/heap-dump.hprof
 ...
 Unable to create
 /home/dumidu/QAWork/DSS3.2.2Rel/master/wso2dss-3.2.2/repository/logs/heap-dump.hprof:
 File exists
 [2014-07-10 13:55:31,068] ERROR
 {org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask} -  Error
 while running deployment scheduler..
 java.lang.OutOfMemoryError: Java heap space
 at java.util.Arrays.copyOf(Arrays.java:2367)
 at
 java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)
 at
 java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114)
 at
 java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415)
 at java.lang.StringBuffer.append(StringBuffer.java:237)
 at
 org.tmatesoft.svn.core.SVNErrorMessage.getFullMessage(SVNErrorMessage.java:257)
 at
 org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:58)
 at
 org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory.open(SVNAdminAreaFactory.java:163)
 at
 org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.doOpen(SVNWCAccess.java:364)
 at
 org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess.java:272)
 at
 org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess.java:265)
 at
 org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess.java:261)
 at
 org.tmatesoft.svn.core.wc.SVNStatusClient.doStatus(SVNStatusClient.java:316)
 at
 org.tmatesoft.svn.core.javahl.SVNClientImpl.status(SVNClientImpl.java:296)
 at
 org.tmatesoft.svn.core.javahl.SVNClientImpl.status(SVNClientImpl.java:278)
 at
 org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getStatus(AbstractJhlClientAdapter.java:542)
 at
 org.tigris.subversion.svnclientadapter.svnkit.SvnKitClientAdapter.getStatus(SvnKitClientAdapter.java:144)
 at
 org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getStatus(AbstractJhlClientAdapter.java:528)
 at
 org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getStatus(AbstractJhlClientAdapter.java:521)
 at
 org.wso2.carbon.deployment.synchronizer.subversion.SVNBasedArtifactRepository.cleanupDeletedFiles(SVNBasedArtifactRepository.java:533)

 Please find the full stack trace attached.


 Regards,


 --
 *Dumidu Handakumbura*
 Software Engineer - QA
 WSO2 Inc; http://www.wso2.com/.
 Mobile;
 *+9406740 %2B9406740 *

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




-- 
Kasun Dissanayake
Software Engineer
WSO2 Inc.
Lean | Enterprise | Middleware
Tel - +94 77 086 2860
Skype - kasun.dissanayake4
LinkedIn - lk.linkedin.com/in/kasundis/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Out of Memory Error When Setting up DepSync

2014-07-10 Thread Dumidu Handakumbura
Hi Kasun,

Yes I'm using default jvm heap size.

Regards,


On Thu, Jul 10, 2014 at 2:13 PM, Kasun Dissanayake kas...@wso2.com wrote:

 Hi Dumidu

 Are you using the default size of JVM heap memory size or are you getting
 this error when you building this using maven ?


 On Thu, Jul 10, 2014 at 2:07 PM, Dumidu Handakumbura dum...@wso2.com
 wrote:

 Hi guys,

 I'm getting the following exception when setting up dep sync for a DSS
 cluster. Im using SVN 1.7.9. Would downgrading my svn version fix the issue
 or is there a work around?

 java.lang.OutOfMemoryError: Java heap space
 Dumping heap to
 /home/dumidu/QAWork/DSS3.2.2Rel/master/wso2dss-3.2.2/repository/logs/heap-dump.hprof
 ...
 Unable to create
 /home/dumidu/QAWork/DSS3.2.2Rel/master/wso2dss-3.2.2/repository/logs/heap-dump.hprof:
 File exists
 [2014-07-10 13:55:31,068] ERROR
 {org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask} -  Error
 while running deployment scheduler..
 java.lang.OutOfMemoryError: Java heap space
 at java.util.Arrays.copyOf(Arrays.java:2367)
 at
 java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)
 at
 java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114)
 at
 java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415)
 at java.lang.StringBuffer.append(StringBuffer.java:237)
 at
 org.tmatesoft.svn.core.SVNErrorMessage.getFullMessage(SVNErrorMessage.java:257)
 at
 org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:58)
 at
 org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory.open(SVNAdminAreaFactory.java:163)
 at
 org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.doOpen(SVNWCAccess.java:364)
 at
 org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess.java:272)
 at
 org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess.java:265)
 at
 org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess.java:261)
 at
 org.tmatesoft.svn.core.wc.SVNStatusClient.doStatus(SVNStatusClient.java:316)
 at
 org.tmatesoft.svn.core.javahl.SVNClientImpl.status(SVNClientImpl.java:296)
 at
 org.tmatesoft.svn.core.javahl.SVNClientImpl.status(SVNClientImpl.java:278)
 at
 org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getStatus(AbstractJhlClientAdapter.java:542)
 at
 org.tigris.subversion.svnclientadapter.svnkit.SvnKitClientAdapter.getStatus(SvnKitClientAdapter.java:144)
 at
 org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getStatus(AbstractJhlClientAdapter.java:528)
 at
 org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getStatus(AbstractJhlClientAdapter.java:521)
 at
 org.wso2.carbon.deployment.synchronizer.subversion.SVNBasedArtifactRepository.cleanupDeletedFiles(SVNBasedArtifactRepository.java:533)

 Please find the full stack trace attached.


 Regards,


 --
 *Dumidu Handakumbura*
 Software Engineer - QA
 WSO2 Inc; http://www.wso2.com/.
 Mobile;
 *+9406740 %2B9406740 *

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




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




-- 
*Dumidu Handakumbura*
Software Engineer - QA
WSO2 Inc; http://www.wso2.com/.
Mobile;
*+9406740 *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Out of Memory Error When Setting up DepSync

2014-07-10 Thread Kasun Gajasinghe
I think you configured DepSync, and started the server without copying the
svnkit lib. Because of that, your working copy is in 1.7 format. It seems,
now you have added the svnkit lib which only support 1.6. This particular
error occur in this case.

To solve this issue, remove the .svn meta folder in repo/dep/server, and
restart the server.


On Thu, Jul 10, 2014 at 2:13 PM, Kasun Dissanayake kas...@wso2.com wrote:

 Hi Dumidu

 Are you using the default size of JVM heap memory size or are you getting
 this error when you building this using maven ?


 On Thu, Jul 10, 2014 at 2:07 PM, Dumidu Handakumbura dum...@wso2.com
 wrote:

  Hi guys,

 I'm getting the following exception when setting up dep sync for a DSS
 cluster. Im using SVN 1.7.9. Would downgrading my svn version fix the issue
 or is there a work around?

 java.lang.OutOfMemoryError: Java heap space
 Dumping heap to
 /home/dumidu/QAWork/DSS3.2.2Rel/master/wso2dss-3.2.2/repository/logs/heap-dump.hprof
 ...
 Unable to create
 /home/dumidu/QAWork/DSS3.2.2Rel/master/wso2dss-3.2.2/repository/logs/heap-dump.hprof:
 File exists
 [2014-07-10 13:55:31,068] ERROR
 {org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask} -  Error
 while running deployment scheduler..
 java.lang.OutOfMemoryError: Java heap space
 at java.util.Arrays.copyOf(Arrays.java:2367)
 at
 java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)
 at
 java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114)
 at
 java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415)
 at java.lang.StringBuffer.append(StringBuffer.java:237)
 at
 org.tmatesoft.svn.core.SVNErrorMessage.getFullMessage(SVNErrorMessage.java:257)
 at
 org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:58)
 at
 org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory.open(SVNAdminAreaFactory.java:163)
 at
 org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.doOpen(SVNWCAccess.java:364)
 at
 org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess.java:272)
 at
 org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess.java:265)
 at
 org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess.java:261)
 at
 org.tmatesoft.svn.core.wc.SVNStatusClient.doStatus(SVNStatusClient.java:316)
 at
 org.tmatesoft.svn.core.javahl.SVNClientImpl.status(SVNClientImpl.java:296)
 at
 org.tmatesoft.svn.core.javahl.SVNClientImpl.status(SVNClientImpl.java:278)
 at
 org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getStatus(AbstractJhlClientAdapter.java:542)
 at
 org.tigris.subversion.svnclientadapter.svnkit.SvnKitClientAdapter.getStatus(SvnKitClientAdapter.java:144)
 at
 org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getStatus(AbstractJhlClientAdapter.java:528)
 at
 org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getStatus(AbstractJhlClientAdapter.java:521)
 at
 org.wso2.carbon.deployment.synchronizer.subversion.SVNBasedArtifactRepository.cleanupDeletedFiles(SVNBasedArtifactRepository.java:533)

 Please find the full stack trace attached.


 Regards,


 --
 *Dumidu Handakumbura*
 Software Engineer - QA
 WSO2 Inc; http://www.wso2.com/.
 Mobile;
 *+9406740 %2B9406740 *

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




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

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




-- 

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


Re: [Dev] Out of Memory Error When Setting up DepSync

2014-07-10 Thread Dumidu Handakumbura
Hi Kasun,

Thanks. That fixed the issue.

Regards


On Thu, Jul 10, 2014 at 2:23 PM, Kasun Gajasinghe kas...@wso2.com wrote:

 I think you configured DepSync, and started the server without copying the
 svnkit lib. Because of that, your working copy is in 1.7 format. It seems,
 now you have added the svnkit lib which only support 1.6. This particular
 error occur in this case.

 To solve this issue, remove the .svn meta folder in repo/dep/server, and
 restart the server.


 On Thu, Jul 10, 2014 at 2:13 PM, Kasun Dissanayake kas...@wso2.com
 wrote:

 Hi Dumidu

 Are you using the default size of JVM heap memory size or are you getting
 this error when you building this using maven ?


 On Thu, Jul 10, 2014 at 2:07 PM, Dumidu Handakumbura dum...@wso2.com
 wrote:

  Hi guys,

 I'm getting the following exception when setting up dep sync for a DSS
 cluster. Im using SVN 1.7.9. Would downgrading my svn version fix the issue
 or is there a work around?

 java.lang.OutOfMemoryError: Java heap space
 Dumping heap to
 /home/dumidu/QAWork/DSS3.2.2Rel/master/wso2dss-3.2.2/repository/logs/heap-dump.hprof
 ...
 Unable to create
 /home/dumidu/QAWork/DSS3.2.2Rel/master/wso2dss-3.2.2/repository/logs/heap-dump.hprof:
 File exists
 [2014-07-10 13:55:31,068] ERROR
 {org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask} -  Error
 while running deployment scheduler..
 java.lang.OutOfMemoryError: Java heap space
 at java.util.Arrays.copyOf(Arrays.java:2367)
 at
 java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)
 at
 java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114)
 at
 java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415)
 at java.lang.StringBuffer.append(StringBuffer.java:237)
 at
 org.tmatesoft.svn.core.SVNErrorMessage.getFullMessage(SVNErrorMessage.java:257)
 at
 org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:58)
 at
 org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory.open(SVNAdminAreaFactory.java:163)
 at
 org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.doOpen(SVNWCAccess.java:364)
 at
 org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess.java:272)
 at
 org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess.java:265)
 at
 org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess.java:261)
 at
 org.tmatesoft.svn.core.wc.SVNStatusClient.doStatus(SVNStatusClient.java:316)
 at
 org.tmatesoft.svn.core.javahl.SVNClientImpl.status(SVNClientImpl.java:296)
 at
 org.tmatesoft.svn.core.javahl.SVNClientImpl.status(SVNClientImpl.java:278)
 at
 org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getStatus(AbstractJhlClientAdapter.java:542)
 at
 org.tigris.subversion.svnclientadapter.svnkit.SvnKitClientAdapter.getStatus(SvnKitClientAdapter.java:144)
 at
 org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getStatus(AbstractJhlClientAdapter.java:528)
 at
 org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getStatus(AbstractJhlClientAdapter.java:521)
 at
 org.wso2.carbon.deployment.synchronizer.subversion.SVNBasedArtifactRepository.cleanupDeletedFiles(SVNBasedArtifactRepository.java:533)

 Please find the full stack trace attached.


 Regards,


 --
 *Dumidu Handakumbura*
 Software Engineer - QA
 WSO2 Inc; http://www.wso2.com/.
 Mobile;
 *+9406740 %2B9406740 *

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




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

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




 --

 *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






-- 
*Dumidu Handakumbura*
Software Engineer - QA
WSO2 Inc; http://www.wso2.com/.
Mobile;
*+9406740 *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Developer Studio 3.7.0 RC5 Released!

2014-07-10 Thread Susankha Nirmala
Hi All,

We have WSO2 Developer Studio 3.7.0 RC5 ready to be downloaded at [1] and
installed eclipse distributions available at [2]. This release includes
following bug fixes.

Bug
[TOOLS-2565] https://wso2.org/jira/browse/TOOLS-2565 - Error - Document
partitioner is not connected
[TOOLS-2575] https://wso2.org/jira/browse/TOOLS-2575 - Linking the
project explorer and editor using 'Link with Editor' button not works

Your feedback is most welcome. Please report issues at [3] and specify the
affect version as 3.7.0 RC5.

[1]-
http://builder1.us1.wso2.org/~developerstudio/developer-studio/3.7.0/RC5/
[2]-
http://builder1.us1.wso2.org/~developerstudio/developer-studio/3.7.0/RC5/installed-distributions/
[3]- https://wso2.org/jira/browse/TOOLS

Thanks and Regards,
WSO2 Developer Studio Team.

-- 
Susankha Nirmala
Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
Mobile : +94 77 593 2146
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] https://github.com/wso2/orbit/pull/6

2014-07-10 Thread Dhanuka Ranasinghe
Hi,

Please merge above pull request.

Cheers,
Dhanuka
*Dhanuka Ranasinghe*

Senior Software Engineer
WSO2 Inc. ; http://wso2.com
lean . enterprise . middleware

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


Re: [Dev] Training Project - CEP Extension to Run Machine Learning Models

2014-07-10 Thread Supun Sethunga
Hi Suho,

I made the suggested changes. Also added a sample which uses the extension,
including a client.

Appreciate if you can have a look at the changes and the sample.

Article:​
 [Tutorial] Implementing a CEP extension to run Machine Learning models
written in PMML format
https://docs.google.com/a/wso2.com/document/d/1GOE6F0IjiroEZTN4_qwQHFdVQqDpkqhbsstRZzDDSYs/edit?usp=drive_web
​
Sample :​
 CEPMachineLearningExtension.zip
https://docs.google.com/a/wso2.com/file/d/0B64HgfvkdeEhMnVlZ2dhRVM3WlE/edit?usp=drive_web
​

Thanks,
Supun



On Tue, Jul 1, 2014 at 9:38 AM, Supun Sethunga sup...@wso2.com wrote:

 Hi Suho,

 I will make the changes as per the comments.

 Thanks,
 Supun


 On Mon, Jun 30, 2014 at 6:27 PM, Sriskandarajah Suhothayan s...@wso2.com
 wrote:

 Added comments please fix them

 Suho


 On Sat, Jun 28, 2014 at 4:24 PM, Supun Sethunga sup...@wso2.com wrote:

 Hi Suho,

 Thanks.

 Supun.

 On 6/28/14, Sriskandarajah Suhothayan s...@wso2.com wrote:
  I'll go through
 
  Suho
 
 
  On Fri, Jun 27, 2014 at 3:55 PM, Supun Sethunga sup...@wso2.com
 wrote:
 
  Hi Suho,
 
  No review were done after I made the slight changes discussed in the
  review meeting. The doc attached, includes the changes made.
   ​
 
   [Tutorial] Implementing a CEP extension to run Machine Learning
 models
  written in PMML format
  
 https://docs.google.com/a/wso2.com/document/d/1GOE6F0IjiroEZTN4_qwQHFdVQqDpkqhbsstRZzDDSYs/edit?usp=drive_web
 
  ​
  Thanks,
  Supun
 
 
  On Fri, Jun 27, 2014 at 6:20 PM, Sriskandarajah Suhothayan
  s...@wso2.com
  wrote:
 
  Hi was this reviewed ?
 
  Suho
 
 
  On Wed, Jun 18, 2014 at 3:28 PM, Supun Sethunga sup...@wso2.com
 wrote:
 
  Hi Suho,
 
  Can I have this tutorial reviewed? So that I can send the final
 version
  to the Marketing for an OT article.
 
  Thanks,
  Supun
 
 
  On Thu, Jun 12, 2014 at 9:50 AM, Supun Sethunga sup...@wso2.com
  wrote:
 
  @Mohan: Noted, Thanks.
 
 
  On Wed, Jun 11, 2014 at 1:03 PM, Mohanadarshan Vivekanandalingam 
  mo...@wso2.com wrote:
 
  [removing dev group]
 
  Couldn't read fully just skimmed through the doc but so far looks
  good..
 
  @Supun, Kind suggestion avoid cross posting public  private
 mailing
  lists..
 
  Thanks,
  Mohan
 
 
 
  On Wed, Jun 11, 2014 at 10:34 AM, Srinath Perera 
 srin...@wso2.com
  wrote:
 
  Thanks Supun!! this look good.
 
  Could you write up an OT article describing this?
 
  Can we chat sometime today?
  --Srinath
 
 
 
 
 
 
 
 
  On Tue, Jun 10, 2014 at 4:58 PM, Supun Sethunga sup...@wso2.com
 
  wrote:
 
  Hi,
 
  I have documented this, in the form of a tutorial. Please find
 the
  attachment for a draft of the document.
 
  Looking forward for a feedback.
  ​​​
   [Tutorial] Implementing a CEP extension to run Machine Learning
  models written in PMML format
  
 https://docs.google.com/a/wso2.com/document/d/1GOE6F0IjiroEZTN4_qwQHFdVQqDpkqhbsstRZzDDSYs/edit?usp=drive_web
 
  ​
 
  Thanks,
  Supun.
 
 
  On Mon, Jun 9, 2014 at 11:52 AM, Supun Sethunga 
 sup...@wso2.com
  wrote:
 
  Hi,
 
  Please refer [1] for the source code of the CEP extension.
 
  Currently I am working on writing an article for the above
  scenario. Will share the first draft as soon as I finish.
 
  [1] https://github.com/SupunS/mlearn
 
  Thanks,
  Supun
 
  --
  *Supun Sethunga*
  Software Engineer
  WSO2, Inc.
  lean | enterprise | middleware
  Mobile : +94 716546324
 
 
 
 
  --
  *Supun Sethunga*
  Software Engineer
  WSO2, Inc.
  lean | enterprise | middleware
  Mobile : +94 716546324
 
 
 
 
  --
  
  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
 
 
 
 
  --
  *V. Mohanadarshan*
  *Software Engineer,*
  *Data Technologies Team,*
  *WSO2, Inc. http://wso2.com http://wso2.com *
  *lean.enterprise.middleware.*
 
  email: mo...@wso2.com
  phone:(+94) 771117673
 
 
 
 
  --
  *Supun Sethunga*
  Software Engineer
  WSO2, Inc.
  lean | enterprise | middleware
  Mobile : +94 716546324
 
 
 
 
  --
  *Supun Sethunga*
  Software Engineer
  WSO2, Inc.
  lean | enterprise | middleware
  Mobile : +94 716546324
 
 
 
 
  --
 
  *S. Suhothayan *
  Technical Lead  Team Lead of WSO2 Complex Event Processor
   *WSO2 Inc. *http://wso2.com
  * http://wso2.com/*
  lean . enterprise . middleware
 
 
  *cell: (+94) 779 756 757 %28%2B94%29%20779%20756%20757 | blog:
  http://suhothayan.blogspot.com/ http://suhothayan.blogspot.com/
  twitter:
  http://twitter.com/suhothayan http://twitter.com/suhothayan |
  linked-in:
  http://lk.linkedin.com/in/suhothayan
  http://lk.linkedin.com/in/suhothayan*
 
 
 
 
  --
  *Supun Sethunga*
  Software Engineer
  WSO2, Inc.
  lean | enterprise | middleware
  Mobile : +94 716546324
 
 
 
 
  --
 
  *S. Suhothayan*
  Technical Lead  

Re: [Dev] https://github.com/wso2/orbit/pull/6

2014-07-10 Thread Kasun Gajasinghe
Hi Dhanuka,

You need to get prior approval before adding a new library. See [Dev] Can
we use libs with MIT license, in WSO2 ? @Dev.


On Thu, Jul 10, 2014 at 2:53 PM, Dhanuka Ranasinghe dhan...@wso2.com
wrote:

 Hi,

 Please merge above pull request.

 Cheers,
 Dhanuka
  *Dhanuka Ranasinghe*

 Senior Software Engineer
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 715381915




-- 

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


[Dev] Can we use libs with eclipse license, in WSO2 ?

2014-07-10 Thread Dhanuka Ranasinghe
Hi,

We need to use eclipselink JPA provider for RSS, which is under eclipse 1.0
licesnce. $Subject please.

Cheers,
*Dhanuka Ranasinghe*

Senior Software Engineer
WSO2 Inc. ; http://wso2.com
lean . enterprise . middleware

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


[Dev] Please merge the changes to patch0009 of 4.2.0 kernel

2014-07-10 Thread Pradeep Fernando
Hi Kernel team,

Please review and merge the changes please.

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

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


Re: [Dev] Can we use libs with eclipse license, in WSO2 ?

2014-07-10 Thread Isura Karunaratne
Hi Dhanuka,

   Libraries with eclipse 1.0 license has been used in wso2 products [1].

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/is/5.0.0/LICENSE.txt


On Thu, Jul 10, 2014 at 3:43 PM, Dhanuka Ranasinghe dhan...@wso2.com
wrote:

 Hi,

 We need to use eclipselink JPA provider for RSS, which is under eclipse
 1.0 licesnce. $Subject please.

 Cheers,
 *Dhanuka Ranasinghe*

 Senior Software Engineer
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 715381915

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




-- 
Isura Dilhara Karunaratne
Software Engineer

Mob +94 772 254 810
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] https://github.com/wso2/orbit/pull/6

2014-07-10 Thread Dhanuka Ranasinghe
Hi,

According to below links [1],[2] we can ship atomikos libs. Also we have
already shipped atomikos as JTA provider in carbon level

[1]
http://maven-repository.com/artifact/com.atomikos/transactions-eclipselink/3.9.1
[2] http://www.atomikos.com/Main/WhichLicenseApplies

Cheers,
Dhanuka



*Dhanuka Ranasinghe*

Senior Software Engineer
WSO2 Inc. ; http://wso2.com
lean . enterprise . middleware

phone : +94 715381915


On Thu, Jul 10, 2014 at 3:25 PM, Kasun Gajasinghe kas...@wso2.com wrote:

 Hi Dhanuka,

 You need to get prior approval before adding a new library. See [Dev]
 Can we use libs with MIT license, in WSO2 ? @Dev.


 On Thu, Jul 10, 2014 at 2:53 PM, Dhanuka Ranasinghe dhan...@wso2.com
 wrote:

 Hi,

 Please merge above pull request.

 Cheers,
 Dhanuka
  *Dhanuka Ranasinghe*

 Senior Software Engineer
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 715381915




 --

 *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



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


[Dev] [G-Reg][integration-testing] Interleaving test classes

2014-07-10 Thread Sameera Kannangara
Hi all,

When running G-Reg tests I've encountered several test cases which passes
when the containing class executed individually and fails when tests are
run as packages. Following are few examples.

deleteResources(org.wso2.carbon.registry.metadata.test.schema.SchemaAddTestCase)
addAssociationToRoot(org.wso2.carbon.registry.ws.client.test.general.old.TestAssociationWSTestCase)
cleanup(org.wso2.carbon.registry.ws.client.test.general.old.TestAssociationWSTestCase)

When remote debugging these test classes it is observed that tests from
different classes run interleaved, and that some times lead to changing and
removing shared resources, results in test failures.

How can we solve this problem?

Thank you,
SameeraK


-- 
Sameera Kannangara,
Software Engineer,
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can we use libs with eclipse license, in WSO2 ?

2014-07-10 Thread Dhanuka Ranasinghe
Hi,

What about eclipse dual licensing.

*Eclipse Public License - v 1.0*
*Eclipse Distribution License Version 1.0*

*cheers,*
*Dhanuka*

*Dhanuka Ranasinghe*

Senior Software Engineer
WSO2 Inc. ; http://wso2.com
lean . enterprise . middleware

phone : +94 715381915


On Thu, Jul 10, 2014 at 3:51 PM, Isura Karunaratne is...@wso2.com wrote:

 Hi Dhanuka,

Libraries with eclipse 1.0 license has been used in wso2 products [1].

 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/is/5.0.0/LICENSE.txt


 On Thu, Jul 10, 2014 at 3:43 PM, Dhanuka Ranasinghe dhan...@wso2.com
 wrote:

 Hi,

 We need to use eclipselink JPA provider for RSS, which is under eclipse
 1.0 licesnce. $Subject please.

 Cheers,
 *Dhanuka Ranasinghe*

 Senior Software Engineer
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 715381915

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




 --
 Isura Dilhara Karunaratne
 Software Engineer

 Mob +94 772 254 810


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


Re: [Dev] https://github.com/wso2/orbit/pull/6

2014-07-10 Thread Sameera Perera
Hi Dhanuka,
The approval is not only on the license; it is also to prevent 3rd party
dependencies being added unnecessarily.


On Thu, Jul 10, 2014 at 3:56 PM, Dhanuka Ranasinghe dhan...@wso2.com
wrote:

 Hi,

 According to below links [1],[2] we can ship atomikos libs. Also we have
 already shipped atomikos as JTA provider in carbon level

 [1]
 http://maven-repository.com/artifact/com.atomikos/transactions-eclipselink/3.9.1
 [2] http://www.atomikos.com/Main/WhichLicenseApplies

 Cheers,
 Dhanuka



 *Dhanuka Ranasinghe*

 Senior Software Engineer
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 715381915


 On Thu, Jul 10, 2014 at 3:25 PM, Kasun Gajasinghe kas...@wso2.com wrote:

 Hi Dhanuka,

 You need to get prior approval before adding a new library. See [Dev]
 Can we use libs with MIT license, in WSO2 ? @Dev.


 On Thu, Jul 10, 2014 at 2:53 PM, Dhanuka Ranasinghe dhan...@wso2.com
 wrote:

 Hi,

 Please merge above pull request.

 Cheers,
 Dhanuka
  *Dhanuka Ranasinghe*

 Senior Software Engineer
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 715381915




 --

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


Re: [Dev] Please merge the changes to patch0009 of 4.2.0 kernel

2014-07-10 Thread Shameera Rathnayaka
Hi Pradeep,

you have introduced a new API in your patch , please remove that as it is
incorrect to do API changes with a patch. But when you provide a pull
request to 4.3.0 you can do any API changes.

Thanks,
Shameera.


On Thu, Jul 10, 2014 at 3:47 PM, Pradeep Fernando prad...@wso2.com wrote:

 Hi Kernel team,

 Please review and merge the changes please.

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

 thanks




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


Re: [Dev] [G-Reg][integration-testing] Interleaving test classes

2014-07-10 Thread Subash Chaturanga
Adding Krishantha


On Thu, Jul 10, 2014 at 3:57 PM, Sameera Kannangara samee...@wso2.com
wrote:

 Hi all,

 When running G-Reg tests I've encountered several test cases which passes
 when the containing class executed individually and fails when tests are
 run as packages. Following are few examples.


 deleteResources(org.wso2.carbon.registry.metadata.test.schema.SchemaAddTestCase)

 addAssociationToRoot(org.wso2.carbon.registry.ws.client.test.general.old.TestAssociationWSTestCase)

 cleanup(org.wso2.carbon.registry.ws.client.test.general.old.TestAssociationWSTestCase)

 When remote debugging these test classes it is observed that tests from
 different classes run interleaved, and that some times lead to changing and
 removing shared resources, results in test failures.

 How can we solve this problem?

 Thank you,
 SameeraK


 --
 Sameera Kannangara,
 Software Engineer,
 WSO2 Inc.

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




-- 
Thanks
/subash

*Subash Chaturanga*
Senior Software Engineer  Lead WSO2 Governance Registry
Platform TG; WSO2 Inc. http://wso2.com
Contact:
email: sub...@wso2.com
blog:  http://subashsdm.blogspot.com/
twitter: @subash89
phone: +9477 2225922
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] When two or more services available with the given web app name prefix causes RMI Exceptions while getting the webapp information

2014-07-10 Thread Dimuthu De Lanerolle
I noticed while retrieving the webapp information by invoking the Web app
admin service client (WebAppAdminClient class  getWebAppInfo(..)) , it
throws  java.rmi.RemoteException: More than one service found with the
given name exception.
It seems like this happens due to two distinct JaggeryWebApps (
productapipublisher and publisher) hosted in the same EMM server and when
we try to retrieve web info of the publisher Jaggery WebApp.

If the main reason causing this exception is because there are more than
one service available with the given web app name prefix what could be the
best possible solution to solve this issue?

Regards


-- 
Dimuthu De Lanerolle
Software Engineer
WSO2 Inc.
lean . enterprise . middlewear.
http://wso2.com/
Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need a suitable java web-socket client library

2014-07-10 Thread Lasantha Fernando
Hi Dilini,

It seems tyrus is licensed under CDDL 1.1 and GPL v2 with classpath
exception.

Are these licenses compatible with Apache License v2?

According to [1], CDDL 1.0 falls under reciprocal licenses and GPL v2 with
Classpath Exception is not compatible. Not sure about CDDL 1.1 though.

[1] http://www.apache.org/legal/3party.html

Thanks,
Lasantha


On 10 July 2014 00:42, Dilini Muthumala dil...@wso2.com wrote:

 Hi Sagara,

 Thanks for your helpful comments.

 On Wed, Jul 9, 2014 at 9:21 PM, Sagara Gunathunga sag...@wso2.com wrote:

 1.) Please make sure to bring only Tyrus-client and it's dependencies, we
 don't need server side stuff.

 Sure. We'll only bring tyrus-client and its dependencies. In case we need
 a web socket server, we'll be using the tomcat websocket-implementation (as
 we've previously discussed).



  2.) Tyrus artifacts are available as OSGi bundles[1] if possible try to
 use them directly.
 [1] - http://mvnrepository.com/artifact/org.glassfish.tyrus

 Thanks again, for the info. Will try to use them.

 Regards,
 Dilini



 Thanks !


 [2] https://tyrus.java.net/

 Regards,
 Dilini


 On Wed, Jul 9, 2014 at 7:22 PM, Dilini Muthumala dil...@wso2.com
 wrote:

 Hi,

 We have a carbon component**, which needs to connect to a web socket
 server. What would be the suitable web socket client library (java), for
 this purpose?

 As we have discussed and agreed in a recent mail thread [1], it's not
 suitable to use jetty libraries.

 **To elaborate more, this carbon component is a part of a *web socket
 output adaptor*, we are developing for CEP.

 [1] http://www.mail-archive.com/dev@wso2.org/msg29472.html

 Thanks,
 Dilini

 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029




 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029




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




 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029

 ___
 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


[Dev] Encountered a compilation error in carbon 4.30

2014-07-10 Thread Pradeep Fernando
Hi guys,

I got the following error, what would be the cause;


INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 9:25.985s
[INFO] Finished at: Thu Jul 10 16:53:30 IST 2014
[INFO] Final Memory: 259M/1544M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project org.wso2.carbon.feature.mgt.core: Compilation
failure: Compilation failure:
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/operations/ProfileChangeOperation.java:[143,72]
error: incompatible types
[ERROR] Object
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/operations/ProfileChangeOperation.java:[159,72]
error: incompatible types
[ERROR] Object
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[92,50]
error: incompatible types
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[117,50]
error: incompatible types
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[122,50]
error: incompatible types
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[190,14]
error: type IQuery does not take parameters
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[207,14]
error: type IQuery does not take parameters
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[226,14]
error: type IQuery does not take parameters
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[238,14]
error: type IQuery does not take parameters
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/operations/RevertOperation.java:[54,104]
error: incompatible types
[ERROR]
/home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/operations/RevertOperation.java:[59,105]
error: incompatible types
[ERROR] - [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/MojoFailureException



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


Re: [Dev] Please merge the changes to patch0009 of 4.2.0 kernel

2014-07-10 Thread Pradeep Fernando
Hi,

will attach the patch again. However, encountered some registry test
failures in patch0009/registry.core without my patch.

thanks


On Thu, Jul 10, 2014 at 4:46 PM, Shameera Rathnayaka shame...@wso2.com
wrote:

 Hi Pradeep,

 you have introduced a new API in your patch , please remove that as it is
 incorrect to do API changes with a patch. But when you provide a pull
 request to 4.3.0 you can do any API changes.

 Thanks,
 Shameera.


 On Thu, Jul 10, 2014 at 3:47 PM, Pradeep Fernando prad...@wso2.com
 wrote:

 Hi Kernel team,

 Please review and merge the changes please.

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

 thanks




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org
 shame...@apache.org*
 *phone:  +9471 922 1454 %2B9471%20922%201454*

 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

blog: http://pradeepfernando.blogspot.com
m: +94776603662
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need a suitable java web-socket client library

2014-07-10 Thread Mohanadarshan Vivekanandalingam
[Adding Sagara]

Hi Sagara,

Can you please comment on Lasantha's Concern. Do we have any issues in
using tyrus client because of this license ?

Thanks,
Mohan



On Thu, Jul 10, 2014 at 5:03 PM, Lasantha Fernando lasan...@wso2.com
wrote:

 Hi Dilini,

 It seems tyrus is licensed under CDDL 1.1 and GPL v2 with classpath
 exception.

 Are these licenses compatible with Apache License v2?

 According to [1], CDDL 1.0 falls under reciprocal licenses and GPL v2 with
 Classpath Exception is not compatible. Not sure about CDDL 1.1 though.

 [1] http://www.apache.org/legal/3party.html

 Thanks,
 Lasantha


 On 10 July 2014 00:42, Dilini Muthumala dil...@wso2.com wrote:

 Hi Sagara,

 Thanks for your helpful comments.

 On Wed, Jul 9, 2014 at 9:21 PM, Sagara Gunathunga sag...@wso2.com
 wrote:

 1.) Please make sure to bring only Tyrus-client and it's dependencies,
 we don't need server side stuff.

 Sure. We'll only bring tyrus-client and its dependencies. In case we need
 a web socket server, we'll be using the tomcat websocket-implementation (as
 we've previously discussed).



  2.) Tyrus artifacts are available as OSGi bundles[1] if possible try to
 use them directly.
 [1] - http://mvnrepository.com/artifact/org.glassfish.tyrus

 Thanks again, for the info. Will try to use them.

 Regards,
 Dilini



 Thanks !


 [2] https://tyrus.java.net/

 Regards,
 Dilini


 On Wed, Jul 9, 2014 at 7:22 PM, Dilini Muthumala dil...@wso2.com
 wrote:

 Hi,

 We have a carbon component**, which needs to connect to a web socket
 server. What would be the suitable web socket client library (java), for
 this purpose?

 As we have discussed and agreed in a recent mail thread [1], it's not
 suitable to use jetty libraries.

 **To elaborate more, this carbon component is a part of a *web socket
 output adaptor*, we are developing for CEP.

 [1] http://www.mail-archive.com/dev@wso2.org/msg29472.html

 Thanks,
 Dilini

 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029




 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029




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




 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029

 ___
 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




-- 
*V. Mohanadarshan*
*Software Engineer,*
*Data Technologies Team,*
*WSO2, Inc. http://wso2.com http://wso2.com *
*lean.enterprise.middleware.*

email: mo...@wso2.com
phone:(+94) 771117673
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] When two or more services available with the given web app name prefix causes RMI Exceptions while getting the webapp information

2014-07-10 Thread Kasun Gajasinghe
If you need to get the webapp details of a particular webapp, then you need
to call WebappAdmin#getStartedWebapp method. You are currently
calling getPagedWebappsSummary which returns an array of webapp data
(wrapped in a WebappsWrapper object) according to the webappSearchString
you use.

Regards,
KasunG


On Thu, Jul 10, 2014 at 5:00 PM, Dimuthu De Lanerolle dimut...@wso2.com
wrote:

 I noticed while retrieving the webapp information by invoking the Web app
 admin service client (WebAppAdminClient class  getWebAppInfo(..)) , it
 throws  java.rmi.RemoteException: More than one service found with the
 given name exception.
 It seems like this happens due to two distinct JaggeryWebApps (
 productapipublisher and publisher) hosted in the same EMM server and when
 we try to retrieve web info of the publisher Jaggery WebApp.

 If the main reason causing this exception is because there are more than
 one service available with the given web app name prefix what could be the
 best possible solution to solve this issue?

 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




-- 

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


Re: [Dev] Please merge the changes to patch0009 of 4.2.0 kernel

2014-07-10 Thread Pradeep Fernando
Hi Shameera,

Attached the new patch with modifications. Ran tests. No new test failures,
AFAIU.

thanks,.


On Thu, Jul 10, 2014 at 5:12 PM, Pradeep Fernando prad...@wso2.com wrote:

 Hi,

 will attach the patch again. However, encountered some registry test
 failures in patch0009/registry.core without my patch.

 thanks


 On Thu, Jul 10, 2014 at 4:46 PM, Shameera Rathnayaka shame...@wso2.com
 wrote:

 Hi Pradeep,

 you have introduced a new API in your patch , please remove that as it is
 incorrect to do API changes with a patch. But when you provide a pull
 request to 4.3.0 you can do any API changes.

 Thanks,
 Shameera.


 On Thu, Jul 10, 2014 at 3:47 PM, Pradeep Fernando prad...@wso2.com
 wrote:

 Hi Kernel team,

 Please review and merge the changes please.

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

 thanks




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org
 shame...@apache.org*
 *phone:  +9471 922 1454 %2B9471%20922%201454*

 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R




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


Re: [Dev] Encountered a compilation error in carbon 4.30

2014-07-10 Thread Rajith Vitharana
Hi,

Your code has compilation failures due to incompatible types. This may
happen due to dependency changes or simply code errors. For example look in
to ProfileChangeOperation.java  line no 143, If you share the code will be
able to give more input than this.

Thanks,



On Thu, Jul 10, 2014 at 5:11 PM, Pradeep Fernando prad...@wso2.com wrote:

 Hi guys,

 I got the following error, what would be the cause;


 INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 9:25.985s
 [INFO] Finished at: Thu Jul 10 16:53:30 IST 2014
 [INFO] Final Memory: 259M/1544M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
 (default-compile) on project org.wso2.carbon.feature.mgt.core: Compilation
 failure: Compilation failure:
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/operations/ProfileChangeOperation.java:[143,72]
 error: incompatible types
 [ERROR] Object
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/operations/ProfileChangeOperation.java:[159,72]
 error: incompatible types
 [ERROR] Object
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[92,50]
 error: incompatible types
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[117,50]
 error: incompatible types
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[122,50]
 error: incompatible types
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[190,14]
 error: type IQuery does not take parameters
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[207,14]
 error: type IQuery does not take parameters
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[226,14]
 error: type IQuery does not take parameters
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[238,14]
 error: type IQuery does not take parameters
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/operations/RevertOperation.java:[54,104]
 error: incompatible types
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/operations/RevertOperation.java:[59,105]
 error: incompatible types
 [ERROR] - [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/MojoFailureException



 thanks

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




-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please merge the changes to patch0009 of 4.2.0 kernel

2014-07-10 Thread Shameera Rathnayaka
Hi Pradeep,

Which jdk version you are using to buile the kernel? if it is 1.7 then you
probably hit with registry test failures.

I will apply the new patch.

Thanks,
Shameera


On Thu, Jul 10, 2014 at 5:22 PM, Pradeep Fernando prad...@wso2.com wrote:

 Hi Shameera,

 Attached the new patch with modifications. Ran tests. No new test
 failures, AFAIU.

 thanks,.


 On Thu, Jul 10, 2014 at 5:12 PM, Pradeep Fernando prad...@wso2.com
 wrote:

 Hi,

 will attach the patch again. However, encountered some registry test
 failures in patch0009/registry.core without my patch.

 thanks


 On Thu, Jul 10, 2014 at 4:46 PM, Shameera Rathnayaka shame...@wso2.com
 wrote:

 Hi Pradeep,

 you have introduced a new API in your patch , please remove that as it
 is incorrect to do API changes with a patch. But when you provide a pull
 request to 4.3.0 you can do any API changes.

 Thanks,
 Shameera.


 On Thu, Jul 10, 2014 at 3:47 PM, Pradeep Fernando prad...@wso2.com
 wrote:

 Hi Kernel team,

 Please review and merge the changes please.

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

 thanks




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT
 apache.org shame...@apache.org*
 *phone:  +9471 922 1454 %2B9471%20922%201454*

 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R




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




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


Re: [Dev] Encountered a compilation error in carbon 4.30

2014-07-10 Thread Rajith Vitharana
Sorry didn't notice it's in git. Will see what is the error.

Thanks


On Thu, Jul 10, 2014 at 5:24 PM, Rajith Vitharana raji...@wso2.com wrote:

 Hi,

 Your code has compilation failures due to incompatible types. This may
 happen due to dependency changes or simply code errors. For example look in
 to ProfileChangeOperation.java  line no 143, If you share the code will
 be able to give more input than this.

 Thanks,



 On Thu, Jul 10, 2014 at 5:11 PM, Pradeep Fernando prad...@wso2.com
 wrote:

 Hi guys,

 I got the following error, what would be the cause;


 INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 9:25.985s
 [INFO] Finished at: Thu Jul 10 16:53:30 IST 2014
 [INFO] Final Memory: 259M/1544M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
 (default-compile) on project org.wso2.carbon.feature.mgt.core: Compilation
 failure: Compilation failure:
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/operations/ProfileChangeOperation.java:[143,72]
 error: incompatible types
 [ERROR] Object
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/operations/ProfileChangeOperation.java:[159,72]
 error: incompatible types
 [ERROR] Object
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[92,50]
 error: incompatible types
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[117,50]
 error: incompatible types
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[122,50]
 error: incompatible types
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[190,14]
 error: type IQuery does not take parameters
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[207,14]
 error: type IQuery does not take parameters
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[226,14]
 error: type IQuery does not take parameters
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/util/ProvisioningUtils.java:[238,14]
 error: type IQuery does not take parameters
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/operations/RevertOperation.java:[54,104]
 error: incompatible types
 [ERROR]
 /home/pradeep/checkout/carbon4-git/core/feature-manager/org.wso2.carbon.feature.mgt.core/src/main/java/org/wso2/carbon/feature/mgt/core/operations/RevertOperation.java:[59,105]
 error: incompatible types
 [ERROR] - [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/MojoFailureException



 thanks

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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/




-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need a suitable java web-socket client library

2014-07-10 Thread Sagara Gunathunga
On Thu, Jul 10, 2014 at 5:12 PM, Mohanadarshan Vivekanandalingam 
mo...@wso2.com wrote:

 [Adding Sagara]

 Hi Sagara,

 Can you please comment on Lasantha's Concern. Do we have any issues in
 using tyrus client because of this license ?


This is not an issue historically Sun/Oracle release all their java
frameworks under CDDL 1.1/GPL dual licences so that users can pick one of
the licence. Large numbers of CDDL licensed Sun/Oracle frameworks such as
JAXB, JAX-RS, JAX-WS, JavaMail  are being used by Apache projects ( in WSO2
code base as well), as an example Apache Axis2 use and redistribute
following set of CDDL  licensed frameworks.

activation
jaxb-api
jaxb-impl
jaxb-xjc
jaxb-tools
jaxrs-api
java Mail

Thanks !


 Thanks,
 Mohan



 On Thu, Jul 10, 2014 at 5:03 PM, Lasantha Fernando lasan...@wso2.com
 wrote:

 Hi Dilini,

 It seems tyrus is licensed under CDDL 1.1 and GPL v2 with classpath
 exception.

 Are these licenses compatible with Apache License v2?

 According to [1], CDDL 1.0 falls under reciprocal licenses and GPL v2
 with Classpath Exception is not compatible. Not sure about CDDL 1.1 though.

 [1] http://www.apache.org/legal/3party.html

 Thanks,
 Lasantha


 On 10 July 2014 00:42, Dilini Muthumala dil...@wso2.com wrote:

 Hi Sagara,

 Thanks for your helpful comments.

 On Wed, Jul 9, 2014 at 9:21 PM, Sagara Gunathunga sag...@wso2.com
 wrote:

 1.) Please make sure to bring only Tyrus-client and it's dependencies,
 we don't need server side stuff.

 Sure. We'll only bring tyrus-client and its dependencies. In case we
 need a web socket server, we'll be using the tomcat
 websocket-implementation (as we've previously discussed).



  2.) Tyrus artifacts are available as OSGi bundles[1] if possible try
 to use them directly.
 [1] - http://mvnrepository.com/artifact/org.glassfish.tyrus

 Thanks again, for the info. Will try to use them.

 Regards,
 Dilini



 Thanks !


 [2] https://tyrus.java.net/

 Regards,
 Dilini


 On Wed, Jul 9, 2014 at 7:22 PM, Dilini Muthumala dil...@wso2.com
 wrote:

 Hi,

 We have a carbon component**, which needs to connect to a web socket
 server. What would be the suitable web socket client library (java), for
 this purpose?

 As we have discussed and agreed in a recent mail thread [1], it's not
 suitable to use jetty libraries.

 **To elaborate more, this carbon component is a part of a *web
 socket output adaptor*, we are developing for CEP.

 [1] http://www.mail-archive.com/dev@wso2.org/msg29472.html

 Thanks,
 Dilini

 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029




 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029




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




 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029

 ___
 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




 --
 *V. Mohanadarshan*
 *Software Engineer,*
 *Data Technologies Team,*
 *WSO2, Inc. http://wso2.com http://wso2.com *
 *lean.enterprise.middleware.*

 email: mo...@wso2.com
 phone:(+94) 771117673




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


Re: [Dev] Need a suitable java web-socket client library

2014-07-10 Thread Lasantha Fernando
Thanks Sagara for the clarification!


On 10 July 2014 17:26, Sagara Gunathunga sag...@wso2.com wrote:




 On Thu, Jul 10, 2014 at 5:12 PM, Mohanadarshan Vivekanandalingam 
 mo...@wso2.com wrote:

 [Adding Sagara]

 Hi Sagara,

 Can you please comment on Lasantha's Concern. Do we have any issues in
 using tyrus client because of this license ?


 This is not an issue historically Sun/Oracle release all their java
 frameworks under CDDL 1.1/GPL dual licences so that users can pick one of
 the licence. Large numbers of CDDL licensed Sun/Oracle frameworks such as
 JAXB, JAX-RS, JAX-WS, JavaMail  are being used by Apache projects ( in WSO2
 code base as well), as an example Apache Axis2 use and redistribute
 following set of CDDL  licensed frameworks.

 activation
 jaxb-api
 jaxb-impl
 jaxb-xjc
 jaxb-tools
 jaxrs-api
 java Mail

 Thanks !


 Thanks,
 Mohan



 On Thu, Jul 10, 2014 at 5:03 PM, Lasantha Fernando lasan...@wso2.com
 wrote:

 Hi Dilini,

 It seems tyrus is licensed under CDDL 1.1 and GPL v2 with classpath
 exception.

 Are these licenses compatible with Apache License v2?

 According to [1], CDDL 1.0 falls under reciprocal licenses and GPL v2
 with Classpath Exception is not compatible. Not sure about CDDL 1.1 though.

 [1] http://www.apache.org/legal/3party.html

 Thanks,
 Lasantha


 On 10 July 2014 00:42, Dilini Muthumala dil...@wso2.com wrote:

 Hi Sagara,

 Thanks for your helpful comments.

 On Wed, Jul 9, 2014 at 9:21 PM, Sagara Gunathunga sag...@wso2.com
 wrote:

 1.) Please make sure to bring only Tyrus-client and it's dependencies,
 we don't need server side stuff.

 Sure. We'll only bring tyrus-client and its dependencies. In case we
 need a web socket server, we'll be using the tomcat
 websocket-implementation (as we've previously discussed).



  2.) Tyrus artifacts are available as OSGi bundles[1] if possible try
 to use them directly.
 [1] - http://mvnrepository.com/artifact/org.glassfish.tyrus

 Thanks again, for the info. Will try to use them.

 Regards,
 Dilini



 Thanks !


 [2] https://tyrus.java.net/

 Regards,
 Dilini


 On Wed, Jul 9, 2014 at 7:22 PM, Dilini Muthumala dil...@wso2.com
 wrote:

 Hi,

 We have a carbon component**, which needs to connect to a web socket
 server. What would be the suitable web socket client library (java), for
 this purpose?

 As we have discussed and agreed in a recent mail thread [1], it's
 not suitable to use jetty libraries.

 **To elaborate more, this carbon component is a part of a *web
 socket output adaptor*, we are developing for CEP.

 [1] http://www.mail-archive.com/dev@wso2.org/msg29472.html

 Thanks,
 Dilini

 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029




 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029




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




 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029

 ___
 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




 --
 *V. Mohanadarshan*
 *Software Engineer,*
 *Data Technologies Team,*
 *WSO2, Inc. http://wso2.com http://wso2.com *
 *lean.enterprise.middleware.*

 email: mo...@wso2.com
 phone:(+94) 771117673




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




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


[Dev] Replacing OpenJPA with EclipseLink and same time make compatible with Hibernate

2014-07-10 Thread Dhanuka Ranasinghe
Hi Nandika

Since we have observed several issues with OpenJPA, we thought to replace
it with EclipseLink.
By doing that we can ship eclipselink since it's under eclipse license.
Also we are making backend logic JPA compliance then we can use Hibernate
as an option.

Note: since OpenJPA runtime enhancement doesn't work as expected currently
both in SS and BPS, byte code enhancement done at build time, which means
openjpa specific stuff added to entity classes at byte code level. Because
of that we can't use same code base with eclipselink and Hibernate.
But with EclipseLink and Hibernate run time enhancement happen properly, so
same code base can be use with relevant libs.

Currently we have done the RD part and it's working fine. But if two
projects use multiple libs for same purpose it won't be allowed. For that
we (SS and BPS) need to come for an agreement that in future we will get
rid of OpenJPA and replace with eclipselink (JPA and Hibernate
complicance). So there should be at least red mine task for this in BPS
side.


SS team in a blocking state due to this. If BPS team can come to a
conclusion regarding this it will be great help to continue work on SS road
map.

Cheers,
Dhanuka
*Dhanuka Ranasinghe*

Senior Software Engineer
WSO2 Inc. ; http://wso2.com
lean . enterprise . middleware

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


Re: [Dev] Need a suitable java web-socket client library

2014-07-10 Thread Dilini Muthumala
Thank you Lasantha, for bringing this up; and Sagara, for clarifying.


On Thu, Jul 10, 2014 at 5:27 PM, Lasantha Fernando lasan...@wso2.com
wrote:

 Thanks Sagara for the clarification!


 On 10 July 2014 17:26, Sagara Gunathunga sag...@wso2.com wrote:




 On Thu, Jul 10, 2014 at 5:12 PM, Mohanadarshan Vivekanandalingam 
 mo...@wso2.com wrote:

 [Adding Sagara]

 Hi Sagara,

 Can you please comment on Lasantha's Concern. Do we have any issues in
 using tyrus client because of this license ?


 This is not an issue historically Sun/Oracle release all their java
 frameworks under CDDL 1.1/GPL dual licences so that users can pick one of
 the licence. Large numbers of CDDL licensed Sun/Oracle frameworks such as
 JAXB, JAX-RS, JAX-WS, JavaMail  are being used by Apache projects ( in WSO2
 code base as well), as an example Apache Axis2 use and redistribute
 following set of CDDL  licensed frameworks.

 activation
 jaxb-api
 jaxb-impl
 jaxb-xjc
 jaxb-tools
 jaxrs-api
 java Mail

 Thanks !


 Thanks,
 Mohan



 On Thu, Jul 10, 2014 at 5:03 PM, Lasantha Fernando lasan...@wso2.com
 wrote:

 Hi Dilini,

 It seems tyrus is licensed under CDDL 1.1 and GPL v2 with classpath
 exception.

 Are these licenses compatible with Apache License v2?

 According to [1], CDDL 1.0 falls under reciprocal licenses and GPL v2
 with Classpath Exception is not compatible. Not sure about CDDL 1.1 though.

 [1] http://www.apache.org/legal/3party.html

 Thanks,
 Lasantha


 On 10 July 2014 00:42, Dilini Muthumala dil...@wso2.com wrote:

 Hi Sagara,

 Thanks for your helpful comments.

 On Wed, Jul 9, 2014 at 9:21 PM, Sagara Gunathunga sag...@wso2.com
 wrote:

 1.) Please make sure to bring only Tyrus-client and it's
 dependencies, we don't need server side stuff.

 Sure. We'll only bring tyrus-client and its dependencies. In case we
 need a web socket server, we'll be using the tomcat
 websocket-implementation (as we've previously discussed).



  2.) Tyrus artifacts are available as OSGi bundles[1] if possible try
 to use them directly.
 [1] - http://mvnrepository.com/artifact/org.glassfish.tyrus

 Thanks again, for the info. Will try to use them.

 Regards,
 Dilini



 Thanks !


 [2] https://tyrus.java.net/

 Regards,
 Dilini


 On Wed, Jul 9, 2014 at 7:22 PM, Dilini Muthumala dil...@wso2.com
 wrote:

 Hi,

 We have a carbon component**, which needs to connect to a web
 socket server. What would be the suitable web socket client library 
 (java),
 for this purpose?

 As we have discussed and agreed in a recent mail thread [1], it's
 not suitable to use jetty libraries.

 **To elaborate more, this carbon component is a part of a *web
 socket output adaptor*, we are developing for CEP.

 [1] http://www.mail-archive.com/dev@wso2.org/msg29472.html

 Thanks,
 Dilini

 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029




 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029




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




 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029

 ___
 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




 --
 *V. Mohanadarshan*
 *Software Engineer,*
 *Data Technologies Team,*
 *WSO2, Inc. http://wso2.com http://wso2.com *
 *lean.enterprise.middleware.*

 email: mo...@wso2.com
 phone:(+94) 771117673




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




 --
 *Lasantha Fernando*
 Software Engineer - Data Technologies Team
 WSO2 Inc. http://wso2.com

 email: lasan...@wso2.com
 mobile: (+94) 71 5247551




-- 
*Dilini Muthumala*
Software Engineer,
WSO2 Inc.

*E-mail :* dil...@wso2.com
*Mobile: *+94713 400 029
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Jaggery post method doesn't modify the content type when header is passed

2014-07-10 Thread Amal Gunatilake
Hi Team,

As mentioned in the documentation
http://jaggeryjs.org/documentation.jag?api=post I passed the header to
change the Content-Type to application/json but still it tends to pass
the default Content-Type (application/x-www-form-urlencoded; charset=UTF-8
).

My jaggery code is as follows:

var httpUrl = http://localhost:;;
var headers = {
Content-Type:application/json,
Authorization:Basic YWRtaW46YWRtaW4= 
};
var url = /bpmnrest/runtime/tasks/408;
var data = request.getContent();
var result = post( httpUrl + url, data, headers, json);

When I monitor the request through TCPMon I get the following.

POST /bpmnrest/runtime/tasks/513 HTTP/1.1
Content-Type: *application/x-www-form-urlencoded; charset=UTF-8 *
Authorization: Basic YWRtaW46YWRtaW4=
User-Agent: Jakarta Commons-HttpClient/3.1
Host: localhost:
Content-Length: 47

action=completevariables=%5Bobject%20Object%5D

The Authentication header seems to get modified but not the Content-Type.
Please let me know a possible workaround to proceed with implementing the
BPMN Humantask Jaggery app.

Thank you   Best regards,

*Amal Gunatilake*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] https://github.com/wso2/orbit/pull/6

2014-07-10 Thread Afkham Azeez
According to Dhanuka, there is another alternative Open JPA provider used
by BPS. We cannot have two libraries that do the same thing in the
platform. I was told the other provider is buggy. If this is the case, then
the two team have to come to an agreement to upgrade to the newer
dependency and remove the old one.


On Thu, Jul 10, 2014 at 4:09 PM, Sameera Perera samee...@wso2.com wrote:

 Hi Dhanuka,
 The approval is not only on the license; it is also to prevent 3rd party
 dependencies being added unnecessarily.


 On Thu, Jul 10, 2014 at 3:56 PM, Dhanuka Ranasinghe dhan...@wso2.com
 wrote:

 Hi,

 According to below links [1],[2] we can ship atomikos libs. Also we have
 already shipped atomikos as JTA provider in carbon level

 [1]
 http://maven-repository.com/artifact/com.atomikos/transactions-eclipselink/3.9.1
 [2] http://www.atomikos.com/Main/WhichLicenseApplies

 Cheers,
 Dhanuka



 *Dhanuka Ranasinghe*

 Senior Software Engineer
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 715381915


 On Thu, Jul 10, 2014 at 3:25 PM, Kasun Gajasinghe kas...@wso2.com
 wrote:

 Hi Dhanuka,

 You need to get prior approval before adding a new library. See [Dev]
 Can we use libs with MIT license, in WSO2 ? @Dev.


 On Thu, Jul 10, 2014 at 2:53 PM, Dhanuka Ranasinghe dhan...@wso2.com
 wrote:

 Hi,

 Please merge above pull request.

 Cheers,
 Dhanuka
  *Dhanuka Ranasinghe*

 Senior Software Engineer
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 715381915




 --

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





-- 
*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://blog.afkham.org*
http://blog.afkham.org
*twitter: **http://twitter.com/afkham_azeez*
http://twitter.com/afkham_azeez
* linked-in: **http://lk.linkedin.com/in/afkhamazeez
http://lk.linkedin.com/in/afkhamazeez*

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


Re: [Dev] Need a suitable java web-socket client library

2014-07-10 Thread Asanka Abeyweera
Hi Dilini,

Netty also provides an API to write WebSocket clients. You can find an
example here [1]. Netty is already available as a OSGI bundle
(netty-all_4.0.8.wso2v1). Therefore you can use it if you write your client
using Netty.

[1]
https://github.com/netty/netty/tree/master/example/src/main/java/io/netty/example/http/websocketx/client


On Thu, Jul 10, 2014 at 5:38 PM, Dilini Muthumala dil...@wso2.com wrote:

 Thank you Lasantha, for bringing this up; and Sagara, for clarifying.


 On Thu, Jul 10, 2014 at 5:27 PM, Lasantha Fernando lasan...@wso2.com
 wrote:

 Thanks Sagara for the clarification!


 On 10 July 2014 17:26, Sagara Gunathunga sag...@wso2.com wrote:




 On Thu, Jul 10, 2014 at 5:12 PM, Mohanadarshan Vivekanandalingam 
 mo...@wso2.com wrote:

 [Adding Sagara]

 Hi Sagara,

 Can you please comment on Lasantha's Concern. Do we have any issues in
 using tyrus client because of this license ?


 This is not an issue historically Sun/Oracle release all their java
 frameworks under CDDL 1.1/GPL dual licences so that users can pick one of
 the licence. Large numbers of CDDL licensed Sun/Oracle frameworks such as
 JAXB, JAX-RS, JAX-WS, JavaMail  are being used by Apache projects ( in WSO2
 code base as well), as an example Apache Axis2 use and redistribute
 following set of CDDL  licensed frameworks.

 activation
 jaxb-api
 jaxb-impl
 jaxb-xjc
 jaxb-tools
 jaxrs-api
 java Mail

 Thanks !


 Thanks,
 Mohan



 On Thu, Jul 10, 2014 at 5:03 PM, Lasantha Fernando lasan...@wso2.com
 wrote:

 Hi Dilini,

 It seems tyrus is licensed under CDDL 1.1 and GPL v2 with classpath
 exception.

 Are these licenses compatible with Apache License v2?

 According to [1], CDDL 1.0 falls under reciprocal licenses and GPL v2
 with Classpath Exception is not compatible. Not sure about CDDL 1.1 
 though.

 [1] http://www.apache.org/legal/3party.html

 Thanks,
 Lasantha


 On 10 July 2014 00:42, Dilini Muthumala dil...@wso2.com wrote:

 Hi Sagara,

 Thanks for your helpful comments.

 On Wed, Jul 9, 2014 at 9:21 PM, Sagara Gunathunga sag...@wso2.com
 wrote:

 1.) Please make sure to bring only Tyrus-client and it's
 dependencies, we don't need server side stuff.

 Sure. We'll only bring tyrus-client and its dependencies. In case we
 need a web socket server, we'll be using the tomcat
 websocket-implementation (as we've previously discussed).



  2.) Tyrus artifacts are available as OSGi bundles[1] if possible
 try to use them directly.
 [1] - http://mvnrepository.com/artifact/org.glassfish.tyrus

 Thanks again, for the info. Will try to use them.

 Regards,
 Dilini



 Thanks !


 [2] https://tyrus.java.net/

 Regards,
 Dilini


 On Wed, Jul 9, 2014 at 7:22 PM, Dilini Muthumala dil...@wso2.com
 wrote:

 Hi,

 We have a carbon component**, which needs to connect to a web
 socket server. What would be the suitable web socket client library 
 (java),
 for this purpose?

 As we have discussed and agreed in a recent mail thread [1], it's
 not suitable to use jetty libraries.

 **To elaborate more, this carbon component is a part of a *web
 socket output adaptor*, we are developing for CEP.

 [1] http://www.mail-archive.com/dev@wso2.org/msg29472.html

 Thanks,
 Dilini

 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029




 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029




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




 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029

 ___
 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




 --
 *V. Mohanadarshan*
 *Software Engineer,*
 *Data Technologies Team,*
 *WSO2, Inc. http://wso2.com http://wso2.com *
 *lean.enterprise.middleware.*

 email: mo...@wso2.com
 phone:(+94) 771117673




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




 --
 *Lasantha Fernando*
 Software Engineer - Data Technologies Team
 WSO2 Inc. http://wso2.com

 email: lasan...@wso2.com
 mobile: (+94) 71 5247551




 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029

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




-- 
Asanka 

[Dev] SAMLResponce giving 'null' for the RelayState Parameter

2014-07-10 Thread Kasun Dissanayake
Hi All,

I'm working with an issue. In here I passed the RelayState parameter to
Saml Request but after the saml response I get 'null' for the RelayState
Parameter. Basically I send the SAMLRequest to Idp. Any help ?

Thanks and Regards

-- 
Kasun Dissanayake
Software Engineer
WSO2 Inc.
Lean | Enterprise | Middleware
Tel - +94 77 086 2860
Skype - kasun.dissanayake4
LinkedIn - lk.linkedin.com/in/kasundis/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] SAMLResponce giving 'null' for the RelayState Parameter

2014-07-10 Thread Dulanja Liyanage
Hi Kasun,

Could you please attach the HTTP requests and responses getting exchanged
in this scenario?

Thanks,
Dulanja


On Thu, Jul 10, 2014 at 6:20 PM, Kasun Dissanayake kas...@wso2.com wrote:

 Hi All,

 I'm working with an issue. In here I passed the RelayState parameter to
 Saml Request but after the saml response I get 'null' for the RelayState
 Parameter. Basically I send the SAMLRequest to Idp. Any help ?

 Thanks and Regards

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

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




-- 
Dulanja Liyanage
WSO2 Inc.
M: +94776764717
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Carbon] Reproducing Bug - Logging incorrect tenant ID in wso2carbon.log

2014-07-10 Thread Gayashan Amarasinghe
Hi Malintha,

I am looking in to [1], can you provide more information/steps to reproduce
this bug?

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

Thanks.

/Gayashan

-- 
 *Gayashan Amarasinghe*
Software Engineer | Platform TG
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

Mobile : +94718314517
Blog : gayashan-a.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] SAMLResponce giving 'null' for the RelayState Parameter

2014-07-10 Thread Kasun Dissanayake
Hi Dulanja

I think I found the the issue. I passed this parameter to message context
which is a Synpase config.
This config file is not visible to IS I think. So he doesn't know any
RelayState Para.

@Dulanja

Can you give me any sample code or any sample number which is in IS Docs
how to set HTTP parameters to Saml Request?

Thanks and Regards


On Thu, Jul 10, 2014 at 6:26 PM, Dulanja Liyanage dula...@wso2.com wrote:

 Hi Kasun,

 Could you please attach the HTTP requests and responses getting exchanged
 in this scenario?

 Thanks,
 Dulanja


 On Thu, Jul 10, 2014 at 6:20 PM, Kasun Dissanayake kas...@wso2.com
 wrote:

 Hi All,

 I'm working with an issue. In here I passed the RelayState parameter to
 Saml Request but after the saml response I get 'null' for the RelayState
 Parameter. Basically I send the SAMLRequest to Idp. Any help ?

 Thanks and Regards

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

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




 --
 Dulanja Liyanage
 WSO2 Inc.
 M: +94776764717




-- 
Kasun Dissanayake
Software Engineer
WSO2 Inc.
Lean | Enterprise | Middleware
Tel - +94 77 086 2860
Skype - kasun.dissanayake4
LinkedIn - lk.linkedin.com/in/kasundis/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] SAMLResponce giving 'null' for the RelayState Parameter

2014-07-10 Thread Dulanja Liyanage
Hi Kasun,

It's like setting any parameter to the HTTP requests. SAMLRequest is also a
parameter. So you can set RelayState as same as you set SAMLRequest.

Thanks
Dulanja


On Thu, Jul 10, 2014 at 6:34 PM, Kasun Dissanayake kas...@wso2.com wrote:

 Hi Dulanja

 I think I found the the issue. I passed this parameter to message context
 which is a Synpase config.
 This config file is not visible to IS I think. So he doesn't know any
 RelayState Para.

 @Dulanja

 Can you give me any sample code or any sample number which is in IS Docs
 how to set HTTP parameters to Saml Request?

 Thanks and Regards


 On Thu, Jul 10, 2014 at 6:26 PM, Dulanja Liyanage dula...@wso2.com
 wrote:

 Hi Kasun,

 Could you please attach the HTTP requests and responses getting exchanged
 in this scenario?

 Thanks,
 Dulanja


 On Thu, Jul 10, 2014 at 6:20 PM, Kasun Dissanayake kas...@wso2.com
 wrote:

 Hi All,

 I'm working with an issue. In here I passed the RelayState parameter to
 Saml Request but after the saml response I get 'null' for the RelayState
 Parameter. Basically I send the SAMLRequest to Idp. Any help ?

 Thanks and Regards

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

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




 --
 Dulanja Liyanage
 WSO2 Inc.
 M: +94776764717




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




-- 
Dulanja Liyanage
WSO2 Inc.
M: +94776764717
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] We are getting some class not found issues intermittently

2014-07-10 Thread Vijayaratha Vijayasingam
Hi all;

It looks like webapps depend on OSGI bundles and when webapps get deployed,
OSGi bundles are not active which causes webapp deployment failure
issues..These webapps currently include Oauth+jaggery webapps.
Please fix this issue at webapp deployer or in the webapps.

At the same time  please check, what causes the *java.lang.*
*ClassNotFoundException: org.wso2.carbon.tomcat.ext.*
*servlet.DelegationServlet* issue..


Thanks.




On 10 July 2014 12:10, Shameera Rathnayaka shame...@wso2.com wrote:

 Hi Sameera,

 On Thu, Jul 10, 2014 at 11:32 AM, Sameera Jayasoma same...@wso2.com
 wrote:

 Shameera/Pubudu

 Can you guys have a look at this issue?


 ​Start working on.

 Thanks,
 Shameera.​




 On Thu, Jul 10, 2014 at 11:28 AM, Vijayaratha Vijayasingam 
 rat...@wso2.com wrote:

 Carbon-core team, please check this issue..This currently blocks the
 chunk-13 product releases..


 -- Forwarded message --
 From: Vijayaratha Vijayasingam rat...@wso2.com
 Date: 9 July 2014 18:49
 Subject: Re: We are getting some class not found issues intermittently
 To: WSO2 Developers' List dev@wso2.org, Sameera Jayasoma 
 same...@wso2.com, Kasun Gajasinghe kas...@wso2.com, Kishanthan
 Thangarajah kishant...@wso2.com


 Is there any recent change in the *core.util module* which causes this
 issue?


 osgi ls 454
 Components in bundle org.wso2.carbon.utils:
 ID  State   Component Name  Located
 in bundle
 155 Active
 org.wso2.carbon.context.internal.CarbonContextDiscoveryServiceComponent
 org.wso2.carbon.utils(bid=454)
 156 Active
 org.wso2.carbon.context.internal.CarbonContextServiceComponent
 org.wso2.carbon.utils(bid=454)
 157 Unsatisfied
 org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent
 org.wso2.carbon.utils(bid=454)
 osgi comp 157

 Component[
 name = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent
 factory = null
 autoenable = true
 immediate = true
 implementation =
 org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent
 state = Unsatisfied
 properties =
 {service.pid=org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent}
 serviceFactory = false
 serviceInterface = null
 references = {
 Reference[name = configuration.context.service,
 interface = org.wso2.carbon.utils.ConfigurationContextService, policy =
 dynamic, cardi
 nality = 1..1, target = null, bind = setConfigurationContextService,
 unbind = unsetConfigurationContextService]
 }
 located in bundle = org.wso2.carbon.utils_4.2.0 [454]
 ]
 Dynamic information :
   *The component is NOT satisfied
   The following references are not satisfied:
 Reference[name = configuration.context.service, interface =
 org.wso2.carbon.utils.ConfigurationContextService, policy = dynamic,
 cardinality = 1..
 1, target = null, bind = setConfigurationContextService, unbind =
 unsetConfigurationContextService]
   Component configurations :
 Configuration properties:
   service.pid =
 org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent
   component.name =
 org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent
   component.id = 156
 Instances:


 On 9 July 2014 18:28, Vijayaratha Vijayasingam rat...@wso2.com wrote:

 when i get*  java.lang.*
 *ClassNotFoundException: 
 org.wso2.carbon.tomcat.ext.**servlet.DelegationServlet
 *issue
 here are the osgi out put;

 *osgi headers 421*
 Bundle headers:
  Bnd-LastModified = 1404369790626
  Build-Jdk = 1.6.0_45
  Built-By = root
  Bundle-Description = This bundle contains custom tomcat extensions
 such as tomcat valves,etc
  Bundle-DocURL = http://wso2.com
  Bundle-License = http://www.apache.org/licenses/LICENSE-2.0
  Bundle-ManifestVersion = 2
  Bundle-Name = org.wso2.carbon.tomcat.ext
  Bundle-SymbolicName = org.wso2.carbon.tomcat.ext
  Bundle-Vendor = WSO2 Inc
  Bundle-Version = 4.2.0
  Created-By = Apache Maven Bundle Plugin

 Export-Package =

 org.wso2.carbon.tomcat.ext.service;uses:=org.apache.commons.logging,org.apache.catalina,org.apache.catalina.core;version=4.2.0,o

 rg.wso2.carbon.tomcat.ext.scan;uses:=javax.servlet,org.apache.tomcat,org.apache.tomcat.util.res,org.apache.tomcat.util.file,org.apache.juli.logging,o

 rg.eclipse.osgi.framework.adaptor,org.apache.tomcat.util.scan;version=4.2.0,org.wso2.carbon.tomcat.ext.valves;uses:=org.wso2.carbon.registry.core.

 service,org.apache.catalina.connector,org.apache.commons.logging,org.apache.catalina.valves,org.wso2.carbon.user.api,org.wso2.carbon.registry.api,org.

 wso2.carbon.registry.core.ghostregistry,org.wso2.carbon.context,javax.servlet,org.wso2.carbon.user.core.service,org.apache.catalina,
 org.wso2.carbon.to

 mcat.ext.utils,javax.servlet.http,org.apache.juli.logging,org.apache.tomcat.util.res,org.wso2.carbon.core.session,org.apache.catalina.ha,
 org.apache.ax

 

Re: [Dev] Please merge the changes to patch0009 of 4.2.0 kernel

2014-07-10 Thread Shameera Rathnayaka
Hi Pradeep,

Please send the pull request to https://github.com/wso2-dev/carbon4-kernel
, this is the carbon 4 kernel development branch.

Regards,
Shameera.


On Thu, Jul 10, 2014 at 5:24 PM, Shameera Rathnayaka shame...@wso2.com
wrote:

 Hi Pradeep,

 Which jdk version you are using to buile the kernel? if it is 1.7 then you
 probably hit with registry test failures.

 I will apply the new patch.

 Thanks,
 Shameera


 On Thu, Jul 10, 2014 at 5:22 PM, Pradeep Fernando prad...@wso2.com
 wrote:

 Hi Shameera,

 Attached the new patch with modifications. Ran tests. No new test
 failures, AFAIU.

 thanks,.


 On Thu, Jul 10, 2014 at 5:12 PM, Pradeep Fernando prad...@wso2.com
 wrote:

 Hi,

 will attach the patch again. However, encountered some registry test
 failures in patch0009/registry.core without my patch.

 thanks


 On Thu, Jul 10, 2014 at 4:46 PM, Shameera Rathnayaka shame...@wso2.com
 wrote:

 Hi Pradeep,

 you have introduced a new API in your patch , please remove that as it
 is incorrect to do API changes with a patch. But when you provide a pull
 request to 4.3.0 you can do any API changes.

 Thanks,
 Shameera.


 On Thu, Jul 10, 2014 at 3:47 PM, Pradeep Fernando prad...@wso2.com
 wrote:

 Hi Kernel team,

 Please review and merge the changes please.

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

 thanks




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT
 apache.org shame...@apache.org*
 *phone:  +9471 922 1454 %2B9471%20922%201454*

 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R




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




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org
 shame...@apache.org*
 *phone:  +9471 922 1454 %2B9471%20922%201454*

 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R




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


Re: [Dev] Please merge the changes to patch0009 of 4.2.0 kernel

2014-07-10 Thread Pradeep Fernando
I did sent a pull request. What is the commit version of the patch


On Thu, Jul 10, 2014 at 7:17 PM, Shameera Rathnayaka shame...@wso2.com
wrote:

 Hi Pradeep,

 Please send the pull request to https://github.com/wso2-dev/carbon4-kernel
 , this is the carbon 4 kernel development branch.

 Regards,
 Shameera.


 On Thu, Jul 10, 2014 at 5:24 PM, Shameera Rathnayaka shame...@wso2.com
 wrote:

 Hi Pradeep,

 Which jdk version you are using to buile the kernel? if it is 1.7 then
 you probably hit with registry test failures.

 I will apply the new patch.

 Thanks,
 Shameera


 On Thu, Jul 10, 2014 at 5:22 PM, Pradeep Fernando prad...@wso2.com
 wrote:

 Hi Shameera,

 Attached the new patch with modifications. Ran tests. No new test
 failures, AFAIU.

 thanks,.


 On Thu, Jul 10, 2014 at 5:12 PM, Pradeep Fernando prad...@wso2.com
 wrote:

 Hi,

 will attach the patch again. However, encountered some registry test
 failures in patch0009/registry.core without my patch.

 thanks


 On Thu, Jul 10, 2014 at 4:46 PM, Shameera Rathnayaka shame...@wso2.com
  wrote:

 Hi Pradeep,

 you have introduced a new API in your patch , please remove that as it
 is incorrect to do API changes with a patch. But when you provide a pull
 request to 4.3.0 you can do any API changes.

 Thanks,
 Shameera.


 On Thu, Jul 10, 2014 at 3:47 PM, Pradeep Fernando prad...@wso2.com
 wrote:

 Hi Kernel team,

 Please review and merge the changes please.

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

 thanks




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT
 apache.org shame...@apache.org*
 *phone:  +9471 922 1454 %2B9471%20922%201454*

 *Linked in : *
 http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R




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




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org
 shame...@apache.org*
 *phone:  +9471 922 1454 %2B9471%20922%201454*

 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org
 shame...@apache.org*
 *phone:  +9471 922 1454 %2B9471%20922%201454*

 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R




-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

blog: http://pradeepfernando.blogspot.com
m: +94776603662
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please merge the changes to patch0009 of 4.2.0 kernel

2014-07-10 Thread Shameera Rathnayaka
yes you have, but for master repository[1] which we don't apply patches. We
will merge dev repo[2] to master once dev branch come to a stable state.
Therefore you need to provide pull request to wso2-dev repo :)

[1] https://github.com/wso2/carbon4-kernel
[2] https://github.com/wso2-dev/carbon4-kernel


On Thu, Jul 10, 2014 at 7:33 PM, Pradeep Fernando prad...@wso2.com wrote:

 I did sent a pull request. What is the commit version of the patch


 On Thu, Jul 10, 2014 at 7:17 PM, Shameera Rathnayaka shame...@wso2.com
 wrote:

 Hi Pradeep,

 Please send the pull request to
 https://github.com/wso2-dev/carbon4-kernel , this is the carbon 4 kernel
 development branch.

 Regards,
 Shameera.


 On Thu, Jul 10, 2014 at 5:24 PM, Shameera Rathnayaka shame...@wso2.com
 wrote:

 Hi Pradeep,

 Which jdk version you are using to buile the kernel? if it is 1.7 then
 you probably hit with registry test failures.

 I will apply the new patch.

 Thanks,
 Shameera


 On Thu, Jul 10, 2014 at 5:22 PM, Pradeep Fernando prad...@wso2.com
 wrote:

 Hi Shameera,

 Attached the new patch with modifications. Ran tests. No new test
 failures, AFAIU.

 thanks,.


 On Thu, Jul 10, 2014 at 5:12 PM, Pradeep Fernando prad...@wso2.com
 wrote:

 Hi,

 will attach the patch again. However, encountered some registry test
 failures in patch0009/registry.core without my patch.

 thanks


 On Thu, Jul 10, 2014 at 4:46 PM, Shameera Rathnayaka 
 shame...@wso2.com wrote:

 Hi Pradeep,

 you have introduced a new API in your patch , please remove that as
 it is incorrect to do API changes with a patch. But when you provide a 
 pull
 request to 4.3.0 you can do any API changes.

 Thanks,
 Shameera.


 On Thu, Jul 10, 2014 at 3:47 PM, Pradeep Fernando prad...@wso2.com
 wrote:

 Hi Kernel team,

 Please review and merge the changes please.

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

 thanks




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT
 apache.org shame...@apache.org*
 *phone:  +9471 922 1454 %2B9471%20922%201454*

 *Linked in : *
 http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R




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




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT
 apache.org shame...@apache.org*
 *phone:  +9471 922 1454 %2B9471%20922%201454*

 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org
 shame...@apache.org*
 *phone:  +9471 922 1454 %2B9471%20922%201454*

 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R




 --
 *Pradeep Fernando*
 Associate Technical Lead;WSO2 Inc.; http://wso2.com

 blog: http://pradeepfernando.blogspot.com
 m: +94776603662




-- 
*Software Engineer - WSO2 Inc.*
*email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org
shame...@apache.org*
*phone:  +9471 922 1454 %2B9471%20922%201454*

*Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
*Twitter : *https://twitter.com/Shameera_R
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Commit the patch to kernel patch0009 | CARBON-14862 fix

2014-07-10 Thread Supun Malinga
Hi Shameera,

As discussed offline, please do the $subject and let me know..
https://wso2.org/jira/browse/CARBON-14862

thanks,
-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Commit the patch to kernel patch0009 | CARBON-14862 fix

2014-07-10 Thread Supun Malinga
I will send the pull request to 4.3.0 git as well.

thanks,


On Thu, Jul 10, 2014 at 7:59 PM, Supun Malinga sup...@wso2.com wrote:

 Hi Shameera,

 As discussed offline, please do the $subject and let me know..
 https://wso2.org/jira/browse/CARBON-14862

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Commit the patch to kernel patch0009 | CARBON-14862 fix

2014-07-10 Thread Shameera Rathnayaka
Done, Committed revision 205558.

Yes please send the pull request to 4.3.0 dev git repo.

Thanks,
Shameera.


On Thu, Jul 10, 2014 at 8:00 PM, Supun Malinga sup...@wso2.com wrote:

 I will send the pull request to 4.3.0 git as well.

 thanks,


 On Thu, Jul 10, 2014 at 7:59 PM, Supun Malinga sup...@wso2.com wrote:

 Hi Shameera,

 As discussed offline, please do the $subject and let me know..
 https://wso2.org/jira/browse/CARBON-14862

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




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


Re: [Dev] Commit the patch to kernel patch0009 | CARBON-14862 fix

2014-07-10 Thread Supun Malinga
thanks Shameera


On Thu, Jul 10, 2014 at 8:18 PM, Shameera Rathnayaka shame...@wso2.com
wrote:

 Done, Committed revision 205558.

 Yes please send the pull request to 4.3.0 dev git repo.

 Thanks,
 Shameera.


 On Thu, Jul 10, 2014 at 8:00 PM, Supun Malinga sup...@wso2.com wrote:

 I will send the pull request to 4.3.0 git as well.

 thanks,


 On Thu, Jul 10, 2014 at 7:59 PM, Supun Malinga sup...@wso2.com wrote:

 Hi Shameera,

 As discussed offline, please do the $subject and let me know..
 https://wso2.org/jira/browse/CARBON-14862

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org
 shame...@apache.org*
 *phone:  +9471 922 1454 %2B9471%20922%201454*

 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Adding data to database in WSO2 App Cloud

2014-07-10 Thread Amila Maha Arachchi
We'll look into this and get back to you.


On Thu, Jul 10, 2014 at 11:57 AM, Danushka Fernando danush...@wso2.com
wrote:

 Hi
 This is WSO2 Cloud hosted in EC2. So If it can be telnet, then it is open
 to the public. This is nothing to do with Infra. Amila can you check what's
 going wrong here.

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


 On Thu, Jul 10, 2014 at 11:44 AM, Firzhan Naqash firz...@wso2.com wrote:


 Hi,

 You have to get the remote connection enabled from the Infra. By default
 it has been disabled.

 Regards,
 Firzhan


 On Thu, Jul 10, 2014 at 10:45 AM, Udara Liyanage ud...@wso2.com wrote:

 HI,

 I tried telnet mysql-dev-01.cloud.wso2.com
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x 3006 and there was
 a response. MySQL server seems to run on the given host and port. Please
 check whether remote login has enabled from MySQL server side.


 On Thu, Jul 10, 2014 at 8:15 AM, Nilashan Namasivayam 
 n.nil...@gmail.com wrote:

 Hi,

 Even I tried like this, It shows same error.
 For the username for the database, It automatically create a username
 than I given, Like if I put dbuser then It creates dbuser_ubITB7my. So
 Do I use this one? and I have used this one also, It shows same error.

 Thank you,

 Regards,
 Nilashan


 On Thu, Jul 10, 2014 at 7:58 AM, Danushka Fernando danush...@wso2.com
 wrote:

 Hi
 When you use mysql client you have to give the host name for -h option
 not the db URL. So try

 mysql -u dbuser -h mysql-
 http://mysql-dev-01.cloud.wso2.com:3306/db1_xdev
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x-01.
 http://mysql-dev-01.cloud.wso2.com:3306/db1_xcloud.wso2
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x.com
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x -p
 On Jul 9, 2014 10:56 PM, Nilashan Namasivayam n.nil...@gmail.com
 wrote:

 Hi,

 I'm trying to add some data to the database in App Cloud.

 The database url like this:
   jdbc:mysql://mysql-dev-01.cloud.wso2.com:3306/db1_x


 and I have tried to connect via MySQL client like this
  mysql -u dbuser -h jdbc:mysql://
 mysql-dev-01.cloud.wso2.com:3306/db1_x -p

 After trying the above code, I get this error in console
   ERROR 2005 (HY000): Unknown MySQL server host 'jdbc:mysql://
 mysql-dev-01.cloud.wso2.com:3306/db1_x' (2)

 What can be the problem?

 I'm following this documentation:

 http://docs.wso2.com/display/AppCloud/Add+Data+to+my+Database+or+Connect+to+an+External+Database

 Do we need any additional configuration in App Cloud than mentioned
 in the above link?


 Regards,
 Nilashan

 ___
 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




 --

 Udara Liyanage
 Software Engineer
  WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

 ___
 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





-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] When two or more services available with the given web app name prefix causes RMI Exceptions while getting the webapp information

2014-07-10 Thread Dimuthu De Lanerolle
Thanks Kasun. we will look into this.



On Thu, Jul 10, 2014 at 5:13 PM, Kasun Gajasinghe kas...@wso2.com wrote:


 If you need to get the webapp details of a particular webapp, then you
 need to call WebappAdmin#getStartedWebapp method. You are currently
 calling getPagedWebappsSummary which returns an array of webapp data
 (wrapped in a WebappsWrapper object) according to the webappSearchString
 you use.

 Regards,
 KasunG


 On Thu, Jul 10, 2014 at 5:00 PM, Dimuthu De Lanerolle dimut...@wso2.com
 wrote:

 I noticed while retrieving the webapp information by invoking the Web app
 admin service client (WebAppAdminClient class  getWebAppInfo(..)) , it
 throws  java.rmi.RemoteException: More than one service found with the
 given name exception.
 It seems like this happens due to two distinct JaggeryWebApps (
 productapipublisher and publisher) hosted in the same EMM server and when
 we try to retrieve web info of the publisher Jaggery WebApp.

 If the main reason causing this exception is because there are more than
 one service available with the given web app name prefix what could be the
 best possible solution to solve this issue?

 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




 --

 *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






-- 
Dimuthu De Lanerolle
Software Engineer
WSO2 Inc.
lean . enterprise . middlewear.
http://wso2.com/
Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Adding data to database in WSO2 App Cloud

2014-07-10 Thread Nilashan Namasivayam
Hi,

This problem has been solved.  The remote connection has been enabled.

Regards,
Nilashan


On Thu, Jul 10, 2014 at 10:23 PM, Amila Maha Arachchi ami...@wso2.com
wrote:

 We'll look into this and get back to you.


 On Thu, Jul 10, 2014 at 11:57 AM, Danushka Fernando danush...@wso2.com
 wrote:

 Hi
 This is WSO2 Cloud hosted in EC2. So If it can be telnet, then it is open
 to the public. This is nothing to do with Infra. Amila can you check what's
 going wrong here.

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


 On Thu, Jul 10, 2014 at 11:44 AM, Firzhan Naqash firz...@wso2.com
 wrote:


 Hi,

 You have to get the remote connection enabled from the Infra. By default
 it has been disabled.

 Regards,
 Firzhan


 On Thu, Jul 10, 2014 at 10:45 AM, Udara Liyanage ud...@wso2.com wrote:

 HI,

 I tried telnet mysql-dev-01.cloud.wso2.com
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x 3006 and there was
 a response. MySQL server seems to run on the given host and port. Please
 check whether remote login has enabled from MySQL server side.


 On Thu, Jul 10, 2014 at 8:15 AM, Nilashan Namasivayam 
 n.nil...@gmail.com wrote:

 Hi,

 Even I tried like this, It shows same error.
 For the username for the database, It automatically create a username
 than I given, Like if I put dbuser then It creates dbuser_ubITB7my.
 So Do I use this one? and I have used this one also, It shows same
 error.

 Thank you,

 Regards,
 Nilashan


 On Thu, Jul 10, 2014 at 7:58 AM, Danushka Fernando danush...@wso2.com
  wrote:

 Hi
 When you use mysql client you have to give the host name for -h
 option not the db URL. So try

 mysql -u dbuser -h mysql-
 http://mysql-dev-01.cloud.wso2.com:3306/db1_xdev
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x-01.
 http://mysql-dev-01.cloud.wso2.com:3306/db1_xcloud.wso2
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x.com
 http://mysql-dev-01.cloud.wso2.com:3306/db1_x -p
 On Jul 9, 2014 10:56 PM, Nilashan Namasivayam n.nil...@gmail.com
 wrote:

 Hi,

 I'm trying to add some data to the database in App Cloud.

 The database url like this:
   jdbc:mysql://mysql-dev-01.cloud.wso2.com:3306/db1_x


 and I have tried to connect via MySQL client like this
  mysql -u dbuser -h jdbc:mysql://
 mysql-dev-01.cloud.wso2.com:3306/db1_x -p

 After trying the above code, I get this error in console
   ERROR 2005 (HY000): Unknown MySQL server host 'jdbc:mysql://
 mysql-dev-01.cloud.wso2.com:3306/db1_x' (2)

 What can be the problem?

 I'm following this documentation:

 http://docs.wso2.com/display/AppCloud/Add+Data+to+my+Database+or+Connect+to+an+External+Database

 Do we need any additional configuration in App Cloud than mentioned
 in the above link?


 Regards,
 Nilashan

 ___
 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




 --

 Udara Liyanage
 Software Engineer
  WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

 ___
 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





 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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


Re: [Dev] Adding data to database in WSO2 App Cloud

2014-07-10 Thread Gunarajah Pirinthan
Hi
I got same error.

ERROR 2005 (HY000): Unknown MySQL server host 
'jdbc:mysql://mysql-dev-01.cloud.wso2.com:3306/db1_x' (2)

i don't know exactly problem but when i used dongle for Internet,  i did not 
get any error.  its works normal.



On Thursday, 10 July 2014 10:40 PM, Nilashan Namasivayam n.nil...@gmail.com 
wrote:
 


Hi,

This problem has been solved.  The remote connection has been enabled.

Regards,
Nilashan 



On Thu, Jul 10, 2014 at 10:23 PM, Amila Maha Arachchi ami...@wso2.com wrote:

We'll look into this and get back to you.



On Thu, Jul 10, 2014 at 11:57 AM, Danushka Fernando danush...@wso2.com wrote:

Hi 
This is WSO2 Cloud hosted in EC2. So If it can be telnet, then it is open to 
the public. This is nothing to do with Infra. Amila can you check what's 
going wrong here.


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


On Thu, Jul 10, 2014 at 11:44 AM, Firzhan Naqash firz...@wso2.com wrote:


Hi,

You have to get the remote connection enabled from the Infra. By default it 
has been disabled.



Regards,
Firzhan



On Thu, Jul 10, 2014 at 10:45 AM, Udara Liyanage ud...@wso2.com wrote:

HI,


I tried telnet mysql-dev-01.cloud.wso2.com 3006 and there was a response. 
MySQL server seems to run on the given host and port. Please check whether 
remote login has enabled from MySQL server side.



On Thu, Jul 10, 2014 at 8:15 AM, Nilashan Namasivayam n.nil...@gmail.com 
wrote:

Hi,


Even I tried like this, It shows same error.
For the username for the database, It automatically create a username than 
I given, Like if I put dbuser then It creates dbuser_ubITB7my. So Do I use 
this one? and I have used this one also, It shows same error.


Thank you,


Regards,
Nilashan



On Thu, Jul 10, 2014 at 7:58 AM, Danushka Fernando danush...@wso2.com 
wrote:

Hi
When you use mysql client you have to give the host name for -h option 
not the db URL. So try
mysql -u dbuser -h mysql-dev-01.cloud.wso2.com -p 
On Jul 9, 2014 10:56 PM, Nilashan Namasivayam n.nil...@gmail.com 
wrote:

Hi,


I'm trying to add some data to the database in App Cloud.


The database url like this:
 jdbc:mysql://mysql-dev-01.cloud.wso2.com:3306/db1_x




and I have tried to connect via MySQL client like this
     mysql -u dbuser -h 
jdbc:mysql://mysql-dev-01.cloud.wso2.com:3306/db1_x -p 



After trying the above code, I get this error in console
 ERROR 2005 (HY000): Unknown MySQL server host 
'jdbc:mysql://mysql-dev-01.cloud.wso2.com:3306/db1_x' (2)


What can be the problem?


I'm following this documentation:
http://docs.wso2.com/display/AppCloud/Add+Data+to+my+Database+or+Connect+to+an+External+Database



Do we need any additional configuration in App Cloud than mentioned in 
the above link? 





Regards,
Nilashan
___
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





-- 


Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware


web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897

___
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






-- 

Amila Maharachchi
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com 
Mobile: +94719371446




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


[Dev] [ESB] Maven Archetype for Cloud Connectors

2014-07-10 Thread Ramindu Deshapriya
Hi all,

We have managed to modify the Maven Archetype for connector development in
compliance with the latest normalized pom and connector structure. Would
appreciate your comments on this. The JAR is available at [1] 

Thanks.  

[1]
https://dl.dropboxusercontent.com/u/18772483/WSO2/org.wso2.carbon.mediation.library.connectors.connector-archetype-4.2.0.jar




--
View this message in context: 
http://wso2-oxygen-tank.10903.n7.nabble.com/ESB-Maven-Archetype-for-Cloud-Connectors-tp99331.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


Re: [Dev] [G-Reg][integration-testing] Interleaving test classes

2014-07-10 Thread Krishantha Samaraweera
Hi all,

You can find reasons for this kind of intermittent issue at TAF wiki -
http://docs.wso2.com/display/TA430/FAQ#FAQ-Whydoesmytestmodulecontainintermittenttestfailures?

I suspect this issue is something to do with test resource cleanup. Need to
check run all tests and do extensive debug session.

Please share active GIT repo URL.

Thanks,
Krishantha.


On Thu, Jul 10, 2014 at 4:46 PM, Subash Chaturanga sub...@wso2.com wrote:

 Adding Krishantha


 On Thu, Jul 10, 2014 at 3:57 PM, Sameera Kannangara samee...@wso2.com
 wrote:

 Hi all,

 When running G-Reg tests I've encountered several test cases which passes
 when the containing class executed individually and fails when tests are
 run as packages. Following are few examples.


 deleteResources(org.wso2.carbon.registry.metadata.test.schema.SchemaAddTestCase)

 addAssociationToRoot(org.wso2.carbon.registry.ws.client.test.general.old.TestAssociationWSTestCase)

 cleanup(org.wso2.carbon.registry.ws.client.test.general.old.TestAssociationWSTestCase)

 When remote debugging these test classes it is observed that tests from
 different classes run interleaved, and that some times lead to changing and
 removing shared resources, results in test failures.

 How can we solve this problem?

 Thank you,
 SameeraK


 --
 Sameera Kannangara,
 Software Engineer,
 WSO2 Inc.

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




 --
 Thanks
 /subash

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




-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] App Manager Nightly Build Pack - 10-07-2014

2014-07-10 Thread Dinusha Senanayaka
Hi,

Please find the $subject in [1]. This contains some fixes but MT is not
there.

[1]. http://builder1.us1.wso2.org/~appm/10-07-2014/

Regards,
Dinusha.

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


Re: [Dev] [Carbon] Reproducing Bug - Logging incorrect tenant ID in wso2carbon.log

2014-07-10 Thread Malintha Adikari
Hi Gayashan,

You can observe this issue in waso2carbon.log file of any product. Each log
event in those logs shows it's tenant user id (according to the pattern we
have mentioned in the log4jproperties file ). Some of those log event has
-1 as the tenant id. According to my understanding, normal wso2carbon log
events show the tenant id as 0 for every log event. That is an another
issue and you couldn't observe this issue in normal wso2carbon.log files.
What I did was created an simple OSGI bundle for log appending  and
registered it in the wso2carbonlog section in log4jproperties file. I could
reproduce the issue using that log  appender file.

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


Re: [Dev] SAMLResponce giving 'null' for the RelayState Parameter

2014-07-10 Thread Prasad Tissera
Hi Kasun,

This blog may help you.

http://sureshatt.blogspot.com/2012/11/how-to-read-saml-20-response-with.html

Regards,
Prasad.


On Thu, Jul 10, 2014 at 6:34 PM, Kasun Dissanayake kas...@wso2.com wrote:

 Hi Dulanja

 I think I found the the issue. I passed this parameter to message context
 which is a Synpase config.
 This config file is not visible to IS I think. So he doesn't know any
 RelayState Para.

 @Dulanja

 Can you give me any sample code or any sample number which is in IS Docs
 how to set HTTP parameters to Saml Request?

 Thanks and Regards


 On Thu, Jul 10, 2014 at 6:26 PM, Dulanja Liyanage dula...@wso2.com
 wrote:

 Hi Kasun,

 Could you please attach the HTTP requests and responses getting exchanged
 in this scenario?

 Thanks,
 Dulanja


 On Thu, Jul 10, 2014 at 6:20 PM, Kasun Dissanayake kas...@wso2.com
 wrote:

 Hi All,

 I'm working with an issue. In here I passed the RelayState parameter to
 Saml Request but after the saml response I get 'null' for the RelayState
 Parameter. Basically I send the SAMLRequest to Idp. Any help ?

 Thanks and Regards

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

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




 --
 Dulanja Liyanage
 WSO2 Inc.
 M: +94776764717




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

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




-- 
Prasad Tissera
Software Engineer.
Mobile : +94777223444
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error Including maven-invoker as a dependency

2014-07-10 Thread Inosh Perera
Hi all,
I have a carbon component, which requires maven-invoker as a dependency.
When I build this component alone, it builds fine and if I put it as a
dropins and put the dependent library(maven-invoker2.1.1) to libs , it
works fine with the emm pack. But When I include this with features, to get
the maven invoker, as bellow,

build
plugins
plugin
groupIdorg.wso2.maven/groupId
artifactIdcarbon-p2-plugin/artifactId
version${carbon.p2.plugin.version}/version
executions
execution
idp2-feature-generation/id
phasepackage/phase
goals
goalp2-feature-gen/goal
/goals
configuration
idorg.wso2.emm/id
propertiesFile../../../../etc/feature.properties/propertiesFile
adviceFile
properties
propertyDeforg.wso2.carbon.p2.category.type:console/propertyDef
propertyDeforg.eclipse.equinox.p2.type.group:false/propertyDef
/properties
/adviceFile
bundles
bundleDeforg.bouncycastle.wso2:bcprov-jdk15on:${bcprov.wso2.version}/bundleDef

*bundleDeforg.apache.maven.shared:maven-invoker:${maven.invoker.version}/bundleDef*
/bundles
importBundles
/importBundles
importFeatures
/importFeatures
/configuration
/execution
/executions
/plugin

It produces an error, Even though, the bundle is there in the shown path(in
my m2).

[ERROR] Failed to execute goal
org.wso2.maven:carbon-p2-plugin:1.5.3:p2-feature-gen
(p2-feature-generation) on project org.wso2.emm.feature:
Bundle-SymbolicName cannot be found in the bundle:
/home/inoshp/.m2/repository/org/apache/maven/shared/maven-invoker/2.1.1/maven-invoker-2.1.1.jar
- [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-feature-gen
(p2-feature-generation) on project org.wso2.emm.feature:
Bundle-SymbolicName cannot be found in the bundle:
/home/inoshp/.m2/repository/org/apache/maven/shared/maven-invoker/2.1.1/maven-invoker-2.1.1.jar
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException:
Bundle-SymbolicName cannot be found in the bundle:
/home/inoshp/.m2/repository/org/apache/maven/shared/maven-invoker/2.1.1/maven-invoker-2.1.1.jar
at
org.wso2.maven.p2.generate.feature.Bundle.resolveOSGIInfo(Bundle.java:330)
at org.wso2.maven.p2.generate.feature.Bundle.setArtifact(Bundle.java:150)
at
org.wso2.maven.p2.generate.feature.FeatureGenMojo.getProcessedBundlesList(FeatureGenMojo.java:287)
at
org.wso2.maven.p2.generate.feature.FeatureGenMojo.execute(FeatureGenMojo.java:231)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)

What could be the cause of this. I check the Bundle-SymbolicName, and it
seems correct.

Regards,
Inosh
-- 
Inosh Perera
Software Engineer, WSO2 Inc.
Tel: 0785293686
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev