[Dev] Impact on releasing G-Reg 5.0.0-beta on carbon-commons 4.4.4 or 4.5.0(to be released)

2015-08-05 Thread Prasanna Dangalla
Hi all,

Since carbon-commons 4.4.4 is released, if carbon-identity next
release(4.5.4) can release on top of carbon-commons 4.4.4, carbon-registry,
carbon-governance and product greg can be released using those versions.
(This has a less impact on G-Reg 5.0.0-beta release).

If carbon-identity releases on top of carbon-commons 4.5.0 (which is not
released yet), carbon-registry has to release using carbon-commons 4.5.0
and carbon-identity next release (4.5.0) versions. This will delay the
G-reg 5.0.0-beta release and this will introduce carbon-identity API
changes as well.

IMO we should release on carbon-commons 4.4.4 and a carbon-identity next
release (4.5.4).

Thanks
--
Prasanna Dangalla
Software Engineer, WSO2, Inc.; http://wso2.com/
lean.enterprise.middleware

cell: +94 777 55 80 30 | +94 718 11 27 51
twitter: @prasa77
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pause/restart when processing a large file

2015-08-05 Thread Malaka Silva
Hi Rudy,

I am afraid currently this is not supported out of the box.

However you can achieve your requirement with the following solution.

You can split the file and put in a separate folder (One entry in a file).
eg:- VFS Listerner [3] -> Iterator mediator [4] -> File Connector [1][2]

Take one file and process it. eg:- VFS listener [3]

Following doc links will help you to do this.

[1]
https://storepreview.wso2.com/store/assets/esbconnector/f0550184-88c4-4d5e-b73f-ea51b1b5ab98
[2]
https://docs.wso2.com/display/ESBCONNECTORS/Working+with+the+File+Connector#WorkingwiththeFileConnector-create
[3] https://docs.wso2.com/display/ESB481/VFS+Transport
[4] https://docs.wso2.com/display/ESB481/Iterate+Mediator


On Wed, Aug 5, 2015 at 8:52 PM, Rudy Hilado 
wrote:

>
>
> Is it possible in the WSO2 ESB to process a large file (with each line
> representing a single record/message), and stop or pause the processing
> within the file, then restart where it left off? (using the Smooks mediator
> and/or Iterate mediator, or any other mechanism)
>
> It appears that if you are processing a large file (say with 10K entries)
> you cannot stop or pause the processing (or if the ESB is brought down in
> the middle of processing the file), and then restart where it was stopped.
> Upon restarting either the whole file has to be reprocessed, or the file is
> dumped to the error folder and skipped. Is this correct?
>
> Thanks for any help on this.
>
> - Rudy
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Best Regards,

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

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


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


Re: [Dev] [GSoC-2015] Proposal 6- AppFactory Command Line Tool

2015-08-05 Thread Fathima Dilhasha
Hi,

*Progress Update*

I have implemented session storage for the CLI Tool.

The git repository can be found at [1]

A demo of the tool can be found at [2]


[1] https://github.com/Dilhasha/AppFacCLI
[2]
https://drive.google.com/file/d/0B5jf9n7hxy8YdHBseGdGTmlKclk/view?usp=sharing


Your feedback and suggestions are highly appreciated.

Thanks.
Regards,
Dilhasha


Fathima Dilhasha Nazeer 
(M.N.F.Dilhasha)
Undergraduate | Department of Computer Science and Engineering
University of Moratuwa
Sri Lanka

On Sun, Aug 2, 2015 at 11:25 PM, Fathima Dilhasha 
wrote:

> Hi,
>
> *Progress Update*
>
> I have implemented flag extraction and the CLI Tool support login, app
> creation, listing of app details, listing of versions.
>
> Following are the next plans.
>
>- Allowing cookie and username storage
>- Implement "Triggering a build"
>
>
> You can find the git repository at [1]
> 
> Executables can be found at [2]
> 
>
> [1] https://github.com/Dilhasha/AppFacCLI
> [2]
> https://drive.google.com/folderview?id=0B5jf9n7hxy8YfjJ4NnFWY0pXYklIMkFfNnNHSFF5bXB3UjE2eUZjdVJacGM1TDc3Vk4wY1E&usp=sharing
>
> Your feedback and suggestions on these are highly appreciated.
>
> Thanks.
> Regards,
> Dilhasha
>
>
> Fathima Dilhasha Nazeer 
> (M.N.F.Dilhasha)
> Undergraduate | Department of Computer Science and Engineering
> University of Moratuwa
> Sri Lanka
>
> On Mon, Jul 6, 2015 at 9:22 AM, Fathima Dilhasha 
> wrote:
>
>> Hi,
>>
>> *Progress Update*
>>
>> I have added API calls for listing applications and versions to the CLI
>> tool. I have also added error handling of responses. I have to complete the
>> flag extractor and continue to other commands.
>>
>> You can find the git repository at [1]
>> 
>> Executables can be found at [2]
>> 
>>
>> [1] https://github.com/Dilhasha/AppFacCLI
>> [2]
>> https://drive.google.com/folderview?id=0B5jf9n7hxy8YfjJ4NnFWY0pXYklIMkFfNnNHSFF5bXB3UjE2eUZjdVJacGM1TDc3Vk4wY1E&usp=sharing
>>
>> Please check these out and provide your feedback and suggestions on these.
>>
>> Thanks.
>> Regards,
>> Dilhasha
>>
>> Fathima Dilhasha Nazeer 
>> (M.N.F.Dilhasha)
>> Undergraduate | Department of Computer Science and Engineering
>> University of Moratuwa
>> Sri Lanka
>>
>> On Mon, Jun 29, 2015 at 10:26 PM, Fathima Dilhasha <
>> dilhasha@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> As per the discussion with Dimuthu, following are the suggested commands
>>> to be implemented as next step.
>>>
>>> 1. *Queue a build*
>>>
>>> Let user wait after a "triggerBuild" command and retrieve & show the
>>> build logs to from jenkins. Check for the "Current build id" and compare
>>> that to see if build successful. If successful, let user know that it is
>>> successful.
>>>
>>> 2. Show a* list of applications* of user
>>>
>>> 3. Show a* list of versions* of an application
>>>
>>> 4. Allow user to run *"triggerBuild" in background *i.e. without
>>> recieving any success or failure notifications and logs.
>>>
>>> Thanks.
>>> Regards,
>>> Dilhasha
>>>
>>>
>>> Fathima Dilhasha Nazeer 
>>> (M.N.F.Dilhasha)
>>> Undergraduate | Department of Computer Science and Engineering
>>> University of Moratuwa
>>> Sri Lanka
>>>
>>> On Mon, Jun 29, 2015 at 7:47 PM, Fathima Dilhasha <
>>> dilhasha@gmail.com> wrote:
>>>
 Hi,

 *Notes from Progress Discussion*

 1. Use a flag extractor instead of prompting for parameters for each
 command.

 2. Rather than requesting user for a complete username, request for the
 username and then the organization.

 e.g. Instead of expecting "dilhasha.wso2.com@dilhashan" prompt for
 user name which is "dilha...@wso2.com" and then organization
 "dilhashan"

 Thanks.
 Regards,
 Dilhasha


 Fathima Dilhasha Nazeer 
 (M.N.F.Dilhasha)
 Undergraduate | Department of Computer Science and Engineering
 University of Moratuwa
 Sri Lanka

 On Fri, Jun 26, 2015 at 8:28 AM, Fathima Dilhasha <
 dilhasha@gmail.com> wrote:

> Hi,
>
> *Progress Update*
>
> I have added API calls for login and triggering a build to the CLI
> tool. And I'm currently working on setting up the flags for the commands
> and presenting the results in a good format.
>
> You can find the git repository at [1]
> 
> The executables ca

Re: [Dev] Do we need to check active subscriptions/bookmarks etc.. before changing LC state from published to X

2015-08-05 Thread Dakshika Jayathilaka
Hi All,

IMO we need to provide forceful delete option for relevant user levels(for
admin). In that case all subscribed users need to get an notification from
store.

from UX perspective this is bit doubtful situation. In certain scenarios we
can't allow to have forceful delete option. ex If subscriber with paid
subscription we can't allow to have forceful action with the middle of
subscription period. IMO we can't cater for all possible scenarios. so we
need to choose how we are going to support within generic use cases.

Regards,

*Dakshika Jayathilaka*
PMC Member & Committer of Apache Stratos
Senior Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Wed, Aug 5, 2015 at 10:40 PM, Udara Rathnayake  wrote:

> sent from my nexus4, ignore any typos
> On Aug 5, 2015 22:32, "Manuranga Perera"  wrote:
> >
> > Its even more wrong if I as a subscriber can prevent an asset from
> deleting, isn't it?
> Technically yes. But what about ux?
>
> ___
> 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] How to add a Servlet in DSS

2015-08-05 Thread Thusitha Thilina Dayaratne
Hi Madhawa,

You can enable saas mode and deploy the wenapp in super tenant and access
it from tenant mode as well. You can refer to sample CarbonSaaSApp provided
with the WSO2-AS 5.3.0- Alpha pack

Thanks
/Thusitha

On Wed, Aug 5, 2015 at 5:44 PM, Madhawa Gunasekara 
wrote:

> Hi Kasun,
>
> How can we use web app for multi-tenancy? Do we have to deploy the web app
> in each tenant folder?
> if not how can we load the tenant configuration manually ?
>
> Thanks,
> Madhawa
>
> On Wed, Aug 5, 2015 at 12:58 PM, Anjana Fernando  wrote:
>
>> Hi Kasun,
>>
>> I see, make sense, with the security scenarios and so on. Just wondering
>> since, we got a patch for the earlier wild cards scenario. Thanks for the
>> clarification.
>>
>> Cheers,
>> Anjana.
>>
>> On Wed, Aug 5, 2015 at 12:54 PM, KasunG Gajasinghe 
>> wrote:
>>
>>> Hi Anjana,
>>>
>>> The servlet registration provided via component.xml only provides a
>>> basic set of features. As we discussed here, it does not support wild
>>> cards. And, it does not support things such as security-constraints which
>>> we configure through web.xml of a webapp. I believe Madhawa requested this
>>> as well in the thread [1]. And, there can be other requirements that might
>>> pop-up as the integration goes on.
>>>
>>> Since we have a viable approach for these problems by using webapps,
>>> it's better to go on that path because of the above.
>>>
>>> [1] How to handle QOS Security for servlet request
>>>
>>>
>>> On Wed, Aug 5, 2015 at 12:36 PM, Anjana Fernando 
>>> wrote:
>>>
 Hi Kasun,

 But, still, it is an extra hassle to create another webapp and copy it
 to the deployment directory separately, it is not there with the other
 components. What is wrong with the other existing approach? ..

 Cheers,
 Anjana.

 On Wed, Aug 5, 2015 at 12:33 PM, KasunG Gajasinghe 
 wrote:

> Hi Anjana/Madhawa,
>
> The webapp is there to expose a servlet. The actual logic does not
> need to be in the webapp itself, and can be put in a carbon component. So,
> there's no separation.
>
> IS etc. does the same where they have JAX-RS webapps that only has the
> jax-rs resource class to expose a REST service. The actual logic is there
> in identity components.
>
> On Tue, Aug 4, 2015 at 11:25 PM, Madhawa Gunasekara  > wrote:
>
>> Hi Carbon Team,
>>
>> Can we add this improvement to the upcoming carbon minor version
>> release ?
>>
>> Thanks,
>> Madhawa
>>
>> On Wed, Jul 29, 2015 at 10:36 PM, Anjana Fernando 
>> wrote:
>>
>>> Hi Niranjan,
>>>
>>> Why exactly is that? .. it doesn't look right to put one of the
>>> server's core logic in a webapp. Also it has to be specially copied to 
>>> the
>>> deployment folder and all, and also, will all the tenant's get it's own
>>> context? .. Basically, just having a separate web app feels like, it's
>>> separated from the other components.
>>>
>>> Cheers,
>>> Anjana.
>>>
>>> On Wed, Jul 29, 2015 at 12:25 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi Madhawa,

 As per the offline discussion with the team (Kernel), we
 recommended to use webapp. Therefore we will be reverting this.

 Regards,
 Nira

 On Wed, Jul 22, 2015 at 3:46 PM, Madhawa Gunasekara <
 madha...@wso2.com> wrote:

> Hi All,
>
> Please find the created JIRA
> https://wso2.org/jira/browse/CARBON-15322
>
> Thanks
> Madhawa
>
> On Wed, Jul 22, 2015 at 2:46 PM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> Hi Madhawa,
>>
>> Can you raise a JIRA in Kernel as an improvement for this?
>>
>> Regards,
>> Nira
>>
>> On Wed, Jul 22, 2015 at 2:14 PM, Madhawa Gunasekara <
>> madha...@wso2.com> wrote:
>>
>>> Hi Thusitha,
>>>
>>> Can we add wild-card option for the implementation ?
>>>
>>> Thanks
>>>
>>> On Wed, Jul 22, 2015 at 2:12 PM, Thusitha Thilina Dayaratne <
>>> thusit...@wso2.com> wrote:
>>>
 Hi Madhawa,

 AFAIU In the implementation it get the links and add them to a
 Map where key and value both are same. When we do a request it 
 check from
 the map whether the key exist for the path. If exist it will be 
 bypass
 otherwise it will redirect.
 In your case  /odataservices/* will be the key and when you
 request http://localhost:9443/odataservices/* since the link
 key matches this will bypass the login. But when you request 
 something like
 http://localhost:9443/odataservices/abc then this will

[Dev] Review and Merge the PR

2015-08-05 Thread Hasanthi Purnima Dissanayake
Hi,
$subject please for [1].
[1] https://github.com/wso2/carbon-identity/pull/749/

Thanks,

Hasanthi Dissanayake

Software Engineer | WSO2

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


Re: [Dev] [Orbit] Please review and merge PR

2015-08-05 Thread Maduranga Siriwardena
Thank you Maheshika and Aruna

On Thu, Aug 6, 2015 at 12:07 AM, Maheshika Goonetilleke 
wrote:

> Hi Aruna
>
> Deployed successfully.
>
> On Wed, Aug 5, 2015 at 8:52 PM, Aruna Karunarathna  wrote:
>
>> Hi Maduranga,
>>
>> Merged.
>>
>> @Maheshika, can you release this orbit bundle?
>>
>> Regards,
>> Aruna
>>
>> On Wed, Aug 5, 2015 at 6:36 PM, Maduranga Siriwardena > > wrote:
>>
>>> Hi Aruna,
>>>
>>> This is an already existing orbit bundle. I needed to export a package
>>> from the bundle. So I had to update the version. Approve is given to the
>>> bundle in the mail titled with "[Dev] Adding apacheds/1.5.7.wso2v3 and
>>> nimbus/2.26.1.wso2v3".
>>>
>>> I have added the export version as you have asked in the comments of the
>>> PR. Embedded dependencies are already in the bundle. So I hope they need
>>> not be changed.
>>>
>>> Thank you,
>>> Maduranga
>>>
>>> On Wed, Aug 5, 2015 at 6:03 PM, Aruna Karunarathna 
>>> wrote:
>>>
 Hi Maduranga,

 Added some comments to your PR, Can you check and update?.
 By the way, I believe that this was an approved library?..

 Regards,
 Aruna

 On Wed, Aug 5, 2015 at 5:48 PM, KasunG Gajasinghe 
 wrote:

> Hi Aruna,
>
> Can you review this?
>
>
> On Wed, Aug 5, 2015 at 5:29 PM, Maduranga Siriwardena <
> madura...@wso2.com> wrote:
>
>> Hi Carbon team,
>>
>> Please review and merge pull request [1] for orbit.
>>
>> This PR export org.apache.directory.server.constants from apacheds
>> bundle, which is used by carbon-identity. This is needed to compile the
>> carbon-identity with java 8.
>>
>> [1] https://github.com/wso2/orbit/pull/115
>>
>> Thank you,
>> Maduranga
>>
>> --
>> Maduranga Siriwardena
>> Software Engineer
>> WSO2 Inc.
>>
>> email: madura...@wso2.com
>> mobile: +94718990591
>>
>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



 --

 *Aruna Sujith Karunarathna *| Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


>>>
>>>
>>>
>>> --
>>> Maduranga Siriwardena
>>> Software Engineer
>>> WSO2 Inc.
>>>
>>> email: madura...@wso2.com
>>> mobile: +94718990591
>>>
>>
>>
>>
>> --
>>
>> *Aruna Sujith Karunarathna *| Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 9040362 | Work: +94 112145345
>> Email: ar...@wso2.com | Web: www.wso2.com
>>
>>
>
>
>
> --
>
> Thanks & Best Regards,
>
> Maheshika Goonetilleke
> Engineering Process Coordinator
>
> *WSO2 Inc*
> *email   : mahesh...@wso2.com *
> *mobile : +94 773 596707 <%2B94%20773%20596707>*
> *www: :http://wso2.com *lean . enterprise . middleware
>
>
>
>
>


-- 
Maduranga Siriwardena
Software Engineer
WSO2 Inc.

email: madura...@wso2.com
mobile: +94718990591
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ML] Introducing new Activation hyper parameter for Deeplearning

2015-08-05 Thread Thushan Ganegedara
Hi all,

I've changed the machine-learner.xml to accommodate the new "Activation
Type" parameter.

However, I feel it's unwise to let the user type the activation type as a
string. A combo-box would be more appropriate. There are about six
different activation types (max out, max out w dropout, tanh, ...)

But how should I pass these values to parameters.jag to create them on the
go. One option is to embed them in parameter.jag (buildInput method)

I would like to know your opinion on this.

Thank you

-- 
Regards,

Thushan Ganegedara
School of IT
University of Sydney, Australia
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to add a Servlet in DSS

2015-08-05 Thread Shashika Karunatilaka
Hi Madhawa,

AFAIK if you want the same web app in each tenant you have to deploy that
web app in each tenant,
what do you mean by loading tenant configuration manually?

Thank you.

On Wed, Aug 5, 2015 at 8:14 PM, Madhawa Gunasekara 
wrote:

> Hi Kasun,
>
> How can we use web app for multi-tenancy? Do we have to deploy the web app
> in each tenant folder?
> if not how can we load the tenant configuration manually ?
>
> Thanks,
> Madhawa
>
> On Wed, Aug 5, 2015 at 12:58 PM, Anjana Fernando  wrote:
>
>> Hi Kasun,
>>
>> I see, make sense, with the security scenarios and so on. Just wondering
>> since, we got a patch for the earlier wild cards scenario. Thanks for the
>> clarification.
>>
>> Cheers,
>> Anjana.
>>
>> On Wed, Aug 5, 2015 at 12:54 PM, KasunG Gajasinghe 
>> wrote:
>>
>>> Hi Anjana,
>>>
>>> The servlet registration provided via component.xml only provides a
>>> basic set of features. As we discussed here, it does not support wild
>>> cards. And, it does not support things such as security-constraints which
>>> we configure through web.xml of a webapp. I believe Madhawa requested this
>>> as well in the thread [1]. And, there can be other requirements that might
>>> pop-up as the integration goes on.
>>>
>>> Since we have a viable approach for these problems by using webapps,
>>> it's better to go on that path because of the above.
>>>
>>> [1] How to handle QOS Security for servlet request
>>>
>>>
>>> On Wed, Aug 5, 2015 at 12:36 PM, Anjana Fernando 
>>> wrote:
>>>
 Hi Kasun,

 But, still, it is an extra hassle to create another webapp and copy it
 to the deployment directory separately, it is not there with the other
 components. What is wrong with the other existing approach? ..

 Cheers,
 Anjana.

 On Wed, Aug 5, 2015 at 12:33 PM, KasunG Gajasinghe 
 wrote:

> Hi Anjana/Madhawa,
>
> The webapp is there to expose a servlet. The actual logic does not
> need to be in the webapp itself, and can be put in a carbon component. So,
> there's no separation.
>
> IS etc. does the same where they have JAX-RS webapps that only has the
> jax-rs resource class to expose a REST service. The actual logic is there
> in identity components.
>
> On Tue, Aug 4, 2015 at 11:25 PM, Madhawa Gunasekara  > wrote:
>
>> Hi Carbon Team,
>>
>> Can we add this improvement to the upcoming carbon minor version
>> release ?
>>
>> Thanks,
>> Madhawa
>>
>> On Wed, Jul 29, 2015 at 10:36 PM, Anjana Fernando 
>> wrote:
>>
>>> Hi Niranjan,
>>>
>>> Why exactly is that? .. it doesn't look right to put one of the
>>> server's core logic in a webapp. Also it has to be specially copied to 
>>> the
>>> deployment folder and all, and also, will all the tenant's get it's own
>>> context? .. Basically, just having a separate web app feels like, it's
>>> separated from the other components.
>>>
>>> Cheers,
>>> Anjana.
>>>
>>> On Wed, Jul 29, 2015 at 12:25 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi Madhawa,

 As per the offline discussion with the team (Kernel), we
 recommended to use webapp. Therefore we will be reverting this.

 Regards,
 Nira

 On Wed, Jul 22, 2015 at 3:46 PM, Madhawa Gunasekara <
 madha...@wso2.com> wrote:

> Hi All,
>
> Please find the created JIRA
> https://wso2.org/jira/browse/CARBON-15322
>
> Thanks
> Madhawa
>
> On Wed, Jul 22, 2015 at 2:46 PM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> Hi Madhawa,
>>
>> Can you raise a JIRA in Kernel as an improvement for this?
>>
>> Regards,
>> Nira
>>
>> On Wed, Jul 22, 2015 at 2:14 PM, Madhawa Gunasekara <
>> madha...@wso2.com> wrote:
>>
>>> Hi Thusitha,
>>>
>>> Can we add wild-card option for the implementation ?
>>>
>>> Thanks
>>>
>>> On Wed, Jul 22, 2015 at 2:12 PM, Thusitha Thilina Dayaratne <
>>> thusit...@wso2.com> wrote:
>>>
 Hi Madhawa,

 AFAIU In the implementation it get the links and add them to a
 Map where key and value both are same. When we do a request it 
 check from
 the map whether the key exist for the path. If exist it will be 
 bypass
 otherwise it will redirect.
 In your case  /odataservices/* will be the key and when you
 request http://localhost:9443/odataservices/* since the link
 key matches this will bypass the login. But when you request 
 something like
 http://localhost:9443/odataservices/abc then this will not
 match based on t

Re: [Dev] [ES] Enabling Deleting asset from Publisher app functionality

2015-08-05 Thread Dakshika Jayathilaka
1. IMO Delete is an action which directly related to asset. so  +1 to have
it within action bar (overview, edit).

2. If we are configuring it through asset.js i think we don't have any
issue on mentioned behavior.

Regards,

*Dakshika Jayathilaka*
PMC Member & Committer of Apache Stratos
Senior Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Wed, Aug 5, 2015 at 10:04 PM, Manuranga Perera  wrote:

> 1) UX team has recommended it to be placed in action bar( Dakshitha can
> verify) is there any issue with that approach?
> 2) even though an asset has multiple, all store specific states are
> dependent on only one. This is what we configure from asset.js
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Orbit] Please review and merge PR

2015-08-05 Thread Maheshika Goonetilleke
Hi Aruna

Deployed successfully.

On Wed, Aug 5, 2015 at 8:52 PM, Aruna Karunarathna  wrote:

> Hi Maduranga,
>
> Merged.
>
> @Maheshika, can you release this orbit bundle?
>
> Regards,
> Aruna
>
> On Wed, Aug 5, 2015 at 6:36 PM, Maduranga Siriwardena 
> wrote:
>
>> Hi Aruna,
>>
>> This is an already existing orbit bundle. I needed to export a package
>> from the bundle. So I had to update the version. Approve is given to the
>> bundle in the mail titled with "[Dev] Adding apacheds/1.5.7.wso2v3 and
>> nimbus/2.26.1.wso2v3".
>>
>> I have added the export version as you have asked in the comments of the
>> PR. Embedded dependencies are already in the bundle. So I hope they need
>> not be changed.
>>
>> Thank you,
>> Maduranga
>>
>> On Wed, Aug 5, 2015 at 6:03 PM, Aruna Karunarathna 
>> wrote:
>>
>>> Hi Maduranga,
>>>
>>> Added some comments to your PR, Can you check and update?.
>>> By the way, I believe that this was an approved library?..
>>>
>>> Regards,
>>> Aruna
>>>
>>> On Wed, Aug 5, 2015 at 5:48 PM, KasunG Gajasinghe 
>>> wrote:
>>>
 Hi Aruna,

 Can you review this?


 On Wed, Aug 5, 2015 at 5:29 PM, Maduranga Siriwardena <
 madura...@wso2.com> wrote:

> Hi Carbon team,
>
> Please review and merge pull request [1] for orbit.
>
> This PR export org.apache.directory.server.constants from apacheds
> bundle, which is used by carbon-identity. This is needed to compile the
> carbon-identity with java 8.
>
> [1] https://github.com/wso2/orbit/pull/115
>
> Thank you,
> Maduranga
>
> --
> Maduranga Siriwardena
> Software Engineer
> WSO2 Inc.
>
> email: madura...@wso2.com
> mobile: +94718990591
>



 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org



>>>
>>>
>>>
>>> --
>>>
>>> *Aruna Sujith Karunarathna *| Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>> Email: ar...@wso2.com | Web: www.wso2.com
>>>
>>>
>>
>>
>>
>> --
>> Maduranga Siriwardena
>> Software Engineer
>> WSO2 Inc.
>>
>> email: madura...@wso2.com
>> mobile: +94718990591
>>
>
>
>
> --
>
> *Aruna Sujith Karunarathna *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



-- 

Thanks & Best Regards,

Maheshika Goonetilleke
Engineering Process Coordinator

*WSO2 Inc*
*email   : mahesh...@wso2.com *
*mobile : +94 773 596707*
*www: :http://wso2.com *lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Releasing carbon-commons 4.5.0

2015-08-05 Thread Supun Malinga
Hi devs,

Since there are several API changes/ component changes we thought of doing
a carbon-commons minor release.
Current released version is : *4.4.4*
To be released: *4.5.0*

So if you have any api changes/ significant changes to commons please work
on sending PRs ASAP.. Do shout if you have anything pending.

thanks,
-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com 
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Do we need to check active subscriptions/bookmarks etc.. before changing LC state from published to X

2015-08-05 Thread Udara Rathnayake
sent from my nexus4, ignore any typos
On Aug 5, 2015 22:32, "Manuranga Perera"  wrote:
>
> Its even more wrong if I as a subscriber can prevent an asset from
deleting, isn't it?
Technically yes. But what about ux?
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Do we need to check active subscriptions/bookmarks etc.. before changing LC state from published to X

2015-08-05 Thread Manuranga Perera
The ability to restrict new subscriptions is useful
But I don't think we have to cover that in this release.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Do we need to check active subscriptions/bookmarks etc.. before changing LC state from published to X

2015-08-05 Thread Manuranga Perera
Its even more wrong if I as a subscriber can prevent an asset from
deleting, isn't it?
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Do we need to check active subscriptions/bookmarks etc.. before changing LC state from published to X

2015-08-05 Thread Udara Rathnayake
Hi Manu,

I think we have similar behavior in API Manager also.

Lets take our connector store as an example. Assume I have
bookmark/subscribe (or even purchase) a connector. What if publisher
suddenly took off the connector from the store.
Isn't it bit confusing? We can block new subscriptions while giving access
to existing subscribers IMO.

On Wed, Aug 5, 2015 at 10:07 PM, Manuranga Perera  wrote:

> So there will be no way to delete an asset if there is even a single
> subscriber ? That's not useful.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Do we need to check active subscriptions/bookmarks etc.. before changing LC state from published to X

2015-08-05 Thread Manuranga Perera
So there will be no way to delete an asset if there is even a single
subscriber ? That's not useful.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Enabling Deleting asset from Publisher app functionality

2015-08-05 Thread Manuranga Perera
1) UX team has recommended it to be placed in action bar( Dakshitha can
verify) is there any issue with that approach?
2) even though an asset has multiple, all store specific states are
dependent on only one. This is what we configure from asset.js
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Releasing Carbon Multitenancy

2015-08-05 Thread Supun Malinga
Hi,

On Wed, Aug 5, 2015 at 12:59 PM, Prabath Ariyarathna 
wrote:

> Hi Supun.
>
> I did small changes on PR to fix the few issues existing in the URL
> validation. Please check the new changes.
>
> Eg:-
> http://wso2s-MacBook-Pro-2.local:8280//services/t/wso1.com/Proxy1
>
> http://wso2s-MacBook-Pro-2.local:8280/services//t/wso1.com/Proxy1
> I checked basic scenarios like proxy service valid and invalid URLs with
> super tenant and tenant modes and ran available test cases which are
> related to the proxyServices/APIs in the ESB found no issues but
> unfortunately at the moment we don't have enough automated test cases to
> cover the multitenant edge cases.
>

OK this is good. I'll merge the PR then. We should add test cases if they
are not there. Please create a jira for that.

>
> Thanks.
>
>
> On Wed, Aug 5, 2015 at 12:06 PM, Supun Malinga  wrote:
>
>> Hi,
>>
>> We need to release carbon-identity and carbon-registry once the commons
>> is released. This is due to carbon-multitenancy being dependent on identity
>> and registry.
>>
>> Greg and IS teams as we discussed shall we start on those once the
>> commons is out ?.
>>
>> thanks,
>>
>> On Wed, Aug 5, 2015 at 9:14 AM, Supun Malinga  wrote:
>>
>>> Hi All,
>>>
>>> We will be releasing carbon-multitenancy today..
>>>
>>> Hi Prabath AR,
>>> I looked at the diff and fix looks ok. Have we also verified this with
>>> ESB team in terms of the approach to the fix ?. If yes I can go ahead and
>>> merge this.
>>>
>>> thanks,
>>>
>>> On Tue, Aug 4, 2015 at 12:39 PM, Prabath Ariyarathna >> > wrote:
>>>
 Hi Supun.

 Please review and merge the PR[1] for this issue[2].

 [1] = https://github.com/wso2/carbon-multitenancy/pull/46
 [2] = https://wso2.org/jira/browse/ESBJAVA-3992


 Thanks.

 On Tue, Aug 4, 2015 at 10:48 AM, Chanaka Fernando 
 wrote:

> Hi Supun,
>
> We have come across several issues[1], [2], [3] related to tenancy
> when testing the ESB 490 beta release. We are currently looking into these
> issues. Did you guys face any issue related to dispatching when testing 
> the
> AS in multitenant scenarios?
>
> [1] https://wso2.org/jira/browse/ESBJAVA-3992
>
> [2] https://wso2.org/jira/browse/ESBJAVA-3989
>
> [3] https://wso2.org/jira/browse/ESBJAVA-3988
>
> Thanks,
> Chanaka
>
>
>
> On Mon, Aug 3, 2015 at 10:13 PM, Supun Malinga 
> wrote:
>
>> Hi Devs,
>>
>> We are going to do $subject soon after carbon commons release. Shout
>> if you have any fixes to be added.
>>
>> thanks,
>> --
>> Supun Malinga,
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> email: sup...@wso2.com 
>> mobile: +94 (0)71 56 91 321
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> --
> 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
>
>
>
>


 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


 *Email: prabat...@wso2.com *

 *Blog: http://prabu-lk.blogspot.com *

 *Flicker : https://www.flickr.com/photos/47759189@N08
 *

 *Mobile: +94 77 699 4730 *






>>>
>>>
>>> --
>>> Supun Malinga,
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>> http://wso2.com
>>> email: sup...@wso2.com 
>>> mobile: +94 (0)71 56 91 321
>>>
>>
>>
>>
>> --
>> Supun Malinga,
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> email: sup...@wso2.com 
>> mobile: +94 (0)71 56 91 321
>>
>
>
>
> --
>
> *Prabath Ariyarathna*
>
> *Associate Technical Lead*
>
> *WSO2, Inc. *
>
> *lean . enterprise . middleware *
>
>
> *Email: prabat...@wso2.com *
>
> *Blog: http://prabu-lk.blogspot.com *
>
> *Flicker : https://www.flickr.com/photos/47759189@N08
> *
>
> *Mobile: +94 77 699 4730 *
>
>
>
>
>
>


-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com 
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Orbit] Please review and merge PR

2015-08-05 Thread Aruna Karunarathna
Hi Maduranga,

Merged.

@Maheshika, can you release this orbit bundle?

Regards,
Aruna

On Wed, Aug 5, 2015 at 6:36 PM, Maduranga Siriwardena 
wrote:

> Hi Aruna,
>
> This is an already existing orbit bundle. I needed to export a package
> from the bundle. So I had to update the version. Approve is given to the
> bundle in the mail titled with "[Dev] Adding apacheds/1.5.7.wso2v3 and
> nimbus/2.26.1.wso2v3".
>
> I have added the export version as you have asked in the comments of the
> PR. Embedded dependencies are already in the bundle. So I hope they need
> not be changed.
>
> Thank you,
> Maduranga
>
> On Wed, Aug 5, 2015 at 6:03 PM, Aruna Karunarathna  wrote:
>
>> Hi Maduranga,
>>
>> Added some comments to your PR, Can you check and update?.
>> By the way, I believe that this was an approved library?..
>>
>> Regards,
>> Aruna
>>
>> On Wed, Aug 5, 2015 at 5:48 PM, KasunG Gajasinghe 
>> wrote:
>>
>>> Hi Aruna,
>>>
>>> Can you review this?
>>>
>>>
>>> On Wed, Aug 5, 2015 at 5:29 PM, Maduranga Siriwardena <
>>> madura...@wso2.com> wrote:
>>>
 Hi Carbon team,

 Please review and merge pull request [1] for orbit.

 This PR export org.apache.directory.server.constants from apacheds
 bundle, which is used by carbon-identity. This is needed to compile the
 carbon-identity with java 8.

 [1] https://github.com/wso2/orbit/pull/115

 Thank you,
 Maduranga

 --
 Maduranga Siriwardena
 Software Engineer
 WSO2 Inc.

 email: madura...@wso2.com
 mobile: +94718990591

>>>
>>>
>>>
>>> --
>>>
>>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>>> email: kasung AT spamfree wso2.com
>>> linked-in: http://lk.linkedin.com/in/gajasinghe
>>> blog: http://kasunbg.org
>>>
>>>
>>>
>>
>>
>>
>> --
>>
>> *Aruna Sujith Karunarathna *| Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 9040362 | Work: +94 112145345
>> Email: ar...@wso2.com | Web: www.wso2.com
>>
>>
>
>
>
> --
> Maduranga Siriwardena
> Software Engineer
> WSO2 Inc.
>
> email: madura...@wso2.com
> mobile: +94718990591
>



-- 

*Aruna Sujith Karunarathna *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Pause/restart when processing a large file

2015-08-05 Thread Rudy Hilado

 

Is it possible in the WSO2 ESB to process a large file (with each line
representing a single record/message), and stop or pause the processing
within the file, then restart where it left off? (using the Smooks mediator
and/or Iterate mediator, or any other mechanism)

It appears that if you are processing a large file (say with 10K entries)
you cannot stop or pause the processing (or if the ESB is brought down in
the middle of processing the file), and then restart where it was stopped.
Upon restarting either the whole file has to be reprocessed, or the file is
dumped to the error folder and skipped. Is this correct?

Thanks for any help on this.

- Rudy

 

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


Re: [Dev] Web app class loading issue

2015-08-05 Thread Ruwan Abeykoon
Hi Madushanka,
You can exclude the duplicate (unwanted) jar being bundled by your assembly
bin.xml (or relevant file) in "maven-assembly-plugin"

You can add whatever the bundle to be excluded in the list,
XPATH : /assembly/fileSets/fileSet/excludes/exclude[]

This is a quick fix until each carbon based feature agree on using same
bundle versions for a given base carbon kernel version.

Cheers,
Ruwan

On Tue, Aug 4, 2015 at 3:14 PM, Madusanka Premaratne 
wrote:

> Hi all,
> As in the conversation I understood that the issue happens due to multiple
> exports of same package. I face the same scenario in APIM 1.10.0 (1.9.0
> upgration to carbon 4.4.0).
> I checked the APIM related ones and could not find any wrong export.
>
> I can see some of the packages like *net.minidev.json, **com.nimbusds.jwt*
>  are duplicated with multiple versions.
>
> And
> *com.jayway.jsonpath *exported as follows.
>
> osgi> p com.jayway.jsonpath
> com.jayway.jsonpath; version="0.8.1"
>   synapse-core_2.1.3.wso2v5 [488] imports
>   tomcat_7.0.59.wso2v1 [494] imports
>
> Can someone guide me to remove the unwanted ones?
> Thanks in advance for your responses.
>
> Madusanka
>
> On Thu, May 21, 2015 at 11:59 AM, Sameera Jayasoma 
> wrote:
>
>> Hello Geeth,
>>
>> We've encountered many similar issues in the past. The main cause of
>> these issues is the existence of multiple versions of some packages. OSGi
>> is designed to support this scenario. But in some cases, OSGi resolution
>> algorithm fails wire dynamical imported packages due multiple versions of
>> some packages. This is indeed a wired observation.
>>
>> We've removed some duplicated bundles in CDM pack (e.g. httpclient,
>> httpmime, httpcore). But we could still reproduce the issue, then we found
>> out that one of the fixes introduced in Carbon 4.4.0 was not available in
>> MDM distribution. I believe MDM or other components pack a custom
>> launch.ini file. Let me explain.
>>
>> Carbon kernel used to export *"javax.xml.soap"* package from the JDK,
>> hence this package was specified in the *launch.ini* file. Geronimo-saaj
>> bundle exports this package as well. Now there are two versions of
>> "javax.xml.soap" package available in the OSGi runtime. The strange thing
>> is, tomcat bundle dynamically wire to both of the soap package versions
>> time to time. This behavior is not predictable. When the tomcat bundle get
>> wired to javax.xml.soap 0.0.0, above mentioned issue occurs. But when the
>> tomcat is wired to 1.0.0 version of the package this issue does not occur.
>> We still don't know why this happens.
>>
>> Working
>> osgi> p javax.xml.soap
>> *javax.xml.soap*; version="0.0.0"> [0]>
>>   org.eclipse.core.expressions_3.4.500.v20130515-1343 [78] imports
>>   org.eclipse.core.runtime_3.9.0.v20130326-1255 [80] imports
>>   org.wso2.carbon.p2.touchpoint_4.4.0 [277] imports
>> *javax.xml.soap*; version="1.0.0"> [38]>
>>   axis2_1.6.1.wso2v12 [14] imports
>>   org.wso2.carbon.apimgt.core_1.4.0 [154] imports
>>   spring.framework_3.2.9.wso2v1 [372] imports
>>
>> *  tomcat_7.0.59.wso2v1 [375] imports*  wss4j_1.5.11.wso2v10 [386]
>> imports
>>   wss4j_1.5.11.wso2v9 [387] imports
>>
>>
>> Not Working
>> osgi> p javax.xml.soap
>> *javax.xml.soap*; version="0.0.0"> [0]>
>>   org.eclipse.core.expressions_3.4.500.v20130515-1343 [78] imports
>>   org.eclipse.core.runtime_3.9.0.v20130326-1255 [80] imports
>>   org.wso2.carbon.p2.touchpoint_4.4.0 [277] imports
>>
>> *  tomcat_7.0.59.wso2v1 [375] importsjavax.xml.soap;*
>> version="1.0.0"
>>   axis2_1.6.1.wso2v12 [14] imports
>>   org.wso2.carbon.apimgt.core_1.4.0 [154] imports
>>   spring.framework_3.2.9.wso2v1 [372] imports
>>   wss4j_1.5.11.wso2v10 [386] imports
>>   wss4j_1.5.11.wso2v9 [387] imports
>>
>> Anyway his issue has been fixed in Carbon Kernel 4.4.0 by removing the
>> export of 0.0.0 version of this package.
>>
>> MDM team, please remove the custom launch.ini file if possible and try to
>> use the one packed with the Kernel.
>>
>> Thanks,
>> Sameera.
>>
>> On Tue, May 19, 2015 at 3:50 PM, Geeth Munasinghe  wrote:
>>
>>> Hi all,
>>>
>>> I am getting the following CNF error intermittently. MDM is built on
>>> kernel 4.4.0.
>>>
>>>  As I remember we got this issue for kernel 4.3.0, but it was fixed by a
>>> tomcat patch. Seems the same CNF error is happening on kernel 4.4.0 too.
>>>
>>>
>>>
>>> /wso2mdm-2.0.0-SNAPSHOT/repository/deployment/server/webapps/mdm-windows-agent.war]
>>>
>>> [2015-05-19 15:29:17,619]  INFO
>>> {org.springframework.web.context.support.XmlWebApplicationContext} -
>>> Refreshing Root WebApplicationContext: startup date [Tue May 19 15:29:17
>>> IST 2015]; root of context hierarchy
>>>
>>> [2015-05-19 15:29:17,651]  INFO
>>> {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
>>> XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
>>>
>>> [2015-05-19 15:29:17,676]  INFO
>>> {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
>>> XML bean d

Re: [Dev] [Synapse] Odd behavior in picking the API definition with the correct version, in Synapse 2.1.3.wso2v3

2015-08-05 Thread Ravi Undupitiya
Merged https://github.com/wso2/wso2-synapse/pull/298/files



On Wed, Aug 5, 2015 at 5:11 PM, Kevin Ratnasekera  wrote:

> Hi Ravi,
> Can you please review and merge the pr[1] which solves the issue.
> [1]https://github.com/wso2/wso2-synapse/pull/298
> Regards
> Kevin
>
> On Wed, Aug 5, 2015 at 9:58 AM, Chanaka Fernando 
> wrote:
>
>> Hi Kevin,
>>
>> Can you look into this and check whether we can merge this change to the
>> latest synapse branch? Please talk to Ravi if you need any help.
>>
>> Thanks,
>> Chanaka
>>
>> On Wed, Aug 5, 2015 at 9:43 AM, Rushmin Fernando 
>> wrote:
>>
>>> Had a chat with Malintha.
>>>
>>> Seems like we face this issue because *RESTRequestHandler *doesn't give
>>> the priority to versioned APIs.
>>>
>>> The correct code is there in Synapse 2.1.2.wso2v6 [1]
>>>
>>> Created a JIRA [2]
>>>
>>> [1] -
>>>
>>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/dependencies/synapse/2.1.2-wso2v7/modules/core/src/main/java/org/apache/synapse/rest/RESTRequestHandler.java
>>>
>>> [2]  - https://wso2.org/jira/browse/ESBJAVA-4012
>>>
>>> Thanks
>>> Rushmin
>>>
>>>
>>>
>>>
>>>
>>> On Mon, Aug 3, 2015 at 12:26 PM, Malintha Amarasinghe <
>>> malint...@wso2.com> wrote:
>>>
 Hi Rushmin,

 We faced something similar when introducing Default Version Feature for
 APIM 1.7.

 Can you please check whether you are facing the same issue as this?
 http://mail.wso2.org/mailarchive/architecture/2014-March/015574.html

 Thanks,
 Malintha


 On Mon, Aug 3, 2015 at 11:52 AM, Rushmin Fernando 
 wrote:

>
>
> We recently upgraded App Manager's synapse version to 2.1.3.wso2v3 and
> noticed some odd behavior.
>
> *Test case*
> *-*
>
> There are two API config files (with some other API config files [1])
>
>   1) admin--AppManagerSandbox.xml;  *API Name* = SandboxOne;
> *Context* = /am-sandbox
>
>   2) admin--AppManagerSandbox_vv1.xml; *API Name* = SandboxOne;
> *Version* = v1;  *Context* = /am-sandbox
>
> When the API is called with the URL *http://localhost:8280/am-sandbox/v1
>   *...
>
> Synapse *doesn't* pick the API with the version
> (admin--AppManagerSandbox_vv1.xml).
>
> Rather it picks the non-versioned one
> (admin--AppManagerSandbox.xml)
>
> When the two APIs are renamed to '*AppMSandbox*' it works as expected.
>
> And even with the name 'SandboxOne' it works as expected, *when there
> are no* API definitions other than the two *admin--AppManagerSandbox**
> APIs
>
>
> *So the summary is *
>
> Default APIs + SandboxOne ==> NO
> Default APIs + AppMSandbox ==> YES
> AppMSandbox ==> YES
> SandboxOne ==> YES
>
> NO = Versioning doesn't  work
> YES = Versioning works
>
>
> Is this a bug or am I doing something wrong ?
>
>
> [1]
>
> http://ws.apache.org/ns/synapse";
> name="_WSO2AMAuthorizeAPI_" context="/authorize">
> 
> 
> 
> 
> https://localhost:9443/oauth2/authorize"/>
> 
> 
> 
> 
> 
> 
> 
> 
>
> http://ws.apache.org/ns/synapse"; name="_WSO2AMRevokeAPI_"
> context="/revoke">
> 
> 
> 
> 
> https://localhost:9443/oauth2/revoke
> "/>
> 
> 
> 
> 
> 
> 
> 
> 
>  class="org.wso2.carbon.appmgt.gateway.handlers.ext.APIManagerCacheExtensionHandler"/>
> 
> 
>
> http://ws.apache.org/ns/synapse";
>  name="_WSO2AMStatisticsAPI_"
>  transports="http"
>  context="/statistics">
>
> 
> 
> 
> 
> 
> 
> 
>
>
>  
>
> 
>
> 
> 
>
> http://ws.apache.org/ns/synapse";
> name="_WSO2APPMTokenAPI_" context="/token">
> 
> 
> 
> 
> https://localhost:9443/appmoauth2/token"/>
> 
> 
> 
> 
> 
> 
> 
> 
>  class="org.wso2.carbon.appmgt.gateway.handlers.ext.APIManagerCacheExtensionHandler"/>
> 
> 
>
>
>
>
>
>
> --
> *Rushmin Fernando*
> *Technical Lead*
>
> WSO2 Inc.  - Lean . Enterprise . Middleware
>
> email : rush...@wso2.com
> mobile : +94772310855
>
>
>
> ___

[Dev] InMemory message store losing namespace

2015-08-05 Thread John Hawkins
Hi Folks,

Got an interesting case here - can some one help please?

I'm using a MessageStore in a proxy flow. I have a message which I send to
a SOAP endpoint. When I use a JMS store it works fine - the correct message
gets sent to the endpoint.
However, when I swap that out for an in-memory store the ns is lost and the
message fails to get processed at the EP.

I have copied three versions of the message below: [1] is the message as I
sent it before I used a messagestore. [2] is the message that works when I
send it through a JMS message store [3] is the failing message as is sent
when it comes out of the JMSStore. I'm assuming that the message is
serialised in and out of the message store and this is probably where the
problem is ?

[1] ORIGINAL MESSAGE

http://schemas.xmlsoap.org/soap/envelope/";
  xmlns:cof="http://coffee.suppliers.com/";>
   
   
  
 mylovelyshop
 morecoffee !!
 3
  
   


[2] WORKING JMS_MESSAGE_STORE MESSAGE

http://schemas.xmlsoap.org/soap/envelope/";>
   
  http://coffee.suppliers.com/";>
 mylovelyshop
 morecoffee !!
 3
  
   



[3] FAILING IN-MEMORY MESSAGE

http://schemas.xmlsoap.org/soap/envelope/";>
   
  
 mylovelyshop
 morecoffee !!
 3
  
   



Is this a bug in the in-memory message store serialisation or a feature of
my configuration ?

many thanks !
John.


John Hawkins
Director: Solutions Architecture
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Carbon Kernel 4.4.1 Released

2015-08-05 Thread Thusitha Thilina Dayaratne
*WSO2 Carbon Kernel 4.4.1 Released*

Carbon team is pleased to announce the release of the Carbon kernel 4.4.1 .
Following are the bug fixes and improvements included in this release.

*Improvements*

   - [CARBON-15248 ]  Make
   resource cache timeout configurable
   - [CARBON-15254 ]  Improving
   SQL query used to retrieve resource properties


*Fixed Bugs*

   - [CARBON-15146 ]  [SSO for
   carbon servers] username is printed as null in logout logs
   - [CARBON-15251 ]  Hazelcast
   coordinator issue after cluster partitioning
   - [CARBON-15257 ]
Student-Manager
   Sample is broken in Carbon 4.4.0 release
   - [CARBON-15265 ]  Dead-Lock
   occurred at cluster startup
   - [CARBON-15311 ]  Upgrade
   Eclipse ECJ compiler version to 4.4.2
   - [CARBON-15313 ]  Teants
   cannot login to Management console until the password is reset when
   connecting to Active Directory
   - [CARBON-15320 ]  Add
   webapp-classloading.xml to carbon webapp
   - [CARBON-15203 ]  Gson
   builder validates the order of input parameters in the JSON payload - DSS
   - [CARBON-15231 ]  NPE when
   PayloadFactory mediator is used with json message type and chunking is
   disabled
   - [CARBON-15255 ]  Make the
   cookie.setSecure(true) and cookie.setHttpOnly(true);
   - [CARBON-15262 ]  [Cluster]
   - NPE when Invoke GET method for a REST service
   - [CARBON-15276 ]  Upgrade
   Hazelcast version to 3.5
   - [CARBON-15290 ]  When
   namespace empty in Part element generated wsdl namespace prefix contains
   null:
   - [CARBON-15304 ]  Remove
   obsolete parameters in wso2server.sh
   - [CARBON-15301 ] Fix UM/Reg
   related Oracle RAC DB scripts
   - [CARBON-15280 ]Service
   with GET resources returns fault String if it has url path params similar
   to the service name

Refer https://wso2.org/jira/issues/?filter=12323 for more details.

*Known Issues*

   - https://wso2.org/jira/browse/CARBON/fixforversion/11778


*How to Contribute*

   - WSO2 Carbon kernel code is hosted in GitHub.
   - The GIT repository is  https://github.com/wso2/carbon4-kernel/
   - Carbon 4.4.1 release tag is
   https://github.com/wso2/carbon4-kernel/releases/tag/v4.4.1
   - Please report issues at Carbon JIRA.
   https://wso2.org/jira/browse/CARBON

*Contact Us*

WSO2 Carbon developers can be contacted via following mailing lists:

   - Carbon Developers List: dev@wso2.org
   - Carbon Architecture List: architect...@wso2.org


You can download the released distribution from the following location.

   - http://wso2.com/products/carbon/


Thank for your interest in WSO2 Carbon Kernel.

Thanks
Best Regards
Carbon Team
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Jaggery] Retrieving public IP of the HTTP Servlet Transport

2015-08-05 Thread Ruwan Abeykoon
Hi Rasika,
Try setting -Dserver.host=2.2.2.2 in your "wso2server.sh"

Cheers,
Ruwanm

On Wed, Aug 5, 2015 at 7:13 PM, Rasika Perera  wrote:

> Hi,
>
> When we have setup a public IP (eg. 2.2.2.2) and a private IP (eg.
> 1.1.1.1) for a server setup given that [1] changes done on carbon.xml.
>
> How can I retrieve the public IP from the following jaggery code;
>
>> ​var carbon = require('carbon');
>> print (carbon.server.address('http'));
>
>
> This still prints "http://1.1.1.1:9763";. Is there any additional
> configurations needed to be done on carbon.xml?
>
> [1] carbon.xml
>
> 2.2.2.2
>
> 2.2.2.2​
>
> --
> With Regards,
>
> *Rasika Perera*
> Software Engineer
> M: +94 71 680 9060 E: rasi...@wso2.com
> LinkedIn: http://lk.linkedin.com/in/rasika90
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Ruwan Abeykoon*
*Architect,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: ruw...@wso2.com
phone:(+94) 39736
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Jaggery] Retrieving public IP of the HTTP Servlet Transport

2015-08-05 Thread Rasika Perera
Hi,

When we have setup a public IP (eg. 2.2.2.2) and a private IP (eg. 1.1.1.1)
for a server setup given that [1] changes done on carbon.xml.

How can I retrieve the public IP from the following jaggery code;

> ​var carbon = require('carbon');
> print (carbon.server.address('http'));


This still prints "http://1.1.1.1:9763";. Is there any additional
configurations needed to be done on carbon.xml?

[1] carbon.xml

2.2.2.2

2.2.2.2​

-- 
With Regards,

*Rasika Perera*
Software Engineer
M: +94 71 680 9060 E: rasi...@wso2.com
LinkedIn: http://lk.linkedin.com/in/rasika90

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


[Dev] [CDMF] What is meant by the term "features" in CDMF

2015-08-05 Thread Ayyoob Hamza
Hi All,
What is meant by the term features(feature manager) in CDMF ?.

When considering a device, it has a set of sensors or actuators. So in here
does features are considered  as a collection of actuators or sensors or
both ?.

This is just a thought I got,  In CDMF, we have considered the control of
 actuators by operations and policies. likewise I found that it would be
great if we could bring sensor management into CDMF. This will help us to
identify and keep track of sensors that a device has got. This might also
help us to provide a common API for data extraction for a specific device
and also ease the process on defining the stream definition for a data
publisher.

Thanks,
*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Orbit] Please review and merge PR

2015-08-05 Thread Maduranga Siriwardena
Hi Aruna,

This is an already existing orbit bundle. I needed to export a package from
the bundle. So I had to update the version. Approve is given to the bundle
in the mail titled with "[Dev] Adding apacheds/1.5.7.wso2v3 and
nimbus/2.26.1.wso2v3".

I have added the export version as you have asked in the comments of the
PR. Embedded dependencies are already in the bundle. So I hope they need
not be changed.

Thank you,
Maduranga

On Wed, Aug 5, 2015 at 6:03 PM, Aruna Karunarathna  wrote:

> Hi Maduranga,
>
> Added some comments to your PR, Can you check and update?.
> By the way, I believe that this was an approved library?..
>
> Regards,
> Aruna
>
> On Wed, Aug 5, 2015 at 5:48 PM, KasunG Gajasinghe  wrote:
>
>> Hi Aruna,
>>
>> Can you review this?
>>
>>
>> On Wed, Aug 5, 2015 at 5:29 PM, Maduranga Siriwardena > > wrote:
>>
>>> Hi Carbon team,
>>>
>>> Please review and merge pull request [1] for orbit.
>>>
>>> This PR export org.apache.directory.server.constants from apacheds
>>> bundle, which is used by carbon-identity. This is needed to compile the
>>> carbon-identity with java 8.
>>>
>>> [1] https://github.com/wso2/orbit/pull/115
>>>
>>> Thank you,
>>> Maduranga
>>>
>>> --
>>> Maduranga Siriwardena
>>> Software Engineer
>>> WSO2 Inc.
>>>
>>> email: madura...@wso2.com
>>> mobile: +94718990591
>>>
>>
>>
>>
>> --
>>
>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>> email: kasung AT spamfree wso2.com
>> linked-in: http://lk.linkedin.com/in/gajasinghe
>> blog: http://kasunbg.org
>>
>>
>>
>
>
>
> --
>
> *Aruna Sujith Karunarathna *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



-- 
Maduranga Siriwardena
Software Engineer
WSO2 Inc.

email: madura...@wso2.com
mobile: +94718990591
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Devstudio ->new->project - bug?

2015-08-05 Thread Kavith Lokuhewage
Hi John,

I have closed the jira. Just FYI, In addition to Ctrl+click, you can also
use Ctrl+space shortcut to un-select a project and avoid nesting of newly
created projects.

Thanks.


On Wed, Aug 5, 2015 at 6:02 PM, Harshana Eranga Martin  wrote:

> Hi John,
>
> One of the team member resolve it.
>
> Thanks and Regards,
> Harshana
>
>
> On Wednesday, August 5, 2015, John Hawkins  wrote:
>
>> Hi, thanks for the info.
>> I tried closing it but I don't seem to have authority - would you mind
>> please?
>>
>> John Hawkins
>> Director: Solutions Architecture
>>
>>
>> On Tue, Aug 4, 2015 at 6:30 PM, Harshana Eranga Martin <
>> harshan...@gmail.com> wrote:
>>
>>> Hi John,
>>>
>>> This is actually not a bug rather a feature provided in the Dev Studio.
>>>
>>> In regular Eclipse Distributions or any other flavour of Eclipse you
>>> cannot create SubProjects. But in order to simulate the real world
>>> enterprise development scenarios we identified this as a requirement.
>>> Specially when you are working with Maven build system this is a real
>>> useful feature. Eclipse community has been requesting this feature for
>>> years now. Considering all of above we implemented this feature for Dev
>>> Studio.
>>>
>>> In case you are having trouble creating projects in the Workspace Root
>>> level, CTRL + Click to unselect the currently selected project. Then go
>>> ahead and create your projects as usual.
>>>
>>>
>>>
>>> Thanks and Regards,
>>> Harshana
>>> --
>>> Harshana Eranga Martin
>>>
>>> Committer - Eclipse ECF: http://www.eclipse.org/ecf/
>>> Blog: http://harshana05.blogspot.com
>>> Profile: https://www.google.com/profiles/harshana05
>>>
>>> On 4 August 2015 at 18:10, John Hawkins  wrote:
>>>
 Hi Folks,

 This is something that's got me several times over recent weeks so I've
 created a JIRA for it to get your opinion please [1]. I've not seen any
 other product do this so I'm thinking that it's not the correct behaviour ?

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


 many thanks,
 John.






 John Hawkins
 Director: Solutions Architecture


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


>>>
>>
>
> --
> Sent from Gmail Mobile for IPhone
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Kavith Lokuhewage*
Software Engineer
WSO2 Inc. - http://wso2.com
lean . enterprise . middleware
Mobile - +9477-9-145-123 | +9471-455-6-401
Linkedin   Twitter

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


Re: [Dev] [Orbit] Please review and merge PR

2015-08-05 Thread Aruna Karunarathna
Hi Maduranga,

Added some comments to your PR, Can you check and update?.
By the way, I believe that this was an approved library?..

Regards,
Aruna

On Wed, Aug 5, 2015 at 5:48 PM, KasunG Gajasinghe  wrote:

> Hi Aruna,
>
> Can you review this?
>
>
> On Wed, Aug 5, 2015 at 5:29 PM, Maduranga Siriwardena 
> wrote:
>
>> Hi Carbon team,
>>
>> Please review and merge pull request [1] for orbit.
>>
>> This PR export org.apache.directory.server.constants from apacheds
>> bundle, which is used by carbon-identity. This is needed to compile the
>> carbon-identity with java 8.
>>
>> [1] https://github.com/wso2/orbit/pull/115
>>
>> Thank you,
>> Maduranga
>>
>> --
>> Maduranga Siriwardena
>> Software Engineer
>> WSO2 Inc.
>>
>> email: madura...@wso2.com
>> mobile: +94718990591
>>
>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



-- 

*Aruna Sujith Karunarathna *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Devstudio ->new->project - bug?

2015-08-05 Thread Harshana Eranga Martin
Hi John,

One of the team member resolve it.

Thanks and Regards,
Harshana

On Wednesday, August 5, 2015, John Hawkins  wrote:

> Hi, thanks for the info.
> I tried closing it but I don't seem to have authority - would you mind
> please?
>
> John Hawkins
> Director: Solutions Architecture
>
>
> On Tue, Aug 4, 2015 at 6:30 PM, Harshana Eranga Martin <
> harshan...@gmail.com
> > wrote:
>
>> Hi John,
>>
>> This is actually not a bug rather a feature provided in the Dev Studio.
>>
>> In regular Eclipse Distributions or any other flavour of Eclipse you
>> cannot create SubProjects. But in order to simulate the real world
>> enterprise development scenarios we identified this as a requirement.
>> Specially when you are working with Maven build system this is a real
>> useful feature. Eclipse community has been requesting this feature for
>> years now. Considering all of above we implemented this feature for Dev
>> Studio.
>>
>> In case you are having trouble creating projects in the Workspace Root
>> level, CTRL + Click to unselect the currently selected project. Then go
>> ahead and create your projects as usual.
>>
>>
>>
>> Thanks and Regards,
>> Harshana
>> --
>> Harshana Eranga Martin
>>
>> Committer - Eclipse ECF: http://www.eclipse.org/ecf/
>> Blog: http://harshana05.blogspot.com
>> Profile: https://www.google.com/profiles/harshana05
>>
>> On 4 August 2015 at 18:10, John Hawkins > > wrote:
>>
>>> Hi Folks,
>>>
>>> This is something that's got me several times over recent weeks so I've
>>> created a JIRA for it to get your opinion please [1]. I've not seen any
>>> other product do this so I'm thinking that it's not the correct behaviour ?
>>>
>>> [1] https://wso2.org/jira/browse/TOOLS-3002
>>>
>>>
>>> many thanks,
>>> John.
>>>
>>>
>>>
>>>
>>>
>>>
>>> John Hawkins
>>> Director: Solutions Architecture
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org 
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>

-- 
Sent from Gmail Mobile for IPhone
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while building

2015-08-05 Thread Maninda Edirisooriya
Thanks Aruna so much it worked.


*Maninda Edirisooriya*
Senior Software Engineer

*WSO2, Inc.*lean.enterprise.middleware.

*Blog* : http://maninda.blogspot.com/
*E-mail* : mani...@wso2.com
*Skype* : @manindae
*Twitter* : @maninda

On Wed, Aug 5, 2015 at 5:06 PM, Aruna Karunarathna  wrote:

> Hi Maninda,
>
> Can you check the value of carbon.analytics-common.version, has it been
> assigned properly?
>
> Regards,
> Aruna
>
> On Wed, Aug 5, 2015 at 4:58 PM, Maninda Edirisooriya 
> wrote:
>
>> Hi,
>>
>> I am moving org.wso2.carbon.analytics.jmx.agent.ui and its BE component
>> from repository, "org.wso2.carbon.analytics" to
>> "org.wso2.carbon.analytics-common". There I am assigning the
>> 2.0.0-SNAPSHOT as the new version that is the
>> org.wso2.carbon.analytics-common repository version.
>>
>> But I am getting the error [1] while building and the build fails. Do you
>> have any idea?
>>
>> [1]
>>
>> [INFO] --- maven-bundle-plugin:2.3.5:bundle (default-bundle) @
>> org.wso2.carbon.analytics.jmx.agent.ui ---
>> [WARNING] Bundle
>> org.wso2.carbon.analytics-common:org.wso2.carbon.analytics.jmx.agent.ui:bundle:2.0.0-SNAPSHOT
>> : No translation found for macro: carbon.analytics-common.version
>> [WARNING] Bundle
>> org.wso2.carbon.analytics-common:org.wso2.carbon.analytics.jmx.agent.ui:bundle:2.0.0-SNAPSHOT
>> : No translation found for macro: range;[==,+)
>> [ERROR] Bundle
>> org.wso2.carbon.analytics-common:org.wso2.carbon.analytics.jmx.agent.ui:bundle:2.0.0-SNAPSHOT
>> : null, for cmd: range, arguments; [range, [==,+)]
>> [ERROR] Bundle
>> org.wso2.carbon.analytics-common:org.wso2.carbon.analytics.jmx.agent.ui:bundle:2.0.0-SNAPSHOT
>> : No version specified for ${version} or ${range} and no implicit version
>> ${@} either, mask===
>> [ERROR] Bundle
>> org.wso2.carbon.analytics-common:org.wso2.carbon.analytics.jmx.agent.ui:bundle:2.0.0-SNAPSHOT
>> : No version specified for ${version} or ${range} and no implicit version
>> ${@} either, mask=+
>> [ERROR] Error(s) found in bundle configuration
>> [INFO]
>> 
>> [INFO] BUILD FAILURE
>> [INFO]
>> 
>> [INFO] Total time: 5.777s
>> [INFO] Finished at: Wed Aug 05 16:56:59 IST 2015
>> [INFO] Final Memory: 35M/1238M
>> [INFO]
>> 
>> [ERROR] Failed to execute goal
>> org.apache.felix:maven-bundle-plugin:2.3.5:bundle (default-bundle) on
>> project org.wso2.carbon.analytics.jmx.agent.ui: Error(s) found in bundle
>> configuration -> [Help 1]
>>
>>
>> Thanks
>>
>> *Maninda Edirisooriya*
>> Senior Software Engineer
>>
>> *WSO2, Inc.*lean.enterprise.middleware.
>>
>> *Blog* : http://maninda.blogspot.com/
>> *E-mail* : mani...@wso2.com
>> *Skype* : @manindae
>> *Twitter* : @maninda
>>
>
>
>
> --
>
> *Aruna Sujith Karunarathna *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Orbit] Please review and merge PR

2015-08-05 Thread KasunG Gajasinghe
Hi Aruna,

Can you review this?


On Wed, Aug 5, 2015 at 5:29 PM, Maduranga Siriwardena 
wrote:

> Hi Carbon team,
>
> Please review and merge pull request [1] for orbit.
>
> This PR export org.apache.directory.server.constants from apacheds bundle,
> which is used by carbon-identity. This is needed to compile the
> carbon-identity with java 8.
>
> [1] https://github.com/wso2/orbit/pull/115
>
> Thank you,
> Maduranga
>
> --
> Maduranga Siriwardena
> Software Engineer
> WSO2 Inc.
>
> email: madura...@wso2.com
> mobile: +94718990591
>



-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB][Pass Through Proxy] Added pass through proxy services are not visible in the lsit

2015-08-05 Thread Sachith Punchihewa
The service is listed in the "Source View".Thank you FYI.I'll try removing
that.is there is a possibility to use that service with put re configuring
again.

Thanks and Regards.

Kamidu Sachith Punchihewa
*Software Engineer*
WSO2, Inc.
lean . enterprise . middleware
Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>


Disclaimer: This communication may contain privileged or other confidential
information and is intended exclusively for the addressee/s. If you are not
the intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print, copy,
retransmit, disseminate, or otherwise use the information contained in this
communication. Internet communications cannot be guaranteed to be timely,
secure, error or virus-free. The sender does not accept liability for any
errors or omissions.

On Wed, Aug 5, 2015 at 5:38 PM, Hemika Kodikara  wrote:

> The proxy should be there in the "Source View". Delete that proxy from
> there so that you can add the proxy again.
>
> Hemika Kodikara
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middleware
> http://wso2.com
>
> Mobile : +9477762
>
> On Wed, Aug 5, 2015 at 5:35 PM, Sachith Punchihewa 
> wrote:
>
>> I have added a Pass Through Proxy named "OrderProcessing".And It was
>> working as expected.after stopping the ESB and restarting PC, the service
>> is not listed in LIST. (refer to the screen capture below )
>>
>> [image: Inline image 2]
>> When I try to add the service again using the same name .an error is
>> prompt indicating that there is a service with the name provided. (refer to
>> the screen capture below )
>>
>> [image: Inline image 3]
>>
>> And i cannot access the service using the given proxy URL previously.Any
>> particular reason for this behavior ?
>>
>> PS:
>> OrderProcessing.xml  is available at
>> */opt/esb/repository/deployment/server/synapse-configs/default/proxy-services/*
>>
>>
>>
>> Thanks & Best Regards.
>> Kamidu Sachith Punchihewa
>> *Software Engineer*
>> WSO2, Inc.
>> lean . enterprise . middleware
>> Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>
>>
>>
>> Disclaimer: This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may have
>> received this communication in error, please reply to the sender indicating
>> that fact and delete the copy you received and in addition, you should not
>> print, copy, retransmit, disseminate, or otherwise use the information
>> contained in this communication. Internet communications cannot be
>> guaranteed to be timely, secure, error or virus-free. The sender does not
>> accept liability for any errors or omissions.
>>
>> ___
>> 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] How to add a Servlet in DSS

2015-08-05 Thread Madhawa Gunasekara
Hi Kasun,

How can we use web app for multi-tenancy? Do we have to deploy the web app
in each tenant folder?
if not how can we load the tenant configuration manually ?

Thanks,
Madhawa

On Wed, Aug 5, 2015 at 12:58 PM, Anjana Fernando  wrote:

> Hi Kasun,
>
> I see, make sense, with the security scenarios and so on. Just wondering
> since, we got a patch for the earlier wild cards scenario. Thanks for the
> clarification.
>
> Cheers,
> Anjana.
>
> On Wed, Aug 5, 2015 at 12:54 PM, KasunG Gajasinghe 
> wrote:
>
>> Hi Anjana,
>>
>> The servlet registration provided via component.xml only provides a basic
>> set of features. As we discussed here, it does not support wild cards. And,
>> it does not support things such as security-constraints which we configure
>> through web.xml of a webapp. I believe Madhawa requested this as well in
>> the thread [1]. And, there can be other requirements that might pop-up as
>> the integration goes on.
>>
>> Since we have a viable approach for these problems by using webapps, it's
>> better to go on that path because of the above.
>>
>> [1] How to handle QOS Security for servlet request
>>
>>
>> On Wed, Aug 5, 2015 at 12:36 PM, Anjana Fernando  wrote:
>>
>>> Hi Kasun,
>>>
>>> But, still, it is an extra hassle to create another webapp and copy it
>>> to the deployment directory separately, it is not there with the other
>>> components. What is wrong with the other existing approach? ..
>>>
>>> Cheers,
>>> Anjana.
>>>
>>> On Wed, Aug 5, 2015 at 12:33 PM, KasunG Gajasinghe 
>>> wrote:
>>>
 Hi Anjana/Madhawa,

 The webapp is there to expose a servlet. The actual logic does not need
 to be in the webapp itself, and can be put in a carbon component. So,
 there's no separation.

 IS etc. does the same where they have JAX-RS webapps that only has the
 jax-rs resource class to expose a REST service. The actual logic is there
 in identity components.

 On Tue, Aug 4, 2015 at 11:25 PM, Madhawa Gunasekara 
 wrote:

> Hi Carbon Team,
>
> Can we add this improvement to the upcoming carbon minor version
> release ?
>
> Thanks,
> Madhawa
>
> On Wed, Jul 29, 2015 at 10:36 PM, Anjana Fernando 
> wrote:
>
>> Hi Niranjan,
>>
>> Why exactly is that? .. it doesn't look right to put one of the
>> server's core logic in a webapp. Also it has to be specially copied to 
>> the
>> deployment folder and all, and also, will all the tenant's get it's own
>> context? .. Basically, just having a separate web app feels like, it's
>> separated from the other components.
>>
>> Cheers,
>> Anjana.
>>
>> On Wed, Jul 29, 2015 at 12:25 PM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Madhawa,
>>>
>>> As per the offline discussion with the team (Kernel), we recommended
>>> to use webapp. Therefore we will be reverting this.
>>>
>>> Regards,
>>> Nira
>>>
>>> On Wed, Jul 22, 2015 at 3:46 PM, Madhawa Gunasekara <
>>> madha...@wso2.com> wrote:
>>>
 Hi All,

 Please find the created JIRA
 https://wso2.org/jira/browse/CARBON-15322

 Thanks
 Madhawa

 On Wed, Jul 22, 2015 at 2:46 PM, Niranjan Karunanandham <
 niran...@wso2.com> wrote:

> Hi Madhawa,
>
> Can you raise a JIRA in Kernel as an improvement for this?
>
> Regards,
> Nira
>
> On Wed, Jul 22, 2015 at 2:14 PM, Madhawa Gunasekara <
> madha...@wso2.com> wrote:
>
>> Hi Thusitha,
>>
>> Can we add wild-card option for the implementation ?
>>
>> Thanks
>>
>> On Wed, Jul 22, 2015 at 2:12 PM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Hi Madhawa,
>>>
>>> AFAIU In the implementation it get the links and add them to a
>>> Map where key and value both are same. When we do a request it 
>>> check from
>>> the map whether the key exist for the path. If exist it will be 
>>> bypass
>>> otherwise it will redirect.
>>> In your case  /odataservices/* will be the key and when you
>>> request http://localhost:9443/odataservices/* since the link
>>> key matches this will bypass the login. But when you request 
>>> something like
>>> http://localhost:9443/odataservices/abc then this will not
>>> match based on the implementation so it will redirect to the login 
>>> page.
>>>
>>> Thanks
>>> Thusitha
>>>
>>> On Tue, Jul 21, 2015 at 6:34 PM, Madhawa Gunasekara <
>>> madha...@wso2.com> wrote:
>>>
 Kind reminder on this..!

 On Sat, Jul 4, 2015 at 9:39 AM, Madhawa Gunasekara <
 madha...@wso2.com> w

Re: [Dev] [ESB][Pass Through Proxy] Added pass through proxy services are not visible in the lsit

2015-08-05 Thread Hemika Kodikara
The proxy should be there in the "Source View". Delete that proxy from
there so that you can add the proxy again.

Hemika Kodikara
Software Engineer
WSO2 Inc.
lean . enterprise . middleware
http://wso2.com

Mobile : +9477762

On Wed, Aug 5, 2015 at 5:35 PM, Sachith Punchihewa 
wrote:

> I have added a Pass Through Proxy named "OrderProcessing".And It was
> working as expected.after stopping the ESB and restarting PC, the service
> is not listed in LIST. (refer to the screen capture below )
>
> [image: Inline image 2]
> When I try to add the service again using the same name .an error is
> prompt indicating that there is a service with the name provided. (refer to
> the screen capture below )
>
> [image: Inline image 3]
>
> And i cannot access the service using the given proxy URL previously.Any
> particular reason for this behavior ?
>
> PS:
> OrderProcessing.xml  is available at
> */opt/esb/repository/deployment/server/synapse-configs/default/proxy-services/*
>
>
>
> Thanks & Best Regards.
> Kamidu Sachith Punchihewa
> *Software Engineer*
> WSO2, Inc.
> lean . enterprise . middleware
> Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>
>
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, retransmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB][Pass Through Proxy] Added pass through proxy services are not visible in the lsit

2015-08-05 Thread Sachith Punchihewa
I have added a Pass Through Proxy named "OrderProcessing".And It was
working as expected.after stopping the ESB and restarting PC, the service
is not listed in LIST. (refer to the screen capture below )

[image: Inline image 2]
When I try to add the service again using the same name .an error is prompt
indicating that there is a service with the name provided. (refer to the
screen capture below )

[image: Inline image 3]

And i cannot access the service using the given proxy URL previously.Any
particular reason for this behavior ?

PS:
OrderProcessing.xml  is available at
*/opt/esb/repository/deployment/server/synapse-configs/default/proxy-services/*



Thanks & Best Regards.
Kamidu Sachith Punchihewa
*Software Engineer*
WSO2, Inc.
lean . enterprise . middleware
Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>


Disclaimer: This communication may contain privileged or other confidential
information and is intended exclusively for the addressee/s. If you are not
the intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print, copy,
retransmit, disseminate, or otherwise use the information contained in this
communication. Internet communications cannot be guaranteed to be timely,
secure, error or virus-free. The sender does not accept liability for any
errors or omissions.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Orbit] Please review and merge PR

2015-08-05 Thread Maduranga Siriwardena
Hi Carbon team,

Please review and merge pull request [1] for orbit.

This PR export org.apache.directory.server.constants from apacheds bundle,
which is used by carbon-identity. This is needed to compile the
carbon-identity with java 8.

[1] https://github.com/wso2/orbit/pull/115

Thank you,
Maduranga

-- 
Maduranga Siriwardena
Software Engineer
WSO2 Inc.

email: madura...@wso2.com
mobile: +94718990591
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Synapse] Odd behavior in picking the API definition with the correct version, in Synapse 2.1.3.wso2v3

2015-08-05 Thread Kevin Ratnasekera
Hi Ravi,
Can you please review and merge the pr[1] which solves the issue.
[1]https://github.com/wso2/wso2-synapse/pull/298
Regards
Kevin

On Wed, Aug 5, 2015 at 9:58 AM, Chanaka Fernando  wrote:

> Hi Kevin,
>
> Can you look into this and check whether we can merge this change to the
> latest synapse branch? Please talk to Ravi if you need any help.
>
> Thanks,
> Chanaka
>
> On Wed, Aug 5, 2015 at 9:43 AM, Rushmin Fernando  wrote:
>
>> Had a chat with Malintha.
>>
>> Seems like we face this issue because *RESTRequestHandler *doesn't give
>> the priority to versioned APIs.
>>
>> The correct code is there in Synapse 2.1.2.wso2v6 [1]
>>
>> Created a JIRA [2]
>>
>> [1] -
>>
>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/dependencies/synapse/2.1.2-wso2v7/modules/core/src/main/java/org/apache/synapse/rest/RESTRequestHandler.java
>>
>> [2]  - https://wso2.org/jira/browse/ESBJAVA-4012
>>
>> Thanks
>> Rushmin
>>
>>
>>
>>
>>
>> On Mon, Aug 3, 2015 at 12:26 PM, Malintha Amarasinghe > > wrote:
>>
>>> Hi Rushmin,
>>>
>>> We faced something similar when introducing Default Version Feature for
>>> APIM 1.7.
>>>
>>> Can you please check whether you are facing the same issue as this?
>>> http://mail.wso2.org/mailarchive/architecture/2014-March/015574.html
>>>
>>> Thanks,
>>> Malintha
>>>
>>>
>>> On Mon, Aug 3, 2015 at 11:52 AM, Rushmin Fernando 
>>> wrote:
>>>


 We recently upgraded App Manager's synapse version to 2.1.3.wso2v3 and
 noticed some odd behavior.

 *Test case*
 *-*

 There are two API config files (with some other API config files [1])

   1) admin--AppManagerSandbox.xml;  *API Name* = SandboxOne;  *Context*
 = /am-sandbox

   2) admin--AppManagerSandbox_vv1.xml; *API Name* = SandboxOne;
 *Version* = v1;  *Context* = /am-sandbox

 When the API is called with the URL *http://localhost:8280/am-sandbox/v1
   *...

 Synapse *doesn't* pick the API with the version
 (admin--AppManagerSandbox_vv1.xml).

 Rather it picks the non-versioned one (admin--AppManagerSandbox.xml)

 When the two APIs are renamed to '*AppMSandbox*' it works as expected.

 And even with the name 'SandboxOne' it works as expected, *when there
 are no* API definitions other than the two *admin--AppManagerSandbox**
 APIs


 *So the summary is *

 Default APIs + SandboxOne ==> NO
 Default APIs + AppMSandbox ==> YES
 AppMSandbox ==> YES
 SandboxOne ==> YES

 NO = Versioning doesn't  work
 YES = Versioning works


 Is this a bug or am I doing something wrong ?


 [1]

 http://ws.apache.org/ns/synapse";
 name="_WSO2AMAuthorizeAPI_" context="/authorize">
 
 
 
 
 https://localhost:9443/oauth2/authorize"/>
 
 
 
 
 
 
 
 

 http://ws.apache.org/ns/synapse"; name="_WSO2AMRevokeAPI_"
 context="/revoke">
 
 
 
 
 https://localhost:9443/oauth2/revoke
 "/>
 
 
 
 
 
 
 
 
 >>> class="org.wso2.carbon.appmgt.gateway.handlers.ext.APIManagerCacheExtensionHandler"/>
 
 

 http://ws.apache.org/ns/synapse";
  name="_WSO2AMStatisticsAPI_"
  transports="http"
  context="/statistics">

 
 
 
 
 
 
 


  

 

 
 

 http://ws.apache.org/ns/synapse"; name="_WSO2APPMTokenAPI_"
 context="/token">
 
 
 
 
 https://localhost:9443/appmoauth2/token"/>
 
 
 
 
 
 
 
 
 >>> class="org.wso2.carbon.appmgt.gateway.handlers.ext.APIManagerCacheExtensionHandler"/>
 
 






 --
 *Rushmin Fernando*
 *Technical Lead*

 WSO2 Inc.  - Lean . Enterprise . Middleware

 email : rush...@wso2.com
 mobile : +94772310855



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


>>>
>>>
>>> --
>>> Malintha Amarasinghe
>>> Software Engineer
>>> *WSO2, Inc. - lean | enterprise | middleware*
>>> http://wso2.com/
>>>
>>> Mobile : +94 712383306
>>>
>>
>>
>>
>> --
>> *Rushmin Fernando*
>> *Technical Lead*
>>
>> WSO2 Inc. 

Re: [Dev] Unexpected error sending message back- in ESB 4.8.1 while running scheduled task

2015-08-05 Thread Aaquibah Nashry
Hi Chanaka,

As you suggested, after i replaced  with  in the
sequence the error is fixed. Thank you.

Regards,

M.R.Aaquibah Nashry
*Intern, Engineering**| **WSO2, Inc.*
Mobile : +94 773946123
Tel  : +94 112662541
Email : nas...@wso2.com 

On Wed, Aug 5, 2015 at 3:38 PM, Chanaka Fernando  wrote:

> Can you attach the task and proxy configurations?
>
> On Wed, Aug 5, 2015 at 3:28 PM, Aaquibah Nashry  wrote:
>
>> Hi Chanaka,
>>
>> I changed the send mediator to the drop mediator. But got the same set of
>> errors. Any ideas?
>>
>> Thanks
>>
>> Regards,
>>
>> M.R.Aaquibah Nashry
>> *Intern, Engineering**| **WSO2, Inc.*
>> Mobile : +94 773946123
>> Tel  : +94 112662541
>> Email : nas...@wso2.com 
>>
>> On Wed, Aug 5, 2015 at 2:49 PM, Chanaka Fernando 
>> wrote:
>>
>>> Hi Aaquibah,
>>>
>>> Looks like you are trying to execute a proxy service using scheduled
>>> task where back end sends a response message to the ESB. In this case, ESB
>>> will fail to send that response, since there is no client in this scenario.
>>> You can use the drop mediator in the out sequence such that it will drop
>>> the message instead of trying to respond back to the client.
>>>
>>> Thanks,
>>> Chanaka
>>>
>>> On Wed, Aug 5, 2015 at 2:22 PM, Aaquibah Nashry  wrote:
>>>
 Hi,

 i get the following errors when i try to run a proxy as a scheduled
 task in the esb 4.8.1:

 Any help would be greatly appreciated.

 LOGS:

 [2015-08-05 11:46:00,004]  INFO - LogMediator To: , MessageID:
 urn:uuid:2464be20-b62d-46e0-aa6d-fba1b0916395, Direction: request, STATE =
 LEADQ
 [2015-08-05 11:46:00,009]  INFO - LogMediator Connection = Login to
 Salesforce .
 [2015-08-05 11:46:10,166]  INFO - LogMediator To:
 http://www.w3.org/2005/08/addressing/anonymous, WSAction: ,
 SOAPAction: , MessageID: urn:uuid:52c9cf45-6c1c-4325-a2dd-e859d4f5b3bc,
 Direction: request, STATE =  LEADQ


 [2015-08-05 11:46:10,170] ERROR - Axis2Sender
 Access-Control-Allow-Origin:*,Content-Type:application/json,Date:Wed, 05
 Aug 2015 06:16:09 GMT,Expires:Thu, 01 Jan 1970 00:00:00
 GMT,Set-Cookie:BrowserId=QUzIWHx-Q2ybwOcjvSLJmw;Path=/;Domain=.
 salesforce.com;Expires=Sun, 04-Oct-2015 06:16:09
 GMT,Transfer-Encoding:chunked,>>> encoding="utf-8"?>http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="
 http://www.w3.org/2001/XMLSchema"; xmlns="urn:partner.soap.sforce.com"
 xmlns:sf="urn:sobject.partner.soap.sforce.com" xmlns:xsi="
 http://www.w3.org/2001/XMLSchema-instance";>http://www.w3.org/2005/08/addressing";>urn:uuid:eccb2dcc-b961-4d43-b77d-47fe901039ab>>> xsi:type="QueryResult">true>>> xsi:nil="true" xsi:type="sf:sObject">AggregateResult>>> xsi:nil="true" xsi:nil="true" xsi:type="xsd:int">242015-08-05>>> xsi:type="sf:sObject">AggregateResult>>> xsi:nil="true">NA>>> xsi:type="xsd:int">15722015-08-05>>> xsi:type="sf:sObject">AggregateResult>>> xsi:nil="true">SA>>> xsi:type="xsd:int">3822015-08-05>>> xsi:type="sf:sObject">AggregateResult>>> xsi:nil="true">EUROPE>>> xsi:type="xsd:int">16422015-08-05>>> xsi:type="sf:sObject">AggregateResult>>> xsi:nil="true">MEAP>>> xsi:type="xsd:int">72015-08-05>>> xsi:type="sf:sObject">AggregateResult>>> xsi:nil="true">ROW>>> xsi:type="xsd:int">20112015-08-056
 Unexpected error sending message back
 org.apache.axis2.AxisFault: Unable to determine wsa:Action for outbound
 message
 at
 org.apache.axis2.handlers.addressing.AddressingOutHandler$WSAHeaderWriter.processWSAAction(AddressingOutHandler.java:311)
 at
 org.apache.axis2.handlers.addressing.AddressingOutHandler$WSAHeaderWriter.writeHeaders(AddressingOutHandler.java:228)
 at
 org.apache.axis2.handlers.addressing.AddressingOutHandler.doInvoke(AddressingOutHandler.java:134)
 at
 org.apache.axis2.handlers.AbstractTemplatedHandler.invoke(AbstractTemplatedHandler.java:44)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:426)
 at
 org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:163)
 at
 org.apache.synapse.mediators.builtin.RespondMediator.mediate(RespondMediator.java:23)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
 at
 org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
 at
 org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:196)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
 at
 org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:255)
>>

Re: [Dev] Error while building

2015-08-05 Thread Aruna Karunarathna
Hi Maninda,

Can you check the value of carbon.analytics-common.version, has it been
assigned properly?

Regards,
Aruna

On Wed, Aug 5, 2015 at 4:58 PM, Maninda Edirisooriya 
wrote:

> Hi,
>
> I am moving org.wso2.carbon.analytics.jmx.agent.ui and its BE component
> from repository, "org.wso2.carbon.analytics" to
> "org.wso2.carbon.analytics-common". There I am assigning the
> 2.0.0-SNAPSHOT as the new version that is the
> org.wso2.carbon.analytics-common repository version.
>
> But I am getting the error [1] while building and the build fails. Do you
> have any idea?
>
> [1]
>
> [INFO] --- maven-bundle-plugin:2.3.5:bundle (default-bundle) @
> org.wso2.carbon.analytics.jmx.agent.ui ---
> [WARNING] Bundle
> org.wso2.carbon.analytics-common:org.wso2.carbon.analytics.jmx.agent.ui:bundle:2.0.0-SNAPSHOT
> : No translation found for macro: carbon.analytics-common.version
> [WARNING] Bundle
> org.wso2.carbon.analytics-common:org.wso2.carbon.analytics.jmx.agent.ui:bundle:2.0.0-SNAPSHOT
> : No translation found for macro: range;[==,+)
> [ERROR] Bundle
> org.wso2.carbon.analytics-common:org.wso2.carbon.analytics.jmx.agent.ui:bundle:2.0.0-SNAPSHOT
> : null, for cmd: range, arguments; [range, [==,+)]
> [ERROR] Bundle
> org.wso2.carbon.analytics-common:org.wso2.carbon.analytics.jmx.agent.ui:bundle:2.0.0-SNAPSHOT
> : No version specified for ${version} or ${range} and no implicit version
> ${@} either, mask===
> [ERROR] Bundle
> org.wso2.carbon.analytics-common:org.wso2.carbon.analytics.jmx.agent.ui:bundle:2.0.0-SNAPSHOT
> : No version specified for ${version} or ${range} and no implicit version
> ${@} either, mask=+
> [ERROR] Error(s) found in bundle configuration
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 5.777s
> [INFO] Finished at: Wed Aug 05 16:56:59 IST 2015
> [INFO] Final Memory: 35M/1238M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.felix:maven-bundle-plugin:2.3.5:bundle (default-bundle) on
> project org.wso2.carbon.analytics.jmx.agent.ui: Error(s) found in bundle
> configuration -> [Help 1]
>
>
> Thanks
>
> *Maninda Edirisooriya*
> Senior Software Engineer
>
> *WSO2, Inc.*lean.enterprise.middleware.
>
> *Blog* : http://maninda.blogspot.com/
> *E-mail* : mani...@wso2.com
> *Skype* : @manindae
> *Twitter* : @maninda
>



-- 

*Aruna Sujith Karunarathna *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error while building

2015-08-05 Thread Maninda Edirisooriya
Hi,

I am moving org.wso2.carbon.analytics.jmx.agent.ui and its BE component
from repository, "org.wso2.carbon.analytics" to
"org.wso2.carbon.analytics-common". There I am assigning the
2.0.0-SNAPSHOT as the new version that is the
org.wso2.carbon.analytics-common repository version.

But I am getting the error [1] while building and the build fails. Do you
have any idea?

[1]

[INFO] --- maven-bundle-plugin:2.3.5:bundle (default-bundle) @
org.wso2.carbon.analytics.jmx.agent.ui ---
[WARNING] Bundle
org.wso2.carbon.analytics-common:org.wso2.carbon.analytics.jmx.agent.ui:bundle:2.0.0-SNAPSHOT
: No translation found for macro: carbon.analytics-common.version
[WARNING] Bundle
org.wso2.carbon.analytics-common:org.wso2.carbon.analytics.jmx.agent.ui:bundle:2.0.0-SNAPSHOT
: No translation found for macro: range;[==,+)
[ERROR] Bundle
org.wso2.carbon.analytics-common:org.wso2.carbon.analytics.jmx.agent.ui:bundle:2.0.0-SNAPSHOT
: null, for cmd: range, arguments; [range, [==,+)]
[ERROR] Bundle
org.wso2.carbon.analytics-common:org.wso2.carbon.analytics.jmx.agent.ui:bundle:2.0.0-SNAPSHOT
: No version specified for ${version} or ${range} and no implicit version
${@} either, mask===
[ERROR] Bundle
org.wso2.carbon.analytics-common:org.wso2.carbon.analytics.jmx.agent.ui:bundle:2.0.0-SNAPSHOT
: No version specified for ${version} or ${range} and no implicit version
${@} either, mask=+
[ERROR] Error(s) found in bundle configuration
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 5.777s
[INFO] Finished at: Wed Aug 05 16:56:59 IST 2015
[INFO] Final Memory: 35M/1238M
[INFO]

[ERROR] Failed to execute goal
org.apache.felix:maven-bundle-plugin:2.3.5:bundle (default-bundle) on
project org.wso2.carbon.analytics.jmx.agent.ui: Error(s) found in bundle
configuration -> [Help 1]


Thanks

*Maninda Edirisooriya*
Senior Software Engineer

*WSO2, Inc.*lean.enterprise.middleware.

*Blog* : http://maninda.blogspot.com/
*E-mail* : mani...@wso2.com
*Skype* : @manindae
*Twitter* : @maninda
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to specify timezone on user registration

2015-08-05 Thread Kasun Bandara
Hi Ayyoob,

Currently, when registering a user, we can capture the
Country/locale/region of a particular user through WSO2 Claims [1]. Through
the captured claim values, you can implement a custom method (i.e using the
country of the registered user) to retrieve the timezone of a particular
user.

[1] https://docs.wso2.com/display/IS500/Claim+Management

Thanks and Regards,
KasunB

On Wed, Aug 5, 2015 at 3:56 PM, Ayyoob Hamza  wrote:

> Hi,
> When a new user is registered is there a standard way to define the
> timezone of the user. So that we can display user specific timestamp data
> related to their timezone.
>
> Thanks,
> *Ayyoob Hamza*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Kasun Bandara
*Software Engineer*
Mobile : +94 (0) 718 338 360
<%2B94%20%280%29%20773%20451194>
kas...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ES]Status update of ES 2.0

2015-08-05 Thread Chankami Maddumage
Hi All,

Currently the QA team is testing ES 2.0 Beta 1.  Please refer [1] for the
tested scenarios please note that features here are listed in high-level.
Please refer to [2]  for High-level test cases and we are moving  all test
cases to [3] TestLink.

Additionally we have tested the  below

*Device Compatibility*

 [4]


*OS Compatibility*

Ubuntu 14.4

Centos 6.5

Windows 7

Mac OS X Yosemite

*Tested Databases *

MYSQL

POSTGRESQL -

ORACLE

MSSQL

DB2

Mariadb

*Control Access and Security *

External IDP - IS

SSO - Sign in / Sign out /Session time out

Java security manager

Username as Email

Secure Vault -Cyper tool

Vulnerabilities - Zap Tool

Keystore

*Common scenarios*

Primary user stores - JDBC/LDAP/AD

Secondary user stores  -- JDBC/LDAP/AD

*JDKs*

Oracle JDK 1.7

Oracle JDK 1.8

IBM JDK 1.7.0

IBM JDk 1.8.0

*Cluster setup*

Publisher : https://publisher.es-wso2.com/


Store : https://store.es-wso2.com/ 

SSO configured via IS

Load test with 3000 assets


At the moment there are few blockers to release the ES Beta 2 due to some
releases pending from other products. Therefore currently we have started
adding test cases for ES to Test Link


[1]
https://github.com/wso2/wso2-qa-artifacts/tree/master/products/wso2_ES/MindMaps
[2]
https://docs.google.com/spreadsheets/d/1MlDOVJDb_CpiNXkp3azaAS0m6fQgCxNWqfTjGrkrFmA/edit#gid=0
[3] https://testlink.wso2.com/index.php
[4]
https://docs.google.com/spreadsheets/d/1yev5WUdEZ0dKxDfnWzhFwlZOa5hdRV39PkSmdypDRps/edit#gid=0



-- 
Best Regards ,


*Chankami Maddumage*
Software Engineer - QA Team
WSO2 Inc; http://www.wso2.com/.
Mobile: +94 (0) 770 030 469 <%2B94%20%280%29%20773%20381%20250>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Anuruddha Liyanarachchi

2015-08-05 Thread Maheshakya Wijewardena
Congratulations!

On Wed, Aug 5, 2015 at 2:03 PM, Dilan Udara Ariyaratne 
wrote:

> Congratulations, Anuruddha !!!
>
>
> *Dilan U. Ariyaratne*
> Software Engineer
> WSO2 Inc. 
> Mobile: +94775149066
> lean . enterprise . middleware
>
> On Wed, Aug 5, 2015 at 11:12 AM, Lalanke Athauda  wrote:
>
>> Congratulation Anuruddha..
>>
>> On Wed, Aug 5, 2015 at 11:09 AM, Sajith Abeywardhana 
>> wrote:
>>
>>> Congratulations Anuruddha !!!
>>>
>>> *Sajith Abeywardhana* | Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka.
>>> Mobile: +94772260485
>>> Email: saji...@wso2.com | Web: www.wso2.com
>>>
>>> On Mon, Aug 3, 2015 at 11:37 PM, Imesh Gunaratne  wrote:
>>>
 s/great contributors/great contributions/g

 On Mon, Aug 3, 2015 at 11:36 PM, Imesh Gunaratne 
 wrote:

> Hi Devs,
>
> It's my pleasure to welcome Anuruddha Liyanarachchi as a WSO2
> Committer.
>
> Anuruddha has done great contributors to the WSO2 Private PaaS
> project. As a recognition of his work he has been voted as a WSO2
> committer.
>
> Anuruddha, welcome aboard! Keep up the good work!
>
> Thanks
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


 --
 *Imesh Gunaratne*
 Senior Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware


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


>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Lalanke Athauda
>> Software Engineer
>> Mobile: 0772264301
>>
>> ___
>> 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
>
>


-- 
Pruthuvi Maheshakya Wijewardena
Software Engineer
WSO2 : http://wso2.com/
Email: mahesha...@wso2.com
Mobile: +94711228855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to specify timezone on user registration

2015-08-05 Thread Ayyoob Hamza
Hi,
When a new user is registered is there a standard way to define the
timezone of the user. So that we can display user specific timestamp data
related to their timezone.

Thanks,
*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unexpected error sending message back- in ESB 4.8.1 while running scheduled task

2015-08-05 Thread Chanaka Fernando
Can you attach the task and proxy configurations?

On Wed, Aug 5, 2015 at 3:28 PM, Aaquibah Nashry  wrote:

> Hi Chanaka,
>
> I changed the send mediator to the drop mediator. But got the same set of
> errors. Any ideas?
>
> Thanks
>
> Regards,
>
> M.R.Aaquibah Nashry
> *Intern, Engineering**| **WSO2, Inc.*
> Mobile : +94 773946123
> Tel  : +94 112662541
> Email : nas...@wso2.com 
>
> On Wed, Aug 5, 2015 at 2:49 PM, Chanaka Fernando 
> wrote:
>
>> Hi Aaquibah,
>>
>> Looks like you are trying to execute a proxy service using scheduled task
>> where back end sends a response message to the ESB. In this case, ESB will
>> fail to send that response, since there is no client in this scenario. You
>> can use the drop mediator in the out sequence such that it will drop the
>> message instead of trying to respond back to the client.
>>
>> Thanks,
>> Chanaka
>>
>> On Wed, Aug 5, 2015 at 2:22 PM, Aaquibah Nashry  wrote:
>>
>>> Hi,
>>>
>>> i get the following errors when i try to run a proxy as a scheduled task
>>> in the esb 4.8.1:
>>>
>>> Any help would be greatly appreciated.
>>>
>>> LOGS:
>>>
>>> [2015-08-05 11:46:00,004]  INFO - LogMediator To: , MessageID:
>>> urn:uuid:2464be20-b62d-46e0-aa6d-fba1b0916395, Direction: request, STATE =
>>> LEADQ
>>> [2015-08-05 11:46:00,009]  INFO - LogMediator Connection = Login to
>>> Salesforce .
>>> [2015-08-05 11:46:10,166]  INFO - LogMediator To:
>>> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction:
>>> , MessageID: urn:uuid:52c9cf45-6c1c-4325-a2dd-e859d4f5b3bc, Direction:
>>> request, STATE =  LEADQ
>>>
>>>
>>> [2015-08-05 11:46:10,170] ERROR - Axis2Sender
>>> Access-Control-Allow-Origin:*,Content-Type:application/json,Date:Wed, 05
>>> Aug 2015 06:16:09 GMT,Expires:Thu, 01 Jan 1970 00:00:00
>>> GMT,Set-Cookie:BrowserId=QUzIWHx-Q2ybwOcjvSLJmw;Path=/;Domain=.
>>> salesforce.com;Expires=Sun, 04-Oct-2015 06:16:09
>>> GMT,Transfer-Encoding:chunked,>> encoding="utf-8"?>http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="
>>> http://www.w3.org/2001/XMLSchema"; xmlns="urn:partner.soap.sforce.com"
>>> xmlns:sf="urn:sobject.partner.soap.sforce.com" xmlns:xsi="
>>> http://www.w3.org/2001/XMLSchema-instance";>http://www.w3.org/2005/08/addressing";>urn:uuid:eccb2dcc-b961-4d43-b77d-47fe901039ab>> xsi:type="QueryResult">true>> xsi:nil="true">>> xsi:type="sf:sObject">AggregateResult>> xsi:nil="true">>> xsi:nil="true">>> xsi:type="xsd:int">242015-08-05>> xsi:type="sf:sObject">AggregateResult>> xsi:nil="true">NA>> xsi:type="xsd:int">15722015-08-05>> xsi:type="sf:sObject">AggregateResult>> xsi:nil="true">SA>> xsi:type="xsd:int">3822015-08-05>> xsi:type="sf:sObject">AggregateResult>> xsi:nil="true">EUROPE>> xsi:type="xsd:int">16422015-08-05>> xsi:type="sf:sObject">AggregateResult>> xsi:nil="true">MEAP>> xsi:type="xsd:int">72015-08-05>> xsi:type="sf:sObject">AggregateResult>> xsi:nil="true">ROW>> xsi:type="xsd:int">20112015-08-056
>>> Unexpected error sending message back
>>> org.apache.axis2.AxisFault: Unable to determine wsa:Action for outbound
>>> message
>>> at
>>> org.apache.axis2.handlers.addressing.AddressingOutHandler$WSAHeaderWriter.processWSAAction(AddressingOutHandler.java:311)
>>> at
>>> org.apache.axis2.handlers.addressing.AddressingOutHandler$WSAHeaderWriter.writeHeaders(AddressingOutHandler.java:228)
>>> at
>>> org.apache.axis2.handlers.addressing.AddressingOutHandler.doInvoke(AddressingOutHandler.java:134)
>>> at
>>> org.apache.axis2.handlers.AbstractTemplatedHandler.invoke(AbstractTemplatedHandler.java:44)
>>> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
>>> at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
>>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:426)
>>> at
>>> org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:163)
>>> at
>>> org.apache.synapse.mediators.builtin.RespondMediator.mediate(RespondMediator.java:23)
>>> at
>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
>>> at
>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
>>> at
>>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
>>> at
>>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:196)
>>> at
>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
>>> at
>>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:255)
>>> at
>>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:556)
>>> at
>>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:198)
>>> at
>>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:488)
>>> at
>>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.

Re: [Dev] Unexpected error sending message back- in ESB 4.8.1 while running scheduled task

2015-08-05 Thread Aaquibah Nashry
Hi Chanaka,

I changed the send mediator to the drop mediator. But got the same set of
errors. Any ideas?

Thanks

Regards,

M.R.Aaquibah Nashry
*Intern, Engineering**| **WSO2, Inc.*
Mobile : +94 773946123
Tel  : +94 112662541
Email : nas...@wso2.com 

On Wed, Aug 5, 2015 at 2:49 PM, Chanaka Fernando  wrote:

> Hi Aaquibah,
>
> Looks like you are trying to execute a proxy service using scheduled task
> where back end sends a response message to the ESB. In this case, ESB will
> fail to send that response, since there is no client in this scenario. You
> can use the drop mediator in the out sequence such that it will drop the
> message instead of trying to respond back to the client.
>
> Thanks,
> Chanaka
>
> On Wed, Aug 5, 2015 at 2:22 PM, Aaquibah Nashry  wrote:
>
>> Hi,
>>
>> i get the following errors when i try to run a proxy as a scheduled task
>> in the esb 4.8.1:
>>
>> Any help would be greatly appreciated.
>>
>> LOGS:
>>
>> [2015-08-05 11:46:00,004]  INFO - LogMediator To: , MessageID:
>> urn:uuid:2464be20-b62d-46e0-aa6d-fba1b0916395, Direction: request, STATE =
>> LEADQ
>> [2015-08-05 11:46:00,009]  INFO - LogMediator Connection = Login to
>> Salesforce .
>> [2015-08-05 11:46:10,166]  INFO - LogMediator To:
>> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction:
>> , MessageID: urn:uuid:52c9cf45-6c1c-4325-a2dd-e859d4f5b3bc, Direction:
>> request, STATE =  LEADQ
>>
>>
>> [2015-08-05 11:46:10,170] ERROR - Axis2Sender
>> Access-Control-Allow-Origin:*,Content-Type:application/json,Date:Wed, 05
>> Aug 2015 06:16:09 GMT,Expires:Thu, 01 Jan 1970 00:00:00
>> GMT,Set-Cookie:BrowserId=QUzIWHx-Q2ybwOcjvSLJmw;Path=/;Domain=.
>> salesforce.com;Expires=Sun, 04-Oct-2015 06:16:09
>> GMT,Transfer-Encoding:chunked,> encoding="utf-8"?>http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="
>> http://www.w3.org/2001/XMLSchema"; xmlns="urn:partner.soap.sforce.com"
>> xmlns:sf="urn:sobject.partner.soap.sforce.com" xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance";>http://www.w3.org/2005/08/addressing";>urn:uuid:eccb2dcc-b961-4d43-b77d-47fe901039ab> xsi:type="QueryResult">true> xsi:nil="true">> xsi:type="sf:sObject">AggregateResult> xsi:nil="true">> xsi:nil="true">> xsi:type="xsd:int">242015-08-05> xsi:type="sf:sObject">AggregateResult> xsi:nil="true">NA> xsi:type="xsd:int">15722015-08-05> xsi:type="sf:sObject">AggregateResult> xsi:nil="true">SA> xsi:type="xsd:int">3822015-08-05> xsi:type="sf:sObject">AggregateResult> xsi:nil="true">EUROPE> xsi:type="xsd:int">16422015-08-05> xsi:type="sf:sObject">AggregateResult> xsi:nil="true">MEAP> xsi:type="xsd:int">72015-08-05> xsi:type="sf:sObject">AggregateResult> xsi:nil="true">ROW> xsi:type="xsd:int">20112015-08-056
>> Unexpected error sending message back
>> org.apache.axis2.AxisFault: Unable to determine wsa:Action for outbound
>> message
>> at
>> org.apache.axis2.handlers.addressing.AddressingOutHandler$WSAHeaderWriter.processWSAAction(AddressingOutHandler.java:311)
>> at
>> org.apache.axis2.handlers.addressing.AddressingOutHandler$WSAHeaderWriter.writeHeaders(AddressingOutHandler.java:228)
>> at
>> org.apache.axis2.handlers.addressing.AddressingOutHandler.doInvoke(AddressingOutHandler.java:134)
>> at
>> org.apache.axis2.handlers.AbstractTemplatedHandler.invoke(AbstractTemplatedHandler.java:44)
>> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
>> at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:426)
>> at
>> org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:163)
>> at
>> org.apache.synapse.mediators.builtin.RespondMediator.mediate(RespondMediator.java:23)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
>> at
>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
>> at
>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:196)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
>> at
>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:255)
>> at
>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:556)
>> at
>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:198)
>> at
>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:488)
>> at
>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:170)
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>> at
>> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
>> at
>> org.apache.axis2.transport.base.t

Re: [Dev] Clarification on GREG Clustering Setup for 5.0.0

2015-08-05 Thread Aparna Karunarathna
Hi Sagara,

That's not a dummy node, it used to do some sort of governance and that's
the real registry node and other two nodes behave as Management nodes. This
kind of deployment pattern propose by Greg team to avoid the subscription
related issues.

@Senaka and Ajith, please elaborate more details about this deployment
pattern.

Regards,
Aparna.



On Tue, Aug 4, 2015 at 5:29 PM, Sagara Gunathunga  wrote:

>
>
> On Tue, Aug 4, 2015 at 5:26 PM, Chandana Napagoda 
> wrote:
>
>> HI Evanthika/Chalitha,
>>
>> In most cases there is no dummy node to manage the subscriptions. There
>> you have to define "mgtHost" and "remoteinstance" properly. But better to
>> validate other scenarios as well.
>>
>
> I'm curious to know what is 'dummy node" concept here,  can someone
> explain ?
>
> Thanks !
>
>>
>> Regards,
>> Chandana
>>
>> On Tue, Aug 4, 2015 at 5:01 PM, Evanthika Amarasiri 
>> wrote:
>>
>>> Hi Shazni,
>>>
>>> On Tue, Aug 4, 2015 at 4:01 PM, Shazni Nazeer  wrote:
>>>
 Hi Pubudu,

 There are few ways you can do the testing. In addition to the two
 methods you have mentioned

>>>
>>> ​As per the offline discussion I had with Chandana, we were under the
>>> impression that a dummy node is not required and we don't recommend this
>>> topology anymore. Can you please confirm?
>>> ​
>>>
>>>
 following basic clustering topologies can be used as well.

 Two G-Reg nodes in cluster without fronting with a load balancer
 Two G-Reg nodes in cluster without fronting with load balancer
 One G-Reg instance with just a jdbc mount (This is not a clustered
 scenario)

 For your second question, from G-Reg 5.0.0 inwards, API-M related
 scripts won't be packed in the G-Reg server by default. It'll only be
 available if you install API-M features on top of G-Reg. Nevertheless, for
 clustering to work, you do not necessarily need to have a datasource
 configuration for API-M db. So that part can be omitted in the default
 pack.

 This would need to be reflected in the doc as well [1]

 [1] https://wso2.org/jira/browse/DOCUMENTATION-2109

 Shazni Nazeer
 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com

 On Tue, Aug 4, 2015 at 1:13 PM, Pubudu Priyashan 
 wrote:

> Hi All,
>
> We are currently testing the GREG clustering setup for 5.0.0.
>
> 1. Previously in 4.6 GREG version the recommended setup was with three
> GREG instances with one dummy node and the registry mount.
> But in 5.0.0 we've been told to test the clustering set up with two
> GREG manager nodes using one IS instance as the external IDP with user
> store and registry mount.
>
> Can you please confirm what is the recommended set up for GREG 5.0.0
> and the document link?
>
>
> 2. Also in GREG clustering tutorial with nginx[1], it requires user to
> access '$GREG_HOME/dbscripts/apimgt/mysql.sql' location. But apimgt
> directory is not available in GREG 5.0.0 version by default. Do we need to
> update the document [1] to reflect most recent clustering setup?
>
> Appreciate your advise on above two questions. Thanks.
>
> [1]
> https://docs.wso2.com/display/CLUSTER420/Clustering+Governance+Registry+with+Nginx#ClusteringGovernanceRegistrywithNginx-Environment
>
>
> Best Regards,
> Pubudu D.P
> Senior Software Engineer - QA Team | WSO2 inc.
> Mobile : +94775464547
>


>>>
>>
>>
>> --
>> *Chandana Napagoda*
>> Senior Software Engineer
>> WSO2 Inc. - http://wso2.org
>>
>> *Email  :  chand...@wso2.com **Mobile : +94718169299
>> <%2B94718169299>*
>>
>> *Blog  :http://cnapagoda.blogspot.com *
>>
>>
>
>
> --
> Sagara Gunathunga
>
> Architect; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>


-- 
*Regards,*

*Aparna Karunarathna.*


*Associate Technical Lead - QAWSO2 Inc.Mobile: 0714002533*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Identity-3132] Clarification about fix did for 'Key length exceeded' error on CON_APP_KEY of IDN_OAUTH2_ACCESS_TOKEN table

2015-08-05 Thread Sanjeewa Malalgoda
+TharinduE

On Wed, Aug 5, 2015 at 3:08 PM, Sanjeewa Malalgoda 
wrote:

> Hi Maduranga,Prasad,
> I need to clarify some thing about the fix you did for 'Key length
> exceeded' error on CON_APP_KEY of IDN_OAUTH2_ACCESS_TOKEN table in ORACLE
> DB" issue[1]. I went through pull request(
> https://github.com/wso2/carbon-identity/pull/452) as well.
>
> With this approach i can see toke scope filed changed to token scope hash.
> So that means do we have any other place where we store token scopes and
> hashed values?
>
> Also if we introduced this change in upcoming release we need to provide
> migration tools for this and new schemas for DB changes(generate hash and
> store it). I cannot see those in merge request. So please provide migration
> scripts and schemas as well.
>
> There are some scope validation implementations available in different
> components including APIM,IS etc. Did we consider those places while doing
> this fix?
>
> [1]https://wso2.org/jira/browse/Identity-3132
>
> Thanks,
> sanjeewa.
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
> blog
> :http://sanjeewamalalgoda.blogspot.com/
> 
>
>
>


-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

blog
:http://sanjeewamalalgoda.blogspot.com/

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


[Dev] [Identity-3132] Clarification about fix did for 'Key length exceeded' error on CON_APP_KEY of IDN_OAUTH2_ACCESS_TOKEN table

2015-08-05 Thread Sanjeewa Malalgoda
Hi Maduranga,Prasad,
I need to clarify some thing about the fix you did for 'Key length
exceeded' error on CON_APP_KEY of IDN_OAUTH2_ACCESS_TOKEN table in ORACLE
DB" issue[1]. I went through pull request(
https://github.com/wso2/carbon-identity/pull/452) as well.

With this approach i can see toke scope filed changed to token scope hash.
So that means do we have any other place where we store token scopes and
hashed values?

Also if we introduced this change in upcoming release we need to provide
migration tools for this and new schemas for DB changes(generate hash and
store it). I cannot see those in merge request. So please provide migration
scripts and schemas as well.

There are some scope validation implementations available in different
components including APIM,IS etc. Did we consider those places while doing
this fix?

[1]https://wso2.org/jira/browse/Identity-3132

Thanks,
sanjeewa.
-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

blog
:http://sanjeewamalalgoda.blogspot.com/

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


Re: [Dev] Unexpected error sending message back- in ESB 4.8.1 while running scheduled task

2015-08-05 Thread Chanaka Fernando
Hi Aaquibah,

Looks like you are trying to execute a proxy service using scheduled task
where back end sends a response message to the ESB. In this case, ESB will
fail to send that response, since there is no client in this scenario. You
can use the drop mediator in the out sequence such that it will drop the
message instead of trying to respond back to the client.

Thanks,
Chanaka

On Wed, Aug 5, 2015 at 2:22 PM, Aaquibah Nashry  wrote:

> Hi,
>
> i get the following errors when i try to run a proxy as a scheduled task
> in the esb 4.8.1:
>
> Any help would be greatly appreciated.
>
> LOGS:
>
> [2015-08-05 11:46:00,004]  INFO - LogMediator To: , MessageID:
> urn:uuid:2464be20-b62d-46e0-aa6d-fba1b0916395, Direction: request, STATE =
> LEADQ
> [2015-08-05 11:46:00,009]  INFO - LogMediator Connection = Login to
> Salesforce .
> [2015-08-05 11:46:10,166]  INFO - LogMediator To:
> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: ,
> MessageID: urn:uuid:52c9cf45-6c1c-4325-a2dd-e859d4f5b3bc, Direction:
> request, STATE =  LEADQ
>
>
> [2015-08-05 11:46:10,170] ERROR - Axis2Sender
> Access-Control-Allow-Origin:*,Content-Type:application/json,Date:Wed, 05
> Aug 2015 06:16:09 GMT,Expires:Thu, 01 Jan 1970 00:00:00
> GMT,Set-Cookie:BrowserId=QUzIWHx-Q2ybwOcjvSLJmw;Path=/;Domain=.
> salesforce.com;Expires=Sun, 04-Oct-2015 06:16:09
> GMT,Transfer-Encoding:chunked, encoding="utf-8"?>http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="
> http://www.w3.org/2001/XMLSchema"; xmlns="urn:partner.soap.sforce.com"
> xmlns:sf="urn:sobject.partner.soap.sforce.com" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance";>http://www.w3.org/2005/08/addressing";>urn:uuid:eccb2dcc-b961-4d43-b77d-47fe901039ab xsi:type="QueryResult">true xsi:nil="true"> xsi:type="sf:sObject">AggregateResult xsi:nil="true"> xsi:nil="true"> xsi:type="xsd:int">242015-08-05 xsi:type="sf:sObject">AggregateResult xsi:nil="true">NA xsi:type="xsd:int">15722015-08-05 xsi:type="sf:sObject">AggregateResult xsi:nil="true">SA xsi:type="xsd:int">3822015-08-05 xsi:type="sf:sObject">AggregateResult xsi:nil="true">EUROPE xsi:type="xsd:int">16422015-08-05 xsi:type="sf:sObject">AggregateResult xsi:nil="true">MEAP xsi:type="xsd:int">72015-08-05 xsi:type="sf:sObject">AggregateResult xsi:nil="true">ROW xsi:type="xsd:int">20112015-08-056
> Unexpected error sending message back
> org.apache.axis2.AxisFault: Unable to determine wsa:Action for outbound
> message
> at
> org.apache.axis2.handlers.addressing.AddressingOutHandler$WSAHeaderWriter.processWSAAction(AddressingOutHandler.java:311)
> at
> org.apache.axis2.handlers.addressing.AddressingOutHandler$WSAHeaderWriter.writeHeaders(AddressingOutHandler.java:228)
> at
> org.apache.axis2.handlers.addressing.AddressingOutHandler.doInvoke(AddressingOutHandler.java:134)
> at
> org.apache.axis2.handlers.AbstractTemplatedHandler.invoke(AbstractTemplatedHandler.java:44)
> at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
> at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:426)
> at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:163)
> at
> org.apache.synapse.mediators.builtin.RespondMediator.mediate(RespondMediator.java:23)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:196)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:255)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:556)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:198)
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:488)
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:170)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
> at
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> [2015-08-05 11:46:10,173] ERROR - SynapseCallbackReceiver Synapse
> encountered an exception, No error handlers found - [Message Dropped]
> Access-Control-All

[Dev] Unexpected error sending message back- in ESB 4.8.1 while running scheduled task

2015-08-05 Thread Aaquibah Nashry
Hi,

i get the following errors when i try to run a proxy as a scheduled task in
the esb 4.8.1:

Any help would be greatly appreciated.

LOGS:

[2015-08-05 11:46:00,004]  INFO - LogMediator To: , MessageID:
urn:uuid:2464be20-b62d-46e0-aa6d-fba1b0916395, Direction: request, STATE =
LEADQ
[2015-08-05 11:46:00,009]  INFO - LogMediator Connection = Login to
Salesforce .
[2015-08-05 11:46:10,166]  INFO - LogMediator To:
http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: ,
MessageID: urn:uuid:52c9cf45-6c1c-4325-a2dd-e859d4f5b3bc, Direction:
request, STATE =  LEADQ


[2015-08-05 11:46:10,170] ERROR - Axis2Sender
Access-Control-Allow-Origin:*,Content-Type:application/json,Date:Wed, 05
Aug 2015 06:16:09 GMT,Expires:Thu, 01 Jan 1970 00:00:00
GMT,Set-Cookie:BrowserId=QUzIWHx-Q2ybwOcjvSLJmw;Path=/;Domain=.
salesforce.com;Expires=Sun, 04-Oct-2015 06:16:09
GMT,Transfer-Encoding:chunked,http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="
http://www.w3.org/2001/XMLSchema"; xmlns="urn:partner.soap.sforce.com"
xmlns:sf="urn:sobject.partner.soap.sforce.com" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";>http://www.w3.org/2005/08/addressing";>urn:uuid:eccb2dcc-b961-4d43-b77d-47fe901039abtrueAggregateResult242015-08-05AggregateResultNA15722015-08-05AggregateResultSA3822015-08-05AggregateResultEUROPE16422015-08-05AggregateResultMEAP72015-08-05AggregateResultROW20112015-08-056
Unexpected error sending message back
org.apache.axis2.AxisFault: Unable to determine wsa:Action for outbound
message
at
org.apache.axis2.handlers.addressing.AddressingOutHandler$WSAHeaderWriter.processWSAAction(AddressingOutHandler.java:311)
at
org.apache.axis2.handlers.addressing.AddressingOutHandler$WSAHeaderWriter.writeHeaders(AddressingOutHandler.java:228)
at
org.apache.axis2.handlers.addressing.AddressingOutHandler.doInvoke(AddressingOutHandler.java:134)
at
org.apache.axis2.handlers.AbstractTemplatedHandler.invoke(AbstractTemplatedHandler.java:44)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:426)
at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:163)
at
org.apache.synapse.mediators.builtin.RespondMediator.mediate(RespondMediator.java:23)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:196)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:255)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:556)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:198)
at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:488)
at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:170)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[2015-08-05 11:46:10,173] ERROR - SynapseCallbackReceiver Synapse
encountered an exception, No error handlers found - [Message Dropped]
Access-Control-Allow-Origin:*,Content-Type:application/json,Date:Wed, 05
Aug 2015 06:16:09 GMT,Expires:Thu, 01 Jan 1970 00:00:00
GMT,Set-Cookie:BrowserId=QUzIWHx-Q2ybwOcjvSLJmw;Path=/;Domain=.
salesforce.com;Expires=Sun, 04-Oct-2015 06:16:09
GMT,Transfer-Encoding:chunked,http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="
http://www.w3.org/2001/XMLSchema"; xmlns="urn:partner.soap.sforce.com"
xmlns:sf="urn:sobject.partner.soap.sforce.com" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";>http://www.w3.org/2005/08/addressing";>urn:uuid:eccb2dcc-b961-4d43-b77d-47fe901039abtrueAggregateResult242015-08-05AggregateResultNA15722015-08-05AggregateResultSA3822015-08-05AggregateResultEUROPE16422015-08-05AggregateResultMEAP72015-08-05AggregateResultROW20112015-08-056
Unexpected error sending message back


Regards,

M.R.Aaquibah Nashry
*Intern, Engineering**| **WSO2, Inc.*
Mobile : +94 773946123
Tel  : +94 112662541
Email : nas...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://w

[Dev] Carbon Commons 4.4.4 Released!

2015-08-05 Thread Supun Malinga
Hi repo owners,

Please update to the released version 4.4.4.

eg:
4.4.4

thanks,
-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com 
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Anuruddha Liyanarachchi

2015-08-05 Thread Dilan Udara Ariyaratne
Congratulations, Anuruddha !!!


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. 
Mobile: +94775149066
lean . enterprise . middleware

On Wed, Aug 5, 2015 at 11:12 AM, Lalanke Athauda  wrote:

> Congratulation Anuruddha..
>
> On Wed, Aug 5, 2015 at 11:09 AM, Sajith Abeywardhana 
> wrote:
>
>> Congratulations Anuruddha !!!
>>
>> *Sajith Abeywardhana* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka.
>> Mobile: +94772260485
>> Email: saji...@wso2.com | Web: www.wso2.com
>>
>> On Mon, Aug 3, 2015 at 11:37 PM, Imesh Gunaratne  wrote:
>>
>>> s/great contributors/great contributions/g
>>>
>>> On Mon, Aug 3, 2015 at 11:36 PM, Imesh Gunaratne  wrote:
>>>
 Hi Devs,

 It's my pleasure to welcome Anuruddha Liyanarachchi as a WSO2 Committer
 .

 Anuruddha has done great contributors to the WSO2 Private PaaS project.
 As a recognition of his work he has been voted as a WSO2 committer.

 Anuruddha, welcome aboard! Keep up the good work!

 Thanks

 --
 *Imesh Gunaratne*
 Senior Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware


>>>
>>>
>>> --
>>> *Imesh Gunaratne*
>>> Senior Technical Lead
>>> WSO2 Inc: http://wso2.com
>>> T: +94 11 214 5345 M: +94 77 374 2057
>>> W: http://imesh.gunaratne.org
>>> Lean . Enterprise . Middleware
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Lalanke Athauda
> Software Engineer
> Mobile: 0772264301
>
> ___
> 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] [GSoC-2015] Data Wrangler extension for WSO2 Machine Learner

2015-08-05 Thread Nirmal Fernando
Hi Danula,

It should be a JavaRDD, where each row represents the feature
vector as a string[].

On Tue, Aug 4, 2015 at 11:51 AM, Danula Eranjith 
wrote:

> In other words,
> What would be the preferred output type for a dataset which is
> pre-processed by wrangler?
> As I have observed different algorithms use different JavaRDD types as
> input ( JavaRDD, JavaRDD etc )
>
> On Tue, Aug 4, 2015 at 11:48 AM, Nirmal Fernando  wrote:
>
>> Hi Danula,
>>
>> On Tue, Aug 4, 2015 at 11:47 AM, Danula Eranjith 
>> wrote:
>>
>>> Hi Nirmal,
>>>
>>> In ML, what is the preferred way of keeping data in a single row of
>>> JavaRDD?
>>>
>>
>> I didn't quite get your question. Can you elaborate please?
>>
>>
>>>
>>> As I have figured it depends on the algorithm being used.
>>>
>>> Danula
>>>
>>> On Thu, Jul 30, 2015 at 9:14 AM, Nirmal Fernando 
>>> wrote:
>>>
 Thanks Danula, I'll send an invite.

 On Wed, Jul 29, 2015 at 10:24 PM, Danula Eranjith 
 wrote:

> Hi Nirmal,
>
> I am available after 1.30pm on Tuesday, Wednesday and Thursday.
>
> Danula
>
> On Wed, Jul 29, 2015 at 12:10 PM, Nirmal Fernando 
> wrote:
>
>> Hi Danula,
>>
>> Can we arrange a demo/review somewhere next week? Please let me know
>> few time slots.
>>
>> On Thu, Jul 23, 2015 at 11:47 AM, Nirmal Fernando 
>> wrote:
>>
>>> Thanks Danula.
>>>
>>> On Thu, Jul 23, 2015 at 11:41 AM, Danula Eranjith <
>>> hmdanu...@gmail.com> wrote:
>>>
 You can find the source at [1]
 . I have
 to do some refactoring when integrating to ML.

 [1] - https://github.com/danula/wso2-ml-wrangler-integration

 On Thu, Jul 23, 2015 at 11:31 AM, Nirmal Fernando 
 wrote:

> Thanks Danula. Please share the current code, if possible.
>
> On Thu, Jul 23, 2015 at 8:41 AM, Danula Eranjith <
> hmdanu...@gmail.com> wrote:
>
>> Hi all,
>>
>> I have succeeded in parsing the operations from wrangler
>> javascript code to spark transformations I have written. Working on
>> automating the process.
>>
>> Last couple of steps would be changing the wrangler interface and
>> integrating it into ML Wizard.
>>
>> Thanks
>> Danula
>>
>> On Wed, Jul 22, 2015 at 9:31 AM, Nirmal Fernando > > wrote:
>>
>>> Hi Danula,
>>>
>>> Could you please summarize the current status of the project and
>>> also the things left to do?
>>>
>>> On Sun, Jul 19, 2015 at 11:39 PM, Danula Eranjith <
>>> hmdanu...@gmail.com> wrote:
>>>
 Thank you.
 Will use them. I already have some other kaggle datasets as
 well.


>1.
>
>
> On Sun, Jul 19, 2015 at 11:30 PM, Danula Eranjith <
> hmdanu...@gmail.com> wrote:
>
>> Hi Nirmal,
>>
>> Would it be possible to get some sample data sets which are
>> more likely to be pre-processed using wrangler. I am currently 
>> testing my
>> implementations against small and more general data sets.
>>
>> I have checked datasets available at [1]
>>  
>> as
>> well. But there is nothing much to be processed as they are 
>> ready to be fed
>> to ML.
>>
>> [1] -
>> https://github.com/wso2/product-ml/tree/master/modules/samples
>>
>> Thanks,
>> Danula
>>
>> On Thu, Jul 16, 2015 at 10:15 PM, Nirmal Fernando <
>> nir...@wso2.com> wrote:
>>
>>> Thanks Danula.
>>>
>>> On Thu, Jul 16, 2015 at 10:07 PM, Danula Eranjith <
>>> hmdanu...@gmail.com> wrote:
>>>
 Hi all,

 Sorry for not keeping you in the loop.

 After considering and experimenting with several options. I
 am using the javascript code generated by wrangler to 
 implement them using
 spark. I have used regular expressions to extract the 
 operations,
 parameters and values and mapped them to spark transformations 
 I previously
 developed.

 The code generated by wrangler for certain functions have
 nested operations.

 (1)

 /* Fill split3  with values from above */
>

Re: [Dev] Please release the staging repo for carbon-commons

2015-08-05 Thread Chanaka Fernando
Correction: Actually my esb nodes were on the same machine but in different
paths.

On Wed, Aug 5, 2015 at 1:14 PM, Chanaka Fernando  wrote:

> Thanks Sameera/Aruna/Chandana.
>
> I was using my local machine and all the esb servers were in the same
> path. I was able to get rid of this error by using the absolute path for
> the WSO2_CARBON_DB in the master-datasources.xml file. Now it is working
> fine.
>
> I have tested clustering with super tenant/multi tenant scenarios and all
> are working. Also I have tested the datasource related issue and it is also
> working fine.
>
>
>
> On Wed, Aug 5, 2015 at 12:55 PM, Aruna Karunarathna 
> wrote:
>
>> Hi Chanaka,
>>
>> I think this was a known issue. refer [1] @dev
>>
>> [1]. [Dev] Getting a database issue when try to cluster two appservers
>>
>> Regards,
>> Aruna
>>
>> On Wed, Aug 5, 2015 at 12:50 PM, Chanaka Fernando 
>> wrote:
>>
>>> Hi KasunG,
>>>
>>> I was in the middle of testing the ESB pack with carbon-commons 444
>>> staging repo. While testing, I have found the below issue when testing
>>> clustering in tenant mode. I have created a tenant (willsmith.com) and
>>> after that I have created a Proxy service from the management console.
>>> After that, I can see that cluster messages are going to the worker nodes,
>>> but the artifacts are not deployed into worker nodes. When I send a request
>>> to that tenant proxy service of a worker node, I am getting the below
>>> response to the client.
>>>
>>> http://schemas.xmlsoap.org/soap/envelope/";>
>>>
>>>   
>>>  soapenv:Server
>>>  Cannot create tenant ConfigurationContext for
>>> tenant willsmith.com
>>>  
>>>   
>>>
>>> 
>>>
>>>
>>> In the carbon log, I can see the below exception. This could be
>>> something related to registry. Added the registry team also.
>>>
>>> [1]
>>>
>>>
>>> [2015-08-05 12:35:58,102]  INFO - HazelcastClusterMessageListener
>>> Received ClusteringMessage: SynchronizeRepositoryRequest{tenantId=1,
>>> tenantDomain='willsmith.com',
>>> messageId=8f03ceea-5e3d-4e0f-9957-c8e4de12688f}
>>> [2015-08-05 12:35:58,102]  INFO - SynchronizeRepositoryRequest Received
>>> [SynchronizeRepositoryRequest{tenantId=1, tenantDomain='willsmith.com',
>>> messageId=8f03ceea-5e3d-4e0f-9957-c8e4de12688f}]
>>> [2015-08-05 12:37:05,106]  INFO - HazelcastClusterMessageListener
>>> Received ClusteringMessage: SynchronizeRepositoryRequest{tenantId=1,
>>> tenantDomain='willsmith.com',
>>> messageId=86943e28-ac2b-4020-b67c-d6713d74b8ce}
>>> [2015-08-05 12:37:05,107]  INFO - SynchronizeRepositoryRequest Received
>>> [SynchronizeRepositoryRequest{tenantId=1, tenantDomain='willsmith.com',
>>> messageId=86943e28-ac2b-4020-b67c-d6713d74b8ce}]
>>> [2015-08-05 12:38:43,789] ERROR - JDBCResourceDAO Failed to add resource
>>> to path /_system/config/repository. Referential integrity constraint
>>> violation: "REG_RESOURCE_FK_BY_PATH_ID: PUBLIC.REG_RESOURCE FOREIGN
>>> KEY(REG_PATH_ID, REG_TENANT_ID) REFERENCES PUBLIC.REG_PATH(REG_PATH_ID,
>>> REG_TENANT_ID)"; SQL statement:
>>> INSERT INTO REG_RESOURCE (REG_PATH_ID, REG_NAME, REG_MEDIA_TYPE,
>>> REG_CREATOR, REG_CREATED_TIME, REG_LAST_UPDATOR, REG_LAST_UPDATED_TIME,
>>> REG_DESCRIPTION, REG_TENANT_ID, REG_UUID) VALUES (?, ?, ?, ?, ?, ?, ?, ?,
>>> ?, ?) [23002-140]
>>> org.h2.jdbc.JdbcSQLException: Referential integrity constraint
>>> violation: "REG_RESOURCE_FK_BY_PATH_ID: PUBLIC.REG_RESOURCE FOREIGN
>>> KEY(REG_PATH_ID, REG_TENANT_ID) REFERENCES PUBLIC.REG_PATH(REG_PATH_ID,
>>> REG_TENANT_ID)"; SQL statement:
>>> INSERT INTO REG_RESOURCE (REG_PATH_ID, REG_NAME, REG_MEDIA_TYPE,
>>> REG_CREATOR, REG_CREATED_TIME, REG_LAST_UPDATOR, REG_LAST_UPDATED_TIME,
>>> REG_DESCRIPTION, REG_TENANT_ID, REG_UUID) VALUES (?, ?, ?, ?, ?, ?, ?, ?,
>>> ?, ?) [23002-140]
>>> at
>>> org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
>>> at org.h2.message.DbException.get(DbException.java:167)
>>> at org.h2.message.DbException.get(DbException.java:144)
>>> at
>>> org.h2.constraint.ConstraintReferential.checkRowOwnTable(ConstraintReferential.java:329)
>>> at
>>> org.h2.constraint.ConstraintReferential.checkRow(ConstraintReferential.java:271)
>>> at org.h2.table.Table.fireConstraints(Table.java:801)
>>> at org.h2.table.Table.fireAfterRow(Table.java:818)
>>> at org.h2.command.dml.Insert.insertRows(Insert.java:122)
>>> at org.h2.command.dml.Insert.update(Insert.java:82)
>>> at org.h2.command.CommandContainer.update(CommandContainer.java:70)
>>> at org.h2.command.Command.executeUpdate(Command.java:199)
>>> at
>>> org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:141)
>>> at
>>> org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:127)
>>> at
>>> org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.addResourceWithoutContentId(JDBCResourceDAO.java:1385)
>>> at
>>> org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.add(JDBCResou

Re: [Dev] Please release the staging repo for carbon-commons

2015-08-05 Thread Chanaka Fernando
Thanks Sameera/Aruna/Chandana.

I was using my local machine and all the esb servers were in the same path.
I was able to get rid of this error by using the absolute path for the
WSO2_CARBON_DB in the master-datasources.xml file. Now it is working fine.

I have tested clustering with super tenant/multi tenant scenarios and all
are working. Also I have tested the datasource related issue and it is also
working fine.



On Wed, Aug 5, 2015 at 12:55 PM, Aruna Karunarathna  wrote:

> Hi Chanaka,
>
> I think this was a known issue. refer [1] @dev
>
> [1]. [Dev] Getting a database issue when try to cluster two appservers
>
> Regards,
> Aruna
>
> On Wed, Aug 5, 2015 at 12:50 PM, Chanaka Fernando 
> wrote:
>
>> Hi KasunG,
>>
>> I was in the middle of testing the ESB pack with carbon-commons 444
>> staging repo. While testing, I have found the below issue when testing
>> clustering in tenant mode. I have created a tenant (willsmith.com) and
>> after that I have created a Proxy service from the management console.
>> After that, I can see that cluster messages are going to the worker nodes,
>> but the artifacts are not deployed into worker nodes. When I send a request
>> to that tenant proxy service of a worker node, I am getting the below
>> response to the client.
>>
>> http://schemas.xmlsoap.org/soap/envelope/";>
>>
>>   
>>  soapenv:Server
>>  Cannot create tenant ConfigurationContext for
>> tenant willsmith.com
>>  
>>   
>>
>> 
>>
>>
>> In the carbon log, I can see the below exception. This could be something
>> related to registry. Added the registry team also.
>>
>> [1]
>>
>>
>> [2015-08-05 12:35:58,102]  INFO - HazelcastClusterMessageListener
>> Received ClusteringMessage: SynchronizeRepositoryRequest{tenantId=1,
>> tenantDomain='willsmith.com',
>> messageId=8f03ceea-5e3d-4e0f-9957-c8e4de12688f}
>> [2015-08-05 12:35:58,102]  INFO - SynchronizeRepositoryRequest Received
>> [SynchronizeRepositoryRequest{tenantId=1, tenantDomain='willsmith.com',
>> messageId=8f03ceea-5e3d-4e0f-9957-c8e4de12688f}]
>> [2015-08-05 12:37:05,106]  INFO - HazelcastClusterMessageListener
>> Received ClusteringMessage: SynchronizeRepositoryRequest{tenantId=1,
>> tenantDomain='willsmith.com',
>> messageId=86943e28-ac2b-4020-b67c-d6713d74b8ce}
>> [2015-08-05 12:37:05,107]  INFO - SynchronizeRepositoryRequest Received
>> [SynchronizeRepositoryRequest{tenantId=1, tenantDomain='willsmith.com',
>> messageId=86943e28-ac2b-4020-b67c-d6713d74b8ce}]
>> [2015-08-05 12:38:43,789] ERROR - JDBCResourceDAO Failed to add resource
>> to path /_system/config/repository. Referential integrity constraint
>> violation: "REG_RESOURCE_FK_BY_PATH_ID: PUBLIC.REG_RESOURCE FOREIGN
>> KEY(REG_PATH_ID, REG_TENANT_ID) REFERENCES PUBLIC.REG_PATH(REG_PATH_ID,
>> REG_TENANT_ID)"; SQL statement:
>> INSERT INTO REG_RESOURCE (REG_PATH_ID, REG_NAME, REG_MEDIA_TYPE,
>> REG_CREATOR, REG_CREATED_TIME, REG_LAST_UPDATOR, REG_LAST_UPDATED_TIME,
>> REG_DESCRIPTION, REG_TENANT_ID, REG_UUID) VALUES (?, ?, ?, ?, ?, ?, ?, ?,
>> ?, ?) [23002-140]
>> org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation:
>> "REG_RESOURCE_FK_BY_PATH_ID: PUBLIC.REG_RESOURCE FOREIGN KEY(REG_PATH_ID,
>> REG_TENANT_ID) REFERENCES PUBLIC.REG_PATH(REG_PATH_ID, REG_TENANT_ID)"; SQL
>> statement:
>> INSERT INTO REG_RESOURCE (REG_PATH_ID, REG_NAME, REG_MEDIA_TYPE,
>> REG_CREATOR, REG_CREATED_TIME, REG_LAST_UPDATOR, REG_LAST_UPDATED_TIME,
>> REG_DESCRIPTION, REG_TENANT_ID, REG_UUID) VALUES (?, ?, ?, ?, ?, ?, ?, ?,
>> ?, ?) [23002-140]
>> at
>> org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
>> at org.h2.message.DbException.get(DbException.java:167)
>> at org.h2.message.DbException.get(DbException.java:144)
>> at
>> org.h2.constraint.ConstraintReferential.checkRowOwnTable(ConstraintReferential.java:329)
>> at
>> org.h2.constraint.ConstraintReferential.checkRow(ConstraintReferential.java:271)
>> at org.h2.table.Table.fireConstraints(Table.java:801)
>> at org.h2.table.Table.fireAfterRow(Table.java:818)
>> at org.h2.command.dml.Insert.insertRows(Insert.java:122)
>> at org.h2.command.dml.Insert.update(Insert.java:82)
>> at org.h2.command.CommandContainer.update(CommandContainer.java:70)
>> at org.h2.command.Command.executeUpdate(Command.java:199)
>> at
>> org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:141)
>> at
>> org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:127)
>> at
>> org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.addResourceWithoutContentId(JDBCResourceDAO.java:1385)
>> at
>> org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.add(JDBCResourceDAO.java:448)
>> at
>> org.wso2.carbon.registry.core.jdbc.Repository.add(Repository.java:1059)
>> at
>> org.wso2.carbon.registry.core.jdbc.Repository.put(Repository.java:305)
>> at
>> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.put(Embedde

Re: [Dev] Releasing Carbon Multitenancy

2015-08-05 Thread Prabath Ariyarathna
Hi Supun.

I did small changes on PR to fix the few issues existing in the URL
validation. Please check the new changes.

Eg:-
http://wso2s-MacBook-Pro-2.local:8280//services/t/wso1.com/Proxy1

http://wso2s-MacBook-Pro-2.local:8280/services//t/wso1.com/Proxy1
I checked basic scenarios like proxy service valid and invalid URLs with
super tenant and tenant modes and ran available test cases which are
related to the proxyServices/APIs in the ESB found no issues but
unfortunately at the moment we don't have enough automated test cases to
cover the multitenant edge cases.

Thanks.


On Wed, Aug 5, 2015 at 12:06 PM, Supun Malinga  wrote:

> Hi,
>
> We need to release carbon-identity and carbon-registry once the commons is
> released. This is due to carbon-multitenancy being dependent on identity
> and registry.
>
> Greg and IS teams as we discussed shall we start on those once the commons
> is out ?.
>
> thanks,
>
> On Wed, Aug 5, 2015 at 9:14 AM, Supun Malinga  wrote:
>
>> Hi All,
>>
>> We will be releasing carbon-multitenancy today..
>>
>> Hi Prabath AR,
>> I looked at the diff and fix looks ok. Have we also verified this with
>> ESB team in terms of the approach to the fix ?. If yes I can go ahead and
>> merge this.
>>
>> thanks,
>>
>> On Tue, Aug 4, 2015 at 12:39 PM, Prabath Ariyarathna 
>> wrote:
>>
>>> Hi Supun.
>>>
>>> Please review and merge the PR[1] for this issue[2].
>>>
>>> [1] = https://github.com/wso2/carbon-multitenancy/pull/46
>>> [2] = https://wso2.org/jira/browse/ESBJAVA-3992
>>>
>>>
>>> Thanks.
>>>
>>> On Tue, Aug 4, 2015 at 10:48 AM, Chanaka Fernando 
>>> wrote:
>>>
 Hi Supun,

 We have come across several issues[1], [2], [3] related to tenancy when
 testing the ESB 490 beta release. We are currently looking into these
 issues. Did you guys face any issue related to dispatching when testing the
 AS in multitenant scenarios?

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

 [2] https://wso2.org/jira/browse/ESBJAVA-3989

 [3] https://wso2.org/jira/browse/ESBJAVA-3988

 Thanks,
 Chanaka



 On Mon, Aug 3, 2015 at 10:13 PM, Supun Malinga  wrote:

> Hi Devs,
>
> We are going to do $subject soon after carbon commons release. Shout
> if you have any fixes to be added.
>
> thanks,
> --
> Supun Malinga,
>
> Senior Software Engineer,
> WSO2 Inc.
> http://wso2.com
> email: sup...@wso2.com 
> mobile: +94 (0)71 56 91 321
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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




>>>
>>>
>>> --
>>>
>>> *Prabath Ariyarathna*
>>>
>>> *Associate Technical Lead*
>>>
>>> *WSO2, Inc. *
>>>
>>> *lean . enterprise . middleware *
>>>
>>>
>>> *Email: prabat...@wso2.com *
>>>
>>> *Blog: http://prabu-lk.blogspot.com *
>>>
>>> *Flicker : https://www.flickr.com/photos/47759189@N08
>>> *
>>>
>>> *Mobile: +94 77 699 4730 *
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Supun Malinga,
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> email: sup...@wso2.com 
>> mobile: +94 (0)71 56 91 321
>>
>
>
>
> --
> Supun Malinga,
>
> Senior Software Engineer,
> WSO2 Inc.
> http://wso2.com
> email: sup...@wso2.com 
> mobile: +94 (0)71 56 91 321
>



-- 

*Prabath Ariyarathna*

*Associate Technical Lead*

*WSO2, Inc. *

*lean . enterprise . middleware *


*Email: prabat...@wso2.com *

*Blog: http://prabu-lk.blogspot.com *

*Flicker : https://www.flickr.com/photos/47759189@N08
*

*Mobile: +94 77 699 4730 *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to add a Servlet in DSS

2015-08-05 Thread Anjana Fernando
Hi Kasun,

I see, make sense, with the security scenarios and so on. Just wondering
since, we got a patch for the earlier wild cards scenario. Thanks for the
clarification.

Cheers,
Anjana.

On Wed, Aug 5, 2015 at 12:54 PM, KasunG Gajasinghe  wrote:

> Hi Anjana,
>
> The servlet registration provided via component.xml only provides a basic
> set of features. As we discussed here, it does not support wild cards. And,
> it does not support things such as security-constraints which we configure
> through web.xml of a webapp. I believe Madhawa requested this as well in
> the thread [1]. And, there can be other requirements that might pop-up as
> the integration goes on.
>
> Since we have a viable approach for these problems by using webapps, it's
> better to go on that path because of the above.
>
> [1] How to handle QOS Security for servlet request
>
>
> On Wed, Aug 5, 2015 at 12:36 PM, Anjana Fernando  wrote:
>
>> Hi Kasun,
>>
>> But, still, it is an extra hassle to create another webapp and copy it to
>> the deployment directory separately, it is not there with the other
>> components. What is wrong with the other existing approach? ..
>>
>> Cheers,
>> Anjana.
>>
>> On Wed, Aug 5, 2015 at 12:33 PM, KasunG Gajasinghe 
>> wrote:
>>
>>> Hi Anjana/Madhawa,
>>>
>>> The webapp is there to expose a servlet. The actual logic does not need
>>> to be in the webapp itself, and can be put in a carbon component. So,
>>> there's no separation.
>>>
>>> IS etc. does the same where they have JAX-RS webapps that only has the
>>> jax-rs resource class to expose a REST service. The actual logic is there
>>> in identity components.
>>>
>>> On Tue, Aug 4, 2015 at 11:25 PM, Madhawa Gunasekara 
>>> wrote:
>>>
 Hi Carbon Team,

 Can we add this improvement to the upcoming carbon minor version
 release ?

 Thanks,
 Madhawa

 On Wed, Jul 29, 2015 at 10:36 PM, Anjana Fernando 
 wrote:

> Hi Niranjan,
>
> Why exactly is that? .. it doesn't look right to put one of the
> server's core logic in a webapp. Also it has to be specially copied to the
> deployment folder and all, and also, will all the tenant's get it's own
> context? .. Basically, just having a separate web app feels like, it's
> separated from the other components.
>
> Cheers,
> Anjana.
>
> On Wed, Jul 29, 2015 at 12:25 PM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> Hi Madhawa,
>>
>> As per the offline discussion with the team (Kernel), we recommended
>> to use webapp. Therefore we will be reverting this.
>>
>> Regards,
>> Nira
>>
>> On Wed, Jul 22, 2015 at 3:46 PM, Madhawa Gunasekara <
>> madha...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> Please find the created JIRA
>>> https://wso2.org/jira/browse/CARBON-15322
>>>
>>> Thanks
>>> Madhawa
>>>
>>> On Wed, Jul 22, 2015 at 2:46 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi Madhawa,

 Can you raise a JIRA in Kernel as an improvement for this?

 Regards,
 Nira

 On Wed, Jul 22, 2015 at 2:14 PM, Madhawa Gunasekara <
 madha...@wso2.com> wrote:

> Hi Thusitha,
>
> Can we add wild-card option for the implementation ?
>
> Thanks
>
> On Wed, Jul 22, 2015 at 2:12 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Madhawa,
>>
>> AFAIU In the implementation it get the links and add them to a
>> Map where key and value both are same. When we do a request it check 
>> from
>> the map whether the key exist for the path. If exist it will be 
>> bypass
>> otherwise it will redirect.
>> In your case  /odataservices/* will be the key and when you
>> request http://localhost:9443/odataservices/* since the link key
>> matches this will bypass the login. But when you request something 
>> like
>> http://localhost:9443/odataservices/abc then this will not match
>> based on the implementation so it will redirect to the login page.
>>
>> Thanks
>> Thusitha
>>
>> On Tue, Jul 21, 2015 at 6:34 PM, Madhawa Gunasekara <
>> madha...@wso2.com> wrote:
>>
>>> Kind reminder on this..!
>>>
>>> On Sat, Jul 4, 2015 at 9:39 AM, Madhawa Gunasekara <
>>> madha...@wso2.com> wrote:
>>>
 Hi All,

 I was able to invoke the servlet by using above mentioned
 reference. but I couldn't skip the login page for the all the 
 scenarios. I
 was able to skip the login page for only
 https://192.168.1.103:9443/odataservices/* url request only.
 Please find my servlet declaration below. I need to 

Re: [Dev] Please release the staging repo for carbon-commons

2015-08-05 Thread Aruna Karunarathna
Hi Chanaka,

I think this was a known issue. refer [1] @dev

[1]. [Dev] Getting a database issue when try to cluster two appservers

Regards,
Aruna

On Wed, Aug 5, 2015 at 12:50 PM, Chanaka Fernando  wrote:

> Hi KasunG,
>
> I was in the middle of testing the ESB pack with carbon-commons 444
> staging repo. While testing, I have found the below issue when testing
> clustering in tenant mode. I have created a tenant (willsmith.com) and
> after that I have created a Proxy service from the management console.
> After that, I can see that cluster messages are going to the worker nodes,
> but the artifacts are not deployed into worker nodes. When I send a request
> to that tenant proxy service of a worker node, I am getting the below
> response to the client.
>
> http://schemas.xmlsoap.org/soap/envelope/
> ">
>
>   
>  soapenv:Server
>  Cannot create tenant ConfigurationContext for tenant
> willsmith.com
>  
>   
>
> 
>
>
> In the carbon log, I can see the below exception. This could be something
> related to registry. Added the registry team also.
>
> [1]
>
>
> [2015-08-05 12:35:58,102]  INFO - HazelcastClusterMessageListener Received
> ClusteringMessage: SynchronizeRepositoryRequest{tenantId=1, tenantDomain='
> willsmith.com', messageId=8f03ceea-5e3d-4e0f-9957-c8e4de12688f}
> [2015-08-05 12:35:58,102]  INFO - SynchronizeRepositoryRequest Received
> [SynchronizeRepositoryRequest{tenantId=1, tenantDomain='willsmith.com',
> messageId=8f03ceea-5e3d-4e0f-9957-c8e4de12688f}]
> [2015-08-05 12:37:05,106]  INFO - HazelcastClusterMessageListener Received
> ClusteringMessage: SynchronizeRepositoryRequest{tenantId=1, tenantDomain='
> willsmith.com', messageId=86943e28-ac2b-4020-b67c-d6713d74b8ce}
> [2015-08-05 12:37:05,107]  INFO - SynchronizeRepositoryRequest Received
> [SynchronizeRepositoryRequest{tenantId=1, tenantDomain='willsmith.com',
> messageId=86943e28-ac2b-4020-b67c-d6713d74b8ce}]
> [2015-08-05 12:38:43,789] ERROR - JDBCResourceDAO Failed to add resource
> to path /_system/config/repository. Referential integrity constraint
> violation: "REG_RESOURCE_FK_BY_PATH_ID: PUBLIC.REG_RESOURCE FOREIGN
> KEY(REG_PATH_ID, REG_TENANT_ID) REFERENCES PUBLIC.REG_PATH(REG_PATH_ID,
> REG_TENANT_ID)"; SQL statement:
> INSERT INTO REG_RESOURCE (REG_PATH_ID, REG_NAME, REG_MEDIA_TYPE,
> REG_CREATOR, REG_CREATED_TIME, REG_LAST_UPDATOR, REG_LAST_UPDATED_TIME,
> REG_DESCRIPTION, REG_TENANT_ID, REG_UUID) VALUES (?, ?, ?, ?, ?, ?, ?, ?,
> ?, ?) [23002-140]
> org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation:
> "REG_RESOURCE_FK_BY_PATH_ID: PUBLIC.REG_RESOURCE FOREIGN KEY(REG_PATH_ID,
> REG_TENANT_ID) REFERENCES PUBLIC.REG_PATH(REG_PATH_ID, REG_TENANT_ID)"; SQL
> statement:
> INSERT INTO REG_RESOURCE (REG_PATH_ID, REG_NAME, REG_MEDIA_TYPE,
> REG_CREATOR, REG_CREATED_TIME, REG_LAST_UPDATOR, REG_LAST_UPDATED_TIME,
> REG_DESCRIPTION, REG_TENANT_ID, REG_UUID) VALUES (?, ?, ?, ?, ?, ?, ?, ?,
> ?, ?) [23002-140]
> at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
> at org.h2.message.DbException.get(DbException.java:167)
> at org.h2.message.DbException.get(DbException.java:144)
> at
> org.h2.constraint.ConstraintReferential.checkRowOwnTable(ConstraintReferential.java:329)
> at
> org.h2.constraint.ConstraintReferential.checkRow(ConstraintReferential.java:271)
> at org.h2.table.Table.fireConstraints(Table.java:801)
> at org.h2.table.Table.fireAfterRow(Table.java:818)
> at org.h2.command.dml.Insert.insertRows(Insert.java:122)
> at org.h2.command.dml.Insert.update(Insert.java:82)
> at org.h2.command.CommandContainer.update(CommandContainer.java:70)
> at org.h2.command.Command.executeUpdate(Command.java:199)
> at
> org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:141)
> at
> org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:127)
> at
> org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.addResourceWithoutContentId(JDBCResourceDAO.java:1385)
> at
> org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.add(JDBCResourceDAO.java:448)
> at
> org.wso2.carbon.registry.core.jdbc.Repository.add(Repository.java:1059)
> at
> org.wso2.carbon.registry.core.jdbc.Repository.put(Repository.java:305)
> at
> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.put(EmbeddedRegistry.java:709)
> at
> org.wso2.carbon.registry.core.caching.CacheBackedRegistry.put(CacheBackedRegistry.java:508)
> at
> org.wso2.carbon.registry.core.utils.RegistryUtils.addBaseCollectionStructure(RegistryUtils.java:779)
> at
> org.wso2.carbon.registry.core.session.UserRegistry.addSystemCollections(UserRegistry.java:356)
> at
> org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:330)
> at
> org.wso2.carbon.registry.core.session.UserRegistry.access$100(UserRegistry.java:60)
> at
> org.wso2.carbon.registry.core.session.UserRegistry$2.ru

Re: [Dev] Please release the staging repo for carbon-commons

2015-08-05 Thread Sameera Jayasoma
Hi Chanka,

Have you deployed ESB nodes in multiple instances?  Also is the deployed
path exactly same?

e.g. /mnt/wso2esb-4.9.0/

Thanks,
Sameera.

On Wed, Aug 5, 2015 at 12:50 PM, Chanaka Fernando  wrote:

> Hi KasunG,
>
> I was in the middle of testing the ESB pack with carbon-commons 444
> staging repo. While testing, I have found the below issue when testing
> clustering in tenant mode. I have created a tenant (willsmith.com) and
> after that I have created a Proxy service from the management console.
> After that, I can see that cluster messages are going to the worker nodes,
> but the artifacts are not deployed into worker nodes. When I send a request
> to that tenant proxy service of a worker node, I am getting the below
> response to the client.
>
> http://schemas.xmlsoap.org/soap/envelope/
> ">
>
>   
>  soapenv:Server
>  Cannot create tenant ConfigurationContext for tenant
> willsmith.com
>  
>   
>
> 
>
>
> In the carbon log, I can see the below exception. This could be something
> related to registry. Added the registry team also.
>
> [1]
>
>
> [2015-08-05 12:35:58,102]  INFO - HazelcastClusterMessageListener Received
> ClusteringMessage: SynchronizeRepositoryRequest{tenantId=1, tenantDomain='
> willsmith.com', messageId=8f03ceea-5e3d-4e0f-9957-c8e4de12688f}
> [2015-08-05 12:35:58,102]  INFO - SynchronizeRepositoryRequest Received
> [SynchronizeRepositoryRequest{tenantId=1, tenantDomain='willsmith.com',
> messageId=8f03ceea-5e3d-4e0f-9957-c8e4de12688f}]
> [2015-08-05 12:37:05,106]  INFO - HazelcastClusterMessageListener Received
> ClusteringMessage: SynchronizeRepositoryRequest{tenantId=1, tenantDomain='
> willsmith.com', messageId=86943e28-ac2b-4020-b67c-d6713d74b8ce}
> [2015-08-05 12:37:05,107]  INFO - SynchronizeRepositoryRequest Received
> [SynchronizeRepositoryRequest{tenantId=1, tenantDomain='willsmith.com',
> messageId=86943e28-ac2b-4020-b67c-d6713d74b8ce}]
> [2015-08-05 12:38:43,789] ERROR - JDBCResourceDAO Failed to add resource
> to path /_system/config/repository. Referential integrity constraint
> violation: "REG_RESOURCE_FK_BY_PATH_ID: PUBLIC.REG_RESOURCE FOREIGN
> KEY(REG_PATH_ID, REG_TENANT_ID) REFERENCES PUBLIC.REG_PATH(REG_PATH_ID,
> REG_TENANT_ID)"; SQL statement:
> INSERT INTO REG_RESOURCE (REG_PATH_ID, REG_NAME, REG_MEDIA_TYPE,
> REG_CREATOR, REG_CREATED_TIME, REG_LAST_UPDATOR, REG_LAST_UPDATED_TIME,
> REG_DESCRIPTION, REG_TENANT_ID, REG_UUID) VALUES (?, ?, ?, ?, ?, ?, ?, ?,
> ?, ?) [23002-140]
> org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation:
> "REG_RESOURCE_FK_BY_PATH_ID: PUBLIC.REG_RESOURCE FOREIGN KEY(REG_PATH_ID,
> REG_TENANT_ID) REFERENCES PUBLIC.REG_PATH(REG_PATH_ID, REG_TENANT_ID)"; SQL
> statement:
> INSERT INTO REG_RESOURCE (REG_PATH_ID, REG_NAME, REG_MEDIA_TYPE,
> REG_CREATOR, REG_CREATED_TIME, REG_LAST_UPDATOR, REG_LAST_UPDATED_TIME,
> REG_DESCRIPTION, REG_TENANT_ID, REG_UUID) VALUES (?, ?, ?, ?, ?, ?, ?, ?,
> ?, ?) [23002-140]
> at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
> at org.h2.message.DbException.get(DbException.java:167)
> at org.h2.message.DbException.get(DbException.java:144)
> at
> org.h2.constraint.ConstraintReferential.checkRowOwnTable(ConstraintReferential.java:329)
> at
> org.h2.constraint.ConstraintReferential.checkRow(ConstraintReferential.java:271)
> at org.h2.table.Table.fireConstraints(Table.java:801)
> at org.h2.table.Table.fireAfterRow(Table.java:818)
> at org.h2.command.dml.Insert.insertRows(Insert.java:122)
> at org.h2.command.dml.Insert.update(Insert.java:82)
> at org.h2.command.CommandContainer.update(CommandContainer.java:70)
> at org.h2.command.Command.executeUpdate(Command.java:199)
> at
> org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:141)
> at
> org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:127)
> at
> org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.addResourceWithoutContentId(JDBCResourceDAO.java:1385)
> at
> org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.add(JDBCResourceDAO.java:448)
> at
> org.wso2.carbon.registry.core.jdbc.Repository.add(Repository.java:1059)
> at
> org.wso2.carbon.registry.core.jdbc.Repository.put(Repository.java:305)
> at
> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.put(EmbeddedRegistry.java:709)
> at
> org.wso2.carbon.registry.core.caching.CacheBackedRegistry.put(CacheBackedRegistry.java:508)
> at
> org.wso2.carbon.registry.core.utils.RegistryUtils.addBaseCollectionStructure(RegistryUtils.java:779)
> at
> org.wso2.carbon.registry.core.session.UserRegistry.addSystemCollections(UserRegistry.java:356)
> at
> org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:330)
> at
> org.wso2.carbon.registry.core.session.UserRegistry.access$100(UserRegistry.java:60)
> at
> org.wso2.carbon.registry.core.session.UserRegistry$2.ru

Re: [Dev] How to add a Servlet in DSS

2015-08-05 Thread KasunG Gajasinghe
Hi Anjana,

The servlet registration provided via component.xml only provides a basic
set of features. As we discussed here, it does not support wild cards. And,
it does not support things such as security-constraints which we configure
through web.xml of a webapp. I believe Madhawa requested this as well in
the thread [1]. And, there can be other requirements that might pop-up as
the integration goes on.

Since we have a viable approach for these problems by using webapps, it's
better to go on that path because of the above.

[1] How to handle QOS Security for servlet request


On Wed, Aug 5, 2015 at 12:36 PM, Anjana Fernando  wrote:

> Hi Kasun,
>
> But, still, it is an extra hassle to create another webapp and copy it to
> the deployment directory separately, it is not there with the other
> components. What is wrong with the other existing approach? ..
>
> Cheers,
> Anjana.
>
> On Wed, Aug 5, 2015 at 12:33 PM, KasunG Gajasinghe 
> wrote:
>
>> Hi Anjana/Madhawa,
>>
>> The webapp is there to expose a servlet. The actual logic does not need
>> to be in the webapp itself, and can be put in a carbon component. So,
>> there's no separation.
>>
>> IS etc. does the same where they have JAX-RS webapps that only has the
>> jax-rs resource class to expose a REST service. The actual logic is there
>> in identity components.
>>
>> On Tue, Aug 4, 2015 at 11:25 PM, Madhawa Gunasekara 
>> wrote:
>>
>>> Hi Carbon Team,
>>>
>>> Can we add this improvement to the upcoming carbon minor version release
>>> ?
>>>
>>> Thanks,
>>> Madhawa
>>>
>>> On Wed, Jul 29, 2015 at 10:36 PM, Anjana Fernando 
>>> wrote:
>>>
 Hi Niranjan,

 Why exactly is that? .. it doesn't look right to put one of the
 server's core logic in a webapp. Also it has to be specially copied to the
 deployment folder and all, and also, will all the tenant's get it's own
 context? .. Basically, just having a separate web app feels like, it's
 separated from the other components.

 Cheers,
 Anjana.

 On Wed, Jul 29, 2015 at 12:25 PM, Niranjan Karunanandham <
 niran...@wso2.com> wrote:

> Hi Madhawa,
>
> As per the offline discussion with the team (Kernel), we recommended
> to use webapp. Therefore we will be reverting this.
>
> Regards,
> Nira
>
> On Wed, Jul 22, 2015 at 3:46 PM, Madhawa Gunasekara  > wrote:
>
>> Hi All,
>>
>> Please find the created JIRA
>> https://wso2.org/jira/browse/CARBON-15322
>>
>> Thanks
>> Madhawa
>>
>> On Wed, Jul 22, 2015 at 2:46 PM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Madhawa,
>>>
>>> Can you raise a JIRA in Kernel as an improvement for this?
>>>
>>> Regards,
>>> Nira
>>>
>>> On Wed, Jul 22, 2015 at 2:14 PM, Madhawa Gunasekara <
>>> madha...@wso2.com> wrote:
>>>
 Hi Thusitha,

 Can we add wild-card option for the implementation ?

 Thanks

 On Wed, Jul 22, 2015 at 2:12 PM, Thusitha Thilina Dayaratne <
 thusit...@wso2.com> wrote:

> Hi Madhawa,
>
> AFAIU In the implementation it get the links and add them to a Map
> where key and value both are same. When we do a request it check from 
> the
> map whether the key exist for the path. If exist it will be bypass
> otherwise it will redirect.
> In your case  /odataservices/* will be the key and when you
> request http://localhost:9443/odataservices/* since the link key
> matches this will bypass the login. But when you request something 
> like
> http://localhost:9443/odataservices/abc then this will not match
> based on the implementation so it will redirect to the login page.
>
> Thanks
> Thusitha
>
> On Tue, Jul 21, 2015 at 6:34 PM, Madhawa Gunasekara <
> madha...@wso2.com> wrote:
>
>> Kind reminder on this..!
>>
>> On Sat, Jul 4, 2015 at 9:39 AM, Madhawa Gunasekara <
>> madha...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I was able to invoke the servlet by using above mentioned
>>> reference. but I couldn't skip the login page for the all the 
>>> scenarios. I
>>> was able to skip the login page for only
>>> https://192.168.1.103:9443/odataservices/* url request only.
>>> Please find my servlet declaration below. I need to handle requests 
>>> like '
>>> https://192.168.1.103:9443/odataservices/wso2services' from the
>>> servlet. which begining with particular word 'odataservices'.
>>>
>>> Any help on this matter in highly appreciated.
>>>
>>> What should I missing here ?
>>>
>>> http://products.wso2.org/carbon";>
>>>
>>> 
>>> 
>>> 

Re: [Dev] Please release the staging repo for carbon-commons

2015-08-05 Thread Chanaka Fernando
Hi KasunG,

I was in the middle of testing the ESB pack with carbon-commons 444 staging
repo. While testing, I have found the below issue when testing clustering
in tenant mode. I have created a tenant (willsmith.com) and after that I
have created a Proxy service from the management console. After that, I can
see that cluster messages are going to the worker nodes, but the artifacts
are not deployed into worker nodes. When I send a request to that tenant
proxy service of a worker node, I am getting the below response to the
client.

http://schemas.xmlsoap.org/soap/envelope/";>
   
  
 soapenv:Server
 Cannot create tenant ConfigurationContext for tenant
willsmith.com
 
  
   



In the carbon log, I can see the below exception. This could be something
related to registry. Added the registry team also.

[1]


[2015-08-05 12:35:58,102]  INFO - HazelcastClusterMessageListener Received
ClusteringMessage: SynchronizeRepositoryRequest{tenantId=1, tenantDomain='
willsmith.com', messageId=8f03ceea-5e3d-4e0f-9957-c8e4de12688f}
[2015-08-05 12:35:58,102]  INFO - SynchronizeRepositoryRequest Received
[SynchronizeRepositoryRequest{tenantId=1, tenantDomain='willsmith.com',
messageId=8f03ceea-5e3d-4e0f-9957-c8e4de12688f}]
[2015-08-05 12:37:05,106]  INFO - HazelcastClusterMessageListener Received
ClusteringMessage: SynchronizeRepositoryRequest{tenantId=1, tenantDomain='
willsmith.com', messageId=86943e28-ac2b-4020-b67c-d6713d74b8ce}
[2015-08-05 12:37:05,107]  INFO - SynchronizeRepositoryRequest Received
[SynchronizeRepositoryRequest{tenantId=1, tenantDomain='willsmith.com',
messageId=86943e28-ac2b-4020-b67c-d6713d74b8ce}]
[2015-08-05 12:38:43,789] ERROR - JDBCResourceDAO Failed to add resource to
path /_system/config/repository. Referential integrity constraint
violation: "REG_RESOURCE_FK_BY_PATH_ID: PUBLIC.REG_RESOURCE FOREIGN
KEY(REG_PATH_ID, REG_TENANT_ID) REFERENCES PUBLIC.REG_PATH(REG_PATH_ID,
REG_TENANT_ID)"; SQL statement:
INSERT INTO REG_RESOURCE (REG_PATH_ID, REG_NAME, REG_MEDIA_TYPE,
REG_CREATOR, REG_CREATED_TIME, REG_LAST_UPDATOR, REG_LAST_UPDATED_TIME,
REG_DESCRIPTION, REG_TENANT_ID, REG_UUID) VALUES (?, ?, ?, ?, ?, ?, ?, ?,
?, ?) [23002-140]
org.h2.jdbc.JdbcSQLException: Referential integrity constraint violation:
"REG_RESOURCE_FK_BY_PATH_ID: PUBLIC.REG_RESOURCE FOREIGN KEY(REG_PATH_ID,
REG_TENANT_ID) REFERENCES PUBLIC.REG_PATH(REG_PATH_ID, REG_TENANT_ID)"; SQL
statement:
INSERT INTO REG_RESOURCE (REG_PATH_ID, REG_NAME, REG_MEDIA_TYPE,
REG_CREATOR, REG_CREATED_TIME, REG_LAST_UPDATOR, REG_LAST_UPDATED_TIME,
REG_DESCRIPTION, REG_TENANT_ID, REG_UUID) VALUES (?, ?, ?, ?, ?, ?, ?, ?,
?, ?) [23002-140]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
at org.h2.message.DbException.get(DbException.java:167)
at org.h2.message.DbException.get(DbException.java:144)
at
org.h2.constraint.ConstraintReferential.checkRowOwnTable(ConstraintReferential.java:329)
at
org.h2.constraint.ConstraintReferential.checkRow(ConstraintReferential.java:271)
at org.h2.table.Table.fireConstraints(Table.java:801)
at org.h2.table.Table.fireAfterRow(Table.java:818)
at org.h2.command.dml.Insert.insertRows(Insert.java:122)
at org.h2.command.dml.Insert.update(Insert.java:82)
at org.h2.command.CommandContainer.update(CommandContainer.java:70)
at org.h2.command.Command.executeUpdate(Command.java:199)
at
org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:141)
at
org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:127)
at
org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.addResourceWithoutContentId(JDBCResourceDAO.java:1385)
at
org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.add(JDBCResourceDAO.java:448)
at
org.wso2.carbon.registry.core.jdbc.Repository.add(Repository.java:1059)
at
org.wso2.carbon.registry.core.jdbc.Repository.put(Repository.java:305)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.put(EmbeddedRegistry.java:709)
at
org.wso2.carbon.registry.core.caching.CacheBackedRegistry.put(CacheBackedRegistry.java:508)
at
org.wso2.carbon.registry.core.utils.RegistryUtils.addBaseCollectionStructure(RegistryUtils.java:779)
at
org.wso2.carbon.registry.core.session.UserRegistry.addSystemCollections(UserRegistry.java:356)
at
org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:330)
at
org.wso2.carbon.registry.core.session.UserRegistry.access$100(UserRegistry.java:60)
at
org.wso2.carbon.registry.core.session.UserRegistry$2.run(UserRegistry.java:248)
at java.security.AccessController.doPrivileged(Native Method)
at
org.wso2.carbon.registry.core.session.UserRegistry.(UserRegistry.java:245)
at
org.wso2.carbon.registry.core.session.UserRegistry.(UserRegistry.java:224)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getUserRegistry(EmbeddedRegistryService.java:427)
at
org.wso2.carbon.reg

Re: [Dev] How to add a Servlet in DSS

2015-08-05 Thread Anjana Fernando
Hi Kasun,

But, still, it is an extra hassle to create another webapp and copy it to
the deployment directory separately, it is not there with the other
components. What is wrong with the other existing approach? ..

Cheers,
Anjana.

On Wed, Aug 5, 2015 at 12:33 PM, KasunG Gajasinghe  wrote:

> Hi Anjana/Madhawa,
>
> The webapp is there to expose a servlet. The actual logic does not need to
> be in the webapp itself, and can be put in a carbon component. So, there's
> no separation.
>
> IS etc. does the same where they have JAX-RS webapps that only has the
> jax-rs resource class to expose a REST service. The actual logic is there
> in identity components.
>
> On Tue, Aug 4, 2015 at 11:25 PM, Madhawa Gunasekara 
> wrote:
>
>> Hi Carbon Team,
>>
>> Can we add this improvement to the upcoming carbon minor version release ?
>>
>> Thanks,
>> Madhawa
>>
>> On Wed, Jul 29, 2015 at 10:36 PM, Anjana Fernando 
>> wrote:
>>
>>> Hi Niranjan,
>>>
>>> Why exactly is that? .. it doesn't look right to put one of the server's
>>> core logic in a webapp. Also it has to be specially copied to the
>>> deployment folder and all, and also, will all the tenant's get it's own
>>> context? .. Basically, just having a separate web app feels like, it's
>>> separated from the other components.
>>>
>>> Cheers,
>>> Anjana.
>>>
>>> On Wed, Jul 29, 2015 at 12:25 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi Madhawa,

 As per the offline discussion with the team (Kernel), we recommended to
 use webapp. Therefore we will be reverting this.

 Regards,
 Nira

 On Wed, Jul 22, 2015 at 3:46 PM, Madhawa Gunasekara 
 wrote:

> Hi All,
>
> Please find the created JIRA https://wso2.org/jira/browse/CARBON-15322
>
> Thanks
> Madhawa
>
> On Wed, Jul 22, 2015 at 2:46 PM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> Hi Madhawa,
>>
>> Can you raise a JIRA in Kernel as an improvement for this?
>>
>> Regards,
>> Nira
>>
>> On Wed, Jul 22, 2015 at 2:14 PM, Madhawa Gunasekara <
>> madha...@wso2.com> wrote:
>>
>>> Hi Thusitha,
>>>
>>> Can we add wild-card option for the implementation ?
>>>
>>> Thanks
>>>
>>> On Wed, Jul 22, 2015 at 2:12 PM, Thusitha Thilina Dayaratne <
>>> thusit...@wso2.com> wrote:
>>>
 Hi Madhawa,

 AFAIU In the implementation it get the links and add them to a Map
 where key and value both are same. When we do a request it check from 
 the
 map whether the key exist for the path. If exist it will be bypass
 otherwise it will redirect.
 In your case  /odataservices/* will be the key and when you
 request http://localhost:9443/odataservices/* since the link key
 matches this will bypass the login. But when you request something like
 http://localhost:9443/odataservices/abc then this will not match
 based on the implementation so it will redirect to the login page.

 Thanks
 Thusitha

 On Tue, Jul 21, 2015 at 6:34 PM, Madhawa Gunasekara <
 madha...@wso2.com> wrote:

> Kind reminder on this..!
>
> On Sat, Jul 4, 2015 at 9:39 AM, Madhawa Gunasekara <
> madha...@wso2.com> wrote:
>
>> Hi All,
>>
>> I was able to invoke the servlet by using above mentioned
>> reference. but I couldn't skip the login page for the all the 
>> scenarios. I
>> was able to skip the login page for only
>> https://192.168.1.103:9443/odataservices/* url request only.
>> Please find my servlet declaration below. I need to handle requests 
>> like '
>> https://192.168.1.103:9443/odataservices/wso2services' from the
>> servlet. which begining with particular word 'odataservices'.
>>
>> Any help on this matter in highly appreciated.
>>
>> What should I missing here ?
>>
>> http://products.wso2.org/carbon";>
>>
>> 
>> 
>> ODataServlet
>> /odataservices/*
>> OData Services Callback 
>> Servlet
>> 
>> org.wso2.carbon.dataservices.odata.ODataServlet
>> 
>> 
>> 
>> 
>> 
>> /odataservices/*
>> 
>> 
>> 
>> 
>>
>>
>> Thanks,
>> Madhawa
>>
>> On Fri, Jul 3, 2015 at 5:20 PM, Madhawa Gunasekara <
>> madha...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I have requirement to insert a servlet in DSS to process some
>>> specific http requests( GET,POST). I have done some implementations 
>>> by

Re: [Dev] How to add a Servlet in DSS

2015-08-05 Thread KasunG Gajasinghe
Hi Anjana/Madhawa,

The webapp is there to expose a servlet. The actual logic does not need to
be in the webapp itself, and can be put in a carbon component. So, there's
no separation.

IS etc. does the same where they have JAX-RS webapps that only has the
jax-rs resource class to expose a REST service. The actual logic is there
in identity components.

On Tue, Aug 4, 2015 at 11:25 PM, Madhawa Gunasekara 
wrote:

> Hi Carbon Team,
>
> Can we add this improvement to the upcoming carbon minor version release ?
>
> Thanks,
> Madhawa
>
> On Wed, Jul 29, 2015 at 10:36 PM, Anjana Fernando  wrote:
>
>> Hi Niranjan,
>>
>> Why exactly is that? .. it doesn't look right to put one of the server's
>> core logic in a webapp. Also it has to be specially copied to the
>> deployment folder and all, and also, will all the tenant's get it's own
>> context? .. Basically, just having a separate web app feels like, it's
>> separated from the other components.
>>
>> Cheers,
>> Anjana.
>>
>> On Wed, Jul 29, 2015 at 12:25 PM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Madhawa,
>>>
>>> As per the offline discussion with the team (Kernel), we recommended to
>>> use webapp. Therefore we will be reverting this.
>>>
>>> Regards,
>>> Nira
>>>
>>> On Wed, Jul 22, 2015 at 3:46 PM, Madhawa Gunasekara 
>>> wrote:
>>>
 Hi All,

 Please find the created JIRA https://wso2.org/jira/browse/CARBON-15322

 Thanks
 Madhawa

 On Wed, Jul 22, 2015 at 2:46 PM, Niranjan Karunanandham <
 niran...@wso2.com> wrote:

> Hi Madhawa,
>
> Can you raise a JIRA in Kernel as an improvement for this?
>
> Regards,
> Nira
>
> On Wed, Jul 22, 2015 at 2:14 PM, Madhawa Gunasekara  > wrote:
>
>> Hi Thusitha,
>>
>> Can we add wild-card option for the implementation ?
>>
>> Thanks
>>
>> On Wed, Jul 22, 2015 at 2:12 PM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Hi Madhawa,
>>>
>>> AFAIU In the implementation it get the links and add them to a Map
>>> where key and value both are same. When we do a request it check from 
>>> the
>>> map whether the key exist for the path. If exist it will be bypass
>>> otherwise it will redirect.
>>> In your case  /odataservices/* will be the key and when you request
>>> http://localhost:9443/odataservices/* since the link key matches
>>> this will bypass the login. But when you request something like
>>> http://localhost:9443/odataservices/abc then this will not match
>>> based on the implementation so it will redirect to the login page.
>>>
>>> Thanks
>>> Thusitha
>>>
>>> On Tue, Jul 21, 2015 at 6:34 PM, Madhawa Gunasekara <
>>> madha...@wso2.com> wrote:
>>>
 Kind reminder on this..!

 On Sat, Jul 4, 2015 at 9:39 AM, Madhawa Gunasekara <
 madha...@wso2.com> wrote:

> Hi All,
>
> I was able to invoke the servlet by using above mentioned
> reference. but I couldn't skip the login page for the all the 
> scenarios. I
> was able to skip the login page for only
> https://192.168.1.103:9443/odataservices/* url request only.
> Please find my servlet declaration below. I need to handle requests 
> like '
> https://192.168.1.103:9443/odataservices/wso2services' from the
> servlet. which begining with particular word 'odataservices'.
>
> Any help on this matter in highly appreciated.
>
> What should I missing here ?
>
> http://products.wso2.org/carbon";>
>
> 
> 
> ODataServlet
> /odataservices/*
> OData Services Callback 
> Servlet
> 
> org.wso2.carbon.dataservices.odata.ODataServlet
> 
> 
> 
> 
> 
> /odataservices/*
> 
> 
> 
> 
>
>
> Thanks,
> Madhawa
>
> On Fri, Jul 3, 2015 at 5:20 PM, Madhawa Gunasekara <
> madha...@wso2.com> wrote:
>
>> Hi All,
>>
>> I have requirement to insert a servlet in DSS to process some
>> specific http requests( GET,POST). I have done some implementations 
>> by
>> refering [1].
>> but when I send the request it will redirect to the login page
>> due to the authentications, How can I fixed that? and also servlet 
>> methods
>> didn't hit but I can find my servlet class in Servlet listings also.
>>
>> [2015-07-03 15:20:30,885] DEBUG
>> {org.wso2.carbon.ui.deployment.beans.CarbonUIDefinitions} -  Listing 
>> all
>> Servlet items as of now...
>>