Re: [Dev] Error when building platformtrunkfeatures

2012-05-22 Thread Rajith Siriwardena
Hi Malinga


if you still getting the error after doing what Nirmal aiya suggested

try this
http://dist.wso2.org/snapshots/maven2/org/wso2/carbon/org.wso2.carbon.mediator.autoscale/4.0.0-SNAPSHOT/
download the jar file and

mvn install:install-file -DgroupId=org.wso2.carbon
-DartifactId=org.wso2.carbon.mediator.autoscale -Dversion=4.0.0-SNAPSHOT
-Dpackaging=jar
-Dfile=/home/rajith/Downloads/org.wso2.carbon.mediator.autoscale-4.0.0-20120510.232242-43


it worked for me.

just a wild solution


On Tue, May 22, 2012 at 11:22 AM, Nirmal Fernando nir...@wso2.com wrote:

 Hi Malinga,

 On Tue, May 22, 2012 at 11:04 AM, Malinga Perera mali...@wso2.com wrote:

 [ERROR] Failed to execute goal on project
 org.wso2.carbon.mediator.autoscale.feature: Could not resolve dependencies
 for project
 org.wso2.carbon:org.wso2.carbon.mediator.autoscale.feature:pom:4.0.0-SNAPSHOT:
 Failure to find
 org.wso2.carbon:org.wso2.carbon.mediator.autoscale:jar:4.0.0-SNAPSHOT in
 http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
 the local repository, resolution will not be reattempted until the update
 interval of wso2-nexus has elapsed or updates are forced - [Help 1]


 Please build components/load-balancer.

 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the
 command
 [ERROR]   mvn goals -rf :org.wso2.carbon.mediator.autoscale.feature

 As autoscaler is not in the components pom ,


 It is intentional!


  I tried to manually build it (platform/trunk/components/autoscaler),
 there i got following error.

 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
 (default-compile) on project org.wso2.carbon.autoscaler.service:
 Compilation failure: Compilation failure:
 [ERROR]
 /home/malinga/work/repo/platform/trunk/components/autoscaler/service/autoscalerservice/src/main/java/org/wso2/carbon/autoscaler/service/agent/clients/AgentServiceClient.java:[25,52]
 package org.wso2.carbon.autoscaler.agent.service.stub does not exist
 [ERROR]
 /home/malinga/work/repo/platform/trunk/components/autoscaler/service/autoscalerservice/src/main/java/org/wso2/carbon/autoscaler/service/agent/clients/AgentServiceClient.java:[34,12]
 cannot find symbol
 [ERROR] symbol  : class AgentServiceStub
 [ERROR] location: class
 org.wso2.carbon.autoscaler.service.agent.clients.AgentServiceClient
 [ERROR]
 /home/malinga/work/repo/platform/trunk/components/autoscaler/service/autoscalerservice/src/main/java/org/wso2/carbon/autoscaler/service/agent/clients/AgentServiceClient.java:[39,23]
 cannot find symbol
 [ERROR] symbol  : class AgentServiceStub
 [ERROR] location: class
 org.wso2.carbon.autoscaler.service.agent.clients.AgentServiceClient
 [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
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the
 command
 [ERROR]   mvn goals -rf :org.wso2.carbon.autoscaler.service


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




 --

 Thanks  regards,
 Nirmal

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

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




-- 
Rajith Siriwardana
Intern,
Cloud Team,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when building platformtrunkfeatures

2012-05-22 Thread Rajith Siriwardena
better to stick with Nirmal aiyas solution :)

On Tue, May 22, 2012 at 11:30 AM, Rajith Siriwardena raj...@wso2.comwrote:

 Hi Malinga


 if you still getting the error after doing what Nirmal aiya suggested

 try this

 http://dist.wso2.org/snapshots/maven2/org/wso2/carbon/org.wso2.carbon.mediator.autoscale/4.0.0-SNAPSHOT/
 download the jar file and

 mvn install:install-file -DgroupId=org.wso2.carbon
 -DartifactId=org.wso2.carbon.mediator.autoscale -Dversion=4.0.0-SNAPSHOT
 -Dpackaging=jar
 -Dfile=/home/rajith/Downloads/org.wso2.carbon.mediator.autoscale-4.0.0-20120510.232242-43


 it worked for me.

 just a wild solution


 On Tue, May 22, 2012 at 11:22 AM, Nirmal Fernando nir...@wso2.com wrote:

 Hi Malinga,

 On Tue, May 22, 2012 at 11:04 AM, Malinga Perera mali...@wso2.comwrote:

 [ERROR] Failed to execute goal on project
 org.wso2.carbon.mediator.autoscale.feature: Could not resolve dependencies
 for project
 org.wso2.carbon:org.wso2.carbon.mediator.autoscale.feature:pom:4.0.0-SNAPSHOT:
 Failure to find
 org.wso2.carbon:org.wso2.carbon.mediator.autoscale:jar:4.0.0-SNAPSHOT in
 http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
 the local repository, resolution will not be reattempted until the update
 interval of wso2-nexus has elapsed or updates are forced - [Help 1]


 Please build components/load-balancer.

 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the
 command
 [ERROR]   mvn goals -rf :org.wso2.carbon.mediator.autoscale.feature

 As autoscaler is not in the components pom ,


 It is intentional!


  I tried to manually build it (platform/trunk/components/autoscaler),
 there i got following error.

 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
 (default-compile) on project org.wso2.carbon.autoscaler.service:
 Compilation failure: Compilation failure:
 [ERROR]
 /home/malinga/work/repo/platform/trunk/components/autoscaler/service/autoscalerservice/src/main/java/org/wso2/carbon/autoscaler/service/agent/clients/AgentServiceClient.java:[25,52]
 package org.wso2.carbon.autoscaler.agent.service.stub does not exist
 [ERROR]
 /home/malinga/work/repo/platform/trunk/components/autoscaler/service/autoscalerservice/src/main/java/org/wso2/carbon/autoscaler/service/agent/clients/AgentServiceClient.java:[34,12]
 cannot find symbol
 [ERROR] symbol  : class AgentServiceStub
 [ERROR] location: class
 org.wso2.carbon.autoscaler.service.agent.clients.AgentServiceClient
 [ERROR]
 /home/malinga/work/repo/platform/trunk/components/autoscaler/service/autoscalerservice/src/main/java/org/wso2/carbon/autoscaler/service/agent/clients/AgentServiceClient.java:[39,23]
 cannot find symbol
 [ERROR] symbol  : class AgentServiceStub
 [ERROR] location: class
 org.wso2.carbon.autoscaler.service.agent.clients.AgentServiceClient
 [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
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the
 command
 [ERROR]   mvn goals -rf :org.wso2.carbon.autoscaler.service


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




 --

 Thanks  regards,
 Nirmal

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

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




 --
 Rajith Siriwardana
 Intern,
 Cloud Team,
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware




-- 
Rajith Siriwardana
Intern,
Cloud Team,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when building platformtrunkfeatures

2012-05-22 Thread Malinga Perera
after svn up it changed the pom and now those modules (Autoscaler Module,
WSO2 Carbon - Autoscaler Feature, etc) are not in features pom so no
problem, built successfully

@Nirmal: I didn't got a chance to try what you said as it worked with the
update

On Tue, May 22, 2012 at 11:30 AM, Rajith Siriwardena raj...@wso2.comwrote:

 Hi Malinga


 if you still getting the error after doing what Nirmal aiya suggested

 try this

 http://dist.wso2.org/snapshots/maven2/org/wso2/carbon/org.wso2.carbon.mediator.autoscale/4.0.0-SNAPSHOT/
 download the jar file and

 mvn install:install-file -DgroupId=org.wso2.carbon
 -DartifactId=org.wso2.carbon.mediator.autoscale -Dversion=4.0.0-SNAPSHOT
 -Dpackaging=jar
 -Dfile=/home/rajith/Downloads/org.wso2.carbon.mediator.autoscale-4.0.0-20120510.232242-43


 it worked for me.

 just a wild solution


 On Tue, May 22, 2012 at 11:22 AM, Nirmal Fernando nir...@wso2.com wrote:

 Hi Malinga,

 On Tue, May 22, 2012 at 11:04 AM, Malinga Perera mali...@wso2.comwrote:

 [ERROR] Failed to execute goal on project
 org.wso2.carbon.mediator.autoscale.feature: Could not resolve dependencies
 for project
 org.wso2.carbon:org.wso2.carbon.mediator.autoscale.feature:pom:4.0.0-SNAPSHOT:
 Failure to find
 org.wso2.carbon:org.wso2.carbon.mediator.autoscale:jar:4.0.0-SNAPSHOT in
 http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
 the local repository, resolution will not be reattempted until the update
 interval of wso2-nexus has elapsed or updates are forced - [Help 1]


 Please build components/load-balancer.

 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the
 command
 [ERROR]   mvn goals -rf :org.wso2.carbon.mediator.autoscale.feature

 As autoscaler is not in the components pom ,


 It is intentional!


  I tried to manually build it (platform/trunk/components/autoscaler),
 there i got following error.

 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
 (default-compile) on project org.wso2.carbon.autoscaler.service:
 Compilation failure: Compilation failure:
 [ERROR]
 /home/malinga/work/repo/platform/trunk/components/autoscaler/service/autoscalerservice/src/main/java/org/wso2/carbon/autoscaler/service/agent/clients/AgentServiceClient.java:[25,52]
 package org.wso2.carbon.autoscaler.agent.service.stub does not exist
 [ERROR]
 /home/malinga/work/repo/platform/trunk/components/autoscaler/service/autoscalerservice/src/main/java/org/wso2/carbon/autoscaler/service/agent/clients/AgentServiceClient.java:[34,12]
 cannot find symbol
 [ERROR] symbol  : class AgentServiceStub
 [ERROR] location: class
 org.wso2.carbon.autoscaler.service.agent.clients.AgentServiceClient
 [ERROR]
 /home/malinga/work/repo/platform/trunk/components/autoscaler/service/autoscalerservice/src/main/java/org/wso2/carbon/autoscaler/service/agent/clients/AgentServiceClient.java:[39,23]
 cannot find symbol
 [ERROR] symbol  : class AgentServiceStub
 [ERROR] location: class
 org.wso2.carbon.autoscaler.service.agent.clients.AgentServiceClient
 [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
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the
 command
 [ERROR]   mvn goals -rf :org.wso2.carbon.autoscaler.service


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




 --

 Thanks  regards,
 Nirmal

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

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




 --
 Rajith Siriwardana
 Intern,
 Cloud Team,
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

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


Re: [Dev] BE fault message not coming to the FE in Carbon

2012-05-22 Thread Amila Suriarachchi
On Tue, May 22, 2012 at 11:20 AM, Afkham Azeez az...@wso2.com wrote:

 There was an issue in Axis2 where faults do not get propagated in the case
 of in only operations when you use the code first approach.


In fact this is a limitation of wsdl. WSDL does not support fault messages
for in only operations.

thanks,
Amila.



 On Mon, May 21, 2012 at 11:04 PM, Tharindu Mathew thari...@wso2.comwrote:

 When I execute, e.getMessage() at the Front end after catching the
 exception, I only get the Exception class. At the BE, the exception is
 thrown properly.

 ex: GadgetGenAdminServiceGadgetGenException

 What is the proper way of propagating the faut message from the BE to the
 FE?
 --
 Regards,

 Tharindu

 blog: http://mackiemathew.com/
 M: +9459908


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




 --
 *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*
 *
 *
 *Lean . Enterprise . Middleware*


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




-- 
*Amila Suriarachchi*

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

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


Re: [Dev] How to extract service response XML values inside a code written in JavaScript ?

2012-05-22 Thread Sajith Kariyawasam
On Tue, May 22, 2012 at 11:09 AM, Tharindu Mathew thari...@wso2.com wrote:



 On Tue, May 22, 2012 at 11:04 AM, Sajith Kariyawasam saj...@wso2.comwrote:

 Hi Tharindu/Kasun,

 Thanks for the responses,

 On Mon, May 21, 2012 at 11:34 PM, Tharindu Mathew thari...@wso2.comwrote:

 getElementByTagsName is a function of the document object, which is
 present in the browser. So, it only works in the browser.


 I'm bit confused here, I was trying to get the responseXML from WSRequest
 object, as an XML object, and then process it using getElementByTagsName
 function. so as far as the responseXML is an xml object shouldn't I be able
 to use getElementByTagsName irrespective of a browser ?

 No not necessarily. The problem here is the function you are mentioning is
 not present in the response object. It is not a function in the base object
 class. It is specific to the document object.

 You are using it because you are familiar with using it with the document
 object. The document object is given by the browser for dom manipulation.
 So, that is why it only works in the browser.


No, not with the document object, but with the XMLHttpRequest object .
responseXML
is a property of XMLHttpRequest object.

so, in this case  WSRequest is the object similar to XMLHttpRequest object,
and it does have a responseXML property..

well i just figured out according to [1], as of now responseXML returns the
same response as responseE4X, but in future releases it will return a fixed
DOM.

so when the time it returns a DOM, it should be able to get element values
using getElementByTagsName or a similar way .. isn't it?

 [1] http://wso2.org/project/mashup/2.0.2/docs/wsrequesthostobject.html




 On Mon, May 21, 2012 at 11:13 PM, Kasun Indrasiri ka...@wso2.comwrote:

 This may help..
 https://developer.mozilla.org/En/E4X/Processing_XML_with_E4X


 yes, this link was helpful..
 I tried the following as mentioned in the link ..

 var response = service.responseE4X..wx::GetQuoteResult.text();
 var stock = new XML(response.toXMLString());
 print(Symbol :  + stock.Stock.Symbol);

 It works.. thanks

 On Mon, May 21, 2012 at 11:05 PM, Sajith Kariyawasam saj...@wso2.comwrote:

 Hi,

 I was trying to invoke a web service inside a javascript file, and
 deploy it in Mashup Server.

 SOAP response of the web service is defined as follows,


 ?xml version=1.0 encoding=utf-8?
 soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
 xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
   soap:Body
 GetQuoteResponse xmlns=http://www.webserviceX.NET/;
   GetQuoteResultstring/GetQuoteResult
 /GetQuoteResponse
   /soap:Body
 /soap:Envelope


 A sample response value is as follows ,

 string xmlns=http://www.webserviceX.NET/;
 StockQuotesStockSymbolGOOG/SymbolLast613.43/LastDate5/21/2012/DateTime1:00pm/TimeChange+13.03/ChangeOpen601.00/OpenHigh615.694/HighLow600.00/LowVolume2006668/VolumeMktCap200.0B/MktCapPreviousClose600.40/PreviousClosePercentageChange+2.17%/PercentageChangeAnnRange473.02
 - 670.25/AnnRangeEarns32.998/EarnsP-E18.20/P-ENameGoogle
 Inc./Name/Stock/StockQuotes
 /string


 My requirement is to extract couple of elements from the response
 (say, Symbol and Change) and print the values.


 In my .js file I tried a code like this,

 *var service = new WSRequest();*
 *...*
 *...*
 *
 var response = service.responseXML;
 *
 *
 var stock = response.getElementsByTagName('Stock');


 *

 But I'm getting an exception saying ***ERROR -  TypeError: Cannot
 find function getElementsByTagName in object ... *

 so, $subject please?


 Thanks,
 --

 *Sajith Kariyawasam*
 *Senior Software Engineer; WSO2, Inc.; http://wso2.com*


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




 --
 Kasun Indrasiri
 Associate Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

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

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




 --
 Regards,

 Tharindu

 blog: http://mackiemathew.com/
 M: +9459908




 --
 Regards,
 *
 *
 *Sajith Kariyawasam*
 *Senior Software Engineer; WSO2, Inc.; http://wso2.com*




 --
 Regards,

 Tharindu

 blog: http://mackiemathew.com/
 M: +9459908




-- 
Regards,
*
*
*Sajith Kariyawasam*
*Senior Software Engineer; WSO2, Inc.; http://wso2.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon-core cannot be built with Tests on

2012-05-22 Thread Afkham Azeez
Can you retry carbon kernel build after an update? There were issues
related to security fixes.

On Tue, May 22, 2012 at 10:04 AM, Nuwan Bandara nu...@wso2.com wrote:

 no ACK ?


 On Tue, May 22, 2012 at 8:28 AM, Nuwan Bandara nu...@wso2.com wrote:

 Hi,

 FYI,


 essor.run(NioEndpoint.java:1620)
 [2012-05-22 08:26:57,032]  INFO
 {org.wso2.carbon.integration.framework.utils.InputStreamHandler} -   at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 [2012-05-22 08:26:57,032]  INFO
 {org.wso2.carbon.integration.framework.utils.InputStreamHandler} -   at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 [2012-05-22 08:26:57,032]  INFO
 {org.wso2.carbon.integration.framework.utils.InputStreamHandler} -   at
 java.lang.Thread.run(Thread.java:662)
 Tests run: 28, Failures: 1, Errors: 0, Skipped: 27, Time elapsed: 84.548
 sec  FAILURE!

 Results :

 Failed tests:
   startServer(org.wso2.carbon.integration.tests.CarbonTestServerManager):
 org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
 java.lang.RuntimeException: Could not login to Carbon server within
 6ms. portOffset=0

 Tests run: 28, Failures: 1, Errors: 0, Skipped: 27

 [2012-05-22 08:26:59,209]  INFO
 {org.wso2.carbon.integration.framework.utils.ServerUtils} -  Shutting down
 server...
 [INFO]
 
 [INFO] Reactor Summary:
 [INFO]
 [INFO] WSO2 Carbon Core - Distribution ... SUCCESS
 [35.742s]
 [INFO] WSO2 Carbon - Integration . SUCCESS
 [0.338s]
 [INFO] WSO2 Carbon - Security Verification Service ... SUCCESS
 [5.338s]
 [INFO] WSO2 Carbon - Integration Core  SUCCESS
 [6.361s]
 [INFO] WSO2 Carbon - Integration Testing Framework ... SUCCESS
 [2.187s]
 [INFO] WSO2 Carbon - Integration Tests ... FAILURE
 [1:26.542s]
 [INFO] WSO2 Carbon - Product Parent .. SKIPPED
 [INFO] WSO2 Carbon - UI styles ... SKIPPED
 [INFO] WSO2 Carbon - Style Feature ... SKIPPED
 [INFO] WSO2 Carbon - Profile Generation .. SKIPPED
 [INFO] WSO2 Carbon - Distribution  SKIPPED
 [INFO] Distribution-Aggregate  SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 2:17.933s
 [INFO] Finished at: Tue May 22 08:26:59 IST 2012
 [INFO] Final Memory: 85M/1176M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-surefire-plugin:2.7.2:test (default-test) on
 project org.wso2.carbon.integration.tests: There are test failures.
 [ERROR]
 [ERROR] Please refer to
 /home/nuwanbando/wso2/carbon-dev/carbon/kernel/trunk/distribution/integration/tests/target/surefire-reports
 for the individual test results.
 [ERROR] - [Help 1]
 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
 goal org.apache.maven.plugins:maven-surefire-plugin:2.7.2:test
 (default-test) on project org.wso2.carbon.integration.tests: There are test
 failures.

 Please refer to
 /home/nuwanbando/wso2/carbon-dev/carbon/kernel/trunk/distribution/integration/tests/target/surefire-reports
 for the individual test results.
  at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
 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:84)
  at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
  at
 org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
  at
 org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
  at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
  at
 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
  at
 

Re: [Dev] How to extract service response XML values inside a code written in JavaScript ?

2012-05-22 Thread Tharindu Mathew
Yes, you are correct.

On Tue, May 22, 2012 at 11:49 AM, Sajith Kariyawasam saj...@wso2.comwrote:


 On Tue, May 22, 2012 at 11:09 AM, Tharindu Mathew thari...@wso2.comwrote:



 On Tue, May 22, 2012 at 11:04 AM, Sajith Kariyawasam saj...@wso2.comwrote:

 Hi Tharindu/Kasun,

 Thanks for the responses,

 On Mon, May 21, 2012 at 11:34 PM, Tharindu Mathew thari...@wso2.comwrote:

 getElementByTagsName is a function of the document object, which is
 present in the browser. So, it only works in the browser.


 I'm bit confused here, I was trying to get the responseXML from
 WSRequest object, as an XML object, and then process it using 
 getElementByTagsName
 function. so as far as the responseXML is an xml object shouldn't I be able
 to use getElementByTagsName irrespective of a browser ?

 No not necessarily. The problem here is the function you are mentioning
 is not present in the response object. It is not a function in the base
 object class. It is specific to the document object.

 You are using it because you are familiar with using it with the document
 object. The document object is given by the browser for dom manipulation.
 So, that is why it only works in the browser.


 No, not with the document object, but with the XMLHttpRequest object . 
 responseXML
 is a property of XMLHttpRequest object.

 so, in this case  WSRequest is the object similar to XMLHttpRequest
 object, and it does have a responseXML property..

 well i just figured out according to [1], as of now responseXML returns
 the same response as responseE4X, but in future releases it will return a
 fixed DOM.

 so when the time it returns a DOM, it should be able to get element values
 using getElementByTagsName or a similar way .. isn't it?

  [1] http://wso2.org/project/mashup/2.0.2/docs/wsrequesthostobject.html




 On Mon, May 21, 2012 at 11:13 PM, Kasun Indrasiri ka...@wso2.comwrote:

 This may help..
 https://developer.mozilla.org/En/E4X/Processing_XML_with_E4X


 yes, this link was helpful..
 I tried the following as mentioned in the link ..

 var response = service.responseE4X..wx::GetQuoteResult.text();
 var stock = new XML(response.toXMLString());
 print(Symbol :  + stock.Stock.Symbol);

 It works.. thanks

 On Mon, May 21, 2012 at 11:05 PM, Sajith Kariyawasam saj...@wso2.comwrote:

 Hi,

 I was trying to invoke a web service inside a javascript file, and
 deploy it in Mashup Server.

 SOAP response of the web service is defined as follows,



 ?xml version=1.0 encoding=utf-8?
 soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
 xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
   soap:Body
 GetQuoteResponse xmlns=http://www.webserviceX.NET/;
   GetQuoteResultstring/GetQuoteResult
 /GetQuoteResponse
   /soap:Body
 /soap:Envelope


 A sample response value is as follows ,

 string xmlns=http://www.webserviceX.NET/;
 StockQuotesStockSymbolGOOG/SymbolLast613.43/LastDate5/21/2012/DateTime1:00pm/TimeChange+13.03/ChangeOpen601.00/OpenHigh615.694/HighLow600.00/LowVolume2006668/VolumeMktCap200.0B/MktCapPreviousClose600.40/PreviousClosePercentageChange+2.17%/PercentageChangeAnnRange473.02
 - 670.25/AnnRangeEarns32.998/EarnsP-E18.20/P-ENameGoogle
 Inc./Name/Stock/StockQuotes
 /string


 My requirement is to extract couple of elements from the response
 (say, Symbol and Change) and print the values.


 In my .js file I tried a code like this,

 *var service = new WSRequest();*
 *...*
 *...*
 *
 var response = service.responseXML;
 *
 *
 var stock = response.getElementsByTagName('Stock');


 *

 But I'm getting an exception saying ***ERROR -  TypeError: Cannot
 find function getElementsByTagName in object ... *

 so, $subject please?


 Thanks,
 --

 *Sajith Kariyawasam*
 *Senior Software Engineer; WSO2, Inc.; http://wso2.com*


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




 --
 Kasun Indrasiri
 Associate Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

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

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




 --
 Regards,

 Tharindu

 blog: http://mackiemathew.com/
 M: +9459908




 --
 Regards,
 *
 *
 *Sajith Kariyawasam*
 *Senior Software Engineer; WSO2, Inc.; http://wso2.com*




 --
 Regards,

 Tharindu

 blog: http://mackiemathew.com/
 M: +9459908




 --
 Regards,
 *
 *
 *Sajith Kariyawasam*
 *Senior Software Engineer; WSO2, Inc.; http://wso2.com*




-- 
Regards,

Tharindu

blog: http://mackiemathew.com/
M: +9459908
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Bamboo-Build] WSO2 Carbon Products #135 Default Job has FAILED (18 tests failed, no failures were new). Change made by kasung, sanjeewa and thilini.

2012-05-22 Thread Bamboo

WSO2 Carbon  Products  #135  Default Job failed.

Code has been updated by kasung, sanjeewa, thilini.
18/37 tests failed.

http://wso2.org/bamboo/browse/WSO2CARBON-PRODUCTS-JOB1-135/


--
Code Changes
--
thilini (127852):

ProjectCreation--ApplicationCreation

thilini (127851):

Added AppMgt process

kasung (127845):

caching - code reusing



--
Tests
--
Failed Tests (18)
   - ASTestServerManager: Start server (Existing)
   - BPSBPELServerManager: Start server (Existing)
   - BPSCleanupServerManager: Start server (Existing)
   - BPSHumanTaskServerManager: Start server (Existing)
   - BPSSecurityServerManager: Start server (Existing)
   - BPSTestServerManager: Start server (Existing)
   - RegistryTestServerManager: Start server (Existing)
   - BRSTestServerManager: Start server (Existing)
   - CEPTestServerManager: Start server (Existing)
   - CSGTestServerManager: Start server (Existing)
   - DSSTestServerManager: Start server (Existing)
   - ESBTestServerManager: Start server (Existing)
   - ESBTestServerManager: Start server (Existing)
   - GSTestServerManager: Start server (Existing)
   - ISTestServerManager: Start server (Existing)
   - MBTestServerManager: Start server (Existing)
   - MSTestServerManager: Start server (Existing)
   - StratosManagerTestServerManager: Start server (Existing)


--
Error Summary
--
   Usage:
   nbsp; kill pid ...nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; Send 
SIGTERM to every process listed.
   nbsp; kill signal pid ...nbsp; nbsp; nbsp; nbsp;Send a signal to every 
process listed.
   nbsp; kill -s signal pid ...nbsp; nbsp; Send a signal to every process 
listed.
   nbsp; kill -lnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; 
nbsp;List all signal names.
   nbsp; kill -Lnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; 
nbsp;List all signal names in a nice table.
   nbsp; kill -l signalnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; Convert 
between signal numbers and names.
   Usage:
   nbsp; kill pid ...nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; Send 
SIGTERM to every process listed.
   nbsp; kill signal pid ...nbsp; nbsp; nbsp; nbsp;Send a signal to every 
process listed.
   nbsp; kill -s signal pid ...nbsp; nbsp; Send a signal to every process 
listed.
   nbsp; kill -lnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; 
nbsp;List all signal names.
   nbsp; kill -Lnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; 
nbsp;List all signal names in a nice table.
   nbsp; kill -l signalnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; Convert 
between signal numbers and names.
   Usage:
   nbsp; kill pid ...nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; Send 
SIGTERM to every process listed.
   nbsp; kill signal pid ...nbsp; nbsp; nbsp; nbsp;Send a signal to every 
process listed.
   nbsp; kill -s signal pid ...nbsp; nbsp; Send a signal to every process 
listed.
   nbsp; kill -lnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; 
nbsp;List all signal names.
   nbsp; kill -Lnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; 
nbsp;List all signal names in a nice table.
   nbsp; kill -l signalnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; Convert 
between signal numbers and names.


--
This message is automatically generated by Atlassian Bamboo

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


[Dev] Add Datasource to DSS server getting null exception

2012-05-22 Thread Umut Kocasaraç
Hi,
I am trying to create new datasource connection to my DB from DSS Stratos
1.5.2 server. However when i try to create it i am getting Error looking
up a data source : null  exception.

When i googled it i found this link on wso2
https://wso2.org/jira/browse/WSAS-834 .
I have try to uninstall datasource feature from ui concole however stratos
server ui can not uninstall the feature because it depend on another
pluggins. Is there any way to uninstall datasource 3.2.2 feature and
 install datasource 3.2.3.

Thanks,

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


[Dev] Linux versions supported by our products

2012-05-22 Thread Ashansa Perera
Hi,
Can we have a list of Linux versions that we support. Please add anything
if I have missed anything.

RHEL-5.8
RHEL-5.1
ubuntu 10.04
ubuntu 10.10
ubuntu 11
SUSE linux 11
Debian lenny/sid

-- 
Thanks  Regards,

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


Re: [Dev] BE fault message not coming to the FE in Carbon

2012-05-22 Thread Tharindu Mathew
Hi Amila,

Setting the attribute worked. Thanks!

On Tue, May 22, 2012 at 10:46 AM, Pradeep Fernando prad...@wso2.com wrote:

 Hi,

 we used to deal the errors with error codes(earlier it was not
 supported by axis2 afaik). Amila has mentioned the correct mechanism.

 --Pradeep




-- 
Regards,

Tharindu

blog: http://mackiemathew.com/
M: +9459908
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB_HOME/lib/core/WEB-INF/classes Property files are not loading

2012-05-22 Thread Hiranya Jayathilaka
So Synapse looks for the config files in appClassPath. How do we include a
config file in appClassPath with the current model?

On Tue, May 22, 2012 at 10:55 AM, Pradeep Fernando prad...@wso2.com wrote:

 Hi,

 Any properly written library allow their users to feed-in config files
 using,

 1. jre classPath
 2. appClassPath
 3. reside within the same jar - similar to appclasspath
 4. system property

 This is the standard search order of a config file. The whole point of
 OSGi module layer is to have independent classPaths. So basically, if
 we are going to support a common place for all the config files, we
 have to introduce a new classsLoader as the parent classLoader of
 bunldeClassLoader.

 Normally the parent being, boot or ext. I don't think it is
 technically possible (not sure 100%). Even if it is possible we should
 not do such hacks.

 thanks,
 --Pradeep




-- 
Hiranya Jayathilaka
Senior Technical Lead;
WSO2 Inc.;  http://wso2.org
E-mail: hira...@wso2.com;  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB_HOME/lib/core/WEB-INF/classes Property files are not loading

2012-05-22 Thread Dushan Abeyruwan
Hi
I think the approach  (according to my understanding) should  be
something similar to* log4j.properties* bundling
 (Log4jPropFileFragmentBundleCreator.java) where the bundle creation
process is defined *org.wso2.carbon.server *and during the run time it
creates a fragment bundle jar and place it to the dropins  *
(org.wso2.carbon.logging.propfile_1.0.0.jar)* , so probably we may have to
write a* new extension* (*may be in the platform level*) to extract *synapse
driven external configuration* and bundle them and place them to the
dropins where it will be visible to the class path then

cheers
Dushan

On Tue, May 22, 2012 at 1:41 PM, Hiranya Jayathilaka hira...@wso2.comwrote:

 So Synapse looks for the config files in appClassPath. How do we include a
 config file in appClassPath with the current model?

 On Tue, May 22, 2012 at 10:55 AM, Pradeep Fernando prad...@wso2.comwrote:

 Hi,

 Any properly written library allow their users to feed-in config files
 using,

 1. jre classPath
 2. appClassPath
 3. reside within the same jar - similar to appclasspath
 4. system property

 This is the standard search order of a config file. The whole point of
 OSGi module layer is to have independent classPaths. So basically, if
 we are going to support a common place for all the config files, we
 have to introduce a new classsLoader as the parent classLoader of
 bunldeClassLoader.

 Normally the parent being, boot or ext. I don't think it is
 technically possible (not sure 100%). Even if it is possible we should
 not do such hacks.

 thanks,
 --Pradeep




 --
 Hiranya Jayathilaka
 Senior Technical Lead;
 WSO2 Inc.;  http://wso2.org
 E-mail: hira...@wso2.com;  Mobile: +94 77 633 3491
 Blog: http://techfeast-hiranya.blogspot.com




-- 
Dushan Abeyruwan
*Senior Software Engineer*
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com/*
*Mobile:(+94)714408632*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB_HOME/lib/core/WEB-INF/classes Property files are not loading

2012-05-22 Thread Pradeep Fernando
On Tue, May 22, 2012 at 2:01 PM, Pradeep Fernando prad...@wso2.com wrote:
 Hi,

 On Tue, May 22, 2012 at 1:41 PM, Hiranya Jayathilaka hira...@wso2.com wrote:
 So Synapse looks for the config files in appClassPath. How do we include a
 config file in appClassPath with the current model?

 yes, correct. I was just explaining the config file search order
 convention. Getting configs from appClassPath is not possible with
 OSGi technology. That is where system property comes in to picture.

 thanks,
 --pradeep



-- 
Pradeep Fernando
Senior Software Engineer
Member, Management Committee - Platform  Cloud Technologies
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] Add Datasource to DSS server getting null exception

2012-05-22 Thread Dinusha Senanayaka
Hi Umut,

This is a known issue in carbon 3.2.2 release. Yeah, you can uninstall it
from UI. As you said you cannot uninstall only the data-source feature
since data-services feature depends on it. So you need to uninstall  both
data-service and data-source features.  Then install the data-service 3.2.3
feature (This will add the data-source 3.2.3 feature as well since it
depends on data-source feture).

You can download the p2-repository that contains the data-service 3.2.3
feature from [1].

[1]. http://dist.wso2.org/downloads/carbon-3.2.3-p2/ds-3.2.3-feature/

Regards,
Dinusha.

On Tue, May 22, 2012 at 12:16 PM, Umut Kocasaraç ukocasa...@gmail.comwrote:

 Hi,
 I am trying to create new datasource connection to my DB from DSS Stratos
 1.5.2 server. However when i try to create it i am getting Error looking
 up a data source : null  exception.

 When i googled it i found this link on wso2
 https://wso2.org/jira/browse/WSAS-834 .
 I have try to uninstall datasource feature from ui concole however stratos
 server ui can not uninstall the feature because it depend on another
 pluggins. Is there any way to uninstall datasource 3.2.2 feature and
  install datasource 3.2.3.

 Thanks,

 Umut

 ___
 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] Class not found exception when joining nodes to casssandra ring

2012-05-22 Thread Shammi Jayasinghe
Hi kasun,
 I checked after building it with the updated cassandra feature and it
works fine. Thanks you very much,

Thanks
Shammi

On Mon, May 21, 2012 at 6:17 PM, Kasun Weranga kas...@wso2.com wrote:

 Hi Shammi,

 I have fixed this issue in the trunk. You can fix it in your setup by
 adding 
 compress-lzfhttp://repo1.maven.org/maven2/com/ning/compress-lzf/0.8.4/compress-lzf-0.8.4.jar
  bundle to
 dropins dir.

 Thanks
 KasunW.


 On Mon, May 21, 2012 at 5:46 PM, Shammi Jayasinghe sha...@wso2.comwrote:

 Hi ,

  I am using cassandra feature inside MB2. When i am starting up the
 second node in the cassandra ring, Following error pops up
 in the seed node. Please have a look.

 [2012-05-21 08:13:43,723] ERROR
 {org.apache.cassandra.service.AbstractCassandraDaemon} -  Exception in
 thread Thread[StreamStage:1,5,main]
 java.lang.NoClassDefFoundError: com/ning/compress/lzf/LZFOutputStream
  at
 org.apache.cassandra.net.MessagingService.stream(MessagingService.java:491)
 at
 org.apache.cassandra.streaming.StreamOutSession.begin(StreamOutSession.java:164)
  at
 org.apache.cassandra.streaming.StreamOut.transferSSTables(StreamOut.java:142)
 at
 org.apache.cassandra.streaming.StreamOut.transferRanges(StreamOut.java:123)
  at
 org.apache.cassandra.streaming.StreamRequestVerbHandler.doVerb(StreamRequestVerbHandler.java:54)
 at
 org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:59)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  at java.lang.Thread.run(Thread.java:662)
 Caused by: java.lang.ClassNotFoundException:
 com.ning.compress.lzf.LZFOutputStream
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
  at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
 at
 org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
  at
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  ... 9 more


 Thanks
 Shammi

 --
 Best Regards,*

 Shammi Jayasinghe*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com,
 mobile: +94 71 4493085








-- 
Best Regards,*

Shammi Jayasinghe*
Senior Software Engineer; WSO2, Inc.; http://wso2.com,
mobile: +94 71 4493085
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Initializing TaskManagers for all tenants at serer startup

2012-05-22 Thread Dimuthu Leelarathne
Hi,

Currently org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl is
initializing task managers for all tenants at startup. This is against our
tenant lazy loading concepts.

Please move tenant ntask initialization to a
Axis2ConfigurationContextObserver. This will be called when
TenanConfiguraitonContext is loaded.

thanks,
dimuthu



-- 
Dimuthu Leelarathne
Technical Lead

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

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


Re: [Dev] Merging of products services?

2012-05-22 Thread Ramith Jayasinghe
Hi all,
I'm going to remove ( /comment out) following in kernel's
user-mgt.xml. Since having them will results in errors when trying to
add tenant merged CSG pack.

Property name=PasswordJavaRegEx[\S]{5,30}$/Property
Property 
name=UsernameJavaRegEx^[^~!@#$;%^*+={}\\|lt;gt;,\'\]{3,30}$/Property

Regards,
Ramith.

On Tue, May 22, 2012 at 11:27 AM, Dimuthu Leelarathne dimut...@wso2.com wrote:
 Hi Ramith,

 Nice work!

 Yes we need to add Property
 name=MultiTenantRealmConfigBuilderorg.wso2.carbon.user.core.config.multitenancy.SimpleRealmConfigBuilder/Property
 to user-mgt.xml by default now.

 thanks,
 dimuthu

 On Tue, May 22, 2012 at 11:15 AM, Ramith Jayasinghe ram...@wso2.com wrote:

 Hi,
 I got the multi-tenancy features in to CSG by modifying stratos common
 features.
 However, when I try to add a tenant (as admin) I get following error.

 [2012-05-22 11:04:54,913] ERROR - RPCMessageReceiver Exception
 occurred while trying to invoke service method addTenant
 java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
 org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
        at
 org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
        at
 org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
        at
 org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
        at
 org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
        at
 org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
        at
 org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:205)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
        at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
        at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at
 org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:45)
        at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
        at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
        at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
        at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
        at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:143)
        at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
        at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
        at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:48)
        at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
        at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
        at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
        at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1620)
        at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
 Caused by: java.lang.NullPointerException
        at
 org.wso2.carbon.tenant.mgt.core.DefaultTenantPersistor.persistTenant(DefaultTenantPersistor.java:83)
        at
 org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService.addTenant(TenantMgtAdminService.java:79)

 As per the chat with Shankar this can be avoid by adding,
 Property
 

Re: [Dev] Initializing TaskManagers for all tenants at serer startup

2012-05-22 Thread Afkham Azeez
One other thing we noticed during profiling sometime back was getting the
entire tenant list  iterating over it was very time consuming since
certain UM APIs were being called, which go up to the DB level when
retrieving tenant info. So, this will increase the startup time.

On Tue, May 22, 2012 at 2:59 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Azeez,

 On Tue, May 22, 2012 at 2:27 PM, Afkham Azeez az...@wso2.com wrote:



 On Tue, May 22, 2012 at 2:22 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Dimuthu,

 On Tue, May 22, 2012 at 2:15 PM, Dimuthu Leelarathne 
 dimut...@wso2.comwrote:

 Hi,

 Currently org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl is
 initializing task managers for all tenants at startup. This is against our
 tenant lazy loading concepts.

 Please move tenant ntask initialization to a
 Axis2ConfigurationContextObserver. This will be called when
 TenanConfiguraitonContext is loaded.


 As I remember, this was already brought up by Azeez earlier. The
 rationale is, a scheduled task is not a service. It is not something that
 is activated on-demand by a user in a specific tenant. But is suppose to
 work in the scheduled manner continuously. So when a user in a tenant
 schedules a task, it should always run, and should not unload when the
 tenant is unloaded. And when starting the server also, all the tasks should
 continue.


 But now we have a major problem if we have say 100,001 tenants. We will
 create this for all tenants unnecessarily. With the next release, we have
 tenant partitions defined at the LB level, which relies on the worker nodes
 to lazy load the tenants. There is no tenant partitioning concept at the
 worker node level. So, even though cluster as-0-100 loads tenants 0-100,
 the task thing will load all 100,001! We need to find a solution to this
 issue.


 OK, so this has actually turned into a tenant partitioning problem. First
 of all, when you say initializing a TaskManager, it just means, creating an
 object to represent a tasks for a specific tenant and a connection to a
 centrally managed Group object in ZooKeeper. If the tasks are not
 scheduled, it will simply take a block of memory and just sit there. And it
 will not load the tenants, I'm simply retrieving the total tenant id list
 and only loading the tenant aware task managers, it should not load other
 services and all. And also, the actual tasks will not be scheduled in a
 single server, they will be distributed across the whole cluster.

 So anyway, to support the tenant partitioning problem. I suggest the
 following. Lets say we have several clusters to represent different tenant
 partitions. For example, 3 clusters, to divide the tenants equally. When
 starting the server, we can set a Java system property saying, the number
 of clusters used for tenant partitioning and the partitioning cluster the
 current server will belong to. So for example -Dtenant.partition.count=3
 -Dmy.tenant.partition=2 (suggest suitable names). So with these information
 at hand, when starting the server, we can start only the tasks suppose to
 be scheduled in this server (take tenant_id % tenant.partition.count and
 match it to my.tenant.partition), and also when a new tenant is joining, we
 can do the same. Hopefully, this type of a method can be used for other
 type of similar services too. I can implement this in ntask now, if it is
 an acceptable solution.

 Cheers,
 Anjana.


 Cheers,
 Anjana.



 thanks,
 dimuthu



 --
 Dimuthu Leelarathne
 Technical Lead

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

 Lean . Enterprise . Middleware




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

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




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

 *
 *
 *Lean . Enterprise . Middleware*




 --
 *Anjana Fernando*
 Associate Technical Lead
 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*
*
*
*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Initializing TaskManagers for all tenants at serer startup

2012-05-22 Thread Anjana Fernando
Hi,

On Tue, May 22, 2012 at 3:02 PM, Afkham Azeez az...@wso2.com wrote:

 One other thing we noticed during profiling sometime back was getting the
 entire tenant list  iterating over it was very time consuming since
 certain UM APIs were being called, which go up to the DB level when
 retrieving tenant info. So, this will increase the startup time.


Well, the retrieving the tenant list is a one time thing for server
startup, which is done using
getRealmService().getTenantManager().getAllTenants(), and iterating over
it means, simply calling Tenant.getId() on each object. How slow are we
talking about here .. several seconds? .. if so, this should be somehow
optimized in the UM API level. Because, as I see, retrieving the list of
all tenant ids is a required action.

Cheers,
Anjana.




 On Tue, May 22, 2012 at 2:59 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Azeez,

 On Tue, May 22, 2012 at 2:27 PM, Afkham Azeez az...@wso2.com wrote:



 On Tue, May 22, 2012 at 2:22 PM, Anjana Fernando anj...@wso2.comwrote:

 Hi Dimuthu,

 On Tue, May 22, 2012 at 2:15 PM, Dimuthu Leelarathne dimut...@wso2.com
  wrote:

 Hi,

 Currently org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl is
 initializing task managers for all tenants at startup. This is against our
 tenant lazy loading concepts.

 Please move tenant ntask initialization to a
 Axis2ConfigurationContextObserver. This will be called when
 TenanConfiguraitonContext is loaded.


 As I remember, this was already brought up by Azeez earlier. The
 rationale is, a scheduled task is not a service. It is not something that
 is activated on-demand by a user in a specific tenant. But is suppose to
 work in the scheduled manner continuously. So when a user in a tenant
 schedules a task, it should always run, and should not unload when the
 tenant is unloaded. And when starting the server also, all the tasks should
 continue.


 But now we have a major problem if we have say 100,001 tenants. We will
 create this for all tenants unnecessarily. With the next release, we have
 tenant partitions defined at the LB level, which relies on the worker nodes
 to lazy load the tenants. There is no tenant partitioning concept at the
 worker node level. So, even though cluster as-0-100 loads tenants 0-100,
 the task thing will load all 100,001! We need to find a solution to this
 issue.


 OK, so this has actually turned into a tenant partitioning problem. First
 of all, when you say initializing a TaskManager, it just means, creating an
 object to represent a tasks for a specific tenant and a connection to a
 centrally managed Group object in ZooKeeper. If the tasks are not
 scheduled, it will simply take a block of memory and just sit there. And it
 will not load the tenants, I'm simply retrieving the total tenant id list
 and only loading the tenant aware task managers, it should not load other
 services and all. And also, the actual tasks will not be scheduled in a
 single server, they will be distributed across the whole cluster.

 So anyway, to support the tenant partitioning problem. I suggest the
 following. Lets say we have several clusters to represent different tenant
 partitions. For example, 3 clusters, to divide the tenants equally. When
 starting the server, we can set a Java system property saying, the number
 of clusters used for tenant partitioning and the partitioning cluster the
 current server will belong to. So for example -Dtenant.partition.count=3
 -Dmy.tenant.partition=2 (suggest suitable names). So with these information
 at hand, when starting the server, we can start only the tasks suppose to
 be scheduled in this server (take tenant_id % tenant.partition.count and
 match it to my.tenant.partition), and also when a new tenant is joining, we
 can do the same. Hopefully, this type of a method can be used for other
 type of similar services too. I can implement this in ntask now, if it is
 an acceptable solution.

 Cheers,
 Anjana.


 Cheers,
 Anjana.



 thanks,
 dimuthu



 --
 Dimuthu Leelarathne
 Technical Lead

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

 Lean . Enterprise . Middleware




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

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




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

 *
 *
 *Lean . Enterprise . Middleware*




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




 --
 *Afkham Azeez*
 Director of 

[Dev] Adding H2 as dependency

2012-05-22 Thread Dinusha Senanayaka
Hi All,

Currently we having  orbit bundle, h2-database-engine which uses
h2-1.2.140.jar directly from maven repository and create a OSGi bundle
using it. But we need to modify the H2 code to fix the Stratos issue [1].

The issue was,  Last user login details (except password) is shown in H2 db
console, to other tenants as well.  But this is how H2 console has designed
to work and it's not a issue in H2 console. It sorted the last recently
used connections in a configuration file called .h2.server.properties.
Other than this file , HashMap has used to hold the recently accessed
connection details. When H2 Console getting loaded it first look in this
connection HashMap, if its size is not zero then recent access connections
are loaded to Console from this Map, if its size is zero then it loads the
properties (driver, jdbcUrl, user) from aforementioned configuration
property file '.h2.server.properties'. Therefore this is an expected
behavior in DB Console where it is designed to be.

But we cannot allow this feature in SLive since it is not good in security
vice and it's kind of breaking the tenant awareness. So I modified the H2
code to remove this behaviour and going to add it as a new dependency and
refer it from h2-database-engine orbit bundle rather using h2-jar
directly from maven repository.

If there are any objections to adding H2 as new dependency , please let me
know..

[1]. https://wso2.org/jira/browse/STRATOS-2051

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


Re: [Dev] Initializing TaskManagers for all tenants at serer startup

2012-05-22 Thread Dimuthu Leelarathne
Hi Anjana,

Please see the stack trace below. The issue here is we are doing something
against the framework. When you are initializing all TaskManagers for all
tenants at startup it calls the tenant governance registry of the tenant
and loads all the realms in a loop. From UM side there is a DB call going
at getTenantUserRealm for each call because it is not initialized before.
This accounts for 2001 db calls from UM side only if we have 2000 tenants.

It could be even more if we account the registry initialization. What I am
saying is, can we only initialize the TaskManagers for only the tenants
with Tasks or a better design?


at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at
org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:184)
at
org.wso2.carbon.user.core.common.DefaultRealm.initializeObjects(DefaultRealm.java:147)
at
org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:113)
at
org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:252)
at
org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:183)
at
org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:262)
at
org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:222)
at
org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:201)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getUserRegistry(EmbeddedRegistryService.java:426)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getSystemRegistry(EmbeddedRegistryService.java:291)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getGovernanceSystemRegistry(EmbeddedRegistryService.java:516)
at
org.wso2.carbon.ntask.core.TaskUtils.getGovRegistryForTenant(TaskUtils.java:37)
at
org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.getTaskTypesForTenant(TaskServiceImpl.java:104)
at
org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.initTaskManagersForTenant(TaskServiceImpl.java:85)
at
org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.initTaskManagers(TaskServiceImpl.java:77)
at
org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.init(TaskServiceImpl.java:63)
at
org.wso2.carbon.ntask.core.internal.TasksDSComponent.activate(TasksDSComponent.java:68)

thanks,
dimuthu


On Tue, May 22, 2012 at 3:20 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Dimuthu,

 On Tue, May 22, 2012 at 3:12 PM, Dimuthu Leelarathne dimut...@wso2.comwrote:

 Hi Anjana,


 Say there are 2000 tenants.

 This is just one call, but after that you load all 2000 user realms in a
 iterator for each tenant. Meaning another 2000 db calls to check for custom
 realms. Now it is 2001 db calls.


 I'm sorry, I didn't understand what custom realms are. So the code I use
 is like the following,

 Tenant[] tenants = TasksDSComponent.getRealmService().getTenantManager().
 getAllTenants();
 for (Tenant tenant : tenants) {
   tids.add(tenant.getId());
 }

 So you mean, when I do tenant.getId() also, there is another database
 call going out? ..

 Cheers,
 Anjana.


 thanks,
 dimuthu



 Cheers,
 Anjana.




 On Tue, May 22, 2012 at 2:59 PM, Anjana Fernando anj...@wso2.comwrote:

 Hi Azeez,

 On Tue, May 22, 2012 at 2:27 PM, Afkham Azeez az...@wso2.com wrote:



 On Tue, May 22, 2012 at 2:22 PM, Anjana Fernando anj...@wso2.comwrote:

 Hi Dimuthu,

 On Tue, May 22, 2012 at 2:15 PM, Dimuthu Leelarathne 
 dimut...@wso2.com wrote:

 Hi,

 Currently org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl
 is initializing task managers for all tenants at startup. This is 
 against
 our tenant lazy loading concepts.

 Please move tenant ntask initialization to a
 Axis2ConfigurationContextObserver. This will be called when
 TenanConfiguraitonContext is loaded.


 As I remember, this was already brought up by Azeez earlier. The
 rationale is, a scheduled task is not a service. It is not something 
 that
 is activated on-demand by a user in a specific tenant. But is suppose to
 work in the scheduled manner continuously. So when a user in a tenant
 schedules a task, it should always run, and should not unload when the
 tenant is unloaded. And when starting the server also, all the tasks 
 should
 continue.


 But now we have a major problem if we have say 100,001 tenants. We
 will create this for all tenants unnecessarily. With the next release, we
 have tenant partitions defined at the LB level, which relies on the 
 worker
 nodes to lazy load the tenants. There is no tenant partitioning concept 
 at
 the worker node level. So, even though cluster as-0-100 loads tenants
 0-100, the task thing will load all 100,001! We need to find a solution 
 to
 this issue.


 OK, so this has actually turned into a tenant partitioning problem.
 First of all, when you say initializing a TaskManager, 

Re: [Dev] Initializing TaskManagers for all tenants at serer startup

2012-05-22 Thread Anjana Fernando
Hi Dimuthu,

So, you were actually referring to the part where we list the tasks for a
specific tenant. Not only the part of retrieving the tenant id list.
TaskManager is there to listen for any new tasks getting created in the
cluster, so it should be their up and running from the beginning .. also
TaskManager is the one who checks if a specific tenant has any tasks to
schedule at first. That is, to check if a specific tenant has tasks, we
need to list out the tenant ids and we have to contact its registry to find
if there are any tasks! (the task definitions are saved in the registry) ..
So this operation is inevitable .. and that is why I proposed a tenant
partitioning approach in the previous reply.

Cheers,
Anjana.

On Tue, May 22, 2012 at 3:28 PM, Dimuthu Leelarathne dimut...@wso2.comwrote:

 Hi Anjana,

 Please see the stack trace below. The issue here is we are doing something
 against the framework. When you are initializing all TaskManagers for all
 tenants at startup it calls the tenant governance registry of the tenant
 and loads all the realms in a loop. From UM side there is a DB call going
 at getTenantUserRealm for each call because it is not initialized before.
 This accounts for 2001 db calls from UM side only if we have 2000 tenants.

 It could be even more if we account the registry initialization. What I am
 saying is, can we only initialize the TaskManagers for only the tenants
 with Tasks or a better design?


 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:169)
 at
 org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:184)
 at
 org.wso2.carbon.user.core.common.DefaultRealm.initializeObjects(DefaultRealm.java:147)
 at
 org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:113)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:252)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:183)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:262)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:222)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:201)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getUserRegistry(EmbeddedRegistryService.java:426)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getSystemRegistry(EmbeddedRegistryService.java:291)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getGovernanceSystemRegistry(EmbeddedRegistryService.java:516)
 at
 org.wso2.carbon.ntask.core.TaskUtils.getGovRegistryForTenant(TaskUtils.java:37)
 at
 org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.getTaskTypesForTenant(TaskServiceImpl.java:104)
 at
 org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.initTaskManagersForTenant(TaskServiceImpl.java:85)
 at
 org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.initTaskManagers(TaskServiceImpl.java:77)
 at
 org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.init(TaskServiceImpl.java:63)
 at
 org.wso2.carbon.ntask.core.internal.TasksDSComponent.activate(TasksDSComponent.java:68)

 thanks,
 dimuthu



 On Tue, May 22, 2012 at 3:20 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Dimuthu,

 On Tue, May 22, 2012 at 3:12 PM, Dimuthu Leelarathne 
 dimut...@wso2.comwrote:

 Hi Anjana,


 Say there are 2000 tenants.

 This is just one call, but after that you load all 2000 user realms in a
 iterator for each tenant. Meaning another 2000 db calls to check for custom
 realms. Now it is 2001 db calls.


 I'm sorry, I didn't understand what custom realms are. So the code I
 use is like the following,

 Tenant[] tenants = TasksDSComponent.getRealmService().getTenantManager().
 getAllTenants();
 for (Tenant tenant : tenants) {
   tids.add(tenant.getId());
 }

 So you mean, when I do tenant.getId() also, there is another database
 call going out? ..

 Cheers,
 Anjana.


 thanks,
 dimuthu



 Cheers,
 Anjana.




 On Tue, May 22, 2012 at 2:59 PM, Anjana Fernando anj...@wso2.comwrote:

 Hi Azeez,

 On Tue, May 22, 2012 at 2:27 PM, Afkham Azeez az...@wso2.com wrote:



 On Tue, May 22, 2012 at 2:22 PM, Anjana Fernando anj...@wso2.comwrote:

 Hi Dimuthu,

 On Tue, May 22, 2012 at 2:15 PM, Dimuthu Leelarathne 
 dimut...@wso2.com wrote:

 Hi,

 Currently org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl
 is initializing task managers for all tenants at startup. This is 
 against
 our tenant lazy loading concepts.

 Please move tenant ntask initialization to a
 Axis2ConfigurationContextObserver. This will be called when
 TenanConfiguraitonContext is loaded.


 As I remember, this was already brought up by Azeez earlier. The
 rationale is, a scheduled task is not a service. It is not something 
 that
 is activated on-demand by a user 

Re: [Dev] Merging Jaggery with AS

2012-05-22 Thread Nuwan Bandara
Yes its straight forward, in fact the API product and appfactory doing
it successfully right now. we need to add Jaggery and MS features to AS.
however when including jaggery and MS both there mite be conflicts. lets
try this and see.

On Tue, May 22, 2012 at 11:06 AM, Isuru Suriarachchi is...@wso2.com wrote:

 Hi all,

 Are we going to merge Jaggery with AS for this release?

 If so, Nuwan are there any gray areas in doing this? Should be straight
 forward, isn't it?

 ~Isuru

 --
 Isuru Suriarachchi
 Technical Lead
 WSO2 Inc. http://wso2.com
 email : is...@wso2.com
 blog : http://isurues.wordpress.com/

 lean . enterprise . middleware




-- 
*Thanks  Regards,

Nuwan Bandara
Associate Technical Lead  Member, MC, Development Technologies
WSO2 Inc. - lean . enterprise . middleware |  http://wso2.com
blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763 9629
*
http://www.nuwanbando.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Bamboo-Build] WSO2 Carbon Kernel #260 has FAILED (1 tests failed, no failures were new). Change made by lakmali.

2012-05-22 Thread Bamboo

---
WSO2 Carbon  Kernel  #260 failed.
---
Code has been updated by lakmali.
1/2787 tests failed, no failures were new.

http://wso2.org/bamboo/browse/WSO2CARBON-CARBONCOREKERNELBUILD-260/


--
Failing Jobs
--
  - Default Job (Default Stage): 1 of 2787 tests failed.


--
Code Changes
--
lakmali (127859):

Changing type of environment field to object array and refactoring 
getHashtableEnv() method name in JNDIConfig



--
Tests
--
Existing Test Failures (1)
   - CarbonTestServerManager: Start server

--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to extract service response XML values inside a code written in JavaScript ?

2012-05-22 Thread Nuwan Bandara
Hi Sajith,

It is natural, that you expect DOM operations in responseXML since it is
similar to XMLHTTPRequests's reponseXML, however in Mashup Server we dont
return a Document in responseXML. there were plans to do that, but since it
was not in the priority list, and also since E4X is far better that
DOM manipulation, responseE4X is used in all cases.

So you need to to use responseE4X and retrieve ur XML via E4X functions.
that would be easier than DOM.

On Tue, May 22, 2012 at 11:59 AM, Tharindu Mathew thari...@wso2.com wrote:

 Yes, you are correct.


 On Tue, May 22, 2012 at 11:49 AM, Sajith Kariyawasam saj...@wso2.comwrote:


 On Tue, May 22, 2012 at 11:09 AM, Tharindu Mathew thari...@wso2.comwrote:



 On Tue, May 22, 2012 at 11:04 AM, Sajith Kariyawasam saj...@wso2.comwrote:

 Hi Tharindu/Kasun,

 Thanks for the responses,

 On Mon, May 21, 2012 at 11:34 PM, Tharindu Mathew thari...@wso2.comwrote:

 getElementByTagsName is a function of the document object, which is
 present in the browser. So, it only works in the browser.


 I'm bit confused here, I was trying to get the responseXML from
 WSRequest object, as an XML object, and then process it using 
 getElementByTagsName
 function. so as far as the responseXML is an xml object shouldn't I be able
 to use getElementByTagsName irrespective of a browser ?

 No not necessarily. The problem here is the function you are mentioning
 is not present in the response object. It is not a function in the base
 object class. It is specific to the document object.

 You are using it because you are familiar with using it with the
 document object. The document object is given by the browser for dom
 manipulation. So, that is why it only works in the browser.


 No, not with the document object, but with the XMLHttpRequest object . 
 responseXML
 is a property of XMLHttpRequest object.

 so, in this case  WSRequest is the object similar to XMLHttpRequest
 object, and it does have a responseXML property..

 well i just figured out according to [1], as of now responseXML returns
 the same response as responseE4X, but in future releases it will return a
 fixed DOM.

 so when the time it returns a DOM, it should be able to get element
 values using getElementByTagsName or a similar way .. isn't it?

  [1] http://wso2.org/project/mashup/2.0.2/docs/wsrequesthostobject.html




 On Mon, May 21, 2012 at 11:13 PM, Kasun Indrasiri ka...@wso2.comwrote:

 This may help..
 https://developer.mozilla.org/En/E4X/Processing_XML_with_E4X


 yes, this link was helpful..
 I tried the following as mentioned in the link ..

 var response = service.responseE4X..wx::GetQuoteResult.text();
 var stock = new XML(response.toXMLString());
 print(Symbol :  + stock.Stock.Symbol);

 It works.. thanks

 On Mon, May 21, 2012 at 11:05 PM, Sajith Kariyawasam 
 saj...@wso2.comwrote:

 Hi,

 I was trying to invoke a web service inside a javascript file, and
 deploy it in Mashup Server.

 SOAP response of the web service is defined as follows,



 ?xml version=1.0 encoding=utf-8?
 soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
 xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
   soap:Body
 GetQuoteResponse xmlns=http://www.webserviceX.NET/;
   GetQuoteResultstring/GetQuoteResult
 /GetQuoteResponse
   /soap:Body
 /soap:Envelope


 A sample response value is as follows ,

 string xmlns=http://www.webserviceX.NET/;
 StockQuotesStockSymbolGOOG/SymbolLast613.43/LastDate5/21/2012/DateTime1:00pm/TimeChange+13.03/ChangeOpen601.00/OpenHigh615.694/HighLow600.00/LowVolume2006668/VolumeMktCap200.0B/MktCapPreviousClose600.40/PreviousClosePercentageChange+2.17%/PercentageChangeAnnRange473.02
 - 670.25/AnnRangeEarns32.998/EarnsP-E18.20/P-ENameGoogle
 Inc./Name/Stock/StockQuotes
 /string


 My requirement is to extract couple of elements from the response
 (say, Symbol and Change) and print the values.


 In my .js file I tried a code like this,

 *var service = new WSRequest();*
 *...*
 *...*
 *
 var response = service.responseXML;
 *
 *
 var stock = response.getElementsByTagName('Stock');


 *

 But I'm getting an exception saying ***ERROR -  TypeError: Cannot
 find function getElementsByTagName in object ... *

 so, $subject please?


 Thanks,
 --

 *Sajith Kariyawasam*
 *Senior Software Engineer; WSO2, Inc.; http://wso2.com*


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




 --
 Kasun Indrasiri
 Associate Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

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

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




 --
 Regards,

 Tharindu

 blog: http://mackiemathew.com/
 M: +9459908




 --
 Regards,
 *
 *
 *Sajith Kariyawasam*
 *Senior Software Engineer; WSO2, Inc.; 

Re: [Dev] Initializing TaskManagers for all tenants at serer startup

2012-05-22 Thread Anjana Fernando
Hi,

After having a chat with Dimuthu, she suggested that we keep a flag in
super tenant's registry mentioning if a specific tenant is having any
tasks. So we can check this at the startup and only load the registries
which has any. So there won't be any overhead of loading all the tenant
registries. So I will go ahead with this approach and implement it. And
also, shall I do the tenant partitioning approach I mentioned earlier? ..

Cheers,
Anjana.

On Tue, May 22, 2012 at 3:40 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Dimuthu,

 So, you were actually referring to the part where we list the tasks for a
 specific tenant. Not only the part of retrieving the tenant id list.
 TaskManager is there to listen for any new tasks getting created in the
 cluster, so it should be their up and running from the beginning .. also
 TaskManager is the one who checks if a specific tenant has any tasks to
 schedule at first. That is, to check if a specific tenant has tasks, we
 need to list out the tenant ids and we have to contact its registry to find
 if there are any tasks! (the task definitions are saved in the registry) ..
 So this operation is inevitable .. and that is why I proposed a tenant
 partitioning approach in the previous reply.

 Cheers,
 Anjana.


 On Tue, May 22, 2012 at 3:28 PM, Dimuthu Leelarathne dimut...@wso2.comwrote:

 Hi Anjana,

 Please see the stack trace below. The issue here is we are doing
 something against the framework. When you are initializing all TaskManagers
 for all tenants at startup it calls the tenant governance registry of the
 tenant and loads all the realms in a loop. From UM side there is a DB call
 going at getTenantUserRealm for each call because it is not initialized
 before. This accounts for 2001 db calls from UM side only if we have 2000
 tenants.

 It could be even more if we account the registry initialization. What I
 am saying is, can we only initialize the TaskManagers for only the tenants
 with Tasks or a better design?


 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:169)
 at
 org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:184)
 at
 org.wso2.carbon.user.core.common.DefaultRealm.initializeObjects(DefaultRealm.java:147)
 at
 org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:113)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:252)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:183)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:262)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:222)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:201)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getUserRegistry(EmbeddedRegistryService.java:426)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getSystemRegistry(EmbeddedRegistryService.java:291)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getGovernanceSystemRegistry(EmbeddedRegistryService.java:516)
 at
 org.wso2.carbon.ntask.core.TaskUtils.getGovRegistryForTenant(TaskUtils.java:37)
 at
 org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.getTaskTypesForTenant(TaskServiceImpl.java:104)
 at
 org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.initTaskManagersForTenant(TaskServiceImpl.java:85)
 at
 org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.initTaskManagers(TaskServiceImpl.java:77)
 at
 org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.init(TaskServiceImpl.java:63)
 at
 org.wso2.carbon.ntask.core.internal.TasksDSComponent.activate(TasksDSComponent.java:68)

 thanks,
 dimuthu



 On Tue, May 22, 2012 at 3:20 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Dimuthu,

 On Tue, May 22, 2012 at 3:12 PM, Dimuthu Leelarathne 
 dimut...@wso2.comwrote:

 Hi Anjana,


 Say there are 2000 tenants.

 This is just one call, but after that you load all 2000 user realms in
 a iterator for each tenant. Meaning another 2000 db calls to check for
 custom realms. Now it is 2001 db calls.


 I'm sorry, I didn't understand what custom realms are. So the code I
 use is like the following,

 Tenant[] tenants = TasksDSComponent.getRealmService().getTenantManager().
 getAllTenants();
 for (Tenant tenant : tenants) {
   tids.add(tenant.getId());
 }

 So you mean, when I do tenant.getId() also, there is another database
 call going out? ..

 Cheers,
 Anjana.


 thanks,
 dimuthu



 Cheers,
 Anjana.




 On Tue, May 22, 2012 at 2:59 PM, Anjana Fernando anj...@wso2.comwrote:

 Hi Azeez,

 On Tue, May 22, 2012 at 2:27 PM, Afkham Azeez az...@wso2.comwrote:



 On Tue, May 22, 2012 at 2:22 PM, Anjana Fernando 
 anj...@wso2.comwrote:

 Hi Dimuthu,

 On Tue, May 22, 2012 at 2:15 PM, Dimuthu 

Re: [Dev] How to extract service response XML values inside a code written in JavaScript ?

2012-05-22 Thread Sajith Kariyawasam
Thanks Nuwan..

On Tue, May 22, 2012 at 4:34 PM, Nuwan Bandara nu...@wso2.com wrote:

 Hi Sajith,

 It is natural, that you expect DOM operations in responseXML since it is
 similar to XMLHTTPRequests's reponseXML, however in Mashup Server we dont
 return a Document in responseXML. there were plans to do that, but since it
 was not in the priority list, and also since E4X is far better that
 DOM manipulation, responseE4X is used in all cases.

 So you need to to use responseE4X and retrieve ur XML via E4X functions.
 that would be easier than DOM.


 On Tue, May 22, 2012 at 11:59 AM, Tharindu Mathew thari...@wso2.comwrote:

 Yes, you are correct.


 On Tue, May 22, 2012 at 11:49 AM, Sajith Kariyawasam saj...@wso2.comwrote:


 On Tue, May 22, 2012 at 11:09 AM, Tharindu Mathew thari...@wso2.comwrote:



 On Tue, May 22, 2012 at 11:04 AM, Sajith Kariyawasam 
 saj...@wso2.comwrote:

 Hi Tharindu/Kasun,

 Thanks for the responses,

 On Mon, May 21, 2012 at 11:34 PM, Tharindu Mathew 
 thari...@wso2.comwrote:

 getElementByTagsName is a function of the document object, which is
 present in the browser. So, it only works in the browser.


 I'm bit confused here, I was trying to get the responseXML from
 WSRequest object, as an XML object, and then process it using 
 getElementByTagsName
 function. so as far as the responseXML is an xml object shouldn't I be 
 able
 to use getElementByTagsName irrespective of a browser ?

 No not necessarily. The problem here is the function you are mentioning
 is not present in the response object. It is not a function in the base
 object class. It is specific to the document object.

 You are using it because you are familiar with using it with the
 document object. The document object is given by the browser for dom
 manipulation. So, that is why it only works in the browser.


 No, not with the document object, but with the XMLHttpRequest object . 
 responseXML
 is a property of XMLHttpRequest object.

 so, in this case  WSRequest is the object similar to XMLHttpRequest
 object, and it does have a responseXML property..

 well i just figured out according to [1], as of now responseXML returns
 the same response as responseE4X, but in future releases it will return a
 fixed DOM.

 so when the time it returns a DOM, it should be able to get element
 values using getElementByTagsName or a similar way .. isn't it?

  [1] http://wso2.org/project/mashup/2.0.2/docs/wsrequesthostobject.html




 On Mon, May 21, 2012 at 11:13 PM, Kasun Indrasiri ka...@wso2.comwrote:

 This may help..
 https://developer.mozilla.org/En/E4X/Processing_XML_with_E4X


 yes, this link was helpful..
 I tried the following as mentioned in the link ..

 var response = service.responseE4X..wx::GetQuoteResult.text();
 var stock = new XML(response.toXMLString());
 print(Symbol :  + stock.Stock.Symbol);

 It works.. thanks

 On Mon, May 21, 2012 at 11:05 PM, Sajith Kariyawasam 
 saj...@wso2.comwrote:

 Hi,

 I was trying to invoke a web service inside a javascript file, and
 deploy it in Mashup Server.

 SOAP response of the web service is defined as follows,


 ?xml version=1.0 encoding=utf-8?
 soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
 xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
   soap:Body
 GetQuoteResponse xmlns=http://www.webserviceX.NET/;
   GetQuoteResultstring/GetQuoteResult
 /GetQuoteResponse
   /soap:Body
 /soap:Envelope


 A sample response value is as follows ,

 string xmlns=http://www.webserviceX.NET/;
 StockQuotesStockSymbolGOOG/SymbolLast613.43/LastDate5/21/2012/DateTime1:00pm/TimeChange+13.03/ChangeOpen601.00/OpenHigh615.694/HighLow600.00/LowVolume2006668/VolumeMktCap200.0B/MktCapPreviousClose600.40/PreviousClosePercentageChange+2.17%/PercentageChangeAnnRange473.02
 - 670.25/AnnRangeEarns32.998/EarnsP-E18.20/P-ENameGoogle
 Inc./Name/Stock/StockQuotes
 /string


 My requirement is to extract couple of elements from the response
 (say, Symbol and Change) and print the values.


 In my .js file I tried a code like this,

 *var service = new WSRequest();*
 *...*
 *...*
 *
 var response = service.responseXML;
 *
 *
 var stock = response.getElementsByTagName('Stock');


 *

 But I'm getting an exception saying ***ERROR -  TypeError: Cannot
 find function getElementsByTagName in object ... *

 so, $subject please?


 Thanks,
 --

 *Sajith Kariyawasam*
 *Senior Software Engineer; WSO2, Inc.; http://wso2.com*


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




 --
 Kasun Indrasiri
 Associate Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

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

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




 --
 Regards,

 Tharindu

 blog: http://mackiemathew.com/
 M: 

Re: [Dev] Add Datasource to DSS server getting null exception

2012-05-22 Thread Umut Kocasaraç
Thank you Dinuska,
Your suggestion has solved my problem.

Umut

On Tue, May 22, 2012 at 11:41 AM, Dinusha Senanayaka dinu...@wso2.comwrote:

 Hi Umut,

 This is a known issue in carbon 3.2.2 release. Yeah, you can uninstall it
 from UI. As you said you cannot uninstall only the data-source feature
 since data-services feature depends on it. So you need to uninstall  both
 data-service and data-source features.  Then install the data-service 3.2.3
 feature (This will add the data-source 3.2.3 feature as well since it
 depends on data-source feture).

 You can download the p2-repository that contains the data-service 3.2.3
 feature from [1].

 [1]. http://dist.wso2.org/downloads/carbon-3.2.3-p2/ds-3.2.3-feature/

 Regards,
 Dinusha.

 On Tue, May 22, 2012 at 12:16 PM, Umut Kocasaraç ukocasa...@gmail.comwrote:

 Hi,
 I am trying to create new datasource connection to my DB from DSS Stratos
 1.5.2 server. However when i try to create it i am getting Error looking
 up a data source : null  exception.

 When i googled it i found this link on wso2
 https://wso2.org/jira/browse/WSAS-834 .
 I have try to uninstall datasource feature from ui concole however
 stratos server ui can not uninstall the feature because it depend on
 another pluggins. Is there any way to uninstall datasource 3.2.2 feature
 and  install datasource 3.2.3.

 Thanks,

 Umut

 ___
 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 H2 as dependency

2012-05-22 Thread Dinusha Senanayaka
While doing this, we have to move the h2-database-engine orbit bundle to
kernel since it going to use dependency. So earlier it was available @ [1]
and now it will be @ [2].

[1]. https://svn.wso2.org/repos/wso2/carbon/orbit/trunk/h2-database-engine
[2].https://svn.wso2.org/repos/wso2/carbon/kernel/trunk/dependencies/orbit/h2-database-enginehttps://svn.wso2.org/repos/wso2/carbon/kernel/trunk/dependencies/orbit/

Regards,
DInusha.

On Tue, May 22, 2012 at 3:11 PM, Dinusha Senanayaka dinu...@wso2.comwrote:


 Hi All,

 Currently we having  orbit bundle, h2-database-engine which uses
 h2-1.2.140.jar directly from maven repository and create a OSGi bundle
 using it. But we need to modify the H2 code to fix the Stratos issue [1].

 The issue was,  Last user login details (except password) is shown in H2
 db console, to other tenants as well.  But this is how H2 console has
 designed to work and it's not a issue in H2 console. It sorted the last
 recently used connections in a configuration file called
 .h2.server.properties. Other than this file , HashMap has used to hold the
 recently accessed connection details. When H2 Console getting loaded it
 first look in this connection HashMap, if its size is not zero then recent
 access connections are loaded to Console from this Map, if its size is zero
 then it loads the properties (driver, jdbcUrl, user) from aforementioned
 configuration property file '.h2.server.properties'. Therefore this is an
 expected behavior in DB Console where it is designed to be.

 But we cannot allow this feature in SLive since it is not good in security
 vice and it's kind of breaking the tenant awareness. So I modified the H2
 code to remove this behaviour and going to add it as a new dependency and
 refer it from h2-database-engine orbit bundle rather using h2-jar
 directly from maven repository.

 If there are any objections to adding H2 as new dependency , please let me
 know..

 [1]. https://wso2.org/jira/browse/STRATOS-2051

 Regards,
 Dinusha.

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


[Dev] [Bamboo-Build] WSO2 Carbon Kernel #261 has FAILED. Change made by amilaj, azeez and ramith.

2012-05-22 Thread Bamboo

---
WSO2 Carbon  Kernel  #261 failed.
---
Code has been updated by amilaj, azeez, ramith.
No failed tests found, a possible compilation error.

http://wso2.org/bamboo/browse/WSO2CARBON-CARBONCOREKERNELBUILD-261/


--
Failing Jobs
--
  - Default Job (Default Stage): No tests found.


--
Code Changes
--
amilaj (127866):

Adding authorization to JMX authenticator. Also adding audit logs to JMX 
authenticator

ramith (127908):

adding the property - MultiTenantRealmConfigBuilder

amilaj (127871):

Disabling JMX by default



--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Bamboo-Build] Bamboo test email

2012-05-22 Thread Bamboo
This is a test email generated by Bamboo.

If you receive this email, your mail server settings on Bamboo are correct.

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


[Dev] Integration test failures on Carbon core

2012-05-22 Thread Isuru Suriarachchi
I updated the entire trunk this morning and built from the scratch. Getting
the following test failure on carbon core and all other products. Any clue?

Results :

Failed tests:
  startServer(org.wso2.carbon.integration.tests.CarbonTestServerManager):
org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
java.lang.RuntimeException: Could not login to Carbon server within
6ms. portOffset=0

Tests run: 28, Failures: 1, Errors: 0, Skipped: 27

surefire report

---
Test set: TestSuite
---
Tests run: 28, Failures: 1, Errors: 0, Skipped: 27, Time elapsed: 69.405
sec  FAILURE!
startServer(org.wso2.carbon.integration.tests.CarbonTestServerManager)
 Time elapsed: 0 sec   FAILURE!
org.testng.internal.thread.ThreadExecutionException:
org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
java.lang.RuntimeException: Could not login to Carbon server within
6ms. portOffset=0
at
org.testng.internal.thread.FutureResultAdapter.get(FutureResultAdapter.java:25)
at
org.testng.internal.MethodInvocationHelper.invokeWithTimeoutWithNewExecutor(MethodInvocationHelper.java:242)
at
org.testng.internal.MethodInvocationHelper.invokeWithTimeout(MethodInvocationHelper.java:200)
at
org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:528)
at
org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
at
org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:277)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)



-- 
Isuru Suriarachchi
Senior Technical Lead
WSO2 Inc. http://wso2.com
email : is...@wso2.com
blog : http://isurues.wordpress.com/

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


Re: [Dev] Initializing TaskManagers for all tenants at serer startup

2012-05-22 Thread Tharindu Mathew
If one tenant engages a task which hogs a server, all other tenants tasks
would be affected and potentially the server can get unresponsive. The
tenant partitioning you suggest can still cause this issue, right?

On Tue, May 22, 2012 at 5:02 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi,

 After having a chat with Dimuthu, she suggested that we keep a flag in
 super tenant's registry mentioning if a specific tenant is having any
 tasks. So we can check this at the startup and only load the registries
 which has any. So there won't be any overhead of loading all the tenant
 registries. So I will go ahead with this approach and implement it. And
 also, shall I do the tenant partitioning approach I mentioned earlier? ..

 Cheers,
 Anjana.


 On Tue, May 22, 2012 at 3:40 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Dimuthu,

 So, you were actually referring to the part where we list the tasks for a
 specific tenant. Not only the part of retrieving the tenant id list.
 TaskManager is there to listen for any new tasks getting created in the
 cluster, so it should be their up and running from the beginning .. also
 TaskManager is the one who checks if a specific tenant has any tasks to
 schedule at first. That is, to check if a specific tenant has tasks, we
 need to list out the tenant ids and we have to contact its registry to find
 if there are any tasks! (the task definitions are saved in the registry) ..
 So this operation is inevitable .. and that is why I proposed a tenant
 partitioning approach in the previous reply.

 Cheers,
 Anjana.


 On Tue, May 22, 2012 at 3:28 PM, Dimuthu Leelarathne 
 dimut...@wso2.comwrote:

 Hi Anjana,

 Please see the stack trace below. The issue here is we are doing
 something against the framework. When you are initializing all TaskManagers
 for all tenants at startup it calls the tenant governance registry of the
 tenant and loads all the realms in a loop. From UM side there is a DB call
 going at getTenantUserRealm for each call because it is not initialized
 before. This accounts for 2001 db calls from UM side only if we have 2000
 tenants.

 It could be even more if we account the registry initialization. What I
 am saying is, can we only initialize the TaskManagers for only the tenants
 with Tasks or a better design?


 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:169)
 at
 org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:184)
 at
 org.wso2.carbon.user.core.common.DefaultRealm.initializeObjects(DefaultRealm.java:147)
 at
 org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:113)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:252)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:183)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:262)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:222)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:201)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getUserRegistry(EmbeddedRegistryService.java:426)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getSystemRegistry(EmbeddedRegistryService.java:291)
 at
 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getGovernanceSystemRegistry(EmbeddedRegistryService.java:516)
 at
 org.wso2.carbon.ntask.core.TaskUtils.getGovRegistryForTenant(TaskUtils.java:37)
 at
 org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.getTaskTypesForTenant(TaskServiceImpl.java:104)
 at
 org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.initTaskManagersForTenant(TaskServiceImpl.java:85)
 at
 org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.initTaskManagers(TaskServiceImpl.java:77)
 at
 org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.init(TaskServiceImpl.java:63)
 at
 org.wso2.carbon.ntask.core.internal.TasksDSComponent.activate(TasksDSComponent.java:68)

 thanks,
 dimuthu



 On Tue, May 22, 2012 at 3:20 PM, Anjana Fernando anj...@wso2.comwrote:

 Hi Dimuthu,

 On Tue, May 22, 2012 at 3:12 PM, Dimuthu Leelarathne dimut...@wso2.com
  wrote:

 Hi Anjana,


 Say there are 2000 tenants.

 This is just one call, but after that you load all 2000 user realms in
 a iterator for each tenant. Meaning another 2000 db calls to check for
 custom realms. Now it is 2001 db calls.


 I'm sorry, I didn't understand what custom realms are. So the code I
 use is like the following,

 Tenant[] tenants =
 TasksDSComponent.getRealmService().getTenantManager().
 getAllTenants();
 for (Tenant tenant : tenants) {
   tids.add(tenant.getId());
 }

 So you mean, when I do tenant.getId() also, there is another database
 call going out? ..

 Cheers,
 Anjana.


 thanks,
 dimuthu



 Cheers,
 

[Dev] (no subject)

2012-05-22 Thread Noel Marquez Batista
Hi all.

I’m trying to consume an axis2 web service. In the AS, when I go to the trying, 
it gives me the error

soapenv:Fault xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;

   faultcodesoapenv:Server/faultcode

   faultstringorg.apache.xmlbeans.impl.values.XmlComplexContentImpl cannot be 
cast to akademosws.ObtenerEstudianteDadoIdExpedienteDocument/faultstring

   detail/

/soapenv:Fault

 

I develop a Java client to test the service, and give me the same error:

org.apache.axis2.AxisFault: 
org.apache.xmlbeans.impl.values.XmlComplexContentImpl cannot be cast to 
akademosws.ObtenerEstudianteDadoIdExpedienteDocument

at 
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:508)

at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)

at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)

at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)

at 
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)

at 
org.example.www.akademosservice.AkademosServiceStub.obtenerEstudianteDadoIdExpedienteWS(AkademosServiceStub.java:860)

at org.example.www.akademosservice.cliente.main(cliente.java:24)



-- 
The only easy day was yesterday.

10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS 
INFORMATICAS...
CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION

http://www.uci.cu
http://www.facebook.com/universidad.uci
http://www.flickr.com/photos/universidad_uci
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error Warning while deploying Work Flow Sample that ships with Developer Studio 2.0 beta

2012-05-22 Thread Afkham Azeez
2012-05-22 21:29:17,154]  INFO - CarbonAuthenticationUtil - 'admin' logged
in at [2012-05-22 21:29:17,154+0530] from IP address 10.100.3.49
[2012-05-22 21:29:17,173]  INFO - AUDIT_LOG - 'admin' logged in at
[2012-05-22 21:29:17,154+0530] from IP address 10.100.3.49
[2012-05-22 21:29:29,201]  INFO - ApplicationManager - Deploying Carbon
Application : test-bpel2.car...
[2012-05-22 21:29:29,253]  INFO - ApplicationManager - Successfully
Deployed Carbon Application : test-bpel2 {super-tenant}
[2012-05-22 21:29:44,258]  INFO - TenantProcessStoreImpl - Deploying BPEL
archive:
/Users/azeez/projects/wso2/org/carbon/platform/trunk/products/bps/modules/distribution/product/target/wso2bps-3.0.0-SNAPSHOT/repository/deployment/server/bpel/HelloWorld-1.0.0.zip
[2012-05-22 21:29:44,325]  INFO - TenantProcessStoreImpl - Starting
deployment of processes from directory
/Users/azeez/projects/wso2/org/carbon/platform/trunk/products/bps/modules/distribution/product/target/wso2bps-3.0.0-SNAPSHOT/repository/bpel/0/HelloWorld-1.0.0-1
*[2012-05-22 21:29:44,385] ERROR - BpelObjectFactory$BOMSAXErrorHandler -
null:file:///Users/azeez/projects/wso2/org/carbon/platform/trunk/products/bps/modules/distribution/product/target/wso2bps-3.0.0-SNAPSHOT/repository/bpel/0/HelloWorld-1.0.0-1/HelloWorld.bpel:59:30:cvc-complex-type.3.2.2:
Attribute 'insert' is not allowed to appear in element 'copy'.*
*[2012-05-22 21:29:44,386]  WARN - BpelObjectFactory - Validation errors
during parsing, continuing due to
-Dorg.apache.ode.compiler.failOnValidationErrors=false switch*
[2012-05-22 21:29:44,387]  INFO - BpelC - info: [CompilingProcess]
Compiling BPEL process.
[2012-05-22 21:29:45,446]  INFO - DeploymentInterceptor - Deploying Axis2
service: HelloService11 {super-tenant}
[2012-05-22 21:29:45,544]  INFO - BpelServerImpl - Registered process {
http://ode/bpel/unit-test}HelloWorldtest111-1.


Is this a known issue?
-- 
*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*
*
*
*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] NPE in ServicePersistenceManager

2012-05-22 Thread Rajika Kumarasiri
This is not there anymore.

Rajika

On Fri, May 18, 2012 at 9:35 AM, Rajika Kumarasiri raj...@wso2.com wrote:

 I will try with a up to date kernel and let you know.

 Rajika


 On Thu, May 17, 2012 at 5:24 PM, Kasun Gajasinghe kas...@wso2.com wrote:


 Hi Azeez, and Rajika,

 I'm waiting for a little context. This works fine in C4 beta release'
 AppServer pack. Further, there was some fixes done as suggested by FindBug
 after the beta pack. So, this may be fixed now.

 Rajika, if you are in beta release, and can re-produce the issue, please
 try with the latest trunk kernel/core/org.wso2.carbon.core package. I can
 give you the package if you got trouble building the kernel.

 Cheers,
 --KasunG


 On Thu, May 17, 2012 at 4:59 PM, Afkham Azeez az...@wso2.com wrote:

 This is a bug. Kasun please fix it.

 On Thu, May 17, 2012 at 3:19 PM, Rajika Kumarasiri raj...@wso2.comwrote:

 Caused by: java.lang.Exception: Error while removing exposed transport
 : csgpolling
  at
 org.wso2.carbon.transport.mgt.TransportAdmin.handleException(TransportAdmin.java:369)
  at
 org.wso2.carbon.transport.mgt.TransportAdmin.removeExposedTransports(TransportAdmin.java:358)
 at
 org.wso2.carbon.cloud.csg.agent.service.CSGAgentAdminService.unPublishService(CSGAgentAdminService.java:156)
  ... 37 more
 Caused by: org.wso2.carbon.core.persistence.PersistenceException: Error
 while removing exposed transport : csgpolling
 at
 org.wso2.carbon.core.persistence.AbstractPersistenceManager.handleExceptionWithRollback(AbstractPersistenceManager.java:571)
  at
 org.wso2.carbon.core.persistence.ServicePersistenceManager.removeExposedTransports(ServicePersistenceManager.java:1029)
 at
 org.wso2.carbon.transport.mgt.TransportAdmin.removeExposedTransports(TransportAdmin.java:351)
  ... 38 more
 Caused by: java.lang.NullPointerException
 at
 org.wso2.carbon.core.persistence.ServicePersistenceManager.removeExposedTransports(ServicePersistenceManager.java:975

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




 --
 *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*
 *
 *
 *Lean . Enterprise . Middleware*




 --
 *Kasun Gajasinghe*
 Software Engineer;
 Development Technologies Team, WSO2 Inc.; http://wso2.com ,
 *email: **kasung AT spamfree wso2.com** cell: **+94 (77) 678-0813*
 *linked-in: *http://lk.linkedin.com/in/gajasinghe*
 *
  *blog: **http://blog.kasunbg.org* http://blog.kasunbg.org*
 twitter: **http://twitter.com/kasunbg* http://twitter.com/kasunbg*
 *



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


[Dev] DEveloper Studio Workflow Sample contains ASELA's name

2012-05-22 Thread Afkham Azeez
  assign name=assign1

 copy

from variable=myVar part=TestPart/

to variable=tmpVar/

 /copy

 copy insert=last

 fromconcat('*ASELA*  ',$tmpVar)/from

 to variable=myVar part=TestPart/

 /copy

  /assign


:)

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


Re: [Dev] Error Warning while deploying Work Flow Sample that ships with Developer Studio 2.0 beta

2012-05-22 Thread Kalpa Senanayake
Hi Azeez,

I have deployed hello world workflow on wso2bps-2.1.2
using developer studio beta and was able to reproduce this.It seems BPEL
operation went wrong and looking in to this now.

Thanks
Kalpa.


On Tue, May 22, 2012 at 9:31 PM, Afkham Azeez az...@wso2.com wrote:

 2012-05-22 21:29:17,154]  INFO - CarbonAuthenticationUtil - 'admin' logged
 in at [2012-05-22 21:29:17,154+0530] from IP address 10.100.3.49
 [2012-05-22 21:29:17,173]  INFO - AUDIT_LOG - 'admin' logged in at
 [2012-05-22 21:29:17,154+0530] from IP address 10.100.3.49
 [2012-05-22 21:29:29,201]  INFO - ApplicationManager - Deploying Carbon
 Application : test-bpel2.car...
 [2012-05-22 21:29:29,253]  INFO - ApplicationManager - Successfully
 Deployed Carbon Application : test-bpel2 {super-tenant}
 [2012-05-22 21:29:44,258]  INFO - TenantProcessStoreImpl - Deploying BPEL
 archive:
 /Users/azeez/projects/wso2/org/carbon/platform/trunk/products/bps/modules/distribution/product/target/wso2bps-3.0.0-SNAPSHOT/repository/deployment/server/bpel/HelloWorld-1.0.0.zip
 [2012-05-22 21:29:44,325]  INFO - TenantProcessStoreImpl - Starting
 deployment of processes from directory
 /Users/azeez/projects/wso2/org/carbon/platform/trunk/products/bps/modules/distribution/product/target/wso2bps-3.0.0-SNAPSHOT/repository/bpel/0/HelloWorld-1.0.0-1
 *[2012-05-22 21:29:44,385] ERROR - BpelObjectFactory$BOMSAXErrorHandler -
 null:file:///Users/azeez/projects/wso2/org/carbon/platform/trunk/products/bps/modules/distribution/product/target/wso2bps-3.0.0-SNAPSHOT/repository/bpel/0/HelloWorld-1.0.0-1/HelloWorld.bpel:59:30:cvc-complex-type.3.2.2:
 Attribute 'insert' is not allowed to appear in element 'copy'.*
 *[2012-05-22 21:29:44,386]  WARN - BpelObjectFactory - Validation errors
 during parsing, continuing due to
 -Dorg.apache.ode.compiler.failOnValidationErrors=false switch*
 [2012-05-22 21:29:44,387]  INFO - BpelC - info: [CompilingProcess]
 Compiling BPEL process.
 [2012-05-22 21:29:45,446]  INFO - DeploymentInterceptor - Deploying Axis2
 service: HelloService11 {super-tenant}
 [2012-05-22 21:29:45,544]  INFO - BpelServerImpl - Registered process {
 http://ode/bpel/unit-test}HelloWorldtest111-1.


 Is this a known issue?
 --
 *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*
 *
 *
 *Lean . Enterprise . Middleware*


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




-- 
Kalpa Senanayake.
Software Engineer,

WSO2,Inc :(http://wso2.com/).
email : ka...@wso2.com
mobile : +94783864128
blog : (http://kalpads.wordpress.com/)

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


Re: [Dev] Error Warning while deploying Work Flow Sample that ships with Developer Studio 2.0 beta

2012-05-22 Thread Afkham Azeez
I thin this is an error in the BPEL

copy *insert*=last

 fromconcat('ASELA  ',$tmpVar)/from

 to variable=myVar part=TestPart/

 /copy

On Tue, May 22, 2012 at 9:52 PM, Kalpa Senanayake ka...@wso2.com wrote:

 Hi Azeez,

 I have deployed hello world workflow on wso2bps-2.1.2
 using developer studio beta and was able to reproduce this.It seems BPEL
 operation went wrong and looking in to this now.

 Thanks
 Kalpa.


 On Tue, May 22, 2012 at 9:31 PM, Afkham Azeez az...@wso2.com wrote:

 2012-05-22 21:29:17,154]  INFO - CarbonAuthenticationUtil - 'admin'
 logged in at [2012-05-22 21:29:17,154+0530] from IP address 10.100.3.49
 [2012-05-22 21:29:17,173]  INFO - AUDIT_LOG - 'admin' logged in at
 [2012-05-22 21:29:17,154+0530] from IP address 10.100.3.49
 [2012-05-22 21:29:29,201]  INFO - ApplicationManager - Deploying Carbon
 Application : test-bpel2.car...
 [2012-05-22 21:29:29,253]  INFO - ApplicationManager - Successfully
 Deployed Carbon Application : test-bpel2 {super-tenant}
 [2012-05-22 21:29:44,258]  INFO - TenantProcessStoreImpl - Deploying BPEL
 archive:
 /Users/azeez/projects/wso2/org/carbon/platform/trunk/products/bps/modules/distribution/product/target/wso2bps-3.0.0-SNAPSHOT/repository/deployment/server/bpel/HelloWorld-1.0.0.zip
 [2012-05-22 21:29:44,325]  INFO - TenantProcessStoreImpl - Starting
 deployment of processes from directory
 /Users/azeez/projects/wso2/org/carbon/platform/trunk/products/bps/modules/distribution/product/target/wso2bps-3.0.0-SNAPSHOT/repository/bpel/0/HelloWorld-1.0.0-1
 *[2012-05-22 21:29:44,385] ERROR - BpelObjectFactory$BOMSAXErrorHandler
 -
 null:file:///Users/azeez/projects/wso2/org/carbon/platform/trunk/products/bps/modules/distribution/product/target/wso2bps-3.0.0-SNAPSHOT/repository/bpel/0/HelloWorld-1.0.0-1/HelloWorld.bpel:59:30:cvc-complex-type.3.2.2:
 Attribute 'insert' is not allowed to appear in element 'copy'.*
 *[2012-05-22 21:29:44,386]  WARN - BpelObjectFactory - Validation errors
 during parsing, continuing due to
 -Dorg.apache.ode.compiler.failOnValidationErrors=false switch*
 [2012-05-22 21:29:44,387]  INFO - BpelC - info: [CompilingProcess]
 Compiling BPEL process.
 [2012-05-22 21:29:45,446]  INFO - DeploymentInterceptor - Deploying Axis2
 service: HelloService11 {super-tenant}
 [2012-05-22 21:29:45,544]  INFO - BpelServerImpl - Registered process {
 http://ode/bpel/unit-test}HelloWorldtest111-1.


 Is this a known issue?
 --
 *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*
 *
 *
 *Lean . Enterprise . Middleware*


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




 --
 Kalpa Senanayake.
 Software Engineer,

 WSO2,Inc :(http://wso2.com/).
 email : ka...@wso2.com
 mobile : +94783864128
 blog : (http://kalpads.wordpress.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*
*
*
*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error Warning while deploying Work Flow Sample that ships with Developer Studio 2.0 beta

2012-05-22 Thread Waruna Ranasinghe
ODE parses the BPEL file according to the WS-BPEL spec, if there are
elements that are not defined in the spec, then the BPEL compiler will
complain, but the deployment continues by ignoring them. Normally, these
errors are not harmful.

Thanks,
Waruna

On Tue, May 22, 2012 at 9:31 PM, Afkham Azeez az...@wso2.com wrote:

 2012-05-22 21:29:17,154]  INFO - CarbonAuthenticationUtil - 'admin' logged
 in at [2012-05-22 21:29:17,154+0530] from IP address 10.100.3.49
 [2012-05-22 21:29:17,173]  INFO - AUDIT_LOG - 'admin' logged in at
 [2012-05-22 21:29:17,154+0530] from IP address 10.100.3.49
 [2012-05-22 21:29:29,201]  INFO - ApplicationManager - Deploying Carbon
 Application : test-bpel2.car...
 [2012-05-22 21:29:29,253]  INFO - ApplicationManager - Successfully
 Deployed Carbon Application : test-bpel2 {super-tenant}
 [2012-05-22 21:29:44,258]  INFO - TenantProcessStoreImpl - Deploying BPEL
 archive:
 /Users/azeez/projects/wso2/org/carbon/platform/trunk/products/bps/modules/distribution/product/target/wso2bps-3.0.0-SNAPSHOT/repository/deployment/server/bpel/HelloWorld-1.0.0.zip
 [2012-05-22 21:29:44,325]  INFO - TenantProcessStoreImpl - Starting
 deployment of processes from directory
 /Users/azeez/projects/wso2/org/carbon/platform/trunk/products/bps/modules/distribution/product/target/wso2bps-3.0.0-SNAPSHOT/repository/bpel/0/HelloWorld-1.0.0-1
 *[2012-05-22 21:29:44,385] ERROR - BpelObjectFactory$BOMSAXErrorHandler -
 null:file:///Users/azeez/projects/wso2/org/carbon/platform/trunk/products/bps/modules/distribution/product/target/wso2bps-3.0.0-SNAPSHOT/repository/bpel/0/HelloWorld-1.0.0-1/HelloWorld.bpel:59:30:cvc-complex-type.3.2.2:
 Attribute 'insert' is not allowed to appear in element 'copy'.*
 *[2012-05-22 21:29:44,386]  WARN - BpelObjectFactory - Validation errors
 during parsing, continuing due to
 -Dorg.apache.ode.compiler.failOnValidationErrors=false switch*
 [2012-05-22 21:29:44,387]  INFO - BpelC - info: [CompilingProcess]
 Compiling BPEL process.
 [2012-05-22 21:29:45,446]  INFO - DeploymentInterceptor - Deploying Axis2
 service: HelloService11 {super-tenant}
 [2012-05-22 21:29:45,544]  INFO - BpelServerImpl - Registered process {
 http://ode/bpel/unit-test}HelloWorldtest111-1.


 Is this a known issue?
 --
 *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*
 *
 *
 *Lean . Enterprise . Middleware*




-- 
-
Waruna Ranasinghe
Senior Software Engineer, WSO2

Mobile: +94 724 318285
BLOG: http://warunapw.blogspot.com

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


Re: [Dev] Error Warning while deploying Work Flow Sample that ships with Developer Studio 2.0 beta

2012-05-22 Thread Afkham Azeez
Yeah, the sample is working  I can invoke it. However, samples should work
100% error  warning free, out of the box. It seems the DevStudio BPEL
sample has not been tested. Otherwise, somebody would have at least noticed
that it contains Asela's name :D

On Tue, May 22, 2012 at 9:57 PM, Waruna Ranasinghe war...@wso2.com wrote:

 ODE parses the BPEL file according to the WS-BPEL spec, if there are
 elements that are not defined in the spec, then the BPEL compiler will
 complain, but the deployment continues by ignoring them. Normally, these
 errors are not harmful.

 Thanks,
 Waruna

 On Tue, May 22, 2012 at 9:31 PM, Afkham Azeez az...@wso2.com wrote:

 2012-05-22 21:29:17,154]  INFO - CarbonAuthenticationUtil - 'admin'
 logged in at [2012-05-22 21:29:17,154+0530] from IP address 10.100.3.49
 [2012-05-22 21:29:17,173]  INFO - AUDIT_LOG - 'admin' logged in at
 [2012-05-22 21:29:17,154+0530] from IP address 10.100.3.49
 [2012-05-22 21:29:29,201]  INFO - ApplicationManager - Deploying Carbon
 Application : test-bpel2.car...
 [2012-05-22 21:29:29,253]  INFO - ApplicationManager - Successfully
 Deployed Carbon Application : test-bpel2 {super-tenant}
 [2012-05-22 21:29:44,258]  INFO - TenantProcessStoreImpl - Deploying BPEL
 archive:
 /Users/azeez/projects/wso2/org/carbon/platform/trunk/products/bps/modules/distribution/product/target/wso2bps-3.0.0-SNAPSHOT/repository/deployment/server/bpel/HelloWorld-1.0.0.zip
 [2012-05-22 21:29:44,325]  INFO - TenantProcessStoreImpl - Starting
 deployment of processes from directory
 /Users/azeez/projects/wso2/org/carbon/platform/trunk/products/bps/modules/distribution/product/target/wso2bps-3.0.0-SNAPSHOT/repository/bpel/0/HelloWorld-1.0.0-1
 *[2012-05-22 21:29:44,385] ERROR - BpelObjectFactory$BOMSAXErrorHandler
 -
 null:file:///Users/azeez/projects/wso2/org/carbon/platform/trunk/products/bps/modules/distribution/product/target/wso2bps-3.0.0-SNAPSHOT/repository/bpel/0/HelloWorld-1.0.0-1/HelloWorld.bpel:59:30:cvc-complex-type.3.2.2:
 Attribute 'insert' is not allowed to appear in element 'copy'.*
 *[2012-05-22 21:29:44,386]  WARN - BpelObjectFactory - Validation errors
 during parsing, continuing due to
 -Dorg.apache.ode.compiler.failOnValidationErrors=false switch*
 [2012-05-22 21:29:44,387]  INFO - BpelC - info: [CompilingProcess]
 Compiling BPEL process.
 [2012-05-22 21:29:45,446]  INFO - DeploymentInterceptor - Deploying Axis2
 service: HelloService11 {super-tenant}
 [2012-05-22 21:29:45,544]  INFO - BpelServerImpl - Registered process {
 http://ode/bpel/unit-test}HelloWorldtest111-1.


 Is this a known issue?
 --
 *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*
 *
 *
 *Lean . Enterprise . Middleware*




 --
 -
 Waruna Ranasinghe
 Senior Software Engineer, WSO2

 Mobile: +94 724 318285
 BLOG: http://warunapw.blogspot.com

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


[Dev] [Bamboo-Build] WSO2 Carbon Products #137 Default Job was SUCCESSFUL (with 19 tests). Change made by 8 authors.

2012-05-22 Thread Bamboo

WSO2 Carbon  Products  #137  Default Job was successful.

The build was triggered because the code has been changed.
19 tests in total.

http://wso2.org/bamboo/browse/WSO2CARBON-PRODUCTS-JOB1-137/


--
Code Changes
--
dimuthul (127937):


changing the p2profile gen.



nandika (127936):

scripts updated

ramith (127941):

Adding bundles required to support multi tanency from stratos common



--
Tests
--
Failed Tests (19)
   - JaggeryTestServerManager: Start server (New)
   - ASTestServerManager: Start server (Existing)
   - BPSBPELServerManager: Start server (Existing)
   - BPSCleanupServerManager: Start server (Existing)
   - BPSHumanTaskServerManager: Start server (Existing)
   - BPSSecurityServerManager: Start server (Existing)
   - BPSTestServerManager: Start server (Existing)
   - RegistryTestServerManager: Start server (Existing)
   - BRSTestServerManager: Start server (Existing)
   - CEPTestServerManager: Start server (Existing)
   - CSGTestServerManager: Start server (Existing)
   - DSSTestServerManager: Start server (Existing)
   - ESBTestServerManager: Start server (Existing)
   - ESBTestServerManager: Start server (Existing)
   - GSTestServerManager: Start server (Existing)
   - ISTestServerManager: Start server (Existing)
   - MBTestServerManager: Start server (Existing)
   - MSTestServerManager: Start server (Existing)
   - StratosManagerTestServerManager: Start server (Existing)


--
Error Summary
--
   Usage:
   nbsp; kill pid ...nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; Send 
SIGTERM to every process listed.
   nbsp; kill signal pid ...nbsp; nbsp; nbsp; nbsp;Send a signal to every 
process listed.
   nbsp; kill -s signal pid ...nbsp; nbsp; Send a signal to every process 
listed.
   nbsp; kill -lnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; 
nbsp;List all signal names.
   nbsp; kill -Lnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; 
nbsp;List all signal names in a nice table.
   nbsp; kill -l signalnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; Convert 
between signal numbers and names.
   Usage:
   nbsp; kill pid ...nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; Send 
SIGTERM to every process listed.
   nbsp; kill signal pid ...nbsp; nbsp; nbsp; nbsp;Send a signal to every 
process listed.
   nbsp; kill -s signal pid ...nbsp; nbsp; Send a signal to every process 
listed.
   nbsp; kill -lnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; 
nbsp;List all signal names.
   nbsp; kill -Lnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; 
nbsp;List all signal names in a nice table.
   nbsp; kill -l signalnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; Convert 
between signal numbers and names.
   Usage:
   nbsp; kill pid ...nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; Send 
SIGTERM to every process listed.
   nbsp; kill signal pid ...nbsp; nbsp; nbsp; nbsp;Send a signal to every 
process listed.
   nbsp; kill -s signal pid ...nbsp; nbsp; Send a signal to every process 
listed.
   nbsp; kill -lnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; 
nbsp;List all signal names.
   nbsp; kill -Lnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; 
nbsp;List all signal names in a nice table.
   nbsp; kill -l signalnbsp; nbsp; nbsp; nbsp; nbsp; nbsp; Convert 
between signal numbers and names.


--
This message is automatically generated by Atlassian Bamboo

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


Re: [Dev] (no subject)

2012-05-22 Thread Sameera Jayasoma
Do you have a separate DOM implementation in your classpath. Looks like it
conflicts with XML beans.

Thanks,
Sameera.

On Tue, May 22, 2012 at 3:19 PM, Noel Marquez Batista nmarq...@uci.cuwrote:

 Hi all.

 I’m trying to consume an axis2 web service. In the AS, when I go to the
 trying, it gives me the error

 soapenv:Fault xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;

   faultcodesoapenv:Server/faultcode

   faultstringorg.apache.xmlbeans.impl.values.XmlComplexContentImpl
 cannot be cast to
 akademosws.ObtenerEstudianteDadoIdExpedienteDocument/faultstring

   detail/

 /soapenv:Fault



 I develop a Java client to test the service, and give me the same error:

 org.apache.axis2.AxisFault:
 org.apache.xmlbeans.impl.values.XmlComplexContentImpl cannot be cast to
 akademosws.ObtenerEstudianteDadoIdExpedienteDocument

at
 org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:508)

at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)

at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)

at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)

at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)

at
 org.example.www.akademosservice.AkademosServiceStub.obtenerEstudianteDadoIdExpedienteWS(AkademosServiceStub.java:860)

at org.example.www.akademosservice.cliente.main(cliente.java:24)



 --
 The only easy day was yesterday.

 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS
 INFORMATICAS...
 CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION

 http://www.uci.cu
 http://www.facebook.com/universidad.uci
 http://www.flickr.com/photos/universidad_uci
 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Sameera Jayasoma
Technical Lead

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://tech.jayasoma.org

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


Re: [Dev] Integration test failures on Carbon core

2012-05-22 Thread Afkham Azeez
Update Carbon kernel/core again  retry. I was able to build the entire
kernel with tests this afternoon.

On Tue, May 22, 2012 at 7:42 PM, Isuru Suriarachchi is...@wso2.com wrote:

 I updated the entire trunk this morning and built from the scratch.
 Getting the following test failure on carbon core and all other products.
 Any clue?

 Results :

 Failed tests:
   startServer(org.wso2.carbon.integration.tests.CarbonTestServerManager):
 org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
 java.lang.RuntimeException: Could not login to Carbon server within
 6ms. portOffset=0

 Tests run: 28, Failures: 1, Errors: 0, Skipped: 27

 surefire report


 ---
 Test set: TestSuite

 ---
 Tests run: 28, Failures: 1, Errors: 0, Skipped: 27, Time elapsed: 69.405
 sec  FAILURE!
 startServer(org.wso2.carbon.integration.tests.CarbonTestServerManager)
  Time elapsed: 0 sec   FAILURE!
 org.testng.internal.thread.ThreadExecutionException:
 org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
 java.lang.RuntimeException: Could not login to Carbon server within
 6ms. portOffset=0
 at
 org.testng.internal.thread.FutureResultAdapter.get(FutureResultAdapter.java:25)
 at
 org.testng.internal.MethodInvocationHelper.invokeWithTimeoutWithNewExecutor(MethodInvocationHelper.java:242)
 at
 org.testng.internal.MethodInvocationHelper.invokeWithTimeout(MethodInvocationHelper.java:200)
 at
 org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:528)
 at
 org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
 at
 org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
 at org.testng.SuiteRunner.privateRun(SuiteRunner.java:277)
 at org.testng.SuiteRunner.run(SuiteRunner.java:240)
 at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
 at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
 at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)



 --
 Isuru Suriarachchi
 Senior Technical Lead
 WSO2 Inc. http://wso2.com
 email : is...@wso2.com
 blog : http://isurues.wordpress.com/

 lean . enterprise . middleware


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




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


[Dev] [Bamboo-Build] WSO2 Carbon platform #239 has FAILED. Change made by 8 authors.

2012-05-22 Thread Bamboo

---
WSO2 Carbon  platform  #239 failed.
---
Code has been updated by nandika, manjular, nuwanw, dimuthul, shankar, subash, 
amila, ramith.
No failed tests found, a possible compilation error.

http://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-239/


--
Failing Jobs
--
  - Default Job (Default Stage): No tests found.



--
Code Changes
--
dimuthul (127937):


changing the p2profile gen.



nandika (127936):

scripts updated

ramith (127941):

Adding bundles required to support multi tanency from stratos common



--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Bamboo-Build] WSO2 Carbon platform #239 has FAILED. Change made by 8 authors.

2012-05-22 Thread Amila Maha Arachchi
This is fixed. Will get reflected in the next cycle.

AmilaM.

On Tue, May 22, 2012 at 10:45 PM, Bamboo cbuil...@wso2.org wrote:

  [image: Failed]  WSO2 Carbonhttp://wso2.org/bamboo/browse/WSO2CARBON/›
 platform http://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM/ › 
 #239http://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-239/
 failed

 Code has been updated by 
 nandikahttp://wso2.org/bamboo/browse/author/nandika,
 manjular http://wso2.org/bamboo/browse/author/manjular, 
 nuwanwhttp://wso2.org/bamboo/browse/author/nuwanw,
 dimuthul http://wso2.org/bamboo/browse/author/dimuthul, 
 shankarhttp://wso2.org/bamboo/browse/author/shankar,
 subash http://wso2.org/bamboo/browse/author/subash, 
 amilahttp://wso2.org/bamboo/browse/author/amila,
 ramith http://wso2.org/bamboo/browse/author/ramith.

 No failed tests found, a possible compilation error.
Failing Jobs http://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-239/
 Job
 Duration Tests[image: Failed]  Default 
 Jobhttp://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-JOB1-239/ (Default
 Stage)  9 minutes  No tests found  
 Logshttp://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-JOB1-239/log|
 Artifactshttp://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-JOB1-239/artifact
  Code
 Changes http://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-239/commit/  View
 all 18 code 
 changeshttp://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-239/commit/
 amila http://wso2.org/bamboo/browse/author/amila
 fixing some issues with hot update  127945
 shankarhttp://wso2.org/bamboo/browse/author/shankar
 Changing package of TenantBillingService
 Removing keystore, theme management dependency from tenant management
 127944ramith http://wso2.org/bamboo/browse/author/ramith
 Stop CSG product pack being built, since service pack will be the only one
 that will remain in future  127943   15 more 
 changes…http://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-239/commit 
 View
 Online http://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-239 | Add
 Commentshttp://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-239?commentMode=true

 This message was sent by Atlassian Bamboo http://wso2.org/bamboo.

 If you wish to stop receiving these emails edit your user 
 profilehttp://wso2.org/bamboo/profile/userNotifications.actionor notify
 your administrator http://wso2.org/bamboo/viewAdministrators.action.

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




-- 
*Amila Maharachchi*
Senior Software Engineer; 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] Error Warning while deploying Work Flow Sample that ships with Developer Studio 2.0 beta

2012-05-22 Thread Kalpa Senanayake
Hi all,

I have created L2 issue on this at [1] and now issue is fixed on both trunk
and branch.

[1] - https://wso2.org/jira/browse/TOOLS-1067

Thanks
Kalpa.

On Tue, May 22, 2012 at 10:08 PM, Afkham Azeez az...@wso2.com wrote:

 Yeah, the sample is working  I can invoke it. However, samples should
 work 100% error  warning free, out of the box. It seems the DevStudio BPEL
 sample has not been tested. Otherwise, somebody would have at least noticed
 that it contains Asela's name :D


 On Tue, May 22, 2012 at 9:57 PM, Waruna Ranasinghe war...@wso2.comwrote:

 ODE parses the BPEL file according to the WS-BPEL spec, if there are
 elements that are not defined in the spec, then the BPEL compiler will
 complain, but the deployment continues by ignoring them. Normally, these
 errors are not harmful.

 Thanks,
 Waruna

 On Tue, May 22, 2012 at 9:31 PM, Afkham Azeez az...@wso2.com wrote:

 2012-05-22 21:29:17,154]  INFO - CarbonAuthenticationUtil - 'admin'
 logged in at [2012-05-22 21:29:17,154+0530] from IP address 10.100.3.49
 [2012-05-22 21:29:17,173]  INFO - AUDIT_LOG - 'admin' logged in at
 [2012-05-22 21:29:17,154+0530] from IP address 10.100.3.49
 [2012-05-22 21:29:29,201]  INFO - ApplicationManager - Deploying Carbon
 Application : test-bpel2.car...
 [2012-05-22 21:29:29,253]  INFO - ApplicationManager - Successfully
 Deployed Carbon Application : test-bpel2 {super-tenant}
 [2012-05-22 21:29:44,258]  INFO - TenantProcessStoreImpl - Deploying
 BPEL archive:
 /Users/azeez/projects/wso2/org/carbon/platform/trunk/products/bps/modules/distribution/product/target/wso2bps-3.0.0-SNAPSHOT/repository/deployment/server/bpel/HelloWorld-1.0.0.zip
 [2012-05-22 21:29:44,325]  INFO - TenantProcessStoreImpl - Starting
 deployment of processes from directory
 /Users/azeez/projects/wso2/org/carbon/platform/trunk/products/bps/modules/distribution/product/target/wso2bps-3.0.0-SNAPSHOT/repository/bpel/0/HelloWorld-1.0.0-1
 *[2012-05-22 21:29:44,385] ERROR - BpelObjectFactory$BOMSAXErrorHandler
 -
 null:file:///Users/azeez/projects/wso2/org/carbon/platform/trunk/products/bps/modules/distribution/product/target/wso2bps-3.0.0-SNAPSHOT/repository/bpel/0/HelloWorld-1.0.0-1/HelloWorld.bpel:59:30:cvc-complex-type.3.2.2:
 Attribute 'insert' is not allowed to appear in element 'copy'.*
 *[2012-05-22 21:29:44,386]  WARN - BpelObjectFactory - Validation
 errors during parsing, continuing due to
 -Dorg.apache.ode.compiler.failOnValidationErrors=false switch*
 [2012-05-22 21:29:44,387]  INFO - BpelC - info: [CompilingProcess]
 Compiling BPEL process.
 [2012-05-22 21:29:45,446]  INFO - DeploymentInterceptor - Deploying
 Axis2 service: HelloService11 {super-tenant}
 [2012-05-22 21:29:45,544]  INFO - BpelServerImpl - Registered process {
 http://ode/bpel/unit-test}HelloWorldtest111-1.


 Is this a known issue?
 --
 *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*
 *
 *
 *Lean . Enterprise . Middleware*




 --
 -
 Waruna Ranasinghe
 Senior Software Engineer, WSO2

 Mobile: +94 724 318285
 BLOG: http://warunapw.blogspot.com

 www.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*
 *
 *
 *Lean . Enterprise . Middleware*


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




-- 
Kalpa Senanayake.
Software Engineer,

WSO2,Inc :(http://wso2.com/).
email : ka...@wso2.com
mobile : +94783864128
blog : (http://kalpads.wordpress.com/)

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


Re: [Dev] DEveloper Studio Workflow Sample contains ASELA's name

2012-05-22 Thread Kalpa Senanayake
Hi,

This one also corrected at [1].

[1] -https://wso2.org/jira/browse/TOOLS-1067

Thanks
Kalpa.

On Tue, May 22, 2012 at 9:34 PM, Afkham Azeez az...@wso2.com wrote:

   assign name=assign1

  copy

 from variable=myVar part=TestPart/

 to variable=tmpVar/

  /copy

  copy insert=last

  fromconcat('*ASELA*  ',$tmpVar)/from

  to variable=myVar part=TestPart/

  /copy

   /assign


 :)

 --
 *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*
 *
 *
 *Lean . Enterprise . Middleware*


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




-- 
Kalpa Senanayake.
Software Engineer,

WSO2,Inc :(http://wso2.com/).
email : ka...@wso2.com
mobile : +94783864128
blog : (http://kalpads.wordpress.com/)

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


[Dev] [Bamboo-Build] WSO2 Carbon Kernel #262 has FAILED (1 tests failed). Change made by rajika.

2012-05-22 Thread Bamboo

---
WSO2 Carbon  Kernel  #262 failed.
---
Code has been updated by rajika.
1/2799 tests failed.

http://wso2.org/bamboo/browse/WSO2CARBON-CARBONCOREKERNELBUILD-262/


--
Failing Jobs
--
  - Default Job (Default Stage): 1 of 2799 tests failed.



--
Code Changes
--
rajika (127951):

Fixed the Authentication admin service to have proper perfmission for login 
operation.



--
Tests
--
New Test Failures (1)
   - MaintenanceModeTestCase: Init

--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Bamboo-Build] WSO2 Carbon platform #240 has FAILED. Change made by 7 authors.

2012-05-22 Thread Bamboo

---
WSO2 Carbon  platform  #240 failed.
---
Code has been updated by krishantha, tharindu, manjular, amilam, thilinab, 
amila, thilini.
No failed tests found, a possible compilation error.

http://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-240/


--
Failing Jobs
--
  - Default Job (Default Stage): 2065 tests passed.



--
Code Changes
--
amilam (127946):

Removing announcement.stub and subscription.stub from pom.xml

krishantha (127952):

Fixing stratos G-Reg tests

amila (127949):

removing old dependancies



--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Merging Jaggery with AS

2012-05-22 Thread Samisa Abeysinghe
On Tue, May 22, 2012 at 4:23 PM, Nuwan Bandara nu...@wso2.com wrote:

 Yes its straight forward, in fact the API product and appfactory doing
 it successfully right now. we need to add Jaggery and MS features to AS.
 however when including jaggery and MS both there mite be conflicts. lets
 try this and see.


I would rather not put MS in this release itself.
Even Jaggery, if it works out of the box, we can ship. Else, we have other
priorities such as JAX-RS and JAX-WS to worry about. And we are at the
point of feature freeze. So not more new changes please...




 On Tue, May 22, 2012 at 11:06 AM, Isuru Suriarachchi is...@wso2.comwrote:

 Hi all,

 Are we going to merge Jaggery with AS for this release?

 If so, Nuwan are there any gray areas in doing this? Should be straight
 forward, isn't it?

 ~Isuru

 --
 Isuru Suriarachchi
 Technical Lead
 WSO2 Inc. http://wso2.com
 email : is...@wso2.com
 blog : http://isurues.wordpress.com/

 lean . enterprise . middleware




 --
 *Thanks  Regards,

 Nuwan Bandara
 Associate Technical Lead  Member, MC, Development Technologies
 WSO2 Inc. - lean . enterprise . middleware |  http://wso2.com
 blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763
 9629
 *
 http://www.nuwanbando.com/

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


[Dev] [Bamboo-Build] WSO2 Carbon Kernel #263 was SUCCESSFUL (with 2800 tests). Change made by azeez.

2012-05-22 Thread Bamboo

---
WSO2 Carbon  Kernel  #263 was successful.
---
Code has been updated by azeez.
2800 tests in total.

http://wso2.org/bamboo/browse/WSO2CARBON-CARBONCOREKERNELBUILD-263/


--
Code Changes
--
azeez (127961):

Reverting change by AmilaJ to jmx.xml to avoid the test failure




--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Files packed twice

2012-05-22 Thread Dimuthu Leelarathne
Hi all,

In my AppServer pack files are getting packed twice.

 inflating: wso2stratos-as-1.1.0-SNAPSHOT/repository/database/README
replace
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/WSO2CarbonProfile.profile/1337690616328.profile.gz?
[y]es, [n]o, [A]ll, [N]one, [r]ename: y
  inflating:
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/WSO2CarbonProfile.profile/1337690616328.profile.gz

replace
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/WSO2CarbonProfile.profile/1337742899091.profile.gz?
[y]es, [n]o, [A]ll, [N]one, [r]ename:
error:  invalid response [{ENTER}]
replace
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/WSO2CarbonProfile.profile/1337742899091.profile.gz?
[y]es, [n]o, [A]ll, [N]one, [r]ename: y
  inflating:
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/WSO2CarbonProfile.profile/1337742899091.profile.gz

replace
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/WSO2CarbonProfile.profile/1337742878571.profile.gz?
[y]es, [n]o, [A]ll, [N]one, [r]ename: y
  inflating:
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/WSO2CarbonProfile.profile/1337742878571.profile.gz

replace
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/WSO2CarbonProfile.profile/1337690626227.profile.gz?
[y]es, [n]o, [A]ll, [N]one, [r]ename: y
  inflating:
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/WSO2CarbonProfile.profile/1337690626227.profile.gz

replace
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/WSO2CarbonProfile.profile/1337690617977.profile.gz?
[y]es, [n]o, [A]ll, [N]one, [r]ename: y
  inflating:
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/WSO2CarbonProfile.profile/1337690617977.profile.gz

replace
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/WSO2CarbonProfile.profile/1337690618353.profile.gz?
[y]es, [n]o, [A]ll, [N]one, [r]ename: y
  inflating:
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/WSO2CarbonProfile.profile/1337690618353.profile.gz

replace
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/WSO2CarbonProfile.profile/1337690616260.profile.gz?
[y]es, [n]o, [A]ll, [N]one, [r]ename: y
  inflating:
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/WSO2CarbonProfile.profile/1337690616260.profile.gz

replace
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/WSO2CarbonProfile.profile/1337742868794.profile.gz?
[y]es, [n]o, [A]ll, [N]one, [r]ename: y
  inflating:
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/WSO2CarbonProfile.profile/1337742868794.profile.gz

replace
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/WSO2CarbonProfile.profile/1337690628421.profile.gz?
[y]es, [n]o, [A]ll, [N]one, [r]ename: y
  inflating:
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/WSO2CarbonProfile.profile/1337690628421.profile.gz

replace
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/WSO2CarbonProfile.profile/1337690621402.profile.gz?
[y]es, [n]o, [A]ll, [N]one, [r]ename: y
  inflating:
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/profileRegistry/WSO2CarbonProfile.profile/1337690621402.profile.gz

replace
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/.settings/org.eclipse.equinox.p2.artifact.repository.prefs?
[y]es, [n]o, [A]ll, [N]one, [r]ename: y
  inflating:
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.engine/.settings/org.eclipse.equinox.p2.artifact.repository.prefs

replace
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.core/cache/artifacts.xml?
[y]es, [n]o, [A]ll, [N]one, [r]ename: y
  inflating:
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/p2/org.eclipse.equinox.p2.core/cache/artifacts.xml

replace
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/features/org.wso2.carbon.message.flows_4.0.0.SNAPSHOT/META-INF/MANIFEST.MF?
[y]es, [n]o, [A]ll, [N]one, [r]ename: y
  inflating:
wso2stratos-as-1.1.0-SNAPSHOT/repository/components/features/org.wso2.carbon.message.flows_4.0.0.SNAPSHOT/META-INF/MANIFEST.MF

replace

Re: [Dev] package org.wso2.carbon.stratos.common does not exist

2012-05-22 Thread Amila Maha Arachchi
Hi Sumedha,

This is fixed now. Please svn up
components/stratos/org.wso2.carbon.stratos.common and build it. Then build
the comp/stratos/billing

Regards,
AmilaM.

On Wed, May 23, 2012 at 1:57 AM, Sumedha Rubasinghe sume...@wso2.comwrote:


 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
 (default-compile) on project org.wso2.carbon.billing.mgt: Compilation
 failure: Compilation failure:
 [ERROR]
 /Volumes/Data/projects/c/platform/trunk/components/stratos/billing/org.wso2.carbon.billing.mgt/src/main/java/org/wso2/carbon/billing/mgt/api/DefaultTenantBilling.java:[11,37]
 package org.wso2.carbon.stratos.common does not exist
 [ERROR]
 /Volumes/Data/projects/c/platform/trunk/components/stratos/billing/org.wso2.carbon.billing.mgt/src/main/java/org/wso2/carbon/billing/mgt/api/DefaultTenantBilling.java:[17,45]
 cannot find symbol
 [ERROR] symbol: class TenantBillingService
 [ERROR] public class DefaultTenantBilling implements TenantBillingService {
 [ERROR]
 /Volumes/Data/projects/c/platform/trunk/components/stratos/billing/org.wso2.carbon.billing.mgt/src/main/java/org/wso2/carbon/billing/mgt/util/Util.java:[28,37]
 cannot find symbol
 [ERROR] symbol  : class TenantBillingService
 [ERROR] location: package org.wso2.carbon.stratos.common
 [ERROR]
 /Volumes/Data/projects/c/platform/trunk/components/stratos/billing/org.wso2.carbon.billing.mgt/src/main/java/org/wso2/carbon/billing/mgt/util/Util.java:[107,38]
 cannot find symbol
 [ERROR] symbol  : class TenantBillingService
 [ERROR] location: class org.wso2.carbon.billing.mgt.util.Util
 [ER

 --
 /sumedha
 +94 773017743

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




-- 
*Amila Maharachchi*
Senior Software Engineer; 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] [Bamboo-Build] WSO2 Carbon platform #241 has FAILED. Change made by manjular.

2012-05-22 Thread Bamboo

---
WSO2 Carbon  platform  #241 failed.
---
This build occurred because it is a dependant of 
WSO2CARBON-CARBONCOREKERNELBUILD-263.
No failed tests found, a possible compilation error.

http://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-241/


--
Failing Jobs
--
  - Default Job (Default Stage): 2065 tests passed.



--
Code Changes
--
manjular (127959):

fixing deploy to dev sample bpel

manjular (127960):

Setting default epr for ApplicationDeploymentService



--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Bamboo-Build] WSO2 Carbon platform #240 has FAILED. Change made by 7 authors.

2012-05-22 Thread Amila Maha Arachchi
This is fixed at r127968

AmilaM.

On Wed, May 23, 2012 at 2:32 AM, Bamboo cbuil...@wso2.org wrote:

  [image: Failed]  WSO2 Carbonhttp://wso2.org/bamboo/browse/WSO2CARBON/›
 platform http://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM/ › 
 #240http://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-240/
 failed

 Code has been updated by 
 krishanthahttp://wso2.org/bamboo/browse/author/krishantha,
 tharindu http://wso2.org/bamboo/browse/author/tharindu, 
 manjularhttp://wso2.org/bamboo/browse/author/manjular,
 amilam http://wso2.org/bamboo/browse/author/amilam, 
 thilinabhttp://wso2.org/bamboo/browse/author/thilinab,
 amila http://wso2.org/bamboo/browse/author/amila, 
 thilinihttp://wso2.org/bamboo/browse/author/thilini
 .

 *0/2065* tests failed.
Failing Jobs http://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-240/
 Job
 Duration Tests[image: Failed]  Default 
 Jobhttp://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-JOB1-240/ (Default
 Stage)  131 minutes  2065 passed  
 Logshttp://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-JOB1-240/log|
 Artifactshttp://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-JOB1-240/artifact
  Code
 Changes http://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-240/commit/  View
 all 10 code 
 changeshttp://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-240/commit/
 manjular http://wso2.org/bamboo/browse/author/manjular
 Fixing deploy to Live sample bpel  127958
 tharinduhttp://wso2.org/bamboo/browse/author/tharindu
 gadget gen wizard ui beautification and error solved - usable now for bar
 graphs  127955thilini http://wso2.org/bamboo/browse/author/thilini
 created process, tested against SCM Manger  Stratos Manager  127954   7
 more changes…http://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-240/commit   
   View
 Online http://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-240 | Add
 Commentshttp://wso2.org/bamboo/browse/WSO2CARBON-PLATFORM-240?commentMode=true

 This message was sent by Atlassian Bamboo http://wso2.org/bamboo.

 If you wish to stop receiving these emails edit your user 
 profilehttp://wso2.org/bamboo/profile/userNotifications.actionor notify
 your administrator http://wso2.org/bamboo/viewAdministrators.action.

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




-- 
*Amila Maharachchi*
Senior Software Engineer; 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] Integration test failures on Carbon core

2012-05-22 Thread Amila Suriarachchi
For CEP and BRS there was a problem of copying a web.xml. After that all
tests got passed.

Please check with Pradeep.

thanks,
Amila.

On Tue, May 22, 2012 at 10:58 PM, Afkham Azeez az...@wso2.com wrote:

 Update Carbon kernel/core again  retry. I was able to build the entire
 kernel with tests this afternoon.

 On Tue, May 22, 2012 at 7:42 PM, Isuru Suriarachchi is...@wso2.comwrote:

 I updated the entire trunk this morning and built from the scratch.
 Getting the following test failure on carbon core and all other products.
 Any clue?

 Results :

 Failed tests:
   startServer(org.wso2.carbon.integration.tests.CarbonTestServerManager):
 org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
 java.lang.RuntimeException: Could not login to Carbon server within
 6ms. portOffset=0

 Tests run: 28, Failures: 1, Errors: 0, Skipped: 27

 surefire report


 ---
 Test set: TestSuite

 ---
 Tests run: 28, Failures: 1, Errors: 0, Skipped: 27, Time elapsed: 69.405
 sec  FAILURE!
 startServer(org.wso2.carbon.integration.tests.CarbonTestServerManager)
  Time elapsed: 0 sec   FAILURE!
 org.testng.internal.thread.ThreadExecutionException:
 org.testng.internal.InvokeMethodRunnable$TestNGRuntimeException:
 java.lang.RuntimeException: Could not login to Carbon server within
 6ms. portOffset=0
 at
 org.testng.internal.thread.FutureResultAdapter.get(FutureResultAdapter.java:25)
 at
 org.testng.internal.MethodInvocationHelper.invokeWithTimeoutWithNewExecutor(MethodInvocationHelper.java:242)
 at
 org.testng.internal.MethodInvocationHelper.invokeWithTimeout(MethodInvocationHelper.java:200)
 at
 org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:528)
 at
 org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
 at
 org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
 at org.testng.SuiteRunner.privateRun(SuiteRunner.java:277)
 at org.testng.SuiteRunner.run(SuiteRunner.java:240)
 at
 org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
 at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
 at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)



 --
 Isuru Suriarachchi
 Senior Technical Lead
 WSO2 Inc. http://wso2.com
 email : is...@wso2.com
 blog : http://isurues.wordpress.com/

 lean . enterprise . middleware


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




 --
 *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*
 *
 *
 *Lean . Enterprise . Middleware*


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




-- 
*Amila Suriarachchi*

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

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