Re: [Dev] [ESB] API resource mis-match handler

2015-04-24 Thread Isuru Udana
Hi Akila,

On Fri, Apr 24, 2015 at 11:55 AM, Akila Ravihansa Perera raviha...@wso2.com
 wrote:

 Hi,

 I'm trying to configure the _resource_mismatch_handler_ in ESB. I noticed
 that it gets triggered only when there is a mis-match for a resource in an
 already existing API context. It doesn't get triggered if a request is sent
 for a non-existing API context.

 Is this the expected behavior?

Yes. Synapse identify the api using the api context (not from API name). So
if the context is not matched, then it means there is no api to handle that
request and it is getting dispatched to the main sequence.

 Is there any way to configure the mis-match handler for a non-existing API
 context?

No. From the name itself gives the idea of this sequence is for mismatching
resources.
However you many configure the main sequence logic to handle these type of
requests.


 Thanks.

 --
 Akila Ravihansa Perera
 Software Engineer, WSO2

 Blog: http://ravihansa3000.blogspot.com




-- 
*Isuru Udana*
Associate Technical Lead
WSO2 Inc.; http://wso2.com
email: isu...@wso2.com cell: +94 77 3791887
blog: http://mytecheye.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] VFS Inbound Testing Scenario

2015-04-24 Thread Malaka Silva
Hi Shakira,

Further Check [1]

[1] https://wso2.org/jira/browse/BPS-346

On Fri, Apr 24, 2015 at 11:44 AM, Malaka Silva mal...@wso2.com wrote:

 Hi Shakila,

 Is seems like a warning given by dep-sync. However do you get the
 artifacts gets deployed to worker nodes?

 How many worker nodes did you configure?

 On Fri, Apr 24, 2015 at 11:13 AM, Shakila Sivagnanarajah shak...@wso2.com
  wrote:

 Hi all,

 I am doing the ESB task to test the VFS Inbound.
 I went through some portion of Carbon-Mediation code related to VFS and
 tested VFS file transfer functionality with Smooks mediator (Synapse Sample
 654) so far.

 From this testing, I got an idea of Smooks mediator and practically
 tested one of the use cases of VFS inbound.

 I have set up ESB worker/manager cluster without ELB. For this I referred
 document [1] and used Ngnix Load Balancer. And I used the ESB pack got from
 [2].

 [1]
 https://docs.google.com/a/wso2.com/document/d/1x80QfnBW09keGVYOi3MLruckXbIVp45vOj9deyF0l5I/edit?usp=sharing

 [2]
 https://svn.wso2.org/repos/wso2/people/ishan/dist/esb/4.9.0/wso2esb-4.9.0-M7.zip

 *Issues:*

- When I start Worker 1, I am getting the exception *Can't find a svn
action for svn output line : Updating 'repository/deployment/server'*
see in log [3].

 [3]

 [2015-04-24 10:15:56,155]  INFO - MemberUtils Added member: Host:
 mgt.esb.wso2.com, Remote Host:null, Port: 4100, HTTP:-1, HTTPS:-1,
 Domain: null, Sub-domain:null, Active:true
 [2015-04-24 10:16:04,676]  INFO - HazelcastClusteringAgent Hazelcast
 initialized in 8519ms
 [2015-04-24 10:16:04,696]  INFO - MemberUtils Added member:
 Host:10.100.5.171, Remote Host:null, Port: 4100, HTTP:8281, HTTPS:8244,
 Domain: wso2.esb.domain, Sub-domain:__$default, Active:true
 [2015-04-24 10:16:04,696]  INFO - HazelcastClusteringAgent Local member:
 [d795d8a2-f6da-491a-ad5f-fe2cfa82f950] - Host:10.100.5.171, Remote
 Host:null, Port: 4200, HTTP:8282, HTTPS:8245, Domain: wso2.esb.domain,
 Sub-domain:null, Active:true
 [2015-04-24 10:16:04,704]  INFO - MemberUtils Added member:
 Host:10.100.5.171, Remote Host:null, Port: 4200, HTTP:8282, HTTPS:8245,
 Domain: wso2.esb.domain, Sub-domain:__$default, Active:true
 [2015-04-24 10:16:04,960]  INFO - HazelcastClusteringAgent Cluster
 initialization completed
 [2015-04-24 10:16:04,968]  INFO - NioSelectorPool Using a shared selector
 for servlet write/read
 [2015-04-24 10:16:05,400]  INFO - NioSelectorPool Using a shared selector
 for servlet write/read
 [2015-04-24 10:16:05,470]  INFO - TaskServiceImpl Task service starting
 in CLUSTERED mode...
 [2015-04-24 10:16:05,510]  INFO - NTaskTaskManager Initialized task
 manager. Tenant [-1234]
 [2015-04-24 10:16:05,511]  INFO - ClusterGroupCommunicator Waiting for 2
 [ESB_TASK] task executor nodes...
 [2015-04-24 10:16:08,023]  WARN - SvnOutputParser Can't find a svn action
 for svn output line : Updating 'repository/deployment/server':


- When I shout down Worker 1, It says Error in waiting for task
[ESB_TASK] executor nodes: Hazelcast instance is not active!. See the  
 log
in [4].

 [4]

 [2015-04-24 10:26:54,215] ERROR - TasksDSComponent Error in intializing
 Tasks component: Error in waiting for task [ESB_TASK] executor nodes:
 Hazelcast instance is not active!
 org.wso2.carbon.ntask.common.TaskException: Error in waiting for task
 [ESB_TASK] executor nodes: Hazelcast instance is not active!
 at
 org.wso2.carbon.ntask.core.impl.clustered.ClusterGroupCommunicator.checkServers(ClusterGroupCommunicator.java:159)
 at
 org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.runAfterRegistrationActions(TaskServiceImpl.java:324)
 at
 org.wso2.carbon.ntask.core.internal.TasksDSComponent.activate(TasksDSComponent.java:109)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:601)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 

[Dev] Updated Invitation: Code Review - Siddhi RegEx Function Extension @ Fri Apr 24, 2015 2pm - 3pm (ramin...@wso2.com)

2015-04-24 Thread ramin...@wso2.com
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20150424T083000Z
DTEND:20150424T093000Z
DTSTAMP:20150424T065035Z
ORGANIZER;CN=Ramindu De Silva:mailto:ramin...@wso2.com
UID:0kljo42sdqccvq9lk9gkkms...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Ramindu De Silva;X-NUM-GUESTS=0:mailto:ramin...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sriskandarajah Suhothayan;X-NUM-GUESTS=0:mailto:s...@wso2.com
ATTENDEE;CUTYPE=RESOURCE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TR
 UE;CN=LK Trace Mezzanine Floor Meeting Room - Gondor Ext:1036212;X-NUM-GU
 ESTS=0:mailto:wso2.com_2d323839383039343...@resource.calendar.google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Tharik Kanaka;X-NUM-GUESTS=0:mailto:tha...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Lasantha Fernando;X-NUM-GUESTS=0:mailto:lasan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Thilini Anoratna;X-NUM-GUESTS=0:mailto:thili...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sachini Jayasekara;X-NUM-GUESTS=0:mailto:sachi...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Mohanadarshan Vivekanandalingam;X-NUM-GUESTS=0;X-RESPONSE-COMMENT=
 Sorry\, I am on study leave..:mailto:mo...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Damith Wickramasinghe;X-NUM-GUESTS=0:mailto:dami...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Dilini Muthumala;X-NUM-GUESTS=0:mailto:dil...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Rajeev Sampath;X-NUM-GUESTS=0:mailto:raje...@wso2.com
CREATED:20150421T084010Z
DESCRIPTION:View your event at https://www.google.com/calendar/event?action
 =VIEWeid=MGtsam80MnNkcWNjdnE5bGs5Z2trbXNvdTQgZGV2QHdzbzIub3Jntok=MTcjcmFt
 aW5kdXNAd3NvMi5jb21hZTlmNmQ2OTg3YWE4NTlhNjVhMzU2NDczYWIxNjg4ZDFlNTU0YjM3ct
 z=Asia/Colombohl=en.
LAST-MODIFIED:20150424T065035Z
LOCATION:LK Trace Mezzanine Floor Meeting Room - Gondor Ext:1036212
SEQUENCE:1
STATUS:CONFIRMED
SUMMARY:Code Review - Siddhi RegEx Function Extension
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


Re: [Dev] VFS Inbound Testing Scenario

2015-04-24 Thread Shakila Sivagnanarajah
Hi Malaka,

I configured 2 worker nodes. And I set one worker as the known worker for
the manager. The artifacts mentioned in [1] were created at the given SVN
location.
[1]

   - axis2modules/
   
https://svn.wso2.com/wso2/training/careerlaunch/shakila/test/-1234/axis2modules/
   - axis2services/
   
https://svn.wso2.com/wso2/training/careerlaunch/shakila/test/-1234/axis2services/
   - synapse-configs/
   
https://svn.wso2.com/wso2/training/careerlaunch/shakila/test/-1234/synapse-configs/
   - webapps/
   https://svn.wso2.com/wso2/training/careerlaunch/shakila/test/-1234/webapps/

Thank you.

On Fri, Apr 24, 2015 at 12:13 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Shakira,

 Further Check [1]

 [1] https://wso2.org/jira/browse/BPS-346

 On Fri, Apr 24, 2015 at 11:44 AM, Malaka Silva mal...@wso2.com wrote:

 Hi Shakila,

 Is seems like a warning given by dep-sync. However do you get the
 artifacts gets deployed to worker nodes?

 How many worker nodes did you configure?

 On Fri, Apr 24, 2015 at 11:13 AM, Shakila Sivagnanarajah 
 shak...@wso2.com wrote:

 Hi all,

 I am doing the ESB task to test the VFS Inbound.
 I went through some portion of Carbon-Mediation code related to VFS and
 tested VFS file transfer functionality with Smooks mediator (Synapse Sample
 654) so far.

 From this testing, I got an idea of Smooks mediator and practically
 tested one of the use cases of VFS inbound.

 I have set up ESB worker/manager cluster without ELB. For this I
 referred document [1] and used Ngnix Load Balancer. And I used the ESB pack
 got from [2].

 [1]
 https://docs.google.com/a/wso2.com/document/d/1x80QfnBW09keGVYOi3MLruckXbIVp45vOj9deyF0l5I/edit?usp=sharing

 [2]
 https://svn.wso2.org/repos/wso2/people/ishan/dist/esb/4.9.0/wso2esb-4.9.0-M7.zip

 *Issues:*

- When I start Worker 1, I am getting the exception *Can't find a
svn action for svn output line : Updating 'repository/deployment/server'*
see in log [3].

 [3]

 [2015-04-24 10:15:56,155]  INFO - MemberUtils Added member: Host:
 mgt.esb.wso2.com, Remote Host:null, Port: 4100, HTTP:-1, HTTPS:-1,
 Domain: null, Sub-domain:null, Active:true
 [2015-04-24 10:16:04,676]  INFO - HazelcastClusteringAgent Hazelcast
 initialized in 8519ms
 [2015-04-24 10:16:04,696]  INFO - MemberUtils Added member:
 Host:10.100.5.171, Remote Host:null, Port: 4100, HTTP:8281, HTTPS:8244,
 Domain: wso2.esb.domain, Sub-domain:__$default, Active:true
 [2015-04-24 10:16:04,696]  INFO - HazelcastClusteringAgent Local member:
 [d795d8a2-f6da-491a-ad5f-fe2cfa82f950] - Host:10.100.5.171, Remote
 Host:null, Port: 4200, HTTP:8282, HTTPS:8245, Domain: wso2.esb.domain,
 Sub-domain:null, Active:true
 [2015-04-24 10:16:04,704]  INFO - MemberUtils Added member:
 Host:10.100.5.171, Remote Host:null, Port: 4200, HTTP:8282, HTTPS:8245,
 Domain: wso2.esb.domain, Sub-domain:__$default, Active:true
 [2015-04-24 10:16:04,960]  INFO - HazelcastClusteringAgent Cluster
 initialization completed
 [2015-04-24 10:16:04,968]  INFO - NioSelectorPool Using a shared
 selector for servlet write/read
 [2015-04-24 10:16:05,400]  INFO - NioSelectorPool Using a shared
 selector for servlet write/read
 [2015-04-24 10:16:05,470]  INFO - TaskServiceImpl Task service starting
 in CLUSTERED mode...
 [2015-04-24 10:16:05,510]  INFO - NTaskTaskManager Initialized task
 manager. Tenant [-1234]
 [2015-04-24 10:16:05,511]  INFO - ClusterGroupCommunicator Waiting for 2
 [ESB_TASK] task executor nodes...
 [2015-04-24 10:16:08,023]  WARN - SvnOutputParser Can't find a svn
 action for svn output line : Updating 'repository/deployment/server':


- When I shout down Worker 1, It says Error in waiting for task
[ESB_TASK] executor nodes: Hazelcast instance is not active!. See the  
 log
in [4].

 [4]

 [2015-04-24 10:26:54,215] ERROR - TasksDSComponent Error in intializing
 Tasks component: Error in waiting for task [ESB_TASK] executor nodes:
 Hazelcast instance is not active!
 org.wso2.carbon.ntask.common.TaskException: Error in waiting for task
 [ESB_TASK] executor nodes: Hazelcast instance is not active!
 at
 org.wso2.carbon.ntask.core.impl.clustered.ClusterGroupCommunicator.checkServers(ClusterGroupCommunicator.java:159)
 at
 org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.runAfterRegistrationActions(TaskServiceImpl.java:324)
 at
 org.wso2.carbon.ntask.core.internal.TasksDSComponent.activate(TasksDSComponent.java:109)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:601)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 

Re: [Dev] [ESB] API resource mis-match handler

2015-04-24 Thread Akila Ravihansa Perera
Hi Isuru,

Thanks for the quick response! That really helped.

I was able to handle non-existing API contexts by referencing to mis-match
handler sequence inside the main sequence;

sequence xmlns=http://ws.apache.org/ns/synapse; name=main
in
   sequence key=_resource_mismatch_handler_/
/in
/sequence




On Thu, Apr 23, 2015 at 11:31 PM, Isuru Udana isu...@wso2.com wrote:

 Hi Akila,

 On Fri, Apr 24, 2015 at 11:55 AM, Akila Ravihansa Perera 
 raviha...@wso2.com wrote:

 Hi,

 I'm trying to configure the _resource_mismatch_handler_ in ESB. I noticed
 that it gets triggered only when there is a mis-match for a resource in an
 already existing API context. It doesn't get triggered if a request is sent
 for a non-existing API context.

 Is this the expected behavior?

 Yes. Synapse identify the api using the api context (not from API name).
 So if the context is not matched, then it means there is no api to handle
 that request and it is getting dispatched to the main sequence.

 Is there any way to configure the mis-match handler for a non-existing
 API context?

 No. From the name itself gives the idea of this sequence is for
 mismatching resources.
 However you many configure the main sequence logic to handle these type of
 requests.


 Thanks.

 --
 Akila Ravihansa Perera
 Software Engineer, WSO2

 Blog: http://ravihansa3000.blogspot.com




 --
 *Isuru Udana*
 Associate Technical Lead
 WSO2 Inc.; http://wso2.com
 email: isu...@wso2.com cell: +94 77 3791887
 blog: http://mytecheye.blogspot.com/




-- 
Akila Ravihansa Perera
Software Engineer, WSO2

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


Re: [Dev] [APIM] Query on the logic used to display statistics relevant to a given time range functionality.

2015-04-24 Thread Sewmini Jayaweera
Adding Lalaji to the thread.

Sewmini Jayaweera
*Software Engineer - QA Team*
Mobile: +94 (0) 773 381 250
sewm...@wso2.com

On Thu, Apr 23, 2015 at 3:30 PM, Sewmini Jayaweera sewm...@wso2.com wrote:

 Hi,

 I'm working on test cases related to API manager runtime statistics. Since
 I'm using a new set up I do not have data to observe how API manager
 display statistics relevant to a specified time duration.

 Can someone please tell me how the calculation is implemented?

 Say there are two published APIs (API1 and API2) created by creator1.
  - In day one Subscriber1 got subscribed to both APIs
  - In day two  Subscriber2 got subscribed to API2

 *1.* When creator1 select only day one as the duration,

 *1.1* What should be observation when user goes to APIs  All statistics
  API subscriptions page?
 Is it implemented like (Number of subscriptions of a particular API during
 the day) / (Total number of subscriptions took place during the day) ?

 *1.2. *What should be observation when user goes to My APIs  statistics
  API subscriptions page?

 2. When creator1 set duration selecting both day one and two.

 *2.1.* What should be observation when user goes to APIs  All statistics
  API subscriptions page?

 *2.2.* What should be observation when user goes to My APIs  statistics
  API subscriptions page?

 Thanks  Regards,
 Sewmini

 Sewmini Jayaweera
 *Software Engineer - QA Team*
 Mobile: +94 (0) 773 381 250
 sewm...@wso2.com

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


Re: [Dev] Updated Invitation: Code Review - Siddhi RegEx Function Extension @ Fri Apr 24, 2015 2pm - 3pm (dami...@wso2.com)

2015-04-24 Thread Damith Wickramasinghe
Hi,

Please find the review notes below.

invert parameter regex to come first in the method
Iterate InEvents in the test case and use.
check for data is null and data is not the correct type for possible
exception scenarios
make each variable private
Check for current state returning value

Regards,
Damith

On Fri, Apr 24, 2015 at 12:20 PM, Ramindu De Silva ramin...@wso2.com
wrote:

 This event has been changed.
 more details »
 https://www.google.com/calendar/event?action=VIEWeid=MGtsam80MnNkcWNjdnE5bGs5Z2trbXNvdTQgZGFtaXRobkB3c28yLmNvbQtok=MTcjcmFtaW5kdXNAd3NvMi5jb21mNGJhZDkyNDYwNTgzZmZkZjI2ZDRkODhhYzgyOGFiYjc0Y2Y1YmExctz=Asia/Colombohl=en
 Code Review - Siddhi RegEx Function Extension
 *When*
 *Changed: *Fri Apr 24, 2015 2pm – 3pm Colombo
 *Where*
 LK Trace Mezzanine Floor Meeting Room - Gondor Ext:1036212 (map
 https://maps.google.lk/maps?q=LK+Trace+Mezzanine+Floor+Meeting+Room+-+Gondor+Ext:1036212hl=en
 )
 *Video call*
 https://plus.google.com/hangouts/_/wso2.com/code-review
 https://plus.google.com/hangouts/_/wso2.com/code-review?hceid=cmFtaW5kdXNAd3NvMi5jb20.0kljo42sdqccvq9lk9gkkmsou4
 *Calendar*
 dami...@wso2.com
 *Who*
 •
 Ramindu De Silva - organizer
 •
 Dilini Muthumala
 •
 Sriskandarajah Suhothayan
 •
 Thilini Anoratna
 •
 Mohanadarshan Vivekanandalingam
 •
 Sachini Jayasekara
 •
 Rajeev Sampath
 •
 dev@wso2.org
 •
 Lasantha Fernando
 •
 Tharik Kanaka
 •
 Damith Wickramasinghe

 Going?   *Yes
 https://www.google.com/calendar/event?action=RESPONDeid=MGtsam80MnNkcWNjdnE5bGs5Z2trbXNvdTQgZGFtaXRobkB3c28yLmNvbQrst=1tok=MTcjcmFtaW5kdXNAd3NvMi5jb21mNGJhZDkyNDYwNTgzZmZkZjI2ZDRkODhhYzgyOGFiYjc0Y2Y1YmExctz=Asia/Colombohl=en
 - Maybe
 https://www.google.com/calendar/event?action=RESPONDeid=MGtsam80MnNkcWNjdnE5bGs5Z2trbXNvdTQgZGFtaXRobkB3c28yLmNvbQrst=3tok=MTcjcmFtaW5kdXNAd3NvMi5jb21mNGJhZDkyNDYwNTgzZmZkZjI2ZDRkODhhYzgyOGFiYjc0Y2Y1YmExctz=Asia/Colombohl=en
 - No
 https://www.google.com/calendar/event?action=RESPONDeid=MGtsam80MnNkcWNjdnE5bGs5Z2trbXNvdTQgZGFtaXRobkB3c28yLmNvbQrst=2tok=MTcjcmFtaW5kdXNAd3NvMi5jb21mNGJhZDkyNDYwNTgzZmZkZjI2ZDRkODhhYzgyOGFiYjc0Y2Y1YmExctz=Asia/Colombohl=en*
 more options »
 https://www.google.com/calendar/event?action=VIEWeid=MGtsam80MnNkcWNjdnE5bGs5Z2trbXNvdTQgZGFtaXRobkB3c28yLmNvbQtok=MTcjcmFtaW5kdXNAd3NvMi5jb21mNGJhZDkyNDYwNTgzZmZkZjI2ZDRkODhhYzgyOGFiYjc0Y2Y1YmExctz=Asia/Colombohl=en

 Invitation from Google Calendar https://www.google.com/calendar/

 You are receiving this email at the account dami...@wso2.com because you
 are subscribed for updated invitations on calendar dami...@wso2.com.

 To stop receiving these emails, please log in to
 https://www.google.com/calendar/ and change your notification settings
 for this calendar.




-- 
Software Engineer
WSO2 Inc.; http://wso2.com
http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
lean.enterprise.middleware

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


Re: [Dev] [Urgent] Source location of identity Oauth 4.3.3 components

2015-04-24 Thread Prabath Abeysekera
Hi Johann,

As I've mentioned in my previous reply, we can't use carbon-identity 4.3.4
at this point, since there's a bunch of other dependent components still to
be released upon Carbon kernel 4.4.0. Please provide us with a proper patch
upon v4.3.3 before the end of the day today as this is blocking us big time
right now.

Cheers,
Prabath

On Fri, Apr 24, 2015 at 12:19 AM, Johann Nallathamby joh...@wso2.com
wrote:

 Hi Prabath,

 Did you test 4.3.4 ? AFAIK it should work in this version.

 Thanks.

 On Thu, Apr 23, 2015 at 3:40 PM, Prabath Abeysekera praba...@wso2.com
 wrote:

 Johann,

 We've been stuck for weeks because of the issue reported in Harshan's
 previous reply. As it appears, we wouldn't be able to make MDM components
 use the latest released version of carbon-identity as the other components
 that the product depends on won't likely be released at least by the end of
 next week. So a patch is urgently needed upon the 4.3.3 components to
 continue on the MDM development tasks. Please be kind enough to provide on
 by tomorrow, 24th April.

 Cheers,
 Prabath


 On Mon, Apr 6, 2015 at 11:51 PM, Harshan Liyanage hars...@wso2.com
 wrote:

 Hi Nuwandi, Johann,

 Thanks for the support.

 Best Regards,

 Lakshitha Harshan
 Software Engineer
 Mobile: *+94724423048*
 Email: hars...@wso2.com
 Blog : http://harshanliyanage.blogspot.com/
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

 On Tue, Apr 7, 2015 at 9:15 AM, Johann Nallathamby joh...@wso2.com
 wrote:

 OAuth 4.3.3 in git is found in [1]. But this is not a proper released
 version. When I say proper release it was not tested and all. It was
 released in order to get the git build working. If you are going to release
 an alpha or beta, you've got to depend on a version thats going to be
 really released for use for products. carbon-identity 4.3.4 will be the
 proper release to depend on. But it might take couple of weeks for us to
 release it completely.


 [1]
 https://github.com/wso2/carbon-identity/tree/release-4.3.3/components/identity/org.wso2.carbon.identity.oauth

 On Tue, Apr 7, 2015 at 7:59 AM, Harshan Liyanage hars...@wso2.com
 wrote:

 Hi,

 I have checked for the source of org.wso2.carbon.identity.oauth v
 4.3.3 in [1]  [2]. But I could not find those components in either Git
 repo or in SVN repo. But version 4.3.4 of these components are available 
 in
 git release 4.3.4 branch.

 We have a blocker here for CDM release due to non-availability of
 OAuth2Service osgi service in org.wso2.carbon.identity.oauth v
 4.3.3 component.

 Could you please provide me the source repository link?

 [1].
 https://github.com/wso2/carbon-identity/tree/release-4.3.3/components
 [2].
 https://svn.wso2.com/wso2/custom/projects/projects/carbon/turing/platform/trunk/components/identity/org.wso2.carbon.identity.oauth/
 [3].
 https://github.com/wso2/carbon-identity/tree/release-4.3.4/components/oauth

 Thanks,

 Lakshitha Harshan
 Software Engineer
 Mobile: *+94724423048*
 Email: hars...@wso2.com
 Blog : http://harshanliyanage.blogspot.com/
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.




 --
 Thanks  Regards,

 *Johann Dilantha Nallathamby*
 Associate Technical Lead  Product Lead of WSO2 Identity Server
 Integration Technologies Team
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*





 --
 Prabath Abeysekara
 Technical Lead
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471




 --
 Thanks  Regards,

 *Johann Dilantha Nallathamby*
 Associate Technical Lead  Product Lead of WSO2 Identity Server
 Integration Technologies Team
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*




-- 
Prabath Abeysekara
Technical Lead
WSO2 Inc.
Email: praba...@wso2.com
Mobile: +94774171471
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Admin Service in WSO2 AS for Web app deployment

2015-04-24 Thread Awanthika Senarath
thanks Kasun!

On Fri, Apr 24, 2015 at 12:54 AM, Kasun Gajasinghe kas...@wso2.com wrote:

 Hi Awanthika,

 As per the offline chat we had awhile back, we have decided to go ahead
 with basic file copy to upload the webapps IIRC. There is no need to change
 the admin services to cater for this requirement.

 On Apr 23, 2015, at 6:22 PM, Awanthika Senarath awanth...@wso2.com
 wrote:

 ping!

 On Wed, Apr 8, 2015 at 11:31 PM, Awanthika Senarath awanth...@wso2.com
 wrote:

 Hi KasunG,

 Is it possible to get $subject done? since this is a requirement for
 enabling exploded web app deployment in AS from dev stduio.

 thanks and regards
 Awanthika

 On Mon, Apr 6, 2015 at 6:58 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi Awanthika,

 I don't think the admin service supports it. We will have to improve it
 depending on this requirement.

 On Mon, Apr 6, 2015 at 6:33 PM, Awanthika Senarath awanth...@wso2.com
 wrote:

 Hi,

 Could you please verify whether the exploded web app deployment is
 possible via the said admin service?

 regards
 Awanthika

 On Mon, Apr 6, 2015 at 11:36 AM, Awanthika Senarath awanth...@wso2.com
  wrote:

 Thanks KasunG,

 If the admin service supports war deployment in exploded format, it
 should be possible for us to directly call the admin service via Dev 
 Studio
 and handle this, isn't it?

 I will have to study the admin service and see how it supports this.

 regards
 Awanthika

 On Mon, Apr 6, 2015 at 11:27 AM, Kasun Gajasinghe kas...@wso2.com
 wrote:

 It should be WebappAdmin.

 AS supports deploying exploded webapps. But the UI doesn't have the
 capability to upload webapps in exploded format since it's a folder
 structure. How do you propose to do it?

 On Apr 6, 2015, at 10:57 AM, Awanthika Senarath awanth...@wso2.com
 wrote:

 Hi all,

 I need to find $subject to develop the war-deploy facility in WSO2
 developer studio.

 I could observe that for the car-deployment we are using the Admin
 Service CarbonAppUploader.

 By listing all the Admin services available in WSO2 AS I got the list
 at [1], Can someone point out to me the Admin Service used for war file
 deployment in AS?

 Further is it possible to do exploded web app Deployment in AS? by
 admin console uploading I observed that we are deploying the compressed 
 war
 file. The ultimate goal of Developer Studio is to enable web app 
 deployment
 in Carbon server in exploded format. Hence if such a service is not
 available ATM, how should we proceed with this? IMO to enable this we 
 have
 two options.

 [1] implement this completely on Dev Studio - as a file transfer

 [2] get back-end support from Carbon and facilitate this via dev
 studio using an admin service


 ** Exploded war deployment : deployment of the war file in extracted
 format. Without deploying the .war file this copies the  folder
 directly into the webapps folder in the server.


 Appreciate your input


 [1]
 Admin services deployed on this server:
 1. ProvisioningAdminService, ProvisioningAdminService,
 https://10.100.5.110:9443/services/ProvisioningAdminService/
 2. CarbonAppUploader, CarbonAppUploader,
 https://10.100.5.110:9443/services/CarbonAppUploader/
 3. OperationAdmin, OperationAdmin,
 https://10.100.5.110:9443/services/OperationAdmin/
 4. JaggeryAppAdmin, JaggeryAppAdmin,
 https://10.100.5.110:9443/services/JaggeryAppAdmin/
 5. JaxwsWebappAdmin, JaxwsWebappAdmin,
 https://10.100.5.110:9443/services/JaxwsWebappAdmin/
 6. StatisticsAdmin, StatisticsAdmin,
 https://10.100.5.110:9443/services/StatisticsAdmin/
 7. LoggedUserInfoAdmin, LoggedUserInfoAdmin,
 https://10.100.5.110:9443/services/LoggedUserInfoAdmin/
 8. WebappAdmin, WebappAdmin,
 https://10.100.5.110:9443/services/WebappAdmin/
 9. TopicManagerAdminService, TopicManagerAdminService,
 https://10.100.5.110:9443/services/TopicManagerAdminService/
 10. ApplicationAdmin, ApplicationAdmin,
 https://10.100.5.110:9443/services/ApplicationAdmin/
 11. NDataSourceAdmin, NDataSourceAdmin,
 https://10.100.5.110:9443/services/NDataSourceAdmin/
 12. ServiceGroupAdmin, ServiceGroupAdmin,
 https://10.100.5.110:9443/services/ServiceGroupAdmin/
 13. DataServiceFileUploader, DataServiceFileUploader,
 https://10.100.5.110:9443/services/DataServiceFileUploader/
 14. CustomMeteringService, CustomMeteringService,
 https://10.100.5.110:9443/services/CustomMeteringService/
 15. STSAdminService, STSAdminService,
 https://10.100.5.110:9443/services/STSAdminService/
 16. RegistryAdminService, RegistryAdminService,
 https://10.100.5.110:9443/services/RegistryAdminService/
 17. JavaScriptStubGeneratorService, JavaScriptStubGeneratorService,
 https://10.100.5.110:9443/services/JavaScriptStubGeneratorService/
 http://10.100.5.110:9763/services/JavaScriptStubGeneratorService/
 local:///services/JavaScriptStubGeneratorService/
 18. JSServiceUploader, JSServiceUploader,
 https://10.100.5.110:9443/services/JSServiceUploader/
 19. FileDownloadService, FileDownloadService,
 

Re: [Dev] [Urgent] Source location of identity Oauth 4.3.3 components

2015-04-24 Thread Prabath Abeysekera
Hi Johann,

I do understand. :) But I'm afraid, this is not a fair excuse for not
releasing all carbon-identity components with 4.3.3. :) If you guys
released all components even without 100% stability, then we could have
simply worked on getting only the bugs (if there happened to be any) fixed
(worse case), at least by ourselves and continued on the developments. In
other words, missing a whole bunch of classes is unacceptable, even in an
interim release, let alone the stability of the implementations.

Further, CDM team too are not planning to release any of our components
upon 4.3.3, what we're trying to do is simply making the environment ready
for us to continue all our critical development efforts uninterrupted till
all other dependent components are released upon 4.4.0. Regarding your
point on deadlines, yeah I do realize that everyone is on tight deadlines,
the same applies to us too, which is exactly why we're trying to find a
resolution to get over this problem. And this is clearly, blocking our
development efforts which is why I even had to personally come and ask for
a solution a couple of times, but unfortunately this is not yet solved. I
hope you understand the current situation and would give us a practical
solution to this problem :).

Thanks in advance,

Cheers,
Prabath

On Fri, Apr 24, 2015 at 6:09 AM, Johann Nallathamby joh...@wso2.com wrote:

 Hi Prabath,

 We are also in the same position because carbon-governance and
 carbon-store repos are not released. :( So is AS. The solution is to push
 all the teams to get the repos out ASAP as we discussed in the meeting the
 other day. Have to scrutinize why its taking so long for other teams to
 release. No team should be working/releasing on 4.3.x branch AFAIK.
 Unfortunately we are not in a position to patch 4.3.x branch. We also have
 only one engineer working on the 4.4.0 based release right now and its not
 fair on us because we also have deadlines :) .

 Thanks,
 Johann.

 On Fri, Apr 24, 2015 at 3:30 PM, Prabath Abeysekera praba...@wso2.com
 wrote:

 Hi Johann,

 As I've mentioned in my previous reply, we can't use carbon-identity
 4.3.4 at this point, since there's a bunch of other dependent components
 still to be released upon Carbon kernel 4.4.0. Please provide us with a
 proper patch upon v4.3.3 before the end of the day today as this is
 blocking us big time right now.

 Cheers,
 Prabath

 On Fri, Apr 24, 2015 at 12:19 AM, Johann Nallathamby joh...@wso2.com
 wrote:

 Hi Prabath,

 Did you test 4.3.4 ? AFAIK it should work in this version.

 Thanks.

 On Thu, Apr 23, 2015 at 3:40 PM, Prabath Abeysekera praba...@wso2.com
 wrote:

 Johann,

 We've been stuck for weeks because of the issue reported in Harshan's
 previous reply. As it appears, we wouldn't be able to make MDM components
 use the latest released version of carbon-identity as the other components
 that the product depends on won't likely be released at least by the end of
 next week. So a patch is urgently needed upon the 4.3.3 components to
 continue on the MDM development tasks. Please be kind enough to provide on
 by tomorrow, 24th April.

 Cheers,
 Prabath


 On Mon, Apr 6, 2015 at 11:51 PM, Harshan Liyanage hars...@wso2.com
 wrote:

 Hi Nuwandi, Johann,

 Thanks for the support.

 Best Regards,

 Lakshitha Harshan
 Software Engineer
 Mobile: *+94724423048*
 Email: hars...@wso2.com
 Blog : http://harshanliyanage.blogspot.com/
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

 On Tue, Apr 7, 2015 at 9:15 AM, Johann Nallathamby joh...@wso2.com
 wrote:

 OAuth 4.3.3 in git is found in [1]. But this is not a proper released
 version. When I say proper release it was not tested and all. It was
 released in order to get the git build working. If you are going to 
 release
 an alpha or beta, you've got to depend on a version thats going to be
 really released for use for products. carbon-identity 4.3.4 will be the
 proper release to depend on. But it might take couple of weeks for us to
 release it completely.


 [1]
 https://github.com/wso2/carbon-identity/tree/release-4.3.3/components/identity/org.wso2.carbon.identity.oauth

 On Tue, Apr 7, 2015 at 7:59 AM, Harshan Liyanage hars...@wso2.com
 wrote:

 Hi,

 I have checked for the source of org.wso2.carbon.identity.oauth v
 4.3.3 in [1]  [2]. But I could not find those components in either Git
 repo or in SVN repo. But version 4.3.4 of these components are 
 available in
 git release 4.3.4 branch.

 We have a blocker here for CDM release due to non-availability of
 OAuth2Service osgi service in org.wso2.carbon.identity.oauth v
 4.3.3 component.

 Could you please provide me the source repository link?

 [1].
 https://github.com/wso2/carbon-identity/tree/release-4.3.3/components
 [2].
 https://svn.wso2.com/wso2/custom/projects/projects/carbon/turing/platform/trunk/components/identity/org.wso2.carbon.identity.oauth/
 [3].
 https://github.com/wso2/carbon-identity/tree/release-4.3.4/components/oauth

 

[Dev] Please Review and Merge the PR

2015-04-24 Thread Chamalee De Silva
This is the Fix PR [1] for the JIRA [2].

Please review and merge.

[1] https://github.com/wso2/carbon-apimgt/pull/229
[2] https://wso2.org/jira/browse/APIMANAGER-3129

-- 

Chamalee De Silva

Software Engineer | WSO2

E:chama...@wso2.com nirosh...@wso2.com
M :0711540738| http://wso2.com http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please Review and Merge the PR

2015-04-24 Thread Lakmali Baminiwatta
Hi Chamalee,

On 23 April 2015 at 11:13, Chamalee De Silva chama...@wso2.com wrote:

 Hi,

 This is the fix PR [1] for the public JIRA [2].

 Consumer-key:authz_user combination is used to validate the subscription
 throttling tier instead of using access token.

 Through that the ability of the user to send more than permitted number of
 requests per minute by regenerating the access token is avoided.


 Please review and merge.


Reviewed and merged. Thanks.



 [1] *https://github.com/wso2/carbon-apimgt/pull/208
 https://github.com/wso2/carbon-apimgt/pull/208*
 [2] https://wso2.org/jira/browse/APIMANAGER-3406

 Thanks and Regards,

 --

 Chamalee De Silva

 Software Engineer | WSO2

 E:chama...@wso2.com nirosh...@wso2.com
 M :0711540738| http://wso2.com http://wso2.com/




-- 
Lakmali Baminiwatta
 Senior Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
mobile:  +94 71 2335936
blog : lakmali.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Urgent] Source location of identity Oauth 4.3.3 components

2015-04-24 Thread Johann Nallathamby
Hi Prabath,

We are also in the same position because carbon-governance and carbon-store
repos are not released. :( So is AS. The solution is to push all the teams
to get the repos out ASAP as we discussed in the meeting the other day.
Have to scrutinize why its taking so long for other teams to release. No
team should be working/releasing on 4.3.x branch AFAIK. Unfortunately we
are not in a position to patch 4.3.x branch. We also have only one engineer
working on the 4.4.0 based release right now and its not fair on us because
we also have deadlines :) .

Thanks,
Johann.

On Fri, Apr 24, 2015 at 3:30 PM, Prabath Abeysekera praba...@wso2.com
wrote:

 Hi Johann,

 As I've mentioned in my previous reply, we can't use carbon-identity 4.3.4
 at this point, since there's a bunch of other dependent components still to
 be released upon Carbon kernel 4.4.0. Please provide us with a proper patch
 upon v4.3.3 before the end of the day today as this is blocking us big time
 right now.

 Cheers,
 Prabath

 On Fri, Apr 24, 2015 at 12:19 AM, Johann Nallathamby joh...@wso2.com
 wrote:

 Hi Prabath,

 Did you test 4.3.4 ? AFAIK it should work in this version.

 Thanks.

 On Thu, Apr 23, 2015 at 3:40 PM, Prabath Abeysekera praba...@wso2.com
 wrote:

 Johann,

 We've been stuck for weeks because of the issue reported in Harshan's
 previous reply. As it appears, we wouldn't be able to make MDM components
 use the latest released version of carbon-identity as the other components
 that the product depends on won't likely be released at least by the end of
 next week. So a patch is urgently needed upon the 4.3.3 components to
 continue on the MDM development tasks. Please be kind enough to provide on
 by tomorrow, 24th April.

 Cheers,
 Prabath


 On Mon, Apr 6, 2015 at 11:51 PM, Harshan Liyanage hars...@wso2.com
 wrote:

 Hi Nuwandi, Johann,

 Thanks for the support.

 Best Regards,

 Lakshitha Harshan
 Software Engineer
 Mobile: *+94724423048*
 Email: hars...@wso2.com
 Blog : http://harshanliyanage.blogspot.com/
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

 On Tue, Apr 7, 2015 at 9:15 AM, Johann Nallathamby joh...@wso2.com
 wrote:

 OAuth 4.3.3 in git is found in [1]. But this is not a proper released
 version. When I say proper release it was not tested and all. It was
 released in order to get the git build working. If you are going to 
 release
 an alpha or beta, you've got to depend on a version thats going to be
 really released for use for products. carbon-identity 4.3.4 will be the
 proper release to depend on. But it might take couple of weeks for us to
 release it completely.


 [1]
 https://github.com/wso2/carbon-identity/tree/release-4.3.3/components/identity/org.wso2.carbon.identity.oauth

 On Tue, Apr 7, 2015 at 7:59 AM, Harshan Liyanage hars...@wso2.com
 wrote:

 Hi,

 I have checked for the source of org.wso2.carbon.identity.oauth v
 4.3.3 in [1]  [2]. But I could not find those components in either Git
 repo or in SVN repo. But version 4.3.4 of these components are available 
 in
 git release 4.3.4 branch.

 We have a blocker here for CDM release due to non-availability of
 OAuth2Service osgi service in org.wso2.carbon.identity.oauth v
 4.3.3 component.

 Could you please provide me the source repository link?

 [1].
 https://github.com/wso2/carbon-identity/tree/release-4.3.3/components
 [2].
 https://svn.wso2.com/wso2/custom/projects/projects/carbon/turing/platform/trunk/components/identity/org.wso2.carbon.identity.oauth/
 [3].
 https://github.com/wso2/carbon-identity/tree/release-4.3.4/components/oauth

 Thanks,

 Lakshitha Harshan
 Software Engineer
 Mobile: *+94724423048*
 Email: hars...@wso2.com
 Blog : http://harshanliyanage.blogspot.com/
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.




 --
 Thanks  Regards,

 *Johann Dilantha Nallathamby*
 Associate Technical Lead  Product Lead of WSO2 Identity Server
 Integration Technologies Team
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*





 --
 Prabath Abeysekara
 Technical Lead
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471




 --
 Thanks  Regards,

 *Johann Dilantha Nallathamby*
 Associate Technical Lead  Product Lead of WSO2 Identity Server
 Integration Technologies Team
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*




 --
 Prabath Abeysekara
 Technical Lead
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471




-- 
Thanks  Regards,

*Johann Dilantha Nallathamby*
Associate Technical Lead  Product Lead of WSO2 Identity Server
Integration Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Running changed code on Identity Server.

2015-04-24 Thread Madhawa Gunasekara
Hi Damith,

Can you check the relevant version of the org.wso2.carbon.user.mgt.ui in
repository/components/plugin folder, and then give try by changing the
version of the pom file of the org.wso2.carbon.user.mgt.ui into that
particular version.

Regards,

On Fri, Apr 24, 2015 at 11:54 AM, Tharik Kanaka tha...@wso2.com wrote:

 Hi damith,

 I believe org.wso2.carbon.user.mgt.ui belongs to carbon-commons is
 updated version 4.4.0 and carbon-identity has to be updated to use version
 4.4.0. The jar your dealing version 4.3.6, if you doing changes on a fork
 of carbon-commons if you updated by pulling latest chages versions should
 be resolved. Could you try by changing 4.3.6 versions to version 4.4.0?

 Regards,

 On Fri, Apr 24, 2015 at 11:20 AM, Damith Senanayake dami...@wso2.com
 wrote:

 Hi,

 I have made some changes to the code in org.wso2.carbon.user.mgt.ui
 (specifically the bulk-import.jsp file in the web resources) and when I
 added the changed and compiled code to the IS 5.1.0_SNAPSHOT server, the
 package gets installed, and doesn't get activated. When ran an OSGI
 Diagnosis, it shows that some of the packages imported are missing. The
 steps and the output is as below.


1. change the version tag in the pom.xml in
org.wso2.carbon.user.mgt.ui to 4.3.6.SNAPSHOT
2. Create new patch folder in the instance of the IS
($carbonHome/repository/components/patches/patch)
3. copy the new org.wso2.carbon.user.mgt.ui_4.3.6.SNAPSHOT.jar to
the said patch folder.
4. start the server
5. check the active components to find that
org.wso2.carbon.user.mgt.ui is 'INSTALLED but not ACTIVE
6. run diagnosis on module to find the following output. :
1. 
 reference:file:../plugins/org.wso2.carbon.user.mgt.ui_4.3.6.SNAPSHOT.jar
   [363]
 Direct constraints which are unresolved:
   Missing imported package
   org.wso2.carbon.user.mgt.stub_[4.4.0,4.5.0).
   Missing imported package
   org.wso2.carbon.user.mgt.stub.types.axis2_[4.4.0,4.5.0).
   Missing imported package
   org.wso2.carbon.user.mgt.stub.types.carbon_[4.4.0,4.5.0).
   Missing optionally imported package
   javax.activation_[1.1.0,2.0.0).

   7. Now, I changed the part in the pom.xml containing the
dependencies to not include the ;version= section. However, the same
results is shown.

 On a high level, due to this malfunction, the users and roles section
 of the management console is not shown. and manual navigating by typing the
 URL still shows null content.


 Any help and input regarding this will be highly appreciated. Thanks.


 --
 *-Damith Senanayake-*
 +94712205272

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




 --

 *Tharik Kanaka* | Associate Software Engineer

 WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

 Email: tha...@wso2.com | Web: www.wso2.com

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




-- 
*Madhawa Gunasekara*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 719411002 +94+719411002
blog: *http://madhawa-gunasekara.blogspot.com
http://madhawa-gunasekara.blogspot.com*
linkedin: *http://lk.linkedin.com/in/mgunasekara
http://lk.linkedin.com/in/mgunasekara*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] VFS Inbound Testing Scenario

2015-04-24 Thread Shakila Sivagnanarajah
Hi all,

I have tested the file transfer with file inbound protocol. For this, I
referred Synapse Sample 900. Now I am going to test the use case [1].

[1] Pick up a file in a local directory, send an email with data from the
file.

Thank you


On Fri, Apr 24, 2015 at 12:23 PM, Shakila Sivagnanarajah shak...@wso2.com
wrote:

 Hi Malaka,

 I configured 2 worker nodes. And I set one worker as the known worker for
 the manager. The artifacts mentioned in [1] were created at the given SVN
 location.
 [1]

- axis2modules/

 https://svn.wso2.com/wso2/training/careerlaunch/shakila/test/-1234/axis2modules/
- axis2services/

 https://svn.wso2.com/wso2/training/careerlaunch/shakila/test/-1234/axis2services/
- synapse-configs/

 https://svn.wso2.com/wso2/training/careerlaunch/shakila/test/-1234/synapse-configs/
- webapps/

 https://svn.wso2.com/wso2/training/careerlaunch/shakila/test/-1234/webapps/

 Thank you.

 On Fri, Apr 24, 2015 at 12:13 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Shakira,

 Further Check [1]

 [1] https://wso2.org/jira/browse/BPS-346

 On Fri, Apr 24, 2015 at 11:44 AM, Malaka Silva mal...@wso2.com wrote:

 Hi Shakila,

 Is seems like a warning given by dep-sync. However do you get the
 artifacts gets deployed to worker nodes?

 How many worker nodes did you configure?

 On Fri, Apr 24, 2015 at 11:13 AM, Shakila Sivagnanarajah 
 shak...@wso2.com wrote:

 Hi all,

 I am doing the ESB task to test the VFS Inbound.
 I went through some portion of Carbon-Mediation code related to VFS and
 tested VFS file transfer functionality with Smooks mediator (Synapse Sample
 654) so far.

 From this testing, I got an idea of Smooks mediator and practically
 tested one of the use cases of VFS inbound.

 I have set up ESB worker/manager cluster without ELB. For this I
 referred document [1] and used Ngnix Load Balancer. And I used the ESB pack
 got from [2].

 [1]
 https://docs.google.com/a/wso2.com/document/d/1x80QfnBW09keGVYOi3MLruckXbIVp45vOj9deyF0l5I/edit?usp=sharing

 [2]
 https://svn.wso2.org/repos/wso2/people/ishan/dist/esb/4.9.0/wso2esb-4.9.0-M7.zip

 *Issues:*

- When I start Worker 1, I am getting the exception *Can't find a
svn action for svn output line : Updating 
 'repository/deployment/server'*
see in log [3].

 [3]

 [2015-04-24 10:15:56,155]  INFO - MemberUtils Added member: Host:
 mgt.esb.wso2.com, Remote Host:null, Port: 4100, HTTP:-1, HTTPS:-1,
 Domain: null, Sub-domain:null, Active:true
 [2015-04-24 10:16:04,676]  INFO - HazelcastClusteringAgent Hazelcast
 initialized in 8519ms
 [2015-04-24 10:16:04,696]  INFO - MemberUtils Added member:
 Host:10.100.5.171, Remote Host:null, Port: 4100, HTTP:8281, HTTPS:8244,
 Domain: wso2.esb.domain, Sub-domain:__$default, Active:true
 [2015-04-24 10:16:04,696]  INFO - HazelcastClusteringAgent Local
 member: [d795d8a2-f6da-491a-ad5f-fe2cfa82f950] - Host:10.100.5.171, Remote
 Host:null, Port: 4200, HTTP:8282, HTTPS:8245, Domain: wso2.esb.domain,
 Sub-domain:null, Active:true
 [2015-04-24 10:16:04,704]  INFO - MemberUtils Added member:
 Host:10.100.5.171, Remote Host:null, Port: 4200, HTTP:8282, HTTPS:8245,
 Domain: wso2.esb.domain, Sub-domain:__$default, Active:true
 [2015-04-24 10:16:04,960]  INFO - HazelcastClusteringAgent Cluster
 initialization completed
 [2015-04-24 10:16:04,968]  INFO - NioSelectorPool Using a shared
 selector for servlet write/read
 [2015-04-24 10:16:05,400]  INFO - NioSelectorPool Using a shared
 selector for servlet write/read
 [2015-04-24 10:16:05,470]  INFO - TaskServiceImpl Task service starting
 in CLUSTERED mode...
 [2015-04-24 10:16:05,510]  INFO - NTaskTaskManager Initialized task
 manager. Tenant [-1234]
 [2015-04-24 10:16:05,511]  INFO - ClusterGroupCommunicator Waiting for
 2 [ESB_TASK] task executor nodes...
 [2015-04-24 10:16:08,023]  WARN - SvnOutputParser Can't find a svn
 action for svn output line : Updating 'repository/deployment/server':


- When I shout down Worker 1, It says Error in waiting for task
[ESB_TASK] executor nodes: Hazelcast instance is not active!. See the  
 log
in [4].

 [4]

 [2015-04-24 10:26:54,215] ERROR - TasksDSComponent Error in intializing
 Tasks component: Error in waiting for task [ESB_TASK] executor nodes:
 Hazelcast instance is not active!
 org.wso2.carbon.ntask.common.TaskException: Error in waiting for task
 [ESB_TASK] executor nodes: Hazelcast instance is not active!
 at
 org.wso2.carbon.ntask.core.impl.clustered.ClusterGroupCommunicator.checkServers(ClusterGroupCommunicator.java:159)
 at
 org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.runAfterRegistrationActions(TaskServiceImpl.java:324)
 at
 org.wso2.carbon.ntask.core.internal.TasksDSComponent.activate(TasksDSComponent.java:109)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 

Re: [Dev] Two methods failed in Spotify connector

2015-04-24 Thread Shakila Sivagnanarajah
Hi Navaneethan,

Due to the API change, this happened. The API returns content type of the
response is text/plain. Now I have fixed this by using proper message
formatter as given in [1] in the configuration and we have to enable the
builder and formatter in ESB_HOME\repository\conf\axis2\axis2.xml as
given in [2].

[1]
property name=ContentType value=text/plain scope=axis2/

[2]
messageFormatter contentType=text/plain
class=org.wso2.carbon.relay.ExpandingMessageFormatter/
messageBuilder contentType=text/plain
class=org.wso2.carbon.relay.BinaryRelayBuilder/


Thank you.

On Fri, Apr 24, 2015 at 2:43 PM, Navaneethan Pathmanathan 
navaneet...@wso2.com wrote:

 Looping Keerthika and Shakila

 On Fri, Apr 24, 2015 at 2:19 PM, Navaneethan Pathmanathan 
 navaneet...@wso2.com wrote:

 Hi all,

 I have tested Spotify ESB connector. There are two methods mentioned in
 [1] failed.

 [1] removeTracksOfCurrentUserWithMandatoryParameters and
 saveTracksOfCurrentUser

 Thank you





-- 
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :+94 (0) 770 760240
shak...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] Response body is discarded if HTTP status code of the response is 409 (Conflict)

2015-04-24 Thread Malaka Silva
Hi Carbon Team/Jayanga

Please find the PR in [1] for jira [2].

I have verified the scenario with callout mediator and seems to be working.

Can you please review and merge the change?

[1] https://github.com/wso2/wso2-axis2/pull/39
[2] https://wso2.org/jira/browse/ESBJAVA-3588

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/
http://wso2.com/about/team/malaka-silva/

Save a tree -Conserve nature  Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ESB Cron String for Scheduled tasks

2015-04-24 Thread Seshika Fernando
Hi,
I want to schedule a task to run a sequence everyday at midnight. I
provided the cron string as  0 0 * * * * . But this throws a runtime
exception which says that Support for specifying both a day-of-week AND a
day-of-month parameter is not implemented.

What does it expect? I tried 0 0 * * * ?. This is accepted, however, the
task does not run eventhough its accepted.

Any ideas?

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


[Dev] Any available module for jaggery to get oAuth tokens?

2015-04-24 Thread Dulitha Wijewantha
Hi guys,
Is there are any available module for jaggery (or Java) that can be called
to obtain oAuth 2 tokens from API Manager? I looked into the oauth module
[1] in jaggery but it doesn't seem to return refresh tokens.

My use-case is to obtain access/refresh tokens for Password/SAML Grant Type
from a Jaggery app.

[1] -
https://github.com/wso2/jaggery-extensions/blob/master/oauth/resources/org.jaggeryjs.modules.oauth/src/main/java/org/jaggeryjs/modules/oauth/OAuthHostObject.java

Cheers~

-- 
Dulitha Wijewantha (Chan)
Software Engineer - Mobile Development
WSO2 Inc
Lean.Enterprise.Middleware
 * ~Email   duli...@wso2.com duli...@wso2mobile.com*
*  ~Mobile +94712112165*
*  ~Website   dulitha.me http://dulitha.me*
*  ~Twitter @dulitharw https://twitter.com/dulitharw*
  *~Github @dulichan https://github.com/dulichan*
  *~SO @chan http://stackoverflow.com/users/813471/chan*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Faults in a ESB task best practice

2015-04-24 Thread Manuranga Perera
when we are using ESB Task what is the proper way to handle fault. If we
are using a proxy we have a associate fault sequence. but if you are
triggering a sequence we don't have that. what would be the best practice
handle faults.

-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB Cron String for Scheduled tasks

2015-04-24 Thread Nufail Mohamed
Hi,

The cron for everyday at midnight would be 0 0 0 * * ?.
You have to use '?' in one of day-of-week or day-of-month [1]

[1]
http://www.quartz-scheduler.org/documentation/quartz-2.x/tutorials/crontrigger


Regards,
Nufail

On Fri, Apr 24, 2015 at 3:41 PM, Seshika Fernando sesh...@wso2.com wrote:

 Hi,
 I want to schedule a task to run a sequence everyday at midnight. I
 provided the cron string as  0 0 * * * * . But this throws a runtime
 exception which says that Support for specifying both a day-of-week AND a
 day-of-month parameter is not implemented.

 What does it expect? I tried 0 0 * * * ?. This is accepted, however, the
 task does not run eventhough its accepted.

 Any ideas?

 seshi

 ___
 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] ESB Cron String for Scheduled tasks

2015-04-24 Thread Seshika Fernando
Thanks Nufail. It worked

On Fri, Apr 24, 2015 at 6:05 PM, Nufail Mohamed nuf...@wso2.com wrote:

 Hi,

 The cron for everyday at midnight would be 0 0 0 * * ?.
 You have to use '?' in one of day-of-week or day-of-month [1]

 [1]
 http://www.quartz-scheduler.org/documentation/quartz-2.x/tutorials/crontrigger


 Regards,
 Nufail

 On Fri, Apr 24, 2015 at 3:41 PM, Seshika Fernando sesh...@wso2.com
 wrote:

 Hi,
 I want to schedule a task to run a sequence everyday at midnight. I
 provided the cron string as  0 0 * * * * . But this throws a runtime
 exception which says that Support for specifying both a day-of-week AND a
 day-of-month parameter is not implemented.

 What does it expect? I tried 0 0 * * * ?. This is accepted, however,
 the task does not run eventhough its accepted.

 Any ideas?

 seshi

 ___
 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] Faults in a ESB task best practice

2015-04-24 Thread Isuru Udana
Hi Manu,

On Fri, Apr 24, 2015 at 7:14 PM, Manuranga Perera m...@wso2.com wrote:

 when we are using ESB Task what is the proper way to handle fault. If we
 are using a proxy we have a associate fault sequence. but if you are
 triggering a sequence we don't have that. what would be the best practice
 handle faults.

You can configure an error handling sequence for the triggered sequence
using the onError attribute.



 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com




-- 
*Isuru Udana*
Associate Technical Lead
WSO2 Inc.; http://wso2.com
email: isu...@wso2.com cell: +94 77 3791887
blog: http://mytecheye.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please Review and Merge the PR

2015-04-24 Thread Lakmali Baminiwatta
On 24 April 2015 at 17:05, Chamalee De Silva chama...@wso2.com wrote:

 This is the Fix PR [1] for the JIRA [2].

 Please review and merge.

 Reviewed and merged. Thanks.


 [1] https://github.com/wso2/carbon-apimgt/pull/229
 [2] https://wso2.org/jira/browse/APIMANAGER-3129

 --

 Chamalee De Silva

 Software Engineer | WSO2

 E:chama...@wso2.com nirosh...@wso2.com
 M :0711540738| http://wso2.com http://wso2.com/




-- 
Lakmali Baminiwatta
 Senior Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
mobile:  +94 71 2335936
blog : lakmali.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please Review and Merge

2015-04-24 Thread Thusitha Thilina Dayaratne
Hi,

Please review and merged the pull request[1]
[1] https://github.com/wso2/product-as/pull/55

Thanks
Best Regards
/Thusitha
-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Any available module for jaggery to get oAuth tokens?

2015-04-24 Thread Madusanka Premaratne
Hi Dulitha,
You can call to https://localhost:8243/token to get both refresh_token and
access_token
Have a look at the following curl command
curl -k -d grant_type=passwordusername=adminpassword=admin -H
Authorization: Basic
bmU5X015dDNKWGxuTDRNWjhrbnlFdDM3cGRvYTpTSEtCOTZoX0RjeGVlMnQ0eG9JZlhMUERRRHdh,
Content-Type: application/x-www-form-urlencoded
https://localhost:8243/token

Thanks,
Madusanka

On Fri, Apr 24, 2015 at 5:14 PM, Dulitha Wijewantha duli...@wso2.com
wrote:

 Hi guys,
 Is there are any available module for jaggery (or Java) that can be called
 to obtain oAuth 2 tokens from API Manager? I looked into the oauth module
 [1] in jaggery but it doesn't seem to return refresh tokens.

 My use-case is to obtain access/refresh tokens for Password/SAML Grant
 Type from a Jaggery app.

 [1] -
 https://github.com/wso2/jaggery-extensions/blob/master/oauth/resources/org.jaggeryjs.modules.oauth/src/main/java/org/jaggeryjs/modules/oauth/OAuthHostObject.java

 Cheers~

 --
 Dulitha Wijewantha (Chan)
 Software Engineer - Mobile Development
 WSO2 Inc
 Lean.Enterprise.Middleware
  * ~Email   duli...@wso2.com duli...@wso2mobile.com*
 *  ~Mobile +94712112165 %2B94712112165*
 *  ~Website   dulitha.me http://dulitha.me*
 *  ~Twitter @dulitharw https://twitter.com/dulitharw*
   *~Github @dulichan https://github.com/dulichan*
   *~SO @chan http://stackoverflow.com/users/813471/chan*

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




-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] https://www.facebook.com/maduzanka [image: Twitter]
https://twitter.com/rmmpremaratne [image: Google Plus]
https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub [image:
Linkedin] http://lk.linkedin.com/in/madusanka/ [image: Instagram]
http://instagram.com/madusankapremaratne [image: Skype]
http://@rmmpremaratne
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Some configuration menu options are missing in tenant mode

2015-04-24 Thread Kishanthan Thangarajah
I think the require-permission element value should start with
/permission/ , not  /permissions/.

May be you are having different component.xml in ESB 4.9 than what is found
in ESB 4.8.1, because this issue is not there in that version.

On Thu, Apr 23, 2015 at 3:26 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Carbon Team,

 With latest carbon release BAM Server Profile link is missing in tenant
 mode.

 Following is the configuration given with BAM UI Component. Do we need to
 do any additional this to make it visible to tenant admin?

 Related jira [1]

 component xmlns=http://products.wso2.org/carbon;
 !-- sample menu configuration --
 menus
 menu
 idbam_mediation_data_agent/id
 i18n-keyconfig.menu.text/i18n-key

 i18n-bundleorg.wso2.carbon.mediator.bam.config.ui.i18n.Resources/i18n-bundle
 parent-menuconfigure_menu/parent-menu
 link../bam-mediator-config/bam_server_profiles.jsp/link
 regionregion1/region
 order35/order
 style-classmanage/style-class

 icon../bam-mediator-config/images/activity_monitor_icon.png/icon
 require-super-tenantfalse/require-super-tenant

 require-permission/permissions/admin/manage/require-permission
 /menu
 /menus
 /component

 [1] https://wso2.org/jira/browse/ESBJAVA-3536

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print this
 email only if it is absolutely necessary.




-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com*
Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] Disable ESB synapse/registry caching

2015-04-24 Thread Akila Ravihansa Perera
Hi,

Can someone please tell me how to disable ESB caching?

I faced following issues while creating some sequences / APIs.

1. I've localEntries in my API which points to JavaScript files. Whenever I
make a change to a JS file, it does not get reflected when I call the API.
I've to goto admin console and save the localEntry again to force update
the JS file changes. Is there a way to avoid this?


2. While I was making some changes to a sequence file, ESB stopped
reflecting the latest changes even though I could see the sequence updated
message in the carbon log. This is very intermittent but when it happens I
had to restart ESB to reflect the latest changes to my sequence.


Would appreciate any help.

Thanks.

-- 
Akila Ravihansa Perera
Software Engineer, WSO2

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


Re: [Dev] Connection refused error on AM UI Integration Tests

2015-04-24 Thread Krishantha Samaraweera
On Sat, Apr 25, 2015 at 10:11 AM, Krishantha Samaraweera 
krishan...@wso2.com wrote:



 On Sat, Apr 25, 2015 at 9:09 AM, Rasika Perera rasi...@wso2.com wrote:

 According to the offline discussion I had with Krishantha, I was able to
 run the test case correctly. Followings are the concerns;

 mvn test -Dtest=TestCaseClassName is not running the test case with
 expected environment configurations. Hence you need to comment out other
 test cases in testng.xml or tesng-server-mgt.xml and execute mvn test.


  mvn test -Dtest=TestCaseClassName works only if you use include and
 exclude test case name pattern in surefire plugin. All integration tests
 are configured and managed though testng.xml as below in surefire.

  suiteXmlFiles
  suiteXmlFilesrc/test/resources/testng1.xml/suiteXmlFile
  suiteXmlFilesrc/test/resources/testng2.xml/suiteXmlFile
  /suiteXmlFiles

 The command you have tried will never execute any tests.


Note that this is the default behaviour of TestNG and Surefire.

Thanks,
Krishantha.


 Thanks,
 Krishantha.


 Further I downgraded into FF v.24.

 Thank you,
 Rasika

 On Mon, Apr 20, 2015 at 8:08 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 This seems to be firefox and selenium incompatibility issue. Can you try
 out with Firefox 21

 You can set the -Dwebdriver.firefox.bin=/path/to/firefox/binary property
 in order to set the selenium to use a different version of Firefox in your
 machine.

 e.g. mvn clean install
 -Dwebdriver.firefox.bin=/home/host/software/firefox/firefox-bin

 Thanks,

 Krishantha.

 On Mon, Apr 20, 2015 at 8:00 PM, Rasika Perera rasi...@wso2.com wrote:

 Hi Krishantha,

 Herewith attached the `automation.log`. I ran surefire plugin with
 debug mode. Complete terminal output is also attached.

 [2015-04-20 19:00:48,001]  INFO
 {org.wso2.carbon.automation.api.clients.authenticators.AuthenticatorClient}
 -  Login Successful
 [2015-04-20 19:00:48,007]  INFO
 {org.wso2.carbon.automation.core.BrowserManager} -  Test runs on
 firefoxbrowser
 org.openqa.selenium.firefox.NotConnectedException: Unable to connect to
 host 127.0.0.1 on port 7055 after 45000 ms.

 I am using firefox 36. When checking on
 Preferences-AddOns-Extensions-FireFox WebDriver v2.31 it was disabled
 mentioning This is incompatible with Firefox 36.

 Then I looked into selenium version on test automation pom.xml, and it
 was 2.37. Recommended FF version for this was FF v.24[1].

 Then downloaded FF v.24. Still couldn't get into it. It is redirecting
 to the correct publisher url but prompting security certificate exception
 infinitely(adding exception doesn't work).

 [1]. https://code.google.com/p/selenium/issues/detail?id=6780


 On Mon, Apr 20, 2015 at 11:43 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Rasika,

 Can you send the full automation log which is at
 /target/log/automation.log

 Did you debug the test case ? its seems admin user cannot login to the
 server, please check whether your server is started properly.

 Thanks,
 Krishantha.

 On Mon, Apr 20, 2015 at 11:29 AM, Rasika Perera rasi...@wso2.com
 wrote:

 ​Hi all,

 I am writing a test ​case[1] for ui integration in APIM. When running
 the test case, I am getting a connection refused error[2]. Any idea what
 could possibly go wrong?

 [1] TestCase.java
 public class ​TestCase  extends AMIntegrationUiTestBase{
   private WebDriver driver;
   private String baseUrl;
   private boolean acceptNextAlert = true;
   private StringBuffer verificationErrors = new StringBuffer();
   private WebDriverWait wait;

   @BeforeClass(alwaysRun = true)
   public void init() throws Exception {
 super.init(0);
 driver = BrowserManager.getWebDriver();
 wait = new WebDriverWait(driver, 60);
   }

   @Test(groups = wso2.am, description = ​Check for functionality
 A)
   public void test​FunctionalityA() throws Exception {
 ​
 ​
 ​//
   }

   @AfterClass(alwaysRun = true)
   public void tearDown() throws Exception {
   if (driver != null) {
   driver.quit();
   }
   super.cleanup();
}

 ​[2] Error Log

 org.apache.axis2.AxisFault: Connection refused
 at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
 at
 org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:197)
 at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:450)
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:277)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
 at
 

Re: [Dev] Connection refused error on AM UI Integration Tests

2015-04-24 Thread Krishantha Samaraweera
On Sat, Apr 25, 2015 at 9:09 AM, Rasika Perera rasi...@wso2.com wrote:

 According to the offline discussion I had with Krishantha, I was able to
 run the test case correctly. Followings are the concerns;

 mvn test -Dtest=TestCaseClassName is not running the test case with
 expected environment configurations. Hence you need to comment out other
 test cases in testng.xml or tesng-server-mgt.xml and execute mvn test.


 mvn test -Dtest=TestCaseClassName works only if you use include and
exclude test case name pattern in surefire plugin. All integration tests
are configured and managed though testng.xml as below in surefire.

 suiteXmlFiles
 suiteXmlFilesrc/test/resources/testng1.xml/suiteXmlFile
 suiteXmlFilesrc/test/resources/testng2.xml/suiteXmlFile
 /suiteXmlFiles

The command you have tried will never execute any tests.

Thanks,
Krishantha.


 Further I downgraded into FF v.24.

 Thank you,
 Rasika

 On Mon, Apr 20, 2015 at 8:08 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 This seems to be firefox and selenium incompatibility issue. Can you try
 out with Firefox 21

 You can set the -Dwebdriver.firefox.bin=/path/to/firefox/binary property
 in order to set the selenium to use a different version of Firefox in your
 machine.

 e.g. mvn clean install
 -Dwebdriver.firefox.bin=/home/host/software/firefox/firefox-bin

 Thanks,

 Krishantha.

 On Mon, Apr 20, 2015 at 8:00 PM, Rasika Perera rasi...@wso2.com wrote:

 Hi Krishantha,

 Herewith attached the `automation.log`. I ran surefire plugin with debug
 mode. Complete terminal output is also attached.

 [2015-04-20 19:00:48,001]  INFO
 {org.wso2.carbon.automation.api.clients.authenticators.AuthenticatorClient}
 -  Login Successful
 [2015-04-20 19:00:48,007]  INFO
 {org.wso2.carbon.automation.core.BrowserManager} -  Test runs on
 firefoxbrowser
 org.openqa.selenium.firefox.NotConnectedException: Unable to connect to
 host 127.0.0.1 on port 7055 after 45000 ms.

 I am using firefox 36. When checking on
 Preferences-AddOns-Extensions-FireFox WebDriver v2.31 it was disabled
 mentioning This is incompatible with Firefox 36.

 Then I looked into selenium version on test automation pom.xml, and it
 was 2.37. Recommended FF version for this was FF v.24[1].

 Then downloaded FF v.24. Still couldn't get into it. It is redirecting
 to the correct publisher url but prompting security certificate exception
 infinitely(adding exception doesn't work).

 [1]. https://code.google.com/p/selenium/issues/detail?id=6780


 On Mon, Apr 20, 2015 at 11:43 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Rasika,

 Can you send the full automation log which is at
 /target/log/automation.log

 Did you debug the test case ? its seems admin user cannot login to the
 server, please check whether your server is started properly.

 Thanks,
 Krishantha.

 On Mon, Apr 20, 2015 at 11:29 AM, Rasika Perera rasi...@wso2.com
 wrote:

 ​Hi all,

 I am writing a test ​case[1] for ui integration in APIM. When running
 the test case, I am getting a connection refused error[2]. Any idea what
 could possibly go wrong?

 [1] TestCase.java
 public class ​TestCase  extends AMIntegrationUiTestBase{
   private WebDriver driver;
   private String baseUrl;
   private boolean acceptNextAlert = true;
   private StringBuffer verificationErrors = new StringBuffer();
   private WebDriverWait wait;

   @BeforeClass(alwaysRun = true)
   public void init() throws Exception {
 super.init(0);
 driver = BrowserManager.getWebDriver();
 wait = new WebDriverWait(driver, 60);
   }

   @Test(groups = wso2.am, description = ​Check for functionality
 A)
   public void test​FunctionalityA() throws Exception {
 ​
 ​
 ​//
   }

   @AfterClass(alwaysRun = true)
   public void tearDown() throws Exception {
   if (driver != null) {
   driver.quit();
   }
   super.cleanup();
}

 ​[2] Error Log

 org.apache.axis2.AxisFault: Connection refused
 at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
 at
 org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:197)
 at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:450)
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:277)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
 at
 org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.login(AuthenticationAdminStub.java:659)
 at
 org.wso2.carbon.automation.api.clients.authenticators.AuthenticatorClient.login(AuthenticatorClient.java:59)
 at
 

Re: [Dev] [ESB] Disable ESB synapse/registry caching

2015-04-24 Thread Chanaka Fernando
Hi Akila,

You cannot disable the ESB registry cache, but you can increase/decrease
the cache timeout with the following parameter in
ESB_HOME/repository/deployment/server/synapse-configs/default/registry.xml
file to change the cache timeout. Having a very low number may affect the
performance since it will increase the number of database interactions when
the cache is expired.

!-- Configured for 1 second --
parameter name=cachableDuration1000/parameter

If you have saved your resources (js files) in the config or governance
registry, then those changes will be reflected immediately once you change
them from the management console. That would be the better approach instead
of using local entries.

Thanks,
Chanaka


On Sat, Apr 25, 2015 at 6:10 AM, Akila Ravihansa Perera raviha...@wso2.com
wrote:

 Hi,

 Can someone please tell me how to disable ESB caching?

 I faced following issues while creating some sequences / APIs.

 1. I've localEntries in my API which points to JavaScript files. Whenever
 I make a change to a JS file, it does not get reflected when I call the
 API. I've to goto admin console and save the localEntry again to force
 update the JS file changes. Is there a way to avoid this?


 2. While I was making some changes to a sequence file, ESB stopped
 reflecting the latest changes even though I could see the sequence updated
 message in the carbon log. This is very intermittent but when it happens I
 had to restart ESB to reflect the latest changes to my sequence.


 Would appreciate any help.

 Thanks.

 --
 Akila Ravihansa Perera
 Software Engineer, WSO2

 Blog: http://ravihansa3000.blogspot.com




-- 
--
Chanaka Fernando
Senior 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] Connection refused error on AM UI Integration Tests

2015-04-24 Thread Rasika Perera
According to the offline discussion I had with Krishantha, I was able to
run the test case correctly. Followings are the concerns;

mvn test -Dtest=TestCaseClassName is not running the test case with
expected environment configurations. Hence you need to comment out other
test cases in testng.xml or tesng-server-mgt.xml and execute mvn test.

Further I downgraded into FF v.24.

Thank you,
Rasika

On Mon, Apr 20, 2015 at 8:08 PM, Krishantha Samaraweera krishan...@wso2.com
 wrote:

 This seems to be firefox and selenium incompatibility issue. Can you try
 out with Firefox 21

 You can set the -Dwebdriver.firefox.bin=/path/to/firefox/binary property
 in order to set the selenium to use a different version of Firefox in your
 machine.

 e.g. mvn clean install
 -Dwebdriver.firefox.bin=/home/host/software/firefox/firefox-bin

 Thanks,

 Krishantha.

 On Mon, Apr 20, 2015 at 8:00 PM, Rasika Perera rasi...@wso2.com wrote:

 Hi Krishantha,

 Herewith attached the `automation.log`. I ran surefire plugin with debug
 mode. Complete terminal output is also attached.

 [2015-04-20 19:00:48,001]  INFO
 {org.wso2.carbon.automation.api.clients.authenticators.AuthenticatorClient}
 -  Login Successful
 [2015-04-20 19:00:48,007]  INFO
 {org.wso2.carbon.automation.core.BrowserManager} -  Test runs on
 firefoxbrowser
 org.openqa.selenium.firefox.NotConnectedException: Unable to connect to
 host 127.0.0.1 on port 7055 after 45000 ms.

 I am using firefox 36. When checking on
 Preferences-AddOns-Extensions-FireFox WebDriver v2.31 it was disabled
 mentioning This is incompatible with Firefox 36.

 Then I looked into selenium version on test automation pom.xml, and it
 was 2.37. Recommended FF version for this was FF v.24[1].

 Then downloaded FF v.24. Still couldn't get into it. It is redirecting to
 the correct publisher url but prompting security certificate exception
 infinitely(adding exception doesn't work).

 [1]. https://code.google.com/p/selenium/issues/detail?id=6780


 On Mon, Apr 20, 2015 at 11:43 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Rasika,

 Can you send the full automation log which is at
 /target/log/automation.log

 Did you debug the test case ? its seems admin user cannot login to the
 server, please check whether your server is started properly.

 Thanks,
 Krishantha.

 On Mon, Apr 20, 2015 at 11:29 AM, Rasika Perera rasi...@wso2.com
 wrote:

 ​Hi all,

 I am writing a test ​case[1] for ui integration in APIM. When running
 the test case, I am getting a connection refused error[2]. Any idea what
 could possibly go wrong?

 [1] TestCase.java
 public class ​TestCase  extends AMIntegrationUiTestBase{
   private WebDriver driver;
   private String baseUrl;
   private boolean acceptNextAlert = true;
   private StringBuffer verificationErrors = new StringBuffer();
   private WebDriverWait wait;

   @BeforeClass(alwaysRun = true)
   public void init() throws Exception {
 super.init(0);
 driver = BrowserManager.getWebDriver();
 wait = new WebDriverWait(driver, 60);
   }

   @Test(groups = wso2.am, description = ​Check for functionality A)
   public void test​FunctionalityA() throws Exception {
 ​
 ​
 ​//
   }

   @AfterClass(alwaysRun = true)
   public void tearDown() throws Exception {
   if (driver != null) {
   driver.quit();
   }
   super.cleanup();
}

 ​[2] Error Log

 org.apache.axis2.AxisFault: Connection refused
 at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
 at
 org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:197)
 at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:450)
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:277)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
 at
 org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.login(AuthenticationAdminStub.java:659)
 at
 org.wso2.carbon.automation.api.clients.authenticators.AuthenticatorClient.login(AuthenticatorClient.java:59)
 at
 org.wso2.carbon.automation.core.utils.environmentutils.EnvironmentBuilder.loginSetup(EnvironmentBuilder.java:520)
 at
 org.wso2.carbon.automation.core.utils.environmentutils.EnvironmentBuilder.am
 (EnvironmentBuilder.java:453)
 at
 org.wso2.carbon.am.integration.ui.AMIntegrationUiTestBase.init(AMIntegrationUiTestBase.java:44)
 at
 org.wso2.carbon.am.integration.ui.APIMANAGER3452IncorrectMethodInfoThrottlingTab.init(
 ​
 TestCase
 .java:47)
 Caused by: java.net.ConnectException: Connection refused
 at 

Re: [Dev] App Manager 1.0 - release test status update

2015-04-24 Thread Asanthi Kulasinghe
*Update for 24/04/2015*

*Covered areas:*
1. Statistics publishing with BAM (2.5.0)
2. Long running test on the cluster setup (test in progress)

*Reported Issues:*

*https://wso2.org/jira/browse/APPM-824
https://wso2.org/jira/browse/APPM-824https://wso2.org/jira/browse/APPM-825
https://wso2.org/jira/browse/APPM-825https://wso2.org/jira/browse/APPM-817
https://wso2.org/jira/browse/APPM-817https://wso2.org/jira/browse/APPM-818
https://wso2.org/jira/browse/APPM-818https://wso2.org/jira/browse/APPM-819
https://wso2.org/jira/browse/APPM-819https://wso2.org/jira/browse/APPM-820
https://wso2.org/jira/browse/APPM-820https://wso2.org/jira/browse/APPM-821
https://wso2.org/jira/browse/APPM-821https://wso2.org/jira/browse/APPM-822
https://wso2.org/jira/browse/APPM-822https://wso2.org/jira/browse/APPM-823
https://wso2.org/jira/browse/APPM-823https://wso2.org/jira/browse/APPM-826
https://wso2.org/jira/browse/APPM-826https://wso2.org/jira/browse/APPM-827
https://wso2.org/jira/browse/APPM-827https://wso2.org/jira/browse/APPM-828
https://wso2.org/jira/browse/APPM-828*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Faults in a ESB task best practice

2015-04-24 Thread Manuranga Perera
thanks it worked

On Fri, Apr 24, 2015 at 7:21 PM, Isuru Udana isu...@wso2.com wrote:

 Hi Manu,

 On Fri, Apr 24, 2015 at 7:14 PM, Manuranga Perera m...@wso2.com wrote:

 when we are using ESB Task what is the proper way to handle fault. If we
 are using a proxy we have a associate fault sequence. but if you are
 triggering a sequence we don't have that. what would be the best practice
 handle faults.

 You can configure an error handling sequence for the triggered sequence
 using the onError attribute.



 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com




 --
 *Isuru Udana*
 Associate Technical Lead
 WSO2 Inc.; http://wso2.com
 email: isu...@wso2.com cell: +94 77 3791887
 blog: http://mytecheye.blogspot.com/




-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon 4.4.0 is not starting on my computer

2015-04-24 Thread Kasun Bandara
Hi Madhuranga,


It seems to be an issue with the java version you are using (jdk1.7.0_71).
Try and use a newer version of jdk 1.7. (i.e It worked with jdk
1.7.0_75.jdk for me)


Thanks and regards,

Kasun

On Thu, Apr 23, 2015 at 1:29 PM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 Hi Madhuranga,

 This link might help you.

 http://stackoverflow.com/questions/17584495/unable-to-complete-the-scan-for-annotations-for-web-application-app-due-to-a

 Best Regards

 On Thu, Apr 23, 2015 at 12:40 PM, Thilini Cooray thili...@wso2.com
 wrote:

 Hi,

 It seems to be an issue with the starting of Tomcat 7 server in carbon
 4.4.0
 Several places such as [1] also have the same error in different
 scenarios. They have mentioned that reason can be an issue with Tomcat 7.

 [1]
 http://stackoverflow.com/questions/28102134/a-child-container-failed-during-start-java-util-concurrent-executionexception

 Thank you.


 On Thu, Apr 23, 2015 at 11:26 AM, Madhuranga Bandara madhura...@wso2.com
  wrote:

 Hi Tharik,

 my JAVA_HOME is set to jdk 1.7.

 Macbook-Pro:~ madhuranga$ java -version
 java version 1.7.0_71
 Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
 Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

 *Madhuranga Sampath Bandara*
 Software Engineer

 WSO2, Inc.;http://wso2.com/
 http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ
 lean.enterprise.middleware
 Mobile: +94722241065

 On Thu, Apr 23, 2015 at 10:58 AM, Tharik Kanaka tha...@wso2.com wrote:

 Hi Madhuranga.

 Is your JAVA_HOME set to jdk 1.7?
 Since you could run carbon 4.2.0 it seems like JAVA_HOME is set to jdk
 1.6 and carbon 4.4.0 supports jdk 1.7 onwards.

 Regards,

 On Thu, Apr 23, 2015 at 10:43 AM, Madhuranga Bandara 
 madhura...@wso2.com wrote:

 Hi Lasitha,

 JAVA HOME is correct.
 I can run carbon 4.2.0. But the issue is with 4.4.0.

 *Madhuranga Sampath Bandara*
 Software Engineer

 WSO2, Inc.;http://wso2.com/
 http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ
 lean.enterprise.middleware
 Mobile: +94722241065

 On Thu, Apr 23, 2015 at 10:24 AM, Lasitha Wattaladeniya 
 lasit...@wso2.com wrote:

 Hi Maduranga,

 Is your JAVA_HOME variable value is correct ?

 On Thu, Apr 23, 2015 at 10:22 AM, Madhuranga Bandara 
 madhura...@wso2.com wrote:

 Hi all,

 When i try to start the carbon it gives me an exception and the
 product it not starting.
 I'm using the binary file.
 Given below is the cmd output.

 JAVA_HOME environment variable is set to
 /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home
 CARBON_HOME environment variable is set to
 /Users/madhuranga/Applications/wso2carbon-4.4.0
 [2015-04-23 09:51:30,672]  INFO
 {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Starting WSO2
 Carbon...
 [2015-04-23 09:51:30,673]  INFO
 {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Operating System 
 :
 Mac OS X 10.9.3, x86_64
 [2015-04-23 09:51:30,673]  INFO
 {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Home
 :
 /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre
 [2015-04-23 09:51:30,673]  INFO
 {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Version 
 :
 1.7.0_71
 [2015-04-23 09:51:30,674]  INFO
 {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java VM  
 :
 Java HotSpot(TM) 64-Bit Server VM 24.71-b01,Oracle Corporation
 [2015-04-23 09:51:30,674]  INFO
 {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Carbon Home  
 :
 /Users/madhuranga/Applications/wso2carbon-4.4.0
 [2015-04-23 09:51:30,674]  INFO
 {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Temp Dir
 :
 /Users/madhuranga/Applications/wso2carbon-4.4.0/tmp
 [2015-04-23 09:51:30,674]  INFO
 {org.wso2.carbon.core.internal.CarbonCoreActivator} -  User 
 :
 madhuranga, en-US, Asia/Colombo
 [2015-04-23 09:51:30,795]  WARN
 {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} -
  Carbon is configured to use the default keystore (wso2carbon.jks). To
 maximize security when deploying to a production environment, configure 
 a
 new keystore with a unique password in the production server profile.
 [2015-04-23 09:51:30,795]  WARN
 {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} -
  Swap Memory size (MB): 1024 of the system is below the recommended 
 minimum
 size :2047
 [2015-04-23 09:51:33,856]  INFO
 {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} -  
 Configured
 Registry in 51ms
 [2015-04-23 09:51:33,943]  INFO
 {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} -
  Registry Mode: READ-WRITE
 [2015-04-23 09:51:33,980]  INFO
 {org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} -  Carbon
 UserStoreMgtDSComponent activated successfully.
 [2015-04-23 09:51:34,754] ERROR
 {org.apache.catalina.core.ContainerBase} -  A child container failed 
 during
 start
 

[Dev] Review and merge

2015-04-24 Thread Damith Senanayake
Hi,

A fix for https://wso2.org/jira/browse/IDENTITY-3105 is available at
https://github.com/wso2/carbon-commons/pull/81. Please review and merge the
request.

-- 
*-Damith Senanayake-*
+94712205272
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge PR for APPM-735

2015-04-24 Thread Sajith Abeywardhana
Hi Dinusha,

Please review and merge PR[1] for APPM-735[2]

[1]. https://github.com/wso2/carbon-appmgt/pull/37
[2]. https://wso2.org/jira/browse/APPM-735


*Sajith Abeywardhana* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka.
Mobile: +94772260485
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


[Dev] Can I compile WSO2 Identity Server with Xerces 2.11.0 / xml-apis 1.4.01?

2015-04-24 Thread Michał Drozdowicz
Hello,

I'm writing an XACML attribute finder for the Identity Server, the problem
I have is that some of the libraries my code depends on require Xerces
2.11.0 and xml-apis 1.4.01.

I tried adding my plugin with all dependencies to IS 5.0.0 downloaded from
the project site, but received errors from my code indicating that it used
an older version of Xerces/xml-apis.

Afterwards, I went through the steps for building from source, changing the
version of xerces and xml-apis to non-wso2 versions 2.11.0 and 1.4.01 but
eventually I couldn't start the server - getting carbon.core.ui throwing
errors.

I can provide more detailed information about errors I was getting, but I'm
wondering if anyone has already tried upgrading IS to these versions, or
conversely it is known to be a very hard task.

Warm regards,

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


Re: [Dev] VFS Inbound Testing Scenario

2015-04-24 Thread Malaka Silva
Hi Shakila,

Is seems like a warning given by dep-sync. However do you get the artifacts
gets deployed to worker nodes?

How many worker nodes did you configure?

On Fri, Apr 24, 2015 at 11:13 AM, Shakila Sivagnanarajah shak...@wso2.com
wrote:

 Hi all,

 I am doing the ESB task to test the VFS Inbound.
 I went through some portion of Carbon-Mediation code related to VFS and
 tested VFS file transfer functionality with Smooks mediator (Synapse Sample
 654) so far.

 From this testing, I got an idea of Smooks mediator and practically tested
 one of the use cases of VFS inbound.

 I have set up ESB worker/manager cluster without ELB. For this I referred
 document [1] and used Ngnix Load Balancer. And I used the ESB pack got from
 [2].

 [1]
 https://docs.google.com/a/wso2.com/document/d/1x80QfnBW09keGVYOi3MLruckXbIVp45vOj9deyF0l5I/edit?usp=sharing

 [2]
 https://svn.wso2.org/repos/wso2/people/ishan/dist/esb/4.9.0/wso2esb-4.9.0-M7.zip

 *Issues:*

- When I start Worker 1, I am getting the exception *Can't find a svn
action for svn output line : Updating 'repository/deployment/server'*
see in log [3].

 [3]

 [2015-04-24 10:15:56,155]  INFO - MemberUtils Added member: Host:
 mgt.esb.wso2.com, Remote Host:null, Port: 4100, HTTP:-1, HTTPS:-1,
 Domain: null, Sub-domain:null, Active:true
 [2015-04-24 10:16:04,676]  INFO - HazelcastClusteringAgent Hazelcast
 initialized in 8519ms
 [2015-04-24 10:16:04,696]  INFO - MemberUtils Added member:
 Host:10.100.5.171, Remote Host:null, Port: 4100, HTTP:8281, HTTPS:8244,
 Domain: wso2.esb.domain, Sub-domain:__$default, Active:true
 [2015-04-24 10:16:04,696]  INFO - HazelcastClusteringAgent Local member:
 [d795d8a2-f6da-491a-ad5f-fe2cfa82f950] - Host:10.100.5.171, Remote
 Host:null, Port: 4200, HTTP:8282, HTTPS:8245, Domain: wso2.esb.domain,
 Sub-domain:null, Active:true
 [2015-04-24 10:16:04,704]  INFO - MemberUtils Added member:
 Host:10.100.5.171, Remote Host:null, Port: 4200, HTTP:8282, HTTPS:8245,
 Domain: wso2.esb.domain, Sub-domain:__$default, Active:true
 [2015-04-24 10:16:04,960]  INFO - HazelcastClusteringAgent Cluster
 initialization completed
 [2015-04-24 10:16:04,968]  INFO - NioSelectorPool Using a shared selector
 for servlet write/read
 [2015-04-24 10:16:05,400]  INFO - NioSelectorPool Using a shared selector
 for servlet write/read
 [2015-04-24 10:16:05,470]  INFO - TaskServiceImpl Task service starting in
 CLUSTERED mode...
 [2015-04-24 10:16:05,510]  INFO - NTaskTaskManager Initialized task
 manager. Tenant [-1234]
 [2015-04-24 10:16:05,511]  INFO - ClusterGroupCommunicator Waiting for 2
 [ESB_TASK] task executor nodes...
 [2015-04-24 10:16:08,023]  WARN - SvnOutputParser Can't find a svn action
 for svn output line : Updating 'repository/deployment/server':


- When I shout down Worker 1, It says Error in waiting for task
[ESB_TASK] executor nodes: Hazelcast instance is not active!. See the  log
in [4].

 [4]

 [2015-04-24 10:26:54,215] ERROR - TasksDSComponent Error in intializing
 Tasks component: Error in waiting for task [ESB_TASK] executor nodes:
 Hazelcast instance is not active!
 org.wso2.carbon.ntask.common.TaskException: Error in waiting for task
 [ESB_TASK] executor nodes: Hazelcast instance is not active!
 at
 org.wso2.carbon.ntask.core.impl.clustered.ClusterGroupCommunicator.checkServers(ClusterGroupCommunicator.java:159)
 at
 org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl.runAfterRegistrationActions(TaskServiceImpl.java:324)
 at
 org.wso2.carbon.ntask.core.internal.TasksDSComponent.activate(TasksDSComponent.java:109)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:601)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 

Re: [Dev] Running changed code on Identity Server.

2015-04-24 Thread Tharik Kanaka
Hi damith,

I believe org.wso2.carbon.user.mgt.ui belongs to carbon-commons is updated
version 4.4.0 and carbon-identity has to be updated to use version 4.4.0.
The jar your dealing version 4.3.6, if you doing changes on a fork of
carbon-commons if you updated by pulling latest chages versions should be
resolved. Could you try by changing 4.3.6 versions to version 4.4.0?

Regards,

On Fri, Apr 24, 2015 at 11:20 AM, Damith Senanayake dami...@wso2.com
wrote:

 Hi,

 I have made some changes to the code in org.wso2.carbon.user.mgt.ui
 (specifically the bulk-import.jsp file in the web resources) and when I
 added the changed and compiled code to the IS 5.1.0_SNAPSHOT server, the
 package gets installed, and doesn't get activated. When ran an OSGI
 Diagnosis, it shows that some of the packages imported are missing. The
 steps and the output is as below.


1. change the version tag in the pom.xml in
org.wso2.carbon.user.mgt.ui to 4.3.6.SNAPSHOT
2. Create new patch folder in the instance of the IS
($carbonHome/repository/components/patches/patch)
3. copy the new org.wso2.carbon.user.mgt.ui_4.3.6.SNAPSHOT.jar to
the said patch folder.
4. start the server
5. check the active components to find that
org.wso2.carbon.user.mgt.ui is 'INSTALLED but not ACTIVE
6. run diagnosis on module to find the following output. :
1. reference:file:../plugins/org.wso2.carbon.user.mgt.ui_4.3.6.SNAPSHOT.jar
   [363]
 Direct constraints which are unresolved:
   Missing imported package
   org.wso2.carbon.user.mgt.stub_[4.4.0,4.5.0).
   Missing imported package
   org.wso2.carbon.user.mgt.stub.types.axis2_[4.4.0,4.5.0).
   Missing imported package
   org.wso2.carbon.user.mgt.stub.types.carbon_[4.4.0,4.5.0).
   Missing optionally imported package
   javax.activation_[1.1.0,2.0.0).

   7. Now, I changed the part in the pom.xml containing the
dependencies to not include the ;version= section. However, the same
results is shown.

 On a high level, due to this malfunction, the users and roles section of
 the management console is not shown. and manual navigating by typing the
 URL still shows null content.


 Any help and input regarding this will be highly appreciated. Thanks.


 --
 *-Damith Senanayake-*
 +94712205272

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




-- 

*Tharik Kanaka* | Associate Software Engineer

WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

Email: tha...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: MOTT Transport Implementation

2015-04-24 Thread Sriashalya Srivathsan
Looping to Dev

-- Forwarded message --
From: Chanaka Fernando chana...@wso2.com
Date: Fri, Apr 24, 2015 at 10:50 AM
Subject: Re: MOTT Transport Implementation
To: Sriashalya Srivathsan asha...@wso2.com


yeah you can


On Fri, Apr 24, 2015 at 10:50 AM, Sriashalya Srivathsan asha...@wso2.com
wrote:

 Can we use any ESB version(4.8.1)

 On Fri, Apr 24, 2015 at 10:41 AM, Chanaka Fernando chana...@wso2.com
 wrote:

 What is the issue you are facing? According to the results section, you
 could see logs in StockQuoteService side mentioning that message has been
 processed.

 On Fri, Apr 24, 2015 at 10:15 AM, Sriashalya Srivathsan asha...@wso2.com
  wrote:

 Hi Chanaka,
 I went through the 2nd Documentation. (
 https://docs.google.com/a/wso2.com/document/d/1G2sf8g27w8kFmfXVC6F7Kf7LTtZUdCcLRN5UnwdfIxQ/edit
 )
 I've started 4 instances, done all the configurations in ESB, added the
 proxy and sequences and finally I've got the UI also. But I'm struggling to
 understand how to get the final result. Do we have any other links related
 with ESB.


 Thanks,
 Rgds,

 On Wed, Apr 22, 2015 at 5:16 PM, Chanaka Fernando chana...@wso2.com
 wrote:

 The command may be different for the version you are using. That is
 fine. If the server is up and running, all good.

 On Wed, Apr 22, 2015 at 4:22 PM, Sriashalya Srivathsan 
 asha...@wso2.com wrote:

 netstat -an|grep 1883

 tcp6   0  0  *.1883 *.*
 LISTEN

 tcp4   0  0  *.1883 *.*
 LISTEN

 for the request *mosquitto -p 1883 -v*  ,getting the response *bash:
 mosquitto: command not found*,

 but it is running for *mosquitto_sub -h 127.0.0.1 -t topic*

 On Wed, Apr 22, 2015 at 3:28 PM, Chanaka Fernando chana...@wso2.com
 wrote:

 Hi Sriashalya,

 You need to have mosquitto broker installed in your machine to run
 the above command. Are you getting any error when you are executing the
 above command? You can check whether the port 1883 is up and running by
 using netstat command.

 Thanks,
 Chanaka

 On Wed, Apr 22, 2015 at 10:29 AM, Sriashalya Srivathsan 
 asha...@wso2.com wrote:

 Hi Chanaka,
 I've gone through your documentation. I have some issues to be
 solved.
 I followed the documentation (
 http://www.xappsoftware.com/wordpress/2014/10/30/install-mosquitto-on-mac-os-x/)
 and I've done with that. I can have two instances and I can send the
 message from one to other. It seems MQTT Broker was installed properly. 
 But
 I couldn't run the command

 mosquitto -p 1883 -v (
 https://docs.google.com/a/wso2.com/document/d/15F0FCJLTfTcjpflYjJE__lyRQ7SYrY28nz8Zd8-2AHc/edit
 ).


 Do you have any suggestion regarding this?






 --
 S.Sriashalya,
 Associate Software Engineer,
 WSO2.




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






 --
 S.Sriashalya,
 Associate Software Engineer,
 WSO2.




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






 --
 S.Sriashalya,
 Associate Software Engineer,
 WSO2.




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






 --
 S.Sriashalya,
 Associate Software Engineer,
 WSO2.




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






-- 
S.Sriashalya,
Associate Software Engineer,
WSO2.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] API resource mis-match handler

2015-04-24 Thread Akila Ravihansa Perera
Hi,

I'm trying to configure the _resource_mismatch_handler_ in ESB. I noticed
that it gets triggered only when there is a mis-match for a resource in an
already existing API context. It doesn't get triggered if a request is sent
for a non-existing API context.

Is this the expected behavior? Is there any way to configure the mis-match
handler for a non-existing API context?

Thanks.

-- 
Akila Ravihansa Perera
Software Engineer, WSO2

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