[Carbon-dev] Patch - Adding Cassandra Feature to the DSS
Hi DSS team, This is a patch adding Cassandra feature to the DSS. I have updated the DS profiles in the all the related poms and committed those changes. This patch just adds Cassandra feature to the DSS p2-profile-gen. I cannot test it as I cannot build DSS now(take time). However, I has already tested this with AS, ESB and Carbon (both standalone and cloud). So, I do not think there would be any issue. Please someone from DSS apply this patch and test. If there is any issue, please let me know. You need to build up-to-date dependencies/cassandra and hector, orbit, service-stubs, components/cassandra, and features/cassandra. -Dproduct=ds should work as I already updated ds profile and committed. Thanks, Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] Cassandra version Changed
Due to the fixes done at dependencies/cassandra, it was needed to upgrade the Cassandra version. Please take svn up dependencies/cassandra orbit/cassandra components/cassandra features/cassandra Thanks, Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] WSO2 Carbon Continuous Build has FAILED
I am seeing following... [INFO] Installing /home/carbon/carbon/ dependencies/cassandra/build/apache-cassandra-0.7.0.jar to /home/carbon/.m2/repository/org/apache/cassandra/apache-cassandra /0.7.0-wso2v1/apache-cassandra-0.7.0-wso2v1.jar As per the Cassandra pom[1], the above error cannot happen. I think , it is needed to take svn up on dependencies/cassandra .. Also please cassandra component and feature [1] https://svn.wso2.org/repos/wso2/trunk/carbon/dependencies/cassandra/pom.xml On Thu, May 5, 2011 at 12:12 AM, Indika Kumara ind...@wso2.com wrote: if 'trunck\dependencies\cassandra' is built, 'apache-cassandra-0.7.0-wso2v2.jar' should be there when building 'orbit/cassandra'. What could be the issue? I am not getting this locally and there is no local changes. Is it possible to the builder machine's source checkout being not up-to-date? ~ Indika On Wed, May 4, 2011 at 11:39 PM, WSO2 Builder cbuil...@wso2.org wrote: [INFO] skip non existing resourceDirectory /home/carbon/carbon/orbit/json-simple/src/main/resources [INFO] [compiler:compile {execution: default-compile}] [INFO] No sources to compile [INFO] [resources:testResources {execution: default-testResources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/carbon/carbon/orbit/json-simple/src/test/resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] Not compiling test sources [INFO] [surefire:test {execution: default-test}] [INFO] Tests are skipped. [INFO] [bundle:bundle {execution: default-bundle}] [INFO] [install:install {execution: default-install}] [INFO] Installing /home/carbon/carbon/orbit/json-simple/target/json-simple-1.1.wso2v1.jar to /home/carbon/.m2/repository/com/googlecode/json-simple/wso2/json-simple/1.1.wso2v1/json-simple-1.1.wso2v1.jar [INFO] [bundle:install {execution: default-install}] [INFO] Local OBR update disabled (enable with -DobrRepository) [INFO] [INFO] Building cassandra.wso2 [INFO]task-segment: [clean, install] [INFO] [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting /home/carbon/carbon/orbit/cassandra/target Downloading: http://maven.wso2.org/nexus/content/groups/wso2-public//org/apache/cassandra/apache-cassandra/0.7.0-wso2v2/apache-cassandra-0.7.0-wso2v2.pom [INFO] Unable to find resource 'org.apache.cassandra:apache-cassandra:pom:0.7.0-wso2v2' in repository wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) Downloading: http://repo1.maven.org/maven2/org/apache/cassandra/apache-cassandra/0.7.0-wso2v2/apache-cassandra-0.7.0-wso2v2.pom [INFO] Unable to find resource 'org.apache.cassandra:apache-cassandra:pom:0.7.0-wso2v2' in repository central (http://repo1.maven.org/maven2) Downloading: http://maven.wso2.org/nexus/content/groups/wso2-public//org/apache/cassandra/apache-cassandra/0.7.0-wso2v2/apache-cassandra-0.7.0-wso2v2.jar [INFO] Unable to find resource 'org.apache.cassandra:apache-cassandra:jar:0.7.0-wso2v2' in repository wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) Downloading: http://repo1.maven.org/maven2/org/apache/cassandra/apache-cassandra/0.7.0-wso2v2/apache-cassandra-0.7.0-wso2v2.jar [INFO] Unable to find resource 'org.apache.cassandra:apache-cassandra:jar:0.7.0-wso2v2' in repository central (http://repo1.maven.org/maven2) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.apache.cassandra:apache-cassandra:jar:0.7.0-wso2v2 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.cassandra -DartifactId=apache-cassandra -Dversion=0.7.0-wso2v2 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.cassandra -DartifactId=apache-cassandra -Dversion=0.7.0-wso2v2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.cassandra.wso2:apache-cassandra:bundle:0.7.0.wso2v2 2) org.apache.cassandra:apache-cassandra:jar:0.7.0-wso2v2 -- 1 required artifact is missing. for artifact: org.apache.cassandra.wso2:apache-cassandra:bundle:0.7.0.wso2v2 from the specified remote repositories: central (http://repo1.maven.org/maven2), wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) [INFO] [INFO] For more information, run Maven with the -e switch [INFO
Re: [Carbon-dev] WSO2 Carbon Continuous Build has FAILED
if 'trunck\dependencies\cassandra' is built, 'apache-cassandra-0.7.0-wso2v2.jar' should be there when building 'orbit/cassandra'. What could be the issue? I am not getting this locally and there is no local changes. Is it possible to the builder machine's source checkout being not up-to-date? ~ Indika On Wed, May 4, 2011 at 11:39 PM, WSO2 Builder cbuil...@wso2.org wrote: [INFO] skip non existing resourceDirectory /home/carbon/carbon/orbit/json-simple/src/main/resources [INFO] [compiler:compile {execution: default-compile}] [INFO] No sources to compile [INFO] [resources:testResources {execution: default-testResources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/carbon/carbon/orbit/json-simple/src/test/resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] Not compiling test sources [INFO] [surefire:test {execution: default-test}] [INFO] Tests are skipped. [INFO] [bundle:bundle {execution: default-bundle}] [INFO] [install:install {execution: default-install}] [INFO] Installing /home/carbon/carbon/orbit/json-simple/target/json-simple-1.1.wso2v1.jar to /home/carbon/.m2/repository/com/googlecode/json-simple/wso2/json-simple/1.1.wso2v1/json-simple-1.1.wso2v1.jar [INFO] [bundle:install {execution: default-install}] [INFO] Local OBR update disabled (enable with -DobrRepository) [INFO] [INFO] Building cassandra.wso2 [INFO]task-segment: [clean, install] [INFO] [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting /home/carbon/carbon/orbit/cassandra/target Downloading: http://maven.wso2.org/nexus/content/groups/wso2-public//org/apache/cassandra/apache-cassandra/0.7.0-wso2v2/apache-cassandra-0.7.0-wso2v2.pom [INFO] Unable to find resource 'org.apache.cassandra:apache-cassandra:pom:0.7.0-wso2v2' in repository wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) Downloading: http://repo1.maven.org/maven2/org/apache/cassandra/apache-cassandra/0.7.0-wso2v2/apache-cassandra-0.7.0-wso2v2.pom [INFO] Unable to find resource 'org.apache.cassandra:apache-cassandra:pom:0.7.0-wso2v2' in repository central (http://repo1.maven.org/maven2) Downloading: http://maven.wso2.org/nexus/content/groups/wso2-public//org/apache/cassandra/apache-cassandra/0.7.0-wso2v2/apache-cassandra-0.7.0-wso2v2.jar [INFO] Unable to find resource 'org.apache.cassandra:apache-cassandra:jar:0.7.0-wso2v2' in repository wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) Downloading: http://repo1.maven.org/maven2/org/apache/cassandra/apache-cassandra/0.7.0-wso2v2/apache-cassandra-0.7.0-wso2v2.jar [INFO] Unable to find resource 'org.apache.cassandra:apache-cassandra:jar:0.7.0-wso2v2' in repository central (http://repo1.maven.org/maven2) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.apache.cassandra:apache-cassandra:jar:0.7.0-wso2v2 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.cassandra -DartifactId=apache-cassandra -Dversion=0.7.0-wso2v2 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.cassandra -DartifactId=apache-cassandra -Dversion=0.7.0-wso2v2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.cassandra.wso2:apache-cassandra:bundle:0.7.0.wso2v2 2) org.apache.cassandra:apache-cassandra:jar:0.7.0-wso2v2 -- 1 required artifact is missing. for artifact: org.apache.cassandra.wso2:apache-cassandra:bundle:0.7.0.wso2v2 from the specified remote repositories: central (http://repo1.maven.org/maven2), wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 31 minutes 29 seconds [INFO] Finished at: Wed May 04 23:09:03 IST 2011 [INFO] Final Memory: 1315M/1761M [INFO] ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] WSO2 Carbon Continuous Build has FAILED
It says that some jars cannot be downloaded although there are in the maven repo.. Any clue. ~ Inika On Tue, May 3, 2011 at 5:16 PM, Sameera Jayasoma same...@wso2.com wrote: On Tue, May 3, 2011 at 4:24 PM, Tharindu Mathew thari...@wso2.com wrote: I see a failed mail again. Should be from the new build. It is different error which comes from the dependencies/hector. My fix was done to the components level. Sameera. On Tue, May 3, 2011 at 3:36 PM, Denis Weerasiri de...@wso2.com wrote: On Tue, May 3, 2011 at 3:12 PM, Sameera Jayasoma same...@wso2.comwrote: Committed a fix, ask Dennis to trigger a new build. Lets wait for the build.. Noted. Thanks Sameera On Tue, May 3, 2011 at 1:18 PM, Afkham Azeez az...@wso2.com wrote: Sameera, Can you try to fix this ASAP please? If we cannot do this before EoD today, let's revert the dependency exclusions. On Tue, May 3, 2011 at 11:03 AM, Tharindu Mathew thari...@wso2.comwrote: Can we revert exclusions until we fix this? This is stopping all the builds now for a couple of days. On Tue, May 3, 2011 at 11:00 AM, WSO2 online Builder cbuil...@wso2.org wrote: [INFO] Deleting /home/carbon/carbon/components/registry/org.wso2.carbon.registry.extensions/target Downloading: http://maven.wso2.org/nexus/content/groups/wso2-public//eclipse/validateutility/0.95/validateutility-0.95.pom [INFO] Unable to find resource 'eclipse:validateutility:pom:0.95' in repository wso2-nexus ( http://maven.wso2.org/nexus/content/groups/wso2-public/) Downloading: http://repo1.maven.org/maven2/eclipse/validateutility/0.95/validateutility-0.95.pom [INFO] Unable to find resource 'eclipse:validateutility:pom:0.95' in repository central (http://repo1.maven.org/maven2) [INFO] [incremental-build:incremental-build {execution: default}] [INFO] Verifying module descriptor ... [INFO] Pom descriptor modification detected. [INFO] Deleting /home/carbon/carbon/components/registry/org.wso2.carbon.registry.extensions/target [INFO] [clean:clean {execution: auto-clean}] [INFO] Deleting /home/carbon/carbon/components/registry/org.wso2.carbon.registry.extensions/target [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [compiler:compile {execution: default-compile}] [INFO] Compiling 45 source files to /home/carbon/carbon/components/registry/org.wso2.carbon.registry.extensions/target/classes [INFO] - [ERROR] COMPILATION ERROR : [INFO] - [ERROR] /home/carbon/carbon/components/registry/org.wso2.carbon.registry.extensions/src/main/java/org/wso2/carbon/registry/extensions/handlers/utils/WSDLProcessor.java:[399,22] cannot find symbol symbol : method getBindingPolicyReference() location: interface javax.wsdl.Binding [ERROR] /home/carbon/carbon/components/registry/org.wso2.carbon.registry.extensions/src/main/java/org/wso2/carbon/registry/extensions/handlers/utils/WSDLProcessor.java:[401,60] cannot find symbol symbol : method getBindingPolicyReference() location: interface javax.wsdl.Binding [INFO] 2 errors [INFO] - [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure /home/carbon/carbon/components/registry/org.wso2.carbon.registry.extensions/src/main/java/org/wso2/carbon/registry/extensions/handlers/utils/WSDLProcessor.java:[399,22] cannot find symbol symbol : method getBindingPolicyReference() location: interface javax.wsdl.Binding /home/carbon/carbon/components/registry/org.wso2.carbon.registry.extensions/src/main/java/org/wso2/carbon/registry/extensions/handlers/utils/WSDLProcessor.java:[401,60] cannot find symbol symbol : method getBindingPolicyReference() location: interface javax.wsdl.Binding [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 115 minutes 55 seconds [INFO] Finished at: Tue May 03 05:29:58 UTC 2011 [INFO] Final Memory: 1354M/1658M [INFO] ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Regards, Tharindu ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- *Afkham Azeez* Senior Software Architect Senior Manager; WSO2, Inc.; http://wso2.com, * * *Member; Apache Software Foundation;
[Carbon-dev] Upgrade quartz version as part of CARBON-9523
Please take svn up and build orbit/quartz (a new bundle) features/synapse features/stratos products/manager products/esb ~ Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Hector causing build break in components!
Azeez, is this now working ? ~ Indika On Thu, Apr 28, 2011 at 6:28 PM, Afkham Azeez az...@wso2.com wrote: I've been trying to build from morning, and somebody keeps breaking the build! [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) me.prettyprint:hector-core:jar:0.7.0-23-wso2v1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=me.prettyprint -DartifactId=hector-core -Dversion=0.7.0-23-wso2v1 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=me.prettyprint -DartifactId=hector-core -Dversion=0.7.0-23-wso2v1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.wso2.carbon:org.wso2.carbon.cassandra.dataaccess:bundle:3.2.0-SNAPSHOT 2) me.prettyprint:hector-core:jar:0.7.0-23-wso2v1 -- 1 required artifact is missing. for artifact: org.wso2.carbon:org.wso2.carbon.cassandra.dataaccess:bundle:3.2.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) NOTE: Maven is executing in offline mode. Any artifacts not already in your local repository will be inaccessible. [INFO] [INFO] For more information, run Maven with the -e switch -- *Afkham Azeez* Senior Software Architect Senior Manager; 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* ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Quartz Scheduler Version is UNKNOWN.UNKNOWN.UNKNOWN
Opps, I am sorry. I will add a default 'build.properties' to the quratz jar. However, for changing INFO - DEBUG, we have to patch the quartz (branch into dependencies and patch). Thanks, Indika On Wed, Apr 27, 2011 at 6:57 PM, Charitha Kankanamge chari...@wso2.comwrote: Hi Indika, We still see the following logs at AS startup. [2011-04-27 18:17:04,229] INFO {org.quartz.simpl.SimpleThreadPool} - Job execution threads will use class loader of thread: Framework Event Dispatcher [2011-04-27 18:17:04,259] INFO {org.quartz.core.QuartzScheduler} - Quartz Scheduler v.UNKNOWN.UNKNOWN.UNKNOWN created. [2011-04-27 18:17:04,261] INFO {org.quartz.simpl.RAMJobStore} - RAMJobStore initialized. [2011-04-27 18:17:04,261] INFO {org.quartz.impl.StdSchedulerFactory} - Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties' [2011-04-27 18:17:04,261] INFO {org.quartz.impl.StdSchedulerFactory} - Quartz scheduler version: UNKNOWN.UNKNOWN.UNKNOWN [2011-04-27 18:17:04,262] INFO {org.quartz.core.QuartzScheduler} - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started. Can we remove (log these at WARN or DEBUG) these logs ASAP? Reported a jira to keep track of this [1] [1]https://wso2.org/jira/browse/CARBON-9523 Regards Charitha On Fri, Apr 1, 2011 at 11:24 AM, Indika Kumara ind...@wso2.com wrote: Follwing is the corresponding code from org.quartz.core.QuartzScheduler. The issue is due to there is no 'build.properties' in the quartz orbit bundle though it is in the quartz jar (So synapse doesn't print the above log message). Have to fix the orbit bundle. Will check. private static String VERSION_MAJOR = UNKNOWN; private static String VERSION_MINOR = UNKNOWN; private static String VERSION_ITERATION = UNKNOWN; static { Properties props = new Properties(); try { InputStream is = QuartzScheduler.class.getResourceAsStream(/build.properties); if(is != null) { props.load(is); VERSION_MAJOR = props.getProperty(version.major); VERSION_MINOR = props.getProperty(version.minor); VERSION_ITERATION = props.getProperty(version.iter); } } catch (IOException e) { (LogFactory.getLog(QuartzScheduler.class)).error( Error loading version info from build.properties., e); } } ~ Indika On Fri, Apr 1, 2011 at 10:31 AM, Indika Kumara ind...@wso2.com wrote: Senaka, I will look into this. BTW, I have not seen this before. Thanks, Indika On Thu, Mar 31, 2011 at 11:02 PM, Senaka Fernando sen...@wso2.comwrote: Folks, $subject gets printed on the logs of most products that we have and looks very ugly. Thanks, Senaka. -- *Senaka Fernando* Product Manager - WSO2 Governance Registry; Associate Technical Lead; WSO2, Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://www.linkedin.com/in/senakafernando *Lean . Enterprise . Middleware ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] For missing dependency build errors in Cassandra feature (if you get)
For missing dependency build errors in Cassandra feature , please update the 'dependencies' and build 'dependencies\hector'. I had to copy hector 7.0.23 tag to do some critical fixes related to Node auto discovery (already discussed in the hector mailing list) Thanks, Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Cassandra Server Feature has a direct dependency to org.codehaus.jackson:jackson-core-asl:jar
Sumedha, it is an OSGI bundle. Following is the content of the manifest. Manifest-Version: 1.0 Export-Package: org.codehaus.jackson.io;uses:=org.codehaus.jackson.ut il,org.codehaus.jackson;version=1.4.0,org.codehaus.jackson.util;us es:=org.codehaus.jackson;version=1.4.0,org.codehaus.jackson.annot ate;version=1.4.0,org.codehaus.jackson;uses:=org.codehaus.jackson. annotate,org.codehaus.jackson.type,org.codehaus.jackson.io,org.codeha us.jackson.util;version=1.4.0,org.codehaus.jackson.type;version=1 .4.0 Private-Package: org.codehaus.jackson.impl,org.codehaus.jackson.sym Implementation-Title: Jackson JSON processor Implementation-Version: 1.4.0 Built-By: tatu Specification-Vendor: http://www.ietf.org/rfc/rfc4627.txt Tool: Bnd-unknown version Bundle-Name: Jackson JSON processor Created-By: 1.6.0_17 (Sun Microsystems Inc.) Bundle-RequiredExecutionEnvironment: J2SE-1.5 Implementation-Vendor: http://fasterxml.com Bundle-Vendor: http://fasterxml.com Bundle-Version: 1.4.0 Bnd-LastModified: 1261271542215 Specification-Title: Json - JavaScript Object Notation Bundle-ManifestVersion: 2 Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt Specification-Version: 1.0 Import-Package: org.codehaus.jackson;version=1.4.0,org.codehaus.jack son.annotate;version=1.4.0,org.codehaus.jackson.io;version=1.4.0, org.codehaus.jackson.type;version=1.4.0,org.codehaus.jackson.util;v ersion=1.4.0 Bundle-SymbolicName: jackson-core-asl BTW, If it is wrong, I will fix... ~ Indika On Sat, Apr 23, 2011 at 10:46 AM, Sumedha Rubasinghe sume...@wso2.comwrote: $subject. It's wrong to have direct dependencies to third party libraries unless it's an OSGi bundle. Get this through orbit bundle. /sumedha [INFO] [INFO] Building WSO2 Carbon - Cassandra Server Feature [INFO]task-segment: [clean, install] [INFO] [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting /Users/sumedha/projects/carbon/trunk/features/cassandra/org.wso2.carbon.cassandra.server.feature/target [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.codehaus.jackson:jackson-core-asl:jar:1.4.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.jackson -DartifactId=jackson-core-asl -Dversion=1.4.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.jackson -DartifactId=jackson-core-asl -Dversion=1.4.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.wso2.carbon:org.wso2.carbon.cassandra.server.feature:pom:3.2.0-SNAPSHOT 2) org.codehaus.jackson:jackson-core-asl:jar:1.4.0 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Issues with load testing the Cassandra component
Seems like the processing at the server is slow. I am yet to run a perf test. I will run a perf test and fix the issue. Tharindu, could I get the same test setup you are using? I will meet you tomorrow off-line. Thanks, Indika On Tue, Apr 19, 2011 at 5:32 PM, Tharindu Mathew thari...@wso2.com wrote: I'm currently load testing a piece of code using the cassandra client component. I'm using a Cassandra server running separately. It seems that the error is coming from the client side. My load test is done with level of concurrency = 50. The stack trace is given below: [2011-04-19 15:06:16,008] INFO {me.prettyprint.cassandra.hector.TimingLogger} - start[1303205660385] time[115623] tag[READ.fail_] [2011-04-19 15:06:15,998] INFO {me.prettyprint.cassandra.connection.CassandraHostRetryService} - Downed Host retry shutdown complete [2011-04-19 15:06:15,997] ERROR {me.prettyprint.cassandra.connection.HConnectionManager} - Exception: me.prettyprint.hector.api.exceptions.HTimedOutException: TimedOutException() at me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:32) at me.prettyprint.cassandra.service.KeyspaceServiceImpl$4.execute(KeyspaceServiceImpl.java:194) at me.prettyprint.cassandra.service.KeyspaceServiceImpl$4.execute(KeyspaceServiceImpl.java:176) at me.prettyprint.cassandra.service.Operation.executeAndSetResult(Operation.java:101) at me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:155) at me.prettyprint.cassandra.service.KeyspaceServiceImpl.operateWithFailover(KeyspaceServiceImpl.java:129) at me.prettyprint.cassandra.service.KeyspaceServiceImpl.getSuperRangeSlices(KeyspaceServiceImpl.java:198) at me.prettyprint.cassandra.model.thrift.ThriftRangeSuperSlicesQuery$1.doInKeyspace(ThriftRangeSuperSlicesQuery.java:71) at me.prettyprint.cassandra.model.thrift.ThriftRangeSuperSlicesQuery$1.doInKeyspace(ThriftRangeSuperSlicesQuery.java:67) at me.prettyprint.cassandra.model.KeyspaceOperationCallback.doInKeyspaceAndMeasure(KeyspaceOperationCallback.java:20) at me.prettyprint.cassandra.model.ExecutingKeyspace.doExecute(ExecutingKeyspace.java:72) at me.prettyprint.cassandra.model.thrift.ThriftRangeSuperSlicesQuery.execute(ThriftRangeSuperSlicesQuery.java:66) at org.wso2.carbon.bam.receiver.persistence.NoSQLDataStore.persistEvent(NoSQLDataStore.java:135) at org.wso2.carbon.bam.receiver.internal.QueueWorker.run(QueueWorker.java:78) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: TimedOutException() at org.apache.cassandra.thrift.Cassandra$get_range_slices_result.read(Cassandra.java:12104) at org.apache.cassandra.thrift.Cassandra$Client.recv_get_range_slices(Cassandra.java:732) at org.apache.cassandra.thrift.Cassandra$Client.get_range_slices(Cassandra.java:704) at me.prettyprint.cassandra.service.KeyspaceServiceImpl$4.execute(KeyspaceServiceImpl.java:182) ... 18 more -- Regards, Tharindu ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Errorwith Cassandra node auto discover service
Thanks Tharindu for reporting issues. Please report any issue related to Cassandra. As my support week is over, I will begin fixing all those issues. ~ Indika On Mon, Apr 18, 2011 at 5:12 PM, Tharindu Mathew thari...@wso2.com wrote: I'm doing some work when I came across this issue with Cassandra. It seems that the session used to connect is expiring when it tries to discover new nodes. I'm using the Cassandra carbon component. From what I observed, reads and writes does not seem to be affected with this.The stack trace is given below: [2011-04-18 16:38:45,468] INFO {me.prettyprint.cassandra.connection.NodeAutoDiscoverService} - using existing hosts [localhost(127.0.0.1):9160] [2011-04-18 16:38:45,469] ERROR {me.prettyprint.cassandra.connection.NodeAutoDiscoverService} - Downed Host retry failed attempt to verify CassandraHost InvalidRequestException(why:You have not logged in) at org.apache.cassandra.thrift.Cassandra$describe_keyspaces_result.read(Cassandra.java:18413) at org.apache.cassandra.thrift.Cassandra$Client.recv_describe_keyspaces(Cassandra.java:1034) at org.apache.cassandra.thrift.Cassandra$Client.describe_keyspaces(Cassandra.java:1010) at me.prettyprint.cassandra.connection.NodeAutoDiscoverService.discoverNodes(NodeAutoDiscoverService.java:81) at me.prettyprint.cassandra.connection.NodeAutoDiscoverService$QueryRing.run(NodeAutoDiscoverService.java:56) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205) 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:619) -- Regards, Tharindu ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Cassandra Server Feature Build Issues
Senaka , I am sorry. If you can build on-line, you will get those. if it is wrong, then, I will move those dependencies to the component. These are needed when ruining the Cassandra. I will add a test case to start an embedded Cassandra server within a test case too. Thanks, Indka On Tue, Apr 5, 2011 at 5:31 PM, Senaka Fernando sen...@wso2.com wrote: This feature uses dependencies that are not used to compile components. Can someone explain why? I compiled online upto components, and tried build offline there onwards, and ran into this. [INFO] [INFO] Building WSO2 Carbon - Cassandra Server Feature [INFO]task-segment: [clean, install] [INFO] [INFO] [clean:clean {execution: default-clean}] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.codehaus.jackson:jackson-core-asl:jar:1.4.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.jackson -DartifactId=jackson-core-asl -Dversion=1.4.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.jackson -DartifactId=jackson-core-asl -Dversion=1.4.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.wso2.carbon:org.wso2.carbon.cassandra.server.feature:pom:3.2.0-SNAPSHOT 2) org.codehaus.jackson:jackson-core-asl:jar:1.4.0 2) org.mortbay.jetty:jetty-util:jar:6.1.21 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.mortbay.jetty -DartifactId=jetty-util -Dversion=6.1.21 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.mortbay.jetty -DartifactId=jetty-util -Dversion=6.1.21 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.wso2.carbon:org.wso2.carbon.cassandra.server.feature:pom:3.2.0-SNAPSHOT 2) org.mortbay.jetty:jetty-util:jar:6.1.21 3) org.codehaus.jackson:jackson-mapper-asl:jar:1.4.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.jackson -DartifactId=jackson-mapper-asl -Dversion=1.4.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.jackson -DartifactId=jackson-mapper-asl -Dversion=1.4.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.wso2.carbon:org.wso2.carbon.cassandra.server.feature:pom:3.2.0-SNAPSHOT 2) org.codehaus.jackson:jackson-mapper-asl:jar:1.4.0 -- 3 required artifacts are missing. for artifact: org.wso2.carbon:org.wso2.carbon.cassandra.server.feature:pom:3.2.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) NOTE: Maven is executing in offline mode. Any artifacts not already in your local repository will be inaccessible. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 3 minutes 33 seconds [INFO] Finished at: Tue Apr 05 16:57:28 IST 2011 [INFO] Final Memory: 649M/1717M [INFO] Thanks, Senaka. -- *Senaka Fernando* Product Manager - WSO2 Governance Registry; Associate Technical Lead; WSO2, Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://www.linkedin.com/in/senakafernando *Lean . Enterprise . Middleware ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Write some native code to restart the server?
then +1 ~ Indika On Tue, Apr 5, 2011 at 11:27 PM, Afkham Azeez az...@wso2.com wrote: No On Apr 5, 2011 10:30 PM, Indika Kumara ind...@wso2.com wrote: Would this affect the graceful shutdown of HTTP listeners, etc.? ~ Indika On Tue, Apr 5, 2011 at 2:48 PM, Afkham Azeez az...@wso2.com wrote: We can do something like the following. Anybody interested can run this code and see what happens :) import java.io.File; import java.io.IOException; import java.lang.management.ManagementFactory; public class Main { public static void main(String[] args) throws IOException, InterruptedException { StringBuilder cmd = new StringBuilder(); cmd.append(System.getProperty(java.home) + File.separator + bin + File.separator + java ); for (String jvmArg : ManagementFactory.getRuntimeMXBean().getInputArguments()) { cmd.append(jvmArg + ); } cmd.append(-cp ).append(ManagementFactory.getRuntimeMXBean().getClassPath()).append( ); cmd.append(Main.class.getName()).append( ); for (String arg : args) { ... [Message clipped] ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Quartz Scheduler Version is UNKNOWN.UNKNOWN.UNKNOWN
Senaka, I will look into this. BTW, I have not seen this before. Thanks, Indika On Thu, Mar 31, 2011 at 11:02 PM, Senaka Fernando sen...@wso2.com wrote: Folks, $subject gets printed on the logs of most products that we have and looks very ugly. Thanks, Senaka. -- *Senaka Fernando* Product Manager - WSO2 Governance Registry; Associate Technical Lead; WSO2, Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://www.linkedin.com/in/senakafernando *Lean . Enterprise . Middleware ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Quartz Scheduler Version is UNKNOWN.UNKNOWN.UNKNOWN
Follwing is the corresponding code from org.quartz.core.QuartzScheduler. The issue is due to there is no 'build.properties' in the quartz orbit bundle though it is in the quartz jar (So synapse doesn't print the above log message). Have to fix the orbit bundle. Will check. private static String VERSION_MAJOR = UNKNOWN; private static String VERSION_MINOR = UNKNOWN; private static String VERSION_ITERATION = UNKNOWN; static { Properties props = new Properties(); try { InputStream is = QuartzScheduler.class.getResourceAsStream(/build.properties); if(is != null) { props.load(is); VERSION_MAJOR = props.getProperty(version.major); VERSION_MINOR = props.getProperty(version.minor); VERSION_ITERATION = props.getProperty(version.iter); } } catch (IOException e) { (LogFactory.getLog(QuartzScheduler.class)).error( Error loading version info from build.properties., e); } } ~ Indika On Fri, Apr 1, 2011 at 10:31 AM, Indika Kumara ind...@wso2.com wrote: Senaka, I will look into this. BTW, I have not seen this before. Thanks, Indika On Thu, Mar 31, 2011 at 11:02 PM, Senaka Fernando sen...@wso2.com wrote: Folks, $subject gets printed on the logs of most products that we have and looks very ugly. Thanks, Senaka. -- *Senaka Fernando* Product Manager - WSO2 Governance Registry; Associate Technical Lead; WSO2, Inc.; http://wso2.com* Member; Apache Software Foundation; http://apache.org E-mail: senaka AT wso2.com **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 Linked-In: http://www.linkedin.com/in/senakafernando *Lean . Enterprise . Middleware ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Is it possible to put the eventing service in to carbon context?
But, would it be possible to move all these things in to CarbonContext? OSGIServiceLocator was a generic class to locate a service and there is no relation with rule or a particular OSGI service and was a workaround to lookup an OSGI service when it is impossible to use a declarative service reference for accessing an OSGI service. ~ Indika On Wed, Mar 30, 2011 at 12:17 PM, Supun Kamburugamuva su...@wso2.comwrote: I can simply put the eventing service in to mediation initializer and then put it to the configuration context as a property. But this may be not the correct approach. Thanks, Supun.. On Wed, Mar 30, 2011 at 11:24 AM, Indika Kumara ind...@wso2.com wrote: A year back, I wrote a class to be used in the rule mediator to pick some OSGI services. Many OSGI services exposed from the carbon components cannot be otherwise accessed by a mediator. Thanks, Indika [1] https://svn.wso2.org/repos/wso2/trunk/carbon/components/rule/org.wso2.carbon.rule.server/src/main/java/org/wso2/carbon/rule/server/OSGIServiceLocator.java On Wed, Mar 30, 2011 at 11:46 AM, Supun Kamburugamuva su...@wso2.com wrote: From a ESB mediator we would like to get the EventBroker service. But since mediators are fragments they cannot access this service. Is it possible to put the eventing service in to carbon context? Thanks, -- Supun Kamburugamuva Technical Lead Product Manager, WSO2 Inc.; http://wso2.com Member, Apache Software Foundation; http://www.apache.org WSO2 Inc.; http://wso2.org E-mail: su...@wso2.com; Mobile: +94 77 431 3585 Blog: http://supunk.blogspot.com ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Supun Kamburugamuva Technical Lead Product Manager, WSO2 Inc.; http://wso2.com Member, Apache Software Foundation; http://www.apache.org WSO2 Inc.; http://wso2.org E-mail: su...@wso2.com; Mobile: +94 77 431 3585 Blog: http://supunk.blogspot.com ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Is it possible to put the eventing service in to carbon context?
A year back, I wrote a class to be used in the rule mediator to pick some OSGI services. Many OSGI services exposed from the carbon components cannot be otherwise accessed by a mediator. Thanks, Indika [1] https://svn.wso2.org/repos/wso2/trunk/carbon/components/rule/org.wso2.carbon.rule.server/src/main/java/org/wso2/carbon/rule/server/OSGIServiceLocator.java On Wed, Mar 30, 2011 at 11:46 AM, Supun Kamburugamuva su...@wso2.comwrote: From a ESB mediator we would like to get the EventBroker service. But since mediators are fragments they cannot access this service. Is it possible to put the eventing service in to carbon context? Thanks, -- Supun Kamburugamuva Technical Lead Product Manager, WSO2 Inc.; http://wso2.com Member, Apache Software Foundation; http://www.apache.org WSO2 Inc.; http://wso2.org E-mail: su...@wso2.com; Mobile: +94 77 431 3585 Blog: http://supunk.blogspot.com ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Error installing artifact 'org.apache.cassandra:apache-cassandra:jar - dependencies/cassandra/build/apache-cassandra-0.7.0.jar
Hi, Can you try with setting ANT_HOME .. I think you have not post the complete error log. Was the root cause 'cannot find some ant class'? ~ Indika On Tue, Mar 22, 2011 at 8:33 AM, Thilini Ishaka thil...@wso2.com wrote: * *Hi, I am getting following error in dependency/cassandra module. * Error installing artifact 'org.apache.cassandra:apache-cassandra:jar': Error installing artifact: File /home/thilini/carbon/dependencies/cassandra/build/apache-cassandra-0.7.0.jar does not exist * Any idea please? Thanks -- Thilini Ishaka Software Engineer WSO2 Inc ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Now QPid build is failing for me!
H, Could you please let me know how you avoided the error you post in your previous reply. I am getting it now. ~ Indika On Tue, Mar 22, 2011 at 6:44 PM, Vijayaratha Vijayasingam rat...@wso2.comwrote: with the fix done by azeez, qpid/ cassandra builds fine in windows without setting ant_home.. Thanks -Ratha. On 22 March 2011 16:18, Danushka Menikkumbura danus...@wso2.com wrote: Ratha, If you are still on Windows please try [1] and see. [1] - http://www.coderanch.com/t/109038/tools/set-classpath-ant Thanks, Danushka On Tue, Mar 22, 2011 at 3:36 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: In windows i get following error..i haven't changed anything locally(ant--ant.bat..) ps:-My java-home is set.. compile: [echo] Targeting : 1.5 jar.manifest: jar.nomanifest: jar: precompile-tests: compile-tests: [javac] C:\Projects\trunk\dependencies\qpid\java\module.xml:254: warning: 'includeantruntime' wa s not set, defaulting to build.sysclasspath=last; set to false for repeatable builds jar-tests: libs: copy-bin: copy-etc: postbuild: build: [echo] Running ant for module : client prepare: precompile: compile: [echo] Targeting : 1.5 [javac] Compiling 1 source file to C:\Projects\trunk\dependencies\qpid\java\build\scratch\client \classes [INFO] [ERROR] BUILD ERROR [INFO] [INFO] An Ant BuildException has occured: The following error occurred while executing this line: C:\Projects\trunk\dependencies\qpid\java\build.xml:151: The following error occurred while executing this line: C:\Projects\trunk\dependencies\qpid\java\build.xml:58: The following error occurred while executing this line: C:\Projects\trunk\dependencies\qpid\java\module.xml:232: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to C:\Program Files\Java\jdk1.6.0_20\jre [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 9 seconds [INFO] Finished at: Tue Mar 22 15:33:52 IST 2011 [INFO] Final Memory: 10M/247M [INFO] -Ratha. On 22 March 2011 15:19, Danushka Menikkumbura danus...@wso2.com wrote: Same change should go into Cassandra too. Danushka On Tue, Mar 22, 2011 at 3:17 PM, Danushka Menikkumbura danus...@wso2.com wrote: I tested it on Linux. Works fine!. Thanks Azeez!. Danushka On Tue, Mar 22, 2011 at 2:57 PM, Afkham Azeez az...@wso2.com wrote: This works. Guys, before you do anything, you have to read the documentation! http://maven.apache.org/plugins/maven-antrun-plugin/usage.html On Tue, Mar 22, 2011 at 2:48 PM, Afkham Azeez az...@wso2.com wrote: Have you tried ant antfile=build.xml/ On Tue, Mar 22, 2011 at 2:35 PM, Danushka Menikkumbura danus...@wso2.com wrote: Using a java task to launch Ant from Maven is the only way out to get it to work across platforms. Anybody out there who know Ant/Maven better than I do please help solve this if you think setting ANT_HOME is an overhead. Danushka On Tue, Mar 22, 2011 at 2:24 PM, Afkham Azeez az...@wso2.comwrote: I didn't have to set ANT_HOME earlier and the build worked fine. Now dont force me to set that variable, just get it back to what it was and make it work. If this is needed on Windows, handle that case differently. On Tue, Mar 22, 2011 at 2:03 PM, Afkham Azeez az...@wso2.comwrote: [INFO] Deleting /Users/azeez/projects/wso2/org/trunk/carbon/dependencies/qpid/target [WARNING] DEPRECATED [tasks]: Use target instead [INFO] [antrun:run {execution: compile}] [WARNING] Parameter tasks is deprecated, use target instead [INFO] Executing tasks main: [java] Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher [java] Caused by: java.lang.ClassNotFou [java] ndException: org.apache.tools.ant.launch.Launcher [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:248) [java] Java Result: 1 [java] Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher [java] Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.launch.Launcher
Re: [Carbon-dev] Now QPid build is failing for me!
Thanks Shankar and Azeez ...It is working now. ~ Indika On Tue, Mar 22, 2011 at 6:55 PM, Afkham Azeez az...@wso2.com wrote: Please get an SVN up of qpid and Cassandra. You should not see these errors anymore. Thanks Shankar. On Tue, Mar 22, 2011 at 6:21 PM, Indika Kumara ind...@wso2.com wrote: H, Could you please let me know how you avoided the error you post in your previous reply. I am getting it now. ~ Indika On Tue, Mar 22, 2011 at 6:44 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: with the fix done by azeez, qpid/ cassandra builds fine in windows without setting ant_home.. Thanks -Ratha. On 22 March 2011 16:18, Danushka Menikkumbura danus...@wso2.com wrote: Ratha, If you are still on Windows please try [1] and see. [1] - http://www.coderanch.com/t/109038/tools/set-classpath-ant Thanks, Danushka On Tue, Mar 22, 2011 at 3:36 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: In windows i get following error..i haven't changed anything locally(ant--ant.bat..) ps:-My java-home is set.. compile: [echo] Targeting : 1.5 jar.manifest: jar.nomanifest: jar: precompile-tests: compile-tests: [javac] C:\Projects\trunk\dependencies\qpid\java\module.xml:254: warning: 'includeantruntime' wa s not set, defaulting to build.sysclasspath=last; set to false for repeatable builds jar-tests: libs: copy-bin: copy-etc: postbuild: build: [echo] Running ant for module : client prepare: precompile: compile: [echo] Targeting : 1.5 [javac] Compiling 1 source file to C:\Projects\trunk\dependencies\qpid\java\build\scratch\client \classes [INFO] [ERROR] BUILD ERROR [INFO] [INFO] An Ant BuildException has occured: The following error occurred while executing this line: C:\Projects\trunk\dependencies\qpid\java\build.xml:151: The following error occurred while executing this line: C:\Projects\trunk\dependencies\qpid\java\build.xml:58: The following error occurred while executing this line: C:\Projects\trunk\dependencies\qpid\java\module.xml:232: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to C:\Program Files\Java\jdk1.6.0_20\jre [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 9 seconds [INFO] Finished at: Tue Mar 22 15:33:52 IST 2011 [INFO] Final Memory: 10M/247M [INFO] -Ratha. On 22 March 2011 15:19, Danushka Menikkumbura danus...@wso2.comwrote: Same change should go into Cassandra too. Danushka On Tue, Mar 22, 2011 at 3:17 PM, Danushka Menikkumbura danus...@wso2.com wrote: I tested it on Linux. Works fine!. Thanks Azeez!. Danushka On Tue, Mar 22, 2011 at 2:57 PM, Afkham Azeez az...@wso2.comwrote: This works. Guys, before you do anything, you have to read the documentation! http://maven.apache.org/plugins/maven-antrun-plugin/usage.html On Tue, Mar 22, 2011 at 2:48 PM, Afkham Azeez az...@wso2.comwrote: Have you tried ant antfile=build.xml/ On Tue, Mar 22, 2011 at 2:35 PM, Danushka Menikkumbura danus...@wso2.com wrote: Using a java task to launch Ant from Maven is the only way out to get it to work across platforms. Anybody out there who know Ant/Maven better than I do please help solve this if you think setting ANT_HOME is an overhead. Danushka On Tue, Mar 22, 2011 at 2:24 PM, Afkham Azeez az...@wso2.comwrote: I didn't have to set ANT_HOME earlier and the build worked fine. Now dont force me to set that variable, just get it back to what it was and make it work. If this is needed on Windows, handle that case differently. On Tue, Mar 22, 2011 at 2:03 PM, Afkham Azeez az...@wso2.comwrote: [INFO] Deleting /Users/azeez/projects/wso2/org/trunk/carbon/dependencies/qpid/target [WARNING] DEPRECATED [tasks]: Use target instead [INFO] [antrun:run {execution: compile}] [WARNING] Parameter tasks is deprecated, use target instead [INFO] Executing tasks main: [java] Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher [java] Caused by: java.lang.ClassNotFou [java] ndException: org.apache.tools.ant.launch.Launcher [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) [java] at sun.misc.Launcher$AppClassLoader.loadClass
Re: [Carbon-dev] dependencies/cassandra not building
It seems like ANT_HOME has not been set. Could you please try again by setting ANT_HOME? ~ Indika On Sun, Mar 20, 2011 at 3:53 PM, Sanjiva Weerawarana sanj...@wso2.comwrote: Is this POM using ant properly? Yes I have ant on my machine (MacOSX). (I tried to build this dir manually because the entire build failed here.) $ mvn install -Dmaven.test.skip=true [INFO] Scanning for projects... [INFO] [INFO] Building Apache Cassandra [INFO]task-segment: [install] [INFO] [INFO] [incremental-build:incremental-build {execution: default}] [INFO] Verifying module descriptor ... [INFO] Verifying parent modules... [INFO] Verifying resources... [INFO] Resources directory does not exist : /Users/sanjiva/Projects/carbon/dependencies/cassandra/src/main/resources [INFO] Verifying sources... [INFO] No sources to check ... [INFO] [antrun:run {execution: compile}] [INFO] Executing tasks main: [java] Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher [java] Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.launch.Launcher [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:248) [java] Java Result: 1 [java] Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher [java] Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.launch.Launcher [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:248) [java] Java Result: 1 [INFO] Executed tasks [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [install:install {execution: default-install}] [INFO] Installing /Users/sanjiva/Projects/carbon/dependencies/cassandra/pom.xml to /Users/sanjiva/.m2/repository/org/apache/cassandra/apache-cassandra/0.7.0-wso2v1/apache-cassandra-0.7.0-wso2v1.pom [INFO] [install:install-file {execution: install-cassandra jar}] [INFO] Installing /Users/sanjiva/Projects/carbon/dependencies/cassandra/build/apache-cassandra-0.7.0.jar to /Users/sanjiva/.m2/repository/org/apache/cassandra/apache-cassandra/0.7.0-wso2v1/apache-cassandra-0.7.0-wso2v1.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error installing artifact 'org.apache.cassandra:apache-cassandra:jar': Error installing artifact: File /Users/sanjiva/Projects/carbon/dependencies/cassandra/build/apache-cassandra-0.7.0.jar does not exist [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 5 seconds [INFO] Finished at: Sun Mar 20 15:21:30 IST 2011 [INFO] Final Memory: 18M/81M [INFO] -- Sanjiva Weerawarana, Ph.D. Founder, Chairman CEO; WSO2, Inc.; http://wso2.com/ email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1 650 265 8311 blog: http://sanjiva.weerawarana.org/ Lean . Enterprise . Middleware ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Build
Sorry... Delayed the changes until someone verify ..Fixed ... ~ Indika On Fri, Mar 18, 2011 at 4:13 PM, Samisa Abeysinghe sam...@wso2.com wrote: Now it is in Casendra I still have trouble with this :( [INFO] [ERROR] BUILD ERROR [INFO] [INFO] An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run program ant (in directory D:\svn\carbon\dependencies\cass andra): CreateProcess error=2, The system cannot find the file specified [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 22 minutes 50 seconds [INFO] Finished at: Fri Mar 18 10:03:02 IST 2011 [INFO] Final Memory: 615M/867M [INFO] D:\svn\carbon\dependenciesecho %ANT_HOME% E:\apache-ant-1.8.1 On Fri, Mar 18, 2011 at 12:31 AM, Danushka Menikkumbura danus...@wso2.com wrote: This is now fixed using a java task. Tested on Linux and Windows. You need to have the env variable ANT_HOME set in order to get this to work. Thanks, Danushka On Thu, Mar 17, 2011 at 1:20 PM, Danushka Menikkumbura danus...@wso2.com wrote: The fix suggested by Shankar did not work for Qpid due to some environment variable issue. That is why it uses exec task. Please use ant.bat in place of ant until I find a fix. Thanks, Danushka On Thu, Mar 17, 2011 at 1:08 PM, Samisa Abeysinghe sam...@wso2.comwrote: On Thu, Mar 17, 2011 at 11:22 AM, Indika Kumara ind...@wso2.comwrote: Shankar, thanks you very much . It worked perfectly. if some one in Linux can verify the build, we can commit it. Can someone fix this please. I am stuck at qpid even with tests skipped on Windows. :( Thanks, Samisa... Samisa Abeysinghe VP Engineering WSO2 Inc. http://wso2.com http://wso2.org ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev Thanks, Samisa... Samisa Abeysinghe VP Engineering WSO2 Inc. http://wso2.com http://wso2.org ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] Windows Error Building org.wso2.carbon.registry.extensions.ui
Hi All, Is anyone aware of a proper solution for the issue occurred with ant java task with *fork=true? *. I am aware that the fork=false is a workaround. java classname=org.apache.axis2.wsdl.WSDL2Java *fork=true* Follwig is the error I got when building org.wso2.carbon.registry.extensions.ui Its dependencies (if any) will NOT be available to the current build. [WARNING] Overriding profile: 'product-wsas' (source: pom) with new instance fro m source: pom [WARNING] Overriding profile: 'product-wsas' (source: pom) with new instance fro m source: pom [WARNING] Overriding profile: 'product-wsas' (source: pom) with new instance fro m source: pom [WARNING] Overriding profile: 'product-wsas' (source: pom) with new instance fro m source: pom [WARNING] Overriding profile: 'product-wsas' (source: pom) with new instance fro m source: pom [INFO] [antrun:run {execution: source-code-generation}] [INFO] Executing tasks [java] java.io.IOException: Cannot run program C:\Program Files\Java\jdk1. 6.0_23\jre\bin\java.exe: CreateProcess error=87, The parameter is incorrect [java] at org.apache.tools.ant.taskdefs.Java.fork(Java.java:758) [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:171) [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84) [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja va:275) [java] at org.apache.tools.ant.Task.perform(Task.java:364) [java] at org.apache.tools.ant.Target.execute(Target.java:341) [java] at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(A bstractAntMojo.java:108) [java] at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo. java:83) [java] at org.apache.maven.plugin.DefaultPluginManager.executeMojo(Defa ultPluginManager.java:490) [java] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGo als(DefaultLifecycleExecutor.java:694) [java] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGo alWithLifecycle(DefaultLifecycleExecutor.java:556) [java] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGo al(DefaultLifecycleExecutor.java:535) [java] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGo alAndHandleFailures(DefaultLifecycleExecutor.java:387) [java] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTa skSegments(DefaultLifecycleExecutor.java:348) [java] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(D efaultLifecycleExecutor.java:180) [java] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328 ) [java] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) [java] at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) [java] at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMai n.java:60) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces sorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet hodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.jav a:315) [java] at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) [java] at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.j ava:430) [java] at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [java] Caused by: java.io.IOException: Cannot run program C:\Program Files \Java\jdk1.6.0_23\jre\bin\java.exe: CreateProcess error=87, The parameter is in correct [java] at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) [java] at java.lang.Runtime.exec(Runtime.java:593) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces sorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet hodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.e xec(Execute.java:834) [java] at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435 ) [java] at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:44 9) [java] at org.apache.tools.ant.taskdefs.Java.fork(Java.java:751) [java] ... 26 more [java] Caused by: java.io.IOException: CreateProcess error=87, The paramete r is incorrect [java] at java.lang.ProcessImpl.create(Native Method) [java] at java.lang.ProcessImpl.init(ProcessImpl.java:81) [java] at java.lang.ProcessImpl.start(ProcessImpl.java:30) [java] at
Re: [Carbon-dev] facing build issue @ qpid dependency in windows..
This issue is even in the apache ant FAQ. Workaround is to given full-path to executable file. exec dir=${basedir} executable=* ${env.ANT_HOME}bin\ant.bat* failonerror=true arg line=clean/ /exec On Wed, Mar 16, 2011 at 5:10 PM, Vijayaratha Vijayasingam rat...@wso2.comwrote: Hi, My 'ant' classpath is set... C:\Projects\trunk\dependencies\qpidmvn clean install -Dmaven.test.skip=true [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.qpid:qpid :pom:0.9-wso2v1 [WARNING] 'version' contains an expression but should be a constant. @ org.apache.qpid:qpid:${qpid.v ersion}, C:\Projects\trunk\dependencies\qpid\pom.xml, line 25, column 12 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed pro jects. [WARNING] [INFO] [INFO] [INFO] Building Apache Qpid 0.9-wso2v1 [INFO] [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ qpid --- [INFO] Deleting C:\Projects\trunk\dependencies\qpid\target [INFO] [INFO] --- maven-antrun-plugin:1.6:run (compile) @ qpid --- [INFO] Executing tasks main: [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 0.638s [INFO] Finished at: Wed Mar 16 16:29:52 IST 2011 [INFO] Final Memory: 4M/247M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (compile) on pro ject qpid: An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run progra m ant (in directory C:\Projects\trunk\dependencies\qpid\java): CreateProcess error=2, The system cannot find the file specified - [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 arti cles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException C:\Projects\trunk\dependencies\qpidpom.xml Any clues?? -Ratha. ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] facing build issue @ qpid dependency in windows..
http://ant.apache.org/faq.html#CreateProcess_error_2 On Wed, Mar 16, 2011 at 5:17 PM, Indika Kumara ind...@wso2.com wrote: This issue is even in the apache ant FAQ. Workaround is to given full-path to executable file. exec dir=${basedir} executable=* ${env.ANT_HOME}bin\ant.bat* failonerror=true arg line=clean/ /exec On Wed, Mar 16, 2011 at 5:10 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: Hi, My 'ant' classpath is set... C:\Projects\trunk\dependencies\qpidmvn clean install -Dmaven.test.skip=true [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.qpid:qpid :pom:0.9-wso2v1 [WARNING] 'version' contains an expression but should be a constant. @ org.apache.qpid:qpid:${qpid.v ersion}, C:\Projects\trunk\dependencies\qpid\pom.xml, line 25, column 12 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed pro jects. [WARNING] [INFO] [INFO] [INFO] Building Apache Qpid 0.9-wso2v1 [INFO] [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ qpid --- [INFO] Deleting C:\Projects\trunk\dependencies\qpid\target [INFO] [INFO] --- maven-antrun-plugin:1.6:run (compile) @ qpid --- [INFO] Executing tasks main: [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 0.638s [INFO] Finished at: Wed Mar 16 16:29:52 IST 2011 [INFO] Final Memory: 4M/247M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (compile) on pro ject qpid: An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run progra m ant (in directory C:\Projects\trunk\dependencies\qpid\java): CreateProcess error=2, The system cannot find the file specified - [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 arti cles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException C:\Projects\trunk\dependencies\qpidpom.xml Any clues?? -Ratha. ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] facing build issue @ qpid dependency in windows..
Danuska, yes, *.bat *is hard-coded - you cannot commit it. It is not the proper solution. However, it was what can do with exiting ant and maven (for me) ..I tried many options but nothing worked. If we can make '.bat' configurable, we can use it as an acceptable solution - detect OS and select the extension. ~ Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Facing build issue @dependencies/cassendra in windows..
What is the Ant version. Please try with 1.8.X ~ Indika On Wed, Mar 16, 2011 at 5:55 PM, Vijayaratha Vijayasingam rat...@wso2.comwrote: Hi, Any help?? ms) [exec] [ivy:retrieve] downloading http://repo1.maven.org/maven2/commons-el/commons-el/1.0/commo ns-el-1.0.jar ... [exec] [ivy:retrieve] .. (109kB) [exec] [ivy:retrieve] .. (0kB) [exec] [ivy:retrieve] [SUCCESSFUL ] commons-el#commons-el;1.0!commons-el.jar (66ms) [exec] [ivy:retrieve] downloading http://repo1.maven.org/maven2/net/java/dev/jets3t/jets3t/0.7. 1/jets3t-0.7.1.jar ... [exec] [ivy:retrieve] . (368kB) [exec] [ivy:retrieve] .. (0kB) [exec] [ivy:retrieve] [SUCCESSFUL ] net.java.dev.jets3t#jets3t;0.7.1!jets3t.jar (173ms) [exec] [ivy:retrieve] downloading http://repo1.maven.org/maven2/net/sf/kosmosfs/kfs/0.3/kfs-0.3 .jar ... [exec] [ivy:retrieve] (11kB) [exec] [ivy:retrieve] .. (0kB) [exec] [ivy:retrieve] [SUCCESSFUL ] net.sf.kosmosfs#kfs;0.3!kfs.jar (39ms) [exec] [ivy:retrieve] downloading http://repo1.maven.org/maven2/org/eclipse/jdt/core/3.1.1/core -3.1.1.jar ... [exec] [ivy:retrieve] . . (3483kB) [exec] [ivy:retrieve] .. (0kB) [exec] [ivy:retrieve] [SUCCESSFUL ] org.eclipse.jdt#core;3.1.1!core.jar (1601ms) [exec] [ivy:retrieve] :: resolution report :: resolve 31839ms :: artifacts dl 322757ms [exec] [ivy:retrieve] :: evicted modules: [exec] [ivy:retrieve] commons-logging#commons-logging;1.0.3 by [commons-logging#commons-lo gging;1.1.1] in [default] [exec] [ivy:retrieve] commons-httpclient#commons-httpclient;3.1 by [commons-httpclient#com mons-httpclient;3.0.1] in [default] [exec] - [exec] | |modules|| artifacts | [exec] | conf | number| search|dwnlded|evicted|| number|dwnlded| [exec] - [exec] | default | 32 | 15 | 15 | 2 || 22 | 22 | [exec] - [exec] [ivy:retrieve] [exec] [ivy:retrieve] :: problems summary :: [exec] [ivy:retrieve] WARNINGS [exec] [ivy:retrieve] problem while downloading module descriptor: http://repo1.maven.org/ maven2/asm/asm/3.2/asm-3.2.pom: invalid sha1: expected= ♥♣ß◄♦0k≡∞Ωa∟■%49§≈âr⌐i2♦.ßσ☻[⌠f≈≡Üó%α ( computed=6b29f29dab1571b5874d010c35fe68842f1fa795 (20ms) [exec] [ivy:retrieve] module not found: asm#asm;3.2 [exec] [ivy:retrieve] ibiblio: tried [exec] [ivy:retrieve] http://repo1.maven.org/maven2/asm/asm/3.2/asm-3.2.pom [exec] [ivy:retrieve] problem while downloading module descriptor: http://repo1.maven.org/ maven2/ant/ant/1.6.5/ant-1.6.5.pom: invalid sha1: expected= ♥♣ßΘ☺ computed=ef54218a029a107059b a3e9b21ef23bf92c53838 (20ms) [exec] [ivy:retrieve] module not found: ant#ant;1.6.5 [exec] [ivy:retrieve] ibiblio: tried [exec] [ivy:retrieve] http://repo1.maven.org/maven2/ant/ant/1.6.5/ant-1.6.5.pom [exec] [ivy:retrieve] problem while downloading module descriptor: http://repo1.maven.org/ maven2/junit/junit/4.6/junit-4.6.pom: invalid sha1: expected= ♥kk5o426ik545h│░lj╡4▒ll52m┤4│4oj▓ 41n3l▓┤┤ppΦ*φδ,±5±3≤+Φ∩σ☻ m⌂h£8 computed=31c356402407911dc133060f9fa2be135a442996 (29ms) [exec] [ivy:retrieve] module not found: junit#junit;4.6 [exec] [ivy:retrieve] ibiblio: tried [exec] [ivy:retrieve] http://repo1.maven.org/maven2/junit/junit/4.6/junit-4.6.pom [exec] [ivy:retrieve] problem while downloading module descriptor: http://repo1.maven.org/ maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom: invalid sha1: expected= ♥♣ß
Re: [Carbon-dev] Facing build issue @dependencies/cassendra in windows..
It was an issue with Ivy version. Please take a svn up on Cassandra ~ Indika On Wed, Mar 16, 2011 at 6:06 PM, Indika Kumara ind...@wso2.com wrote: What is the Ant version. Please try with 1.8.X ~ Indika On Wed, Mar 16, 2011 at 5:55 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: Hi, Any help?? ms) [exec] [ivy:retrieve] downloading http://repo1.maven.org/maven2/commons-el/commons-el/1.0/commo ns-el-1.0.jar ... [exec] [ivy:retrieve] .. (109kB) [exec] [ivy:retrieve] .. (0kB) [exec] [ivy:retrieve] [SUCCESSFUL ] commons-el#commons-el;1.0!commons-el.jar (66ms) [exec] [ivy:retrieve] downloading http://repo1.maven.org/maven2/net/java/dev/jets3t/jets3t/0.7. 1/jets3t-0.7.1.jar ... [exec] [ivy:retrieve] . (368kB) [exec] [ivy:retrieve] .. (0kB) [exec] [ivy:retrieve] [SUCCESSFUL ] net.java.dev.jets3t#jets3t;0.7.1!jets3t.jar (173ms) [exec] [ivy:retrieve] downloading http://repo1.maven.org/maven2/net/sf/kosmosfs/kfs/0.3/kfs-0.3 .jar ... [exec] [ivy:retrieve] (11kB) [exec] [ivy:retrieve] .. (0kB) [exec] [ivy:retrieve] [SUCCESSFUL ] net.sf.kosmosfs#kfs;0.3!kfs.jar (39ms) [exec] [ivy:retrieve] downloading http://repo1.maven.org/maven2/org/eclipse/jdt/core/3.1.1/core -3.1.1.jar ... [exec] [ivy:retrieve] . . (3483kB) [exec] [ivy:retrieve] .. (0kB) [exec] [ivy:retrieve] [SUCCESSFUL ] org.eclipse.jdt#core;3.1.1!core.jar (1601ms) [exec] [ivy:retrieve] :: resolution report :: resolve 31839ms :: artifacts dl 322757ms [exec] [ivy:retrieve] :: evicted modules: [exec] [ivy:retrieve] commons-logging#commons-logging;1.0.3 by [commons-logging#commons-lo gging;1.1.1] in [default] [exec] [ivy:retrieve] commons-httpclient#commons-httpclient;3.1 by [commons-httpclient#com mons-httpclient;3.0.1] in [default] [exec] - [exec] | |modules|| artifacts | [exec] | conf | number| search|dwnlded|evicted|| number|dwnlded| [exec] - [exec] | default | 32 | 15 | 15 | 2 || 22 | 22 | [exec] - [exec] [ivy:retrieve] [exec] [ivy:retrieve] :: problems summary :: [exec] [ivy:retrieve] WARNINGS [exec] [ivy:retrieve] problem while downloading module descriptor: http://repo1.maven.org/ maven2/asm/asm/3.2/asm-3.2.pom: invalid sha1: expected= ♥♣ß◄♦0k≡∞Ωa∟■%49§≈âr⌐i2♦.ßσ☻[⌠f≈≡Üó%α ( computed=6b29f29dab1571b5874d010c35fe68842f1fa795 (20ms) [exec] [ivy:retrieve] module not found: asm#asm;3.2 [exec] [ivy:retrieve] ibiblio: tried [exec] [ivy:retrieve] http://repo1.maven.org/maven2/asm/asm/3.2/asm-3.2.pom [exec] [ivy:retrieve] problem while downloading module descriptor: http://repo1.maven.org/ maven2/ant/ant/1.6.5/ant-1.6.5.pom: invalid sha1: expected= ♥♣ßΘ☺ computed=ef54218a029a107059b a3e9b21ef23bf92c53838 (20ms) [exec] [ivy:retrieve] module not found: ant#ant;1.6.5 [exec] [ivy:retrieve] ibiblio: tried [exec] [ivy:retrieve] http://repo1.maven.org/maven2/ant/ant/1.6.5/ant-1.6.5.pom [exec] [ivy:retrieve] problem while downloading module descriptor: http://repo1.maven.org/ maven2/junit/junit/4.6/junit-4.6.pom: invalid sha1: expected= ♥kk5o426ik545h│░lj╡4▒ll52m┤4│4oj▓ 41n3l▓┤┤ppΦ*φδ,±5±3≤+Φ∩σ☻ m⌂h£8 computed=31c356402407911dc133060f9fa2be135a442996 (29ms) [exec] [ivy:retrieve] module not found: junit#junit;4.6 [exec] [ivy:retrieve] ibiblio: tried [exec] [ivy:retrieve] http://repo1.maven.org/maven2/junit/junit/4.6/junit-4.6.pom [exec] [ivy:retrieve] problem while downloading module descriptor: http
Re: [Carbon-dev] Facing build issue @dependencies/cassendra in windows..
Please Check trunk\dependencies\cassandra\build.xml for property name=ivy.version value=*2.2.0* / . 2.2.0 is the correct version. Also, you have to change 'ant' -'ant.bat' (the same as for Qpid) Even, Both Denis and Hiranya confirmed that the Cassandra build is working now. I just run it and got success. ~ Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Try out a full build on Windows
Sure will do, I am currently building the up-to-date carbon on Windows XP. There are problems when running 'ant' as an executable within maven - for instance , qpid, cassandra. It is mainly the [1]. Thanks, Indika [1] http://ant.apache.org/faq.html#CreateProcess_error_2 On Thu, Mar 17, 2011 at 10:55 AM, Afkham Azeez az...@wso2.com wrote: Indika/Ratha, Can you guys please try out a full Carbon trunk build on Windows? We need to identify Windows specific build issues. -- *Afkham Azeez* Senior Software Architect Senior Manager; 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* ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] MB feedback
Hi All, If the secret key based solution can be used by Cassandra, would it be better to do those in a module under the identity component? I added sometime back the secretkey based authentication using the code existed in Qpid component at that time. [ https://svn.wso2.org/repos/wso2/trunk/carbon/components/identity/org.wso2.carbon.identity.authentication]. Would it be better to modify that code? Thanks, Indika On Tue, Mar 15, 2011 at 5:35 PM, Paul Fremantle p...@wso2.com wrote: On 15 March 2011 11:26, Dimuthu Leelarathne dimut...@wso2.com wrote: 3) I don't understand the SQS secret key part. a) I'd expect to see both an access key and a secret key I need to clarify something regarding this access key and secret key. Right now access key is username and secret key is D for SQS. I think we can keep it the same and implement your algorithm with minimal changes to UM. So here is the implementation, 1) Generate X on server on first server start up and store it securely. We can encrypt it using server's public key 2) When user request for a SQS key, generate D and store it in UM using userStore.addUser(String username, String password) as follows. userStore.addUser(SecureHash(U+X), D+X) - we store password hashed. 3) Show D to user. User's access key is username and user's secret key is D 4) When user sends SQS requests using D, check the validity as follows. userStore.authenticate(SecureHash(U+X), D+X) 5) If the user is validated (i.e. authenticate is passed) the signature is generated using D+X If it is done this way we need not show two keys to user. Of cause we can show to keys to user as well, i.e. in place of username we can show SecureHash(U+X). But is it a requirement? Dimuthu The access key cannot be the username because it is a 20 digit key. See http://docs.amazonwebservices.com/AWSSimpleQueueService/2009-02-01/SQSGettingStartedGuide/ So we need to do something to make it fit that. I'm still not clear if the secret key is stored separately or just something we calculate from their existing password? Paul Thanks, Dimuthu b) I don't expect the user to change these: I thought they were going to be calculated. More feedback when I finally get it to build :-) Paul -- Paul Fremantle CTO and Co-Founder, WSO2 OASIS WS-RX TC Co-chair, VP, Apache Synapse Office: %2B44%20844%20484%208143+44 844 484 8143 Cell: %2B44%20798%20447%204618+44 798 447 4618 blog: http://pzf.fremantle.org twitter.com/pzfreo p...@wso2.com wso2.com Lean Enterprise Middleware Disclaimer: This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, retransmit, disseminate, or otherwise use the information contained in this communication. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Paul Fremantle CTO and Co-Founder, WSO2 OASIS WS-RX TC Co-chair, VP, Apache Synapse Office: +44 844 484 8143 Cell: +44 798 447 4618 blog: http://pzf.fremantle.org twitter.com/pzfreo p...@wso2.com wso2.com Lean Enterprise Middleware Disclaimer: This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, retransmit, disseminate, or otherwise use the information contained in this communication. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Build error at cassandra dependency
Charitha , Could you please let me know ant and maven versions? BTW, Cassandra was added more than one month ago. I have built it many times and even Deep built it a few times but never got such an issue. For that matter, Cassandra is built successfully in builder machine. I will check whether there are some conditions that can make it fail. Thanks, Indika On Mon, Mar 14, 2011 at 8:03 PM, Charitha Kankanamge chari...@wso2.comwrote: I'm getting the following error while building dependencies. I tried to build cassandra separately, but got the same error. Any clue? mvn clean install [INFO] Scanning for projects... [INFO] [INFO] Building Apache Cassandra [INFO]task-segment: [clean, install] [INFO] [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting directory /home/charitha/projects/carbon/dependencies/cassandra/target [INFO] [incremental-build:incremental-build {execution: default}] [INFO] Verifying module descriptor ... [INFO] Pom descriptor modification detected. [INFO] Deleting /home/charitha/projects/carbon/dependencies/cassandra/target [INFO] [antrun:run {execution: compile}] [INFO] Executing tasks main: [exec] Buildfile: build.xml [exec] [exec] clean: [exec] [exec] BUILD SUCCESSFUL [exec] Total time: 0 seconds [exec] Buildfile: build.xml [exec] [exec] ivy-download: [exec] [exec] ivy-init: [exec] [exec] ivy-retrieve-build: [exec] [ivy:retrieve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ :: [exec] [ivy:retrieve] :: loading settings :: file = /home/charitha/projects/carbon/dependencies/cassandra/ivysettings.xml [exec] [ivy:retrieve] :: resolving dependencies :: apache-cassandra#cassandra;working@charitha-laptop [exec] [ivy:retrieve] confs: [default] [exec] [ivy:retrieve] found com.thoughtworks.paranamer#paranamer-ant;2.1 in ibiblio [exec] [ivy:retrieve] found com.thoughtworks.paranamer#paranamer-generator;2.1 in ibiblio [exec] [ivy:retrieve] found com.thoughtworks.qdox#qdox;1.10 in ibiblio [exec] [ivy:retrieve] found com.cloudera.hadoop#hadoop-core;0.20.2-320 in cloudera [exec] [ivy:retrieve] found xmlenc#xmlenc;0.52 in ibiblio [exec] [ivy:retrieve] found commons-net#commons-net;1.4.1 in ibiblio [exec] [ivy:retrieve] found tomcat#jasper-runtime;5.5.12 in ibiblio [exec] [ivy:retrieve] found tomcat#jasper-compiler;5.5.12 in ibiblio [exec] [ivy:retrieve] found commons-el#commons-el;1.0 in ibiblio [exec] [ivy:retrieve] found net.java.dev.jets3t#jets3t;0.7.1 in ibiblio [exec] [ivy:retrieve] found net.sf.kosmosfs#kfs;0.3 in ibiblio [exec] [ivy:retrieve] found org.eclipse.jdt#core;3.1.1 in ibiblio [exec] [ivy:retrieve] found com.cloudera.hadoop#hadoop-streaming;0.20.2-320 in cloudera [exec] [ivy:retrieve] found net.sf.jopt-simple#jopt-simple;3.2 in ibiblio [exec] [ivy:retrieve] found net.java.dev.jna#jna;3.2.7 in java.net2 [exec] [exec] BUILD FAILED [exec] /home/charitha/projects/carbon/dependencies/cassandra/build.xml:169: impossible to resolve dependencies: [exec] resolve failed - see output for details [exec] [exec] Total time: 2 seconds [exec] [ivy:retrieve] :: resolution report :: resolve 1743ms :: artifacts dl 38ms [exec] [ivy:retrieve] :: evicted modules: [exec] [ivy:retrieve] commons-logging#commons-logging;1.0.3 by [commons-logging#commons-logging;1.1.1] in [default] [exec] [ivy:retrieve] commons-httpclient#commons-httpclient;3.1 by [commons-httpclient#commons-httpclient;3.0.1] in [default] [exec] - [exec] | |modules|| artifacts | [exec] | conf | number| search|dwnlded|evicted|| number|dwnlded| [exec] - [exec] | default | 32 | 0 | 0 | 2 || 22 | 0 | [exec] - [exec] [ivy:retrieve] [exec] [ivy:retrieve] :: problems summary :: [exec] [ivy:retrieve] WARNINGS [exec] [ivy:retrieve] problem while downloading module descriptor: http://repo1.maven.org/maven2/asm/asm/3.2/asm-3.2.pom: invalid sha1: expected= � 0k���a �%49 ��r�i2 .�� [�f%�( computed=6b29f29dab1571b5874d010c35fe68842f1fa795 (29ms) [exec] [ivy:retrieve] module not found: asm#asm;3.2 [exec] [ivy:retrieve] ibiblio: tried [exec] [ivy:retrieve]
Re: [Carbon-dev] Making H2 Console as a carbon component
Sumedha, would the following use case be correct regarding the use of h2 console? A user manages his own databases, and for that purpose the user can use the component being done by Prabath A. A user can create new databases, view his created databases, and add users to those databases. In the same UI, there are options to create datasources for accessing the created databases as well as to implement user's data model on his created databases using H2 console. As in the Stratos, we knows the mapping of the tenant - databases, It would be useful if the Data source component and the H2 console are aware of that mapping. For instance, when a user accesses the H2 console component's UI, he can select a URL of his databases and then can connect to the selected one for further processing such as adding tables, etc. ~ Indika On Thu, Mar 10, 2011 at 7:17 PM, Sumedha Rubasinghe sume...@wso2.comwrote: On Thu, Mar 10, 2011 at 8:11 AM, Paul Fremantle p...@wso2.com wrote: WIll this be tied into the Data Sources component? How hard is that to do? Paul, There are two things being discussed here. My configuration explanation to Samisa is on something we have already. This allows you to view existing Registry UM databases using the browser. On any Carbon based product released so far would have this. Kalpanie is trying to make this a Carbon component, so that it will be available as a generic component to be used in Data Sources Component, Data Services our Stratos Data Story. I believe we are one week away from having this as a fully completed component. /sumedha Paul On 10 March 2011 12:57, Sumedha Rubasinghe sume...@wso2.com wrote: On Thu, Mar 10, 2011 at 7:50 AM, Samisa Abeysinghe sam...@wso2.comwrote: What products will ship this? All the products on Carbon :-) /sumedha On Thu, Mar 10, 2011 at 6:02 PM, Sumedha Rubasinghe sume...@wso2.comwrote: On Thu, Mar 10, 2011 at 7:29 AM, Samisa Abeysinghe sam...@wso2.comwrote: Can we use this to monitor the running instance of the registry H2 DB? Yeap.. We do that already.. 1. Add following to end of your carbon.xml H2DatabaseConfiguration property name=web / property name=webPort8082/property /H2DatabaseConfiguration 2. Open up a browser point into http://localhost:8082 3. Accept the default values use 'wso2carbon' as the password. But Kalpanie is trying to make this a generic component to monitor any database. /sumedha On Thu, Mar 10, 2011 at 5:56 PM, Sumedha Rubasinghe sume...@wso2.com wrote: On Thu, Mar 10, 2011 at 7:21 AM, Samisa Abeysinghe sam...@wso2.comwrote: Does this work on Windows for H2? Yes. Basically H2 uses a generic JDBC database explorer. They just set in some parameters @ the start up telling the default database is H2. But we can unset those make this a generic addition. /sumedha On Thu, Mar 10, 2011 at 1:16 PM, Nuwan Bandara nu...@wso2.comwrote: On Thu, Mar 10, 2011 at 9:27 AM, Kalpanie Wanigaratne kalpa...@wso2.com wrote: On Thu, Mar 10, 2011 at 8:42 AM, Nuwan Bandara nu...@wso2.comwrote: On Wed, Mar 9, 2011 at 7:48 PM, Senaka Fernando sen...@wso2.com wrote: On Wed, Mar 9, 2011 at 12:27 PM, Afkham Azeez az...@wso2.comwrote: On Wed, Mar 9, 2011 at 11:49 AM, Sameera Jayasoma same...@wso2.com wrote: On Wed, Mar 9, 2011 at 5:36 AM, Kalpanie Wanigaratne kalpa...@wso2.com wrote: Hi, I'm going to do the $subject and in order to do it, it needs to add the following configuration to the web.xml. servlet servlet-nameH2Console/servlet-name servlet-classorg.h2.server.web.WebServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameH2Console/servlet-name url-pattern/console/*/url-pattern /servlet-mapping For the moment i have included this in the product/lib/core/WEB-INF/web.xml and i created a UI component by pointing the link in component.xml to h2console. But then the console opens in a separate page. (It does not open the page, inside our normal web page). Also when considering this as a component, this approach is wrong because the web.xml entry resides inside the product. I don't have any clue, where to put the servlet entry inside the component. Can any one please give an idea to do this? So you register this console as a separate servlet right? Then I don't think you can open this console within the carbon ui framework. Grab the OSGi HTTPService and register your servlet into that service. +1. We've done that for the Atom/jUDDI servlets etc in G-Reg. Thanks, Senaka. Yap, we are doing the same thing when registering shindig servlets. Also feel this is quite a useful feature, is there a possibility that we can plug a common database explorer (not specific to H2), so any of the connected databases can be explored within our mgt console. Thanks every one. Yes nuwan, H2 console is a common
[Carbon-dev] Classpath order in the embedded Tomcat
Hi All, A user query at [http://wso2.org/forum/thread/11538]. An excerpt from the query. Maybe a valid use case we have to consider. I've deployed a webapp on WSO2 ESB, exploding a war in the webapps directory. It seems to work but there is a classpath problem, because WSO2_HOME/lib seems to have precedence over myapp/WEB-INF/lib. *This is not compliant with Tomcat standard beahviour ( http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html).* Is that correct?* It is very dangerous, because with this behaviour many web applications designed for Tomcat can have problems due to jars overlap in WSO2_HOME/lib. *Is there way to reset the original Tomcat behavior? Thanks, Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Manually have to copy qpid and event-broker config files to distribution
Waruna, In Cassandra , I have the same requirement, and already added the required configuration to the p2 feature. But, still I could not get it worked even with help from Predeep. Actaully, I want to create a directory and put config files during the feature installation. Do you have any idea about what could be go wrong? Following is the p2.inf (It is a single fline) instructions.configure = org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../conf/cassandra);org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/cassandra.yaml,target:${installFolder}/../conf/cassandra/cassandra.yaml,overwrite:true);org.eclipse.equinox.p2.touchpoint.natives.remove(path:${installFolder}/cassandra.yaml);org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/cassandra-topology.properties,target:${installFolder}/../conf/cassandra/cassandra-topology.properties,overwrite:true);org.eclipse.equinox.p2.touchpoint.natives.remove(path:${installFolder}/cassandra-topology.properties);org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/cassandra-component.xml,target:${installFolder}/../conf/cassandra/cassandra-component.xml,overwrite:true);org.eclipse.equinox.p2.touchpoint.natives.remove(path:${installFolder}/cassandra-component.xml); Thanks, Indika On Tue, Mar 8, 2011 at 11:09 AM, Waruna Ranasinghe war...@wso2.com wrote: On Mon, Mar 7, 2011 at 11:38 PM, Tharindu Mathew thari...@wso2.comwrote: Hi, I'm facing $subject after including them as feature. Can't these be included in the feature itself? We can configure the feature to copy config files in to the distribution, when the feature get installed. Please refer identity and bpel features as an example Thanks, Waruna -- Regards, Tharindu ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- - Waruna Ranasinghe Senior Software Engineer, WSO2 Mobile: +94 724 318285 BLOG: http://warunapw.blogspot.com www.wso2.com - Lean . Enterprise . Middleware ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Manually have to copy qpid and event-broker config files to distribution
It seems like an issue with the product build. I tested with the ESB by manually adding Cassandra feature to the p2-profile of the ESB. I observed the configuration files has been correctly copied in the 'products\esb\modules\p2-profile\target\wso2carbon-core-3.2.0-SNAPSHOT' but, not in the final ESB distribution. ~ Indika On Tue, Mar 8, 2011 at 12:15 PM, Danushka Menikkumbura danus...@wso2.comwrote: Qpid configuration files get installed when you install the Qpid feature. Danushka On Mon, Mar 7, 2011 at 11:38 PM, Tharindu Mathew thari...@wso2.comwrote: Hi, I'm facing $subject after including them as feature. Can't these be included in the feature itself? -- Regards, Tharindu ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] User based authorization is depreciated in AuthorizationManager in carbon core
For Cassandra, we have the same requirement. Thanks, Indika On Wed, Mar 2, 2011 at 3:41 PM, Amila Suriarachchi am...@wso2.com wrote: SQS Autherization is user based. so we need user based autherization at the carbon Autherization manager level. thanks, Amila. On Tue, Mar 1, 2011 at 11:07 PM, Manjula Rathnayake manju...@wso2.comwrote: Hi all, In SQS implementation we have used set of methods related to user based authorization, to provide queue sharing functionality. And In the code review, This was discussed that using depreciated methods in new codes is can not be accepted. So we could not find out any alternate method to get the user based authorization done. Even though the methods (authorizeUser, clearUserAuthorization) are depreciated, they work fine. Can we make available user based authorization methods or any other suggestions on this, please. Thank you. -- Manjula Rathnayaka Software Engineer WSO2, Inc. Mobile:+94 77 743 1987 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] What should be the orbit version if the jar's version is r05 ?
Hi All, What should be the orbit version if the jar's version is r05 ? Could someone advise me please? Thanks, Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] A Single sign-on (SSO) Requirement
I have looked how it works. I will ask it from Danushka. Thanks, Indika On Tue, Feb 22, 2011 at 2:31 PM, Srinath Perera srin...@wso2.com wrote: Hi Danushka, Can you point Indika to the code? Indika, can we solve the problem in the same manner? --Srinath On Tue, Feb 22, 2011 at 1:56 PM, Danushka Menikkumbura danus...@wso2.com wrote: In the case of Qpid its between back-end components. Qpid publishes a shared secret that internal components can produce while authenticating. Danushka On Tue, Feb 22, 2011 at 1:49 PM, Srinath Perera srin...@wso2.com wrote: Basically, we need a way for the fornt end to tell the backend Cassandra that user is already logged in. AFAIK, we are doing something similar to connect from message broker to backend Qpid. Danushka do we have that code done? We should be able to use the same logic here as well. Thanks Srinath On Tue, Feb 22, 2011 at 10:40 AM, Indika Kumara ind...@wso2.com wrote: Hi All, I have the following scenario where it is required SSO Connecting to the Cassandra from Carbon (e.g carbon component) as an already authenticated user. Here, a user has already sign-in to the Carbon, and need to connect to the Cassandra as an authenticated user. Is this possible currently? Highly appreciate any help. Thanks, Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Srinath Perera, Ph.D. Senior Software Architect, WSO2 Inc. Visiting Lecturer, University of Moratuwa Member, Apache Software Foundation Research Scientist, Lanka Software Foundation Blog: http://srinathsview.blogspot.com/ ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Srinath Perera, Ph.D. Senior Software Architect, WSO2 Inc. Visiting Lecturer, University of Moratuwa Member, Apache Software Foundation Research Scientist, Lanka Software Foundation Blog: http://srinathsview.blogspot.com/ ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] A Single sign-on (SSO) Requirement
Hi All, I have the following scenario where it is required SSO Connecting to the Cassandra from Carbon (e.g carbon component) as an already authenticated user. Here, a user has already sign-in to the Carbon, and need to connect to the Cassandra as an authenticated user. Is this possible currently? Highly appreciate any help. Thanks, Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] gadget render issue
A user continually is asking for help related to the $subject[1]. If some one knows the answer, and could find some time, it would be great. Thanks, Indika [1] http://wso2.org/forum/thread/11475 ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] non-static method getPolicy(java.lang.Object) cannot be referenced from a static context
Thanks .. It is working now. ~ Indika On Mon, Feb 14, 2011 at 12:01 PM, Thilina Buddhika thili...@wso2.comwrote: Please take an update of dependencies/Axis2 and Sandesha and try building again. We have reverted them to work with Neethi 2.0.4 until we properly fix Axis2, Rampart, Sandesha, etc. We are planning to have a hackathon this week. Thanks, Thilina On Mon, Feb 14, 2011 at 11:55 AM, Indika Kumara ind...@wso2.com wrote: Hi All, When building some carbon components I am getting following error. non-static method getPolicy(java.lang.Object) cannot be referenced from a static context I am aware that there was a refactoring in neethi. But, I saw that our carbon build was successful. What could be the issue? Any help appreciate. Thanks, Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Thilina Buddhika Senior Software Engineer WSO2 Inc. ; http://wso2.com lean . enterprise . middleware phone : +94 77 44 88 727 blog : http://blog.thilinamb.com ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] non-static method getPolicy(java.lang.Object) cannot be referenced from a static context
Hi All, When building some carbon components I am getting following error. non-static method getPolicy(java.lang.Object) cannot be referenced from a static context I am aware that there was a refactoring in neethi. But, I saw that our carbon build was successful. What could be the issue? Any help appreciate. Thanks, Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] non-static method getPolicy(java.lang.Object) cannot be referenced from a static context
Thanks ... I will try ~ Indika On Mon, Feb 14, 2011 at 12:02 PM, Amila Maha Arachchi ami...@wso2.comwrote: Hi Indika, Did you svn up axis2, rampart, sandesha and ode. There were changes in them to point to neethi 2.0.4. Then, try building from dependencies. Thanks, AmilaM. On Mon, Feb 14, 2011 at 11:55 AM, Indika Kumara ind...@wso2.com wrote: Hi All, When building some carbon components I am getting following error. non-static method getPolicy(java.lang.Object) cannot be referenced from a static context I am aware that there was a refactoring in neethi. But, I saw that our carbon build was successful. What could be the issue? Any help appreciate. Thanks, Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] Need Help for solving build related issues
Hi All, I have two issues related with adding Cassandra as a carbon component. 1) It is needed to do some code level changes in the Cassandra. I would provide them as patches. But, getting a patch to the trunk will take time. As we are in bit of urgent, we need to add those changes as soon as possible. Is it OK to create a custom branch in the wso2 svn for Cassandra’s last release and commit required changes to that in addition to providing the changes as patches to the Cassandra trunk. 2) Cassandra does not have a maven build. How can I keep Cassandra’s jar up-to-date? It is OK to create jars and put in the wso2 maven repo? Any better solution? Highly appreciate suggestions for solving the above issues. Thanks, Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] Need Help for solving build related issues
Changed the subject of the email. On Mon, Jan 31, 2011 at 2:03 PM, Indika Kumara ind...@wso2.com wrote: Hi All, I have two issues related with adding Cassandra as a carbon component. 1) It is needed to do some code level changes in the Cassandra. I would provide them as patches. But, getting a patch to the trunk will take time. As we are in bit of urgent, we need to add those changes as soon as possible. Is it OK to create a custom branch in the wso2 svn for Cassandra’s last release and commit required changes to that in addition to providing the changes as patches to the Cassandra trunk. 2) Cassandra does not have a maven build. How can I keep Cassandra’s jar up-to-date? It is OK to create jars and put in the wso2 maven repo? Any better solution? Highly appreciate suggestions for solving the above issues. Thanks, Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Need Help for solving build related issues
Thanks Danushka I will have a look at the dependencies/qpid. Thanks, Indika On Tue, Feb 1, 2011 at 4:55 AM, Danushka Menikkumbura danus...@wso2.comwrote: 1) It is needed to do some code level changes in the Cassandra. I would provide them as patches. But, getting a patch to the trunk will take time. As we are in bit of urgent, we need to add those changes as soon as possible. Is it OK to create a custom branch in the wso2 svn for Cassandra’s last release and commit required changes to that in addition to providing the changes as patches to the Cassandra trunk. I think the proper approach is to have it under dependencies. 2) Cassandra does not have a maven build. How can I keep Cassandra’s jar up-to-date? It is OK to create jars and put in the wso2 maven repo? Any better solution? You can get Maven to launch Cassandra build using Maven ant-run plug-in. Please take a look at dependencies/qpid. Thanks, Danushka ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Is there a way to get the 'tenantId' of a particular user by using a remote call ?
Yes .. We can use ‘tenant domain’ instead of ‘tenant ID’. I used 'tenant ID' because in stratos we are using it. Thanks, Indika On Sun, Jan 23, 2011 at 9:27 PM, Srinath Perera srin...@wso2.com wrote: Can't we use the domain name instead? What I mean is 1. users sends ind...@wso2.com to the client, which sends this to the server. 2. Extended security code inside the Cassandra (our code), does a call to IS and autenticate 3. For creating key spaces etc., the code inside Cassandra append the domain name to key space name etc. And actually this begs the questions, why do we need a separate tenant ID? Can't we use the domain name all the time? --Srinath On Sat, Jan 22, 2011 at 11:41 PM, Sanjiva Weerawarana sanj...@wso2.com wrote: BTW this conversation should be on stratos-dev not carbon-dev :). Thilina the issue with making a remote call is that then we need to secure that call ... Sanjiva. On Sat, Jan 22, 2011 at 8:12 PM, Thilina Buddhika thili...@wso2.com wrote: So a solution might be a remote API to get the tenantId by passing the fully qualified username or the tenant domain. Thanks, Thilina On Sat, Jan 22, 2011 at 7:50 PM, Indika Kumara ind...@wso2.com wrote: There are two ways for deploying the Cassandra as a service - embedded and separate. It is like using an embedded database vs databse network server. For the embedded case, we have to start the Cassandra with in a carbon component accessing the server API of the Cassandra. For the separate server case, we have to connect to the Cassandra from its client API. In the latter case, the code does the authentication does not have access to the 'CarbonContext'. It is like to connecting to a remote multi tenant database from a local application. We decided to the latter case as the POC. Thanks, Indika On Sat, Jan 22, 2011 at 8:08 PM, Thilina Buddhika thili...@wso2.com wrote: As Paul mentioned tenantId is exposed through the CarbonContext. So if these Cassendra API calls are originated from Stratos, then it is possible to get the tenantId. I was mislead thinking that there should be a WS-API which exposes this tenantID, which is not available currently. Thanks, Thilina On Sat, Jan 22, 2011 at 6:52 PM, Sanjiva Weerawarana sanj...@wso2.com wrote: Thilina since this is internal Stratos code why can't we expose the tenant ID to it? Basically the getTenantID call should be callable by this code ... and if necessary the jars can be signed or whatever auth we need for that. Sanjiva. On Sat, Jan 22, 2011 at 6:48 PM, Indika Kumara ind...@wso2.com wrote: The Cassandra client API and inter-node communications are based on the Thrift API. It uses TCP and all other available Cassandra clients are built top on that API. With those clients, I can only give TCP port and host – cannot use a URL. As multiple tenants can have the users with the same name, either the tenant ID or tenant domain name should be used when log in to the system. 1) Using the tenant ID This is only applicable if the application (a Cassandra client) knows the current tenant ID. For example, a data service in wso2-stratos. This is what I have done so far – parsing the ‘tenantID’ along with credentials when log-ining to the Cassandra. However, if the client does not know the ‘tenantID’, he cannot log-ins into the system. For example, a user having a web application that uses the Cassandra as the database (local), and later want to move to the Cassandra as a Service instead of the local Cassandra server. Then, the user has to use the tenant domain. 2) Using the tenant domain There are mainly two ways to domain name 1) Provide it as the URL https://www.google.com/a/wso2.com/ServiceLogin?service And can logs into ‘indika’ and ‘my password’ This method cannot be used currently because of the aforementioned limitation in the Thrift API (TCP). 2) Provide as the part of user name https://www.google.com/accounts/ServiceLogin?service And it is needed to login as ‘ind...@wso2.com’ and ‘my password’ This is what I wanted do. Within the Cassandra, I want to call the IS server, and takes the tenant-id by giving the ‘tenant-domain or complete user name’. As we decided to use the ‘tenantID’ to differentiate the keyspaces having the same yet belongs to different tenants. I can use ‘tenant domain’ instead of ‘tenant ID’. What should be the proper solution? I highly appreciate your help. Thanks, Indika On Sat, Jan 22, 2011 at 5:34 PM, Amila Suriarachchi am...@wso2.com wrote: On Sat, Jan 22, 2011 at 12:15 PM, Indika Kumara ind...@wso2.com wrote: Hi All, $ subject ? The scenario is that a user (a typical Cassandra client application) log-ins to the Cassandra with his username( e.g. ind...@wso2.com) and password
Re: [Carbon-dev] Is there a way to get the 'tenantId' of a particular user by using a remote call ?
I found a constraint in 'WSRealmBuilder' ... It needs ' tenantID'. I have to use 'WSRealmBuilder' .. UserRealm realm = WSRealmBuilder.createWSRealm(realmProperties, configurationContext, tenantID); Thanks, Indika On Sun, Jan 23, 2011 at 9:55 PM, Indika Kumara ind...@wso2.com wrote: Yes .. We can use ‘tenant domain’ instead of ‘tenant ID’. I used 'tenant ID' because in stratos we are using it. Thanks, Indika On Sun, Jan 23, 2011 at 9:27 PM, Srinath Perera srin...@wso2.com wrote: Can't we use the domain name instead? What I mean is 1. users sends ind...@wso2.com to the client, which sends this to the server. 2. Extended security code inside the Cassandra (our code), does a call to IS and autenticate 3. For creating key spaces etc., the code inside Cassandra append the domain name to key space name etc. And actually this begs the questions, why do we need a separate tenant ID? Can't we use the domain name all the time? --Srinath On Sat, Jan 22, 2011 at 11:41 PM, Sanjiva Weerawarana sanj...@wso2.com wrote: BTW this conversation should be on stratos-dev not carbon-dev :). Thilina the issue with making a remote call is that then we need to secure that call ... Sanjiva. On Sat, Jan 22, 2011 at 8:12 PM, Thilina Buddhika thili...@wso2.com wrote: So a solution might be a remote API to get the tenantId by passing the fully qualified username or the tenant domain. Thanks, Thilina On Sat, Jan 22, 2011 at 7:50 PM, Indika Kumara ind...@wso2.com wrote: There are two ways for deploying the Cassandra as a service - embedded and separate. It is like using an embedded database vs databse network server. For the embedded case, we have to start the Cassandra with in a carbon component accessing the server API of the Cassandra. For the separate server case, we have to connect to the Cassandra from its client API. In the latter case, the code does the authentication does not have access to the 'CarbonContext'. It is like to connecting to a remote multi tenant database from a local application. We decided to the latter case as the POC. Thanks, Indika On Sat, Jan 22, 2011 at 8:08 PM, Thilina Buddhika thili...@wso2.com wrote: As Paul mentioned tenantId is exposed through the CarbonContext. So if these Cassendra API calls are originated from Stratos, then it is possible to get the tenantId. I was mislead thinking that there should be a WS-API which exposes this tenantID, which is not available currently. Thanks, Thilina On Sat, Jan 22, 2011 at 6:52 PM, Sanjiva Weerawarana sanj...@wso2.com wrote: Thilina since this is internal Stratos code why can't we expose the tenant ID to it? Basically the getTenantID call should be callable by this code ... and if necessary the jars can be signed or whatever auth we need for that. Sanjiva. On Sat, Jan 22, 2011 at 6:48 PM, Indika Kumara ind...@wso2.com wrote: The Cassandra client API and inter-node communications are based on the Thrift API. It uses TCP and all other available Cassandra clients are built top on that API. With those clients, I can only give TCP port and host – cannot use a URL. As multiple tenants can have the users with the same name, either the tenant ID or tenant domain name should be used when log in to the system. 1) Using the tenant ID This is only applicable if the application (a Cassandra client) knows the current tenant ID. For example, a data service in wso2-stratos. This is what I have done so far – parsing the ‘tenantID’ along with credentials when log-ining to the Cassandra. However, if the client does not know the ‘tenantID’, he cannot log-ins into the system. For example, a user having a web application that uses the Cassandra as the database (local), and later want to move to the Cassandra as a Service instead of the local Cassandra server. Then, the user has to use the tenant domain. 2) Using the tenant domain There are mainly two ways to domain name 1) Provide it as the URL https://www.google.com/a/wso2.com/ServiceLogin?service And can logs into ‘indika’ and ‘my password’ This method cannot be used currently because of the aforementioned limitation in the Thrift API (TCP). 2) Provide as the part of user name https://www.google.com/accounts/ServiceLogin?service And it is needed to login as ‘ind...@wso2.com’ and ‘my password’ This is what I wanted do. Within the Cassandra, I want to call the IS server, and takes the tenant-id by giving the ‘tenant-domain or complete user name’. As we decided to use the ‘tenantID’ to differentiate the keyspaces having the same yet belongs to different tenants. I can use ‘tenant domain’ instead of ‘tenant ID’. What should be the proper solution? I highly appreciate your help. Thanks, Indika On Sat, Jan 22, 2011 at 5
Re: [Carbon-dev] Is there a way to get the 'tenantId' of a particular user by using a remote call ?
The Cassandra client API and inter-node communications are based on the Thrift API. It uses TCP and all other available Cassandra clients are built top on that API. With those clients, I can only give TCP port and host – cannot use a URL. As multiple tenants can have the users with the same name, either the tenant ID or tenant domain name should be used when log in to the system. 1) * **Using the tenant ID* This is only applicable if the application (a Cassandra client) knows the current tenant ID. For example, a data service in wso2-stratos. This is what I have done so far – parsing the ‘tenantID’ along with credentials when log-ining to the Cassandra. However, if the client does not know the ‘tenantID’, he cannot log-ins into the system. For example, a user having a web application that uses the Cassandra as the database (local), and later want to move to the Cassandra as a Service instead of the local Cassandra server. Then, the user has to use the tenant domain. *2) Using the tenant domain* There are mainly two ways to domain name 1) Provide it as the URL https://www.google.com/a/wso2.com/ServiceLogin?service And can logs into ‘indika’ and ‘my password’ This method cannot be used currently because of the aforementioned limitation in the Thrift API (TCP). 2) Provide as the part of user name https://www.google.com/accounts/ServiceLogin?service And it is needed to login as ‘ind...@wso2.com’ and ‘my password’ This is what I wanted do. Within the Cassandra, I want to call the IS server, and takes the tenant-id by giving the ‘tenant-domain or complete user name’. As we decided to use the ‘tenantID’ to differentiate the keyspaces having the same yet belongs to different tenants. I can use ‘tenant domain’ instead of ‘tenant ID’. What should be the proper solution? I highly appreciate your help. Thanks, Indika On Sat, Jan 22, 2011 at 5:34 PM, Amila Suriarachchi am...@wso2.com wrote: On Sat, Jan 22, 2011 at 12:15 PM, Indika Kumara ind...@wso2.com wrote: Hi All, $ subject ? The scenario is that a user (a typical Cassandra client application) log-ins to the Cassandra with his username( e.g. ind...@wso2.com) and password. Within the user authentication logic, the Cassandra calls an IS server for real authentication. All user + tenant registration information is in the IS server. I need to access the 'tenantID' of the user for further operations in the Cassandra. I noticed in the ' AuthenticationAdmin' that the 'tenantId' is located. Could I get that 'tenantId'? This is the scenario where the Cassandra is a separate server. If the user first logs into the Casendra there must be a way to give teneneID when login. One user name can ocurr in different tenants. thanks, Amila. Thanks, Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Is there a way to get the 'tenantId' of a particular user by using a remote call ?
Danushka, It is for two main reasons. 1) Different tenants may have the users with the same name. 2) Creating a keyspace, cf , etc with the same name by different tenants I have described this in my last post in this email thread. Aslo in a separate email named 'Carbon Cassandra component’s initial Implementation' @ architecture list. Thanks, Indika Indika, How does Cassandra authenticate with IS?. If it is only using the username and password you provide, I wonder why you need the tenant id?. Danushka ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] WSRealmBuilder
Hi all, As per [1] , there was the 'WSRealmBuilder' to obtain a UserRealm in a client program. It seems that it is not in the 3.1.0. Could some please tell me the new API to be used for the same purpose. I tried to find it from the carbon core codebase but was unsuccessful. Thanks, Indika [1] http://blog.facilelogin.com/2010/05/managing-users-and-roles-with-wso2.html ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] WSRealmBuilder
Found at components/remote-usermgt/ On Fri, Jan 21, 2011 at 8:42 PM, Indika Kumara ind...@wso2.com wrote: Hi all, As per [1] , there was the 'WSRealmBuilder' to obtain a UserRealm in a client program. It seems that it is not in the 3.1.0. Could some please tell me the new API to be used for the same purpose. I tried to find it from the carbon core codebase but was unsuccessful. Thanks, Indika [1] http://blog.facilelogin.com/2010/05/managing-users-and-roles-with-wso2.html ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] Could I get the all permission (or actions) allowed for a given user to a given resource
Hi All, Could I get the all permission (or actions) allowed for a given user to a given resource - something like getAllowedPermissions(String username, String resourceParth)? I cannot find a method in the 'AuthorizationManager'. Could someone help me on this matter? Thanks, Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Could I get the all permission (or actions) allowed for a given user to a given resource
HI Dimuthu, My questions was different ... I needed to get all permissions associated with a given user for a given resource. Something like public Permission[] getAllowedPermissions(String username, String resourceParth) The Cassandra's authorization API requires that. Thanks, Indika On Fri, Jan 21, 2011 at 10:33 PM, Dimuthu Leelarathne dimut...@wso2.comwrote: Hi, There is a method like this in AuthorizationManager. public String[] getExplicitlyDeniedUsersForResource(String resourceId, String action) throws UserStoreException; public String[] getExplicitlyAllowedUsersForResource(String resourceId, String action) throws UserStoreException; However these methods are deprecated since we plan to use role based permissions. thanks, dimuthu On Fri, Jan 21, 2011 at 9:44 PM, Indika Kumara ind...@wso2.com wrote: Hi All, Could I get the all permission (or actions) allowed for a given user to a given resource - something like getAllowedPermissions(String username, String resourceParth)? I cannot find a method in the 'AuthorizationManager'. Could someone help me on this matter? Thanks, Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Could I get the all permission (or actions) allowed for a given user to a given resource
Yes, What I needed was to get the all actions (permissions) a user can do with a given resource. As per now, I decided going for a workaround. I will prepare a document by the time of reviewing of this POC, including the improvements/changes required at the Cassandra (some are already discussed in the Cassandra' mailing list), options for leveraging it our products, and so on. BTW, In the Cassandra's security model, a user has a set of groups and each group has roles Thanks, Indika On Sat, Jan 22, 2011 at 10:12 AM, Sanjiva Weerawarana sanj...@wso2.comwrote: IMO these API calls still don't give what Indika is looking for - he's asking how can I find out what a person can do. This model allows you to find the list of roles a person is in and then ask whether that roles is authorized to do X, Y, Z. However what he's looking for is list of all X, Y and Zs. Sanjiva. On Fri, Jan 21, 2011 at 10:24 PM, Dimuthu Leelarathne dimut...@wso2.comwrote: Hi, Since this is a POC we can do this. First we can call -public String[] getRoleListOfUser(String userName) throws UserStoreException in UserStoreManager Then we can call the following function for all possible combinations. -public boolean isRoleAuthorized(String roleName, String resourceId, String action) throws UserStoreException; Thanks, Dimuthu On Fri, Jan 21, 2011 at 10:18 PM, Indika Kumara ind...@wso2.com wrote: Thanks Dimuthu.. BTW, what would be the best solution (may be a workaround) - get the roles associated with a given user and then the permissions for roles. Thanks, Indika On Fri, Jan 21, 2011 at 10:44 PM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi, On Fri, Jan 21, 2011 at 10:12 PM, Indika Kumara ind...@wso2.comwrote: HI Dimuthu, My questions was different ... I needed to get all permissions associated with a given user for a given resource. Something like public Permission[] getAllowedPermissions(String username, String resourceParth) The Cassandra's authorization API requires that. Sorry misread your mail. Yes can be done. But user permissions are being deprecated. Thanks, Dimuthu Thanks, Indika On Fri, Jan 21, 2011 at 10:33 PM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi, There is a method like this in AuthorizationManager. public String[] getExplicitlyDeniedUsersForResource(String resourceId, String action) throws UserStoreException; public String[] getExplicitlyAllowedUsersForResource(String resourceId, String action) throws UserStoreException; However these methods are deprecated since we plan to use role based permissions. thanks, dimuthu On Fri, Jan 21, 2011 at 9:44 PM, Indika Kumara ind...@wso2.comwrote: Hi All, Could I get the all permission (or actions) allowed for a given user to a given resource - something like getAllowedPermissions(String username, String resourceParth)? I cannot find a method in the 'AuthorizationManager'. Could someone help me on this matter? Thanks, Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Sanjiva Weerawarana, Ph.D. Founder, Chairman CEO; WSO2, Inc.; http://wso2.com/ email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1 650 265 8311 blog: http://sanjiva.weerawarana.org/ Lean . Enterprise . Middleware ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Could I get the all permission (or actions) allowed for a given user to a given resource
Thanks Danushka .. It was the workaround I did - map the Cassandra's permissions to our permissions and then check authority for performing those actions on a given resource by a particular user. On Sat, Jan 22, 2011 at 10:43 AM, Danushka Menikkumbura danus...@wso2.comwrote: AFAIK there is a fixed set of actions (read, write, authorize, etc) that you can perform on resource. They are defined in a static class which I can not find right now :-(. What you need to do is check if each of them is allowed on a given resource. Danushka On Sat, Jan 22, 2011 at 10:03 AM, Indika Kumara ind...@wso2.com wrote: Yes, What I needed was to get the all actions (permissions) a user can do with a given resource. As per now, I decided going for a workaround. I will prepare a document by the time of reviewing of this POC, including the improvements/changes required at the Cassandra (some are already discussed in the Cassandra' mailing list), options for leveraging it our products, and so on. BTW, In the Cassandra's security model, a user has a set of groups and each group has roles Thanks, Indika On Sat, Jan 22, 2011 at 10:12 AM, Sanjiva Weerawarana sanj...@wso2.comwrote: IMO these API calls still don't give what Indika is looking for - he's asking how can I find out what a person can do. This model allows you to find the list of roles a person is in and then ask whether that roles is authorized to do X, Y, Z. However what he's looking for is list of all X, Y and Zs. Sanjiva. On Fri, Jan 21, 2011 at 10:24 PM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi, Since this is a POC we can do this. First we can call -public String[] getRoleListOfUser(String userName) throws UserStoreException in UserStoreManager Then we can call the following function for all possible combinations. -public boolean isRoleAuthorized(String roleName, String resourceId, String action) throws UserStoreException; Thanks, Dimuthu On Fri, Jan 21, 2011 at 10:18 PM, Indika Kumara ind...@wso2.comwrote: Thanks Dimuthu.. BTW, what would be the best solution (may be a workaround) - get the roles associated with a given user and then the permissions for roles. Thanks, Indika On Fri, Jan 21, 2011 at 10:44 PM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi, On Fri, Jan 21, 2011 at 10:12 PM, Indika Kumara ind...@wso2.comwrote: HI Dimuthu, My questions was different ... I needed to get all permissions associated with a given user for a given resource. Something like public Permission[] getAllowedPermissions(String username, String resourceParth) The Cassandra's authorization API requires that. Sorry misread your mail. Yes can be done. But user permissions are being deprecated. Thanks, Dimuthu Thanks, Indika On Fri, Jan 21, 2011 at 10:33 PM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi, There is a method like this in AuthorizationManager. public String[] getExplicitlyDeniedUsersForResource(String resourceId, String action) throws UserStoreException; public String[] getExplicitlyAllowedUsersForResource(String resourceId, String action) throws UserStoreException; However these methods are deprecated since we plan to use role based permissions. thanks, dimuthu On Fri, Jan 21, 2011 at 9:44 PM, Indika Kumara ind...@wso2.comwrote: Hi All, Could I get the all permission (or actions) allowed for a given user to a given resource - something like getAllowedPermissions(String username, String resourceParth)? I cannot find a method in the 'AuthorizationManager'. Could someone help me on this matter? Thanks, Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Sanjiva Weerawarana, Ph.D. Founder, Chairman CEO; WSO2, Inc.; http://wso2.com/ email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1 650 265 8311 blog: http://sanjiva.weerawarana.org/ Lean . Enterprise . Middleware ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon
[Carbon-dev] Is there a way to get the 'tenantId' of a particular user by using a remote call ?
Hi All, $ subject ? The scenario is that a user (a typical Cassandra client application) log-ins to the Cassandra with his username( e.g. ind...@wso2.com) and password. Within the user authentication logic, the Cassandra calls an IS server for real authentication. All user + tenant registration information is in the IS server. I need to access the 'tenantID' of the user for further operations in the Cassandra. I noticed in the ' AuthenticationAdmin' that the 'tenantId' is located. Could I get that 'tenantId'? This is the scenario where the Cassandra is a separate server. Thanks, Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] What is org.wso2.pwprovider ?
Hi Prabath, Sometime ago, we decided (in synapse DEV list) to move the Synapse secure vault to WS-commons so that axis2 ( + transports) can use it. I even provided a patch (only part of the solution). Thanks, Indika On Tue, Jan 4, 2011 at 12:32 PM, Prabath Siriwardana prab...@wso2.comwrote: Thanks Indika.. We are in the process of building a common secure vault approach - for all configuration files , could be carbon/synapse/axis2 and make it a WSO2 commons project.. Thanks regards, -Prabath On Tue, Jan 4, 2011 at 11:50 AM, Indika Kumara ind...@wso2.com wrote: Prabath That secure vault is based on the custom code done for a specific user. The original secure vault is in Synapse and it is described at [1]. Asela and I discuss about that yesterday. Thanks, Indika [1] http://wso2.org/project/esb/java/3.0.1/docs/securing_secret_information.html On Tue, Jan 4, 2011 at 12:14 PM, Prabath Siriwardana prab...@wso2.comwrote: This should be a WSO2 commons project [which is part of secure vault] and we also need to fix the naming Thanks regards, -Prabath On Tue, Jan 4, 2011 at 11:34 AM, Sumedha Rubasinghe sume...@wso2.comwrote: Is packaging naming convention right? Online build does not seem to download it. From where can I find the source? /sumedha Encountered following when building latest carbon-core trunk. Missing: -- 1) org.wso2.pwprovider:org.wso2.pwprovider:jar:1.6.4 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.wso2.pwprovider -DartifactId=org.wso2.pwprovider -Dversion=1.6.4 -Dpackaging=jar -Dfile=/path/to/file ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Thanks Regards, Prabath http://blog.facilelogin.com http://RampartFAQ.com ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Thanks Regards, Prabath http://blog.facilelogin.com http://RampartFAQ.com ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Can we fix this with Secure valut work we did?
When I created the JIRA, using the code in the secure-vault synapse module, the issue described in the JIRA could be fixed. However, I do know about any changes being done to the secure-vault module recently. Thanks, Indika On Wed, Dec 22, 2010 at 8:19 AM, Srinath Perera srin...@wso2.com wrote: moving to carbon dev On Wed, Dec 22, 2010 at 7:45 AM, Samisa Abeysinghe sam...@wso2.com wrote: Why are we discussing this here? Should be either Axis2 list or worst case carbon list On Wed, Dec 22, 2010 at 7:37 AM, Hiranya Jayathilaka hira...@wso2.com wrote: We should be able to. Secure vault code is in a separate module in Synapse. I also remember a discussion where we were planning to move this code out of Synapse and make it a part of WS-Commons or something where it can be better shared across different projects? Thanks, Hiranya On Wed, Dec 22, 2010 at 7:34 AM, Srinath Perera srin...@wso2.com wrote: https://issues.apache.org/jira/browse/AXIS2-4725 -- Srinath Perera, Ph.D. Senior Software Architect, WSO2 Inc. Visiting Lecturer, University of Moratuwa Member, Apache Software Foundation Research Scientist, Lanka Software Foundation Blog: http://srinathsview.blogspot.com/ -- Hiranya Jayathilaka Senior Software Engineer; WSO2 Inc.; http://wso2.org E-mail: hira...@wso2.com; Mobile: +94 77 633 3491 Blog: http://techfeast-hiranya.blogspot.com Thanks, Samisa... Samisa Abeysinghe VP Engineering WSO2 Inc. http://wso2.com http://wso2.org -- Srinath Perera, Ph.D. Senior Software Architect, WSO2 Inc. Visiting Lecturer, University of Moratuwa Member, Apache Software Foundation Research Scientist, Lanka Software Foundation Blog: http://srinathsview.blogspot.com/ ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Can we fix this with Secure valut work we did?
And, the secure-vault synapse module was a self-contained module, and at that time, we decided to move it into the WS-commons at later. Thanks, Indika On Wed, Dec 22, 2010 at 9:27 AM, Indika Kumara ind...@wso2.com wrote: When I created the JIRA, using the code in the secure-vault synapse module, the issue described in the JIRA could be fixed. However, I do know about any changes being done to the secure-vault module recently. Thanks, Indika On Wed, Dec 22, 2010 at 8:19 AM, Srinath Perera srin...@wso2.com wrote: moving to carbon dev On Wed, Dec 22, 2010 at 7:45 AM, Samisa Abeysinghe sam...@wso2.com wrote: Why are we discussing this here? Should be either Axis2 list or worst case carbon list On Wed, Dec 22, 2010 at 7:37 AM, Hiranya Jayathilaka hira...@wso2.com wrote: We should be able to. Secure vault code is in a separate module in Synapse. I also remember a discussion where we were planning to move this code out of Synapse and make it a part of WS-Commons or something where it can be better shared across different projects? Thanks, Hiranya On Wed, Dec 22, 2010 at 7:34 AM, Srinath Perera srin...@wso2.com wrote: https://issues.apache.org/jira/browse/AXIS2-4725 -- Srinath Perera, Ph.D. Senior Software Architect, WSO2 Inc. Visiting Lecturer, University of Moratuwa Member, Apache Software Foundation Research Scientist, Lanka Software Foundation Blog: http://srinathsview.blogspot.com/ -- Hiranya Jayathilaka Senior Software Engineer; WSO2 Inc.; http://wso2.org E-mail: hira...@wso2.com; Mobile: +94 77 633 3491 Blog: http://techfeast-hiranya.blogspot.com Thanks, Samisa... Samisa Abeysinghe VP Engineering WSO2 Inc. http://wso2.com http://wso2.org -- Srinath Perera, Ph.D. Senior Software Architect, WSO2 Inc. Visiting Lecturer, University of Moratuwa Member, Apache Software Foundation Research Scientist, Lanka Software Foundation Blog: http://srinathsview.blogspot.com/ ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] A good code written by Udayanga
Indeed very interesting!! – a lot to learn from. Look like Andreas Veithen's code (also http core) (only from the codes I have been familiar with) : java doc as required + a set of suitable abstractions for modeling a solution in terms of abstractions. If I am correct, Udayanga's code is in [1], and 'Base64EncodeFunction.java' is not part of his code. From my point of view, I feel that the ‘XpathExtensionUtil’ can be improved (I have not looked at it in details). I see that the number of arguments are higher than 3. You may be agreed or not with it but please have a look at the section 'Function Arguments' in Clean Code, Robert C. Martin. You may identify suitable abstractions to refactor 'XpathExtensionUtil'. I also feel it may be better to refactor the existing ‘Synapse XPath variable implementation’ to use Udayanga‘s new abstraction : ‘SynapseXpathVariableResolver’ - an implementation of 'SynapseXpathVariableResolver’'. Thanks, Indika [1] https://svn.apache.org/repos/asf/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/util/xpath/ext/ On Sat, Dec 18, 2010 at 8:52 AM, Supun Kamburugamuva su...@wso2.com wrote: Recently Udayanga did an improvement to Synapse XPath extensions. Now a user can write their own XPath extensions to synapse. I just wanted to point out that the code was written nicely with comments and the coding style was good. It is nice to see good codes contributed to our projects. The code can be found at [1] [1] https://svn.apache.org/repos/asf/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/util/xpath Thanks, -- Supun Kamburugamuva Technical Lead WSO2 Inc.; http://wso2.org E-mail: su...@wso2.com; Mobile: +94 77 431 3585 Blog: http://supunk.blogspot.com ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] R: Registering custom servlet on Carbon OSGI HttpService
Azeez ,,, it is http://wso2.org/forum/thread/9876 ... and 'Cappa Roberto' has posted it (The user who has replied to this email thread) I beleive it would be better to provide an answer in the forum as it may be useful to some other users engaged in the ESB forum ... Because , there is a lot of users in the ESB forum. Thanks Indika On Wed, Jun 23, 2010 at 1:24 PM, Afkham Azeez az...@wso2.com wrote: Indika, can you please post the link to that forum topic. I'm wondering whether the user wants to deploy a new Web application or whether he wants to write a Carbon component containing a servlet. Thanks Azeez On Wed, Jun 23, 2010 at 12:26 PM, Cappa Roberto roberto.ca...@guest.telecomitalia.it wrote: Hi, I think the problem is specific of ESB, because on other products (like WSAS) there isn't a servlet that intercepts all requests. Is there a particular configuration of ESB (or one of synapse bundles) that registers a /* servlet with OSGi HttpService? Thanks Da: carbon-dev-boun...@wso2.org [carbon-dev-boun...@wso2.org] per conto di Afkham Azeez [az...@wso2.com] Inviato: mercoledì 23 giugno 2010 8.52 A: carbon-dev@wso2.org Oggetto: Re: [Carbon-dev] Registering custom servlet on Carbon OSGI HttpService No! We don't generally use web.xml. You must get hold of the OSGi HTTPService register your servlet. I think we used to allow users to do it using the component.xml file (for FE components) as well, but that is not recommended anymore. Azeez On Wed, Jun 23, 2010 at 12:11 PM, Indika Kumara ind...@wso2.commailto: ind...@wso2.com wrote: Hi all $subject is in [1]. I tell him to try with 'web.xml' if it is incorrect or there are any other ways , could someone please provide the correct answer? Thanks Indika ___ Carbon-dev mailing list Carbon-dev@wso2.orgmailto:Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Afkham Azeez Senior Software Architect Product Manager, WSO2 WSAS; WSO2, Inc.; http://wso2.com, Lean . Enterprise . Middleware Member; Apache Software Foundation; http://www.apache.org/ email: az...@wso2.commailto:az...@wso2.com cell: +94 77 3320919 blog: http://blog.afkham.org twitter: http://twitter.com/afkham_azeez linked-in http://twitter.com/afkham_azeezlinked-in: http://lk.linkedin.com/in/afkhamazeez ___ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Afkham Azeez Senior Software Architect Product Manager, WSO2 WSAS; WSO2, Inc.; http://wso2.com, Lean . Enterprise . Middleware Member; Apache Software Foundation; http://www.apache.org/ email: az...@wso2.com cell: +94 77 3320919 blog: http://blog.afkham.org twitter: http://twitter.com/afkham_azeez linked-in: http://lk.linkedin.com/in/afkhamazeez ___ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] SAML Token Profile / SAML Assertion
Hi All A user has asked about SAML Token Profile / SAML Assertion in [1][2]. Could someone find time to provide an answer ? Thanks Indika [1] http://wso2.org/forum/thread/9858 [2] http://wso2.org/forum/thread/9857 ___ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Clustering feature Installation Issue
Thanks On Sun, Jun 13, 2010 at 7:13 AM, Afkham Azeez az...@wso2.com wrote: Provided the reply. She has used the wrong P2 repo, Azeez On Sat, Jun 12, 2010 at 4:37 PM, Indika Kumara ind...@wso2.com wrote: Hi All If some one have time, could he or she provide an assist for [1]... Thanks Indika [1] http://wso2.org/forum/thread/9814 ___ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Afkham Azeez Senior Software Architect Product Manager, WSO2 WSAS; WSO2, Inc.; http://wso2.com, Lean . Enterprise . Middleware Member; Apache Software Foundation; http://www.apache.org/ email: az...@wso2.com cell: +94 77 3320919 blog: http://blog.afkham.org twitter: http://twitter.com/afkham_azeez linked-in: http://lk.linkedin.com/in/afkhamazeez ___ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] Clustering feature Installation Issue
Hi All If some one have time, could he or she provide an assist for [1]... Thanks Indika [1] http://wso2.org/forum/thread/9814 ___ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Mediation initializer build errors
I will check this immediately. On Wed, Jun 2, 2010 at 9:20 PM, Samisa Abeysinghe sam...@wso2.com wrote: On Wed, Jun 2, 2010 at 8:47 PM, Supun Kamburugamuva su...@wso2.comwrote: There were some changes done in synapse trunk. If you build synapse trunk these errors should go away. I built trunk on Monday. Am I suppose to build it again? (I will try that) Samisa... Thanks, Supun.. On Wed, Jun 2, 2010 at 7:52 PM, Samisa Abeysinghe sam...@wso2.com wrote: [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure /home/carbon/stratos/carbon/components/mediation-initializer/org.wso2.carbon.mediation.initializer/src/main/java/org/wso2/carbon/mediation/initializer/ServiceBusInitializer.java:[28,43] package org.apache.synapse.commons.security does not exist /home/carbon/stratos/carbon/components/mediation-initializer/org.wso2.carbon.mediation.initializer/src/main/java/org/wso2/carbon/mediation/initializer/ServiceBusInitializer.java:[321,59] cannot find symbol symbol : variable DATASOURCE_INFORMATION_REPOSITORY location: class org.apache.synapse.commons.datasource.DataSourceConstants /home/carbon/stratos/carbon/components/mediation-initializer/org.wso2.carbon.mediation.initializer/src/main/java/org/wso2/carbon/mediation/initializer/ServiceBusInitializer.java:[337,40] cannot find symbol symbol : variable SecurityConstants location: class org.wso2.carbon.mediation.initializer.ServiceBusInitializer Samisa ... http://samisa-abeysinghe.blogspot.com/ ___ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev Samisa Abeysinghe VP Engineering WSO2 Inc. http://wso2.com http://wso2.org ___ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Mediation initializer build errors
It seems like this has been already fixed . Need to take a syn up on mediation-initializer component.. Indika On Wed, Jun 2, 2010 at 8:22 PM, Samisa Abeysinghe sam...@wso2.com wrote: [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure /home/carbon/stratos/carbon/components/mediation-initializer/org.wso2.carbon.mediation.initializer/src/main/java/org/wso2/carbon/mediation/initializer/ServiceBusInitializer.java:[28,43] package org.apache.synapse.commons.security does not exist /home/carbon/stratos/carbon/components/mediation-initializer/org.wso2.carbon.mediation.initializer/src/main/java/org/wso2/carbon/mediation/initializer/ServiceBusInitializer.java:[321,59] cannot find symbol symbol : variable DATASOURCE_INFORMATION_REPOSITORY location: class org.apache.synapse.commons.datasource.DataSourceConstants /home/carbon/stratos/carbon/components/mediation-initializer/org.wso2.carbon.mediation.initializer/src/main/java/org/wso2/carbon/mediation/initializer/ServiceBusInitializer.java:[337,40] cannot find symbol symbol : variable SecurityConstants location: class org.wso2.carbon.mediation.initializer.ServiceBusInitializer Samisa ... http://samisa-abeysinghe.blogspot.com/ ___ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
[Carbon-dev] A bug with proxy service UI ?
as per [1] .. after updating with a proxy service with proxy UI , any attached policies to proxy are lost ... Also , if you have configure a security scenario through the service management page to a proxy service , you can not update the synapse configuration from manage configuration menu. Thanks Indika [1] http://wso2.org/forum/thread/9622 ___ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] To package or assemble a custom mediator that depends upon dependencies that depend upon Spring
Thanks lots On Thu, Apr 22, 2010 at 12:31 PM, Sameera Jayasoma same...@wso2.com wrote: Done. Thanks Sameera On Thu, Apr 22, 2010 at 11:14 AM, Indika Kumara ind...@wso2.com wrote: Hi all $subject is from a user [1] There are multiple jars and he needs to know where to put each jars ... Could someone help him please.? Thanks Indika [1]http://wso2.org/forum/thread/9562 ___ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
Re: [Carbon-dev] Help - I am getting a series of exceptions
I will take a svn up and check ... Indika On Mon, Mar 1, 2010 at 10:35 PM, Samisa Abeysinghe sam...@wso2.com wrote: Are you using latest svn? What is your svn revision?? Samisa... On Mon, Mar 1, 2010 at 10:02 PM, Indika Kumara ind...@wso2.com wrote: Hi all I am getting following series of exceptions … Could someone please help me? What is the wrong? What module I should take update? , etc ……… . ERROR ThrottleServiceComponent Failed to activate Throttle bundle java.lang.IncompatibleClassChangeError: Found interface org.wso2.carbon.user.core.tenant.TenantManager, but class was expected ……. 2010-03-01 21:50:55,906 [-] [Component Resolve Thread (Bundle 59)] ERROR ResourceDAO Failed to check the existence of the resource /. Timeout trying to lock table REG_RESOURCE; SQL statement: SELECT REG_VERSION FROM REG_RESOURCE WHERE REG_PATH_ID=? AND REG_NAME IS NULL AND REG_TENANT_ID=? [50200-112] org.h2.jdbc.JdbcSQLException: Timeout trying to lock table REG_RESOURCE; SQL statement: SELECT REG_VERSION FROM REG_RESOURCE WHERE REG_PATH_ID=? AND REG_NAME IS NULL AND REG_TENANT_ID=? [50200-112] …….. 2010-03-01 21:50:55,937 [-] [Component Resolve Thread (Bundle 59)] FATAL UserRegistry Failed to add the root collection to the coreRegistry. org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to check the existence of the resource /. Timeout trying to lock table REG_RESOURCE; SQL statement: SELECT REG_VERSION FROM REG_RESOURCE WHERE REG_PATH_ID=? AND REG_NAME IS NULL AND REG_TENANT_ID=? [50200-112] Caused by: org.h2.jdbc.JdbcSQLException: Timeout trying to lock table REG_RESOURCE; SQL statement: SELECT REG_VERSION FROM REG_RESOURCE WHERE REG_PATH_ID=? AND REG_NAME IS NULL AND REG_TENANT_ID=? [50200-112] …. Further …. Thanks Indika ___ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev -- Samisa Abeysinghe Director, Engineering - WSO2 Inc. http://wso2.com/ - lean . enterprise . middleware ___ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev ___ Carbon-dev mailing list Carbon-dev@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev