Re: [Dev] [Chunk-14] Event-stream Feature error
Hi ratha, The relavant missing component is there in [1] and also it's mentioned in the chunk-14 components pom.xml as well. Please take svn up and see. [1] https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/event-stream/event-output-adaptor/org.wso2.carbon.event.output.adaptor.http/1.0.2 Thanks, Sinthuja On Wed, Dec 3, 2014 at 9:06 AM, Malith Dhanushka mal...@wso2.com wrote: Hi Ratha, Is this resolved. If you build Chunk-14/components , it should build the event-output-adaptor/org.wso2.carbon.event.output.adaptor.http/1.0.2 component which is missing here. On Tue, Dec 2, 2014 at 9:42 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: Getting; INFO] Total time: 23:20.620s [INFO] Finished at: Tue Dec 02 08:08:39 PST 2014 [INFO] Final Memory: 283M/714M [INFO] [ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-feature-gen (4-p2-feature-generation) on project org.wso2.carbon.event.output.adaptor.http.server.feature: ERROR: Could not find artifact org.wso2.carbon:org.wso2.carbon.event.output.adaptor.http:jar:1.0.2 in wso2-nexus1 ( http://sr5.us1.wso2.com/nexus/content/repositories/wso2-public/) [ERROR] [ER -- -Ratha -- Malith Dhanushka Software Engineer - Data Technologies *WSO2, Inc. : wso2.com http://wso2.com/* *Mobile* : +94 716 506 693 -- *Sinthuja Rajendran* Senior Software Engineer http://wso2.com/ WSO2, Inc.:http://wso2.com Blog: http://sinthu-rajan.blogspot.com/ Mobile: +94774273955 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Regex or If Else
Hi all, I am implementing wildcard support for MQTT in WSO2 MB. The MQTT 3.1 Specification [1] provides details about how the wildcards should behave. According to this, to implement this match making I can either use java.lang.String functions and if else conditions or use a regular expression. I believe a regular expression will be a bit more complex to understand and hence prefer to use if else conditions. What will be best way to approach this? [1] - http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718107 Thanks, Akalanka -- *Akalanka Pagoda Arachchi,* *Software Engineer* *078-4721791* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Error while adding value to XML element added using enrich mediator
Hi Jerad, Thank you for the answer. On Wed, Dec 3, 2014 at 9:32 AM, Jerad Rutnam je...@wso2.com wrote: Hi Malintha, I'm not sure if this will help, did you try adding a type to target tag. enrich source type=property clone=true property=message1/source target type=custom xpath=//deliverystatus xmlns= http://ws.apache.org/ns/synapse;/target we can explicitly add namespace as above. If we don't assign any , the default namespace will be added. AFAIK, no need to add the default ns explicitly. /enrich Regards, On Mon, Dec 1, 2014 at 7:52 PM, Malintha Adikari malin...@wso2.com wrote: Hi Senduran, I tried it but the issue is still there ( Using esb 4.8.1). Will check more with your sample. Thank you very much On Mon, Dec 1, 2014 at 2:03 PM, Senduran Balasubramaniyam sendu...@wso2.com wrote: Hi Malintha, can you try the following and let me know (btw I tried with ESB 4.8.1) property name=deliverystatus scope=default deleveryStatus xmlns=temval/deleveryStatus /property property name=message1 value=abc123 scope=default type=STRING/property enrich source type=property clone=true property=deliverystatus/source target type=body action=child/target /enrich enrich source clone=true type=custom xpath=$ctx:message1/source target action=replace type=custom xpath=//deliverystatus/text()/target /enrich Thanks Senduran On Mon, Dec 1, 2014 at 6:49 PM, Malintha Adikari malin...@wso2.com wrote: Hi Senduran, Thank you for the prompt response. On Mon, Dec 1, 2014 at 1:06 PM, Senduran Balasubramaniyam sendu...@wso2.com wrote: Hi Malintha, You can get rid of the default namespace by adding an empty namespace i.e property name=deliverystatus scope=default deleveryStatus xmlns=/deleveryStatus /property I have already tried adding xmlns= to remove added namespace. But it did not fix the issue for me. also I am not quite sure about the 2nd enrich mediator's target. Since if you are adding something like //deliverystatus then the xpath will try to find a deliverystatus node in the body. First I add this element to request body. Then I try to add value into that element. I used log mediator and printed the payload after adding the deliveryStatus element and the payload contains that element. But I cannot access that element using //deliveryStatus xpath. I tried to access same DOM level elements and I could access them. Problem is cannot access the newly added element though it exists. If your request doesn't have a deliverystatus node this error may occur Thanks Senduran On Mon, Dec 1, 2014 at 5:59 PM, Malintha Adikari malin...@wso2.com wrote: Hi, I want to add following XML element as a child to the payload body deleveryStatusabc123/deleveryStatus This abc123 value is taken from a property. I used enrich mediator to add the element as follows property name=deliverystatus scope=default deleveryStatus/deleveryStatus /property enrich source type=property clone=true property=deliverystatus/source target type=body action=child/target /enrich and it sets the element as expected to the body (with default namespace) (deleveryStatus xmlns=http://ws.apache.org/ns/synapse /deleveryStatus) Then I tired to set value in to this element (taking from another property) enrich source type=property clone=true property=message1/source target xpath=//deliverystatus xmlns= http://ws.apache.org/ns/synapse;/target /enrich and it gives me following error *ERROR - EnrichMediator Invalid Target object to be enrich.* But I could add values to elements which were already there in the payload body (value can't be added only to the newly added one). What could be the reason for this issue? Is there any other way to do this task ? Regards, Malintha Adikari -- *Malintha Adikari* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware Mobile: +94 71 2312958 Blog:http://malinthas.blogspot.com Page: http://about.me/malintha ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Senduran * Software Engineer, WSO2, Inc.; http://wso2.com/ http://wso2.com/ Mobile: +94 77 952 6548 -- *Malintha Adikari* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware Mobile: +94 71 2312958 Blog:http://malinthas.blogspot.com Page: http://about.me/malintha -- *Senduran * Software Engineer, WSO2, Inc.; http://wso2.com/ http://wso2.com/ Mobile: +94 77 952 6548 -- *Malintha Adikari* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware Mobile: +94 71 2312958 Blog:http://malinthas.blogspot.com Page: http://about.me/malintha ___ Dev mailing list
[Dev] Please commit to patch0009
Hi, Please commit following https://wso2.org/jira/browse/IDENTITY-2911 https://www.google.com/url?q=https%3A%2F%2Fwso2.org%2Fjira%2Fbrowse%2FIDENTITY-2911sa=Dsntz=1usg=AFQjCNFiO7c6GSsKvjnyd9xXAK566y_XEA Thanks Isura. -- Isura Dilhara Karunaratne Software Engineer Mob +94 772 254 810 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Chunk-14] Event-stream Feature error
Yes..after taking up that fixes the issue.. Thanks. On 3 December 2014 at 14:36, Sinthuja Ragendran sinth...@wso2.com wrote: Hi ratha, The relavant missing component is there in [1] and also it's mentioned in the chunk-14 components pom.xml as well. Please take svn up and see. [1] https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/event-stream/event-output-adaptor/org.wso2.carbon.event.output.adaptor.http/1.0.2 Thanks, Sinthuja On Wed, Dec 3, 2014 at 9:06 AM, Malith Dhanushka mal...@wso2.com wrote: Hi Ratha, Is this resolved. If you build Chunk-14/components , it should build the event-output-adaptor/org.wso2.carbon.event.output.adaptor.http/1.0.2 component which is missing here. On Tue, Dec 2, 2014 at 9:42 PM, Vijayaratha Vijayasingam rat...@wso2.com wrote: Getting; INFO] Total time: 23:20.620s [INFO] Finished at: Tue Dec 02 08:08:39 PST 2014 [INFO] Final Memory: 283M/714M [INFO] [ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-feature-gen (4-p2-feature-generation) on project org.wso2.carbon.event.output.adaptor.http.server.feature: ERROR: Could not find artifact org.wso2.carbon:org.wso2.carbon.event.output.adaptor.http:jar:1.0.2 in wso2-nexus1 ( http://sr5.us1.wso2.com/nexus/content/repositories/wso2-public/) [ERROR] [ER -- -Ratha -- Malith Dhanushka Software Engineer - Data Technologies *WSO2, Inc. : wso2.com http://wso2.com/* *Mobile* : +94 716 506 693 -- *Sinthuja Rajendran* Senior Software Engineer http://wso2.com/ WSO2, Inc.:http://wso2.com Blog: http://sinthu-rajan.blogspot.com/ Mobile: +94774273955 -- -Ratha ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] ESB JSON related scenarios - Writing of Automation Test cases
Hi Dimuthu, Here is the Test Scenarios doc we prepared when adding JSON support for Iterate/Aggregate/Clone/Enrich mediators [1]. Just see if this will be useful for anything. [1] https://docs.google.com/a/wso2.com/spreadsheets/d/1Unh0iJI7LaXcTg_ure5FPveJ0KmDU10NZ1GmP_ov3Eg Thanks, Jerad On Tue, Dec 2, 2014 at 6:51 PM, Dimuthu De Lanerolle dimut...@wso2.com wrote: We are in the process of writing automation tests for JSON related scenarios for ESB 4.9.0- SNAPSHOT. We have identified several test scenarios as mentioned in the doc [1] . ( Pls update the this thread if I have missed any test case scenarios. ) [1] https://docs.google.com/a/wso2.com/spreadsheets/d/1PQ-FDysiHMozhOcp4hUKnnITIbY5zUb-_-yeRfXnGeA/edit#gid=0 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 -- *Jerad Rutnam | **Software Engineer - UI* WSO2, Inc. www.wso2.com *Email: je...@wso2.com je...@wso2.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [AM 1.8.0] [Blocker] Cannot save API in Manage state for users with create permission
Hi, Users in 'API Provider' role (login and create permissions only) cannot save APIs in the Manage state. Hence the API providers cannot give tier level, subscription availability setting etc when creating the API. [1] https://wso2.org/jira/browse/APIMANAGER-3158 Thanks, Nirodha -- *Nirodha Gallage* Senior Software Engineer, QA. WSO2 Inc.: http://wso2.com/ Mobile: +94716429078 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Configure PHP web application to use SSO with IS
Hi, I am trying to configure a PHP web app[1] with IS as the IDP. Can some one please guide me to any doc that is availbale to do that? Above app is installed on Apache. [1]http://testlink.org/ Thanks, -- 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] Please commit to patch0009
Hi Isura, Can you send PR to the master branch of kernel git repository? Thanks, Sameera. On Wed, Dec 3, 2014 at 3:54 PM, Isura Karunaratne is...@wso2.com wrote: Hi, Please commit following https://wso2.org/jira/browse/IDENTITY-2911 https://www.google.com/url?q=https%3A%2F%2Fwso2.org%2Fjira%2Fbrowse%2FIDENTITY-2911sa=Dsntz=1usg=AFQjCNFiO7c6GSsKvjnyd9xXAK566y_XEA Thanks Isura. -- Isura Dilhara Karunaratne Software Engineer Mob +94 772 254 810 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Sameera Jayasoma, Software Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Mobile: 0094776364456 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Fwd: Service Pack for Carbon Kernel 4.2.0
Hi Thilini, There are issues with service pack model. We need to sort them out before releasing kernel service packs. These kernel service packs can conflict with product service packs/patches. Thanks, Sameera. On Wed, Dec 3, 2014 at 9:44 AM, Thilini Ishaka thil...@wso2.com wrote: Hi Sameera All, Have we released kernel patches as a service pack which is located under [1]? [1] https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/service-packs/servicepack001/ Thanks Thilini On Thu, Sep 4, 2014 at 8:50 AM, Pavithra Madurangi pavit...@wso2.com wrote: PING.. :) On Mon, Aug 18, 2014 at 4:39 PM, Evanthika Amarasiri evanth...@wso2.com wrote: On Mon, Aug 18, 2014 at 4:05 PM, Evanthika Amarasiri evanth...@wso2.com wrote: The same can be seen with API-M packs as well. The fresh pack is 341M. The 3rd July packs were just 301M. Correction. The fresh 1.7.1 distribution, built today [1] is 341M. What was given for QA on the 3rd July was only 301M. The size of the packs seems to be increasing every milestone due to kernal patches. [1] - https://svn.wso2.org/repos/wso2/scratch/chunk13-release/17-08-2014/ We noticed that this is due to the kernal patches and we believe that it's a good idea to consider about the Kernal SP. Regards, Evanthika On Mon, Aug 18, 2014 at 3:59 PM, Pavithra Madurangi pavit...@wso2.com wrote: Moving this discussion to dev@ Hi Sameera, Are we going to implement this approach immediately? We observed that recent EAM (Enterprise App Manager) pack is bit bulky. The compressed distribution is 401 MB and it becomes 746M when extracted and started . After removing the kernel patches the size becomes 426M. Regards, Pavithra -- Forwarded message -- From: Sameera Jayasoma same...@wso2.com Date: Fri, Jul 25, 2014 at 10:48 AM Subject: Service Pack for Carbon Kernel 4.2.0 Hi Folks, We are in the process of creating a service pack out of all the nine Carbon kernel patches. From now onwards, products which will be released from 4.2.0 branch do not need to pack all the nine patches. They can simply pack the servicepack001. This will reduce the size of product distributions as well. Please holler if there are any problems on this approach to the support patching process. Thanks, Sameera. -- Sameera Jayasoma, Software Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Mobile: 0094776364456 Lean . Enterprise . Middleware -- *Pavithra Madurangi* Associate Technical Lead - QA. WSO2 Inc.: http://wso2.com/ Mobile: +94777207357 / +94773814110 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Pavithra Madurangi* Associate Technical Lead - QA. WSO2 Inc.: http://wso2.com/ Mobile: +94777207357 / +94773814110 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thilini Ishaka Senior Software Engineer Solutions Architecture Mobile: +94 71 840 8171 WSO2 Inc. http://wso2.com blog: thiliniishaka.blogspot.com linkedin: http://lk.linkedin.com/in/thiliniishaka twitter: https://twitter.com/#!/ThiliniIsh -- Sameera Jayasoma, Software Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://sameera.adahas.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Mobile: 0094776364456 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Configure PHP web application to use SSO with IS
Hi, Following is the SSO config available in web app side. $tlCfg-authentication['SSO_enabled'] = true; $tlCfg-authentication['SSO_method'] = 'CLIENT_CERTIFICATE'; $tlCfg-authentication['SSO_uid_field'] = 'SSL_CLIENT_S_DN_Email'; Thanks, On Wed, Dec 3, 2014 at 4:44 PM, Waruna Perera waru...@wso2.com wrote: Hi, I am trying to configure a PHP web app[1] with IS as the IDP. Can some one please guide me to any doc that is availbale to do that? Above app is installed on Apache. [1]http://testlink.org/ Thanks, -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- 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
[Dev] [wso2bps] webServices filter on Tenant forget filter on the parameter.
Hello dear community, I think I found something strange in https://svn.wso2.org/repos/wso2/branches/carbon/3.2.0/components/business-processes/bpel/org.wso2.carbon.bpel/3.2.0/src/main/java/org/wso2/carbon/bpel/ode/integration/mgt/services/ProcessManagementServiceSkeleton.java public java.lang.String[] getAllProcesses(String getAllProcesses) throws ProcessManagementException { TenantProcessStoreImpl tenantProcessStore = getTenantProcessStore(); SetQName processIds = tenantProcessStore.getProcesses().keySet(); ListString pids = new ArrayListString(); for(QName pid : processIds) { pids.add(pid.toString()); } return pids.toArray(new String[pids.size()]); } In this method the parameter getAllProcesses isn't use. So this method can't conforme to it's definition of filtering over the status of the parameter (ACTIVE/RETIRED/DISABLED). Maybe this constraint should be forward to the tenantProcessStore.getProcesses() call. May I suggest to change this function in a way similare to this : public java.lang.String[] getAllProcesses(String getAllProcesses) throws ProcessManagementException { final TenantProcessStoreImpl tenantProcessStore = getTenantProcessStore(); final ListString pids = new ArrayListString(); for(final EntryQName,ProcessConfigurationImpl entry : tenantProcessStore.getProcesses().entrySet()) // map-filter if (entry.getValue() != null entry.getValue().getState() != null // make sure ODE process is sync with db entry.getValue().getState().toString().equals(getAllProcesses) // Check parameter filter. ) pids.add(entry.getKey().toString()); return pids.toArray(new String[pids.size()]); } Regards, Kévin. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] ESB JSON related scenarios - Writing of Automation Test cases
Hi Jerad, Thanks for the response. Will consider this aswell. Regards On Wednesday, 3 December 2014, Jerad Rutnam je...@wso2.com wrote: Hi Dimuthu, Here is the Test Scenarios doc we prepared when adding JSON support for Iterate/Aggregate/Clone/Enrich mediators [1]. Just see if this will be useful for anything. [1] https://docs.google.com/a/wso2.com/spreadsheets/d/1Unh0iJI7LaXcTg_ure5FPveJ0KmDU10NZ1GmP_ov3Eg Thanks, Jerad On Tue, Dec 2, 2014 at 6:51 PM, Dimuthu De Lanerolle dimut...@wso2.com javascript:_e(%7B%7D,'cvml','dimut...@wso2.com'); wrote: We are in the process of writing automation tests for JSON related scenarios for ESB 4.9.0- SNAPSHOT. We have identified several test scenarios as mentioned in the doc [1] . ( Pls update the this thread if I have missed any test case scenarios. ) [1] https://docs.google.com/a/wso2.com/spreadsheets/d/1PQ-FDysiHMozhOcp4hUKnnITIbY5zUb-_-yeRfXnGeA/edit#gid=0 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 javascript:_e(%7B%7D,'cvml','dimut...@wso2.com'); ___ Dev mailing list Dev@wso2.org javascript:_e(%7B%7D,'cvml','Dev@wso2.org'); http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Jerad Rutnam | **Software Engineer - UI* WSO2, Inc. www.wso2.com *Email: je...@wso2.com javascript:_e(%7B%7D,'cvml','je...@wso2.com');* -- 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
[Dev] ES 2.0.0. Snapshot : Fresh Pack : Errors shown in log
Hi, I just unzipped a fresh pack of ES 2.0.0 Snapshot, and i was browsing through the default pages and i noticed my log was filled with the following error messages and warning, [2014-12-03 17:14:22,088] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,089] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,089] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,089] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,089] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,089] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,089] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,089] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,089] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,089] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,089] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,090] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,090] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,090] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,090] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,090] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,090] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,090] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,090] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,090] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,090] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,091] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,091] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,091] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,131] WARN {rxt.core} - Unable to locate timestamp attribute for type: gadget.Check if a timestamp property is defined in the rxt configuration. [2014-12-03 17:14:22,131] WARN {rxt.asset} - There is no time stamp field defined for type: gadget.A default time stamp field : overview_createdtime will be used.Add a timestampField property to the configuration to change this. [2014-12-03 17:14:22,324] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,324] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:26,526] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:26,527] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: site as the subscription path could not be obtained [2014-12-03 17:14:26,527] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:26,527] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: site as the subscription path could not be obtained [2014-12-03 17:14:26,527] WARN {rxt.asset} - Unable to obtain user space as there is no logged in
Re: [Dev] Configure PHP web application to use SSO with IS
Check how this is done for jaggery in jaggery apps like APIM store/publisher, AF appmgt. You might need to write that sso hostobject code in PHP. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Dec 3, 2014 at 4:53 PM, Waruna Perera waru...@wso2.com wrote: Hi, Following is the SSO config available in web app side. $tlCfg-authentication['SSO_enabled'] = true; $tlCfg-authentication['SSO_method'] = 'CLIENT_CERTIFICATE'; $tlCfg-authentication['SSO_uid_field'] = 'SSL_CLIENT_S_DN_Email'; Thanks, On Wed, Dec 3, 2014 at 4:44 PM, Waruna Perera waru...@wso2.com wrote: Hi, I am trying to configure a PHP web app[1] with IS as the IDP. Can some one please guide me to any doc that is availbale to do that? Above app is installed on Apache. [1]http://testlink.org/ Thanks, -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- 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 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [AF] Shall we remove the products/appfatory/2.1.0/vmware folder from svn?
Hi All Shall we consider $subject? AFAIU we shouldn't be using this after we moved to puppet. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Shall we remove the products/appfatory/2.1.0/vmware folder from svn?
Hi, It has appfactory.xml file right ? If removed then which location we should refer for appfactory.xml file ? On Wed, Dec 3, 2014 at 5:56 PM, Danushka Fernando danush...@wso2.com wrote: Hi All Shall we consider $subject? AFAIU we shouldn't be using this after we moved to puppet. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Shall we remove the products/appfatory/2.1.0/vmware folder from svn?
Hi Danushka, +1 for removing products/appfatory/2.1.0/vmware folder from svn. @Mahesh appfactory.xml has been moved to puppet templates. (wso2base/templates/appfactory/appfactory.xml). On Wed, Dec 3, 2014 at 6:00 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi, It has appfactory.xml file right ? If removed then which location we should refer for appfactory.xml file ? On Wed, Dec 3, 2014 at 5:56 PM, Danushka Fernando danush...@wso2.com wrote: Hi All Shall we consider $subject? AFAIU we shouldn't be using this after we moved to puppet. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] SVN GUI Client or command line tool
Hi All, I am from new batch which was recruit on 1st of December. So I looking some help form you. Since I'm using MacBook I need some advice regarding SVN client for a Mac OS. I found this [1] tool called Xcode. Are you guys using this tool or a separate SVN client than this? Witch one should I use? [1] - http://stackoverflow.com/questions/9329243/xcode-4-4-and-later-install-command-line-tools Thanks Regards, *Sajith Abeywardhana* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka. Mobile: +94 772 260 485 Email: saji...@wso2.com mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Shall we remove the products/appfatory/2.1.0/vmware folder from svn?
+1 thanks, dimuthu On Wed, Dec 3, 2014 at 6:10 PM, Anuruddha Premalal anurud...@wso2.com wrote: Hi Danushka, +1 for removing products/appfatory/2.1.0/vmware folder from svn. @Mahesh appfactory.xml has been moved to puppet templates. (wso2base/templates/appfactory/appfactory.xml). On Wed, Dec 3, 2014 at 6:00 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi, It has appfactory.xml file right ? If removed then which location we should refer for appfactory.xml file ? On Wed, Dec 3, 2014 at 5:56 PM, Danushka Fernando danush...@wso2.com wrote: Hi All Shall we consider $subject? AFAIU we shouldn't be using this after we moved to puppet. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] ES 2.0.0. Snapshot : Fresh Pack : Errors shown in log
Hi Shiva, Those error and warning logs need to be converted to debug logs as not locating subscription space does not impede the rendering of the page (in fact it is not possible to locate a subscription space when there is no logged in user).I have created a JIRA to enact the change [1], [1] https://wso2.org/jira/browse/STORE-562 Thank You, Sameera On Wed, Dec 3, 2014 at 5:17 PM, Shiva Balachandran sh...@wso2.com wrote: Hi, I just unzipped a fresh pack of ES 2.0.0 Snapshot, and i was browsing through the default pages and i noticed my log was filled with the following error messages and warning, [2014-12-03 17:14:22,088] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,089] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,089] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,089] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,089] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,089] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,089] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,089] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,089] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,089] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,089] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,090] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,090] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,090] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,090] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,090] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,090] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,090] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,090] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,090] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,090] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,091] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,091] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,091] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:22,131] WARN {rxt.core} - Unable to locate timestamp attribute for type: gadget.Check if a timestamp property is defined in the rxt configuration. [2014-12-03 17:14:22,131] WARN {rxt.asset} - There is no time stamp field defined for type: gadget.A default time stamp field : overview_createdtime will be used.Add a timestampField property to the configuration to change this. [2014-12-03 17:14:22,324] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03 17:14:22,324] ERROR {rxt.asset} - Unable to retrieve subscriptions to type: gadget as the subscription path could not be obtained [2014-12-03 17:14:26,526] WARN {rxt.asset} - Unable to obtain user space as there is no logged in user.Cannot retrieve the subscription space [2014-12-03
Re: [Dev] [AF] Shall we remove the products/appfatory/2.1.0/vmware folder from svn?
Yes +1 for that now harshat@mobile On Dec 3, 2014 9:16 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: +1 thanks, dimuthu On Wed, Dec 3, 2014 at 6:10 PM, Anuruddha Premalal anurud...@wso2.com wrote: Hi Danushka, +1 for removing products/appfatory/2.1.0/vmware folder from svn. @Mahesh appfactory.xml has been moved to puppet templates. (wso2base/templates/appfactory/appfactory.xml). On Wed, Dec 3, 2014 at 6:00 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi, It has appfactory.xml file right ? If removed then which location we should refer for appfactory.xml file ? On Wed, Dec 3, 2014 at 5:56 PM, Danushka Fernando danush...@wso2.com wrote: Hi All Shall we consider $subject? AFAIU we shouldn't be using this after we moved to puppet. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 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] SVN GUI Client or command line tool
Hi Sajith, You can use Terminal for all svn related operations. I think its better to get used to svn commands in terminal. You can follow some common svn commands in [1] and [2] . And there's a lot more in the internet :) [1] - http://wiki.greenstone.org/wiki/index.php/Useful_SVN_Commands [2] - http://svnbook.red-bean.com/en/1.7/svn.ref.html On Wed, Dec 3, 2014 at 9:36 PM, Sajith Abeywardhana saji...@wso2.com wrote: Hi All, I am from new batch which was recruit on 1st of December. So I looking some help form you. Since I'm using MacBook I need some advice regarding SVN client for a Mac OS. I found this [1] tool called Xcode. Are you guys using this tool or a separate SVN client than this? Witch one should I use? [1] - http://stackoverflow.com/questions/9329243/xcode-4-4-and-later-install-command-line-tools Thanks Regards, *Sajith Abeywardhana* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka. Mobile: +94 772 260 485 Email: saji...@wso2.com mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] SVN GUI Client or command line tool
Hi Sajith, As far as I know, Xcode is an IDE for Apple related development in Objective C. For windows, TortoiseSVN is an excellent client, which integrates in to the Explorer really well. I'm not sure if an equivalent client is there for Mac. There's a list of tools here[1] too, but if you want to use a GUI client, the best approach would be to use the plugins available in the IDEs. For Intellij Idea and Eclipse there are good, well tested plugins. If you're using Eclipse, Subclipse[2] is a good plugin. Just match the subversion, version installed with the JavaHL[3] library and the plugin version, otherwise there can be irregularities in how the files are checked out. [1] - https://gigaom.com/2009/02/23/12-subversion-apps-for-os-x/ [2] - http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA [3] - http://subclipse.tigris.org/wiki/JavaHL Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Wed, Dec 3, 2014 at 10:12 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Sajith, You can use Terminal for all svn related operations. I think its better to get used to svn commands in terminal. You can follow some common svn commands in [1] and [2] . And there's a lot more in the internet :) [1] - http://wiki.greenstone.org/wiki/index.php/Useful_SVN_Commands [2] - http://svnbook.red-bean.com/en/1.7/svn.ref.html On Wed, Dec 3, 2014 at 9:36 PM, Sajith Abeywardhana saji...@wso2.com wrote: Hi All, I am from new batch which was recruit on 1st of December. So I looking some help form you. Since I'm using MacBook I need some advice regarding SVN client for a Mac OS. I found this [1] tool called Xcode. Are you guys using this tool or a separate SVN client than this? Witch one should I use? [1] - http://stackoverflow.com/questions/9329243/xcode-4-4-and-later-install-command-line-tools Thanks Regards, *Sajith Abeywardhana* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka. Mobile: +94 772 260 485 Email: saji...@wso2.com mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [IS] - Email account confirmation when creating accounts via UserInformationRecoveryService
Hi, I'm trying to implement the above scenario using the Identity Server and a simple Java client. I've enabled the following in the identity-mgt.properties. Identity.Listener.Enable=true Notification.Sending.Enable=true Notification.Expire.Time=7200 Notification.Sending.Internally.Managed=true UserAccount.Verification.Enable=false Authentication.Policy.Enable=true Authentication.Policy.Account.Lock.On.Creation=true Authentication.Policy.Account.Lock.Time=0 Authentication.Policy.Account.Lock.On.Failure=false Authentication.Policy.Account.Lock.On.Failure.Max.Attempts=0 I have the axis2.xml configured with the mailto transportSender as follows. transportSender name=mailto class=org.apache.axis2.transport.mail.MailTransportSender parameter name=mail.smtp.fromwso2demom...@gmail.com/parameter parameter name=mail.smtp.userchtest1/parameter parameter name=mail.smtp.passwordmailpassword/parameter parameter name=mail.smtp.hostsmtp.gmail.com/parameter parameter name=mail.smtp.port587/parameter parameter name=mail.smtp.starttls.enabletrue/parameter parameter name=mail.smtp.authtrue/parameter /transportSender I've attached the Java code that I'm using the register the user. When executing the service call, I get the following error message, which is not descriptive, and there is nothing in the Carbon console except for the log entries related to user entry. This occurs in both IS 5.0.0 and IS 4.5.0. VerificationBean verificationBean = *stub.registerUser(userName, password, claims, null, null);* Result = org.wso2.carbon.identity.mgt.stub.UserInformationRecoveryServiceIdentityMgtServiceExceptionException: UserInformationRecoveryServiceIdentityMgtServiceExceptionException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.Class.newInstance(Class.java:374) at org.wso2.carbon.identity.mgt.stub.UserInformationRecoveryServiceStub.registerUser(UserInformationRecoveryServiceStub.java:685) at org.chamilad.test.is.UserRegistration.main(UserRegistration.java:78) Carbon console === [2014-12-03 22:51:46,868] WARN {org.wso2.carbon.server.admin.module.handler.AuthenticationHandler} - Illegal access attempt at [2014-12-03 22:51:46,0868] from IP address 127.0.0.1 while trying to authenticate access to service UserInformationRecoveryService [2014-12-03 22:51:46,888] DEBUG {org.wso2.carbon.identity.mgt.IdentityMgtEventListener} - Pre authenticator is called in IdentityMgtEventListener [2014-12-03 22:51:46,916] DEBUG {org.wso2.carbon.identity.mgt.IdentityMgtEventListener} - Post authenticator is called in IdentityMgtEventListener [2014-12-03 22:51:46,918] INFO {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} - 'admin@carbon.super [-1234]' logged in at [2014-12-03 22:51:46,918+0530] [2014-12-03 22:51:46,919] DEBUG {org.wso2.carbon.identity.mgt.util.Utils} - Domain is not defined implicitly. So it is Super Tenant domain. [2014-12-03 22:51:46,922] DEBUG {org.wso2.carbon.identity.mgt.IdentityMgtEventListener} - Pre add user is called in IdentityMgtEventListener [2014-12-03 22:51:46,988] DEBUG {org.wso2.carbon.identity.mgt.IdentityMgtEventListener} - Post add user is called in IdentityMgtEventListener I tried debugging the server side code, but for both version 4.2.0 and 4.2.1 of org.wso2.carbon.identity.mgt, the debug pointers point to incorrect locations in the source. So I can't really pinpoint from where the IdentityMgtServiceException comes. However it is possible this might be related to the user store, the default LDAP user store that ships with IS, since the error comes as a UserStoreException as far as I assume. Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com package org.chamilad.test.is; import org.apache.axis2.AxisFault; import org.apache.axis2.client.Options; import org.apache.axis2.client.ServiceClient; import org.apache.axis2.transport.http.HttpTransportProperties; import org.wso2.carbon.identity.mgt.stub.UserInformationRecoveryServiceIdentityMgtServiceExceptionException; import org.wso2.carbon.identity.mgt.stub.UserInformationRecoveryServiceStub; import org.wso2.carbon.identity.mgt.stub.beans.VerificationBean; import org.wso2.carbon.identity.mgt.stub.dto.UserIdentityClaimDTO; import java.rmi.RemoteException; import java.util.Map; import java.util.Properties; public class UserRegistration { public static void main(String[] args) { UserInformationRecoveryServiceStub stub = null; HttpTransportProperties.Authenticator authenticator = null; Map properties = null; String serviceUrl = https://localhost:9443/services/UserInformationRecoveryService;;
Re: [Dev] Regex or If Else
Hi Akalanka, Even though for the multi-level wildcard using if else might be simpler, since the single-level wildcard can appear in several places of the topic name wouldn't it be better to follow the regex approach? Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Wed, Dec 3, 2014 at 2:49 PM, Akalanka Pagoda Arachchi darsha...@wso2.com wrote: Hi all, I am implementing wildcard support for MQTT in WSO2 MB. The MQTT 3.1 Specification [1] provides details about how the wildcards should behave. According to this, to implement this match making I can either use java.lang.String functions and if else conditions or use a regular expression. I believe a regular expression will be a bit more complex to understand and hence prefer to use if else conditions. What will be best way to approach this? [1] - http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718107 Thanks, Akalanka -- *Akalanka Pagoda Arachchi,* *Software Engineer* *078-4721791* ___ 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] Invoke a python script through java
On Wed, Dec 3, 2014 at 7:31 AM, Imesh Gunaratne im...@wso2.com wrote: IMO it is better to use Apache jclouds for this: https://jclouds.apache.org/guides/openstack/ If we do, we could simply switch to any other IaaS without a much of a problem. +1 Furthermore, using the standardized API is suitable rather than depending on an external tool, that might change frequently, and might break the functionality often. Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] SVN GUI Client or command line tool
HI Sajith. You can refer this [1] article to get an idea how to install svn client on your MacBook. In this article, Xcode command line tool is highly recommended. You can use the installation window which is popup once you enter the svn command on your terminal to install this client. [1] - http://www.macports.org/install.php Thanks. Prabath Ariyarathna On Thu, Dec 4, 2014 at 12:09 AM, Chamila De Alwis chami...@wso2.com wrote: Hi Sajith, As far as I know, Xcode is an IDE for Apple related development in Objective C. For windows, TortoiseSVN is an excellent client, which integrates in to the Explorer really well. I'm not sure if an equivalent client is there for Mac. There's a list of tools here[1] too, but if you want to use a GUI client, the best approach would be to use the plugins available in the IDEs. For Intellij Idea and Eclipse there are good, well tested plugins. If you're using Eclipse, Subclipse[2] is a good plugin. Just match the subversion, version installed with the JavaHL[3] library and the plugin version, otherwise there can be irregularities in how the files are checked out. [1] - https://gigaom.com/2009/02/23/12-subversion-apps-for-os-x/ [2] - http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA [3] - http://subclipse.tigris.org/wiki/JavaHL Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Wed, Dec 3, 2014 at 10:12 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Sajith, You can use Terminal for all svn related operations. I think its better to get used to svn commands in terminal. You can follow some common svn commands in [1] and [2] . And there's a lot more in the internet :) [1] - http://wiki.greenstone.org/wiki/index.php/Useful_SVN_Commands [2] - http://svnbook.red-bean.com/en/1.7/svn.ref.html On Wed, Dec 3, 2014 at 9:36 PM, Sajith Abeywardhana saji...@wso2.com wrote: Hi All, I am from new batch which was recruit on 1st of December. So I looking some help form you. Since I'm using MacBook I need some advice regarding SVN client for a Mac OS. I found this [1] tool called Xcode. Are you guys using this tool or a separate SVN client than this? Witch one should I use? [1] - http://stackoverflow.com/questions/9329243/xcode-4-4-and-later-install-command-line-tools Thanks Regards, *Sajith Abeywardhana* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka. Mobile: +94 772 260 485 Email: saji...@wso2.com mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Prabath Ariyarathna* *Associate Technical Lead* *WSO2, Inc. * *lean . enterprise . middleware * *Email: prabat...@wso2.com prabat...@wso2.com* *Blog: http://prabu-lk.blogspot.com http://prabu-lk.blogspot.com* *Flicker : https://www.flickr.com/photos/47759189@N08 https://www.flickr.com/photos/47759189@N08* *Mobile: +94 77 699 4730 * ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [IS] - Email account confirmation when creating accounts via UserInformationRecoveryService
Hi Chamila This is an admin service. So you need some admin permissions to call this service. Check the services.xml of the component. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Thu, Dec 4, 2014 at 12:21 AM, Chamila De Alwis chami...@wso2.com wrote: Hi, I'm trying to implement the above scenario using the Identity Server and a simple Java client. I've enabled the following in the identity-mgt.properties. Identity.Listener.Enable=true Notification.Sending.Enable=true Notification.Expire.Time=7200 Notification.Sending.Internally.Managed=true UserAccount.Verification.Enable=false Authentication.Policy.Enable=true Authentication.Policy.Account.Lock.On.Creation=true Authentication.Policy.Account.Lock.Time=0 Authentication.Policy.Account.Lock.On.Failure=false Authentication.Policy.Account.Lock.On.Failure.Max.Attempts=0 I have the axis2.xml configured with the mailto transportSender as follows. transportSender name=mailto class=org.apache.axis2.transport.mail.MailTransportSender parameter name=mail.smtp.fromwso2demom...@gmail.com/parameter parameter name=mail.smtp.userchtest1/parameter parameter name=mail.smtp.passwordmailpassword/parameter parameter name=mail.smtp.hostsmtp.gmail.com/parameter parameter name=mail.smtp.port587/parameter parameter name=mail.smtp.starttls.enabletrue/parameter parameter name=mail.smtp.authtrue/parameter /transportSender I've attached the Java code that I'm using the register the user. When executing the service call, I get the following error message, which is not descriptive, and there is nothing in the Carbon console except for the log entries related to user entry. This occurs in both IS 5.0.0 and IS 4.5.0. VerificationBean verificationBean = *stub.registerUser(userName, password, claims, null, null);* Result = org.wso2.carbon.identity.mgt.stub.UserInformationRecoveryServiceIdentityMgtServiceExceptionException: UserInformationRecoveryServiceIdentityMgtServiceExceptionException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.Class.newInstance(Class.java:374) at org.wso2.carbon.identity.mgt.stub.UserInformationRecoveryServiceStub.registerUser(UserInformationRecoveryServiceStub.java:685) at org.chamilad.test.is.UserRegistration.main(UserRegistration.java:78) Carbon console === [2014-12-03 22:51:46,868] WARN {org.wso2.carbon.server.admin.module.handler.AuthenticationHandler} - Illegal access attempt at [2014-12-03 22:51:46,0868] from IP address 127.0.0.1 while trying to authenticate access to service UserInformationRecoveryService [2014-12-03 22:51:46,888] DEBUG {org.wso2.carbon.identity.mgt.IdentityMgtEventListener} - Pre authenticator is called in IdentityMgtEventListener [2014-12-03 22:51:46,916] DEBUG {org.wso2.carbon.identity.mgt.IdentityMgtEventListener} - Post authenticator is called in IdentityMgtEventListener [2014-12-03 22:51:46,918] INFO {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} - 'admin@carbon.super [-1234]' logged in at [2014-12-03 22:51:46,918+0530] [2014-12-03 22:51:46,919] DEBUG {org.wso2.carbon.identity.mgt.util.Utils} - Domain is not defined implicitly. So it is Super Tenant domain. [2014-12-03 22:51:46,922] DEBUG {org.wso2.carbon.identity.mgt.IdentityMgtEventListener} - Pre add user is called in IdentityMgtEventListener [2014-12-03 22:51:46,988] DEBUG {org.wso2.carbon.identity.mgt.IdentityMgtEventListener} - Post add user is called in IdentityMgtEventListener I tried debugging the server side code, but for both version 4.2.0 and 4.2.1 of org.wso2.carbon.identity.mgt, the debug pointers point to incorrect locations in the source. So I can't really pinpoint from where the IdentityMgtServiceException comes. However it is possible this might be related to the user store, the default LDAP user store that ships with IS, since the error comes as a UserStoreException as far as I assume. Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Can we define more than one ServerRole in the artifact.xml file of a CAR?
Hi, Is it possible to do $subject? Requirement is to deploy the same artifact in 2 different servers with the same CAR file. As an example, when we have a JMS listener proxy in our CAR file and we have a worker/manager separated cluster with dep-sync enabled, once we deploy this CAR file in the manager node, It would be deployed there and synced to the worker node. But in this scenario, we do not need the JMS listener proxy in the management node to listen to the JMS queue. But If we have the same ServerRole in both worker/manager nodes, they will be deployed and we have to manually stop the proxy service from management node. If we have a capability like defining multiple server roles in artifact.xml file, we can avoid this behavior by having two different ServerRoles for worker and manager and then defining both ServerRoles in the required artifacts and defining only one server role for JMS listener proxy. Thanks, Chanaka -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [IS] - Email account confirmation when creating accounts via UserInformationRecoveryService
Thanks Punnadi! I will go through this. Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Thu, Dec 4, 2014 at 6:02 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Chamila, The content provided in [1] might help you to find the issue. [1] https://wso2.org/jira/browse/DOCUMENTATION-1271 On Thu, Dec 4, 2014 at 12:21 AM, Chamila De Alwis chami...@wso2.com wrote: Hi, I'm trying to implement the above scenario using the Identity Server and a simple Java client. I've enabled the following in the identity-mgt.properties. Identity.Listener.Enable=true Notification.Sending.Enable=true Notification.Expire.Time=7200 Notification.Sending.Internally.Managed=true UserAccount.Verification.Enable=false Authentication.Policy.Enable=true Authentication.Policy.Account.Lock.On.Creation=true Authentication.Policy.Account.Lock.Time=0 Authentication.Policy.Account.Lock.On.Failure=false Authentication.Policy.Account.Lock.On.Failure.Max.Attempts=0 I have the axis2.xml configured with the mailto transportSender as follows. transportSender name=mailto class=org.apache.axis2.transport.mail.MailTransportSender parameter name=mail.smtp.fromwso2demom...@gmail.com /parameter parameter name=mail.smtp.userchtest1/parameter parameter name=mail.smtp.passwordmailpassword/parameter parameter name=mail.smtp.hostsmtp.gmail.com/parameter parameter name=mail.smtp.port587/parameter parameter name=mail.smtp.starttls.enabletrue/parameter parameter name=mail.smtp.authtrue/parameter /transportSender I've attached the Java code that I'm using the register the user. When executing the service call, I get the following error message, which is not descriptive, and there is nothing in the Carbon console except for the log entries related to user entry. This occurs in both IS 5.0.0 and IS 4.5.0. VerificationBean verificationBean = *stub.registerUser(userName, password, claims, null, null);* Result = org.wso2.carbon.identity.mgt.stub.UserInformationRecoveryServiceIdentityMgtServiceExceptionException: UserInformationRecoveryServiceIdentityMgtServiceExceptionException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.Class.newInstance(Class.java:374) at org.wso2.carbon.identity.mgt.stub.UserInformationRecoveryServiceStub.registerUser(UserInformationRecoveryServiceStub.java:685) at org.chamilad.test.is.UserRegistration.main(UserRegistration.java:78) Carbon console === [2014-12-03 22:51:46,868] WARN {org.wso2.carbon.server.admin.module.handler.AuthenticationHandler} - Illegal access attempt at [2014-12-03 22:51:46,0868] from IP address 127.0.0.1 while trying to authenticate access to service UserInformationRecoveryService [2014-12-03 22:51:46,888] DEBUG {org.wso2.carbon.identity.mgt.IdentityMgtEventListener} - Pre authenticator is called in IdentityMgtEventListener [2014-12-03 22:51:46,916] DEBUG {org.wso2.carbon.identity.mgt.IdentityMgtEventListener} - Post authenticator is called in IdentityMgtEventListener [2014-12-03 22:51:46,918] INFO {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} - 'admin@carbon.super [-1234]' logged in at [2014-12-03 22:51:46,918+0530] [2014-12-03 22:51:46,919] DEBUG {org.wso2.carbon.identity.mgt.util.Utils} - Domain is not defined implicitly. So it is Super Tenant domain. [2014-12-03 22:51:46,922] DEBUG {org.wso2.carbon.identity.mgt.IdentityMgtEventListener} - Pre add user is called in IdentityMgtEventListener [2014-12-03 22:51:46,988] DEBUG {org.wso2.carbon.identity.mgt.IdentityMgtEventListener} - Post add user is called in IdentityMgtEventListener I tried debugging the server side code, but for both version 4.2.0 and 4.2.1 of org.wso2.carbon.identity.mgt, the debug pointers point to incorrect locations in the source. So I can't really pinpoint from where the IdentityMgtServiceException comes. However it is possible this might be related to the user store, the default LDAP user store that ships with IS, since the error comes as a UserStoreException as far as I assume. Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list
Re: [Dev] Regex or If Else
Hi Pamod/Chamila, As Pamod mentioned the implementation is already there to resolve matching topics in Moquette. Since Moquette was integrated inside MB I was able to use the same implementation to resolve matching topics. Chamila, the Moquette implementation is using if else with String manipulation techniques. This looks simpler to understand than a Regex since I was having a hard time creating a Regex that matches the MQTT specifications. Thanks, Akalanka On Thu, Dec 4, 2014 at 7:44 AM, Pamod Sylvester pa...@wso2.com wrote: Hi Akalanka, Could we also consider the approach used by the ProtocolProcessor of Moquette ? Where all the subscriptions are kept in a Tree based on their hierarchy and when a message is published, the published topic is split into tokens, and then the tree will be traversed for a match. When a match is found, the message would be sent to the ancestral node and its descendants. It might also be good if we could find a way to point to the functionality Moquette has introduced for cluster wide subscription identification as well. This way if the protocol introduces a different set of wild cards, the change will be reflected from the library itself. WDYT ? Thanks, Pamod On Thu, Dec 4, 2014 at 12:34 AM, Chamila De Alwis chami...@wso2.com wrote: Hi Akalanka, Even though for the multi-level wildcard using if else might be simpler, since the single-level wildcard can appear in several places of the topic name wouldn't it be better to follow the regex approach? Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Wed, Dec 3, 2014 at 2:49 PM, Akalanka Pagoda Arachchi darsha...@wso2.com wrote: Hi all, I am implementing wildcard support for MQTT in WSO2 MB. The MQTT 3.1 Specification [1] provides details about how the wildcards should behave. According to this, to implement this match making I can either use java.lang.String functions and if else conditions or use a regular expression. I believe a regular expression will be a bit more complex to understand and hence prefer to use if else conditions. What will be best way to approach this? [1] - http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718107 Thanks, Akalanka -- *Akalanka Pagoda Arachchi,* *Software Engineer* *078-4721791 078-4721791* ___ 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 -- *Pamod Sylvester * *Senior Software Engineer * Integration Technologies Team, WSO2 Inc.; http://wso2.com email: pa...@wso2.com cell: +94 77 7779495 -- *Darshana Akalanka Pagoda Arachchi,* *Software Engineer* *078-4721791* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Regex or If Else
Hi Akalanka, I went on the same path and used the moquette logic to create a simple string hiearachy processor : http://devnutshell.tumblr.com/post/96378477451/hierarchical-token-matcher-for-strings It's almost the same logic as moquette (but the tree only contains strings, not subscription objects, so manipulation would be faster..). Sharing in case it could help :) On Thu, Dec 4, 2014 at 10:22 AM, Akalanka Pagoda Arachchi darsha...@wso2.com wrote: Hi Pamod/Chamila, As Pamod mentioned the implementation is already there to resolve matching topics in Moquette. Since Moquette was integrated inside MB I was able to use the same implementation to resolve matching topics. Chamila, the Moquette implementation is using if else with String manipulation techniques. This looks simpler to understand than a Regex since I was having a hard time creating a Regex that matches the MQTT specifications. Thanks, Akalanka On Thu, Dec 4, 2014 at 7:44 AM, Pamod Sylvester pa...@wso2.com wrote: Hi Akalanka, Could we also consider the approach used by the ProtocolProcessor of Moquette ? Where all the subscriptions are kept in a Tree based on their hierarchy and when a message is published, the published topic is split into tokens, and then the tree will be traversed for a match. When a match is found, the message would be sent to the ancestral node and its descendants. It might also be good if we could find a way to point to the functionality Moquette has introduced for cluster wide subscription identification as well. This way if the protocol introduces a different set of wild cards, the change will be reflected from the library itself. WDYT ? Thanks, Pamod On Thu, Dec 4, 2014 at 12:34 AM, Chamila De Alwis chami...@wso2.com wrote: Hi Akalanka, Even though for the multi-level wildcard using if else might be simpler, since the single-level wildcard can appear in several places of the topic name wouldn't it be better to follow the regex approach? Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Wed, Dec 3, 2014 at 2:49 PM, Akalanka Pagoda Arachchi darsha...@wso2.com wrote: Hi all, I am implementing wildcard support for MQTT in WSO2 MB. The MQTT 3.1 Specification [1] provides details about how the wildcards should behave. According to this, to implement this match making I can either use java.lang.String functions and if else conditions or use a regular expression. I believe a regular expression will be a bit more complex to understand and hence prefer to use if else conditions. What will be best way to approach this? [1] - http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718107 Thanks, Akalanka -- *Akalanka Pagoda Arachchi,* *Software Engineer* *078-4721791 078-4721791* ___ 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 -- *Pamod Sylvester * *Senior Software Engineer * Integration Technologies Team, WSO2 Inc.; http://wso2.com email: pa...@wso2.com cell: +94 77 7779495 -- *Darshana Akalanka Pagoda Arachchi,* *Software Engineer* *078-4721791* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Cheers, Hasitha Amal De Silva Software Engineer Mobile : 0772037426 Blog: http://devnutshell.tumblr.com/ WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. ) ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Can we define more than one ServerRole in the artifact.xml file of a CAR?
Hi Chanaka, This looks like a valid requirement. May be we could achieve this by defining two different server roles in manager and worker nodes (in carbon.xml file): In management nodes: ServerRoles RoleEnterpriseServiceBusManager/Role /ServerRoles In worker nodes: ServerRoles RoleEnterpriseServiceBusWorker/Role /ServerRoles Afterwards we could define the role EnterpriseServiceBusWorker to all the artifacts that should only be deployed in workers. WDYT? Thanks On Thu, Dec 4, 2014 at 7:53 AM, Chanaka Fernando chana...@wso2.com wrote: Hi, Is it possible to do $subject? Requirement is to deploy the same artifact in 2 different servers with the same CAR file. As an example, when we have a JMS listener proxy in our CAR file and we have a worker/manager separated cluster with dep-sync enabled, once we deploy this CAR file in the manager node, It would be deployed there and synced to the worker node. But in this scenario, we do not need the JMS listener proxy in the management node to listen to the JMS queue. But If we have the same ServerRole in both worker/manager nodes, they will be deployed and we have to manually stop the proxy service from management node. If we have a capability like defining multiple server roles in artifact.xml file, we can avoid this behavior by having two different ServerRoles for worker and manager and then defining both ServerRoles in the required artifacts and defining only one server role for JMS listener proxy. Thanks, Chanaka -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- *Imesh Gunaratne* Technical Lead WSO2 Inc: http://wso2.com T: +94 11 214 5345 M: +94 77 374 2057 W: http://imesh.gunaratne.org Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Regex or If Else
Hi Hasitha, Yes that looks good in performance. Will try to integrate this into Moquette, maybe we can share this with Moquette team so they can include this in their next release. Thanks, Akalanka On Thu, Dec 4, 2014 at 10:31 AM, Hasitha Amal De Silva hasit...@wso2.com wrote: Hi Akalanka, I went on the same path and used the moquette logic to create a simple string hiearachy processor : http://devnutshell.tumblr.com/post/96378477451/hierarchical-token-matcher-for-strings It's almost the same logic as moquette (but the tree only contains strings, not subscription objects, so manipulation would be faster..). Sharing in case it could help :) On Thu, Dec 4, 2014 at 10:22 AM, Akalanka Pagoda Arachchi darsha...@wso2.com wrote: Hi Pamod/Chamila, As Pamod mentioned the implementation is already there to resolve matching topics in Moquette. Since Moquette was integrated inside MB I was able to use the same implementation to resolve matching topics. Chamila, the Moquette implementation is using if else with String manipulation techniques. This looks simpler to understand than a Regex since I was having a hard time creating a Regex that matches the MQTT specifications. Thanks, Akalanka On Thu, Dec 4, 2014 at 7:44 AM, Pamod Sylvester pa...@wso2.com wrote: Hi Akalanka, Could we also consider the approach used by the ProtocolProcessor of Moquette ? Where all the subscriptions are kept in a Tree based on their hierarchy and when a message is published, the published topic is split into tokens, and then the tree will be traversed for a match. When a match is found, the message would be sent to the ancestral node and its descendants. It might also be good if we could find a way to point to the functionality Moquette has introduced for cluster wide subscription identification as well. This way if the protocol introduces a different set of wild cards, the change will be reflected from the library itself. WDYT ? Thanks, Pamod On Thu, Dec 4, 2014 at 12:34 AM, Chamila De Alwis chami...@wso2.com wrote: Hi Akalanka, Even though for the multi-level wildcard using if else might be simpler, since the single-level wildcard can appear in several places of the topic name wouldn't it be better to follow the regex approach? Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Wed, Dec 3, 2014 at 2:49 PM, Akalanka Pagoda Arachchi darsha...@wso2.com wrote: Hi all, I am implementing wildcard support for MQTT in WSO2 MB. The MQTT 3.1 Specification [1] provides details about how the wildcards should behave. According to this, to implement this match making I can either use java.lang.String functions and if else conditions or use a regular expression. I believe a regular expression will be a bit more complex to understand and hence prefer to use if else conditions. What will be best way to approach this? [1] - http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718107 Thanks, Akalanka -- *Akalanka Pagoda Arachchi,* *Software Engineer* *078-4721791 078-4721791* ___ 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 -- *Pamod Sylvester * *Senior Software Engineer * Integration Technologies Team, WSO2 Inc.; http://wso2.com email: pa...@wso2.com cell: +94 77 7779495 -- *Darshana Akalanka Pagoda Arachchi,* *Software Engineer* *078-4721791* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Cheers, Hasitha Amal De Silva Software Engineer Mobile : 0772037426 Blog: http://devnutshell.tumblr.com/ WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. ) -- *Darshana Akalanka Pagoda Arachchi,* *Software Engineer* *078-4721791* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How to resolve SVN errors of worker nodes at server startup
Updated the note for API-M [1] and ESB [2] to include instructions to restart the server once again. [1] - https://docs.wso2.com/display/CLUSTER420/Clustering+the+Gateway [2] - https://docs.wso2.com/display/CLUSTER420/Clustering+ESB *Samuel Gnaniah* Senior Technical Writer WSO2 (pvt.) Ltd. Colombo, Sri Lanka (+94) 773131798 On Wed, Dec 3, 2014 at 12:03 PM, Evanthika Amarasiri evanth...@wso2.com wrote: This note is applicable for products like AS/BPS/etc. But for products like API-M ESB, the first time you restart the server after cleaning the *server* folder will throw the exception - '*The synapse.xml location ././repository/deployment/server/synapse-configs/default doesn't exist*'. So to resolve that, you have to restart the server once again. We need to find a proper solution for that. Regards, Evanthika Amarasiri Senior Technical Lead - Quality Assurance Mobile: +94773125935 Blog: evanthika.blogspot.com wso2.com lean.enterprise.middleware On Wed, Dec 3, 2014 at 11:53 AM, Samuel Gnaniah sam...@wso2.com wrote: Added a small note on this in [1], [2] and [3]. Thanks for bringing this up! [1] - https://docs.wso2.com/display/CLUSTER420/Configuring+the+Worker+Node [2] - https://docs.wso2.com/display/CLUSTER420/Clustering+WSO2+Products+without+WSO2+ELB [3] - https://docs.wso2.com/display/CLUSTER420/Clustering+the+Gateway Thanks, Sam *Samuel Gnaniah* Senior Technical Writer WSO2 (pvt.) Ltd. Colombo, Sri Lanka (+94) 773131798 On Wed, Dec 3, 2014 at 11:35 AM, Evanthika Amarasiri evanth...@wso2.com wrote: Yes. This is only for worker nodes. Regards, Evanthika On Wed, Dec 3, 2014 at 9:39 AM, Samuel Gnaniah sam...@wso2.com wrote: Just to confirm, are we recommending this only in the worker nodes? *Samuel Gnaniah* Senior Technical Writer WSO2 (pvt.) Ltd. Colombo, Sri Lanka (+94) 773131798 On Wed, Dec 3, 2014 at 8:34 AM, Sameera Jayasoma same...@wso2.com wrote: Even for Carbon 4.3.0 testing, we followed the same method. We will try to fix these errors during the AS 6.0.0 release. But for 4.2.0 based products, lets document this step. Thanks, Sameera. On Wed, Dec 3, 2014 at 7:47 AM, Evanthika Amarasiri evanth...@wso2.com wrote: Yes Sameera, I got this continuously on API-M worker nodes yesterday. So, after this SVN error, I see another exception with regard to service initialisation due to a missing module as below. So I suppose there are can be functionality breaks once you get this svn issue. Anyhow, throwing such ERRORs at startup is not right. So if these are harmless errors we can make them warnings instead without printing a whole stack trace like this? However, in this case, what I feel is that there can be functionality issues. I will investigate on this further. Also, if this is what we recommend to users (removing the content inside the server folder before starting worker nodes), shall we add this to our documentation? TID: [0] [AM] [2014-12-02 06:30:15,390] ERROR {org.wso2.carbon.core.persistence.AbstractPersistenceManager} - Unable to handle service initialization. Service: WSRegistryService {org.wso2.carbon.core.persistence.AbstractPersistenceManager} org.wso2.carbon.CarbonException: *Axis Module not found for : addressing-4.2.0* at org.wso2.carbon.core.persistence.AbstractPersistenceManager.getExistingAxisModule(AbstractPersistenceManager.java:583) at org.wso2.carbon.core.persistence.ServicePersistenceManager.handleExistingServiceInit(ServicePersistenceManager.java:469) at org.wso2.carbon.core.persistence.file.deployer.PersistenceMetaDataDeployer.deploy(PersistenceMetaDataDeployer.java:96) at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254) at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371) at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59) at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67) at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:79) at org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:124) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at
Re: [Dev] Can we define more than one ServerRole in the artifact.xml file of a CAR?
Hi Chanaka, I think we may able to achieve your this particular requirement using the pinned server concept. IMO we should not make differences to artifact deployment in worker nodes vs manager node. If we do that, we won't be able to clearly see what is actually deployed in workers by looking at the manager node. It will add an extra overhead when it comes to troubleshooting. So deployment wise all the artifacts should be identical and we need some other mechanism to prevent execution in the manager. Thanks. On Thu, Dec 4, 2014 at 10:51 AM, Imesh Gunaratne im...@wso2.com wrote: Hi Chanaka, This looks like a valid requirement. May be we could achieve this by defining two different server roles in manager and worker nodes (in carbon.xml file): In management nodes: ServerRoles RoleEnterpriseServiceBusManager/Role /ServerRoles In worker nodes: ServerRoles RoleEnterpriseServiceBusWorker/Role /ServerRoles Afterwards we could define the role EnterpriseServiceBusWorker to all the artifacts that should only be deployed in workers. WDYT? Thanks On Thu, Dec 4, 2014 at 7:53 AM, Chanaka Fernando chana...@wso2.com wrote: Hi, Is it possible to do $subject? Requirement is to deploy the same artifact in 2 different servers with the same CAR file. As an example, when we have a JMS listener proxy in our CAR file and we have a worker/manager separated cluster with dep-sync enabled, once we deploy this CAR file in the manager node, It would be deployed there and synced to the worker node. But in this scenario, we do not need the JMS listener proxy in the management node to listen to the JMS queue. But If we have the same ServerRole in both worker/manager nodes, they will be deployed and we have to manually stop the proxy service from management node. If we have a capability like defining multiple server roles in artifact.xml file, we can avoid this behavior by having two different ServerRoles for worker and manager and then defining both ServerRoles in the required artifacts and defining only one server role for JMS listener proxy. Thanks, Chanaka -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- *Imesh Gunaratne* Technical Lead WSO2 Inc: http://wso2.com T: +94 11 214 5345 M: +94 77 374 2057 W: http://imesh.gunaratne.org Lean . Enterprise . Middleware -- *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
Re: [Dev] Can we define more than one ServerRole in the artifact.xml file of a CAR?
Hi Isuru, I agree with what you are saying. We need to have the same artifacts deployed in both worker and manager nodes. This is a requirement which came with the JMS listener proxy use case. I think the best solution for this kind of scenario would be to use the management node as both worker/manager profile. That would make sure that it will serve the requests as well as capable of doing the management tasks. WDYT? Thanks, Chanaka On Thu, Dec 4, 2014 at 11:33 AM, Isuru Udana isu...@wso2.com wrote: Hi Chanaka, I think we may able to achieve your this particular requirement using the pinned server concept. IMO we should not make differences to artifact deployment in worker nodes vs manager node. If we do that, we won't be able to clearly see what is actually deployed in workers by looking at the manager node. It will add an extra overhead when it comes to troubleshooting. So deployment wise all the artifacts should be identical and we need some other mechanism to prevent execution in the manager. Thanks. On Thu, Dec 4, 2014 at 10:51 AM, Imesh Gunaratne im...@wso2.com wrote: Hi Chanaka, This looks like a valid requirement. May be we could achieve this by defining two different server roles in manager and worker nodes (in carbon.xml file): In management nodes: ServerRoles RoleEnterpriseServiceBusManager/Role /ServerRoles In worker nodes: ServerRoles RoleEnterpriseServiceBusWorker/Role /ServerRoles Afterwards we could define the role EnterpriseServiceBusWorker to all the artifacts that should only be deployed in workers. WDYT? Thanks On Thu, Dec 4, 2014 at 7:53 AM, Chanaka Fernando chana...@wso2.com wrote: Hi, Is it possible to do $subject? Requirement is to deploy the same artifact in 2 different servers with the same CAR file. As an example, when we have a JMS listener proxy in our CAR file and we have a worker/manager separated cluster with dep-sync enabled, once we deploy this CAR file in the manager node, It would be deployed there and synced to the worker node. But in this scenario, we do not need the JMS listener proxy in the management node to listen to the JMS queue. But If we have the same ServerRole in both worker/manager nodes, they will be deployed and we have to manually stop the proxy service from management node. If we have a capability like defining multiple server roles in artifact.xml file, we can avoid this behavior by having two different ServerRoles for worker and manager and then defining both ServerRoles in the required artifacts and defining only one server role for JMS listener proxy. Thanks, Chanaka -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- *Imesh Gunaratne* Technical Lead WSO2 Inc: http://wso2.com T: +94 11 214 5345 M: +94 77 374 2057 W: http://imesh.gunaratne.org Lean . Enterprise . Middleware -- *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 -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Can we define more than one ServerRole in the artifact.xml file of a CAR?
The ServerRole is not designed for distinguish workers/manager, rather distinguish product behaviors (ESB, GReg etc.). And architecturally pinned servers is also not a suitable approach too(but that's the workaround that we have at the moment). Each artifacts needs to have the intelligence to determine whether it should run on worker or manager (or even on all workers or selected workers). In ESB 4.9, the polling inbound endpoints for JMS/VFS has that capability. On Thu, Dec 4, 2014 at 11:41 AM, Chanaka Fernando chana...@wso2.com wrote: Hi Isuru, I agree with what you are saying. We need to have the same artifacts deployed in both worker and manager nodes. This is a requirement which came with the JMS listener proxy use case. I think the best solution for this kind of scenario would be to use the management node as both worker/manager profile. That would make sure that it will serve the requests as well as capable of doing the management tasks. WDYT? Thanks, Chanaka On Thu, Dec 4, 2014 at 11:33 AM, Isuru Udana isu...@wso2.com wrote: Hi Chanaka, I think we may able to achieve your this particular requirement using the pinned server concept. IMO we should not make differences to artifact deployment in worker nodes vs manager node. If we do that, we won't be able to clearly see what is actually deployed in workers by looking at the manager node. It will add an extra overhead when it comes to troubleshooting. So deployment wise all the artifacts should be identical and we need some other mechanism to prevent execution in the manager. Thanks. On Thu, Dec 4, 2014 at 10:51 AM, Imesh Gunaratne im...@wso2.com wrote: Hi Chanaka, This looks like a valid requirement. May be we could achieve this by defining two different server roles in manager and worker nodes (in carbon.xml file): In management nodes: ServerRoles RoleEnterpriseServiceBusManager/Role /ServerRoles In worker nodes: ServerRoles RoleEnterpriseServiceBusWorker/Role /ServerRoles Afterwards we could define the role EnterpriseServiceBusWorker to all the artifacts that should only be deployed in workers. WDYT? Thanks On Thu, Dec 4, 2014 at 7:53 AM, Chanaka Fernando chana...@wso2.com wrote: Hi, Is it possible to do $subject? Requirement is to deploy the same artifact in 2 different servers with the same CAR file. As an example, when we have a JMS listener proxy in our CAR file and we have a worker/manager separated cluster with dep-sync enabled, once we deploy this CAR file in the manager node, It would be deployed there and synced to the worker node. But in this scenario, we do not need the JMS listener proxy in the management node to listen to the JMS queue. But If we have the same ServerRole in both worker/manager nodes, they will be deployed and we have to manually stop the proxy service from management node. If we have a capability like defining multiple server roles in artifact.xml file, we can avoid this behavior by having two different ServerRoles for worker and manager and then defining both ServerRoles in the required artifacts and defining only one server role for JMS listener proxy. Thanks, Chanaka -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- *Imesh Gunaratne* Technical Lead WSO2 Inc: http://wso2.com T: +94 11 214 5345 M: +94 77 374 2057 W: http://imesh.gunaratne.org Lean . Enterprise . Middleware -- *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 -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- Kasun Indrasiri Software Architect WSO2, Inc.; http://wso2.com lean.enterprise.middleware cell: +94 77 556 5206 Blog : http://kasunpanorama.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Integration tests for ML Product
Hi Supun, As we discussed offline best way to automate is using UI tests (Selenium) You can refer document at [1] to understand how to add UI modules to your products. Tests at [2] can be refer as samples. You can follow any UI automation strategy convenient to you. Thanks, Krishantha. [1] http://wso2.com/library/articles/2014/10/article-introducing-ui-tests-for-wso2-products/ [2] https://github.com/wso2-dev/product-mb/tree/master/modules/integration/tests-ui-integration On Wed, Dec 3, 2014 at 11:52 AM, Supun Sethunga sup...@wso2.com wrote: Hi Krishantha, We are in the process of writing integration tests for the ML product. The basic structure of the product is that, there is a set of OSGI services, and these services are directly called from the UI (which is a Jaggery app). When I look at the Integration test written for other products, all the services have being called by the test cases through their stubs. But in our case we don't have stubs for the OSGI services. What is the preferred way of testing these services without stubs? Is there a sample code I can refer to? Thanks, Supun -- *Supun Sethunga* Software Engineer WSO2, Inc. lean | enterprise | middleware Mobile : +94 716546324 -- 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] Can we define more than one ServerRole in the artifact.xml file of a CAR?
On Thu, Dec 4, 2014 at 11:41 AM, Chanaka Fernando chana...@wso2.com wrote: Hi Isuru, I agree with what you are saying. We need to have the same artifacts deployed in both worker and manager nodes. This is a requirement which came with the JMS listener proxy use case. I think the best solution for this kind of scenario would be to use the management node as both worker/manager profile. That would make sure that it will serve the requests as well as capable of doing the management tasks. +1. This might be the best solution we have with 4.8.1. WDYT? Thanks, Chanaka On Thu, Dec 4, 2014 at 11:33 AM, Isuru Udana isu...@wso2.com wrote: Hi Chanaka, I think we may able to achieve your this particular requirement using the pinned server concept. IMO we should not make differences to artifact deployment in worker nodes vs manager node. If we do that, we won't be able to clearly see what is actually deployed in workers by looking at the manager node. It will add an extra overhead when it comes to troubleshooting. So deployment wise all the artifacts should be identical and we need some other mechanism to prevent execution in the manager. Thanks. On Thu, Dec 4, 2014 at 10:51 AM, Imesh Gunaratne im...@wso2.com wrote: Hi Chanaka, This looks like a valid requirement. May be we could achieve this by defining two different server roles in manager and worker nodes (in carbon.xml file): In management nodes: ServerRoles RoleEnterpriseServiceBusManager/Role /ServerRoles In worker nodes: ServerRoles RoleEnterpriseServiceBusWorker/Role /ServerRoles Afterwards we could define the role EnterpriseServiceBusWorker to all the artifacts that should only be deployed in workers. WDYT? Thanks On Thu, Dec 4, 2014 at 7:53 AM, Chanaka Fernando chana...@wso2.com wrote: Hi, Is it possible to do $subject? Requirement is to deploy the same artifact in 2 different servers with the same CAR file. As an example, when we have a JMS listener proxy in our CAR file and we have a worker/manager separated cluster with dep-sync enabled, once we deploy this CAR file in the manager node, It would be deployed there and synced to the worker node. But in this scenario, we do not need the JMS listener proxy in the management node to listen to the JMS queue. But If we have the same ServerRole in both worker/manager nodes, they will be deployed and we have to manually stop the proxy service from management node. If we have a capability like defining multiple server roles in artifact.xml file, we can avoid this behavior by having two different ServerRoles for worker and manager and then defining both ServerRoles in the required artifacts and defining only one server role for JMS listener proxy. Thanks, Chanaka -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- *Imesh Gunaratne* Technical Lead WSO2 Inc: http://wso2.com T: +94 11 214 5345 M: +94 77 374 2057 W: http://imesh.gunaratne.org Lean . Enterprise . Middleware -- *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 -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- *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
Re: [Dev] [IS] - Email account confirmation when creating accounts via UserInformationRecoveryService
Hi, I forgot to mention that when the exception is thrown, the user is already added to the userstore. The user is listed in the users list in the Carbon console. But the email is not sent. Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Thu, Dec 4, 2014 at 9:06 AM, Chamila De Alwis chami...@wso2.com wrote: Hi Danushka, I'm providing the admin user credentials using the Authenticator. What do I have to do additionally? Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Thu, Dec 4, 2014 at 6:37 AM, Danushka Fernando danush...@wso2.com wrote: Hi Chamila This is an admin service. So you need some admin permissions to call this service. Check the services.xml of the component. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Thu, Dec 4, 2014 at 12:21 AM, Chamila De Alwis chami...@wso2.com wrote: Hi, I'm trying to implement the above scenario using the Identity Server and a simple Java client. I've enabled the following in the identity-mgt.properties. Identity.Listener.Enable=true Notification.Sending.Enable=true Notification.Expire.Time=7200 Notification.Sending.Internally.Managed=true UserAccount.Verification.Enable=false Authentication.Policy.Enable=true Authentication.Policy.Account.Lock.On.Creation=true Authentication.Policy.Account.Lock.Time=0 Authentication.Policy.Account.Lock.On.Failure=false Authentication.Policy.Account.Lock.On.Failure.Max.Attempts=0 I have the axis2.xml configured with the mailto transportSender as follows. transportSender name=mailto class=org.apache.axis2.transport.mail.MailTransportSender parameter name=mail.smtp.fromwso2demom...@gmail.com /parameter parameter name=mail.smtp.userchtest1/parameter parameter name=mail.smtp.passwordmailpassword/parameter parameter name=mail.smtp.hostsmtp.gmail.com/parameter parameter name=mail.smtp.port587/parameter parameter name=mail.smtp.starttls.enabletrue/parameter parameter name=mail.smtp.authtrue/parameter /transportSender I've attached the Java code that I'm using the register the user. When executing the service call, I get the following error message, which is not descriptive, and there is nothing in the Carbon console except for the log entries related to user entry. This occurs in both IS 5.0.0 and IS 4.5.0. VerificationBean verificationBean = *stub.registerUser(userName, password, claims, null, null);* Result = org.wso2.carbon.identity.mgt.stub.UserInformationRecoveryServiceIdentityMgtServiceExceptionException: UserInformationRecoveryServiceIdentityMgtServiceExceptionException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.Class.newInstance(Class.java:374) at org.wso2.carbon.identity.mgt.stub.UserInformationRecoveryServiceStub.registerUser(UserInformationRecoveryServiceStub.java:685) at org.chamilad.test.is.UserRegistration.main(UserRegistration.java:78) Carbon console === [2014-12-03 22:51:46,868] WARN {org.wso2.carbon.server.admin.module.handler.AuthenticationHandler} - Illegal access attempt at [2014-12-03 22:51:46,0868] from IP address 127.0.0.1 while trying to authenticate access to service UserInformationRecoveryService [2014-12-03 22:51:46,888] DEBUG {org.wso2.carbon.identity.mgt.IdentityMgtEventListener} - Pre authenticator is called in IdentityMgtEventListener [2014-12-03 22:51:46,916] DEBUG {org.wso2.carbon.identity.mgt.IdentityMgtEventListener} - Post authenticator is called in IdentityMgtEventListener [2014-12-03 22:51:46,918] INFO {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} - 'admin@carbon.super [-1234]' logged in at [2014-12-03 22:51:46,918+0530] [2014-12-03 22:51:46,919] DEBUG {org.wso2.carbon.identity.mgt.util.Utils} - Domain is not defined implicitly. So it is Super Tenant domain. [2014-12-03 22:51:46,922] DEBUG {org.wso2.carbon.identity.mgt.IdentityMgtEventListener} - Pre add user is called in IdentityMgtEventListener [2014-12-03 22:51:46,988] DEBUG {org.wso2.carbon.identity.mgt.IdentityMgtEventListener} - Post add user is called in IdentityMgtEventListener I tried debugging the server side code, but for both version 4.2.0 and 4.2.1 of org.wso2.carbon.identity.mgt, the debug pointers point to incorrect locations in the source. So I can't really pinpoint from where the IdentityMgtServiceException comes. However it is possible this might be related to the user store, the default LDAP user store that ships with IS, since the error comes as a
Re: [Dev] Can we define more than one ServerRole in the artifact.xml file of a CAR?
Hi Isuru, If we take the JMS listener proxy scenario with a worker/manager concept, user need to view whether this artifact is deployed in the worker node by looking at the manager node. In the meantime, he needs that JMS listener proxy only runs on the worker node but not it the management node. Pinned server approach is not possible in this scenario since that particular artifact is not shown in the management node if we do not add that node as a pinned server. I think only possibility is to use the manager node as both worker/manager and keep the other nodes as workers. WDYT? Thanks, Chanaka On Thu, Dec 4, 2014 at 11:47 AM, Isuru Udana isu...@wso2.com wrote: On Thu, Dec 4, 2014 at 11:41 AM, Chanaka Fernando chana...@wso2.com wrote: Hi Isuru, I agree with what you are saying. We need to have the same artifacts deployed in both worker and manager nodes. This is a requirement which came with the JMS listener proxy use case. I think the best solution for this kind of scenario would be to use the management node as both worker/manager profile. That would make sure that it will serve the requests as well as capable of doing the management tasks. +1. This might be the best solution we have with 4.8.1. WDYT? Thanks, Chanaka On Thu, Dec 4, 2014 at 11:33 AM, Isuru Udana isu...@wso2.com wrote: Hi Chanaka, I think we may able to achieve your this particular requirement using the pinned server concept. IMO we should not make differences to artifact deployment in worker nodes vs manager node. If we do that, we won't be able to clearly see what is actually deployed in workers by looking at the manager node. It will add an extra overhead when it comes to troubleshooting. So deployment wise all the artifacts should be identical and we need some other mechanism to prevent execution in the manager. Thanks. On Thu, Dec 4, 2014 at 10:51 AM, Imesh Gunaratne im...@wso2.com wrote: Hi Chanaka, This looks like a valid requirement. May be we could achieve this by defining two different server roles in manager and worker nodes (in carbon.xml file): In management nodes: ServerRoles RoleEnterpriseServiceBusManager/Role /ServerRoles In worker nodes: ServerRoles RoleEnterpriseServiceBusWorker/Role /ServerRoles Afterwards we could define the role EnterpriseServiceBusWorker to all the artifacts that should only be deployed in workers. WDYT? Thanks On Thu, Dec 4, 2014 at 7:53 AM, Chanaka Fernando chana...@wso2.com wrote: Hi, Is it possible to do $subject? Requirement is to deploy the same artifact in 2 different servers with the same CAR file. As an example, when we have a JMS listener proxy in our CAR file and we have a worker/manager separated cluster with dep-sync enabled, once we deploy this CAR file in the manager node, It would be deployed there and synced to the worker node. But in this scenario, we do not need the JMS listener proxy in the management node to listen to the JMS queue. But If we have the same ServerRole in both worker/manager nodes, they will be deployed and we have to manually stop the proxy service from management node. If we have a capability like defining multiple server roles in artifact.xml file, we can avoid this behavior by having two different ServerRoles for worker and manager and then defining both ServerRoles in the required artifacts and defining only one server role for JMS listener proxy. Thanks, Chanaka -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- *Imesh Gunaratne* Technical Lead WSO2 Inc: http://wso2.com T: +94 11 214 5345 M: +94 77 374 2057 W: http://imesh.gunaratne.org Lean . Enterprise . Middleware -- *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 -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- *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 -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya
[Dev] APIM _RC1 pack
Hi; Please find the pack here https://svn.wso2.org/repos/wso2/scratch/chunk13-release/APIM-180_RC1/ Thanks. -- -Ratha ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [IS] - Email account confirmation when creating accounts via UserInformationRecoveryService
To add to the earlier email, passwordTimestamp claim already has a value mapped, to nickName. I tried mapping givenName as the attribute, but I'm still getting the above error from the user store. The wrapping error message is as follows. *org.wso2.carbon.identity.base.IdentityException: Error while persisting identity user data in to user store* *org.wso2.carbon.user.core.UserStoreException: One or more attributes you are trying to add/update are not supported by underlying LDAP.* *javax.naming.directory.NoSuchAttributeException: [LDAP: error code 16 - NO_SUCH_ATTRIBUTE: failed for Modify Request* *Object : 'uid=chamilad,ou=Users,dc=wso2,dc=org'* *Modification[0]* *Operation : replace* *Modification* *http://wso2.org/claims/identity/passwordTimestamp http://wso2.org/claims/identity/passwordTimestamp: 1417676868397* *Modification[1]* *Operation : replace* *Modification* *initials: true* *: ERR_04269 ATTRIBUTE_TYPE for OID http://wso2.org/claims/identity/passwordtimestamp http://wso2.org/claims/identity/passwordtimestamp does not exist!]; remaining name 'uid=chamilad'* Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Thu, Dec 4, 2014 at 12:35 PM, Chamila De Alwis chami...@wso2.com wrote: Hi, I was able to pinpoint the exact error message that comes from the service. *ERR_04269 ATTRIBUTE_TYPE for OID http://wso2.org/claims/identity/passwordtimestamp http://wso2.org/claims/identity/passwordtimestamp does not exist!]; remaining name 'uid=chamilad'* What is the attribute to which I should map this claim? IS 4.5.0 documentation mentions this claim[1], but it doesn't specify which attribute I should map in the case of the internal LDAP user store. IS 5.0.0 documentation doesn't have an entry for account confirmation that I can find. [1] - https://docs.wso2.com/display/IS450/Self+Sign+Up+and+Account+Confirmation Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Thu, Dec 4, 2014 at 12:02 PM, Chamila De Alwis chami...@wso2.com wrote: Hi, I forgot to mention that when the exception is thrown, the user is already added to the userstore. The user is listed in the users list in the Carbon console. But the email is not sent. Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Thu, Dec 4, 2014 at 9:06 AM, Chamila De Alwis chami...@wso2.com wrote: Hi Danushka, I'm providing the admin user credentials using the Authenticator. What do I have to do additionally? Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Thu, Dec 4, 2014 at 6:37 AM, Danushka Fernando danush...@wso2.com wrote: Hi Chamila This is an admin service. So you need some admin permissions to call this service. Check the services.xml of the component. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Thu, Dec 4, 2014 at 12:21 AM, Chamila De Alwis chami...@wso2.com wrote: Hi, I'm trying to implement the above scenario using the Identity Server and a simple Java client. I've enabled the following in the identity-mgt.properties. Identity.Listener.Enable=true Notification.Sending.Enable=true Notification.Expire.Time=7200 Notification.Sending.Internally.Managed=true UserAccount.Verification.Enable=false Authentication.Policy.Enable=true Authentication.Policy.Account.Lock.On.Creation=true Authentication.Policy.Account.Lock.Time=0 Authentication.Policy.Account.Lock.On.Failure=false Authentication.Policy.Account.Lock.On.Failure.Max.Attempts=0 I have the axis2.xml configured with the mailto transportSender as follows. transportSender name=mailto class=org.apache.axis2.transport.mail.MailTransportSender parameter name=mail.smtp.fromwso2demom...@gmail.com /parameter parameter name=mail.smtp.userchtest1/parameter parameter name=mail.smtp.passwordmailpassword/parameter parameter name=mail.smtp.hostsmtp.gmail.com/parameter parameter name=mail.smtp.port587/parameter parameter name=mail.smtp.starttls.enabletrue/parameter parameter name=mail.smtp.authtrue/parameter /transportSender I've attached the Java code that I'm using the register the user. When executing the service call, I get the following error message, which is not descriptive, and there is nothing in the Carbon console except for the log entries related to user entry. This occurs in both IS 5.0.0 and IS 4.5.0. VerificationBean verificationBean = *stub.registerUser(userName, password, claims, null, null);* Result = org.wso2.carbon.identity.mgt.stub.UserInformationRecoveryServiceIdentityMgtServiceExceptionException:
Re: [Dev] Can we define more than one ServerRole in the artifact.xml file of a CAR?
+1 for Chanaka's suggestion if that possibility is there to have one node with both worker/manager roles. Regards, Dilan. *Dilan U. Ariyaratne* Software Engineer WSO2 Inc. http://wso2.com/ Mobile: +94775149066 lean . enterprise . middleware On Thu, Dec 4, 2014 at 12:05 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Isuru, If we take the JMS listener proxy scenario with a worker/manager concept, user need to view whether this artifact is deployed in the worker node by looking at the manager node. In the meantime, he needs that JMS listener proxy only runs on the worker node but not it the management node. Pinned server approach is not possible in this scenario since that particular artifact is not shown in the management node if we do not add that node as a pinned server. I think only possibility is to use the manager node as both worker/manager and keep the other nodes as workers. WDYT? Thanks, Chanaka On Thu, Dec 4, 2014 at 11:47 AM, Isuru Udana isu...@wso2.com wrote: On Thu, Dec 4, 2014 at 11:41 AM, Chanaka Fernando chana...@wso2.com wrote: Hi Isuru, I agree with what you are saying. We need to have the same artifacts deployed in both worker and manager nodes. This is a requirement which came with the JMS listener proxy use case. I think the best solution for this kind of scenario would be to use the management node as both worker/manager profile. That would make sure that it will serve the requests as well as capable of doing the management tasks. +1. This might be the best solution we have with 4.8.1. WDYT? Thanks, Chanaka On Thu, Dec 4, 2014 at 11:33 AM, Isuru Udana isu...@wso2.com wrote: Hi Chanaka, I think we may able to achieve your this particular requirement using the pinned server concept. IMO we should not make differences to artifact deployment in worker nodes vs manager node. If we do that, we won't be able to clearly see what is actually deployed in workers by looking at the manager node. It will add an extra overhead when it comes to troubleshooting. So deployment wise all the artifacts should be identical and we need some other mechanism to prevent execution in the manager. Thanks. On Thu, Dec 4, 2014 at 10:51 AM, Imesh Gunaratne im...@wso2.com wrote: Hi Chanaka, This looks like a valid requirement. May be we could achieve this by defining two different server roles in manager and worker nodes (in carbon.xml file): In management nodes: ServerRoles RoleEnterpriseServiceBusManager/Role /ServerRoles In worker nodes: ServerRoles RoleEnterpriseServiceBusWorker/Role /ServerRoles Afterwards we could define the role EnterpriseServiceBusWorker to all the artifacts that should only be deployed in workers. WDYT? Thanks On Thu, Dec 4, 2014 at 7:53 AM, Chanaka Fernando chana...@wso2.com wrote: Hi, Is it possible to do $subject? Requirement is to deploy the same artifact in 2 different servers with the same CAR file. As an example, when we have a JMS listener proxy in our CAR file and we have a worker/manager separated cluster with dep-sync enabled, once we deploy this CAR file in the manager node, It would be deployed there and synced to the worker node. But in this scenario, we do not need the JMS listener proxy in the management node to listen to the JMS queue. But If we have the same ServerRole in both worker/manager nodes, they will be deployed and we have to manually stop the proxy service from management node. If we have a capability like defining multiple server roles in artifact.xml file, we can avoid this behavior by having two different ServerRoles for worker and manager and then defining both ServerRoles in the required artifacts and defining only one server role for JMS listener proxy. Thanks, Chanaka -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- *Imesh Gunaratne* Technical Lead WSO2 Inc: http://wso2.com T: +94 11 214 5345 M: +94 77 374 2057 W: http://imesh.gunaratne.org Lean . Enterprise . Middleware -- *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 -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- *Isuru Udana* Senior *Software Engineer* WSO2 Inc.; http://wso2.com email: isu...@wso2.com cell: +94 77 3791887 blog:
Re: [Dev] Integration tests for ML Product
Hi Krishantha, Thanks, I will follow the two links. Regards, Supun On Thu, Dec 4, 2014 at 11:47 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Supun, As we discussed offline best way to automate is using UI tests (Selenium) You can refer document at [1] to understand how to add UI modules to your products. Tests at [2] can be refer as samples. You can follow any UI automation strategy convenient to you. Thanks, Krishantha. [1] http://wso2.com/library/articles/2014/10/article-introducing-ui-tests-for-wso2-products/ [2] https://github.com/wso2-dev/product-mb/tree/master/modules/integration/tests-ui-integration On Wed, Dec 3, 2014 at 11:52 AM, Supun Sethunga sup...@wso2.com wrote: Hi Krishantha, We are in the process of writing integration tests for the ML product. The basic structure of the product is that, there is a set of OSGI services, and these services are directly called from the UI (which is a Jaggery app). When I look at the Integration test written for other products, all the services have being called by the test cases through their stubs. But in our case we don't have stubs for the OSGI services. What is the preferred way of testing these services without stubs? Is there a sample code I can refer to? Thanks, Supun -- *Supun Sethunga* Software Engineer WSO2, Inc. lean | enterprise | middleware Mobile : +94 716546324 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- *Supun Sethunga* Software Engineer WSO2, Inc. lean | enterprise | middleware Mobile : +94 716546324 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev