Re: [Dev] We are getting some class not found issues intermittently
Hi Ratha, Can you try to reproduce by removing the following jar from patch0009? repository/components/patches/patch0009/spring.framework_3.1.0.wso2v1.jar Thanks, Sameera. On Wed, Jul 9, 2014 at 6:49 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: Is there any recent change in the *core.util module* which causes this issue? osgi ls 454 Components in bundle org.wso2.carbon.utils: ID State Component Name Located in bundle 155 Active org.wso2.carbon.context.internal.CarbonContextDiscoveryServiceComponent org.wso2.carbon.utils(bid=454) 156 Active org.wso2.carbon.context.internal.CarbonContextServiceComponent org.wso2.carbon.utils(bid=454) 157 Unsatisfied org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent org.wso2.carbon.utils(bid=454) osgi comp 157 Component[ name = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent factory = null autoenable = true immediate = true implementation = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent state = Unsatisfied properties = {service.pid=org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent} serviceFactory = false serviceInterface = null references = { Reference[name = configuration.context.service, interface = org.wso2.carbon.utils.ConfigurationContextService, policy = dynamic, cardi nality = 1..1, target = null, bind = setConfigurationContextService, unbind = unsetConfigurationContextService] } located in bundle = org.wso2.carbon.utils_4.2.0 [454] ] Dynamic information : *The component is NOT satisfied The following references are not satisfied: Reference[name = configuration.context.service, interface = org.wso2.carbon.utils.ConfigurationContextService, policy = dynamic, cardinality = 1.. 1, target = null, bind = setConfigurationContextService, unbind = unsetConfigurationContextService] Component configurations : Configuration properties: service.pid = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent component.name = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent component.id = 156 Instances: On 9 July 2014 18:28, Vijayaratha Vijayasingam rat...@wso2.com wrote: when i get* java.lang.* *ClassNotFoundException: org.wso2.carbon.tomcat.ext.**servlet.DelegationServlet *issue here are the osgi out put; *osgi headers 421* Bundle headers: Bnd-LastModified = 1404369790626 Build-Jdk = 1.6.0_45 Built-By = root Bundle-Description = This bundle contains custom tomcat extensions such as tomcat valves,etc Bundle-DocURL = http://wso2.com Bundle-License = http://www.apache.org/licenses/LICENSE-2.0 Bundle-ManifestVersion = 2 Bundle-Name = org.wso2.carbon.tomcat.ext Bundle-SymbolicName = org.wso2.carbon.tomcat.ext Bundle-Vendor = WSO2 Inc Bundle-Version = 4.2.0 Created-By = Apache Maven Bundle Plugin Export-Package = org.wso2.carbon.tomcat.ext.service;uses:=org.apache.commons.logging,org.apache.catalina,org.apache.catalina.core;version=4.2.0,o rg.wso2.carbon.tomcat.ext.scan;uses:=javax.servlet,org.apache.tomcat,org.apache.tomcat.util.res,org.apache.tomcat.util.file,org.apache.juli.logging,o rg.eclipse.osgi.framework.adaptor,org.apache.tomcat.util.scan;version=4.2.0,org.wso2.carbon.tomcat.ext.valves;uses:=org.wso2.carbon.registry.core. service,org.apache.catalina.connector,org.apache.commons.logging,org.apache.catalina.valves,org.wso2.carbon.user.api,org.wso2.carbon.registry.api,org. wso2.carbon.registry.core.ghostregistry,org.wso2.carbon.context,javax.servlet,org.wso2.carbon.user.core.service,org.apache.catalina, org.wso2.carbon.to mcat.ext.utils,javax.servlet.http,org.apache.juli.logging,org.apache.tomcat.util.res,org.wso2.carbon.core.session,org.apache.catalina.ha, org.apache.ax is2.clustering,org.wso2.carbon.tomcat.ext.saas,org.wso2.carbon.tomcat.ext.realms,org.wso2.carbon.user.core.tenant,org.apache.coyote, org.wso2.carbon.ba se;version=4.2.0,org.wso2.carbon.tomcat.ext.saas;version=4.2.0,org.wso2.carbon.tomcat.ext.utils;version=4.2.0,org.wso2.carbon.tomcat.ext.filter ;uses:=javax.servlet;version=4.2.0,org.wso2.carbon.tomcat.ext.realms;uses:=org.apache.catalina.realm,org.apache.commons.logging,org.wso2.carbon.u ser.core.service,org.wso2.carbon.user.api,org.wso2.carbon.utils.multitenancy,org.wso2.carbon.tomcat.ext.saas,org.wso2.carbon.context;version=4.2.0, org.wso2.carbon.tomcat.ext.transport;uses:=org.wso2.carbon.tomcat.api,org.apache.commons.logging,org.wso2.carbon.base.api,org.wso2.carbon.core;versi on=4.2.0,org.wso2.carbon.tomcat.ext.servlet;uses:=javax.servlet,org.apache.commons.logging,org.wso2.carbon.utils,org.eclipse.equinox.http.servlet,j avax.servlet.http,org.wso2.carbon.base;version=4.2.0,org.wso2.carbon.tomcat.ext.transport.statistics;uses:=org.apache.commons.logging,org.wso2.car
Re: [Dev] Sugarcane release
In addition we experienced some longtime server hanging issues once a test failure been occurred - this is a blocker since it affects remaining tests to be run. And also it seems like server is causing continuous connection failure problems. Can we look into these issues promptly? Regards, Dimuthu On Mon, Jul 14, 2014 at 11:14 AM, Dimuthu De Lanerolle dimut...@wso2.com wrote: Hi , We have completed writing a layer to plug Jaggery test framework with TAF. However we were unable to run all tests smoothly due to some exceptions encountered while running several tests continuously. Please find a JIRA raised below for a similar situation. https://wso2.org/jira/browse/JAGGERY-387 Regards, Dimuthu On Mon, May 19, 2014 at 10:47 PM, Niranjan Karunanandham niran...@wso2.com wrote: Thanks Ruchira. @Dilshan: I have made the necessary changes to emm. Regards, Nira On Mon, May 19, 2014 at 10:02 PM, Dilshan Edirisuriya dils...@wso2.com wrote: Thanks Ruchira. On Mon, May 19, 2014 at 7:59 PM, Ruchira Wageesha ruch...@wso2.com wrote: Hi Chan/Dilshan, I have deployed test module as jaggery-test into the wso2 maven repository. Please add it using following as a feature. feature idorg.jaggeryjs.modules.jaggery-test.feature.group/id version1.0.0/version /feature featureArtifactDeforg.jaggeryjs.modules:jaggery-test.feature:1.0.0/featureArtifactDef On Mon, May 19, 2014 at 4:32 PM, madhuka udantha madhukaudan...@gmail.com wrote: On Mon, May 19, 2014 at 4:30 PM, Dilshan Edirisuriya dils...@wso2.com wrote: Hi Madhuka, Thanks. I think we have to add it to platform features as well as nexus repo? +1, for to get nexus repo A person trying to build the EMM code has no clue where it is coming from. Regards, Dilshan On Mon, May 19, 2014 at 4:26 PM, madhuka udantha madhukaudan...@gmail.com wrote: Hi, Dilshan $subjet[1] is the jagery-test. Get code from my local repo[1] to jaggery-extensions[2] and rename it to 'jaggery-test'. Rename the feature name in EMM and get jaggery team help to build it from bamboo or jenkins, then it will be solved. Thanks [1] https://github.com/Madhuka/sugarcane [2] https://github.com/wso2/jaggery-extensions On Mon, May 19, 2014 at 3:34 PM, Dilshan Edirisuriya dils...@wso2.com wrote: Hi, I see sugarcane is added as a feature in EMM. It simply breaks the build unless you specifically build the feature from the source repo. From where does it come from? Doesn;t it have to reside in WSO2 feature list? Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Failure to find sugarcane:sugarcane.feature:zip:1.0.0-SNAPSHOT in http://dist.wso2.org/maven2/ was cached in the loca l repository, resolution will not be reattempted until the update interval of wso2-maven2-repository has elapsed or updates are forced Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=sugarcane -DartifactId=sugarcane.feature -Dversion=1.0.0-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=sugarcane -DartifactId=sugarcane.feature -Dversion=1.0.0-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] sugarcane:sugarcane.feature:zip:1.0.0-SNAPSHOT Regards, Dilshan On Mon, May 12, 2014 at 9:37 PM, madhuka udantha madhukaudan...@gmail.com wrote: HI, chan you can get repo in my local git that you was referring. simple just rename it as you adding wso2 repo. On Mon, May 12, 2014 at 8:46 PM, Chan duli...@wso2.com wrote: Where is jaggery-test? Can't seem to find it.. On Mon, May 12, 2014 at 8:41 PM, madhuka udantha madhukaudan...@gmail.com wrote: Hi, It is 'jaggery-test' and you can added it jaggery-extension. If we have any other repo/org is ready for jaggery modules, you can add it there and get release. [1] https://github.com/wso2/jaggery-extensions On Mon, May 12, 2014 at 6:24 PM, Sagara Gunathunga sag...@wso2.com wrote: On Mon, May 12, 2014 at 6:14 PM, Chan duli...@wso2.com wrote: Hi folks, We are using sugarcane[1] testing framework for unit tests. It's currently not released. Can we please get it released and available in nexus repo. Guys, What is sugarcane ? what happen to JaggeryTest module that we agreed to develop. Cheers~ [1] - https://github.com/Madhuka/sugarcane I can't find any licence on above repo also not sure how we (WSO2) can release a product hosted on personal repo. Thanks ! -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw
[Dev] Which Hadoop version should we support in SS 1.5.0 ?
Hi, The latest release is 2.4.1. Which is a bug fix release for the 2.4.x line, released on the 30th of June 2014. This release has a fix for a security bug and they recommend users to move to this version immediately. Or we could also use the 2.2.0 which is the GA release of 2.x, released in October 2013. Should we go ahead with 2.4.1? -- Thanks and Regards *, Shani Ranasinghe* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 77 2273555 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Carbon] Reproducing Bug - Logging incorrect tenant ID in wso2carbon.log
Hi Malintha, Thanks a lot for the help. I was able to reproduce the issue using a custom tenant aware log file appender. I am looking in to fixing the issue now. Thanks. /Gayashan On Fri, Jul 11, 2014 at 10:21 AM, Malintha Adikari malin...@wso2.com wrote: Hi Gayashan, You can observe this issue in waso2carbon.log file of any product. Each log event in those logs shows it's tenant user id (according to the pattern we have mentioned in the log4jproperties file ). Some of those log event has -1 as the tenant id. According to my understanding, normal wso2carbon log events show the tenant id as 0 for every log event. That is an another issue and you couldn't observe this issue in normal wso2carbon.log files. What I did was created an simple OSGI bundle for log appending and registered it in the wso2carbonlog section in log4jproperties file. I could reproduce the issue using that log appender file. Regards, Malintha Adikari -- *Gayashan Amarasinghe* Software Engineer | Platform TG WSO2, Inc. | http://wso2.com lean. enterprise. middleware Mobile : +94718314517 Blog : gayashan-a.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] We are getting some class not found issues intermittently
Hi sameera; Thanks ..looks like this solved the issue..I restarted the server several times, but haven't faced any issue.. May i know how do you find the root cause? so, we won't disturb core team to fix these type issues? thanks On 14 July 2014 11:53, Sameera Jayasoma same...@wso2.com wrote: Hi Ratha, Can you try to reproduce by removing the following jar from patch0009? repository/components/patches/patch0009/spring.framework_3.1.0.wso2v1.jar Thanks, Sameera. On Wed, Jul 9, 2014 at 6:49 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: Is there any recent change in the *core.util module* which causes this issue? osgi ls 454 Components in bundle org.wso2.carbon.utils: ID State Component Name Located in bundle 155 Active org.wso2.carbon.context.internal.CarbonContextDiscoveryServiceComponent org.wso2.carbon.utils(bid=454) 156 Active org.wso2.carbon.context.internal.CarbonContextServiceComponent org.wso2.carbon.utils(bid=454) 157 Unsatisfied org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent org.wso2.carbon.utils(bid=454) osgi comp 157 Component[ name = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent factory = null autoenable = true immediate = true implementation = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent state = Unsatisfied properties = {service.pid=org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent} serviceFactory = false serviceInterface = null references = { Reference[name = configuration.context.service, interface = org.wso2.carbon.utils.ConfigurationContextService, policy = dynamic, cardi nality = 1..1, target = null, bind = setConfigurationContextService, unbind = unsetConfigurationContextService] } located in bundle = org.wso2.carbon.utils_4.2.0 [454] ] Dynamic information : *The component is NOT satisfied The following references are not satisfied: Reference[name = configuration.context.service, interface = org.wso2.carbon.utils.ConfigurationContextService, policy = dynamic, cardinality = 1.. 1, target = null, bind = setConfigurationContextService, unbind = unsetConfigurationContextService] Component configurations : Configuration properties: service.pid = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent component.name = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent component.id = 156 Instances: On 9 July 2014 18:28, Vijayaratha Vijayasingam rat...@wso2.com wrote: when i get* java.lang.* *ClassNotFoundException: org.wso2.carbon.tomcat.ext.**servlet.DelegationServlet *issue here are the osgi out put; *osgi headers 421* Bundle headers: Bnd-LastModified = 1404369790626 Build-Jdk = 1.6.0_45 Built-By = root Bundle-Description = This bundle contains custom tomcat extensions such as tomcat valves,etc Bundle-DocURL = http://wso2.com Bundle-License = http://www.apache.org/licenses/LICENSE-2.0 Bundle-ManifestVersion = 2 Bundle-Name = org.wso2.carbon.tomcat.ext Bundle-SymbolicName = org.wso2.carbon.tomcat.ext Bundle-Vendor = WSO2 Inc Bundle-Version = 4.2.0 Created-By = Apache Maven Bundle Plugin Export-Package = org.wso2.carbon.tomcat.ext.service;uses:=org.apache.commons.logging,org.apache.catalina,org.apache.catalina.core;version=4.2.0,o rg.wso2.carbon.tomcat.ext.scan;uses:=javax.servlet,org.apache.tomcat,org.apache.tomcat.util.res,org.apache.tomcat.util.file,org.apache.juli.logging,o rg.eclipse.osgi.framework.adaptor,org.apache.tomcat.util.scan;version=4.2.0,org.wso2.carbon.tomcat.ext.valves;uses:=org.wso2.carbon.registry.core. service,org.apache.catalina.connector,org.apache.commons.logging,org.apache.catalina.valves,org.wso2.carbon.user.api,org.wso2.carbon.registry.api,org. wso2.carbon.registry.core.ghostregistry,org.wso2.carbon.context,javax.servlet,org.wso2.carbon.user.core.service,org.apache.catalina, org.wso2.carbon.to mcat.ext.utils,javax.servlet.http,org.apache.juli.logging,org.apache.tomcat.util.res,org.wso2.carbon.core.session,org.apache.catalina.ha, org.apache.ax is2.clustering,org.wso2.carbon.tomcat.ext.saas,org.wso2.carbon.tomcat.ext.realms,org.wso2.carbon.user.core.tenant,org.apache.coyote, org.wso2.carbon.ba se;version=4.2.0,org.wso2.carbon.tomcat.ext.saas;version=4.2.0,org.wso2.carbon.tomcat.ext.utils;version=4.2.0,org.wso2.carbon.tomcat.ext.filter ;uses:=javax.servlet;version=4.2.0,org.wso2.carbon.tomcat.ext.realms;uses:=org.apache.catalina.realm,org.apache.commons.logging,org.wso2.carbon.u ser.core.service,org.wso2.carbon.user.api,org.wso2.carbon.utils.multitenancy,org.wso2.carbon.tomcat.ext.saas,org.wso2.carbon.context;version=4.2.0,
[Dev] AMIP 1.7.0 Invalid domain name exception on tenant with secondary storage.
Hi. I have configured JDBC secondary storage for a tenant in APIM 1.7.0, afterwards I created new API and published it. After that when i logged in to the store and click on that API I am getting following error. org.wso2.carbon.forum.ForumException: Failed to initialize GenericArtifactManager Caused by: org.wso2.carbon.registry.core.exceptions.RegistryException: Could not check authorization. Caused by Invalid Domain Name at org.wso2.carbon.registry.core.utils.AuthorizationUtils.authorize(AuthorizationUtils.java:58) at org.wso2.carbon.registry.core.jdbc.dataaccess.SQLQueryProcessor.executeQuery(SQLQueryProcessor.java:266) at org.wso2.carbon.registry.core.jdbc.queries.QueryProcessorManager.executeQuery(QueryProcessorManager.java:137) at org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.executeQuery(EmbeddedRegistry.java:2276) at org.wso2.carbon.registry.core.caching.CacheBackedRegistry.executeQuery(CacheBackedRegistry.java:354) at org.wso2.carbon.registry.core.session.UserRegistry.executeQuery(UserRegistry.java:1251) at org.wso2.carbon.governance.api.util.GovernanceUtils.getResultPaths(GovernanceUtils.java:210) ... 53 more Caused by: org.wso2.carbon.user.core.UserStoreException: Invalid Domain Name at org.wso2.carbon.user.core.common.AbstractUserStoreManager.getUserStore(AbstractUserStoreManager.java:2294) at org.wso2.carbon.user.core.common.AbstractUserStoreManager.isUserInRole(AbstractUserStoreManager.java:1752) at org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.isUserAuthorized(JDBCAuthorizationManager.java:229) at org.wso2.carbon.registry.core.jdbc.realm.RegistryAuthorizationManager.isUserAuthorized(RegistryAuthorizationManager.java:195) at org.wso2.carbon.registry.core.utils.AuthorizationUtils.authorize(AuthorizationUtils.java:51) ... 59 more Here are the steps that I have followed. I have a tenant called abc.com. 1 Create a JDBC secondary storage with domain name = abc.com 2.Create two users on it = publis...@gmail.com/subscri...@gmail.com 3.logged in to the publisher and create api and publish it. (user name =ABC.COM/publis...@gmail.com@abc.com) 4.logged in to the store and click on created API i can replicate above error. (user name =ABC.COM/subscri...@gmail.com@abc.com) Even though, I can't see any functionality failure over it. Regards Roshan. -- Roshan Wijesena. Senior Software Engineer-WSO2 Inc. Mobile: *+94752126789* Email: ros...@wso2.com *WSO2, Inc. :** wso2.com http://wso2.com/* lean.enterprise.middleware. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] We are getting some class not found issues intermittently
Hi, Although removing the jar fixed this issue, it will break the cause it was originally added for right. Do we have a solution/workaround for that? Thanks, NuwanD. On Mon, Jul 14, 2014 at 12:31 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: Hi sameera; Thanks ..looks like this solved the issue..I restarted the server several times, but haven't faced any issue.. May i know how do you find the root cause? so, we won't disturb core team to fix these type issues? thanks On 14 July 2014 11:53, Sameera Jayasoma same...@wso2.com wrote: Hi Ratha, Can you try to reproduce by removing the following jar from patch0009? repository/components/patches/patch0009/spring.framework_3.1.0.wso2v1.jar Thanks, Sameera. On Wed, Jul 9, 2014 at 6:49 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: Is there any recent change in the *core.util module* which causes this issue? osgi ls 454 Components in bundle org.wso2.carbon.utils: ID State Component Name Located in bundle 155 Active org.wso2.carbon.context.internal.CarbonContextDiscoveryServiceComponent org.wso2.carbon.utils(bid=454) 156 Active org.wso2.carbon.context.internal.CarbonContextServiceComponent org.wso2.carbon.utils(bid=454) 157 Unsatisfied org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent org.wso2.carbon.utils(bid=454) osgi comp 157 Component[ name = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent factory = null autoenable = true immediate = true implementation = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent state = Unsatisfied properties = {service.pid=org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent} serviceFactory = false serviceInterface = null references = { Reference[name = configuration.context.service, interface = org.wso2.carbon.utils.ConfigurationContextService, policy = dynamic, cardi nality = 1..1, target = null, bind = setConfigurationContextService, unbind = unsetConfigurationContextService] } located in bundle = org.wso2.carbon.utils_4.2.0 [454] ] Dynamic information : *The component is NOT satisfied The following references are not satisfied: Reference[name = configuration.context.service, interface = org.wso2.carbon.utils.ConfigurationContextService, policy = dynamic, cardinality = 1.. 1, target = null, bind = setConfigurationContextService, unbind = unsetConfigurationContextService] Component configurations : Configuration properties: service.pid = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent component.name = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent component.id = 156 Instances: On 9 July 2014 18:28, Vijayaratha Vijayasingam rat...@wso2.com wrote: when i get* java.lang.* *ClassNotFoundException: org.wso2.carbon.tomcat.ext.**servlet.DelegationServlet *issue here are the osgi out put; *osgi headers 421* Bundle headers: Bnd-LastModified = 1404369790626 Build-Jdk = 1.6.0_45 Built-By = root Bundle-Description = This bundle contains custom tomcat extensions such as tomcat valves,etc Bundle-DocURL = http://wso2.com Bundle-License = http://www.apache.org/licenses/LICENSE-2.0 Bundle-ManifestVersion = 2 Bundle-Name = org.wso2.carbon.tomcat.ext Bundle-SymbolicName = org.wso2.carbon.tomcat.ext Bundle-Vendor = WSO2 Inc Bundle-Version = 4.2.0 Created-By = Apache Maven Bundle Plugin Export-Package = org.wso2.carbon.tomcat.ext.service;uses:=org.apache.commons.logging,org.apache.catalina,org.apache.catalina.core;version=4.2.0,o rg.wso2.carbon.tomcat.ext.scan;uses:=javax.servlet,org.apache.tomcat,org.apache.tomcat.util.res,org.apache.tomcat.util.file,org.apache.juli.logging,o rg.eclipse.osgi.framework.adaptor,org.apache.tomcat.util.scan;version=4.2.0,org.wso2.carbon.tomcat.ext.valves;uses:=org.wso2.carbon.registry.core. service,org.apache.catalina.connector,org.apache.commons.logging,org.apache.catalina.valves,org.wso2.carbon.user.api,org.wso2.carbon.registry.api,org. wso2.carbon.registry.core.ghostregistry,org.wso2.carbon.context,javax.servlet,org.wso2.carbon.user.core.service,org.apache.catalina, org.wso2.carbon.to mcat.ext.utils,javax.servlet.http,org.apache.juli.logging,org.apache.tomcat.util.res,org.wso2.carbon.core.session,org.apache.catalina.ha, org.apache.ax is2.clustering,org.wso2.carbon.tomcat.ext.saas,org.wso2.carbon.tomcat.ext.realms,org.wso2.carbon.user.core.tenant,org.apache.coyote, org.wso2.carbon.ba se;version=4.2.0,org.wso2.carbon.tomcat.ext.saas;version=4.2.0,org.wso2.carbon.tomcat.ext.utils;version=4.2.0,org.wso2.carbon.tomcat.ext.filter ;uses:=javax.servlet;version=4.2.0,org.wso2.carbon.tomcat.ext.realms;uses:=org.apache.catalina.realm,org.apache.commons.logging,org.wso2.carbon.u
[Dev] [DEV] Retrieving an environment variable from Java
Hi all, Using java code, I'm trying to retrieve an environment variable defined in the OS(Ubuntu). When I define a variable in bashrc / bash_profile and **echo $SOME_VARIABLE** in the terminal, it shows it properly. But when I'm accessing it with Java, using System.getenv() , this variable doesn't appear. What could be the reason? MapString, String variables = System.getenv(); for (Map.EntryString, String entry : variables.entrySet()) { String name = entry.getKey(); String value = entry.getValue(); System.out.println(name + = + value); } Regards, Inosh -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DSS][AXIS2][AXIS2-JSON] Writing a new XML to JSON conversion
Thank you for the quick responses. I checked in sources from both the locations https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0007/dependencies/axis2/modules/json/ https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/dependencies/axis2/1.6.1-wso2v10/modules/json Separately build without any modifications, and put generated jar to patch8 folder. Once I restart the server following message shows in the console. Could not start: null(reference:file:../plugins/axis2-json_1.6.1.wso2v10.jar:15). It's state is uninstalled. After that logs the following error. Caused by: java.lang.ClassNotFoundException: org.apache.axis2.json.gson.JSONMessageHandler Any work around? On Sun, Jul 13, 2014 at 11:30 PM, Shameera Rathnayaka shame...@wso2.com wrote: Hi Yasas, Assuming you are going to customize the JSON mapped convention (Standard Mapped Json support is their with Axis2),You don't need to do anything to axis2 jar. Implement your new JSON builder and formatter, then create a new jar(or osgi bundle) using those new classes and copy that jar ( or osgi bundle) to DSS_HOME/repository/components/lib ( or DSS_HOME/repository/components/dropings) directory. Finally, you need to configure your builder and formatter in axis2.xm configuration file (like your 3rd step). Thanks, Shameera. On Sun, Jul 13, 2014 at 10:35 PM, Rajith Vitharana raji...@wso2.com wrote: Hi Yasas, The points you have mentioned are correct, but there are small changes I would like to point out. Below are the steps you'll need to follow to achieve your goal. 1 - There is a patch release for the axis2-json so you'll need to check out the source from [1] instead of the svn location you have mentioned. (checkout the whole patch0007 instead of json module, so that it'll be easy for you to build the source.) 2 - Add the classes you need to the source. You'll need to extend AbstractJSONMessageFormatter in your custom formatter class You'll need to extend AbstractJSONOMBuilder in you custom builder class 3 - Build the whole patch0007. Then go to patch0007/dependencies/orbit/axis2-json/target folder where you can find the osgi bundle created from axis2-json module. 4 - Create patch0008 folder inside DSS_HOME/repository/components/patches folder and copy the osgi bundle you found in step 3 to that folder. 5 - Add messageFormatter and messageBuilder elements to the DSS_HOME/repository/conf/axis2/axis2.xml as you have pointed out in your step 3. 6 - Restart the server and invoke your service adding Accept request header to the request with new content type you mentioned in axis2.xml, example would be Accept:application/json/newformat.(You can find sample of how to do it in [2]) [1] - https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0007/dependencies/axis2/modules/json/ [2] - http://janakaranabahu.blogspot.com/2013/06/return-json-response-from-wso2-dss.html Thanks, On Sun, Jul 13, 2014 at 1:45 PM, Yasas Karunarathna yasasm...@gmail.com wrote: Hi there, I want to do a small change to the json response returned from DSS 3.2.1. I'm using JSONMessageFormatter JSONOMBuilder in org.apache.axis2.json package.(not gson implementations) My requirements are as follows 1) Implement new JSONMessageFormatter, JSONOMBuilder etc. And additional method accepting the Mapped json response and format it accordingly, call it at the end of mapped json conversion. 2) Build axis2-json-1.6.1-wso2v10.jar adding new classes. I think this is the source used in DSS 3.2.1 : https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/dependencies/axis2/1.6.1-wso2v10/modules/json 3) State new Formatter and Builder in axis2.xml call it with new header messageFormatter contentType=application/json/newformat class=org.apache.axis2.json.newJSONMessageFormatter/ messageBuilder contentType=application/json/newformat class=org.apache.axis2.json.newJSONOMBuilder/ Can anybody advice me on achieving the above requirements? -- Thanks *Yasas Karunarathna* yasasblog.wordpress.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Software Engineer - WSO2 Inc.* *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org shame...@apache.org* *phone: +9471 922 1454 %2B9471%20922%201454* *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561 *Twitter : *https://twitter.com/Shameera_R -- Thanks *Yasas Karunarathna* yasasblog.wordpress.com ___ Dev mailing list
Re: [Dev] [DEV] Retrieving an environment variable from Java
Hi Inosh, Have you tried restarting the machine? Thanks, On Mon, Jul 14, 2014 at 1:35 PM, Inosh Perera ino...@wso2.com wrote: Hi all, Using java code, I'm trying to retrieve an environment variable defined in the OS(Ubuntu). When I define a variable in bashrc / bash_profile and **echo $SOME_VARIABLE** in the terminal, it shows it properly. But when I'm accessing it with Java, using System.getenv() , this variable doesn't appear. What could be the reason? MapString, String variables = System.getenv(); for (Map.EntryString, String entry : variables.entrySet()) { String name = entry.getKey(); String value = entry.getValue(); System.out.println(name + = + value); } Regards, Inosh -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV] Retrieving an environment variable from Java
Hi Rajitha, Yes, I also tried couple of other ways. Thanks, On Mon, Jul 14, 2014 at 1:40 PM, Rajith Vitharana raji...@wso2.com wrote: Hi Inosh, Have you tried restarting the machine? Thanks, On Mon, Jul 14, 2014 at 1:35 PM, Inosh Perera ino...@wso2.com wrote: Hi all, Using java code, I'm trying to retrieve an environment variable defined in the OS(Ubuntu). When I define a variable in bashrc / bash_profile and **echo $SOME_VARIABLE** in the terminal, it shows it properly. But when I'm accessing it with Java, using System.getenv() , this variable doesn't appear. What could be the reason? MapString, String variables = System.getenv(); for (Map.EntryString, String entry : variables.entrySet()) { String name = entry.getKey(); String value = entry.getValue(); System.out.println(name + = + value); } Regards, Inosh -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] We are getting some class not found issues intermittently
Hi, Good catch Sameera. It seems that this issue has occurred since the spring framework bundle in patch0009 includes a Service-Provider-Interface for javax.servlet.ServletContainerInitializer. So, I have removed the META-INF/services/javax.servlet.ServletContainerInitializer from spring framework bundle, and tested in the AM pack provided by Ratha. I couldn't re-produce it so far. I have added this file and several other config files (META-INF/{spring.schemas, spring.handlers} etc.) to spring framework in patch0009 to fix some issues in AS. Since you need to provide packs to QA, I will remove this particular file from spring framework bundle. @Ratha, it would be great if you can test this out. You will have to do following step. 1. Remove the file META-INF/services/javax.servlet.ServletContainerInitializer from spring-framework bundle in patch0009 2. Restart the server Thanks, KasunG On Mon, Jul 14, 2014 at 12:31 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: Hi sameera; Thanks ..looks like this solved the issue..I restarted the server several times, but haven't faced any issue.. May i know how do you find the root cause? so, we won't disturb core team to fix these type issues? thanks On 14 July 2014 11:53, Sameera Jayasoma same...@wso2.com wrote: Hi Ratha, Can you try to reproduce by removing the following jar from patch0009? repository/components/patches/patch0009/spring.framework_3.1.0.wso2v1.jar Thanks, Sameera. On Wed, Jul 9, 2014 at 6:49 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: Is there any recent change in the *core.util module* which causes this issue? osgi ls 454 Components in bundle org.wso2.carbon.utils: ID State Component Name Located in bundle 155 Active org.wso2.carbon.context.internal.CarbonContextDiscoveryServiceComponent org.wso2.carbon.utils(bid=454) 156 Active org.wso2.carbon.context.internal.CarbonContextServiceComponent org.wso2.carbon.utils(bid=454) 157 Unsatisfied org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent org.wso2.carbon.utils(bid=454) osgi comp 157 Component[ name = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent factory = null autoenable = true immediate = true implementation = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent state = Unsatisfied properties = {service.pid=org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent} serviceFactory = false serviceInterface = null references = { Reference[name = configuration.context.service, interface = org.wso2.carbon.utils.ConfigurationContextService, policy = dynamic, cardi nality = 1..1, target = null, bind = setConfigurationContextService, unbind = unsetConfigurationContextService] } located in bundle = org.wso2.carbon.utils_4.2.0 [454] ] Dynamic information : *The component is NOT satisfied The following references are not satisfied: Reference[name = configuration.context.service, interface = org.wso2.carbon.utils.ConfigurationContextService, policy = dynamic, cardinality = 1.. 1, target = null, bind = setConfigurationContextService, unbind = unsetConfigurationContextService] Component configurations : Configuration properties: service.pid = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent component.name = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent component.id = 156 Instances: On 9 July 2014 18:28, Vijayaratha Vijayasingam rat...@wso2.com wrote: when i get* java.lang.* *ClassNotFoundException: org.wso2.carbon.tomcat.ext.**servlet.DelegationServlet *issue here are the osgi out put; *osgi headers 421* Bundle headers: Bnd-LastModified = 1404369790626 Build-Jdk = 1.6.0_45 Built-By = root Bundle-Description = This bundle contains custom tomcat extensions such as tomcat valves,etc Bundle-DocURL = http://wso2.com Bundle-License = http://www.apache.org/licenses/LICENSE-2.0 Bundle-ManifestVersion = 2 Bundle-Name = org.wso2.carbon.tomcat.ext Bundle-SymbolicName = org.wso2.carbon.tomcat.ext Bundle-Vendor = WSO2 Inc Bundle-Version = 4.2.0 Created-By = Apache Maven Bundle Plugin Export-Package = org.wso2.carbon.tomcat.ext.service;uses:=org.apache.commons.logging,org.apache.catalina,org.apache.catalina.core;version=4.2.0,o rg.wso2.carbon.tomcat.ext.scan;uses:=javax.servlet,org.apache.tomcat,org.apache.tomcat.util.res,org.apache.tomcat.util.file,org.apache.juli.logging,o rg.eclipse.osgi.framework.adaptor,org.apache.tomcat.util.scan;version=4.2.0,org.wso2.carbon.tomcat.ext.valves;uses:=org.wso2.carbon.registry.core. service,org.apache.catalina.connector,org.apache.commons.logging,org.apache.catalina.valves,org.wso2.carbon.user.api,org.wso2.carbon.registry.api,org.
Re: [Dev] [DEV] Retrieving an environment variable from Java
Hi Inosh, Try putting it ~/.bashrc. I have done a similar thing. It worked when the variable is defined in ~/.bashrc and restarting the machine. Thanks, On Mon, Jul 14, 2014 at 1:43 PM, Inosh Perera ino...@wso2.com wrote: Hi Rajitha, Yes, I also tried couple of other ways. Thanks, On Mon, Jul 14, 2014 at 1:40 PM, Rajith Vitharana raji...@wso2.com wrote: Hi Inosh, Have you tried restarting the machine? Thanks, On Mon, Jul 14, 2014 at 1:35 PM, Inosh Perera ino...@wso2.com wrote: Hi all, Using java code, I'm trying to retrieve an environment variable defined in the OS(Ubuntu). When I define a variable in bashrc / bash_profile and **echo $SOME_VARIABLE** in the terminal, it shows it properly. But when I'm accessing it with Java, using System.getenv() , this variable doesn't appear. What could be the reason? MapString, String variables = System.getenv(); for (Map.EntryString, String entry : variables.entrySet()) { String name = entry.getKey(); String value = entry.getValue(); System.out.println(name + = + value); } Regards, Inosh -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DSS][AXIS2][AXIS2-JSON] Writing a new XML to JSON conversion
Hi Yasas, For you ClassNotFoundException, check do your axis2-json jar has required classes, BTW as i mentioned in previous reply you don't need to do any code changes to axis2 jars in order to plug your custom builders. Thanks, Shameera. On Mon, Jul 14, 2014 at 1:36 PM, Yasas Karunarathna yasasm...@gmail.com wrote: Thank you for the quick responses. I checked in sources from both the locations https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0007/dependencies/axis2/modules/json/ https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/dependencies/axis2/1.6.1-wso2v10/modules/json Separately build without any modifications, and put generated jar to patch8 folder. Once I restart the server following message shows in the console. Could not start: null(reference:file:../plugins/axis2-json_1.6.1.wso2v10.jar:15). It's state is uninstalled. After that logs the following error. Caused by: java.lang.ClassNotFoundException: org.apache.axis2.json.gson.JSONMessageHandler Any work around? On Sun, Jul 13, 2014 at 11:30 PM, Shameera Rathnayaka shame...@wso2.com wrote: Hi Yasas, Assuming you are going to customize the JSON mapped convention (Standard Mapped Json support is their with Axis2),You don't need to do anything to axis2 jar. Implement your new JSON builder and formatter, then create a new jar(or osgi bundle) using those new classes and copy that jar ( or osgi bundle) to DSS_HOME/repository/components/lib ( or DSS_HOME/repository/components/dropings) directory. Finally, you need to configure your builder and formatter in axis2.xm configuration file (like your 3rd step). Thanks, Shameera. On Sun, Jul 13, 2014 at 10:35 PM, Rajith Vitharana raji...@wso2.com wrote: Hi Yasas, The points you have mentioned are correct, but there are small changes I would like to point out. Below are the steps you'll need to follow to achieve your goal. 1 - There is a patch release for the axis2-json so you'll need to check out the source from [1] instead of the svn location you have mentioned. (checkout the whole patch0007 instead of json module, so that it'll be easy for you to build the source.) 2 - Add the classes you need to the source. You'll need to extend AbstractJSONMessageFormatter in your custom formatter class You'll need to extend AbstractJSONOMBuilder in you custom builder class 3 - Build the whole patch0007. Then go to patch0007/dependencies/orbit/axis2-json/target folder where you can find the osgi bundle created from axis2-json module. 4 - Create patch0008 folder inside DSS_HOME/repository/components/patches folder and copy the osgi bundle you found in step 3 to that folder. 5 - Add messageFormatter and messageBuilder elements to the DSS_HOME/repository/conf/axis2/axis2.xml as you have pointed out in your step 3. 6 - Restart the server and invoke your service adding Accept request header to the request with new content type you mentioned in axis2.xml, example would be Accept:application/json/newformat.(You can find sample of how to do it in [2]) [1] - https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0007/dependencies/axis2/modules/json/ [2] - http://janakaranabahu.blogspot.com/2013/06/return-json-response-from-wso2-dss.html Thanks, On Sun, Jul 13, 2014 at 1:45 PM, Yasas Karunarathna yasasm...@gmail.com wrote: Hi there, I want to do a small change to the json response returned from DSS 3.2.1. I'm using JSONMessageFormatter JSONOMBuilder in org.apache.axis2.json package.(not gson implementations) My requirements are as follows 1) Implement new JSONMessageFormatter, JSONOMBuilder etc. And additional method accepting the Mapped json response and format it accordingly, call it at the end of mapped json conversion. 2) Build axis2-json-1.6.1-wso2v10.jar adding new classes. I think this is the source used in DSS 3.2.1 : https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/dependencies/axis2/1.6.1-wso2v10/modules/json 3) State new Formatter and Builder in axis2.xml call it with new header messageFormatter contentType=application/json/newformat class=org.apache.axis2.json.newJSONMessageFormatter/ messageBuilder contentType=application/json/newformat class=org.apache.axis2.json.newJSONOMBuilder/ Can anybody advice me on achieving the above requirements? -- Thanks *Yasas Karunarathna* yasasblog.wordpress.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Software Engineer - WSO2 Inc.* *email: shameera AT wso2.com shame...@wso2.com , shameera AT
Re: [Dev] [DEV] Retrieving an environment variable from Java
Hi Inosh. Did you export that variable in bashrc? Thanks, Harsha On Mon, Jul 14, 2014 at 1:50 PM, Rajith Vitharana raji...@wso2.com wrote: Hi Inosh, Try putting it ~/.bashrc. I have done a similar thing. It worked when the variable is defined in ~/.bashrc and restarting the machine. Thanks, On Mon, Jul 14, 2014 at 1:43 PM, Inosh Perera ino...@wso2.com wrote: Hi Rajitha, Yes, I also tried couple of other ways. Thanks, On Mon, Jul 14, 2014 at 1:40 PM, Rajith Vitharana raji...@wso2.com wrote: Hi Inosh, Have you tried restarting the machine? Thanks, On Mon, Jul 14, 2014 at 1:35 PM, Inosh Perera ino...@wso2.com wrote: Hi all, Using java code, I'm trying to retrieve an environment variable defined in the OS(Ubuntu). When I define a variable in bashrc / bash_profile and **echo $SOME_VARIABLE** in the terminal, it shows it properly. But when I'm accessing it with Java, using System.getenv() , this variable doesn't appear. What could be the reason? MapString, String variables = System.getenv(); for (Map.EntryString, String entry : variables.entrySet()) { String name = entry.getKey(); String value = entry.getValue(); System.out.println(name + = + value); } Regards, Inosh -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV] Retrieving an environment variable from Java
[1] may helps to you. BTW, the code you have written gives expected result within Command Line simple java program. [1] http://stackoverflow.com/questions/13748367/system-getenv-does-not-list-all-the-environment-variables On Mon, Jul 14, 2014 at 1:51 PM, Harsha Kumara hars...@wso2.com wrote: Hi Inosh. Did you export that variable in bashrc? Thanks, Harsha On Mon, Jul 14, 2014 at 1:50 PM, Rajith Vitharana raji...@wso2.com wrote: Hi Inosh, Try putting it ~/.bashrc. I have done a similar thing. It worked when the variable is defined in ~/.bashrc and restarting the machine. Thanks, On Mon, Jul 14, 2014 at 1:43 PM, Inosh Perera ino...@wso2.com wrote: Hi Rajitha, Yes, I also tried couple of other ways. Thanks, On Mon, Jul 14, 2014 at 1:40 PM, Rajith Vitharana raji...@wso2.com wrote: Hi Inosh, Have you tried restarting the machine? Thanks, On Mon, Jul 14, 2014 at 1:35 PM, Inosh Perera ino...@wso2.com wrote: Hi all, Using java code, I'm trying to retrieve an environment variable defined in the OS(Ubuntu). When I define a variable in bashrc / bash_profile and **echo $SOME_VARIABLE** in the terminal, it shows it properly. But when I'm accessing it with Java, using System.getenv() , this variable doesn't appear. What could be the reason? MapString, String variables = System.getenv(); for (Map.EntryString, String entry : variables.entrySet()) { String name = entry.getKey(); String value = entry.getValue(); System.out.println(name + = + value); } Regards, Inosh -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- K.D. Chamil Jeewantha Associate Technical Lead WSO2, Inc.; http://wso2.com Mobile: +94716813892 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV] Retrieving an environment variable from Java
Hi Rajitha, Putting it in bash_profile worked. It was not defined properly before. Thank you On Mon, Jul 14, 2014 at 1:51 PM, Harsha Kumara hars...@wso2.com wrote: Hi Inosh. Did you export that variable in bashrc? Thanks, Harsha On Mon, Jul 14, 2014 at 1:50 PM, Rajith Vitharana raji...@wso2.com wrote: Hi Inosh, Try putting it ~/.bashrc. I have done a similar thing. It worked when the variable is defined in ~/.bashrc and restarting the machine. Thanks, On Mon, Jul 14, 2014 at 1:43 PM, Inosh Perera ino...@wso2.com wrote: Hi Rajitha, Yes, I also tried couple of other ways. Thanks, On Mon, Jul 14, 2014 at 1:40 PM, Rajith Vitharana raji...@wso2.com wrote: Hi Inosh, Have you tried restarting the machine? Thanks, On Mon, Jul 14, 2014 at 1:35 PM, Inosh Perera ino...@wso2.com wrote: Hi all, Using java code, I'm trying to retrieve an environment variable defined in the OS(Ubuntu). When I define a variable in bashrc / bash_profile and **echo $SOME_VARIABLE** in the terminal, it shows it properly. But when I'm accessing it with Java, using System.getenv() , this variable doesn't appear. What could be the reason? MapString, String variables = System.getenv(); for (Map.EntryString, String entry : variables.entrySet()) { String name = entry.getKey(); String value = entry.getValue(); System.out.println(name + = + value); } Regards, Inosh -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV] Retrieving an environment variable from Java
Hi Inosh, It works for me when you add it on root .bashrc like the following SYNAPSE_HOME=/home/user/Team/synapse-2.1.0 export SYNAPSE_HOME PATH=$PATH:$SYNAPSE_HOME/bin export PATH And you shouldn't restart it. It's working fine Cheers On Mon, Jul 14, 2014 at 1:51 PM, Harsha Kumara hars...@wso2.com wrote: Hi Inosh. Did you export that variable in bashrc? Thanks, Harsha On Mon, Jul 14, 2014 at 1:50 PM, Rajith Vitharana raji...@wso2.com wrote: Hi Inosh, Try putting it ~/.bashrc. I have done a similar thing. It worked when the variable is defined in ~/.bashrc and restarting the machine. Thanks, On Mon, Jul 14, 2014 at 1:43 PM, Inosh Perera ino...@wso2.com wrote: Hi Rajitha, Yes, I also tried couple of other ways. Thanks, On Mon, Jul 14, 2014 at 1:40 PM, Rajith Vitharana raji...@wso2.com wrote: Hi Inosh, Have you tried restarting the machine? Thanks, On Mon, Jul 14, 2014 at 1:35 PM, Inosh Perera ino...@wso2.com wrote: Hi all, Using java code, I'm trying to retrieve an environment variable defined in the OS(Ubuntu). When I define a variable in bashrc / bash_profile and **echo $SOME_VARIABLE** in the terminal, it shows it properly. But when I'm accessing it with Java, using System.getenv() , this variable doesn't appear. What could be the reason? MapString, String variables = System.getenv(); for (Map.EntryString, String entry : variables.entrySet()) { String name = entry.getKey(); String value = entry.getValue(); System.out.println(name + = + value); } Regards, Inosh -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ -- Inosh Perera Software Engineer, WSO2 Inc. Tel: 0785293686 -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Kasun Dissanayake Software Engineer WSO2 Inc. Lean | Enterprise | Middleware Tel - +94 77 086 2860 Skype - kasun.dissanayake4 LinkedIn - lk.linkedin.com/in/kasundis/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] We are getting some class not found issues intermittently
Hi Ratha, Here is how I found the culprit. :) First I wanted to make sure that this issue occurs due to changes done to the platform or to the kernel. To verify this I installed all the patches from patch0001 to patch0009 to a Carbon kernel instance. But when I start the kernel I got a Spring related class loading issue. Then I removed patch0009 from the AM pack, but I couldn't reproduce the error. From these steps I got a good observations to believe that patch0009 contains the root cause of this issue. Since I got a spring related error earlier, I removed the spring bundle from patch0009 and tested in kernel instance as well as in an AM instance. I couldn't reproduce the error. Thanks, Sameera. On Mon, Jul 14, 2014 at 12:31 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: Hi sameera; Thanks ..looks like this solved the issue..I restarted the server several times, but haven't faced any issue.. May i know how do you find the root cause? so, we won't disturb core team to fix these type issues? thanks On 14 July 2014 11:53, Sameera Jayasoma same...@wso2.com wrote: Hi Ratha, Can you try to reproduce by removing the following jar from patch0009? repository/components/patches/patch0009/spring.framework_3.1.0.wso2v1.jar Thanks, Sameera. On Wed, Jul 9, 2014 at 6:49 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: Is there any recent change in the *core.util module* which causes this issue? osgi ls 454 Components in bundle org.wso2.carbon.utils: ID State Component Name Located in bundle 155 Active org.wso2.carbon.context.internal.CarbonContextDiscoveryServiceComponent org.wso2.carbon.utils(bid=454) 156 Active org.wso2.carbon.context.internal.CarbonContextServiceComponent org.wso2.carbon.utils(bid=454) 157 Unsatisfied org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent org.wso2.carbon.utils(bid=454) osgi comp 157 Component[ name = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent factory = null autoenable = true immediate = true implementation = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent state = Unsatisfied properties = {service.pid=org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent} serviceFactory = false serviceInterface = null references = { Reference[name = configuration.context.service, interface = org.wso2.carbon.utils.ConfigurationContextService, policy = dynamic, cardi nality = 1..1, target = null, bind = setConfigurationContextService, unbind = unsetConfigurationContextService] } located in bundle = org.wso2.carbon.utils_4.2.0 [454] ] Dynamic information : *The component is NOT satisfied The following references are not satisfied: Reference[name = configuration.context.service, interface = org.wso2.carbon.utils.ConfigurationContextService, policy = dynamic, cardinality = 1.. 1, target = null, bind = setConfigurationContextService, unbind = unsetConfigurationContextService] Component configurations : Configuration properties: service.pid = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent component.name = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent component.id = 156 Instances: On 9 July 2014 18:28, Vijayaratha Vijayasingam rat...@wso2.com wrote: when i get* java.lang.* *ClassNotFoundException: org.wso2.carbon.tomcat.ext.**servlet.DelegationServlet *issue here are the osgi out put; *osgi headers 421* Bundle headers: Bnd-LastModified = 1404369790626 Build-Jdk = 1.6.0_45 Built-By = root Bundle-Description = This bundle contains custom tomcat extensions such as tomcat valves,etc Bundle-DocURL = http://wso2.com Bundle-License = http://www.apache.org/licenses/LICENSE-2.0 Bundle-ManifestVersion = 2 Bundle-Name = org.wso2.carbon.tomcat.ext Bundle-SymbolicName = org.wso2.carbon.tomcat.ext Bundle-Vendor = WSO2 Inc Bundle-Version = 4.2.0 Created-By = Apache Maven Bundle Plugin Export-Package = org.wso2.carbon.tomcat.ext.service;uses:=org.apache.commons.logging,org.apache.catalina,org.apache.catalina.core;version=4.2.0,o rg.wso2.carbon.tomcat.ext.scan;uses:=javax.servlet,org.apache.tomcat,org.apache.tomcat.util.res,org.apache.tomcat.util.file,org.apache.juli.logging,o rg.eclipse.osgi.framework.adaptor,org.apache.tomcat.util.scan;version=4.2.0,org.wso2.carbon.tomcat.ext.valves;uses:=org.wso2.carbon.registry.core. service,org.apache.catalina.connector,org.apache.commons.logging,org.apache.catalina.valves,org.wso2.carbon.user.api,org.wso2.carbon.registry.api,org. wso2.carbon.registry.core.ghostregistry,org.wso2.carbon.context,javax.servlet,org.wso2.carbon.user.core.service,org.apache.catalina, org.wso2.carbon.to
Re: [Dev] Which Hadoop version should we support in SS 1.5.0 ?
Did we check with the community as to how stable v241 is? I don't quite see any issue in adapting the aforesaid version as a starting point, if it is considered stable and has adequate support for all the expected functionalities. If we come across any limitation while we're into further developments with the adapted version, then it's always possible for us to go for any future (stable) version too, as the situation demands. BTW, please also talk to BAM team and see if we could align their plans of going for a newer version of Hadoop, with ours so that both parties can benefit out of this effort. Cheers, Prabath On Mon, Jul 14, 2014 at 12:15 PM, Shani Ranasinghe sh...@wso2.com wrote: Hi, The latest release is 2.4.1. Which is a bug fix release for the 2.4.x line, released on the 30th of June 2014. This release has a fix for a security bug and they recommend users to move to this version immediately. Or we could also use the 2.2.0 which is the GA release of 2.x, released in October 2013. Should we go ahead with 2.4.1? -- Thanks and Regards *, Shani Ranasinghe* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 77 2273555 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab -- Prabath Abeysekara Associate Technical Lead, Data TG. WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] We are getting some class not found issues intermittently
thanks sameera.. On 14 July 2014 14:07, Sameera Jayasoma same...@wso2.com wrote: Hi Ratha, Here is how I found the culprit. :) First I wanted to make sure that this issue occurs due to changes done to the platform or to the kernel. To verify this I installed all the patches from patch0001 to patch0009 to a Carbon kernel instance. But when I start the kernel I got a Spring related class loading issue. Then I removed patch0009 from the AM pack, but I couldn't reproduce the error. From these steps I got a good observations to believe that patch0009 contains the root cause of this issue. Since I got a spring related error earlier, I removed the spring bundle from patch0009 and tested in kernel instance as well as in an AM instance. I couldn't reproduce the error. Thanks, Sameera. On Mon, Jul 14, 2014 at 12:31 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: Hi sameera; Thanks ..looks like this solved the issue..I restarted the server several times, but haven't faced any issue.. May i know how do you find the root cause? so, we won't disturb core team to fix these type issues? thanks On 14 July 2014 11:53, Sameera Jayasoma same...@wso2.com wrote: Hi Ratha, Can you try to reproduce by removing the following jar from patch0009? repository/components/patches/patch0009/spring.framework_3.1.0.wso2v1.jar Thanks, Sameera. On Wed, Jul 9, 2014 at 6:49 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: Is there any recent change in the *core.util module* which causes this issue? osgi ls 454 Components in bundle org.wso2.carbon.utils: ID State Component Name Located in bundle 155 Active org.wso2.carbon.context.internal.CarbonContextDiscoveryServiceComponent org.wso2.carbon.utils(bid=454) 156 Active org.wso2.carbon.context.internal.CarbonContextServiceComponent org.wso2.carbon.utils(bid=454) 157 Unsatisfied org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent org.wso2.carbon.utils(bid=454) osgi comp 157 Component[ name = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent factory = null autoenable = true immediate = true implementation = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent state = Unsatisfied properties = {service.pid=org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent} serviceFactory = false serviceInterface = null references = { Reference[name = configuration.context.service, interface = org.wso2.carbon.utils.ConfigurationContextService, policy = dynamic, cardi nality = 1..1, target = null, bind = setConfigurationContextService, unbind = unsetConfigurationContextService] } located in bundle = org.wso2.carbon.utils_4.2.0 [454] ] Dynamic information : *The component is NOT satisfied The following references are not satisfied: Reference[name = configuration.context.service, interface = org.wso2.carbon.utils.ConfigurationContextService, policy = dynamic, cardinality = 1.. 1, target = null, bind = setConfigurationContextService, unbind = unsetConfigurationContextService] Component configurations : Configuration properties: service.pid = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent component.name = org.wso2.carbon.utils.internal.CarbonUtilsServiceComponent component.id = 156 Instances: On 9 July 2014 18:28, Vijayaratha Vijayasingam rat...@wso2.com wrote: when i get* java.lang.* *ClassNotFoundException: org.wso2.carbon.tomcat.ext.**servlet.DelegationServlet *issue here are the osgi out put; *osgi headers 421* Bundle headers: Bnd-LastModified = 1404369790626 Build-Jdk = 1.6.0_45 Built-By = root Bundle-Description = This bundle contains custom tomcat extensions such as tomcat valves,etc Bundle-DocURL = http://wso2.com Bundle-License = http://www.apache.org/licenses/LICENSE-2.0 Bundle-ManifestVersion = 2 Bundle-Name = org.wso2.carbon.tomcat.ext Bundle-SymbolicName = org.wso2.carbon.tomcat.ext Bundle-Vendor = WSO2 Inc Bundle-Version = 4.2.0 Created-By = Apache Maven Bundle Plugin Export-Package = org.wso2.carbon.tomcat.ext.service;uses:=org.apache.commons.logging,org.apache.catalina,org.apache.catalina.core;version=4.2.0,o rg.wso2.carbon.tomcat.ext.scan;uses:=javax.servlet,org.apache.tomcat,org.apache.tomcat.util.res,org.apache.tomcat.util.file,org.apache.juli.logging,o rg.eclipse.osgi.framework.adaptor,org.apache.tomcat.util.scan;version=4.2.0,org.wso2.carbon.tomcat.ext.valves;uses:=org.wso2.carbon.registry.core. service,org.apache.catalina.connector,org.apache.commons.logging,org.apache.catalina.valves,org.wso2.carbon.user.api,org.wso2.carbon.registry.api,org. wso2.carbon.registry.core.ghostregistry,org.wso2.carbon.context,javax.servlet,org.wso2.carbon.user.core.service,org.apache.catalina,
Re: [Dev] Jaggery post method doesn't modify the content type when header is passed
Hi, I have checked code and seems its fixed on latest version. What's the pack that your using currently? *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Thu, Jul 10, 2014 at 12:13 PM, Amal Gunatilake am...@wso2.com wrote: Hi Team, As mentioned in the documentation http://jaggeryjs.org/documentation.jag?api=post I passed the header to change the Content-Type to application/json but still it tends to pass the default Content-Type (application/x-www-form-urlencoded; charset=UTF-8 ). My jaggery code is as follows: var httpUrl = http://localhost:;; var headers = { Content-Type:application/json, Authorization:Basic YWRtaW46YWRtaW4= }; var url = /bpmnrest/runtime/tasks/408; var data = request.getContent(); var result = post( httpUrl + url, data, headers, json); When I monitor the request through TCPMon I get the following. POST /bpmnrest/runtime/tasks/513 HTTP/1.1 Content-Type: *application/x-www-form-urlencoded; charset=UTF-8 * Authorization: Basic YWRtaW46YWRtaW4= User-Agent: Jakarta Commons-HttpClient/3.1 Host: localhost: Content-Length: 47 action=completevariables=%5Bobject%20Object%5D The Authentication header seems to get modified but not the Content-Type. Please let me know a possible workaround to proceed with implementing the BPMN Humantask Jaggery app. Thank you Best regards, *Amal Gunatilake* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DSS][AXIS2][AXIS2-JSON] Writing a new XML to JSON conversion
Hi Yasas, Try out creating a simple jar and put it in lib folder as shameera mentioned in above reply. I have tried out the scenario I have explained to you, and it worked fine for me As I mentioned, have you build the whole patch from the pom.xml inside patch0007 folder? and have you created patch0008 folder and copied the jar(axis2-json-1.6.1-wso2v10.jar) inside patch0007/dependencies/orbit/axis2-json/target folder to the patch0008 folder? Thanks, On Mon, Jul 14, 2014 at 1:50 PM, Shameera Rathnayaka shame...@wso2.com wrote: Hi Yasas, For you ClassNotFoundException, check do your axis2-json jar has required classes, BTW as i mentioned in previous reply you don't need to do any code changes to axis2 jars in order to plug your custom builders. Thanks, Shameera. On Mon, Jul 14, 2014 at 1:36 PM, Yasas Karunarathna yasasm...@gmail.com wrote: Thank you for the quick responses. I checked in sources from both the locations https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0007/dependencies/axis2/modules/json/ https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/dependencies/axis2/1.6.1-wso2v10/modules/json Separately build without any modifications, and put generated jar to patch8 folder. Once I restart the server following message shows in the console. Could not start: null(reference:file:../plugins/axis2-json_1.6.1.wso2v10.jar:15). It's state is uninstalled. After that logs the following error. Caused by: java.lang.ClassNotFoundException: org.apache.axis2.json.gson.JSONMessageHandler Any work around? On Sun, Jul 13, 2014 at 11:30 PM, Shameera Rathnayaka shame...@wso2.com wrote: Hi Yasas, Assuming you are going to customize the JSON mapped convention (Standard Mapped Json support is their with Axis2),You don't need to do anything to axis2 jar. Implement your new JSON builder and formatter, then create a new jar(or osgi bundle) using those new classes and copy that jar ( or osgi bundle) to DSS_HOME/repository/components/lib ( or DSS_HOME/repository/components/dropings) directory. Finally, you need to configure your builder and formatter in axis2.xm configuration file (like your 3rd step). Thanks, Shameera. On Sun, Jul 13, 2014 at 10:35 PM, Rajith Vitharana raji...@wso2.com wrote: Hi Yasas, The points you have mentioned are correct, but there are small changes I would like to point out. Below are the steps you'll need to follow to achieve your goal. 1 - There is a patch release for the axis2-json so you'll need to check out the source from [1] instead of the svn location you have mentioned. (checkout the whole patch0007 instead of json module, so that it'll be easy for you to build the source.) 2 - Add the classes you need to the source. You'll need to extend AbstractJSONMessageFormatter in your custom formatter class You'll need to extend AbstractJSONOMBuilder in you custom builder class 3 - Build the whole patch0007. Then go to patch0007/dependencies/orbit/axis2-json/target folder where you can find the osgi bundle created from axis2-json module. 4 - Create patch0008 folder inside DSS_HOME/repository/components/patches folder and copy the osgi bundle you found in step 3 to that folder. 5 - Add messageFormatter and messageBuilder elements to the DSS_HOME/repository/conf/axis2/axis2.xml as you have pointed out in your step 3. 6 - Restart the server and invoke your service adding Accept request header to the request with new content type you mentioned in axis2.xml, example would be Accept:application/json/newformat.(You can find sample of how to do it in [2]) [1] - https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0007/dependencies/axis2/modules/json/ [2] - http://janakaranabahu.blogspot.com/2013/06/return-json-response-from-wso2-dss.html Thanks, On Sun, Jul 13, 2014 at 1:45 PM, Yasas Karunarathna yasasm...@gmail.com wrote: Hi there, I want to do a small change to the json response returned from DSS 3.2.1. I'm using JSONMessageFormatter JSONOMBuilder in org.apache.axis2.json package.(not gson implementations) My requirements are as follows 1) Implement new JSONMessageFormatter, JSONOMBuilder etc. And additional method accepting the Mapped json response and format it accordingly, call it at the end of mapped json conversion. 2) Build axis2-json-1.6.1-wso2v10.jar adding new classes. I think this is the source used in DSS 3.2.1 : https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/dependencies/axis2/1.6.1-wso2v10/modules/json 3) State new Formatter and Builder in axis2.xml call it with new header messageFormatter contentType=application/json/newformat class=org.apache.axis2.json.newJSONMessageFormatter/ messageBuilder contentType=application/json/newformat class=org.apache.axis2.json.newJSONOMBuilder/ Can anybody advice me on achieving the above requirements? -- Thanks *Yasas
[Dev] APIM 1.7.0 shows only the latest version of an api in store
I created new api version by copying the old version and published without deprecate the old version. In the store it only shows the latest version of that api .But when I search the api using name it shows the both versions of that api. is this feature of APIM ? -- Jenananthan Yogendran *Software Engineer,* *WSO2 inc., http://wso2.com http://wso2.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] APIM 1.7.0 shows only the latest version of an api in store
Showing the latest version is the default behaviour. You can change this if you prefer by changing the value of DisplayMultipleVersions to 'true' in the api-manager.xml Thanks, NuwanD. On Mon, Jul 14, 2014 at 3:06 PM, Jenananthan Yogendran jenanant...@wso2.com wrote: I created new api version by copying the old version and published without deprecate the old version. In the store it only shows the latest version of that api .But when I search the api using name it shows the both versions of that api. is this feature of APIM ? -- Jenananthan Yogendran *Software Engineer,* *WSO2 inc., http://wso2.com http://wso2.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DSS][AXIS2][AXIS2-JSON] Writing a new XML to JSON conversion
Hi Rajith, Why are you asking him to build the patches , can't he work on already released DSs pack, Here i am trying to understand which issue Yasas trying to address by implementing a new JSON builder and formatter, we have plenty of Builders and formatters for JSON :) . May i know the real use case and requirement ? Thanks, Shameera On Mon, Jul 14, 2014 at 2:51 PM, Rajith Vitharana raji...@wso2.com wrote: Hi Yasas, Try out creating a simple jar and put it in lib folder as shameera mentioned in above reply. I have tried out the scenario I have explained to you, and it worked fine for me As I mentioned, have you build the whole patch from the pom.xml inside patch0007 folder? and have you created patch0008 folder and copied the jar(axis2-json-1.6.1-wso2v10.jar) inside patch0007/dependencies/orbit/axis2-json/target folder to the patch0008 folder? Thanks, On Mon, Jul 14, 2014 at 1:50 PM, Shameera Rathnayaka shame...@wso2.com wrote: Hi Yasas, For you ClassNotFoundException, check do your axis2-json jar has required classes, BTW as i mentioned in previous reply you don't need to do any code changes to axis2 jars in order to plug your custom builders. Thanks, Shameera. On Mon, Jul 14, 2014 at 1:36 PM, Yasas Karunarathna yasasm...@gmail.com wrote: Thank you for the quick responses. I checked in sources from both the locations https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0007/dependencies/axis2/modules/json/ https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/dependencies/axis2/1.6.1-wso2v10/modules/json Separately build without any modifications, and put generated jar to patch8 folder. Once I restart the server following message shows in the console. Could not start: null(reference:file:../plugins/axis2-json_1.6.1.wso2v10.jar:15). It's state is uninstalled. After that logs the following error. Caused by: java.lang.ClassNotFoundException: org.apache.axis2.json.gson.JSONMessageHandler Any work around? On Sun, Jul 13, 2014 at 11:30 PM, Shameera Rathnayaka shame...@wso2.com wrote: Hi Yasas, Assuming you are going to customize the JSON mapped convention (Standard Mapped Json support is their with Axis2),You don't need to do anything to axis2 jar. Implement your new JSON builder and formatter, then create a new jar(or osgi bundle) using those new classes and copy that jar ( or osgi bundle) to DSS_HOME/repository/components/lib ( or DSS_HOME/repository/components/dropings) directory. Finally, you need to configure your builder and formatter in axis2.xm configuration file (like your 3rd step). Thanks, Shameera. On Sun, Jul 13, 2014 at 10:35 PM, Rajith Vitharana raji...@wso2.com wrote: Hi Yasas, The points you have mentioned are correct, but there are small changes I would like to point out. Below are the steps you'll need to follow to achieve your goal. 1 - There is a patch release for the axis2-json so you'll need to check out the source from [1] instead of the svn location you have mentioned. (checkout the whole patch0007 instead of json module, so that it'll be easy for you to build the source.) 2 - Add the classes you need to the source. You'll need to extend AbstractJSONMessageFormatter in your custom formatter class You'll need to extend AbstractJSONOMBuilder in you custom builder class 3 - Build the whole patch0007. Then go to patch0007/dependencies/orbit/axis2-json/target folder where you can find the osgi bundle created from axis2-json module. 4 - Create patch0008 folder inside DSS_HOME/repository/components/patches folder and copy the osgi bundle you found in step 3 to that folder. 5 - Add messageFormatter and messageBuilder elements to the DSS_HOME/repository/conf/axis2/axis2.xml as you have pointed out in your step 3. 6 - Restart the server and invoke your service adding Accept request header to the request with new content type you mentioned in axis2.xml, example would be Accept:application/json/newformat.(You can find sample of how to do it in [2]) [1] - https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0007/dependencies/axis2/modules/json/ [2] - http://janakaranabahu.blogspot.com/2013/06/return-json-response-from-wso2-dss.html Thanks, On Sun, Jul 13, 2014 at 1:45 PM, Yasas Karunarathna yasasm...@gmail.com wrote: Hi there, I want to do a small change to the json response returned from DSS 3.2.1. I'm using JSONMessageFormatter JSONOMBuilder in org.apache.axis2.json package.(not gson implementations) My requirements are as follows 1) Implement new JSONMessageFormatter, JSONOMBuilder etc. And additional method accepting the Mapped json response and format it accordingly, call it at the end of mapped json conversion. 2) Build axis2-json-1.6.1-wso2v10.jar adding new classes. I think this is the source used in DSS 3.2.1 :
Re: [Dev] APIM 1.7.0 shows only the latest version of an api in store
able to see all the published versions by changing the value to 'true'. Thanks On Mon, Jul 14, 2014 at 3:11 PM, Nuwan Dias nuw...@wso2.com wrote: Showing the latest version is the default behaviour. You can change this if you prefer by changing the value of DisplayMultipleVersions to 'true' in the api-manager.xml Thanks, NuwanD. On Mon, Jul 14, 2014 at 3:06 PM, Jenananthan Yogendran jenanant...@wso2.com wrote: I created new api version by copying the old version and published without deprecate the old version. In the store it only shows the latest version of that api .But when I search the api using name it shows the both versions of that api. is this feature of APIM ? -- Jenananthan Yogendran *Software Engineer,* *WSO2 inc., http://wso2.com http://wso2.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 -- Jenananthan Yogendran *Software Engineer,* *WSO2 inc., http://wso2.com http://wso2.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Fwd: [jira] (ESBJAVA-3215) Sample 256 is not working - Mail Transport
Seems someone changed google password which used in mail transport sample. I don't think that there is a permanent solution other than asking users to use their own mail account when trying this sample. -- Forwarded message -- From: Miyuru Daminda (JIRA) j...@wso2.org Date: Mon, Jul 14, 2014 at 2:56 PM Subject: [jira] (ESBJAVA-3215) Sample 256 is not working - Mail Transport To: miy...@wso2.com Miyuru Daminda https://wso2.org/secure/ViewProfile.jspa?name=miyuru%40wso2.com commented on [image: Bug] ESBJAVA-3215 https://wso2.org/browse/ESBJAVA-3215 *Sample 256 is not working - Mail Transport* https://wso2.org/browse/ESBJAVA-3215 Seems credentials in mail transport sample is no longer valid This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira -- Miyuru Wanninayaka Senior Technical Lead WSO2 Inc. : http://wso2.com Mobile : +94 77 209 9788 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [jira] (ESBJAVA-3215) Sample 256 is not working - Mail Transport
+1, don't think we should fix this lets comment about this and close it down. On Mon, Jul 14, 2014 at 3:25 PM, Miyuru Wanninayaka miy...@wso2.com wrote: Seems someone changed google password which used in mail transport sample. I don't think that there is a permanent solution other than asking users to use their own mail account when trying this sample. -- Forwarded message -- From: Miyuru Daminda (JIRA) j...@wso2.org Date: Mon, Jul 14, 2014 at 2:56 PM Subject: [jira] (ESBJAVA-3215) Sample 256 is not working - Mail Transport To: miy...@wso2.com Miyuru Daminda https://wso2.org/secure/ViewProfile.jspa?name=miyuru%40wso2.com commented on [image: Bug] ESBJAVA-3215 https://wso2.org/browse/ESBJAVA-3215 *Sample 256 is not working - Mail Transport* https://wso2.org/browse/ESBJAVA-3215 Seems credentials in mail transport sample is no longer valid This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira -- Miyuru Wanninayaka Senior Technical Lead WSO2 Inc. : http://wso2.com Mobile : +94 77 209 9788 -- Dushan Abeyruwan | Associate Tech Lead Integration Technologies Team PMC Member Apache Synpase WSO2 Inc. http://wso2.com/ Blog:http://dushansview.blogspot.com/ Mobile:(0094)713942042 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Fwd: [jira] (ESBJAVA-3215) Sample 256 is not working - Mail Transport
Hi Miyuru, Shall we modify the documentation stating that user should use their own test account when trying out this sample ? On Mon, Jul 14, 2014 at 3:25 PM, Miyuru Wanninayaka miy...@wso2.com wrote: Seems someone changed google password which used in mail transport sample. I don't think that there is a permanent solution other than asking users to use their own mail account when trying this sample. -- Forwarded message -- From: Miyuru Daminda (JIRA) j...@wso2.org Date: Mon, Jul 14, 2014 at 2:56 PM Subject: [jira] (ESBJAVA-3215) Sample 256 is not working - Mail Transport To: miy...@wso2.com Miyuru Daminda https://wso2.org/secure/ViewProfile.jspa?name=miyuru%40wso2.com commented on [image: Bug] ESBJAVA-3215 https://wso2.org/browse/ESBJAVA-3215 *Sample 256 is not working - Mail Transport* https://wso2.org/browse/ESBJAVA-3215 Seems credentials in mail transport sample is no longer valid This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira -- Miyuru Wanninayaka Senior Technical Lead WSO2 Inc. : http://wso2.com Mobile : +94 77 209 9788 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Isuru Udana* Senior * Software Engineer* WSO2 Inc.; http://wso2.com email: isu...@wso2.com cell: +94 77 3791887 blog: http://mytecheye.blogspot.com/ twitter: http://twitter.com/isudana ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Cannot call BAM Mediator through Scheduled Task
Hi all, I need to call BAM Mediator through Task. but when I call it through the Task sequence, BAM mediator never get invoked. I created an ESB sequence with BAM mediator. when I invoke it manually through a custom proxy or an API, it works fine and the BAM event is created. but when we call it through a task, the BAM event is not created. when I debug the code, I found out that when we invoking through the task, MessageContext object does not have Axis Service. but inside the BAM mediator[1], it is looking for an Axis Service to process the msg. [1] https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk12/components/mediators/bam/org.wso2.carbon.mediator.bam/4.2.0/src/main/java/org/wso2/carbon/mediator/bam/BamMediator.java https://www.google.com/url?q=https%3A%2F%2Fsvn.wso2.org%2Frepos%2Fwso2%2Fcarbon%2Fplatform%2Ftags%2Fturing-chunk12%2Fcomponents%2Fmediators%2Fbam%2Forg.wso2.carbon.mediator.bam%2F4.2.0%2Fsrc%2Fmain%2Fjava%2Forg%2Fwso2%2Fcarbon%2Fmediator%2Fbam%2FBamMediator.javasa=Dsntz=1usg=AFQjCNFXyw9fRTbezxKuixjeNOmWu-VXgQ Please help me on this. Thanks -- Danesh Kuruppu Software Engineer WSO2 Inc, Mobile: +94 (77) 1690552 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Fwd: [jira] (ESBJAVA-3215) Sample 256 is not working - Mail Transport
+1 Since over the time google will be block the account. Better to ask user to provide the account details. On Mon, Jul 14, 2014 at 3:25 PM, Miyuru Wanninayaka miy...@wso2.com wrote: Seems someone changed google password which used in mail transport sample. I don't think that there is a permanent solution other than asking users to use their own mail account when trying this sample. -- Forwarded message -- From: Miyuru Daminda (JIRA) j...@wso2.org Date: Mon, Jul 14, 2014 at 2:56 PM Subject: [jira] (ESBJAVA-3215) Sample 256 is not working - Mail Transport To: miy...@wso2.com Miyuru Daminda https://wso2.org/secure/ViewProfile.jspa?name=miyuru%40wso2.com commented on [image: Bug] ESBJAVA-3215 https://wso2.org/browse/ESBJAVA-3215 *Sample 256 is not working - Mail Transport* https://wso2.org/browse/ESBJAVA-3215 Seems credentials in mail transport sample is no longer valid This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira -- Miyuru Wanninayaka Senior Technical Lead WSO2 Inc. : http://wso2.com Mobile : +94 77 209 9788 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Jaggery post method doesn't modify the content type when header is passed
Need to use latest build ALPHA4. :) *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Mon, Jul 14, 2014 at 9:46 AM, Amal Gunatilake am...@wso2.com wrote: Hi Dakshika, I used the pack that is currently available to download @ http://jaggeryjs.org/. jaggery-0.9.0-SNAPSHOT_ALPHA3 http://dist.wso2.org/products/jaggery/dl/jaggery-0.9.0-SNAPSHOT_ALPHA3.zip Please let me know which version I should use. Thank you Best regards, *Amal Gunatilake* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware On Mon, Jul 14, 2014 at 2:47 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi, I have checked code and seems its fixed on latest version. What's the pack that your using currently? *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Thu, Jul 10, 2014 at 12:13 PM, Amal Gunatilake am...@wso2.com wrote: Hi Team, As mentioned in the documentation http://jaggeryjs.org/documentation.jag?api=post I passed the header to change the Content-Type to application/json but still it tends to pass the default Content-Type (application/x-www-form-urlencoded; charset=UTF-8 ). My jaggery code is as follows: var httpUrl = http://localhost:;; var headers = { Content-Type:application/json, Authorization:Basic YWRtaW46YWRtaW4= }; var url = /bpmnrest/runtime/tasks/408; var data = request.getContent(); var result = post( httpUrl + url, data, headers, json); When I monitor the request through TCPMon I get the following. POST /bpmnrest/runtime/tasks/513 HTTP/1.1 Content-Type: *application/x-www-form-urlencoded; charset=UTF-8 * Authorization: Basic YWRtaW46YWRtaW4= User-Agent: Jakarta Commons-HttpClient/3.1 Host: localhost: Content-Length: 47 action=completevariables=%5Bobject%20Object%5D The Authentication header seems to get modified but not the Content-Type. Please let me know a possible workaround to proceed with implementing the BPMN Humantask Jaggery app. Thank you Best regards, *Amal Gunatilake* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Jaggery post method doesn't modify the content type when header is passed
Hi Dakshika, The new pack seems to work fine. Thank you for the support. Thank you Best regards, *Amal Gunatilake* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware On Mon, Jul 14, 2014 at 4:02 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Need to use latest build ALPHA4. :) *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Mon, Jul 14, 2014 at 9:46 AM, Amal Gunatilake am...@wso2.com wrote: Hi Dakshika, I used the pack that is currently available to download @ http://jaggeryjs.org/. jaggery-0.9.0-SNAPSHOT_ALPHA3 http://dist.wso2.org/products/jaggery/dl/jaggery-0.9.0-SNAPSHOT_ALPHA3.zip Please let me know which version I should use. Thank you Best regards, *Amal Gunatilake* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware On Mon, Jul 14, 2014 at 2:47 PM, Dakshika Jayathilaka daksh...@wso2.com wrote: Hi, I have checked code and seems its fixed on latest version. What's the pack that your using currently? *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Thu, Jul 10, 2014 at 12:13 PM, Amal Gunatilake am...@wso2.com wrote: Hi Team, As mentioned in the documentation http://jaggeryjs.org/documentation.jag?api=post I passed the header to change the Content-Type to application/json but still it tends to pass the default Content-Type (application/x-www-form-urlencoded; charset=UTF-8 ). My jaggery code is as follows: var httpUrl = http://localhost:;; var headers = { Content-Type:application/json, Authorization:Basic YWRtaW46YWRtaW4= }; var url = /bpmnrest/runtime/tasks/408; var data = request.getContent(); var result = post( httpUrl + url, data, headers, json); When I monitor the request through TCPMon I get the following. POST /bpmnrest/runtime/tasks/513 HTTP/1.1 Content-Type: *application/x-www-form-urlencoded; charset=UTF-8 * Authorization: Basic YWRtaW46YWRtaW4= User-Agent: Jakarta Commons-HttpClient/3.1 Host: localhost: Content-Length: 47 action=completevariables=%5Bobject%20Object%5D The Authentication header seems to get modified but not the Content-Type. Please let me know a possible workaround to proceed with implementing the BPMN Humantask Jaggery app. Thank you Best regards, *Amal Gunatilake* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DSS][AXIS2][AXIS2-JSON] Writing a new XML to JSON conversion
Hi, I have tried with putting a jar file as a library to the repository/conf/lib folder. But it throws an exception when initializing axis2.xml file with class not found exception. Maybe axis2.xml get loaded before loading the classes in lib folder. Below is the exception which was thrown. [2014-07-14 16:24:48,583] FATAL {org.wso2.carbon.core.init.CarbonServerManager} - WSO2 Carbon initialization Failed org.apache.axis2.AxisFault: Exception occured while loading the Axis configuration from /media/rajith/Office/Wso2/team/product/wso2dss-3.2.1/repository/conf/axis2/axis2.xml at org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfiguration(CarbonAxisConfigurator.java:190) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64) at org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65) at org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:398) at org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219) at org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:77) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) at org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81) at org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:60) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:40) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(DelegationServlet.java:38) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1267) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1186) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1081) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662) Caused by: org.apache.axis2.deployment.DeploymentException: org/apache/axis2/json/JSONMMyFormatter at org.apache.axis2.deployment.AxisConfigBuilder.processMessageBuilders(AxisConfigBuilder.java:775) at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:236) at org.wso2.carbon.core.CarbonAxisConfigurator.populateAxisConfiguration(CarbonAxisConfigurator.java:308) at org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfiguration(CarbonAxisConfigurator.java:188) ... 42 more Caused by:
Re: [Dev] [DSS][AXIS2][AXIS2-JSON] Writing a new XML to JSON conversion
@Ragith I checked out whole patch0007, couldn't build from the root(created some dependency problems with dependencies/orbit/axis2-json module... some relative path dependency pom files... i'm working on it nw ). So build only dependencies/axis2/modules/json module, copy the generated jar to the folder called 'patch0008' under wso2dss-3.2.1/repository/components/patches Not dependencies/orbit/ axis2-json. @Shameera Thanks for asking that, problem is DSS json response is not uniform, so not convenient for the consumer. As an example, for a given select-query-operation there can be 3 types of responses. 1) There are no records. {Entries;} 2) Only one record. {Entries:{Entry:{col1:val1,col2:val2}}} 3) More than one records. {Entries:{Entry:[{col1:val1,col2:val2}, {col1:val3,col2:val4}]}} When consuming the service there are few validation checks we have to do. No1 is partially OK, simple null check. But in No2 No3, when we are getting the value of key Entry we have to check whether is it an array of objects or just an object, which i think is not convenient for the consumer. So I want to come up with a uniform type of response as below. 1) {Entries:{Entry:[]}} 2) {Entries:{Entry:[{col1:val1,col2:val2}]}} 3) {Entries:{Entry:[{col1:val1,col2:val2}, {col1:val3,col2:val4}]}} Any thoughts? On Mon, Jul 14, 2014 at 4:28 PM, Rajith Vitharana raji...@wso2.com wrote: Hi, I have tried with putting a jar file as a library to the repository/conf/lib folder. But it throws an exception when initializing axis2.xml file with class not found exception. Maybe axis2.xml get loaded before loading the classes in lib folder. Below is the exception which was thrown. [2014-07-14 16:24:48,583] FATAL {org.wso2.carbon.core.init.CarbonServerManager} - WSO2 Carbon initialization Failed org.apache.axis2.AxisFault: Exception occured while loading the Axis configuration from /media/rajith/Office/Wso2/team/product/wso2dss-3.2.1/repository/conf/axis2/axis2.xml at org.wso2.carbon.core.CarbonAxisConfigurator.getAxisConfiguration(CarbonAxisConfigurator.java:190) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64) at org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65) at org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:398) at org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219) at org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:77) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) at org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81) at org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:60) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:40) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(DelegationServlet.java:38) at
Re: [Dev] We are getting some class not found issues intermittently
kasun , as you said i tried..after that i get some spring class loading issue..May be the way edited the jar is wrong.. please commit the fix..we need to build the pack 2014-07-14 16:50:42,213] INFO {org.wso2.carbon.server.util.PatchUtils.console} - Patch verification successfully completed without encountering any issues. Could not start: null(reference:file:../plugins/spring.framework_3.1.0.wso2v1.jar:482). It's state is uninstalled. log4j:ERROR Could not instantiate class [org.wso2.carbon.logging.appender.CarbonMemoryAppender]. java.lang.ClassNotFoundException: org.wso2.carbon.logging.appender.CarbonMemoryAppender at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:171) at org.apache.log4j.helpers.Loader.loadClass(Loader.java:178) at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:317) at org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.java:120) at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:629) at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612) at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441) at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468) at org.apache.log4j.LogManager.clinit(LogManager.java:122) at org.apache.log4j.Logger.getLogger(Logger.java:104) at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:289) at org.apache.commons.logging.impl.Log4JLogger.init(Log4JLogger.java:109) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1116) at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:914) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685) at org.wso2.carbon.axis2.internal.Activator.clinit(Activator.java:32) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.refle On 14 July 2014 14:33, Vijayaratha Vijayasingam rat...@wso2.com wrote: thanks sameera.. On 14 July 2014 14:07, Sameera Jayasoma same...@wso2.com wrote: Hi Ratha, Here is how I found the culprit. :) First I wanted to make sure that this issue occurs due to changes done to the platform or to the kernel. To verify this I installed all the patches from patch0001 to patch0009 to a Carbon kernel instance. But when I start the kernel I got a Spring related class loading issue. Then I removed patch0009 from the AM pack, but I couldn't reproduce the error. From these steps I got a good observations to believe that patch0009 contains the root cause of this issue. Since I got a spring related error earlier, I removed the spring bundle from patch0009 and tested in kernel instance as well as in an AM instance. I couldn't reproduce the error. Thanks, Sameera. On Mon, Jul 14, 2014 at 12:31 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: Hi sameera; Thanks ..looks like this solved the issue..I restarted the server several times, but haven't faced any issue.. May i know how do you find the root cause? so, we won't disturb core team to fix these type issues? thanks On 14 July 2014 11:53, Sameera Jayasoma same...@wso2.com wrote: Hi Ratha, Can you try to reproduce by removing the following jar from patch0009? repository/components/patches/patch0009/spring.framework_3.1.0.wso2v1.jar Thanks, Sameera. On Wed, Jul 9, 2014 at 6:49 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: Is there any recent change in the *core.util module* which causes this issue? osgi ls 454 Components in bundle org.wso2.carbon.utils: ID State Component Name Located in bundle 155 Active
Re: [Dev] Cannot call BAM Mediator through Scheduled Task
Hi Danesh, Issue is reported and waiting for the patch to get reviewed.[1] You can apply the patch and it will solve your issue. [1] https://wso2.org/jira/browse/ESBJAVA-3208 Cheers, Rajith On Mon, Jul 14, 2014 at 3:47 PM, Danesh Kuruppu dan...@wso2.com wrote: Hi all, I need to call BAM Mediator through Task. but when I call it through the Task sequence, BAM mediator never get invoked. I created an ESB sequence with BAM mediator. when I invoke it manually through a custom proxy or an API, it works fine and the BAM event is created. but when we call it through a task, the BAM event is not created. when I debug the code, I found out that when we invoking through the task, MessageContext object does not have Axis Service. but inside the BAM mediator[1], it is looking for an Axis Service to process the msg. [1] https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk12/components/mediators/bam/org.wso2.carbon.mediator.bam/4.2.0/src/main/java/org/wso2/carbon/mediator/bam/BamMediator.java https://www.google.com/url?q=https%3A%2F%2Fsvn.wso2.org%2Frepos%2Fwso2%2Fcarbon%2Fplatform%2Ftags%2Fturing-chunk12%2Fcomponents%2Fmediators%2Fbam%2Forg.wso2.carbon.mediator.bam%2F4.2.0%2Fsrc%2Fmain%2Fjava%2Forg%2Fwso2%2Fcarbon%2Fmediator%2Fbam%2FBamMediator.javasa=Dsntz=1usg=AFQjCNFXyw9fRTbezxKuixjeNOmWu-VXgQ Please help me on this. Thanks -- Danesh Kuruppu Software Engineer WSO2 Inc, Mobile: +94 (77) 1690552 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Rajith Siriwardana* Software Engineer WSO2 Inc. ; http://wso2.com *lean. enterprise. middleware* -- *http://people.apache.org/~siriwardana http://people.apache.org/~siriwardana* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Merge the pull request
Hi Krishantha, Please merge the pull request [1] [1] https://github.com/wso2-dev/carbon-platform-integration-utils/pull/5 Regards -- Dimuthu De Lanerolle Software Engineer WSO2 Inc. lean . enterprise . middlewear. http://wso2.com/ Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Cannot call BAM Mediator through Scheduled Task
On Mon, Jul 14, 2014 at 5:11 PM, Rajith Siriwardena raj...@wso2.com wrote: Hi Danesh, Issue is reported and waiting for the patch to get reviewed.[1] You can apply the patch and it will solve your issue. [1] https://wso2.org/jira/browse/ESBJAVA-3208 Cheers, Rajith On Mon, Jul 14, 2014 at 3:47 PM, Danesh Kuruppu dan...@wso2.com wrote: Hi all, I need to call BAM Mediator through Task. but when I call it through the Task sequence, BAM mediator never get invoked. I created an ESB sequence with BAM mediator. when I invoke it manually through a custom proxy or an API, it works fine and the BAM event is created. but when we call it through a task, the BAM event is not created. when I debug the code, I found out that when we invoking through the task, MessageContext object does not have Axis Service. but inside the BAM mediator[1], it is looking for an Axis Service to process the msg. [1] https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk12/components/mediators/bam/org.wso2.carbon.mediator.bam/4.2.0/src/main/java/org/wso2/carbon/mediator/bam/BamMediator.java https://www.google.com/url?q=https%3A%2F%2Fsvn.wso2.org%2Frepos%2Fwso2%2Fcarbon%2Fplatform%2Ftags%2Fturing-chunk12%2Fcomponents%2Fmediators%2Fbam%2Forg.wso2.carbon.mediator.bam%2F4.2.0%2Fsrc%2Fmain%2Fjava%2Forg%2Fwso2%2Fcarbon%2Fmediator%2Fbam%2FBamMediator.javasa=Dsntz=1usg=AFQjCNFXyw9fRTbezxKuixjeNOmWu-VXgQ Please help me on this. Till it get reviewed you can build the mediator with necessary changes pointed out in the patch and replace the jar in ESB_HOME/repository/components/plugins and it will solve the issue. Thanks -- Danesh Kuruppu Software Engineer WSO2 Inc, Mobile: +94 (77) 1690552 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Rajith Siriwardana* Software Engineer WSO2 Inc. ; http://wso2.com *lean. enterprise. middleware* -- *http://people.apache.org/~siriwardana http://people.apache.org/~siriwardana* -- *Rajith Siriwardana* Software Engineer WSO2 Inc. ; http://wso2.com *lean. enterprise. middleware* -- *http://people.apache.org/~siriwardana http://people.apache.org/~siriwardana* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [CEP] Multithreading support in Siddhi
Hi all, We are in the process of rewriting Siddhi to support multi-threading. We are planning to use disruptor to improve performance. Siddhi API is also changed accordingly to facilitate new functionalities. Thanks -- *Thanks Regards,Sachini JayasekaraSoftware Engineer; **WSO2 Inc. * *lean . enterprise . middleware | http://wso2.com http://wso2.com * ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [CEP] Multithreading support in Siddhi
Please get the initial pref results with the disruptor, so we can plan more on how we are going to use that in Siddhi. Suho On Mon, Jul 14, 2014 at 5:25 PM, Sachini Jayasekara sachi...@wso2.com wrote: Hi all, We are in the process of rewriting Siddhi to support multi-threading. We are planning to use disruptor to improve performance. Siddhi API is also changed accordingly to facilitate new functionalities. Thanks -- *Thanks Regards,Sachini Jayasekara Software Engineer; **WSO2 Inc. * *lean . enterprise . middleware | http://wso2.com http://wso2.com * -- *S. Suhothayan* Technical Lead Team Lead of WSO2 Complex Event Processor *WSO2 Inc. *http://wso2.com * http://wso2.com/* lean . enterprise . middleware *cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/ http://suhothayan.blogspot.com/twitter: http://twitter.com/suhothayan http://twitter.com/suhothayan | linked-in: http://lk.linkedin.com/in/suhothayan http://lk.linkedin.com/in/suhothayan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Cannot call BAM Mediator through Scheduled Task
Hi Rajith, Thanks for the solution. I will try it. On Mon, Jul 14, 2014 at 5:18 PM, Rajith Siriwardena raj...@wso2.com wrote: On Mon, Jul 14, 2014 at 5:11 PM, Rajith Siriwardena raj...@wso2.com wrote: Hi Danesh, Issue is reported and waiting for the patch to get reviewed.[1] You can apply the patch and it will solve your issue. [1] https://wso2.org/jira/browse/ESBJAVA-3208 Cheers, Rajith On Mon, Jul 14, 2014 at 3:47 PM, Danesh Kuruppu dan...@wso2.com wrote: Hi all, I need to call BAM Mediator through Task. but when I call it through the Task sequence, BAM mediator never get invoked. I created an ESB sequence with BAM mediator. when I invoke it manually through a custom proxy or an API, it works fine and the BAM event is created. but when we call it through a task, the BAM event is not created. when I debug the code, I found out that when we invoking through the task, MessageContext object does not have Axis Service. but inside the BAM mediator[1], it is looking for an Axis Service to process the msg. [1] https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk12/components/mediators/bam/org.wso2.carbon.mediator.bam/4.2.0/src/main/java/org/wso2/carbon/mediator/bam/BamMediator.java https://www.google.com/url?q=https%3A%2F%2Fsvn.wso2.org%2Frepos%2Fwso2%2Fcarbon%2Fplatform%2Ftags%2Fturing-chunk12%2Fcomponents%2Fmediators%2Fbam%2Forg.wso2.carbon.mediator.bam%2F4.2.0%2Fsrc%2Fmain%2Fjava%2Forg%2Fwso2%2Fcarbon%2Fmediator%2Fbam%2FBamMediator.javasa=Dsntz=1usg=AFQjCNFXyw9fRTbezxKuixjeNOmWu-VXgQ Please help me on this. Till it get reviewed you can build the mediator with necessary changes pointed out in the patch and replace the jar in ESB_HOME/repository/components/plugins and it will solve the issue. Thanks -- Danesh Kuruppu Software Engineer WSO2 Inc, Mobile: +94 (77) 1690552 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Rajith Siriwardana* Software Engineer WSO2 Inc. ; http://wso2.com *lean. enterprise. middleware* -- *http://people.apache.org/~siriwardana http://people.apache.org/~siriwardana* -- *Rajith Siriwardana* Software Engineer WSO2 Inc. ; http://wso2.com *lean. enterprise. middleware* -- *http://people.apache.org/~siriwardana http://people.apache.org/~siriwardana* -- Danesh Kuruppu Software Engineer WSO2 Inc, Mobile: +94 (77) 1690552 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Cannot call BAM Mediator through Scheduled Task
*Manoj Kumara* Software Engineer WSO2 Inc. http://wso2.com/ *lean.enterprise.middleware* Mobile: +94713448188 Hi Rajith, Till it get reviewed you can build the mediator with necessary changes pointed out in the patch and replace the jar in ESB_HOME/repository/components/plugins and it will solve the issue. This is not a good practice to follow. We do not directly modify content inside plugins directory. Just create a patch directory say patch0xxx in repository/components/patches directory and place your jar inside that. The patched jar will be applied to the server during server restart. Thanks, Manoj ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Which Hadoop version should we support in SS 1.5.0 ?
Hi, On Mon, Jul 14, 2014 at 2:16 PM, Prabath Abeysekera praba...@wso2.com wrote: Did we check with the community as to how stable v241 is? I have asked the community. Will update when I get a reply. I don't quite see any issue in adapting the aforesaid version as a starting point, if it is considered stable and has adequate support for all the expected functionalities. If we come across any limitation while we're into further developments with the adapted version, then it's always possible for us to go for any future (stable) version too, as the situation demands. +1. BTW, please also talk to BAM team and see if we could align their plans of going for a newer version of Hadoop, with ours so that both parties can benefit out of this effort. Spoke to Anjana, the product might have a major release and the plans are not concrete, Anjana could provide more insight into this. However, they are fine with the upgrade in SS, and if by that time they too do a release and include Hadoop in the pack, they will most probably upgrade to the latest version. Cheers, Prabath On Mon, Jul 14, 2014 at 12:15 PM, Shani Ranasinghe sh...@wso2.com wrote: Hi, The latest release is 2.4.1. Which is a bug fix release for the 2.4.x line, released on the 30th of June 2014. This release has a fix for a security bug and they recommend users to move to this version immediately. Or we could also use the 2.2.0 which is the GA release of 2.x, released in October 2013. Should we go ahead with 2.4.1? -- Thanks and Regards *, Shani Ranasinghe* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 77 2273555 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab -- Prabath Abeysekara Associate Technical Lead, Data TG. WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 -- Thanks and Regards *,Shani Ranasinghe* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 77 2273555 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [G-Reg][integration-testing] Interleaving test classes
We had a debug session to find the root cause. The issue with incorrect usage with depends on annotation in SchemaAddTestCase. Only one test case depends on another case and rest of the test case execution happened in random order. After putting depends on annotation and getting the tests to run in order solve the problem. We might need to document this behavior with TestNG in our wiki. I will check whether this is TestNG bug or not. Thanks, Krishantha. On Fri, Jul 11, 2014 at 2:18 PM, Sameera Kannangara samee...@wso2.com wrote: HI Krishantha, Please find TA JIRA created at [1] https://wso2.org/jira/browse/TA-857. We will exclude test failing due to interleaving, when taking test summaries. Thank you, SameeraK [1] https://wso2.org/jira/browse/TA-857 On Fri, Jul 11, 2014 at 12:57 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Sameera, It will take bit of time to detect root cause of this problem. So can you disable the interleaving test cases and create TA JIRA to track it. Thanks, Krishantha. On Fri, Jul 11, 2014 at 12:12 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi all, You can find reasons for this kind of intermittent issue at TAF wiki - http://docs.wso2.com/display/TA430/FAQ#FAQ-Whydoesmytestmodulecontainintermittenttestfailures? I suspect this issue is something to do with test resource cleanup. Need to check run all tests and do extensive debug session. Please share active GIT repo URL. Thanks, Krishantha. On Thu, Jul 10, 2014 at 4:46 PM, Subash Chaturanga sub...@wso2.com wrote: Adding Krishantha On Thu, Jul 10, 2014 at 3:57 PM, Sameera Kannangara samee...@wso2.com wrote: Hi all, When running G-Reg tests I've encountered several test cases which passes when the containing class executed individually and fails when tests are run as packages. Following are few examples. deleteResources(org.wso2.carbon.registry.metadata.test.schema.SchemaAddTestCase) addAssociationToRoot(org.wso2.carbon.registry.ws.client.test.general.old.TestAssociationWSTestCase) cleanup(org.wso2.carbon.registry.ws.client.test.general.old.TestAssociationWSTestCase) When remote debugging these test classes it is observed that tests from different classes run interleaved, and that some times lead to changing and removing shared resources, results in test failures. How can we solve this problem? Thank you, SameeraK -- Sameera Kannangara, Software Engineer, WSO2 Inc. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks /subash *Subash Chaturanga* Senior Software Engineer Lead WSO2 Governance Registry Platform TG; WSO2 Inc. http://wso2.com Contact: email: sub...@wso2.com blog: http://subashsdm.blogspot.com/ twitter: @subash89 phone: +9477 2225922 Lean . Enterprise . Middleware -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Sameera Kannangara, Software Engineer, WSO2 Inc. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Cannot call BAM Mediator through Scheduled Task
On Mon, Jul 14, 2014 at 5:48 PM, Manoj Kumara ma...@wso2.com wrote: *Manoj Kumara* Software Engineer WSO2 Inc. http://wso2.com/ *lean.enterprise.middleware* Mobile: +94713448188 Hi Rajith, Till it get reviewed you can build the mediator with necessary changes pointed out in the patch and replace the jar in ESB_HOME/repository/components/plugins and it will solve the issue. This is not a good practice to follow. We do not directly modify content inside plugins directory. Just create a patch directory say patch0xxx in repository/components/patches directory and place your jar inside that. The patched jar will be applied to the server during server restart. Thanks Monoj :) Thanks, Manoj -- *Rajith Siriwardana* Software Engineer WSO2 Inc. ; http://wso2.com *lean. enterprise. middleware* -- *http://people.apache.org/~siriwardana http://people.apache.org/~siriwardana* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] How to add a new User member to a Group in SCIM
Hi Ishara, While writing integration test for patch operation I wanted to modify user list of a group. I have tried following method setMember(String id) setUserMember(String id) setGroupMember(String id) but it gives org.apache.wink.client.ClientRuntimeException: org.wso2.charon.core.exceptions.AbstractCharonException at org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl.java:240) at org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl.java:189) at org.apache.wink.client.internal.ResourceImpl.put(ResourceImpl.java:326) at org.wso2.carbon.identity.tests.scim.SCIMServiceProviderGroupTestCase.updateGroup(SCIMServiceProviderGroupTestCase.java:208) Caused by: org.wso2.charon.core.exceptions.AbstractCharonException at org.wso2.charon.core.encoder.json.JSONDecoder.decodeException(JSONDecoder.java:153) at org.wso2.charon.core.client.SCIMClient.decodeSCIMException(SCIMClient.java:219) at org.wso2.carbon.identity.tests.scim.utils.SCIMResponseHandler.handle(SCIMResponseHandler.java:51) at org.apache.wink.client.internal.handlers.HandlerContextImpl.doChain(HandlerContextImpl.java:52) at org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl.java:227) ... 36 more seems like after modifying user list of a group, json decoder fails some where. This does not happen for updating group name only. Can you point the correct method to add new user member to a group from id ? (org.wso2.charon.core.objects.Group). -- Gayan Gunawardana Software Engineer; WSO2 Inc.; http://wso2.com/ Email: ga...@wso2.com Mobile: +94 (71) 8020933 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] The WSO2 Developer Studio 3.7.0 Released!
*The WSO2 Developer Studio 3.7.0 Released!* WSO2 Developer Studio team is pleased to announce the release of version 3.7.0 of the WSO2 Developer Studio. WSO2 Developer Studio IDE provides a Complete Composite Application Development Tooling Platform for award winning WSO2 Carbon Middleware platform as well as for popular open source projects, Apache Tomcat, Apache Synapse, Apache Axis2, Apache CXF, etc. The distribution is available to download at [1] and the latest product documentation is available at [2]. This release includes following Improvements and Bug Fixes. *Improvements* - [TOOLS-2439 https://wso2.org/jira/browse/TOOLS-2439] - Show developer repositories in the Application View - [TOOLS-2465 https://wso2.org/jira/browse/TOOLS-2465] - App Factory application list view - remove label suffix -Closed - [TOOLS-2466 https://wso2.org/jira/browse/TOOLS-2466] - App Factory Tools : Remove automatic login on startup remove login prompt at startup - [TOOLS-2467 https://wso2.org/jira/browse/TOOLS-2467] - App Factory tools - Fix typo and remove view password in plain text option in preferences window. - [TOOLS-2482 https://wso2.org/jira/browse/TOOLS-2482] - E4X extension activity for BPEL editor - [TOOLS-2483 https://wso2.org/jira/browse/TOOLS-2483] - HumanTask Activity for BPEL Editor - [TOOLS-2484 https://wso2.org/jira/browse/TOOLS-2484] - Cannot specify faultOnFailure configuration through BPEL editor - [TOOLS-2523 https://wso2.org/jira/browse/TOOLS-2523] - Application list view labels and application details view are not updated instantly after opening a application. - [TOOLS-2559 https://wso2.org/jira/browse/TOOLS-2559] - App Factory Tools - Add support for email based user model of App cloud deployment - [TOOLS-2570 https://wso2.org/jira/browse/TOOLS-2570] - Improve look and feel of AF tools login prompt to contrast cloud and standalone AF login attempts - [TOOLS-2573 https://wso2.org/jira/browse/TOOLS-2573] - AF Tools - Improve preferences window to capture selection between App Cloud or standalone AF. *Bugs* - [TOOLS-2261 https://wso2.org/jira/browse/TOOLS-2261] - [Assignment Activity] XPath Expression auto fill is not working and also it's missing the 'Expression Language' selection drop down list - [TOOLS-2448 https://wso2.org/jira/browse/TOOLS-2448] - Dev Studio doesn't support DSS 3.2.0 cassandra data stax configuration - [TOOLS-2451 https://wso2.org/jira/browse/TOOLS-2451] - The property name should be 'Cache Type' instead of 'Cache Action' - [TOOLS-2452 https://wso2.org/jira/browse/TOOLS-2452] - Connection type should be 'Pool' instead of DB_Connection in DBLOOKUP and DBREPORT - [TOOLS-2453 https://wso2.org/jira/browse/TOOLS-2453] - Composite application project pom editor has been overridden by default maven pom editor - [TOOLS-2454 https://wso2.org/jira/browse/TOOLS-2454] - 'initAxis2ClientOptions' is missing in Callout Mediator - [TOOLS-2455 https://wso2.org/jira/browse/TOOLS-2455] - Properties are missing in the Property Window of the Failover Endpoint - [TOOLS-2456 https://wso2.org/jira/browse/TOOLS-2456] - 'Session Timeout' property is missing in LoadBalance Endpoint - [TOOLS-2457 https://wso2.org/jira/browse/TOOLS-2457] - Unnecessary properties 'WSDL Definition' and 'WSDL Description' in WSDLEndpoint - [TOOLS-2458 https://wso2.org/jira/browse/TOOLS-2458] - In Local entry properties view 'Value Type' property should be renamed properly with the values - [TOOLS-2459 https://wso2.org/jira/browse/TOOLS-2459] - 'Condition Type' property's values should be inline with management console in Filter Mediator - [TOOLS-2461 https://wso2.org/jira/browse/TOOLS-2461] - In Send Mediator only sequences should list down under 'Static Receiving Sequence' property - [TOOLS-2462 https://wso2.org/jira/browse/TOOLS-2462] - App Factory Login window always get default Host URL - [TOOLS-2464 https://wso2.org/jira/browse/TOOLS-2464] - In HTTPEndpoint unwanted properties are displayed - [TOOLS-2468 https://wso2.org/jira/browse/TOOLS-2468] - Bean Mediator's property window is not properly organized - [TOOLS-2469 https://wso2.org/jira/browse/TOOLS-2469] - Property Names of 'Format' and 'Format key' should be renamed accordingly in PayloadFactoryMediator - [TOOLS-2470 https://wso2.org/jira/browse/TOOLS-2470] - Title of the variable's window ('Variables' property window) of the XQuery Mediator is not descriptive - [TOOLS-2471 https://wso2.org/jira/browse/TOOLS-2471] - Entitlement Mediator property issues - [TOOLS-2472 https://wso2.org/jira/browse/TOOLS-2472] - Entitlement mediator's 'Entitlement Client Type' and 'CallBack Class' values are not serializing properly - [TOOLS-2473 https://wso2.org/jira/browse/TOOLS-2473] - Local entry Properties view issues - [TOOLS-2476
Re: [Dev] Custom federated authenticator (For Linked In)
Hi, On Sun, Jul 13, 2014 at 9:50 PM, Dulanja Liyanage dula...@wso2.com wrote: Shall we add this to Chunk-13? WDYT? I asked to add this an example how to add a custom federated authenticator. +1 for adding an federated authenticator to the server by efault. Thanks, -Ishara On Fri, Jul 11, 2014 at 9:41 PM, Ishara Karunarathna isha...@wso2.com wrote: Hi all, [1] Here I have written a blog on adding custom federated authenticator. So I think we can add this to our docs. Thanks, Ishara [1] http://isharaaruna.blogspot.com/2014/07/login-with-linkedin-to-wso2-identity.html -- Ishara Karunarathna Senior Software Engineer WSO2 Inc. - lean . enterprise . middleware | wso2.com email: isha...@wso2.com, blog: isharaaruna.blogspot.com, mobile: +94 718211678 -- Dulanja Liyanage WSO2 Inc. M: +94776764717 -- Ishara Karunarathna Senior Software Engineer WSO2 Inc. - lean . enterprise . middleware | wso2.com email: isha...@wso2.com, blog: isharaaruna.blogspot.com, mobile: +94 718211678 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [G-Reg][integration-testing] Interleaving test classes
Noted. Thanks, Tania On Mon, Jul 14, 2014 at 6:44 PM, Krishantha Samaraweera krishan...@wso2.com wrote: We had a debug session to find the root cause. The issue with incorrect usage with depends on annotation in SchemaAddTestCase. Only one test case depends on another case and rest of the test case execution happened in random order. After putting depends on annotation and getting the tests to run in order solve the problem. We might need to document this behavior with TestNG in our wiki. I will check whether this is TestNG bug or not. Thanks, Krishantha. On Fri, Jul 11, 2014 at 2:18 PM, Sameera Kannangara samee...@wso2.com wrote: HI Krishantha, Please find TA JIRA created at [1] https://wso2.org/jira/browse/TA-857. We will exclude test failing due to interleaving, when taking test summaries. Thank you, SameeraK [1] https://wso2.org/jira/browse/TA-857 On Fri, Jul 11, 2014 at 12:57 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Sameera, It will take bit of time to detect root cause of this problem. So can you disable the interleaving test cases and create TA JIRA to track it. Thanks, Krishantha. On Fri, Jul 11, 2014 at 12:12 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi all, You can find reasons for this kind of intermittent issue at TAF wiki - http://docs.wso2.com/display/TA430/FAQ#FAQ-Whydoesmytestmodulecontainintermittenttestfailures? I suspect this issue is something to do with test resource cleanup. Need to check run all tests and do extensive debug session. Please share active GIT repo URL. Thanks, Krishantha. On Thu, Jul 10, 2014 at 4:46 PM, Subash Chaturanga sub...@wso2.com wrote: Adding Krishantha On Thu, Jul 10, 2014 at 3:57 PM, Sameera Kannangara samee...@wso2.com wrote: Hi all, When running G-Reg tests I've encountered several test cases which passes when the containing class executed individually and fails when tests are run as packages. Following are few examples. deleteResources(org.wso2.carbon.registry.metadata.test.schema.SchemaAddTestCase) addAssociationToRoot(org.wso2.carbon.registry.ws.client.test.general.old.TestAssociationWSTestCase) cleanup(org.wso2.carbon.registry.ws.client.test.general.old.TestAssociationWSTestCase) When remote debugging these test classes it is observed that tests from different classes run interleaved, and that some times lead to changing and removing shared resources, results in test failures. How can we solve this problem? Thank you, SameeraK -- Sameera Kannangara, Software Engineer, WSO2 Inc. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks /subash *Subash Chaturanga* Senior Software Engineer Lead WSO2 Governance Registry Platform TG; WSO2 Inc. http://wso2.com Contact: email: sub...@wso2.com blog: http://subashsdm.blogspot.com/ twitter: @subash89 phone: +9477 2225922 Lean . Enterprise . Middleware -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Sameera Kannangara, Software Engineer, WSO2 Inc. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Tania Mahanama Senior Technical Writer Contact: Mob: +94 077 5129270 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] chunk13-build error
IS team; Please check.. IDP component/feature build fails.. INFO] BUILD FAILURE [INFO] [INFO] Total time: 29.527s [INFO] Finished at: Mon Jul 14 11:38:52 PDT 2014 [INFO] Final Memory: 57M/638M [INFO] [ERROR] Failed to execute goal on project org.wso2.carbon.idp.mgt.server.feature: Could not resolve dependencies for project org.wso2.carbon:org.wso2.carbon.idp.mgt.server.feature:pom:4.2.4: Failure to find org.wso2.carbon:org.wso2.carbon.idp.mgt:jar:4.2.3 in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the local repository, resolution will not be reattempted until the update interval of wso2-nexus has elapsed or updates are forced - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] INFO] [INFO] Building Identity Provider Management Server Feature 4.2.4 [INFO] [WARNING] The POM for org.wso2.carbon:org.wso2.carbon.identity.application.common:jar:4.2.1 is missing, no dependency information available [WARNING] The POM for org.wso2.carbon:org.wso2.carbon.idp.mgt:jar:4.2.3 is missing, no dependency information available [INFO -- -Ratha mobile: (+94)755906608 -- -Ratha mobile: (+94)755906608 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] How to get AS tenant life-cycle state
Hi, I need to perform a filtering based on following App server tenant states, * loading * loaded * unloading * unloaded Can I use lastAccessedTime[1] to do it?. Or is there a better way to listen to tenant life-cycle events? [1] long lastAccessedTime =TenantAxisUtils.getLastAccessed(tenantDomain, ServiceHolder.getInstance() .getConfigContextService().getServerConfigContext()); if(lastAccessedTime!=-1){ log.info(tenant loaded); }else { log.info(tenant is not loaded ); } Regards, -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com Advances of technology should not leave behind the developing world ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Which Hadoop version should we support in SS 1.5.0 ?
Hi, Basically yeah, we won't have any issues in going with the latest Hadoop version, since Hive will anyway support it. For our current BAM 2.4.x patch releases, we won't be upgrading Hadoop. But for next major releases, we can use the new one. Cheers, Anjana. On Mon, Jul 14, 2014 at 6:42 PM, Shani Ranasinghe sh...@wso2.com wrote: Hi, On Mon, Jul 14, 2014 at 2:16 PM, Prabath Abeysekera praba...@wso2.com wrote: Did we check with the community as to how stable v241 is? I have asked the community. Will update when I get a reply. I don't quite see any issue in adapting the aforesaid version as a starting point, if it is considered stable and has adequate support for all the expected functionalities. If we come across any limitation while we're into further developments with the adapted version, then it's always possible for us to go for any future (stable) version too, as the situation demands. +1. BTW, please also talk to BAM team and see if we could align their plans of going for a newer version of Hadoop, with ours so that both parties can benefit out of this effort. Spoke to Anjana, the product might have a major release and the plans are not concrete, Anjana could provide more insight into this. However, they are fine with the upgrade in SS, and if by that time they too do a release and include Hadoop in the pack, they will most probably upgrade to the latest version. Cheers, Prabath On Mon, Jul 14, 2014 at 12:15 PM, Shani Ranasinghe sh...@wso2.com wrote: Hi, The latest release is 2.4.1. Which is a bug fix release for the 2.4.x line, released on the 30th of June 2014. This release has a fix for a security bug and they recommend users to move to this version immediately. Or we could also use the 2.2.0 which is the GA release of 2.x, released in October 2013. Should we go ahead with 2.4.1? -- Thanks and Regards *, Shani Ranasinghe* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 77 2273555 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab -- Prabath Abeysekara Associate Technical Lead, Data TG. WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 -- Thanks and Regards *, Shani Ranasinghe* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 77 2273555 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab -- *Anjana Fernando* Senior Technical Lead WSO2 Inc. | http://wso2.com lean . enterprise . middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] svn commits will be restricted
Hi all; We will restrict the commits to svn today onwards due to continuous build breaks.. Thanks. -- -Ratha mobile: (+94)755906608 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] chunk13-build error
Fixed. Please take a svn up in chunk-13/components. Regards, Prasad. On Tue, Jul 15, 2014 at 12:14 AM, Vijayaratha Vijayasingam rat...@wso2.com wrote: IS team; Please check.. IDP component/feature build fails.. INFO] BUILD FAILURE [INFO] [INFO] Total time: 29.527s [INFO] Finished at: Mon Jul 14 11:38:52 PDT 2014 [INFO] Final Memory: 57M/638M [INFO] [ERROR] Failed to execute goal on project org.wso2.carbon.idp.mgt.server.feature: Could not resolve dependencies for project org.wso2.carbon:org.wso2.carbon.idp.mgt.server.feature:pom:4.2.4: Failure to find org.wso2.carbon:org.wso2.carbon.idp.mgt:jar:4.2.3 in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the local repository, resolution will not be reattempted until the update interval of wso2-nexus has elapsed or updates are forced - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] INFO] [INFO] Building Identity Provider Management Server Feature 4.2.4 [INFO] [WARNING] The POM for org.wso2.carbon:org.wso2.carbon.identity.application.common:jar:4.2.1 is missing, no dependency information available [WARNING] The POM for org.wso2.carbon:org.wso2.carbon.idp.mgt:jar:4.2.3 is missing, no dependency information available [INFO -- -Ratha mobile: (+94)755906608 -- -Ratha mobile: (+94)755906608 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Prasad Tissera Software Engineer. Mobile : +94777223444 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] chunk13-build error
Fixed. Please take a svn up in chunk-13/components. Regards, Prasad. On Tue, Jul 15, 2014 at 12:14 AM, Vijayaratha Vijayasingam rat...@wso2.com wrote: IS team; Please check.. IDP component/feature build fails.. INFO] BUILD FAILURE [INFO] [INFO] Total time: 29.527s [INFO] Finished at: Mon Jul 14 11:38:52 PDT 2014 [INFO] Final Memory: 57M/638M [INFO] [ERROR] Failed to execute goal on project org.wso2.carbon.idp.mgt.server.feature: Could not resolve dependencies for project org.wso2.carbon:org.wso2.carbon.idp.mgt.server.feature:pom:4.2.4: Failure to find org.wso2.carbon:org.wso2.carbon.idp.mgt:jar:4.2.3 in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the local repository, resolution will not be reattempted until the update interval of wso2-nexus has elapsed or updates are forced - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] INFO] [INFO] Building Identity Provider Management Server Feature 4.2.4 [INFO] [WARNING] The POM for org.wso2.carbon:org.wso2.carbon.identity.application.common:jar:4.2.1 is missing, no dependency information available [WARNING] The POM for org.wso2.carbon:org.wso2.carbon.idp.mgt:jar:4.2.3 is missing, no dependency information available [INFO -- -Ratha mobile: (+94)755906608 -- -Ratha mobile: (+94)755906608 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Prasad Tissera Software Engineer. Mobile : +94777223444 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] chunk13-build error
No still not Features are broken..Please check ASAP NFO] Generating MANIFEST.MF [INFO] Updating Advice file (p2.inf) [INFO] Copying bundle dependencies [INFO]org.wso2.carbon.identity.application.common:4.2.1 [INFO]org.wso2.carbon.idp.mgt:4.2.3 [INFO] Generating feature archive: /opt/checkout_chunk13/platform/branches/turing/features/idp-mgt/org.wso2.carbon.idp.mgt.server.feature/4.2.4/target/org.wso2.carbon.idp.mgt.server.feature-4.2.4.zip [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ org.wso2.carbon.idp.mgt.server.feature --- [INFO] Installing /opt/checkout_chunk13/platform/branches/turing/features/idp-mgt/org.wso2.carbon.idp.mgt.server.feature/4.2.4/pom.xml to /root/.m2/repository/org/wso2/carbon/org.wso2.carbon.idp.mgt.server.feature/4.2.4/org.wso2.carbon.idp.mgt.server.feature-4.2.4.pom [INFO] Installing /opt/checkout_chunk13/platform/branches/turing/features/idp-mgt/org.wso2.carbon.idp.mgt.server.feature/4.2.4/target/org.wso2.carbon.idp.mgt.server.feature-4.2.4.zip to /root/.m2/repository/org/wso2/carbon/org.wso2.carbon.idp.mgt.server.feature/4.2.4/org.wso2.carbon.idp.mgt.server.feature-4.2.4.zip [INFO] [INFO] --- maven-antrun-plugin:1.1:run (clean_target) @ org.wso2.carbon.idp.mgt.server.feature --- [INFO] Executing tasks [delete] Deleting directory /opt/checkout_chunk13/platform/branches/turing/features/idp-mgt/org.wso2.carbon.idp.mgt.server.feature/4.2.4/src/main/resources [delete] Deleting directory /opt/checkout_chunk13/platform/branches/turing/features/idp-mgt/org.wso2.carbon.idp.mgt.server.feature/4.2.4/src/main [delete] Deleting directory /opt/checkout_chunk13/platform/branches/turing/features/idp-mgt/org.wso2.carbon.idp.mgt.server.feature/4.2.4/src [INFO] Executed tasks [INFO] [INFO] [INFO] Building Trusted Identity Provider Management Feature 4.2.4 [INFO] [WARNING] The POM for org.wso2.carbon:org.wso2.carbon.idp.mgt.ui.feature:zip:4.2.2 is missing, no dependency information available [INFO] [INFO] Reactor Summary: [INFO] [INFO] WSO2 Stratos - Common Core Feature SUCCESS [4.362s] [INFO] WSO2 Stratos - Common Composite Feature ... SUCCESS [1.157s] [INFO] WSO2 Carbon - Api management Core Feature . SUCCESS [6.213s] [INFO] WSO2 Carbon - Api management Gateway Feature .. SUCCESS [0.668s] [INFO] WSO2 Carbon - API Publisher Feature ... SUCCESS [3.549s] [INFO] WSO2 Carbon - Api management Server Startup Publisher Feature SUCCESS [1.033s] [INFO] WSO2 Carbon - API Store Feature ... SUCCESS [3.924s] [INFO] WSO2 Carbon - Api management Feature .. SUCCESS [5.857s] [INFO] WSO2 Carbon - Synapse Nhttp Transport Feature . SUCCESS [0.333s] [INFO] WSO2 Carbon - Synapse Feature . SUCCESS [0.646s] [INFO] Identity Provider Management Server Feature ... SUCCESS [0.117s] [INFO] Trusted Identity Provider Management Feature .. FAILURE [0.038s] [INFO] WSO2 Carbon - Tasks Core Feature .. SKIPPED [INFO] WSO2 Carbon - Tasks Feature ... SKIPPED [INFO] WSO2 Carbon - New Datasource Management UI Feature SKIPPED [INFO] WSO2 Carbon - New Datasource Management Feature ... SKIPPED [INFO] WSO2 Carbon - Data Bridge - Commons Server Feature SKIPPED [INFO] WSO2 Carbon - Data Bridge - Core Server Feature ... SKIPPED [INFO] WSO2 Carbon - Data Bridge - Thrift Reciever Server Feature SKIPPED [INFO] WSO2 Carbon - Data Bridge - Data Receiver Aggregate Feature SKIPPED [INFO] WSO2 Carbon - Data Bridge - Cassandra Data Sink Server Feature SKIPPED [INFO] WSO2 Carbon - Data Bridge - All Cassandra Features Aggregator Feature SKIPPED [INFO] WSO2 Carbon - Data Bridge - Thrift Agent Server Feature SKIPPED [INFO] WSO2 Carbon - Data Bridge - Data Publisher Aggregate Feature SKIPPED [INFO] WSO2 Carbon - Hive Analytics Feature .. SKIPPED [INFO] WSO2 Carbon - Analytics Feature ... SKIPPED [INFO] WSO2 Carbon - Analytics Feature ... SKIPPED [INFO] WSO2 Carbon - BAM ToolBox Deployer Server Feature . SKIPPED [INFO] WSO2 Carbon - BAM Tool Box Deployer Feature ... SKIPPED [INFO] WSO2 Carbon - BAM Message Tracer Server Feature ... SKIPPED [INFO] WSO2 Carbon - BAM Message Tracer Handler Aggregate Feature SKIPPED [INFO] WSO2 Carbon - BAM Notification Task Server Feature SKIPPED [INFO] WSO2 Carbon - Dashboard Server Side Feature ... SKIPPED [INFO] WSO2 Carbon - Dashboard UI Feature SKIPPED [INFO] WSO2 Carbon - Dashboard Composite Feature . SKIPPED [INFO] WSO2 Carbon - Gadget Repo UI Feature .. SKIPPED [INFO] WSO2 Carbon - Gadget Repo Server Side Feature . SKIPPED [INFO] WSO2 Carbon - Gadget
[Dev] ESB sample 363 giving eoor
Hi, I tried to run ESB sample 363 with mysql configuration. It gives following exception. Any idea on it? ERROR - DataSourceFinder Error looking up DataSource : lookupdb using JNDI properties : javax.naming.InitialContext@4ec44deb javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused] -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Plug Jaggery test framework to automation framework - Executing jaggery test cases during the build time and bridging it with test framework
Hi, We have completed implementing this common class and we will commit this to GIT soon. Instead writing any java test class extending this common class we can simply add the test class to the testng.xml inside the [PRODUCT_HOME]/modules/integration/tests-integration/xxx/src/test/resources directory and it will get executed automatically. I have already tested this with EMM and it worked in the expected manner.Also note that due to some issues as mentioned in the thread '[Dev] Sugarcane release' we might not be able to run every test continuously till the mentioned bugs are fixed. eg: test name=Test - EMM preserve-order=true parallel=false classes class name=org.wso2.carbon.integration.common.tests.JaggeryServerTest/ /classes /test Regards On Thu, Jul 10, 2014 at 12:55 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Chamil On Thu, Jul 10, 2014 at 12:39 PM, Chamil Jeewantha cha...@wso2.com wrote: Hi All, I was thinking the tests are written in Java. I had a chat with Ruchira understood the tests are written in Jaggery. So let me take back the annotation. BTW, my personal opinion is, just putting a dummy java class to identify whether its Jaggery test is bit odd. Dummy class is not to identify the Jaggery tests, it does many more functionalities, like identify all endpoints in each Jaggery app and send a GET request to execute the tests represented at each endpoint. There are many other java based scripting languages which may have integrated with TestNG. I think its better to do a small research to find what is the way they have followed. [1] for example. WDYT? This is just a matter of sending GET request to Jaggery app endpoint. No scripting required IMO. Thanks, Krishantha. [1] https://code.google.com/p/testngroove/ On Thu, Jul 10, 2014 at 12:10 PM, Ruchira Wageesha ruch...@wso2.com wrote: Hi Krishantha, If it is just a dummy class as you mentioned, then that would be fine. i.e. we neither need to maintain any *.xml configurations or Java codes, other than the pom.xml configuration. Regarding my initial suggestion, you would be able to do it using [1]. [1] http://testng.org/doc/documentation-main.html#running-testng-programmatically [2] http://stackoverflow.com/questions/13732015/dynamic-test-suites-using-testng On Wed, Jul 9, 2014 at 11:20 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Ruchira, On Mon, Jul 7, 2014 at 6:39 PM, Ruchira Wageesha ruch...@wso2.com wrote: On Mon, Jul 7, 2014 at 4:46 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Ruchira, This is not going to be a simple plugin to implement.This plugin will act as a test executor and report generator, and we need to integrate code coverage generation as well. Maven already provide sure-fire plug for test execution and TestNG and Emma provide other capabilities. So writing a new plugin from the scratch will be more work and we are going to ignore existing plugins and test framework capabilities. I think we are trying to reinvent the wheel Sorry Krishantha, you have got it wrong :). I never said to reinvent the wheel and I know it is useless. To clarify what I meant, assume the configuration that everyone put in their pom.xml asking TestNG/Emma to execute the test class that they wrote(Let's say it as X and everyone will have to write the same class). Instead of that, your test framework jar bundles the class(X) and you write a maven plugin, which allows someone to ask TestNG/Emma to execute tests with your bundled class(X) by just specifying maven plugin configuration in their pom.xml Idea of this new feature was to run jaggery tests and display the result in TestNG report generated by test framework. To implement the plugin you mentioned, we need to write a wrapper plugin around surefire plugin. I don't know whether this capability is provided by maven. The test class that developers going write will be look like this [1]. It is matter of extending abstract test class. Will do a demo on this and discuss with you. So we can decide what is the best way to go ahead. [1] https://github.com/wso2/product-dss/blob/master/modules/integration/tests-integration/tests/src/test/java/org/wso2/dss/integration/test/server/mgt/DSSServerBundleStatusTestCase.java again. Adding one single test class just by extending a class provided by test framework doesn't going to be overkill. Is there a way to discover all jaggery applications hosted in carbon server instance? if jaggery app discovery is available, then we can use testNG listener to run all unit tests in those Jaggery apps even without writing single java class in product test modules. +1. If you list down all the directories available within repository/deployment/server/jaggeryapps directory, those are the Jaggery apps available. If we refer carbon.home in tests case, then the test case will have to be skipped
Re: [Dev] EMM Unit test reviewing
Hi all, On Tue, Jun 24, 2014 at 6:42 PM, Chan duli...@wso2.com wrote: Attendee:- Manuranga, Dulitha, Dilan, Krishantha, Kasun, Inosh, Krishanthi, Harshan, Dilshan - Improve the tier up, tier down functions per test case in jaggery test - Integrate to the build (jaggery-test) and Test Automation Framework Integration part is done. We have come up with a common test which can use to run all Jaggery app tests. Changes are available in GIT. To use this feature you might need to complete the GIT migration first. Thanks, Krishantha. - - Throw errors rather than handling them - Coverage for now can be through a GDoc - Use the test automation suites feature (use default user available in testing) - Mocking ability for database layer Below 2 issues needs to be fixed in jaggery-test - Handle issue in high number of test case execution - Handle issue in error text displaying in UI We will have to migrate to 4.3.0 since our dependencies are in 4.3.0 Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com duli...@wso2mobile.com* * ~Mobile +94712112165 %2B94712112165* * ~Website dulitha.me http://dulitha.me* * ~Twitter @dulitharw https://twitter.com/dulitharw* *~Github @dulichan https://github.com/dulichan* *~SO @chan http://stackoverflow.com/users/813471/chan* -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev