Re: [Dev] API Manager OSGI services unsatisfied on DSS

2014-12-11 Thread Madusanka Premaratne
I figured out the error. It was a configuration problem with the
configurations in registry.xml

Thanks,

On Fri, Dec 12, 2014 at 10:07 AM, Madusanka Premaratne 
wrote:
>
> Hi All/Kishanthan,
> I tried to debug this in OSGI level and some of the components saying "No
> unresolved constraints" and some pop out "Missing optionally imported
> packages".
> When I try diag 19, I can see the following.
>
> osgi> diag 19
>
> reference:file:../plugins/bsf-all_3.0.0.wso2v2.jar [19]
>
>   Direct constraints which are unresolved:
>
> Missing optionally imported package com.judoscript_0.0.0.
>
> Missing optionally imported package com.judoscript.bio_0.0.0.
>
> Missing optionally imported package com.judoscript.parser_0.0.0.
>
> Missing optionally imported package com.judoscript.util_0.0.0.
>
> Missing optionally imported package com.rc.retroweaver.runtime_0.0.0.
>
> Missing optionally imported package de.odysseus.el.util_0.0.0.
>
> Missing optionally imported package freemarker.template_0.0.0.
>
> Missing optionally imported package groovy.lang_0.0.0.
>
> Missing optionally imported package javax.tools_0.0.0.
>
> Missing optionally imported package jfun.jaskell_0.0.0.
>
> Missing optionally imported package jfun.jaskell.ast_0.0.0.
>
> Missing optionally imported package jfun.jaskell.function_0.0.0.
>
> Missing optionally imported package jfun.parsec_0.0.0.
>
> Missing optionally imported package jfun.util_0.0.0.
>
> Missing optionally imported package ognl_0.0.0.
>
> Missing optionally imported package org.apache.commons.jelly_0.0.0.
>
> Missing optionally imported package
> org.apache.commons.jelly.expression_0.0.0.
>
> Missing optionally imported package
> org.apache.commons.jelly.impl_0.0.0.
>
> Missing optionally imported package
> org.apache.commons.jelly.parser_0.0.0.
>
> Missing optionally imported package
> org.apache.commons.jelly.tags.core_0.0.0.
>
> Missing optionally imported package org.apache.commons.jexl_0.0.0.
>
> Missing optionally imported package org.codehaus.groovy.control_0.0.0.
>
> Missing optionally imported package org.codehaus.groovy.runtime_0.0.0.
>
> Missing optionally imported package org.codehaus.groovy.syntax_0.0.0.
>
> Missing optionally imported package org.jawk_0.0.0.
>
> Missing optionally imported package org.jruby_0.0.0.
>
> Missing optionally imported package org.jruby.ast_0.0.0.
>
> Missing optionally imported package org.jruby.exceptions_0.0.0.
>
> Missing optionally imported package org.jruby.internal.runtime_0.0.0.
>
> Missing optionally imported package org.jruby.javasupport_0.0.0.
>
> Missing optionally imported package org.jruby.runtime_0.0.0.
>
> Missing optionally imported package org.jruby.runtime.builtin_0.0.0.
>
> Missing optionally imported package org.jruby.runtime.load_0.0.0.
>
> Missing optionally imported package org.jruby.util_0.0.0.
>
> Missing optionally imported package org.jruby.util.io_0.0.0.
>
> Missing optionally imported package org.lsmp.djep.groupJep_0.0.0.
>
> Missing optionally imported package
> org.lsmp.djep.groupJep.groups_0.0.0.
>
> Missing optionally imported package org.lsmp.djep.vectorJep_0.0.0.
>
> Missing optionally imported package org.nfunk.jep_0.0.0.
>
> Missing optionally imported package org.nfunk.jep.function_0.0.0.
>
> Missing optionally imported package org.pnuts.lang_0.0.0.
>
> Missing optionally imported package org.pnuts.util_0.0.0.
>
> Missing optionally imported package org.python.core_0.0.0.
>
> Missing optionally imported package pnuts.compiler_0.0.0.
>
> Missing optionally imported package pnuts.lang_0.0.0.
>
> Missing optionally imported package sisc.data_0.0.0.
>
> Missing optionally imported package sisc.interpreter_0.0.0.
>
> Missing optionally imported package sisc.modules.s2j_0.0.0.
>
> Missing optionally imported package sisc.nativefun_0.0.0.
>
> Missing optionally imported package sisc.reader_0.0.0.
>
> Missing optionally imported package sisc.ser_0.0.0.
>
> Missing optionally imported package tcl.lang_0.0.0.
>
> What can I do to resolve this?
> Thanks,
>
> On Mon, Dec 8, 2014 at 5:07 PM, Madusanka Premaratne 
> wrote:
>>
>> Hi All,
>> I recently installed APIM 1.7.0 on top of Data Services Server. After the
>> installation I check the "apimgt" OSGI bundles (using ss apimgt) and
>> those are in "ACTIVE" state. But when I list the services  using *list*
>> command, I can see the services are unsatisfied as below.
>>
>> 19 Unsatisfied org.wso2.apimgt.core.services org.wso2.carbon.apimgt.core(
>> bid=189)
>>
>> 20 Unsatisfied org.wso2.carbon.apimgt.handlers org.wso2.carbon.apimgt.
>> gateway(bid=190)
>>
>> 21 Unsatisfied org.wso2.apimgt.hostobjects org.wso2.carbon.apimgt.
>> hostobjects(bid=192)
>>
>> 22 Unsatisfied org.wso2.apimgt.impl.services org.wso2.carbon.apimgt.impl(
>> bid=193)
>>
>> 23 Unsatisfied api.keymgt.co

Re: [Dev] Need help with UES Dashboards

2014-12-11 Thread Thiwanka Makumburage
Hi Guys,
I have a another question regarding UES.

When we remove the

<%
var user = require('/modules/user.js').current();
if (!user) {
response.sendRedirect('/vv/login');
}
%>

snippet from a dashboard index.jag page, the gadgets will not show on the
1st page load. After a page refresh the gadgets will load normally. When we
clear the browser cache and go directly to the dashboard, the same thing
happens. Any idea how to avoid this issue? When we checked with firebug,and
we have found the requests for the gadgets are not generating from the
dashboard app at the 1st load. After a page reload, gadget requests are
generated normally until we clear the browser cache.

Thanks

Best Regrads,
Thiwanka
LSF

On 18 November 2014 at 15:57, Thiwanka Makumburage 
wrote:
>
> Thanks Tanya & Manuranga.
>
> On 17 November 2014 11:56, Manuranga Perera  wrote:
>
>> Hi Thiwanka,
>>
>> We currently only support personalize but not edits through the dashboard
>> UI. Currently you can only edit in code mode. However supporting edits are
>> in our road-map.
>>
>> Personalize - adding changers to my (current user's) view of the
>> dashboard. the changes are not reflected in other users dashboards.
>> Edit - change the dashboard for all users.
>>
>> On Mon, Nov 17, 2014 at 11:41 AM, Tanya Madurapperuma 
>> wrote:
>>
>>> Hi Thiwaka,
>>>
>>> If you edit a dashboard in the personalize mode, those changes will be
>>> visible only to that particular user. So even if the admin changes the
>>> dashboard in the personalize mode, those changes will be stored in admin's
>>> user registry and will be visible only for admin, not the other users.
>>>
>>> AFAIK dashboard design is a one time task, where edits done after
>>> publishing cannot be made global.
>>> @ Ruchira, Manu, SameeraM : please correct me if I am wrong.
>>>
>>> Thanks,
>>> Tanya
>>>
>>>
>>> On Mon, Nov 17, 2014 at 11:32 AM, Thiwanka Makumburage <
>>> thiwa...@opensource.lk> wrote:
>>>
 Hi Tanya,

 Thanks for the help. Also we wanted to give dashboard edit rights only
 to the admin.So we removed the personalize button from the dashboard, for
 the rest of the users by checking username from the session. Is there a
 better way to do that?

 Best Regards,
 Thiwanka
 LSF

 On 14 November 2014 15:40, Tanya Madurapperuma  wrote:

> Hi Thiwanka,
>
> A dashboard is basically a jaggery app. If you navigate to the created
> dashboard ( at
> UES_HOME/repository/deployment/server/jaggeryapps/ ), you
> will find an *index.jag* file. If you remove the below snippet from
> that file, any user will be able to see the dashboard without
> authentication if your gadgets doesn't require a logged in user.
>
> <%
> var user = require('/modules/user.js').current();
> if (!user) {
> response.sendRedirect('/vv/login');
> }
> %>
>
> Thanks,
> Tanya
>
>
>
> On Wed, Nov 12, 2014 at 10:48 AM, Thiwanka Makumburage <
> thiwa...@opensource.lk> wrote:
>
>> Hi All,
>> I'm Thiwanka Makumburage from Lanka Software Foundation, a member of
>> a opensource project called 'SriLanka Innovation Dashboard'. For the
>> project we use WSO2 UES product and customized gadgets on top of it. As 
>> per
>> a client request we want to develop some specific dashboards like 
>> following,
>>
>>1) Common dashboard -
>>
>>- View by all the users without authentication.
>>   - Gadgets to included will be decided by the client team.
>>
>>2) User dashboards
>>
>>- Each user can have their own customizable dashboard with
>>   authentication. (to achieve this do we need to automatically create
>>   dashboards with unique name such as username, for each user at the 
>> point of
>>   registration? )
>>   - Users will be able to save their preferences with gadgets.
>>
>> Could we create No.1 type of a common dashboard using UES? If
>> possible, how to achieve that? Thanks!
>>
>> Best Regards,
>> Thiwanka
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Tanya Madurapperuma
>
> Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94718184439
> Blog : http://tanyamadurapperuma.blogspot.com
>


>>>
>>>
>>> --
>>> Tanya Madurapperuma
>>>
>>> Software Engineer,
>>> WSO2 Inc. : wso2.com
>>> Mobile : +94718184439
>>> Blog : http://tanyamadurapperuma.blogspot.com
>>>
>>
>>
>>
>> --
>> With regards,
>> *Manu*ranga Perera.
>>
>> phone : 071 7 70 20 50
>> mail : m...@wso2.com
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Handling The Response Without Content Type

2014-12-11 Thread Malaka Silva
Hi Sriashalya,

Can you try section 'Handling messages with no content type' in [1].

Also in this case you can try building using builder mediator [2]

[1]
https://docs.wso2.com/display/ESB481/Working+with+Message+Builders+and+Formatters

[2] https://docs.wso2.com/display/ESB481/Builder+Mediator

Best Regards,
Malaka

On Fri, Dec 12, 2014 at 10:24 AM, Sriashalya Srivathsan 
wrote:
>
> When I send the request to back end ,it sends the response without any
> content type.So ESB sends the binary format to the REST Client.
>
> Can anyone please help me to handle this situation.
>
>
>
> [2014-12-11 16:53:24,701] DEBUG - wire >> "POST
> /services/zoho_GetAuthToken HTTP/1.1[\r][\n]"
> [2014-12-11 16:53:24,701] DEBUG - wire >> "Host:
> sriashalyas-macbook-pro.local:8280[\r][\n]"
> [2014-12-11 16:53:24,701] DEBUG - wire >> "Connection: keep-alive[\r][\n]"
> [2014-12-11 16:53:24,701] DEBUG - wire >> "Content-Length: 59[\r][\n]"
> [2014-12-11 16:53:24,702] DEBUG - wire >> "Cache-Control: no-cache[\r][\n]"
> [2014-12-11 16:53:24,702] DEBUG - wire >> "Origin:
> chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"
> [2014-12-11 16:53:24,702] DEBUG - wire >> "User-Agent: Mozilla/5.0
> (Macintosh: Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko)
> Chrome/39.0.2171.71 Safari/537.36[\r][\n]"
> [2014-12-11 16:53:24,702] DEBUG - wire >> "Content-Type:
> application/json[\r][\n]"
> [2014-12-11 16:53:24,702] DEBUG - wire >> "Accept: */*[\r][\n]"
> [2014-12-11 16:53:24,702] DEBUG - wire >> "Accept-Encoding: gzip,
> deflate[\r][\n]"
> [2014-12-11 16:53:24,702] DEBUG - wire >> "Accept-Language:
> en-US,en;q=0.8,ta;q=0.6[\r][\n]"
> [2014-12-11 16:53:24,702] DEBUG - wire >> "Cookie:
> a8c61fa0dc=251e1e57ff3f515d68618b394d194dbd;
> edfb7d8656=9c1fd4635ab50f92ceb89a2f6139a417;
> JSESSIONID=4A7E75C2CF4973B11FA41904382E29DF[\r][\n]"
> [2014-12-11 16:53:24,702] DEBUG - wire >> "[\r][\n]"
> [2014-12-11 16:53:24,702] DEBUG - wire >> "{[\n]"
> [2014-12-11 16:53:24,702] DEBUG - wire >> ""EMAIL_ID":"watsa...@yahoo.com
> ",[\n]"
> [2014-12-11 16:53:24,703] DEBUG - wire >> ""PASSWORD":"12345678"[\n]"
> [2014-12-11 16:53:24,703] DEBUG - wire >> "}[\n]"
> [2014-12-11 16:53:25,433] DEBUG - wire << "POST
> https://accounts.zoho.com/apiauthtoken/nb/create HTTP/1.1[\r][\n]"
> [2014-12-11 16:53:25,433] DEBUG - wire << "Accept-Language:
> en-US,en;q=0.8,ta;q=0.6[\r][\n]"
> [2014-12-11 16:53:25,433] DEBUG - wire << "Cookie:
> a8c61fa0dc=251e1e57ff3f515d68618b394d194dbd;
> edfb7d8656=9c1fd4635ab50f92ceb89a2f6139a417;
> JSESSIONID=4A7E75C2CF4973B11FA41904382E29DF[\r][\n]"
> [2014-12-11 16:53:25,433] DEBUG - wire << "Host: invoice.zoho.com[\r][\n]"
> [2014-12-11 16:53:25,449] DEBUG - wire << "Accept-Encoding: gzip,
> deflate[\r][\n]"
> [2014-12-11 16:53:25,449] DEBUG - wire << "Origin:
> chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"
> [2014-12-11 16:53:25,449] DEBUG - wire << "Content-Type:
> application/x-www-form-urlencoded; charset=UTF-8[\r][\n]"
> [2014-12-11 16:53:25,449] DEBUG - wire << "Accept: */*[\r][\n]"
> [2014-12-11 16:53:25,449] DEBUG - wire << "Cache-Control: no-cache[\r][\n]"
> [2014-12-11 16:53:25,449] DEBUG - wire << "Transfer-Encoding:
> chunked[\r][\n]"
> [2014-12-11 16:53:25,449] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
> [2014-12-11 16:53:25,449] DEBUG - wire << "User-Agent:
> Synapse-PT-HttpComponents-NIO[\r][\n]"
> [2014-12-11 16:53:25,450] DEBUG - wire << "[\r][\n]"
> [2014-12-11 16:53:25,450] DEBUG - wire << "5a[\r][\n]"
> [2014-12-11 16:53:25,450] DEBUG - wire <<
> "SCOPE=ZohoInvoice%2Finvoiceapi&accept=text&EMAIL_ID=watsan86%40yahoo.com
> &PASSWORD=12345678[\r][\n]"
> [2014-12-11 16:53:25,450] DEBUG - wire << "0[\r][\n]"
> [2014-12-11 16:53:25,450] DEBUG - wire << "[\r][\n]"
> [2014-12-11 16:53:25,745] DEBUG - wire >> "HTTP/1.1 200 OK[\r][\n]"
> [2014-12-11 16:53:25,745] DEBUG - wire >> "Server: ZGS[\r][\n]"
> [2014-12-11 16:53:25,745] DEBUG - wire >> "Date: Thu, 11 Dec 2014 11:23:25
> GMT[\r][\n]"
> [2014-12-11 16:53:25,745] DEBUG - wire >> "Transfer-Encoding:
> chunked[\r][\n]"
> [2014-12-11 16:53:25,745] DEBUG - wire >> "Connection: keep-alive[\r][\n]"
> [2014-12-11 16:53:25,745] DEBUG - wire >> "X-Content-Type-Options:
> nosniff[\r][\n]"
> [2014-12-11 16:53:25,745] DEBUG - wire >> "X-XSS-Protection: 1[\r][\n]"
> [2014-12-11 16:53:25,746] DEBUG - wire >> "Set-Cookie:
> iamcsr=84dad3b5-e9c2-4dd8-ba99-03bea52480d2; Path=/; Secure[\r][\n]"
> [2014-12-11 16:53:25,746] DEBUG - wire >> "X-FRAME-OPTIONS:
> SAMEORIGIN[\r][\n]"
> [2014-12-11 16:53:25,746] DEBUG - wire >> "Strict-Transport-Security:
> max-age=15768000[\r][\n]"
> [2014-12-11 16:53:25,746] DEBUG - wire >> "[\r][\n]"
> [2014-12-11 16:53:25,746] DEBUG - wire >> "57[\r][\n]"
> [2014-12-11 16:53:25,746] DEBUG - wire >> "#[\n]"
> [2014-12-11 16:53:25,746] DEBUG - wire >> "#Thu Dec 11 03:23:25 PST
> 2014[\n]"
> [2014-12-11 16:53:25,746] DEBUG - wire >> "
> CAUSE=EXCEEDED_MAXIMUM_ALLOWED_AUTHTOKENS[\n]"
> [2014-12-11 16:53:25,746] DEBUG - 

Re: [Dev] What is the alternative for ServiceMetaData#isCAppArtifactSpecified()

2014-12-11 Thread Jeewantha Dharmaparakrama
On Thu, Dec 11, 2014 at 7:15 PM, Pubudu Dissanayake 
wrote:
>
> Hi Jeewantha
>
> It is not removed, *isCAppArtifact* is a newly added property to
> service-mgt component. It will be available once it is merged to
> carbon-deployment repo [1]
> If you are referring to this ESB integration [2] please comment out until
> that pull request is merged
>
> [1] https://github.com/wso2-dev/carbon-deployment/pull/57
> [2] https://github.com/wso2-dev/product-esb/pull/95
>

Yeah that's what I was referring to. I have already commented out the lines
which cause the issue [1]. Please let me know once your change is merged.

[1] https://github.com/wso2-dev/product-esb/pull/116

Thanks,
Jeewantha

>
> On Thu, Dec 11, 2014 at 6:30 PM, Jeewantha Dharmaparakrama <
> jeewan...@wso2.com> wrote:
>
>> Hi CarbonTeam,
>>
>> Looks like the method is removed from the new carbon-deployment module
>> [1]. What is the alternative for this ?
>>
>> [1]
>> https://github.com/wso2/carbon-deployment/blob/master/components/service-mgt/axis2-service-mgt/org.wso2.carbon.service.mgt/src/main/java/org/wso2/carbon/service/mgt/ServiceMetaData.java
>>
>> Thanks,
>> Jeewantha
>>
>> --
>> Jeewantha Dharmaparakrama
>> Software Engineer; WSO2, Inc.; http://wso2.com/
>> Phone : (+94) 778403757
>> Blog: http://jeewanthad.blogspot.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Pubudu Dissanayake*
>  Software Engineer
>
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Mob: + 94 775 503 304
>
> Blog: http://geekdetected.wordpress.com/
> Linkedin: *http://lk.linkedin.com/in/pubududissanayake*
> 
> Flickr : https://www.flickr.com/photos/pubudufx/
> Twitter: https://twitter.com/GeekInAction
>
>

-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.3.0 RC3

2014-12-11 Thread Afkham Azeez
Let's do another RC with only this change:
https://github.com/wso2/carbon4-kernel/pull/120

This is a critical non-intrusive change which adds support for Hazelcast
custom serializers which is essential in the case of replicating heavy
objects. WSO2 MB will be the first customer of this feature, but in case we
find replication related overhead in other areas, instead of patching, we
can write a custom serializer as an independent bundle and deploy it.

Azeez



On Wed, Dec 10, 2014 at 8:18 AM, Kishanthan Thangarajah  wrote:
>
> Hi Devs,
>
> This is the *3rd* release candidate of WSO2 Carbon Kernel 4.3.0.
>
> This release fixes the following issues :
> https://wso2.org/jira/issues/?filter=12088
>
> Please download, test and vote.
>
> *Binary distribution for Carbon, AS & ESB :*
> http://svn.wso2.org/repos/wso2/scratch/carbon/4.3.0-RC3/
>
> *Maven staging repository :*
> http://maven.wso2.org/nexus/content/repositories/orgwso2carbon-036/
>
> *The tag to be voted upon :*
> https://github.com/wso2/carbon4-kernel/releases/tag/4.3.0-RC3
>
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
> Thanks,
> Carbon Team.
>
> --
> *Kishanthan Thangarajah*
> Senior Software Engineer,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

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


Re: [Dev] Teamwork Connector-java.net.MalformedURLException

2014-12-11 Thread Malaka Silva
Hi Kesavan,

[1] only fixed this for status 301. But in your case it's 200 ok.

So the issue still remains. Pls add a jira for ESB

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

On Fri, Dec 12, 2014 at 10:42 AM, Kesavan Yogarajah 
wrote:
>
>
> Hi all,
> I am developing ESB connector for Teamwork API.I am getting
> java.net.MalformedURLException when I invoke the update Milestone
> operation.I am using ESB-4.9.0 M3 pack.
>
>
> Wire log for the request:
>
> [2014-12-12 10:40:24,935] DEBUG - wire >> "POST
> /services/tw_updateMilestone HTTP/1.1[\r][\n]"
> [2014-12-12 10:40:24,935] DEBUG - wire >> "Host:
> kesavan-thinkpad-t530:8280[\r][\n]"
> [2014-12-12 10:40:24,935] DEBUG - wire >> "Connection: keep-alive[\r][\n]"
> [2014-12-12 10:40:24,935] DEBUG - wire >> "Content-Length: 357[\r][\n]"
> [2014-12-12 10:40:24,935] DEBUG - wire >> "Cache-Control: no-cache[\r][\n]"
> [2014-12-12 10:40:24,935] DEBUG - wire >> "Origin:
> chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"
> [2014-12-12 10:40:24,935] DEBUG - wire >> "User-Agent: Mozilla/5.0 (X11;
> Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71
> Safari/537.36[\r][\n]"
> [2014-12-12 10:40:24,936] DEBUG - wire >> "Content-Type:
> application/json[\r][\n]"
> [2014-12-12 10:40:24,936] DEBUG - wire >> "Accept: */*[\r][\n]"
> [2014-12-12 10:40:24,936] DEBUG - wire >> "Accept-Encoding: gzip,
> deflate[\r][\n]"
> [2014-12-12 10:40:24,936] DEBUG - wire >> "Accept-Language:
> en-US,en;q=0.8[\r][\n]"
> [2014-12-12 10:40:24,936] DEBUG - wire >> "Cookie: CFID=113072806;
> CFTOKEN=ef035020859c7050-5CDE20A6-EA74-B6AF-528A24F79B2C2F1F;
> GOKEY-C=479C5AD927FBEC228F5BD7CC4D065537TS1418312443[\r][\n]"
> [2014-12-12 10:40:24,936] DEBUG - wire >> "[\r][\n]"
> [2014-12-12 10:40:24,936] DEBUG - wire >> "{[\n]"
> [2014-12-12 10:40:24,936] DEBUG - wire >> "  "apiUrl":"
> https://kesan.teamwork.com",[\n]";
> [2014-12-12 10:40:24,936] DEBUG - wire >> "  "clientId":"cod323ipad",[\n]"
> [2014-12-12 10:40:24,936] DEBUG - wire >> "  "milestoneId":"107817",[\n]"
> [2014-12-12 10:40:24,936] DEBUG - wire >> "  "title": "Test
> Milestone",[\n]"
> [2014-12-12 10:40:24,936] DEBUG - wire >> "  "description": "desc",[\n]"
> [2014-12-12 10:40:24,936] DEBUG - wire >> "  "deadline": "20141222",[\n]"
> [2014-12-12 10:40:24,936] DEBUG - wire >> "  "notify": "true",[\n]"
> [2014-12-12 10:40:24,936] DEBUG - wire >> "  "reminder": "false",[\n]"
> [2014-12-12 10:40:24,937] DEBUG - wire >> "  "private": "true",[\n]"
> [2014-12-12 10:40:24,937] DEBUG - wire >> "  "responsiblePartyIds":
> "81424",[\n]"
> [2014-12-12 10:40:24,937] DEBUG - wire >> "  "moveUpcomingMilestones":
> "true",[\n]"
> [2014-12-12 10:40:24,937] DEBUG - wire >> "
> "moveUpcomingMilestonesOffWeekends": "true"[\n]"
> [2014-12-12 10:40:24,937] DEBUG - wire >> "}"
> [2014-12-12 10:40:28,016] DEBUG - wire << "PUT
> https://kesan.teamwork.com/milestones/107817.json HTTP/1.0[\r][\n]"
> [2014-12-12 10:40:28,017] DEBUG - wire << "Accept-Language:
> en-US,en;q=0.8[\r][\n]"
> [2014-12-12 10:40:28,017] DEBUG - wire << "Cookie: CFID=113072806;
> CFTOKEN=ef035020859c7050-5CDE20A6-EA74-B6AF-528A24F79B2C2F1F;
> GOKEY-C=479C5AD927FBEC228F5BD7CC4D065537TS1418312443[\r][\n]"
> [2014-12-12 10:40:28,017] DEBUG - wire << "Authorization: Basic
> Y29kMzIzaXBhZA==[\r][\n]"
> [2014-12-12 10:40:28,017] DEBUG - wire << "Accept-Encoding: gzip,
> deflate[\r][\n]"
> [2014-12-12 10:40:28,018] DEBUG - wire << "Origin:
> chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"
> [2014-12-12 10:40:28,018] DEBUG - wire << "Content-Type:
> application/json[\r][\n]"
> [2014-12-12 10:40:28,018] DEBUG - wire << "Accept: */*[\r][\n]"
> [2014-12-12 10:40:28,018] DEBUG - wire << "Cache-Control: no-cache[\r][\n]"
> [2014-12-12 10:40:28,019] DEBUG - wire << "Content-Length: 489[\r][\n]"
> [2014-12-12 10:40:28,019] DEBUG - wire << "Host: kesan.teamwork.com:80
> [\r][\n]"
> [2014-12-12 10:40:28,019] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
> [2014-12-12 10:40:28,019] DEBUG - wire << "User-Agent:
> Synapse-PT-HttpComponents-NIO[\r][\n]"
> [2014-12-12 10:40:28,020] DEBUG - wire << "[\r][\n]"
> [2014-12-12 10:40:28,021] DEBUG - wire << "{[\n]"
> [2014-12-12 10:40:28,021] DEBUG - wire << ""milestone":
> {[\n]"
> [2014-12-12 10:40:28,021] DEBUG - wire << ""title":
> "Test Milestone",[\n]"
> [2014-12-12 10:40:28,021] DEBUG - wire << "
> "description": "desc",[\n]"
> [2014-12-12 10:40:28,021] DEBUG - wire << ""deadline":
> "20141222",[\n]"
> [2014-12-12 10:40:28,022] DEBUG - wire << ""notify":
> "true",[\n]"
> [2014-12-12 10:40:28,022] DEBUG - wire << ""reminder":
> "false",[\n]"
> [2014-12-12 10:40:28,022] DEBUG - wire << ""private":
> "true",[\n]"
> [2014-12-12 10:40:28,022] DEBUG - wire << "
> "responsible-party-ids": "81424"[\n]"
> [2014-12-12 10:40:28,023] DEBUG - wire << "},[\n]"
> [2014-12-12 10:40:28,023] DEB

Re: [Dev] Deploy Web App to Tomcat issue

2014-12-11 Thread Krishantha Samaraweera
Hi,

On Fri, Dec 12, 2014 at 9:50 AM, Vijitha Ekanayake 
wrote:
>
> Hi,
>
> Is there a way to set a connector to a TomcatServerManager instance which
> is provided by automation? since i need to enable ssl.
>

I'm afraid there is no way to set connector to TomcatServerManager.  Since
the test framework is released already we can't do any modification. Please
create a TA JIRA or RM to track this improvement.

Thanks,
Krishantha.


>
>
>
> On Thu, Dec 11, 2014 at 6:24 PM, Vijitha Ekanayake 
> wrote:
>>
>> Hi,
>>
>> Thanks, I'll try this and get back to you.
>>
>> On Thu, Dec 11, 2014 at 6:17 PM, Nuwan Wimalasekara 
>> wrote:
>>
>>> Hi
>>> Please refer the documentation[1] for how to deploy a web application on
>>> the tomcat server which can be started with test framework. You can follow
>>> sample test case from[2]
>>>
>>> [1]
>>> https://docs.wso2.com/display/TA430/Using+Embedded+Tomcat+Server+as+a+JAX-RS+Backend+for+REST+Testing
>>>
>>> [2]
>>> https://github.com/wso2-dev/product-esb/blob/master/modules/integration/tests-integration/tests-service/src/test/java/org/wso2/carbon/esb/jaxrs/rest/test/SoapToRestPeopleSampleTestCase.java
>>>
>>> Thanks,
>>> Nuwanw
>>>
>>> On Thu, Dec 11, 2014 at 6:05 PM, Irham Iqbal  wrote:
>>>
 Yes we have,

 This[1] test case is for deploy a web application in AS.

 Using this code[2] you can see how we start,stop and restart carbon
 servers.

 [1]
 https://github.com/wso2-dev/product-as/blob/master/modules/integration/tests-integration/src/test/java/org/wso2/appserver/integration/tests/webapp/mgt/WebApplicationDeploymentTestCase.java

 [2]
 https://github.com/wso2-dev/carbon-platform-integration/blob/master/test-automation-framework/org.wso2.carbon.automation.extensions/src/main/java/org/wso2/carbon/automation/extensions/servers/carbonserver/CarbonServerManager.java

 Thanks,


 On Thu, Dec 11, 2014 at 5:29 PM, Kasun Indrasiri 
 wrote:

> Do we have any test cases that we deploy web apps during integration
> test. Can you shed some light please.
>
> On Thu, Dec 11, 2014 at 1:20 PM, Irham Iqbal  wrote:
>
>> Hi Vijitha,
>>
>> Did you try this manually ?
>>
>> I mean deploy your web application to a tomcat manually.
>>
>> Thanks,
>> Iqbal
>>
>> On Thu, Dec 11, 2014 at 1:13 PM, Vijitha Ekanayake > > wrote:
>>
>>> Hi Malithi,
>>>
>>> Thanks for the response.
>>> the servlet-api jar is already inside WEB-INF/lib. as you said i
>>> was packaging the war adding dependency in provided scope. i tried
>>> packaging the war removing dependency provided scope. but still having 
>>> the
>>> same issue.
>>>
>>> On Thu, Dec 11, 2014 at 10:37 AM, Malithi Edirisinghe <
>>> malit...@wso2.com> wrote:
>>>
 Hi Vijitha,

 Can you make sure whether you have the servlet-api jar inside
 WEB-INF/lib or may be you are packaging the war adding this dependency 
 in
 provided scope.

 Thanks,
 Malithi.

 On Thu, Dec 11, 2014 at 10:23 AM, Vijitha Ekanayake <
 vijit...@wso2.com> wrote:

> Hi,
>
> I am working on writing integration testing for ESB. Here I need to 
> start a tomcat instance and deploy web app to tomcat dynamically.When 
> I start and deploy the web app it gives following warning and 
> application failed to deploy. Same war file getting deployed 
> successfully in external tomcat Web Server.
>
> codes which have used to create tomcat instance and deploy webapp
>
> private final Tomcat tomcat = new Tomcat();
>
> // Configure the standard host
>   StandardHost stdHost = (StandardHost) tomcat.getHost();
>   stdHost.setAutoDeploy(true);
>   stdHost.setDeployOnStartup(true);
>   stdHost.setUnpackWARs(true);
>   tomcat.setHost(stdHost);
>
>   //deploy Service
>   tomcat.addWebapp(tomcat.getHost(), *webAppUrl, 
> webAppPath*);
>
>*tomcat.start();*
>
>
> INFO: No global web.xml found
> Dec 11, 2014 10:08:50 AM
> org.apache.catalina.core.ApplicationContext log
> INFO: Marking servlet jsp as unavailable
> Dec 11, 2014 10:08:50 AM org.apache.catalina.core.StandardContext
> loadOnStartup
> SEVERE: Servlet /service threw load() exception
> java.lang.ClassNotFoundException:
> org.apache.jasper.servlet.JspServlet
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.

[Dev] Teamwork Connector-java.net.MalformedURLException

2014-12-11 Thread Kesavan Yogarajah
Hi all,
I am developing ESB connector for Teamwork API.I am getting
java.net.MalformedURLException when I invoke the update Milestone
operation.I am using ESB-4.9.0 M3 pack.


Wire log for the request:

[2014-12-12 10:40:24,935] DEBUG - wire >> "POST
/services/tw_updateMilestone HTTP/1.1[\r][\n]"
[2014-12-12 10:40:24,935] DEBUG - wire >> "Host:
kesavan-thinkpad-t530:8280[\r][\n]"
[2014-12-12 10:40:24,935] DEBUG - wire >> "Connection: keep-alive[\r][\n]"
[2014-12-12 10:40:24,935] DEBUG - wire >> "Content-Length: 357[\r][\n]"
[2014-12-12 10:40:24,935] DEBUG - wire >> "Cache-Control: no-cache[\r][\n]"
[2014-12-12 10:40:24,935] DEBUG - wire >> "Origin:
chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"
[2014-12-12 10:40:24,935] DEBUG - wire >> "User-Agent: Mozilla/5.0 (X11;
Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71
Safari/537.36[\r][\n]"
[2014-12-12 10:40:24,936] DEBUG - wire >> "Content-Type:
application/json[\r][\n]"
[2014-12-12 10:40:24,936] DEBUG - wire >> "Accept: */*[\r][\n]"
[2014-12-12 10:40:24,936] DEBUG - wire >> "Accept-Encoding: gzip,
deflate[\r][\n]"
[2014-12-12 10:40:24,936] DEBUG - wire >> "Accept-Language:
en-US,en;q=0.8[\r][\n]"
[2014-12-12 10:40:24,936] DEBUG - wire >> "Cookie: CFID=113072806;
CFTOKEN=ef035020859c7050-5CDE20A6-EA74-B6AF-528A24F79B2C2F1F;
GOKEY-C=479C5AD927FBEC228F5BD7CC4D065537TS1418312443[\r][\n]"
[2014-12-12 10:40:24,936] DEBUG - wire >> "[\r][\n]"
[2014-12-12 10:40:24,936] DEBUG - wire >> "{[\n]"
[2014-12-12 10:40:24,936] DEBUG - wire >> "  "apiUrl":"
https://kesan.teamwork.com",[\n]";
[2014-12-12 10:40:24,936] DEBUG - wire >> "  "clientId":"cod323ipad",[\n]"
[2014-12-12 10:40:24,936] DEBUG - wire >> "  "milestoneId":"107817",[\n]"
[2014-12-12 10:40:24,936] DEBUG - wire >> "  "title": "Test Milestone",[\n]"
[2014-12-12 10:40:24,936] DEBUG - wire >> "  "description": "desc",[\n]"
[2014-12-12 10:40:24,936] DEBUG - wire >> "  "deadline": "20141222",[\n]"
[2014-12-12 10:40:24,936] DEBUG - wire >> "  "notify": "true",[\n]"
[2014-12-12 10:40:24,936] DEBUG - wire >> "  "reminder": "false",[\n]"
[2014-12-12 10:40:24,937] DEBUG - wire >> "  "private": "true",[\n]"
[2014-12-12 10:40:24,937] DEBUG - wire >> "  "responsiblePartyIds":
"81424",[\n]"
[2014-12-12 10:40:24,937] DEBUG - wire >> "  "moveUpcomingMilestones":
"true",[\n]"
[2014-12-12 10:40:24,937] DEBUG - wire >> "
"moveUpcomingMilestonesOffWeekends": "true"[\n]"
[2014-12-12 10:40:24,937] DEBUG - wire >> "}"
[2014-12-12 10:40:28,016] DEBUG - wire << "PUT
https://kesan.teamwork.com/milestones/107817.json HTTP/1.0[\r][\n]"
[2014-12-12 10:40:28,017] DEBUG - wire << "Accept-Language:
en-US,en;q=0.8[\r][\n]"
[2014-12-12 10:40:28,017] DEBUG - wire << "Cookie: CFID=113072806;
CFTOKEN=ef035020859c7050-5CDE20A6-EA74-B6AF-528A24F79B2C2F1F;
GOKEY-C=479C5AD927FBEC228F5BD7CC4D065537TS1418312443[\r][\n]"
[2014-12-12 10:40:28,017] DEBUG - wire << "Authorization: Basic
Y29kMzIzaXBhZA==[\r][\n]"
[2014-12-12 10:40:28,017] DEBUG - wire << "Accept-Encoding: gzip,
deflate[\r][\n]"
[2014-12-12 10:40:28,018] DEBUG - wire << "Origin:
chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"
[2014-12-12 10:40:28,018] DEBUG - wire << "Content-Type:
application/json[\r][\n]"
[2014-12-12 10:40:28,018] DEBUG - wire << "Accept: */*[\r][\n]"
[2014-12-12 10:40:28,018] DEBUG - wire << "Cache-Control: no-cache[\r][\n]"
[2014-12-12 10:40:28,019] DEBUG - wire << "Content-Length: 489[\r][\n]"
[2014-12-12 10:40:28,019] DEBUG - wire << "Host: kesan.teamwork.com:80
[\r][\n]"
[2014-12-12 10:40:28,019] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
[2014-12-12 10:40:28,019] DEBUG - wire << "User-Agent:
Synapse-PT-HttpComponents-NIO[\r][\n]"
[2014-12-12 10:40:28,020] DEBUG - wire << "[\r][\n]"
[2014-12-12 10:40:28,021] DEBUG - wire << "{[\n]"
[2014-12-12 10:40:28,021] DEBUG - wire << ""milestone":
{[\n]"
[2014-12-12 10:40:28,021] DEBUG - wire << ""title":
"Test Milestone",[\n]"
[2014-12-12 10:40:28,021] DEBUG - wire << "
"description": "desc",[\n]"
[2014-12-12 10:40:28,021] DEBUG - wire << ""deadline":
"20141222",[\n]"
[2014-12-12 10:40:28,022] DEBUG - wire << ""notify":
"true",[\n]"
[2014-12-12 10:40:28,022] DEBUG - wire << ""reminder":
"false",[\n]"
[2014-12-12 10:40:28,022] DEBUG - wire << ""private":
"true",[\n]"
[2014-12-12 10:40:28,022] DEBUG - wire << "
"responsible-party-ids": "81424"[\n]"
[2014-12-12 10:40:28,023] DEBUG - wire << "},[\n]"
[2014-12-12 10:40:28,023] DEBUG - wire << "
"move-upcoming-milestones":"true",[\n]"
[2014-12-12 10:40:28,023] DEBUG - wire << "
"move-upcoming-milestones-off-weekends": "true"[\n]"
[2014-12-12 10:40:28,023] DEBUG - wire << "}"
[2014-12-12 10:40:28,579] DEBUG - wire >> "HTTP/1.1 200 OK[\r][\n]"
[2014-12-12 10:40:28,580] DEBUG - wire >> "Access-Control-Allow-Headers:
Authorization[\r][\n]"
[2014-12-12 10:40:28,580] DEBUG - wire >> "Acces

Re: [Dev] Add the attachment to parent sObject in Salesforce

2014-12-11 Thread Kathees Rajendram
Thanks Malaka, I will try with this scenario.



Thanks,
Kathees

On Fri, Dec 12, 2014 at 12:26 AM, Malaka Silva  wrote:
>
> Hi Kathees,
>
> Every object is salesforce is treated as a sobject. (Including Attachment)
>
> Fields are listed in [1]. You need to create and send a payload similar to
> [2]
>
> Since there is already connector with create method, Just debug and check
> the request send to api.
>
> [1]
> http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_attachment.htm#topic-title
>
> [2]
>
> http://schemas.xmlsoap.org/soap/envelope/
> "
> xmlns:urn="urn:partner.soap.sforce.com">
> 
> 
>  xmlns:sfdc1="urn:sobject.partner.soap.sforce.com">
> attachment
> base64_content
> xxx
>  
> 
>
> Best Regards,
> Malaka
>
> On Thu, Dec 11, 2014 at 6:21 PM, Kathees Rajendram 
> wrote:
>
>> Hi,
>>
>> I need to add the base64 encoding attachment to parent sObject in
>> Salesforce. I used the following payload. Could you please suggest a way?
>> We use the Salesforce partner WSDL.
>>
>> 
>> 
>> http://schemas.xmlsoap.org/soap/envelope/";
>> xmlns:urn="urn:partner.soap.sforce.com">
>> 
>> 
>> $1
>> 
>> 
>> 
>> 
>> 
>>
>> This is the base64 encoding attachment
>>
>> try {
>> Axis2MessageContext axisMsgContext = (Axis2MessageContext)
>> synCtx;
>> org.apache.axis2.context.MessageContext msgContext =
>> axisMsgContext
>> .getAxis2MessageContext();
>> InputStream message = msgContext.attachments
>> .getSOAPPartInputStream();
>> byte[] bytes = IOUtils.toByteArray(message);
>>
>> String encoded = Base64.encode(bytes);
>>
>> synCtx.setProperty("attachmentObject", encoded);
>>
>> }
>>
>> Thanks,
>> Kathees
>>
>> --
>> Kathees
>> Software Engineer,
>> email: kath...@wso2.com
>> mobile: +94772596173
>>
>> ___
>> 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.
>


-- 
Kathees
Software Engineer,
email: kath...@wso2.com
mobile: +94772596173
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] API Manager OSGI services unsatisfied on DSS

2014-12-11 Thread Madusanka Premaratne
Hi All/Kishanthan,
I tried to debug this in OSGI level and some of the components saying "No
unresolved constraints" and some pop out "Missing optionally imported
packages".
When I try diag 19, I can see the following.

osgi> diag 19

reference:file:../plugins/bsf-all_3.0.0.wso2v2.jar [19]

  Direct constraints which are unresolved:

Missing optionally imported package com.judoscript_0.0.0.

Missing optionally imported package com.judoscript.bio_0.0.0.

Missing optionally imported package com.judoscript.parser_0.0.0.

Missing optionally imported package com.judoscript.util_0.0.0.

Missing optionally imported package com.rc.retroweaver.runtime_0.0.0.

Missing optionally imported package de.odysseus.el.util_0.0.0.

Missing optionally imported package freemarker.template_0.0.0.

Missing optionally imported package groovy.lang_0.0.0.

Missing optionally imported package javax.tools_0.0.0.

Missing optionally imported package jfun.jaskell_0.0.0.

Missing optionally imported package jfun.jaskell.ast_0.0.0.

Missing optionally imported package jfun.jaskell.function_0.0.0.

Missing optionally imported package jfun.parsec_0.0.0.

Missing optionally imported package jfun.util_0.0.0.

Missing optionally imported package ognl_0.0.0.

Missing optionally imported package org.apache.commons.jelly_0.0.0.

Missing optionally imported package
org.apache.commons.jelly.expression_0.0.0.

Missing optionally imported package org.apache.commons.jelly.impl_0.0.0.

Missing optionally imported package
org.apache.commons.jelly.parser_0.0.0.

Missing optionally imported package
org.apache.commons.jelly.tags.core_0.0.0.

Missing optionally imported package org.apache.commons.jexl_0.0.0.

Missing optionally imported package org.codehaus.groovy.control_0.0.0.

Missing optionally imported package org.codehaus.groovy.runtime_0.0.0.

Missing optionally imported package org.codehaus.groovy.syntax_0.0.0.

Missing optionally imported package org.jawk_0.0.0.

Missing optionally imported package org.jruby_0.0.0.

Missing optionally imported package org.jruby.ast_0.0.0.

Missing optionally imported package org.jruby.exceptions_0.0.0.

Missing optionally imported package org.jruby.internal.runtime_0.0.0.

Missing optionally imported package org.jruby.javasupport_0.0.0.

Missing optionally imported package org.jruby.runtime_0.0.0.

Missing optionally imported package org.jruby.runtime.builtin_0.0.0.

Missing optionally imported package org.jruby.runtime.load_0.0.0.

Missing optionally imported package org.jruby.util_0.0.0.

Missing optionally imported package org.jruby.util.io_0.0.0.

Missing optionally imported package org.lsmp.djep.groupJep_0.0.0.

Missing optionally imported package org.lsmp.djep.groupJep.groups_0.0.0.

Missing optionally imported package org.lsmp.djep.vectorJep_0.0.0.

Missing optionally imported package org.nfunk.jep_0.0.0.

Missing optionally imported package org.nfunk.jep.function_0.0.0.

Missing optionally imported package org.pnuts.lang_0.0.0.

Missing optionally imported package org.pnuts.util_0.0.0.

Missing optionally imported package org.python.core_0.0.0.

Missing optionally imported package pnuts.compiler_0.0.0.

Missing optionally imported package pnuts.lang_0.0.0.

Missing optionally imported package sisc.data_0.0.0.

Missing optionally imported package sisc.interpreter_0.0.0.

Missing optionally imported package sisc.modules.s2j_0.0.0.

Missing optionally imported package sisc.nativefun_0.0.0.

Missing optionally imported package sisc.reader_0.0.0.

Missing optionally imported package sisc.ser_0.0.0.

Missing optionally imported package tcl.lang_0.0.0.

What can I do to resolve this?
Thanks,

On Mon, Dec 8, 2014 at 5:07 PM, Madusanka Premaratne 
wrote:
>
> Hi All,
> I recently installed APIM 1.7.0 on top of Data Services Server. After the
> installation I check the "apimgt" OSGI bundles (using ss apimgt) and
> those are in "ACTIVE" state. But when I list the services  using *list*
> command, I can see the services are unsatisfied as below.
>
> 19 Unsatisfied org.wso2.apimgt.core.services org.wso2.carbon.apimgt.core(
> bid=189)
>
> 20 Unsatisfied org.wso2.carbon.apimgt.handlers org.wso2.carbon.apimgt.
> gateway(bid=190)
>
> 21 Unsatisfied org.wso2.apimgt.hostobjects org.wso2.carbon.apimgt.
> hostobjects(bid=192)
>
> 22 Unsatisfied org.wso2.apimgt.impl.services org.wso2.carbon.apimgt.impl(
> bid=193)
>
> 23 Unsatisfied api.keymgt.component org.wso2.carbon.apimgt.keymgt(bid=194)
>
> 24 Unsatisfied org.wso2.apimgt.usage.client
> org.wso2.carbon.apimgt.usage.client(bid=197)
>
> 25 Unsatisfied api.mgt.usage.component
> org.wso2.carbon.apimgt.usage.publisher(bid=198)
>
> When I check the component using *osgi -c bundle_id*, it gives me the
> following output
>
> osgi> ls -c 189
>
> Components in bundle org.wso2.carb

Re: [Dev] JWT Signing with Nimbus

2014-12-11 Thread Gayashan Amarasinghe
Hi all,

If it's for the latest IS release, shall we use the latest nimbus
version(3.4 instead of 2.26.1) for this?

Thanks.
/Gayashan

On Fri, Dec 12, 2014 at 12:43 AM, Gayan Gunawardana  wrote:
>
> Hi All,
>
> Thanks all for feedback. We can plan identity components for next Identity
> Server release with orbit bundle rather than embedding nimbuz jar.
>
> Thanks,
> Gayan
>
>
> On Fri, Dec 12, 2014 at 12:23 AM, Udara Liyanage  wrote:
>
>> Hi,
>>
>> As I remember nimbuz jar is embedded while building the identity
>> component.
>> +1 using orbit bundle rather than embedding nimbuz jar.
>>
>>
>>
>> Touched, not typed. Erroneous words are a feature, not a typo.
>> On Dec 12, 2014 12:20 AM, "Danushka Fernando"  wrote:
>>
>>> Hi
>>> +1 to use nimbus.
>>> We have created a orbit bundle for nimbus. Please use that if you are
>>> using nimbus.
>>> @Gayan : I think we might need to change those identity components also
>>> to use the orbit bundle.
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Software Engineer
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729
>>>
>>> On Fri, Dec 12, 2014 at 12:09 AM, Susinda Perera 
>>> wrote:
>>>
 Hi Gayan
 FYI
 I was able to validate the APIM JWT signature with java.security.*
 classes.

 Thanks

 On Thu, Dec 11, 2014 at 11:48 PM, Gayan Gunawardana 
 wrote:

> Hi All,
>
> In JWT token generator [1] use low level JWT building and signing
> process which makes bit difficult to validate signature in client side. 
> But
> in [2] we use nimbus [3] to generate and sign OpenID connect ID token.
> Shall we change JWT generator in [1] to use nimbus library ?
> Nimbus provides very comprehensive option to generate JWT and validate
> signature in client side.
>
> [1]
> https://github.com/wso2-dev/carbon-identity/blob/master/components/identity/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/authcontext/JWTTokenGenerator.java
>
> [2]
> https://github.com/wso2-dev/carbon-identity/blob/master/components/identity/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/openidconnect/DefaultIDTokenBuilder.java
>
> [3]http://connect2id.com/products/nimbus-jose-jwt
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>



 --
 *Susinda Perera*
 Software Engineer
 Mobile:(+94)716049075

 WSO2 Inc. http://wso2.com/
 Tel : 94 11 214 5345 Fax :94 11 2145300


 ___
 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 mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

-- 
*Gayashan Amarasinghe*
Software Engineer | Platform TG
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

Mobile : +94718314517
Blog : gayashan-a.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Disabled Test Packages in ESB 4.9.0-SNAPSHOT Integration

2014-12-11 Thread Kasun Indrasiri
We have to rewrite all the QoS related tests as we changed our QoS enabling
approach with the 4.3 kernel.

On Tue, Dec 9, 2014 at 1:13 PM, Jeewantha Dharmaparakrama <
jeewan...@wso2.com> wrote:
>
>
>
> On Tue, Dec 9, 2014 at 12:46 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Hi ESB Team,
>>
>> Following test packages are disabled in ESB integration tests. What is
>> the reason for disabling tests ?
>>
> This was because of the test failures due to carbon changes. We are
> working on to fix them ATM.
>
> Jeewantha
>
>>
>> Don't we need to introduce set of new security tests due to QoS changes.
>>
>> *tests-mediator-1 *
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> *tests-mediator-2*
>> 
>> 
>> 
>>
>> *tests-service*
>> 
>> 
>> 
>>
>> Thanks,
>> Krishantha.
>>
>> --
>> Krishantha Samaraweera
>> Senior Technical Lead - Test Automation
>> Mobile: +94 77 7759918
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
>
> --
> Jeewantha Dharmaparakrama
> Software Engineer; WSO2, Inc.; http://wso2.com/
> Phone : (+94) 778403757
> Blog: http://jeewanthad.blogspot.com/
>


-- 
Kasun Indrasiri
Software Architect
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

cell: +94 77 556 5206
Blog : http://kasunpanorama.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Deploy Web App to Tomcat issue

2014-12-11 Thread Kasun Indrasiri
Guys, we need this today before 4.9 M4 is released.

On Fri, Dec 12, 2014 at 9:50 AM, Vijitha Ekanayake 
wrote:
>
> Hi,
>
> Is there a way to set a connector to a TomcatServerManager instance which
> is provided by automation? since i need to enable ssl.
>
>
>
>
> On Thu, Dec 11, 2014 at 6:24 PM, Vijitha Ekanayake 
> wrote:
>>
>> Hi,
>>
>> Thanks, I'll try this and get back to you.
>>
>> On Thu, Dec 11, 2014 at 6:17 PM, Nuwan Wimalasekara 
>> wrote:
>>
>>> Hi
>>> Please refer the documentation[1] for how to deploy a web application on
>>> the tomcat server which can be started with test framework. You can follow
>>> sample test case from[2]
>>>
>>> [1]
>>> https://docs.wso2.com/display/TA430/Using+Embedded+Tomcat+Server+as+a+JAX-RS+Backend+for+REST+Testing
>>>
>>> [2]
>>> https://github.com/wso2-dev/product-esb/blob/master/modules/integration/tests-integration/tests-service/src/test/java/org/wso2/carbon/esb/jaxrs/rest/test/SoapToRestPeopleSampleTestCase.java
>>>
>>> Thanks,
>>> Nuwanw
>>>
>>> On Thu, Dec 11, 2014 at 6:05 PM, Irham Iqbal  wrote:
>>>
 Yes we have,

 This[1] test case is for deploy a web application in AS.

 Using this code[2] you can see how we start,stop and restart carbon
 servers.

 [1]
 https://github.com/wso2-dev/product-as/blob/master/modules/integration/tests-integration/src/test/java/org/wso2/appserver/integration/tests/webapp/mgt/WebApplicationDeploymentTestCase.java

 [2]
 https://github.com/wso2-dev/carbon-platform-integration/blob/master/test-automation-framework/org.wso2.carbon.automation.extensions/src/main/java/org/wso2/carbon/automation/extensions/servers/carbonserver/CarbonServerManager.java

 Thanks,


 On Thu, Dec 11, 2014 at 5:29 PM, Kasun Indrasiri 
 wrote:

> Do we have any test cases that we deploy web apps during integration
> test. Can you shed some light please.
>
> On Thu, Dec 11, 2014 at 1:20 PM, Irham Iqbal  wrote:
>
>> Hi Vijitha,
>>
>> Did you try this manually ?
>>
>> I mean deploy your web application to a tomcat manually.
>>
>> Thanks,
>> Iqbal
>>
>> On Thu, Dec 11, 2014 at 1:13 PM, Vijitha Ekanayake > > wrote:
>>
>>> Hi Malithi,
>>>
>>> Thanks for the response.
>>> the servlet-api jar is already inside WEB-INF/lib. as you said i
>>> was packaging the war adding dependency in provided scope. i tried
>>> packaging the war removing dependency provided scope. but still having 
>>> the
>>> same issue.
>>>
>>> On Thu, Dec 11, 2014 at 10:37 AM, Malithi Edirisinghe <
>>> malit...@wso2.com> wrote:
>>>
 Hi Vijitha,

 Can you make sure whether you have the servlet-api jar inside
 WEB-INF/lib or may be you are packaging the war adding this dependency 
 in
 provided scope.

 Thanks,
 Malithi.

 On Thu, Dec 11, 2014 at 10:23 AM, Vijitha Ekanayake <
 vijit...@wso2.com> wrote:

> Hi,
>
> I am working on writing integration testing for ESB. Here I need to 
> start a tomcat instance and deploy web app to tomcat dynamically.When 
> I start and deploy the web app it gives following warning and 
> application failed to deploy. Same war file getting deployed 
> successfully in external tomcat Web Server.
>
> codes which have used to create tomcat instance and deploy webapp
>
> private final Tomcat tomcat = new Tomcat();
>
> // Configure the standard host
>   StandardHost stdHost = (StandardHost) tomcat.getHost();
>   stdHost.setAutoDeploy(true);
>   stdHost.setDeployOnStartup(true);
>   stdHost.setUnpackWARs(true);
>   tomcat.setHost(stdHost);
>
>   //deploy Service
>   tomcat.addWebapp(tomcat.getHost(), *webAppUrl, 
> webAppPath*);
>
>*tomcat.start();*
>
>
> INFO: No global web.xml found
> Dec 11, 2014 10:08:50 AM
> org.apache.catalina.core.ApplicationContext log
> INFO: Marking servlet jsp as unavailable
> Dec 11, 2014 10:08:50 AM org.apache.catalina.core.StandardContext
> loadOnStartup
> SEVERE: Servlet /service threw load() exception
> java.lang.ClassNotFoundException:
> org.apache.jasper.servlet.JspServlet
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
> at
> org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
> at
> org.apache.catalina.core.Defa

Re: [Dev] Deploy Web App to Tomcat issue

2014-12-11 Thread Vijitha Ekanayake
Hi,

Is there a way to set a connector to a TomcatServerManager instance which
is provided by automation? since i need to enable ssl.




On Thu, Dec 11, 2014 at 6:24 PM, Vijitha Ekanayake 
wrote:
>
> Hi,
>
> Thanks, I'll try this and get back to you.
>
> On Thu, Dec 11, 2014 at 6:17 PM, Nuwan Wimalasekara 
> wrote:
>
>> Hi
>> Please refer the documentation[1] for how to deploy a web application on
>> the tomcat server which can be started with test framework. You can follow
>> sample test case from[2]
>>
>> [1]
>> https://docs.wso2.com/display/TA430/Using+Embedded+Tomcat+Server+as+a+JAX-RS+Backend+for+REST+Testing
>>
>> [2]
>> https://github.com/wso2-dev/product-esb/blob/master/modules/integration/tests-integration/tests-service/src/test/java/org/wso2/carbon/esb/jaxrs/rest/test/SoapToRestPeopleSampleTestCase.java
>>
>> Thanks,
>> Nuwanw
>>
>> On Thu, Dec 11, 2014 at 6:05 PM, Irham Iqbal  wrote:
>>
>>> Yes we have,
>>>
>>> This[1] test case is for deploy a web application in AS.
>>>
>>> Using this code[2] you can see how we start,stop and restart carbon
>>> servers.
>>>
>>> [1]
>>> https://github.com/wso2-dev/product-as/blob/master/modules/integration/tests-integration/src/test/java/org/wso2/appserver/integration/tests/webapp/mgt/WebApplicationDeploymentTestCase.java
>>>
>>> [2]
>>> https://github.com/wso2-dev/carbon-platform-integration/blob/master/test-automation-framework/org.wso2.carbon.automation.extensions/src/main/java/org/wso2/carbon/automation/extensions/servers/carbonserver/CarbonServerManager.java
>>>
>>> Thanks,
>>>
>>>
>>> On Thu, Dec 11, 2014 at 5:29 PM, Kasun Indrasiri  wrote:
>>>
 Do we have any test cases that we deploy web apps during integration
 test. Can you shed some light please.

 On Thu, Dec 11, 2014 at 1:20 PM, Irham Iqbal  wrote:

> Hi Vijitha,
>
> Did you try this manually ?
>
> I mean deploy your web application to a tomcat manually.
>
> Thanks,
> Iqbal
>
> On Thu, Dec 11, 2014 at 1:13 PM, Vijitha Ekanayake 
> wrote:
>
>> Hi Malithi,
>>
>> Thanks for the response.
>> the servlet-api jar is already inside WEB-INF/lib. as you said i was
>> packaging the war adding dependency in provided scope. i tried packaging
>> the war removing dependency provided scope. but still having the same 
>> issue.
>>
>>
>> On Thu, Dec 11, 2014 at 10:37 AM, Malithi Edirisinghe <
>> malit...@wso2.com> wrote:
>>
>>> Hi Vijitha,
>>>
>>> Can you make sure whether you have the servlet-api jar inside
>>> WEB-INF/lib or may be you are packaging the war adding this dependency 
>>> in
>>> provided scope.
>>>
>>> Thanks,
>>> Malithi.
>>>
>>> On Thu, Dec 11, 2014 at 10:23 AM, Vijitha Ekanayake <
>>> vijit...@wso2.com> wrote:
>>>
 Hi,

 I am working on writing integration testing for ESB. Here I need to 
 start a tomcat instance and deploy web app to tomcat dynamically.When 
 I start and deploy the web app it gives following warning and 
 application failed to deploy. Same war file getting deployed 
 successfully in external tomcat Web Server.

 codes which have used to create tomcat instance and deploy webapp

 private final Tomcat tomcat = new Tomcat();

 // Configure the standard host
StandardHost stdHost = (StandardHost) tomcat.getHost();
stdHost.setAutoDeploy(true);
stdHost.setDeployOnStartup(true);
stdHost.setUnpackWARs(true);
tomcat.setHost(stdHost);

//deploy Service
tomcat.addWebapp(tomcat.getHost(), *webAppUrl, 
 webAppPath*);

*tomcat.start();*


 INFO: No global web.xml found
 Dec 11, 2014 10:08:50 AM
 org.apache.catalina.core.ApplicationContext log
 INFO: Marking servlet jsp as unavailable
 Dec 11, 2014 10:08:50 AM org.apache.catalina.core.StandardContext
 loadOnStartup
 SEVERE: Servlet /service threw load() exception
 java.lang.ClassNotFoundException:
 org.apache.jasper.servlet.JspServlet
 at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
 at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
 at
 org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
 at
 org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
 at
 org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)
 at
 org.apache.catalina.core.StandardWrapper.l

Re: [Dev] Deploy Web App to Tomcat issue

2014-12-11 Thread Kasun Indrasiri
Did you manage to resolve this?

On Thu, Dec 11, 2014 at 6:24 PM, Vijitha Ekanayake 
wrote:
>
> Hi,
>
> Thanks, I'll try this and get back to you.
>
> On Thu, Dec 11, 2014 at 6:17 PM, Nuwan Wimalasekara 
> wrote:
>
>> Hi
>> Please refer the documentation[1] for how to deploy a web application on
>> the tomcat server which can be started with test framework. You can follow
>> sample test case from[2]
>>
>> [1]
>> https://docs.wso2.com/display/TA430/Using+Embedded+Tomcat+Server+as+a+JAX-RS+Backend+for+REST+Testing
>>
>> [2]
>> https://github.com/wso2-dev/product-esb/blob/master/modules/integration/tests-integration/tests-service/src/test/java/org/wso2/carbon/esb/jaxrs/rest/test/SoapToRestPeopleSampleTestCase.java
>>
>> Thanks,
>> Nuwanw
>>
>> On Thu, Dec 11, 2014 at 6:05 PM, Irham Iqbal  wrote:
>>
>>> Yes we have,
>>>
>>> This[1] test case is for deploy a web application in AS.
>>>
>>> Using this code[2] you can see how we start,stop and restart carbon
>>> servers.
>>>
>>> [1]
>>> https://github.com/wso2-dev/product-as/blob/master/modules/integration/tests-integration/src/test/java/org/wso2/appserver/integration/tests/webapp/mgt/WebApplicationDeploymentTestCase.java
>>>
>>> [2]
>>> https://github.com/wso2-dev/carbon-platform-integration/blob/master/test-automation-framework/org.wso2.carbon.automation.extensions/src/main/java/org/wso2/carbon/automation/extensions/servers/carbonserver/CarbonServerManager.java
>>>
>>> Thanks,
>>>
>>>
>>> On Thu, Dec 11, 2014 at 5:29 PM, Kasun Indrasiri  wrote:
>>>
 Do we have any test cases that we deploy web apps during integration
 test. Can you shed some light please.

 On Thu, Dec 11, 2014 at 1:20 PM, Irham Iqbal  wrote:

> Hi Vijitha,
>
> Did you try this manually ?
>
> I mean deploy your web application to a tomcat manually.
>
> Thanks,
> Iqbal
>
> On Thu, Dec 11, 2014 at 1:13 PM, Vijitha Ekanayake 
> wrote:
>
>> Hi Malithi,
>>
>> Thanks for the response.
>> the servlet-api jar is already inside WEB-INF/lib. as you said i was
>> packaging the war adding dependency in provided scope. i tried packaging
>> the war removing dependency provided scope. but still having the same 
>> issue.
>>
>>
>> On Thu, Dec 11, 2014 at 10:37 AM, Malithi Edirisinghe <
>> malit...@wso2.com> wrote:
>>
>>> Hi Vijitha,
>>>
>>> Can you make sure whether you have the servlet-api jar inside
>>> WEB-INF/lib or may be you are packaging the war adding this dependency 
>>> in
>>> provided scope.
>>>
>>> Thanks,
>>> Malithi.
>>>
>>> On Thu, Dec 11, 2014 at 10:23 AM, Vijitha Ekanayake <
>>> vijit...@wso2.com> wrote:
>>>
 Hi,

 I am working on writing integration testing for ESB. Here I need to 
 start a tomcat instance and deploy web app to tomcat dynamically.When 
 I start and deploy the web app it gives following warning and 
 application failed to deploy. Same war file getting deployed 
 successfully in external tomcat Web Server.

 codes which have used to create tomcat instance and deploy webapp

 private final Tomcat tomcat = new Tomcat();

 // Configure the standard host
StandardHost stdHost = (StandardHost) tomcat.getHost();
stdHost.setAutoDeploy(true);
stdHost.setDeployOnStartup(true);
stdHost.setUnpackWARs(true);
tomcat.setHost(stdHost);

//deploy Service
tomcat.addWebapp(tomcat.getHost(), *webAppUrl, 
 webAppPath*);

*tomcat.start();*


 INFO: No global web.xml found
 Dec 11, 2014 10:08:50 AM
 org.apache.catalina.core.ApplicationContext log
 INFO: Marking servlet jsp as unavailable
 Dec 11, 2014 10:08:50 AM org.apache.catalina.core.StandardContext
 loadOnStartup
 SEVERE: Servlet /service threw load() exception
 java.lang.ClassNotFoundException:
 org.apache.jasper.servlet.JspServlet
 at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
 at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
 at
 org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
 at
 org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
 at
 org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)
 at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1137)
 at
 org.apache.catalina.core.StandardWrapper.load(

Re: [Dev] Getting an error 505 Http Version Not Supported

2014-12-11 Thread Vanjikumaran Sivajothy
+1

On Friday, December 12, 2014, Malaka Silva  wrote:

> We are good since we are only hosting those connectors with 4.9.0
>
> On Thu, Dec 11, 2014 at 5:50 PM, Vanjikumaran Sivajothy  > wrote:
>>
>> Hi,
>>
>> I have tested your use case[1] with 4.9.0 M3 pack with url encoding and
>> it worked. This is not working in 4.8.1 due to a bug [2] in ESB on handling
>> 201 response with payload.
>>
>>
>> You can find the M3 pack in [2]
>>
>>
>> Best Regards,
>> Vanji
>>
>> [1]
>> http://ws.apache.org/ns/synapse"; name="strip"
>> context="/strip">
>>
>>   
>>  > type="STRING">
>>  > action="remove">
>>  
>> 
>>https://invoice.zoho.com/api/v3/customerpayments?authtoken=c1f8014366dd6ffd2691f9671f70de50&JSONString={'customer_id':'57153200042068
>> ','date':'2014-12-18','description':'*hai%20hello'*
>> ,'amount':'200.00'}">
>> 
>>  
>>  
>>   
>>
>> 
>>
>>
>> [2] https://wso2.org/jira/browse/ESBJAVA-3132
>>
>> [3]
>> http://svn.wso2.org/repos/wso2/people/malaka/ESB/ESB4.9.0/M3/wso2esb-4.9.0-SNAPSHOT.zip
>>
>> -- Forwarded message --
>> From: Sriashalya Srivathsan > >
>> Date: Wed, Dec 10, 2014 at 10:42 PM
>> Subject: Re: Getting an error 505 Http Version Not Supported
>> To: Malaka Silva > >
>> Cc: WSO2 Developers' List > >, Vanjikumaran Sivajothy <
>> va...@wso2.com >
>>
>>
>> No,Only through the ESB.
>>
>> On Wed, Dec 10, 2014 at 10:38 PM, Malaka Silva > > wrote:
>>
>>> Are you getting the same error, if you directly invoke the api via a
>>> rest client?
>>>
>>> On Wed, Dec 10, 2014 at 7:08 PM, Sriashalya Srivathsan >> > wrote:
>>>
 I'm doing ZOHO-Invoice  ESB Connector.When i send  request to end
 points with the optional parameter *description* to the back end,It
 returns the error code *505 Http Version Not Supported. *

 If the description parameter sent without any spaces I am able to get
 the correct response. The only issue is send the optional parameters with
 space
 Note that I also tried to sent the encoded value. For that  also I got
 505 error.


 Please find the wire log below.

 [2014-12-10 15:55:44,594] DEBUG - wire >> "POST
 /services/zoho_CreateCustomerPayments HTTP/1.1[\r][\n]"

 [2014-12-10 15:55:44,595] DEBUG - wire >> "Host:
 sriashalyas-macbook-pro.local:8280[\r][\n]"

 [2014-12-10 15:55:44,595] DEBUG - wire >> "Connection:
 keep-alive[\r][\n]"

 [2014-12-10 15:55:44,595] DEBUG - wire >> "Content-Length: 130[\r][\n]"

 [2014-12-10 15:55:44,595] DEBUG - wire >> "Cache-Control:
 no-cache[\r][\n]"

 [2014-12-10 15:55:44,595] DEBUG - wire >> "Origin:
 chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"

 [2014-12-10 15:55:44,595] DEBUG - wire >> "User-Agent: Mozilla/5.0
 (Macintosh; Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko)
 Chrome/39.0.2171.71 Safari/537.36[\r][\n]"

 [2014-12-10 15:55:44,595] DEBUG - wire >> "Content-Type:
 application/json[\r][\n]"

 [2014-12-10 15:55:44,595] DEBUG - wire >> "Accept: */*[\r][\n]"

 [2014-12-10 15:55:44,595] DEBUG - wire >> "Accept-Encoding: gzip,
 deflate[\r][\n]"

 [2014-12-10 15:55:44,595] DEBUG - wire >> "Accept-Language:
 en-US,en;q=0.8,ta;q=0.6[\r][\n]"

 [2014-12-10 15:55:44,595] DEBUG - wire >> "Cookie:
 JSESSIONID=E0D69224FA87FEC1A8F0D2AD751EBDE5;
 edfb7d8656=9c1fd4635ab50f92ceb89a2f6139a417[\r][\n]"

 [2014-12-10 15:55:44,595] DEBUG - wire >> "[\r][\n]"

 [2014-12-10 15:55:44,596] DEBUG - wire >> "{[\n]"

 [2014-12-10 15:55:44,596] DEBUG - wire >> "
 "authtoken":"c1f8014366dd6ffd2691f9671f70de50",[\n]"

 [2014-12-10 15:55:44,596] DEBUG - wire >> "
 "customer_id":"57153200042068",[\n]"

 [2014-12-10 15:55:44,596] DEBUG - wire >> ""date":"2014-12-18",[\n]"

 [2014-12-10 15:55:44,596] DEBUG - wire >> ""amount":"200.00"[\n]"

 [2014-12-10 15:55:44,596] DEBUG - wire >> "}"

 -10 15:55:44,648]  INFO - TimeoutHandler This engine will expire all
 callbacks after : 120 seconds, irrespective of the timeout action, after
 the specified or optional timeout

 [2014-12-10 15:55:45,568] DEBUG - wire << "POST
 https://invoice.zoho.com/api/v3/customerpayments?authtoken=c1f8014366dd6ffd2691f9671f70de50&JSONString={
 "customer_id":"57153200042068","date":"2014-12-18","amount":"200.00","description":"hai
 hello"} HTTP/1.1[\r][\n]"

 [2014-12-10 15:55:45,568] DEBUG - wire << "Accept-Language:
 en-US,en;q=0.8,ta;q=0.6[\r][\n]"

 [2014-12-10 15:55:45,568] DEBUG - wire << "Cookie:
 JSESSIONID=E0D69224FA87FEC1A8F0D2AD751EBDE5;
 edfb7d8656=9c1fd4635ab50f92ceb89a2f6139a417[\r][\n]"

 [2014-12-10 15:55:45,568] DEBUG - wire << "Host: invoice.zoho.com
 [\r][\n]"

 [2014-12-10 15:55:45,569] DEBUG - wire <<

Re: [Dev] Getting an error 505 Http Version Not Supported

2014-12-11 Thread Malaka Silva
We are good since we are only hosting those connectors with 4.9.0

On Thu, Dec 11, 2014 at 5:50 PM, Vanjikumaran Sivajothy 
wrote:
>
> Hi,
>
> I have tested your use case[1] with 4.9.0 M3 pack with url encoding and it
> worked. This is not working in 4.8.1 due to a bug [2] in ESB on handling
> 201 response with payload.
>
>
> You can find the M3 pack in [2]
>
>
> Best Regards,
> Vanji
>
> [1]
> http://ws.apache.org/ns/synapse"; name="strip"
> context="/strip">
>
>   
>   type="STRING">
>   action="remove">
>  
> 
>https://invoice.zoho.com/api/v3/customerpayments?authtoken=c1f8014366dd6ffd2691f9671f70de50&JSONString={'customer_id':'57153200042068
> ','date':'2014-12-18','description':'*hai%20hello'*
> ,'amount':'200.00'}">
> 
>  
>  
>   
>
> 
>
>
> [2] https://wso2.org/jira/browse/ESBJAVA-3132
>
> [3]
> http://svn.wso2.org/repos/wso2/people/malaka/ESB/ESB4.9.0/M3/wso2esb-4.9.0-SNAPSHOT.zip
>
> -- Forwarded message --
> From: Sriashalya Srivathsan 
> Date: Wed, Dec 10, 2014 at 10:42 PM
> Subject: Re: Getting an error 505 Http Version Not Supported
> To: Malaka Silva 
> Cc: WSO2 Developers' List , Vanjikumaran Sivajothy <
> va...@wso2.com>
>
>
> No,Only through the ESB.
>
> On Wed, Dec 10, 2014 at 10:38 PM, Malaka Silva  wrote:
>
>> Are you getting the same error, if you directly invoke the api via a rest
>> client?
>>
>> On Wed, Dec 10, 2014 at 7:08 PM, Sriashalya Srivathsan 
>> wrote:
>>
>>> I'm doing ZOHO-Invoice  ESB Connector.When i send  request to end points
>>> with the optional parameter *description* to the back end,It returns
>>> the error code *505 Http Version Not Supported. *
>>>
>>> If the description parameter sent without any spaces I am able to get
>>> the correct response. The only issue is send the optional parameters with
>>> space
>>> Note that I also tried to sent the encoded value. For that  also I got
>>> 505 error.
>>>
>>>
>>> Please find the wire log below.
>>>
>>> [2014-12-10 15:55:44,594] DEBUG - wire >> "POST
>>> /services/zoho_CreateCustomerPayments HTTP/1.1[\r][\n]"
>>>
>>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Host:
>>> sriashalyas-macbook-pro.local:8280[\r][\n]"
>>>
>>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Connection:
>>> keep-alive[\r][\n]"
>>>
>>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Content-Length: 130[\r][\n]"
>>>
>>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Cache-Control:
>>> no-cache[\r][\n]"
>>>
>>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Origin:
>>> chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"
>>>
>>> [2014-12-10 15:55:44,595] DEBUG - wire >> "User-Agent: Mozilla/5.0
>>> (Macintosh; Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko)
>>> Chrome/39.0.2171.71 Safari/537.36[\r][\n]"
>>>
>>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Content-Type:
>>> application/json[\r][\n]"
>>>
>>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Accept: */*[\r][\n]"
>>>
>>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Accept-Encoding: gzip,
>>> deflate[\r][\n]"
>>>
>>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Accept-Language:
>>> en-US,en;q=0.8,ta;q=0.6[\r][\n]"
>>>
>>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Cookie:
>>> JSESSIONID=E0D69224FA87FEC1A8F0D2AD751EBDE5;
>>> edfb7d8656=9c1fd4635ab50f92ceb89a2f6139a417[\r][\n]"
>>>
>>> [2014-12-10 15:55:44,595] DEBUG - wire >> "[\r][\n]"
>>>
>>> [2014-12-10 15:55:44,596] DEBUG - wire >> "{[\n]"
>>>
>>> [2014-12-10 15:55:44,596] DEBUG - wire >> "
>>> "authtoken":"c1f8014366dd6ffd2691f9671f70de50",[\n]"
>>>
>>> [2014-12-10 15:55:44,596] DEBUG - wire >> "
>>> "customer_id":"57153200042068",[\n]"
>>>
>>> [2014-12-10 15:55:44,596] DEBUG - wire >> ""date":"2014-12-18",[\n]"
>>>
>>> [2014-12-10 15:55:44,596] DEBUG - wire >> ""amount":"200.00"[\n]"
>>>
>>> [2014-12-10 15:55:44,596] DEBUG - wire >> "}"
>>>
>>> -10 15:55:44,648]  INFO - TimeoutHandler This engine will expire all
>>> callbacks after : 120 seconds, irrespective of the timeout action, after
>>> the specified or optional timeout
>>>
>>> [2014-12-10 15:55:45,568] DEBUG - wire << "POST
>>> https://invoice.zoho.com/api/v3/customerpayments?authtoken=c1f8014366dd6ffd2691f9671f70de50&JSONString={
>>> "customer_id":"57153200042068","date":"2014-12-18","amount":"200.00","description":"hai
>>> hello"} HTTP/1.1[\r][\n]"
>>>
>>> [2014-12-10 15:55:45,568] DEBUG - wire << "Accept-Language:
>>> en-US,en;q=0.8,ta;q=0.6[\r][\n]"
>>>
>>> [2014-12-10 15:55:45,568] DEBUG - wire << "Cookie:
>>> JSESSIONID=E0D69224FA87FEC1A8F0D2AD751EBDE5;
>>> edfb7d8656=9c1fd4635ab50f92ceb89a2f6139a417[\r][\n]"
>>>
>>> [2014-12-10 15:55:45,568] DEBUG - wire << "Host: invoice.zoho.com
>>> [\r][\n]"
>>>
>>> [2014-12-10 15:55:45,569] DEBUG - wire << "Accept-Encoding: gzip,
>>> deflate[\r][\n]"
>>>
>>> [2014-12-10 15:55:45,569] DEBUG - wire << "Origin:
>>> chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"
>>>
>>> [2014-12-10 15:55:45,569] DEBUG - wire << "

Re: [Dev] Error when logging from a tenant

2014-12-11 Thread Gayan Gunawardana
Hi,

This problem was discussed here [1].

[1] [Dev] chunk 05 packs 05/12/2013

On Thu, Dec 11, 2014 at 10:41 PM, Manoj Kumara  wrote:

> Hi Udara,
>
> The issue might be the configuration files coming from kernel patches not
> being applied in the product.
>
> Yes this issue occurred while dealing with kernel patches.

Regards
> Manoj
>
-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] JWT Signing with Nimbus

2014-12-11 Thread Gayan Gunawardana
Hi All,

Thanks all for feedback. We can plan identity components for next Identity
Server release with orbit bundle rather than embedding nimbuz jar.

Thanks,
Gayan


On Fri, Dec 12, 2014 at 12:23 AM, Udara Liyanage  wrote:

> Hi,
>
> As I remember nimbuz jar is embedded while building the identity component.
> +1 using orbit bundle rather than embedding nimbuz jar.
>
>
>
> Touched, not typed. Erroneous words are a feature, not a typo.
> On Dec 12, 2014 12:20 AM, "Danushka Fernando"  wrote:
>
>> Hi
>> +1 to use nimbus.
>> We have created a orbit bundle for nimbus. Please use that if you are
>> using nimbus.
>> @Gayan : I think we might need to change those identity components also
>> to use the orbit bundle.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> On Fri, Dec 12, 2014 at 12:09 AM, Susinda Perera 
>> wrote:
>>
>>> Hi Gayan
>>> FYI
>>> I was able to validate the APIM JWT signature with java.security.*
>>> classes.
>>>
>>> Thanks
>>>
>>> On Thu, Dec 11, 2014 at 11:48 PM, Gayan Gunawardana 
>>> wrote:
>>>
 Hi All,

 In JWT token generator [1] use low level JWT building and signing
 process which makes bit difficult to validate signature in client side. But
 in [2] we use nimbus [3] to generate and sign OpenID connect ID token.
 Shall we change JWT generator in [1] to use nimbus library ?
 Nimbus provides very comprehensive option to generate JWT and validate
 signature in client side.

 [1]
 https://github.com/wso2-dev/carbon-identity/blob/master/components/identity/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/authcontext/JWTTokenGenerator.java

 [2]
 https://github.com/wso2-dev/carbon-identity/blob/master/components/identity/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/openidconnect/DefaultIDTokenBuilder.java

 [3]http://connect2id.com/products/nimbus-jose-jwt
 --
 Gayan Gunawardana
 Software Engineer; WSO2 Inc.; http://wso2.com/
 Email: ga...@wso2.com
 Mobile: +94 (71) 8020933

>>>
>>>
>>>
>>> --
>>> *Susinda Perera*
>>> Software Engineer
>>> Mobile:(+94)716049075
>>>
>>> WSO2 Inc. http://wso2.com/
>>> Tel : 94 11 214 5345 Fax :94 11 2145300
>>>
>>>
>>> ___
>>> 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 mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Add the attachment to parent sObject in Salesforce

2014-12-11 Thread Malaka Silva
Hi Kathees,

Every object is salesforce is treated as a sobject. (Including Attachment)

Fields are listed in [1]. You need to create and send a payload similar to
[2]

Since there is already connector with create method, Just debug and check
the request send to api.

[1]
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_attachment.htm#topic-title

[2]

http://schemas.xmlsoap.org/soap/envelope/";
xmlns:urn="urn:partner.soap.sforce.com">



attachment
base64_content
xxx



Best Regards,
Malaka

On Thu, Dec 11, 2014 at 6:21 PM, Kathees Rajendram  wrote:
>
> Hi,
>
> I need to add the base64 encoding attachment to parent sObject in
> Salesforce. I used the following payload. Could you please suggest a way?
> We use the Salesforce partner WSDL.
>
> 
> 
> http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:urn="urn:partner.soap.sforce.com">
> 
> 
> $1
> 
> 
> 
> 
> 
>
> This is the base64 encoding attachment
>
> try {
> Axis2MessageContext axisMsgContext = (Axis2MessageContext)
> synCtx;
> org.apache.axis2.context.MessageContext msgContext =
> axisMsgContext
> .getAxis2MessageContext();
> InputStream message = msgContext.attachments
> .getSOAPPartInputStream();
> byte[] bytes = IOUtils.toByteArray(message);
>
> String encoded = Base64.encode(bytes);
>
> synCtx.setProperty("attachmentObject", encoded);
>
> }
>
> Thanks,
> Kathees
>
> --
> Kathees
> Software Engineer,
> email: kath...@wso2.com
> mobile: +94772596173
>
> ___
> 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] JWT Signing with Nimbus

2014-12-11 Thread Udara Liyanage
Hi,

As I remember nimbuz jar is embedded while building the identity component.
+1 using orbit bundle rather than embedding nimbuz jar.



Touched, not typed. Erroneous words are a feature, not a typo.
On Dec 12, 2014 12:20 AM, "Danushka Fernando"  wrote:

> Hi
> +1 to use nimbus.
> We have created a orbit bundle for nimbus. Please use that if you are
> using nimbus.
> @Gayan : I think we might need to change those identity components also to
> use the orbit bundle.
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Fri, Dec 12, 2014 at 12:09 AM, Susinda Perera  wrote:
>
>> Hi Gayan
>> FYI
>> I was able to validate the APIM JWT signature with java.security.*
>> classes.
>>
>> Thanks
>>
>> On Thu, Dec 11, 2014 at 11:48 PM, Gayan Gunawardana 
>> wrote:
>>
>>> Hi All,
>>>
>>> In JWT token generator [1] use low level JWT building and signing
>>> process which makes bit difficult to validate signature in client side. But
>>> in [2] we use nimbus [3] to generate and sign OpenID connect ID token.
>>> Shall we change JWT generator in [1] to use nimbus library ?
>>> Nimbus provides very comprehensive option to generate JWT and validate
>>> signature in client side.
>>>
>>> [1]
>>> https://github.com/wso2-dev/carbon-identity/blob/master/components/identity/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/authcontext/JWTTokenGenerator.java
>>>
>>> [2]
>>> https://github.com/wso2-dev/carbon-identity/blob/master/components/identity/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/openidconnect/DefaultIDTokenBuilder.java
>>>
>>> [3]http://connect2id.com/products/nimbus-jose-jwt
>>> --
>>> Gayan Gunawardana
>>> Software Engineer; WSO2 Inc.; http://wso2.com/
>>> Email: ga...@wso2.com
>>> Mobile: +94 (71) 8020933
>>>
>>
>>
>>
>> --
>> *Susinda Perera*
>> Software Engineer
>> Mobile:(+94)716049075
>>
>> WSO2 Inc. http://wso2.com/
>> Tel : 94 11 214 5345 Fax :94 11 2145300
>>
>>
>> ___
>> 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 mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] JWT Signing with Nimbus

2014-12-11 Thread Danushka Fernando
Hi
+1 to use nimbus.
We have created a orbit bundle for nimbus. Please use that if you are using
nimbus.
@Gayan : I think we might need to change those identity components also to
use the orbit bundle.

Thanks & Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Fri, Dec 12, 2014 at 12:09 AM, Susinda Perera  wrote:

> Hi Gayan
> FYI
> I was able to validate the APIM JWT signature with java.security.* classes.
>
> Thanks
>
> On Thu, Dec 11, 2014 at 11:48 PM, Gayan Gunawardana 
> wrote:
>
>> Hi All,
>>
>> In JWT token generator [1] use low level JWT building and signing process
>> which makes bit difficult to validate signature in client side. But in [2]
>> we use nimbus [3] to generate and sign OpenID connect ID token. Shall we
>> change JWT generator in [1] to use nimbus library ?
>> Nimbus provides very comprehensive option to generate JWT and validate
>> signature in client side.
>>
>> [1]
>> https://github.com/wso2-dev/carbon-identity/blob/master/components/identity/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/authcontext/JWTTokenGenerator.java
>>
>> [2]
>> https://github.com/wso2-dev/carbon-identity/blob/master/components/identity/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/openidconnect/DefaultIDTokenBuilder.java
>>
>> [3]http://connect2id.com/products/nimbus-jose-jwt
>> --
>> Gayan Gunawardana
>> Software Engineer; WSO2 Inc.; http://wso2.com/
>> Email: ga...@wso2.com
>> Mobile: +94 (71) 8020933
>>
>
>
>
> --
> *Susinda Perera*
> Software Engineer
> Mobile:(+94)716049075
>
> WSO2 Inc. http://wso2.com/
> Tel : 94 11 214 5345 Fax :94 11 2145300
>
>
> ___
> 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] JWT Signing with Nimbus

2014-12-11 Thread Udara Liyanage
Hi Gayan,

+1.

Using nimbuz is a good approach.  It provides better flexibility than
hardcoding the kwt token format.


Touched, not typed. Erroneous words are a feature, not a typo.
On Dec 11, 2014 11:49 PM, "Gayan Gunawardana"  wrote:
>
> Hi All,
>
> In JWT token generator [1] use low level JWT building and signing process
which makes bit difficult to validate signature in client side. But in [2]
we use nimbus [3] to generate and sign OpenID connect ID token. Shall we
change JWT generator in [1] to use nimbus library ?
> Nimbus provides very comprehensive option to generate JWT and validate
signature in client side.
>
> [1]
https://github.com/wso2-dev/carbon-identity/blob/master/components/identity/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/authcontext/JWTTokenGenerator.java

This is kind of hard coding the token which makes hard to add a custom
claim.
>
> [2]
https://github.com/wso2-dev/carbon-identity/blob/master/components/identity/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/openidconnect/DefaultIDTokenBuilder.java
>
> [3]http://connect2id.com/products/nimbus-jose-jwt
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ERROR {org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO} - Failed to add properties to the resource

2014-12-11 Thread Rajeenthini Satkunam
Hi all,


 I am implementing the new feature for the Identity server existing
component SAML SSO configuration that is we can add the service provider
and identity provider through uploading metadata configuration file(.xml)
rather than interacting with existing method of adding service
provider.First I need to add this metadata file to registry (identity
server) .So I have implemented Backend and frontend components and I am
trying to check in the Identity server(5.0.0) When checking I am getting
the below error in the server


 [2014-12-11 19:13:02,295] ERROR
{org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO} - Failed to add
properties to the resource
/_system/config/repository/identity/SAMLSSOMetaData/bWV0YWRhdGFGaWxl. Value
too long for column "REG_VALUE VARCHAR(1000)":
"STRINGDECODE(' <... (4595)"; SQL statement:

INSERT INTO REG_PROPERTY (REG_NAME, REG_VALUE, REG_TENANT_ID) VALUES (?, ?,
?) [90005-140]

org.h2.jdbc.JdbcSQLException: Value too long for column "REG_VALUE
VARCHAR(1000)": "STRINGDECODE(' <... (4595)"; SQL statement:

INSERT INTO REG_PROPERTY (REG_NAME, REG_VALUE, REG_TENANT_ID) VALUES (?, ?,
?) [90005-140]

at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)

at org.h2.message.DbException.get(DbException.java:167)

at org.h2.table.Column.validateConvertUpdateSequence(Column.java:316)

at org.h2.table.Table.validateConvertUpdateSequence(Table.java:621)

at org.h2.command.dml.Insert.insertRows(Insert.java:116)

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.addProperties(JDBCResourceDAO.java:1626)


at
org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.add(JDBCResourceDAO.java:463)


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:465)


at
org.wso2.carbon.registry.core.session.UserRegistry.put(UserRegistry.java:657)


at
org.wso2.carbon.identity.core.dao.SAMLSSOMetadataServiceProviderDAO.addMetadataServiceProvider(SAMLSSOMetadataServiceProviderDAO.java:76)


at
org.wso2.carbon.identity.core.persistence.IdentityPersistenceManager.addMetadataServiceProvider(IdentityPersistenceManager.java:256)


at
org.wso2.carbon.identity.sso.saml.metadata.SAMLSSOMetadataConfigManager.addServiceProvider(SAMLSSOMetadataConfigManager.java:60)


at
org.wso2.carbon.identity.sso.saml.SAMLSSOConfigService.addMetadataServiceProvider(SAMLSSOConfigService.java:188)


at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)


at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


at java.lang.reflect.Method.invoke(Method.java:597)

at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)

at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)


at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)


at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)


at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)

at
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)


at
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)


at
org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)


at
org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)


at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)

at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)


at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)


at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)

at
org.wso2.carbon.identity.sso.saml.stub.IdentitySAMLSSOConfigServiceStub.addMetadataServiceProvider(IdentitySAMLSSOConfigServiceStub.java:837)


at
org.wso2.carbon.identity.sso.saml.ui.client.SAMLSSOConfigServiceClient.addMetadataServiceProvider(SAMLSSOConfigServiceClient.java:134)


at
org.apache.jsp.sso_002dsaml.add_005fmetadata_005fservice_005fprovider_jsp._jspService(org.apache.jsp.sso_002dsaml.add_005fmetadata_005fservice_005fprovider_jsp:122)


at org.apache.jasper.

Re: [Dev] JWT Signing with Nimbus

2014-12-11 Thread Susinda Perera
Hi Gayan
FYI
I was able to validate the APIM JWT signature with java.security.* classes.

Thanks

On Thu, Dec 11, 2014 at 11:48 PM, Gayan Gunawardana  wrote:

> Hi All,
>
> In JWT token generator [1] use low level JWT building and signing process
> which makes bit difficult to validate signature in client side. But in [2]
> we use nimbus [3] to generate and sign OpenID connect ID token. Shall we
> change JWT generator in [1] to use nimbus library ?
> Nimbus provides very comprehensive option to generate JWT and validate
> signature in client side.
>
> [1]
> https://github.com/wso2-dev/carbon-identity/blob/master/components/identity/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/authcontext/JWTTokenGenerator.java
>
> [2]
> https://github.com/wso2-dev/carbon-identity/blob/master/components/identity/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/openidconnect/DefaultIDTokenBuilder.java
>
> [3]http://connect2id.com/products/nimbus-jose-jwt
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>



-- 
*Susinda Perera*
Software Engineer
Mobile:(+94)716049075

WSO2 Inc. http://wso2.com/
Tel : 94 11 214 5345 Fax :94 11 2145300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] JWT Signing with Nimbus

2014-12-11 Thread Gayan Gunawardana
Hi All,

In JWT token generator [1] use low level JWT building and signing process
which makes bit difficult to validate signature in client side. But in [2]
we use nimbus [3] to generate and sign OpenID connect ID token. Shall we
change JWT generator in [1] to use nimbus library ?
Nimbus provides very comprehensive option to generate JWT and validate
signature in client side.

[1]
https://github.com/wso2-dev/carbon-identity/blob/master/components/identity/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/authcontext/JWTTokenGenerator.java

[2]
https://github.com/wso2-dev/carbon-identity/blob/master/components/identity/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/openidconnect/DefaultIDTokenBuilder.java

[3]http://connect2id.com/products/nimbus-jose-jwt
-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What is the alternative for ServiceMetaData#isCAppArtifactSpecified()

2014-12-11 Thread Supun Malinga
Hi Pubudu,

Seems like the PR is to release-4.3.0 branch. Could you resent to master
branch pls ?.

thanks,

On Thu, Dec 11, 2014 at 7:15 PM, Pubudu Dissanayake 
wrote:

> Hi Jeewantha
>
> It is not removed, *isCAppArtifact* is a newly added property to
> service-mgt component. It will be available once it is merged to
> carbon-deployment repo [1]
> If you are referring to this ESB integration [2] please comment out until
> that pull request is merged
>
> [1] https://github.com/wso2-dev/carbon-deployment/pull/57
> [2] https://github.com/wso2-dev/product-esb/pull/95
>
> On Thu, Dec 11, 2014 at 6:30 PM, Jeewantha Dharmaparakrama <
> jeewan...@wso2.com> wrote:
>
>> Hi CarbonTeam,
>>
>> Looks like the method is removed from the new carbon-deployment module
>> [1]. What is the alternative for this ?
>>
>> [1]
>> https://github.com/wso2/carbon-deployment/blob/master/components/service-mgt/axis2-service-mgt/org.wso2.carbon.service.mgt/src/main/java/org/wso2/carbon/service/mgt/ServiceMetaData.java
>>
>> Thanks,
>> Jeewantha
>>
>> --
>> Jeewantha Dharmaparakrama
>> Software Engineer; WSO2, Inc.; http://wso2.com/
>> Phone : (+94) 778403757
>> Blog: http://jeewanthad.blogspot.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Pubudu Dissanayake*
>  Software Engineer
>
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Mob: + 94 775 503 304
>
> Blog: http://geekdetected.wordpress.com/
> Linkedin: *http://lk.linkedin.com/in/pubududissanayake*
> 
> Flickr : https://www.flickr.com/photos/pubudufx/
> Twitter: https://twitter.com/GeekInAction
>
>


-- 
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] Error when logging from a tenant

2014-12-11 Thread Manoj Kumara
Hi Udara,

The issue might be the configuration files coming from kernel patches not
being applied in the product.

Regards
Manoj


*Manoj Kumara*
Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94713448188

On Thu, Dec 11, 2014 at 9:51 PM, Udara Liyanage  wrote:

> Hi Manoj,
>
> Issue is not visible with the config file you have provided. Thanks.
>
> On Thu, Dec 11, 2014 at 3:25 PM, Manoj Kumara  wrote:
>>
>> Hi Udara,
>>
>> Can you try with the configuration file available on [1].
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0006/distribution/kernel/carbon-home/repository/conf/axis2/tenant-axis2.xml
>>
>>
>> *Manoj Kumara*
>> Software Engineer
>> WSO2 Inc. http://wso2.com/
>> *lean.enterprise.middleware*
>> Mobile: +94713448188
>>
>> On Thu, Dec 11, 2014 at 3:15 PM, Udara Liyanage  wrote:
>>
>>> Hi,
>>>
>>> Should n't this be added to the file by kernel?
>>>
>>> On Thu, Dec 11, 2014 at 3:12 PM, Udara Liyanage  wrote:
>>>
 Hi,

  was able to resolve the issue. Thanks Nirmal, Nuwan and Asanka for the
 support.

 On Thu, Dec 11, 2014 at 10:35 AM, Udara Liyanage 
 wrote:

> Hi Nirmal,
>
> Error disappeared when added to tenant-axis2.xml. However UI giving
> some errors
> HTTP method GET is not supported by this URL
>
> On Thu, Dec 11, 2014 at 10:27 AM, Nirmal Fernando 
> wrote:
>
>> Since, this is tenant flow, you need to do the change in
>> repository/conf/axis2/tenant-axis2.xml
>>
>> On Thu, Dec 11, 2014 at 10:23 AM, Udara Liyanage 
>> wrote:
>>
>>> Hi Nuwan,
>>>
>>> Did as you mentioned, still same issue
>>>
>>> On Thu, Dec 11, 2014 at 9:55 AM, Nuwan Silva 
>>> wrote:
>>>
 Got the similar issue when testing Chunk5 releases.

 check if the  is added in the
 OutFaultFlow axis2.xml. This resolved the issue.
 HTH

 Regards,
 NuwanS.


 On Thu, Dec 11, 2014 at 9:43 AM, Udara Liyanage 
 wrote:

> Hi,
>
> I encountered following error while logging from a tenant. Please
> note that this is not visible when logging from super tenant.
>
> [2014-12-11 09:35:38,793]  INFO
> {org.apache.stratos.cloud.controller.deployers.CloudControllerDeployer}
>  -
>  Successfully deployed the cloud-controller XML file located at
> /home/udara/stratos/install/apache-stratos-default/repository/tenants/1/../../conf/cloud-controller.xml
> [2014-12-11 09:35:38,938]  INFO
> {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} -
>  Permission cache updated for tenant 1
> [2014-12-11 09:35:38,953] ERROR
> {org.wso2.carbon.sts.STSDeploymentListener} -  Error occur while 
> deploying
> wso2carbon-sts service for tenant 1
> org.apache.axis2.phaseresolver.PhaseException: Did not find the
> desired phase 'Transport' while deploying handler 
> 'POXSecurityHandler'.
> at
> org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:75)
> at
> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToFlow(PhaseResolver.java:68)
> at
> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:104)
> at
> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:110)
> at
> org.apache.axis2.description.AxisOperation.onEngage(AxisOperation.java:152)
> at
> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
> at
> org.apache.axis2.description.AxisService.onEngage(AxisService.java:827)
> at
> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
> at
> org.apache.axis2.description.AxisServiceGroup.onEngage(AxisServiceGroup.java:134)
> at
> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
> at
> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:439)
> at
> org.apache.axis2.engine.AxisConfiguration.addServiceGroup(AxisConfiguration.java:380)
> at
> org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentEngine.java:602)
> at
> org.wso2.carbon.sts.STSDeploymentListener.createService(STSDeploymentListener.java:148)
> at
> org.wso2.carbon.sts.STSDeploymentListener.createdConfigurationContext(STSDeploymentListener.java:82)
> at
> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:344)
> at
> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenant

Re: [Dev] Error when logging from a tenant

2014-12-11 Thread Udara Liyanage
Hi Manoj,

Issue is not visible with the config file you have provided. Thanks.

On Thu, Dec 11, 2014 at 3:25 PM, Manoj Kumara  wrote:
>
> Hi Udara,
>
> Can you try with the configuration file available on [1].
>
> [1]
> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0006/distribution/kernel/carbon-home/repository/conf/axis2/tenant-axis2.xml
>
>
> *Manoj Kumara*
> Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94713448188
>
> On Thu, Dec 11, 2014 at 3:15 PM, Udara Liyanage  wrote:
>
>> Hi,
>>
>> Should n't this be added to the file by kernel?
>>
>> On Thu, Dec 11, 2014 at 3:12 PM, Udara Liyanage  wrote:
>>
>>> Hi,
>>>
>>>  was able to resolve the issue. Thanks Nirmal, Nuwan and Asanka for the
>>> support.
>>>
>>> On Thu, Dec 11, 2014 at 10:35 AM, Udara Liyanage  wrote:
>>>
 Hi Nirmal,

 Error disappeared when added to tenant-axis2.xml. However UI giving
 some errors
 HTTP method GET is not supported by this URL

 On Thu, Dec 11, 2014 at 10:27 AM, Nirmal Fernando 
 wrote:

> Since, this is tenant flow, you need to do the change in
> repository/conf/axis2/tenant-axis2.xml
>
> On Thu, Dec 11, 2014 at 10:23 AM, Udara Liyanage 
> wrote:
>
>> Hi Nuwan,
>>
>> Did as you mentioned, still same issue
>>
>> On Thu, Dec 11, 2014 at 9:55 AM, Nuwan Silva  wrote:
>>
>>> Got the similar issue when testing Chunk5 releases.
>>>
>>> check if the  is added in the OutFaultFlow
>>> axis2.xml. This resolved the issue.
>>> HTH
>>>
>>> Regards,
>>> NuwanS.
>>>
>>>
>>> On Thu, Dec 11, 2014 at 9:43 AM, Udara Liyanage 
>>> wrote:
>>>
 Hi,

 I encountered following error while logging from a tenant. Please
 note that this is not visible when logging from super tenant.

 [2014-12-11 09:35:38,793]  INFO
 {org.apache.stratos.cloud.controller.deployers.CloudControllerDeployer}
  -
  Successfully deployed the cloud-controller XML file located at
 /home/udara/stratos/install/apache-stratos-default/repository/tenants/1/../../conf/cloud-controller.xml
 [2014-12-11 09:35:38,938]  INFO
 {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} -
  Permission cache updated for tenant 1
 [2014-12-11 09:35:38,953] ERROR
 {org.wso2.carbon.sts.STSDeploymentListener} -  Error occur while 
 deploying
 wso2carbon-sts service for tenant 1
 org.apache.axis2.phaseresolver.PhaseException: Did not find the
 desired phase 'Transport' while deploying handler 'POXSecurityHandler'.
 at
 org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:75)
 at
 org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToFlow(PhaseResolver.java:68)
 at
 org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:104)
 at
 org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:110)
 at
 org.apache.axis2.description.AxisOperation.onEngage(AxisOperation.java:152)
 at
 org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
 at
 org.apache.axis2.description.AxisService.onEngage(AxisService.java:827)
 at
 org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
 at
 org.apache.axis2.description.AxisServiceGroup.onEngage(AxisServiceGroup.java:134)
 at
 org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
 at
 org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:439)
 at
 org.apache.axis2.engine.AxisConfiguration.addServiceGroup(AxisConfiguration.java:380)
 at
 org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentEngine.java:602)
 at
 org.wso2.carbon.sts.STSDeploymentListener.createService(STSDeploymentListener.java:148)
 at
 org.wso2.carbon.sts.STSDeploymentListener.createdConfigurationContext(STSDeploymentListener.java:82)
 at
 org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:344)
 at
 org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:135)
 at
 org.wso2.carbon.core.services.util.CarbonAuthenticationUtil.onSuccessAdminLogin(CarbonAuthenticationUtil.java:131)
 at
 org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login(AuthenticationAdmin.java:118)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeM

Re: [Dev] SHA 1 Hashing - error

2014-12-11 Thread Vanii Thiyagarajah
thanks. i changed that MessageDigest md =
MessageDigest.getInstance("SHA-1"). it's working now.


On Thu, Dec 11, 2014 at 9:25 PM, Vanjikumaran Sivajothy 
wrote:

> On you code it seem you are using the MD5 to hash. However expected
> hashing mechanism is SH-1 according to doc.
>
> Hence, please try with MessageDigest md =
> MessageDigest.getInstance("SHA-1");
>
> MessageDigest md = MessageDigest.getInstance("MD5");
> On Thu, Dec 11, 2014 at 9:21 PM, Vanii Thiyagarajah 
> wrote:
>
>> I am implementing the slideshare Connector using slideshare API.
>>
>> I have to set this to the SHA1 hash of the concatenation of the shared
>> secret and the timestamp (ts). i.e. SHA1 (sharedsecret + timestamp).
>>
>>
>> package org.wso2.carbon.connector;
>>
>> import java.math.BigInteger;
>> import java.security.MessageDigest;
>> import java.util.*;
>> import org.apache.synapse.MessageContext;
>> import java.io.UnsupportedEncodingException;
>> import java.security.InvalidKeyException;
>> import java.security.NoSuchAlgorithmException;
>>
>> import org.apache.synapse.SynapseException;
>> import org.apache.synapse.mediators.AbstractMediator;
>>
>> /**
>>  * Created by vanii on 12/9/14.
>>  */
>> public class Encoder extends AbstractMediator {
>>
>> public static final String sha1Key = "uri.var.sha1Key";
>>
>> public void generateHash(MessageContext msgctx) throws
>> UnsupportedEncodingException,NoSuchAlgorithmException, InvalidKeyException {
>> StringBuilder baseString = new StringBuilder();
>>* MessageDigest md = MessageDigest.getInstance("MD5");*
>>
>>
>> String timeStamp=String.valueOf(System.currentTimeMillis() /
>> 1000);
>> msgctx.setProperty("uri.var.ts",timeStamp);
>>
>>
>> String input = msgctx.getProperty("uri.var.sha1Key").toString() +
>> timeStamp;
>> md.update(input.getBytes());
>>
>> String hash = String.format("%032x", new BigInteger(1,
>> md.digest()));
>> msgctx.setProperty("uri.var.hash",hash);
>> }
>>
>> public boolean mediate(MessageContext msgctx) {
>> try {
>> generateHash(msgctx);
>> } catch (Exception e) {
>> throw new SynapseException(e);
>> }
>> return true;
>> }
>> }
>>
>>
>>
>> I am getting but the response says hashing is not correct.
>>
>>
>> [1]
>> [2014-12-11 20:26:01,652] DEBUG - headers http-outgoing-8 >> GET
>> https://www.slideshare.net/api/2/get_slideshow?api_key=4yCEGJou&ts=1418309760&hash=901c42f4bb22ee6617f2c82c81547bd3ad9b5b95&slideshow_id=124324&slideshow_url=http://www.slideshare.net/cocog520/-124324
>> HTTP/1.1
>> [2014-12-11 20:26:01,652] DEBUG - headers http-outgoing-8 >>
>> Accept-Language: en-US,en;q=0.8
>> [2014-12-11 20:26:01,652] DEBUG - headers http-outgoing-8 >> Cookie:
>> SERVERID=r87|VImwL|VImwJ
>> [2014-12-11 20:26:01,652] DEBUG - headers http-outgoing-8 >>
>> Accept-Encoding: gzip,deflate
>> [2014-12-11 20:26:01,653] DEBUG - headers http-outgoing-8 >> Origin:
>> chrome-extension://
>> hgmloofddffdnphfgcellkdfbfbjeloo
>> [2014-12-11 20:26:01,653] DEBUG - headers http-outgoing-8 >>
>> Content-Type: application/json
>> [2014-12-11 20:26:01,653] DEBUG - headers http-outgoing-8 >> Accept: */*
>> [2014-12-11 20:26:01,653] DEBUG - headers http-outgoing-8 >> Host:
>> www.slideshare.net:80
>> [2014-12-11 20:26:01,653] DEBUG - headers http-outgoing-8 >> Connection:
>> Keep-Alive
>> [2014-12-11 20:26:01,653] DEBUG - headers http-outgoing-8 >> User-Agent:
>> Synapse-PT-HttpComponents-NIO
>> [2014-12-11 20:26:01,654] DEBUG - wire << "GET
>> https://www.slideshare.net/api/2/get_slideshow?api_key=4yCEGJou&ts=1418309760&hash=901c42f4bb22ee6617f2c82c81547bd3ad9b5b95&slideshow_id=124324&slideshow_url=http://www.slideshare.net/cocog520/-124324
>> HTTP/1.1[\r][\n]"
>> [2014-12-11 20:26:01,654] DEBUG - wire << "Accept-Language:
>> en-US,en;q=0.8[\r][\n]"
>> [2014-12-11 20:26:01,654] DEBUG - wire << "Cookie:
>> SERVERID=r87|VImwL|VImwJ[\r][\n]"
>> [2014-12-11 20:26:01,654] DEBUG - wire << "Accept-Encoding:
>> gzip,deflate[\r][\n]"
>> [2014-12-11 20:26:01,655] DEBUG - wire << "Origin:
>> chrome-extension://hgmloofddffdnphfgcellkdfbfbjeloo[\r][\n]"
>> [2014-12-11 20:26:01,655] DEBUG - wire << "Content-Type:
>> application/json[\r][\n]"
>> [2014-12-11 20:26:01,655] DEBUG - wire << "Accept: */*[\r][\n]"
>> [2014-12-11 20:26:01,655] DEBUG - wire << "Host: www.slideshare.net:80
>> [\r][\n]"
>> [2014-12-11 20:26:01,655] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
>> [2014-12-11 20:26:01,655] DEBUG - wire << "User-Agent:
>> Synapse-PT-HttpComponents-NIO[\r][\n]"
>>
>>
>> i am getting the error response in Rest Client
>>
>> 
>> 
>> 
>> Failed API validation
>> 
>> 
>>
>>
>
>
> --
> Sivajothy Vanjikumaran
> *Senior Software Engineer*
> *Integration Technologies Team*
> *WSO2 Inc. http://wso2.com *
> *Mobile:(+94)777219209*
> [image: Facebook]  [image: Twitter]
>  [image:

Re: [Dev] SHA 1 Hashing - error

2014-12-11 Thread Vanjikumaran Sivajothy
On you code it seem you are using the MD5 to hash. However expected hashing
mechanism is SH-1 according to doc.

Hence, please try with MessageDigest md =
MessageDigest.getInstance("SHA-1");

MessageDigest md = MessageDigest.getInstance("MD5");
On Thu, Dec 11, 2014 at 9:21 PM, Vanii Thiyagarajah  wrote:

> I am implementing the slideshare Connector using slideshare API.
>
> I have to set this to the SHA1 hash of the concatenation of the shared
> secret and the timestamp (ts). i.e. SHA1 (sharedsecret + timestamp).
>
>
> package org.wso2.carbon.connector;
>
> import java.math.BigInteger;
> import java.security.MessageDigest;
> import java.util.*;
> import org.apache.synapse.MessageContext;
> import java.io.UnsupportedEncodingException;
> import java.security.InvalidKeyException;
> import java.security.NoSuchAlgorithmException;
>
> import org.apache.synapse.SynapseException;
> import org.apache.synapse.mediators.AbstractMediator;
>
> /**
>  * Created by vanii on 12/9/14.
>  */
> public class Encoder extends AbstractMediator {
>
> public static final String sha1Key = "uri.var.sha1Key";
>
> public void generateHash(MessageContext msgctx) throws
> UnsupportedEncodingException,NoSuchAlgorithmException, InvalidKeyException {
> StringBuilder baseString = new StringBuilder();
>* MessageDigest md = MessageDigest.getInstance("MD5");*
>
>
> String timeStamp=String.valueOf(System.currentTimeMillis() / 1000);
> msgctx.setProperty("uri.var.ts",timeStamp);
>
>
> String input = msgctx.getProperty("uri.var.sha1Key").toString() +
> timeStamp;
> md.update(input.getBytes());
>
> String hash = String.format("%032x", new BigInteger(1,
> md.digest()));
> msgctx.setProperty("uri.var.hash",hash);
> }
>
> public boolean mediate(MessageContext msgctx) {
> try {
> generateHash(msgctx);
> } catch (Exception e) {
> throw new SynapseException(e);
> }
> return true;
> }
> }
>
>
>
> I am getting but the response says hashing is not correct.
>
>
> [1]
> [2014-12-11 20:26:01,652] DEBUG - headers http-outgoing-8 >> GET
> https://www.slideshare.net/api/2/get_slideshow?api_key=4yCEGJou&ts=1418309760&hash=901c42f4bb22ee6617f2c82c81547bd3ad9b5b95&slideshow_id=124324&slideshow_url=http://www.slideshare.net/cocog520/-124324
> HTTP/1.1
> [2014-12-11 20:26:01,652] DEBUG - headers http-outgoing-8 >>
> Accept-Language: en-US,en;q=0.8
> [2014-12-11 20:26:01,652] DEBUG - headers http-outgoing-8 >> Cookie:
> SERVERID=r87|VImwL|VImwJ
> [2014-12-11 20:26:01,652] DEBUG - headers http-outgoing-8 >>
> Accept-Encoding: gzip,deflate
> [2014-12-11 20:26:01,653] DEBUG - headers http-outgoing-8 >> Origin:
> chrome-extension://
> hgmloofddffdnphfgcellkdfbfbjeloo
> [2014-12-11 20:26:01,653] DEBUG - headers http-outgoing-8 >> Content-Type:
> application/json
> [2014-12-11 20:26:01,653] DEBUG - headers http-outgoing-8 >> Accept: */*
> [2014-12-11 20:26:01,653] DEBUG - headers http-outgoing-8 >> Host:
> www.slideshare.net:80
> [2014-12-11 20:26:01,653] DEBUG - headers http-outgoing-8 >> Connection:
> Keep-Alive
> [2014-12-11 20:26:01,653] DEBUG - headers http-outgoing-8 >> User-Agent:
> Synapse-PT-HttpComponents-NIO
> [2014-12-11 20:26:01,654] DEBUG - wire << "GET
> https://www.slideshare.net/api/2/get_slideshow?api_key=4yCEGJou&ts=1418309760&hash=901c42f4bb22ee6617f2c82c81547bd3ad9b5b95&slideshow_id=124324&slideshow_url=http://www.slideshare.net/cocog520/-124324
> HTTP/1.1[\r][\n]"
> [2014-12-11 20:26:01,654] DEBUG - wire << "Accept-Language:
> en-US,en;q=0.8[\r][\n]"
> [2014-12-11 20:26:01,654] DEBUG - wire << "Cookie:
> SERVERID=r87|VImwL|VImwJ[\r][\n]"
> [2014-12-11 20:26:01,654] DEBUG - wire << "Accept-Encoding:
> gzip,deflate[\r][\n]"
> [2014-12-11 20:26:01,655] DEBUG - wire << "Origin:
> chrome-extension://hgmloofddffdnphfgcellkdfbfbjeloo[\r][\n]"
> [2014-12-11 20:26:01,655] DEBUG - wire << "Content-Type:
> application/json[\r][\n]"
> [2014-12-11 20:26:01,655] DEBUG - wire << "Accept: */*[\r][\n]"
> [2014-12-11 20:26:01,655] DEBUG - wire << "Host: www.slideshare.net:80
> [\r][\n]"
> [2014-12-11 20:26:01,655] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
> [2014-12-11 20:26:01,655] DEBUG - wire << "User-Agent:
> Synapse-PT-HttpComponents-NIO[\r][\n]"
>
>
> i am getting the error response in Rest Client
>
> 
> 
> 
> Failed API validation
> 
> 
>
>


-- 
Sivajothy Vanjikumaran
*Senior Software Engineer*
*Integration Technologies Team*
*WSO2 Inc. http://wso2.com *
*Mobile:(+94)777219209*
[image: Facebook]  [image: Twitter]
 [image: LinkedIn]
 [image:
Blogger]  [image: SlideShare]


This communication may contain privileged or other confidential information
and is intended exclusively for the addressee/s

[Dev] SHA 1 Hashing - error

2014-12-11 Thread Vanii Thiyagarajah
I am implementing the slideshare Connector using slideshare API.

I have to set this to the SHA1 hash of the concatenation of the shared
secret and the timestamp (ts). i.e. SHA1 (sharedsecret + timestamp).


package org.wso2.carbon.connector;

import java.math.BigInteger;
import java.security.MessageDigest;
import java.util.*;
import org.apache.synapse.MessageContext;
import java.io.UnsupportedEncodingException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

import org.apache.synapse.SynapseException;
import org.apache.synapse.mediators.AbstractMediator;

/**
 * Created by vanii on 12/9/14.
 */
public class Encoder extends AbstractMediator {

public static final String sha1Key = "uri.var.sha1Key";

public void generateHash(MessageContext msgctx) throws
UnsupportedEncodingException,NoSuchAlgorithmException, InvalidKeyException {
StringBuilder baseString = new StringBuilder();
MessageDigest md = MessageDigest.getInstance("MD5");


String timeStamp=String.valueOf(System.currentTimeMillis() / 1000);
msgctx.setProperty("uri.var.ts",timeStamp);


String input = msgctx.getProperty("uri.var.sha1Key").toString() +
timeStamp;
md.update(input.getBytes());

String hash = String.format("%032x", new BigInteger(1,
md.digest()));
msgctx.setProperty("uri.var.hash",hash);
}

public boolean mediate(MessageContext msgctx) {
try {
generateHash(msgctx);
} catch (Exception e) {
throw new SynapseException(e);
}
return true;
}
}



I am getting but the response says hashing is not correct.


[1]
[2014-12-11 20:26:01,652] DEBUG - headers http-outgoing-8 >> GET
https://www.slideshare.net/api/2/get_slideshow?api_key=4yCEGJou&ts=1418309760&hash=901c42f4bb22ee6617f2c82c81547bd3ad9b5b95&slideshow_id=124324&slideshow_url=http://www.slideshare.net/cocog520/-124324
HTTP/1.1
[2014-12-11 20:26:01,652] DEBUG - headers http-outgoing-8 >>
Accept-Language: en-US,en;q=0.8
[2014-12-11 20:26:01,652] DEBUG - headers http-outgoing-8 >> Cookie:
SERVERID=r87|VImwL|VImwJ
[2014-12-11 20:26:01,652] DEBUG - headers http-outgoing-8 >>
Accept-Encoding: gzip,deflate
[2014-12-11 20:26:01,653] DEBUG - headers http-outgoing-8 >> Origin:
chrome-extension://
hgmloofddffdnphfgcellkdfbfbjeloo
[2014-12-11 20:26:01,653] DEBUG - headers http-outgoing-8 >> Content-Type:
application/json
[2014-12-11 20:26:01,653] DEBUG - headers http-outgoing-8 >> Accept: */*
[2014-12-11 20:26:01,653] DEBUG - headers http-outgoing-8 >> Host:
www.slideshare.net:80
[2014-12-11 20:26:01,653] DEBUG - headers http-outgoing-8 >> Connection:
Keep-Alive
[2014-12-11 20:26:01,653] DEBUG - headers http-outgoing-8 >> User-Agent:
Synapse-PT-HttpComponents-NIO
[2014-12-11 20:26:01,654] DEBUG - wire << "GET
https://www.slideshare.net/api/2/get_slideshow?api_key=4yCEGJou&ts=1418309760&hash=901c42f4bb22ee6617f2c82c81547bd3ad9b5b95&slideshow_id=124324&slideshow_url=http://www.slideshare.net/cocog520/-124324
HTTP/1.1[\r][\n]"
[2014-12-11 20:26:01,654] DEBUG - wire << "Accept-Language:
en-US,en;q=0.8[\r][\n]"
[2014-12-11 20:26:01,654] DEBUG - wire << "Cookie:
SERVERID=r87|VImwL|VImwJ[\r][\n]"
[2014-12-11 20:26:01,654] DEBUG - wire << "Accept-Encoding:
gzip,deflate[\r][\n]"
[2014-12-11 20:26:01,655] DEBUG - wire << "Origin:
chrome-extension://hgmloofddffdnphfgcellkdfbfbjeloo[\r][\n]"
[2014-12-11 20:26:01,655] DEBUG - wire << "Content-Type:
application/json[\r][\n]"
[2014-12-11 20:26:01,655] DEBUG - wire << "Accept: */*[\r][\n]"
[2014-12-11 20:26:01,655] DEBUG - wire << "Host: www.slideshare.net:80
[\r][\n]"
[2014-12-11 20:26:01,655] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
[2014-12-11 20:26:01,655] DEBUG - wire << "User-Agent:
Synapse-PT-HttpComponents-NIO[\r][\n]"


i am getting the error response in Rest Client




Failed API validation


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


Re: [Dev] identity server latest source code chunk

2014-12-11 Thread Akalanka Pagoda Arachchi
Hi Marcin,

Also I believe the reason for the compilation failure is axis2 and axiom
snapshots have been removed from the repositories. You can change the axis2
and axiom versions in the product pom file as follows instead of SNAPSHOT
versions and try the build too.

1.2.11.wso2v5 1.6.1.wso2v11
Thanks,
Akalanka

On Thu, Dec 11, 2014 at 1:56 PM, Hasintha Indrajee 
wrote:

> Hi Marcin,
>
> Seems like the latest changes are not merged in the given git repo . Can
> you please try to build from [3].
>
> [3] https://github.com/wso2-dev/product-is
>
> On Wed, Dec 10, 2014 at 3:04 PM, Marcin Krystek 
> wrote:
>
>>  Hi Hasintha,
>>
>> Thank you for the quick response.
>>
>> I have tried both svn and git.
>>
>> Unfortunately svn checkout [1] returns only pom files and there is
>> something wrong woth project structure:
>> [ERROR]   The project org.wso2.carbon:product-releases:4.2.0-chunk15
>> (/mnt/storage1/oidc/workspace/wso2/wso2carbon-platform-source/pom.xml) has
>> 1 error
>> [ERROR] Non-resolvable parent POM: Could not find artifact
>> org.wso2.carbon:platform-parent:pom:4.2.0 in central (
>> http://repo.maven.apache.org/maven2) and 'parent.relativePath' points at
>> wrong local POM @ line 6, column 13 ->
>> I seems, that something more is required then simple checkout of chunk-15.
>>
>> Previously I have tried to follow the steps described in documentation:
>> https://docs.wso2.com/display/IS500/Building+from+Source which says:
>> svn checkout
>> https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk11/
>> and this command seems to checkout whole platform source. It lasts very
>> long, compilation process is even longer and the code unfortunately does
>> not contain latest updates.
>>
>> git clone [2] works fine, however during compilation the following error
>> occurs:
>> [ERROR] Failed to execute goal on project org.wso2.identity.styles: Could
>> not resolve dependencies for project
>> org.wso2.identity:org.wso2.identity.styles:bundle:5.1.0-SNAPSHOT: The
>> following artifacts could not be resolved:
>> org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v5-SNAPSHOT,
>> org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v11-SNAPSHOT: Could not find
>> artifact org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v5-SNAPSHOT
>> in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/)
>> -> [Help 1]
>>
>> Do you have any idea how to solve this issue?
>>
>> Best
>> Marcin
>>
>>
>> On 10/12/14 08:08, Hasintha Indrajee wrote:
>>
>> Hi Marcin,
>>
>>  You can use chunk 15 to build WSO2 Identity Server with latest updates.
>> Use the SVN location  [1] to checkout the source. At the same time we are
>> maintaining git repo for the IS with latest updates. Find the git repo [2]
>> with the latest updates.
>>
>>  [1]
>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/product-releases/chunk-15
>> [2] https://github.com/wso2/product-is
>>
>>  Thanks,
>> Hasintha.
>>
>>
>> On Tue, Dec 9, 2014 at 8:38 PM, Marcin Krystek 
>> wrote:
>>
>>> Hello,
>>>
>>> which svn chunk should I download to build WSO2 Identity Server with
>>> latest updates?
>>> Is this:
>>> https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk13/ ?
>>>
>>> Is this the only code I need to build this server or should I download
>>> and build something more?
>>>
>>> I'm interested in building server with latests bugfixes like:
>>> https://wso2.org/jira/browse/IDENTITY-2800
>>> and others.
>>>
>>> I will be grateful for direct svn links
>>>
>>> Thank you in advance,
>>>
>>> regards
>>> Marcin
>>>
>>> ___
>>> 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
>
>


-- 
*Darshana Akalanka Pagoda Arachchi,*
*Software Engineer*
*078-4721791*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What is the alternative for ServiceMetaData#isCAppArtifactSpecified()

2014-12-11 Thread Pubudu Dissanayake
Hi Jeewantha

It is not removed, *isCAppArtifact* is a newly added property to
service-mgt component. It will be available once it is merged to
carbon-deployment repo [1]
If you are referring to this ESB integration [2] please comment out until
that pull request is merged

[1] https://github.com/wso2-dev/carbon-deployment/pull/57
[2] https://github.com/wso2-dev/product-esb/pull/95

On Thu, Dec 11, 2014 at 6:30 PM, Jeewantha Dharmaparakrama <
jeewan...@wso2.com> wrote:

> Hi CarbonTeam,
>
> Looks like the method is removed from the new carbon-deployment module
> [1]. What is the alternative for this ?
>
> [1]
> https://github.com/wso2/carbon-deployment/blob/master/components/service-mgt/axis2-service-mgt/org.wso2.carbon.service.mgt/src/main/java/org/wso2/carbon/service/mgt/ServiceMetaData.java
>
> Thanks,
> Jeewantha
>
> --
> Jeewantha Dharmaparakrama
> Software Engineer; WSO2, Inc.; http://wso2.com/
> Phone : (+94) 778403757
> Blog: http://jeewanthad.blogspot.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Pubudu Dissanayake*
 Software Engineer

WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Mob: + 94 775 503 304

Blog: http://geekdetected.wordpress.com/
Linkedin: *http://lk.linkedin.com/in/pubududissanayake*

Flickr : https://www.flickr.com/photos/pubudufx/
Twitter: https://twitter.com/GeekInAction
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] What is the alternative for ServiceMetaData#isCAppArtifactSpecified()

2014-12-11 Thread Jeewantha Dharmaparakrama
Hi CarbonTeam,

Looks like the method is removed from the new carbon-deployment module [1].
What is the alternative for this ?

[1]
https://github.com/wso2/carbon-deployment/blob/master/components/service-mgt/axis2-service-mgt/org.wso2.carbon.service.mgt/src/main/java/org/wso2/carbon/service/mgt/ServiceMetaData.java

Thanks,
Jeewantha

-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 778403757
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Deploy Web App to Tomcat issue

2014-12-11 Thread Vijitha Ekanayake
Hi,

Thanks, I'll try this and get back to you.

On Thu, Dec 11, 2014 at 6:17 PM, Nuwan Wimalasekara  wrote:

> Hi
> Please refer the documentation[1] for how to deploy a web application on
> the tomcat server which can be started with test framework. You can follow
> sample test case from[2]
>
> [1]
> https://docs.wso2.com/display/TA430/Using+Embedded+Tomcat+Server+as+a+JAX-RS+Backend+for+REST+Testing
>
> [2]
> https://github.com/wso2-dev/product-esb/blob/master/modules/integration/tests-integration/tests-service/src/test/java/org/wso2/carbon/esb/jaxrs/rest/test/SoapToRestPeopleSampleTestCase.java
>
> Thanks,
> Nuwanw
>
> On Thu, Dec 11, 2014 at 6:05 PM, Irham Iqbal  wrote:
>
>> Yes we have,
>>
>> This[1] test case is for deploy a web application in AS.
>>
>> Using this code[2] you can see how we start,stop and restart carbon
>> servers.
>>
>> [1]
>> https://github.com/wso2-dev/product-as/blob/master/modules/integration/tests-integration/src/test/java/org/wso2/appserver/integration/tests/webapp/mgt/WebApplicationDeploymentTestCase.java
>>
>> [2]
>> https://github.com/wso2-dev/carbon-platform-integration/blob/master/test-automation-framework/org.wso2.carbon.automation.extensions/src/main/java/org/wso2/carbon/automation/extensions/servers/carbonserver/CarbonServerManager.java
>>
>> Thanks,
>>
>>
>> On Thu, Dec 11, 2014 at 5:29 PM, Kasun Indrasiri  wrote:
>>
>>> Do we have any test cases that we deploy web apps during integration
>>> test. Can you shed some light please.
>>>
>>> On Thu, Dec 11, 2014 at 1:20 PM, Irham Iqbal  wrote:
>>>
 Hi Vijitha,

 Did you try this manually ?

 I mean deploy your web application to a tomcat manually.

 Thanks,
 Iqbal

 On Thu, Dec 11, 2014 at 1:13 PM, Vijitha Ekanayake 
 wrote:

> Hi Malithi,
>
> Thanks for the response.
> the servlet-api jar is already inside WEB-INF/lib. as you said i was
> packaging the war adding dependency in provided scope. i tried packaging
> the war removing dependency provided scope. but still having the same 
> issue.
>
>
> On Thu, Dec 11, 2014 at 10:37 AM, Malithi Edirisinghe <
> malit...@wso2.com> wrote:
>
>> Hi Vijitha,
>>
>> Can you make sure whether you have the servlet-api jar inside
>> WEB-INF/lib or may be you are packaging the war adding this dependency in
>> provided scope.
>>
>> Thanks,
>> Malithi.
>>
>> On Thu, Dec 11, 2014 at 10:23 AM, Vijitha Ekanayake <
>> vijit...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> I am working on writing integration testing for ESB. Here I need to 
>>> start a tomcat instance and deploy web app to tomcat dynamically.When I 
>>> start and deploy the web app it gives following warning and application 
>>> failed to deploy. Same war file getting deployed successfully in 
>>> external tomcat Web Server.
>>>
>>> codes which have used to create tomcat instance and deploy webapp
>>>
>>> private final Tomcat tomcat = new Tomcat();
>>>
>>> // Configure the standard host
>>> StandardHost stdHost = (StandardHost) tomcat.getHost();
>>> stdHost.setAutoDeploy(true);
>>> stdHost.setDeployOnStartup(true);
>>> stdHost.setUnpackWARs(true);
>>> tomcat.setHost(stdHost);
>>>
>>> //deploy Service
>>> tomcat.addWebapp(tomcat.getHost(), *webAppUrl, 
>>> webAppPath*);
>>>
>>>*tomcat.start();*
>>>
>>>
>>> INFO: No global web.xml found
>>> Dec 11, 2014 10:08:50 AM org.apache.catalina.core.ApplicationContext
>>> log
>>> INFO: Marking servlet jsp as unavailable
>>> Dec 11, 2014 10:08:50 AM org.apache.catalina.core.StandardContext
>>> loadOnStartup
>>> SEVERE: Servlet /service threw load() exception
>>> java.lang.ClassNotFoundException:
>>> org.apache.jasper.servlet.JspServlet
>>> at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
>>> at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
>>> at
>>> org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
>>> at
>>> org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
>>> at
>>> org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)
>>> at
>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1137)
>>> at
>>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1081)
>>> at
>>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027)
>>> at
>>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
>>

[Dev] Add the attachment to parent sObject in Salesforce

2014-12-11 Thread Kathees Rajendram
Hi,

I need to add the base64 encoding attachment to parent sObject in
Salesforce. I used the following payload. Could you please suggest a way?
We use the Salesforce partner WSDL.



http://schemas.xmlsoap.org/soap/envelope/";
xmlns:urn="urn:partner.soap.sforce.com">


$1






This is the base64 encoding attachment

try {
Axis2MessageContext axisMsgContext = (Axis2MessageContext)
synCtx;
org.apache.axis2.context.MessageContext msgContext =
axisMsgContext
.getAxis2MessageContext();
InputStream message = msgContext.attachments
.getSOAPPartInputStream();
byte[] bytes = IOUtils.toByteArray(message);

String encoded = Base64.encode(bytes);

synCtx.setProperty("attachmentObject", encoded);

}

Thanks,
Kathees

-- 
Kathees
Software Engineer,
email: kath...@wso2.com
mobile: +94772596173
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Deploy Web App to Tomcat issue

2014-12-11 Thread Nuwan Wimalasekara
Hi
Please refer the documentation[1] for how to deploy a web application on
the tomcat server which can be started with test framework. You can follow
sample test case from[2]

[1]
https://docs.wso2.com/display/TA430/Using+Embedded+Tomcat+Server+as+a+JAX-RS+Backend+for+REST+Testing

[2]
https://github.com/wso2-dev/product-esb/blob/master/modules/integration/tests-integration/tests-service/src/test/java/org/wso2/carbon/esb/jaxrs/rest/test/SoapToRestPeopleSampleTestCase.java

Thanks,
Nuwanw

On Thu, Dec 11, 2014 at 6:05 PM, Irham Iqbal  wrote:

> Yes we have,
>
> This[1] test case is for deploy a web application in AS.
>
> Using this code[2] you can see how we start,stop and restart carbon
> servers.
>
> [1]
> https://github.com/wso2-dev/product-as/blob/master/modules/integration/tests-integration/src/test/java/org/wso2/appserver/integration/tests/webapp/mgt/WebApplicationDeploymentTestCase.java
>
> [2]
> https://github.com/wso2-dev/carbon-platform-integration/blob/master/test-automation-framework/org.wso2.carbon.automation.extensions/src/main/java/org/wso2/carbon/automation/extensions/servers/carbonserver/CarbonServerManager.java
>
> Thanks,
>
>
> On Thu, Dec 11, 2014 at 5:29 PM, Kasun Indrasiri  wrote:
>
>> Do we have any test cases that we deploy web apps during integration
>> test. Can you shed some light please.
>>
>> On Thu, Dec 11, 2014 at 1:20 PM, Irham Iqbal  wrote:
>>
>>> Hi Vijitha,
>>>
>>> Did you try this manually ?
>>>
>>> I mean deploy your web application to a tomcat manually.
>>>
>>> Thanks,
>>> Iqbal
>>>
>>> On Thu, Dec 11, 2014 at 1:13 PM, Vijitha Ekanayake 
>>> wrote:
>>>
 Hi Malithi,

 Thanks for the response.
 the servlet-api jar is already inside WEB-INF/lib. as you said i was
 packaging the war adding dependency in provided scope. i tried packaging
 the war removing dependency provided scope. but still having the same 
 issue.


 On Thu, Dec 11, 2014 at 10:37 AM, Malithi Edirisinghe <
 malit...@wso2.com> wrote:

> Hi Vijitha,
>
> Can you make sure whether you have the servlet-api jar inside
> WEB-INF/lib or may be you are packaging the war adding this dependency in
> provided scope.
>
> Thanks,
> Malithi.
>
> On Thu, Dec 11, 2014 at 10:23 AM, Vijitha Ekanayake  > wrote:
>
>> Hi,
>>
>> I am working on writing integration testing for ESB. Here I need to 
>> start a tomcat instance and deploy web app to tomcat dynamically.When I 
>> start and deploy the web app it gives following warning and application 
>> failed to deploy. Same war file getting deployed successfully in 
>> external tomcat Web Server.
>>
>> codes which have used to create tomcat instance and deploy webapp
>>
>> private final Tomcat tomcat = new Tomcat();
>>
>> // Configure the standard host
>>  StandardHost stdHost = (StandardHost) tomcat.getHost();
>>  stdHost.setAutoDeploy(true);
>>  stdHost.setDeployOnStartup(true);
>>  stdHost.setUnpackWARs(true);
>>  tomcat.setHost(stdHost);
>>
>>  //deploy Service
>>  tomcat.addWebapp(tomcat.getHost(), *webAppUrl, webAppPath*);
>>
>>*tomcat.start();*
>>
>>
>> INFO: No global web.xml found
>> Dec 11, 2014 10:08:50 AM org.apache.catalina.core.ApplicationContext
>> log
>> INFO: Marking servlet jsp as unavailable
>> Dec 11, 2014 10:08:50 AM org.apache.catalina.core.StandardContext
>> loadOnStartup
>> SEVERE: Servlet /service threw load() exception
>> java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet
>> at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
>> at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
>> at
>> org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
>> at
>> org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
>> at
>> org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)
>> at
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1137)
>> at
>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1081)
>> at
>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027)
>> at
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
>> at
>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>> at
>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
>> at
>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
>> at java.util.concurrent.FutureTask$Sync.innerRun

Re: [Dev] Deploy Web App to Tomcat issue

2014-12-11 Thread Irham Iqbal
Yes we have,

This[1] test case is for deploy a web application in AS.

Using this code[2] you can see how we start,stop and restart carbon servers.

[1]
https://github.com/wso2-dev/product-as/blob/master/modules/integration/tests-integration/src/test/java/org/wso2/appserver/integration/tests/webapp/mgt/WebApplicationDeploymentTestCase.java

[2]
https://github.com/wso2-dev/carbon-platform-integration/blob/master/test-automation-framework/org.wso2.carbon.automation.extensions/src/main/java/org/wso2/carbon/automation/extensions/servers/carbonserver/CarbonServerManager.java

Thanks,


On Thu, Dec 11, 2014 at 5:29 PM, Kasun Indrasiri  wrote:

> Do we have any test cases that we deploy web apps during integration test.
> Can you shed some light please.
>
> On Thu, Dec 11, 2014 at 1:20 PM, Irham Iqbal  wrote:
>
>> Hi Vijitha,
>>
>> Did you try this manually ?
>>
>> I mean deploy your web application to a tomcat manually.
>>
>> Thanks,
>> Iqbal
>>
>> On Thu, Dec 11, 2014 at 1:13 PM, Vijitha Ekanayake 
>> wrote:
>>
>>> Hi Malithi,
>>>
>>> Thanks for the response.
>>> the servlet-api jar is already inside WEB-INF/lib. as you said i was
>>> packaging the war adding dependency in provided scope. i tried packaging
>>> the war removing dependency provided scope. but still having the same issue.
>>>
>>>
>>> On Thu, Dec 11, 2014 at 10:37 AM, Malithi Edirisinghe >> > wrote:
>>>
 Hi Vijitha,

 Can you make sure whether you have the servlet-api jar inside
 WEB-INF/lib or may be you are packaging the war adding this dependency in
 provided scope.

 Thanks,
 Malithi.

 On Thu, Dec 11, 2014 at 10:23 AM, Vijitha Ekanayake 
 wrote:

> Hi,
>
> I am working on writing integration testing for ESB. Here I need to start 
> a tomcat instance and deploy web app to tomcat dynamically.When I start 
> and deploy the web app it gives following warning and application failed 
> to deploy. Same war file getting deployed successfully in external tomcat 
> Web Server.
>
> codes which have used to create tomcat instance and deploy webapp
>
> private final Tomcat tomcat = new Tomcat();
>
> // Configure the standard host
>   StandardHost stdHost = (StandardHost) tomcat.getHost();
>   stdHost.setAutoDeploy(true);
>   stdHost.setDeployOnStartup(true);
>   stdHost.setUnpackWARs(true);
>   tomcat.setHost(stdHost);
>
>   //deploy Service
>   tomcat.addWebapp(tomcat.getHost(), *webAppUrl, webAppPath*);
>
>*tomcat.start();*
>
>
> INFO: No global web.xml found
> Dec 11, 2014 10:08:50 AM org.apache.catalina.core.ApplicationContext
> log
> INFO: Marking servlet jsp as unavailable
> Dec 11, 2014 10:08:50 AM org.apache.catalina.core.StandardContext
> loadOnStartup
> SEVERE: Servlet /service threw load() exception
> java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
> at
> org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
> at
> org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
> at
> org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1137)
> at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1081)
> at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027)
> at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
> at java.lang.Thread.run(Thread.java:695)
>
> I put the required jars to to the classpath but still getting the same
> issue.Can anyone help me to sort out this issue?
>
>
> Thanks.
>
>
> --
> Vijitha Ekanayake
> Software Engineer*, *WSO2, Inc.; http://wso2.com/
> Mobile : +94 777 24 73 39 | +94 718 74 44 08
> lean.enterprise.middleware
>
> __

Re: [Dev] Getting an error 505 Http Version Not Supported

2014-12-11 Thread Vanjikumaran Sivajothy
Hi,

I have tested your use case[1] with 4.9.0 M3 pack with url encoding and it
worked. This is not working in 4.8.1 due to a bug [2] in ESB on handling
201 response with payload.


You can find the M3 pack in [2]


Best Regards,
Vanji

[1]
http://ws.apache.org/ns/synapse"; name="strip" context="/strip">
   
  
 
 
 

   https://invoice.zoho.com/api/v3/customerpayments?authtoken=c1f8014366dd6ffd2691f9671f70de50&JSONString={'customer_id':'57153200042068
','date':'2014-12-18','description':'*hai%20hello'*
,'amount':'200.00'}">

 
 
  
   



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

[3]
http://svn.wso2.org/repos/wso2/people/malaka/ESB/ESB4.9.0/M3/wso2esb-4.9.0-SNAPSHOT.zip

-- Forwarded message --
From: Sriashalya Srivathsan 
Date: Wed, Dec 10, 2014 at 10:42 PM
Subject: Re: Getting an error 505 Http Version Not Supported
To: Malaka Silva 
Cc: WSO2 Developers' List , Vanjikumaran Sivajothy <
va...@wso2.com>


No,Only through the ESB.

On Wed, Dec 10, 2014 at 10:38 PM, Malaka Silva  wrote:

> Are you getting the same error, if you directly invoke the api via a rest
> client?
>
> On Wed, Dec 10, 2014 at 7:08 PM, Sriashalya Srivathsan 
> wrote:
>
>> I'm doing ZOHO-Invoice  ESB Connector.When i send  request to end points
>> with the optional parameter *description* to the back end,It returns the
>> error code *505 Http Version Not Supported. *
>>
>> If the description parameter sent without any spaces I am able to get the
>> correct response. The only issue is send the optional parameters with space
>> Note that I also tried to sent the encoded value. For that  also I got
>> 505 error.
>>
>>
>> Please find the wire log below.
>>
>> [2014-12-10 15:55:44,594] DEBUG - wire >> "POST
>> /services/zoho_CreateCustomerPayments HTTP/1.1[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Host:
>> sriashalyas-macbook-pro.local:8280[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Connection: keep-alive[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Content-Length: 130[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Cache-Control:
>> no-cache[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Origin:
>> chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "User-Agent: Mozilla/5.0
>> (Macintosh; Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko)
>> Chrome/39.0.2171.71 Safari/537.36[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Content-Type:
>> application/json[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Accept: */*[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Accept-Encoding: gzip,
>> deflate[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Accept-Language:
>> en-US,en;q=0.8,ta;q=0.6[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Cookie:
>> JSESSIONID=E0D69224FA87FEC1A8F0D2AD751EBDE5;
>> edfb7d8656=9c1fd4635ab50f92ceb89a2f6139a417[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "[\r][\n]"
>>
>> [2014-12-10 15:55:44,596] DEBUG - wire >> "{[\n]"
>>
>> [2014-12-10 15:55:44,596] DEBUG - wire >> "
>> "authtoken":"c1f8014366dd6ffd2691f9671f70de50",[\n]"
>>
>> [2014-12-10 15:55:44,596] DEBUG - wire >> "
>> "customer_id":"57153200042068",[\n]"
>>
>> [2014-12-10 15:55:44,596] DEBUG - wire >> ""date":"2014-12-18",[\n]"
>>
>> [2014-12-10 15:55:44,596] DEBUG - wire >> ""amount":"200.00"[\n]"
>>
>> [2014-12-10 15:55:44,596] DEBUG - wire >> "}"
>>
>> -10 15:55:44,648]  INFO - TimeoutHandler This engine will expire all
>> callbacks after : 120 seconds, irrespective of the timeout action, after
>> the specified or optional timeout
>>
>> [2014-12-10 15:55:45,568] DEBUG - wire << "POST
>> https://invoice.zoho.com/api/v3/customerpayments?authtoken=c1f8014366dd6ffd2691f9671f70de50&JSONString={
>> "customer_id":"57153200042068","date":"2014-12-18","amount":"200.00","description":"hai
>> hello"} HTTP/1.1[\r][\n]"
>>
>> [2014-12-10 15:55:45,568] DEBUG - wire << "Accept-Language:
>> en-US,en;q=0.8,ta;q=0.6[\r][\n]"
>>
>> [2014-12-10 15:55:45,568] DEBUG - wire << "Cookie:
>> JSESSIONID=E0D69224FA87FEC1A8F0D2AD751EBDE5;
>> edfb7d8656=9c1fd4635ab50f92ceb89a2f6139a417[\r][\n]"
>>
>> [2014-12-10 15:55:45,568] DEBUG - wire << "Host: invoice.zoho.com
>> [\r][\n]"
>>
>> [2014-12-10 15:55:45,569] DEBUG - wire << "Accept-Encoding: gzip,
>> deflate[\r][\n]"
>>
>> [2014-12-10 15:55:45,569] DEBUG - wire << "Origin:
>> chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"
>>
>> [2014-12-10 15:55:45,569] DEBUG - wire << "Content-Type:
>> application/json; charset=UTF-8[\r][\n]"
>>
>> [2014-12-10 15:55:45,569] DEBUG - wire << "Accept: */*[\r][\n]"
>>
>> [2014-12-10 15:55:45,569] DEBUG - wire << "Cache-Control:
>> no-cache[\r][\n]"
>>
>> [2014-12-10 15:55:45,569] DEBUG - wire << "Transfer-Encoding:
>> chunked[\r][\n]"
>>
>> [2014-12-10 15:55:45,569] DEBUG - wire << "Connec

Re: [Dev] Deploy Web App to Tomcat issue

2014-12-11 Thread Kasun Indrasiri
Do we have any test cases that we deploy web apps during integration test.
Can you shed some light please.

On Thu, Dec 11, 2014 at 1:20 PM, Irham Iqbal  wrote:

> Hi Vijitha,
>
> Did you try this manually ?
>
> I mean deploy your web application to a tomcat manually.
>
> Thanks,
> Iqbal
>
> On Thu, Dec 11, 2014 at 1:13 PM, Vijitha Ekanayake 
> wrote:
>
>> Hi Malithi,
>>
>> Thanks for the response.
>> the servlet-api jar is already inside WEB-INF/lib. as you said i was
>> packaging the war adding dependency in provided scope. i tried packaging
>> the war removing dependency provided scope. but still having the same issue.
>>
>>
>> On Thu, Dec 11, 2014 at 10:37 AM, Malithi Edirisinghe 
>> wrote:
>>
>>> Hi Vijitha,
>>>
>>> Can you make sure whether you have the servlet-api jar inside
>>> WEB-INF/lib or may be you are packaging the war adding this dependency in
>>> provided scope.
>>>
>>> Thanks,
>>> Malithi.
>>>
>>> On Thu, Dec 11, 2014 at 10:23 AM, Vijitha Ekanayake 
>>> wrote:
>>>
 Hi,

 I am working on writing integration testing for ESB. Here I need to start 
 a tomcat instance and deploy web app to tomcat dynamically.When I start 
 and deploy the web app it gives following warning and application failed 
 to deploy. Same war file getting deployed successfully in external tomcat 
 Web Server.

 codes which have used to create tomcat instance and deploy webapp

 private final Tomcat tomcat = new Tomcat();

 // Configure the standard host
StandardHost stdHost = (StandardHost) tomcat.getHost();
stdHost.setAutoDeploy(true);
stdHost.setDeployOnStartup(true);
stdHost.setUnpackWARs(true);
tomcat.setHost(stdHost);

//deploy Service
tomcat.addWebapp(tomcat.getHost(), *webAppUrl, webAppPath*);

*tomcat.start();*


 INFO: No global web.xml found
 Dec 11, 2014 10:08:50 AM org.apache.catalina.core.ApplicationContext log
 INFO: Marking servlet jsp as unavailable
 Dec 11, 2014 10:08:50 AM org.apache.catalina.core.StandardContext
 loadOnStartup
 SEVERE: Servlet /service threw load() exception
 java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet
 at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
 at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
 at
 org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
 at
 org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
 at
 org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:133)
 at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1137)
 at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1081)
 at
 org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027)
 at
 org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at
 org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
 at
 org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
 at java.lang.Thread.run(Thread.java:695)

 I put the required jars to to the classpath but still getting the same
 issue.Can anyone help me to sort out this issue?


 Thanks.


 --
 Vijitha Ekanayake
 Software Engineer*, *WSO2, Inc.; http://wso2.com/
 Mobile : +94 777 24 73 39 | +94 718 74 44 08
 lean.enterprise.middleware

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


>>>
>>>
>>> --
>>>
>>> *Malithi Edirisinghe*
>>> Senior Software Engineer
>>> WSO2 Inc.
>>>
>>> Mobile : +94 (0) 718176807
>>> malit...@wso2.com
>>>
>>
>>
>>
>> --
>> Vijitha Ekanayake
>> Software Engineer*, *WSO2, Inc.; http://wso2.com/
>> Mobile : +94 777 24 73 39 | +94 718 74 44 08
>> lean.enterprise.middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Irham Iqbal
> Software Engineer - Test Automation
>  WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
> phone: +94 777888452
>
> __

Re: [Dev] Getting an error 505 Http Version Not Supported

2014-12-11 Thread Malaka Silva
Are you getting the same error, if you directly invoke the api via a rest
client?

On Wed, Dec 10, 2014 at 7:08 PM, Sriashalya Srivathsan 
wrote:

> I'm doing ZOHO-Invoice  ESB Connector.When i send  request to end points
> with the optional parameter *description* to the back end,It returns the
> error code *505 Http Version Not Supported. *
>
> If the description parameter sent without any spaces I am able to get the
> correct response. The only issue is send the optional parameters with space
> Note that I also tried to sent the encoded value. For that  also I got 505
> error.
>
>
> Please find the wire log below.
>
> [2014-12-10 15:55:44,594] DEBUG - wire >> "POST
> /services/zoho_CreateCustomerPayments HTTP/1.1[\r][\n]"
>
> [2014-12-10 15:55:44,595] DEBUG - wire >> "Host:
> sriashalyas-macbook-pro.local:8280[\r][\n]"
>
> [2014-12-10 15:55:44,595] DEBUG - wire >> "Connection: keep-alive[\r][\n]"
>
> [2014-12-10 15:55:44,595] DEBUG - wire >> "Content-Length: 130[\r][\n]"
>
> [2014-12-10 15:55:44,595] DEBUG - wire >> "Cache-Control: no-cache[\r][\n]"
>
> [2014-12-10 15:55:44,595] DEBUG - wire >> "Origin:
> chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"
>
> [2014-12-10 15:55:44,595] DEBUG - wire >> "User-Agent: Mozilla/5.0
> (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko)
> Chrome/39.0.2171.71 Safari/537.36[\r][\n]"
>
> [2014-12-10 15:55:44,595] DEBUG - wire >> "Content-Type:
> application/json[\r][\n]"
>
> [2014-12-10 15:55:44,595] DEBUG - wire >> "Accept: */*[\r][\n]"
>
> [2014-12-10 15:55:44,595] DEBUG - wire >> "Accept-Encoding: gzip,
> deflate[\r][\n]"
>
> [2014-12-10 15:55:44,595] DEBUG - wire >> "Accept-Language:
> en-US,en;q=0.8,ta;q=0.6[\r][\n]"
>
> [2014-12-10 15:55:44,595] DEBUG - wire >> "Cookie:
> JSESSIONID=E0D69224FA87FEC1A8F0D2AD751EBDE5;
> edfb7d8656=9c1fd4635ab50f92ceb89a2f6139a417[\r][\n]"
>
> [2014-12-10 15:55:44,595] DEBUG - wire >> "[\r][\n]"
>
> [2014-12-10 15:55:44,596] DEBUG - wire >> "{[\n]"
>
> [2014-12-10 15:55:44,596] DEBUG - wire >> "
> "authtoken":"c1f8014366dd6ffd2691f9671f70de50",[\n]"
>
> [2014-12-10 15:55:44,596] DEBUG - wire >> "
> "customer_id":"57153200042068",[\n]"
>
> [2014-12-10 15:55:44,596] DEBUG - wire >> ""date":"2014-12-18",[\n]"
>
> [2014-12-10 15:55:44,596] DEBUG - wire >> ""amount":"200.00"[\n]"
>
> [2014-12-10 15:55:44,596] DEBUG - wire >> "}"
>
> -10 15:55:44,648]  INFO - TimeoutHandler This engine will expire all
> callbacks after : 120 seconds, irrespective of the timeout action, after
> the specified or optional timeout
>
> [2014-12-10 15:55:45,568] DEBUG - wire << "POST
> https://invoice.zoho.com/api/v3/customerpayments?authtoken=c1f8014366dd6ffd2691f9671f70de50&JSONString={
> "customer_id":"57153200042068","date":"2014-12-18","amount":"200.00","description":"hai
> hello"} HTTP/1.1[\r][\n]"
>
> [2014-12-10 15:55:45,568] DEBUG - wire << "Accept-Language:
> en-US,en;q=0.8,ta;q=0.6[\r][\n]"
>
> [2014-12-10 15:55:45,568] DEBUG - wire << "Cookie:
> JSESSIONID=E0D69224FA87FEC1A8F0D2AD751EBDE5;
> edfb7d8656=9c1fd4635ab50f92ceb89a2f6139a417[\r][\n]"
>
> [2014-12-10 15:55:45,568] DEBUG - wire << "Host: invoice.zoho.com[\r][\n]"
>
> [2014-12-10 15:55:45,569] DEBUG - wire << "Accept-Encoding: gzip,
> deflate[\r][\n]"
>
> [2014-12-10 15:55:45,569] DEBUG - wire << "Origin:
> chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"
>
> [2014-12-10 15:55:45,569] DEBUG - wire << "Content-Type: application/json;
> charset=UTF-8[\r][\n]"
>
> [2014-12-10 15:55:45,569] DEBUG - wire << "Accept: */*[\r][\n]"
>
> [2014-12-10 15:55:45,569] DEBUG - wire << "Cache-Control: no-cache[\r][\n]"
>
> [2014-12-10 15:55:45,569] DEBUG - wire << "Transfer-Encoding:
> chunked[\r][\n]"
>
> [2014-12-10 15:55:45,569] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
>
> [2014-12-10 15:55:45,569] DEBUG - wire << "User-Agent:
> Synapse-PT-HttpComponents-NIO[\r][\n]"
>
> [2014-12-10 15:55:45,569] DEBUG - wire << "[\r][\n]"
>
> [2014-12-10 15:55:45,570] DEBUG - wire << "82[\r][\n]"
>
> [2014-12-10 15:55:45,570] DEBUG - wire << "{[\n]"
>
> [2014-12-10 15:55:45,570] DEBUG - wire << "
> "authtoken":"c1f8014366dd6ffd2691f9671f70de50",[\n]"
>
> [2014-12-10 15:55:45,570] DEBUG - wire << "
> "customer_id":"57153200042068",[\n]"
>
> [2014-12-10 15:55:45,570] DEBUG - wire << ""date":"2014-12-18",[\n]"
>
> [2014-12-10 15:55:45,570] DEBUG - wire << ""amount":"200.00"[\n]"
>
> [2014-12-10 15:55:45,570] DEBUG - wire << "}[\r][\n]"
>
> [2014-12-10 15:55:45,571] DEBUG - wire << "0[\r][\n]"
>
> [2014-12-10 15:55:45,571] DEBUG - wire << "[\r][\n]"
>
> [2014-12-10 15:55:45,824] DEBUG - wire >> "HTTP/1.1 505 HTTP Version Not
> Supported[\r][\n]"
>
> [2014-12-10 15:55:45,824] DEBUG - wire >> "Server: ZGS[\r][\n]"
>
> [2014-12-10 15:55:45,825] DEBUG - wire >> "Date: Wed, 10 Dec 2014 10:25:45
> GMT[\r][\n]"
>
> [2014-12-10 15:55:45,825] DEBUG - wire >> "Transfer-Encoding:
> chunked[\r][\n]"
>
> [2014-12-10 15:55:45,825] DEBUG - wire >> "Connection: keep-alive[\

Re: [Dev] Can we associate multiple assertion consumer URLs for a service provider ?

2014-12-11 Thread Darshana Gunawardana
AFAIK, we don't support registering multiple ACS urls.. But IdP honour to
the ACS in the authentication request, if the request is signed.

On Thu, Dec 11, 2014 at 12:51 PM, Dinusha Senanayaka 
wrote:

> Hi,
>
> Requirement is, in App Manager, synapse gateway act as the assertion
> consumer URL. It's possible to expose gateway url from http and https at
> the same time which will give two access urls. So when we registering SP
> for this app, we need to associate both http and https urls as assertion
> consumer urls.
>
> Regards,
> Dinusha.
>
> --
> Dinusha Dilrukshi
> Senior Software Engineer
> WSO2 Inc.: http://wso2.com/
> Mobile: +94725255071
> Blog: http://dinushasblog.blogspot.com/
>



-- 
Regards,


*Darshana Gunawardana*Software Engineer
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com *
*Mobile: +94718566859*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting an error 505 Http Version Not Supported

2014-12-11 Thread Sriashalya Srivathsan
No,Only through the ESB.

On Wed, Dec 10, 2014 at 10:38 PM, Malaka Silva  wrote:

> Are you getting the same error, if you directly invoke the api via a rest
> client?
>
> On Wed, Dec 10, 2014 at 7:08 PM, Sriashalya Srivathsan 
> wrote:
>
>> I'm doing ZOHO-Invoice  ESB Connector.When i send  request to end points
>> with the optional parameter *description* to the back end,It returns the
>> error code *505 Http Version Not Supported. *
>>
>> If the description parameter sent without any spaces I am able to get the
>> correct response. The only issue is send the optional parameters with space
>> Note that I also tried to sent the encoded value. For that  also I got
>> 505 error.
>>
>>
>> Please find the wire log below.
>>
>> [2014-12-10 15:55:44,594] DEBUG - wire >> "POST
>> /services/zoho_CreateCustomerPayments HTTP/1.1[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Host:
>> sriashalyas-macbook-pro.local:8280[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Connection: keep-alive[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Content-Length: 130[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Cache-Control:
>> no-cache[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Origin:
>> chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "User-Agent: Mozilla/5.0
>> (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko)
>> Chrome/39.0.2171.71 Safari/537.36[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Content-Type:
>> application/json[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Accept: */*[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Accept-Encoding: gzip,
>> deflate[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Accept-Language:
>> en-US,en;q=0.8,ta;q=0.6[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "Cookie:
>> JSESSIONID=E0D69224FA87FEC1A8F0D2AD751EBDE5;
>> edfb7d8656=9c1fd4635ab50f92ceb89a2f6139a417[\r][\n]"
>>
>> [2014-12-10 15:55:44,595] DEBUG - wire >> "[\r][\n]"
>>
>> [2014-12-10 15:55:44,596] DEBUG - wire >> "{[\n]"
>>
>> [2014-12-10 15:55:44,596] DEBUG - wire >> "
>> "authtoken":"c1f8014366dd6ffd2691f9671f70de50",[\n]"
>>
>> [2014-12-10 15:55:44,596] DEBUG - wire >> "
>> "customer_id":"57153200042068",[\n]"
>>
>> [2014-12-10 15:55:44,596] DEBUG - wire >> ""date":"2014-12-18",[\n]"
>>
>> [2014-12-10 15:55:44,596] DEBUG - wire >> ""amount":"200.00"[\n]"
>>
>> [2014-12-10 15:55:44,596] DEBUG - wire >> "}"
>>
>> -10 15:55:44,648]  INFO - TimeoutHandler This engine will expire all
>> callbacks after : 120 seconds, irrespective of the timeout action, after
>> the specified or optional timeout
>>
>> [2014-12-10 15:55:45,568] DEBUG - wire << "POST
>> https://invoice.zoho.com/api/v3/customerpayments?authtoken=c1f8014366dd6ffd2691f9671f70de50&JSONString={
>> "customer_id":"57153200042068","date":"2014-12-18","amount":"200.00","description":"hai
>> hello"} HTTP/1.1[\r][\n]"
>>
>> [2014-12-10 15:55:45,568] DEBUG - wire << "Accept-Language:
>> en-US,en;q=0.8,ta;q=0.6[\r][\n]"
>>
>> [2014-12-10 15:55:45,568] DEBUG - wire << "Cookie:
>> JSESSIONID=E0D69224FA87FEC1A8F0D2AD751EBDE5;
>> edfb7d8656=9c1fd4635ab50f92ceb89a2f6139a417[\r][\n]"
>>
>> [2014-12-10 15:55:45,568] DEBUG - wire << "Host: invoice.zoho.com
>> [\r][\n]"
>>
>> [2014-12-10 15:55:45,569] DEBUG - wire << "Accept-Encoding: gzip,
>> deflate[\r][\n]"
>>
>> [2014-12-10 15:55:45,569] DEBUG - wire << "Origin:
>> chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"
>>
>> [2014-12-10 15:55:45,569] DEBUG - wire << "Content-Type:
>> application/json; charset=UTF-8[\r][\n]"
>>
>> [2014-12-10 15:55:45,569] DEBUG - wire << "Accept: */*[\r][\n]"
>>
>> [2014-12-10 15:55:45,569] DEBUG - wire << "Cache-Control:
>> no-cache[\r][\n]"
>>
>> [2014-12-10 15:55:45,569] DEBUG - wire << "Transfer-Encoding:
>> chunked[\r][\n]"
>>
>> [2014-12-10 15:55:45,569] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"
>>
>> [2014-12-10 15:55:45,569] DEBUG - wire << "User-Agent:
>> Synapse-PT-HttpComponents-NIO[\r][\n]"
>>
>> [2014-12-10 15:55:45,569] DEBUG - wire << "[\r][\n]"
>>
>> [2014-12-10 15:55:45,570] DEBUG - wire << "82[\r][\n]"
>>
>> [2014-12-10 15:55:45,570] DEBUG - wire << "{[\n]"
>>
>> [2014-12-10 15:55:45,570] DEBUG - wire << "
>> "authtoken":"c1f8014366dd6ffd2691f9671f70de50",[\n]"
>>
>> [2014-12-10 15:55:45,570] DEBUG - wire << "
>> "customer_id":"57153200042068",[\n]"
>>
>> [2014-12-10 15:55:45,570] DEBUG - wire << ""date":"2014-12-18",[\n]"
>>
>> [2014-12-10 15:55:45,570] DEBUG - wire << ""amount":"200.00"[\n]"
>>
>> [2014-12-10 15:55:45,570] DEBUG - wire << "}[\r][\n]"
>>
>> [2014-12-10 15:55:45,571] DEBUG - wire << "0[\r][\n]"
>>
>> [2014-12-10 15:55:45,571] DEBUG - wire << "[\r][\n]"
>>
>> [2014-12-10 15:55:45,824] DEBUG - wire >> "HTTP/1.1 505 HTTP Version Not
>> Supported[\r][\n]"
>>
>> [2014-12-10 15:55:45,824] DEBUG - wire >> "Server: ZGS[\r][\n]"
>>
>> [2014-12-10 15:

[Dev] Getting an error 505 Http Version Not Supported

2014-12-11 Thread Sriashalya Srivathsan
I'm doing ZOHO-Invoice  ESB Connector.When i send  request to end points
with the optional parameter *description* to the back end,It returns the
error code *505 Http Version Not Supported. *

If the description parameter sent without any spaces I am able to get the
correct response. The only issue is send the optional parameters with space
Note that I also tried to sent the encoded value. For that  also I got 505
error.


Please find the wire log below.

[2014-12-10 15:55:44,594] DEBUG - wire >> "POST
/services/zoho_CreateCustomerPayments HTTP/1.1[\r][\n]"

[2014-12-10 15:55:44,595] DEBUG - wire >> "Host:
sriashalyas-macbook-pro.local:8280[\r][\n]"

[2014-12-10 15:55:44,595] DEBUG - wire >> "Connection: keep-alive[\r][\n]"

[2014-12-10 15:55:44,595] DEBUG - wire >> "Content-Length: 130[\r][\n]"

[2014-12-10 15:55:44,595] DEBUG - wire >> "Cache-Control: no-cache[\r][\n]"

[2014-12-10 15:55:44,595] DEBUG - wire >> "Origin:
chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"

[2014-12-10 15:55:44,595] DEBUG - wire >> "User-Agent: Mozilla/5.0
(Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/39.0.2171.71 Safari/537.36[\r][\n]"

[2014-12-10 15:55:44,595] DEBUG - wire >> "Content-Type:
application/json[\r][\n]"

[2014-12-10 15:55:44,595] DEBUG - wire >> "Accept: */*[\r][\n]"

[2014-12-10 15:55:44,595] DEBUG - wire >> "Accept-Encoding: gzip,
deflate[\r][\n]"

[2014-12-10 15:55:44,595] DEBUG - wire >> "Accept-Language:
en-US,en;q=0.8,ta;q=0.6[\r][\n]"

[2014-12-10 15:55:44,595] DEBUG - wire >> "Cookie:
JSESSIONID=E0D69224FA87FEC1A8F0D2AD751EBDE5;
edfb7d8656=9c1fd4635ab50f92ceb89a2f6139a417[\r][\n]"

[2014-12-10 15:55:44,595] DEBUG - wire >> "[\r][\n]"

[2014-12-10 15:55:44,596] DEBUG - wire >> "{[\n]"

[2014-12-10 15:55:44,596] DEBUG - wire >> "
"authtoken":"c1f8014366dd6ffd2691f9671f70de50",[\n]"

[2014-12-10 15:55:44,596] DEBUG - wire >> "
"customer_id":"57153200042068",[\n]"

[2014-12-10 15:55:44,596] DEBUG - wire >> ""date":"2014-12-18",[\n]"

[2014-12-10 15:55:44,596] DEBUG - wire >> ""amount":"200.00"[\n]"

[2014-12-10 15:55:44,596] DEBUG - wire >> "}"

-10 15:55:44,648]  INFO - TimeoutHandler This engine will expire all
callbacks after : 120 seconds, irrespective of the timeout action, after
the specified or optional timeout

[2014-12-10 15:55:45,568] DEBUG - wire << "POST
https://invoice.zoho.com/api/v3/customerpayments?authtoken=c1f8014366dd6ffd2691f9671f70de50&JSONString={
"customer_id":"57153200042068","date":"2014-12-18","amount":"200.00","description":"hai
hello"} HTTP/1.1[\r][\n]"

[2014-12-10 15:55:45,568] DEBUG - wire << "Accept-Language:
en-US,en;q=0.8,ta;q=0.6[\r][\n]"

[2014-12-10 15:55:45,568] DEBUG - wire << "Cookie:
JSESSIONID=E0D69224FA87FEC1A8F0D2AD751EBDE5;
edfb7d8656=9c1fd4635ab50f92ceb89a2f6139a417[\r][\n]"

[2014-12-10 15:55:45,568] DEBUG - wire << "Host: invoice.zoho.com[\r][\n]"

[2014-12-10 15:55:45,569] DEBUG - wire << "Accept-Encoding: gzip,
deflate[\r][\n]"

[2014-12-10 15:55:45,569] DEBUG - wire << "Origin:
chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]"

[2014-12-10 15:55:45,569] DEBUG - wire << "Content-Type: application/json;
charset=UTF-8[\r][\n]"

[2014-12-10 15:55:45,569] DEBUG - wire << "Accept: */*[\r][\n]"

[2014-12-10 15:55:45,569] DEBUG - wire << "Cache-Control: no-cache[\r][\n]"

[2014-12-10 15:55:45,569] DEBUG - wire << "Transfer-Encoding:
chunked[\r][\n]"

[2014-12-10 15:55:45,569] DEBUG - wire << "Connection: Keep-Alive[\r][\n]"

[2014-12-10 15:55:45,569] DEBUG - wire << "User-Agent:
Synapse-PT-HttpComponents-NIO[\r][\n]"

[2014-12-10 15:55:45,569] DEBUG - wire << "[\r][\n]"

[2014-12-10 15:55:45,570] DEBUG - wire << "82[\r][\n]"

[2014-12-10 15:55:45,570] DEBUG - wire << "{[\n]"

[2014-12-10 15:55:45,570] DEBUG - wire << "
"authtoken":"c1f8014366dd6ffd2691f9671f70de50",[\n]"

[2014-12-10 15:55:45,570] DEBUG - wire << "
"customer_id":"57153200042068",[\n]"

[2014-12-10 15:55:45,570] DEBUG - wire << ""date":"2014-12-18",[\n]"

[2014-12-10 15:55:45,570] DEBUG - wire << ""amount":"200.00"[\n]"

[2014-12-10 15:55:45,570] DEBUG - wire << "}[\r][\n]"

[2014-12-10 15:55:45,571] DEBUG - wire << "0[\r][\n]"

[2014-12-10 15:55:45,571] DEBUG - wire << "[\r][\n]"

[2014-12-10 15:55:45,824] DEBUG - wire >> "HTTP/1.1 505 HTTP Version Not
Supported[\r][\n]"

[2014-12-10 15:55:45,824] DEBUG - wire >> "Server: ZGS[\r][\n]"

[2014-12-10 15:55:45,825] DEBUG - wire >> "Date: Wed, 10 Dec 2014 10:25:45
GMT[\r][\n]"

[2014-12-10 15:55:45,825] DEBUG - wire >> "Transfer-Encoding:
chunked[\r][\n]"

[2014-12-10 15:55:45,825] DEBUG - wire >> "Connection: keep-alive[\r][\n]"

[2014-12-10 15:55:45,825] DEBUG - wire >> "[\r][\n]"

[2014-12-10 15:55:45,825] DEBUG - wire >> "0[\r][\n]"

[2014-12-10 15:55:45,825] DEBUG - wire >> "[\r][\n]"

[2014-12-10 15:55:45,842] DEBUG - wire << "HTTP/1.1 505 Http Version Not
Supported[\r][\n]"

[2014-12-10 15:55:45,842] DEBUG - wire << "Content-Type:
application/octet-stream; charset=UTF-8[\r][\

Re: [Dev] Error when logging from a tenant

2014-12-11 Thread Manoj Kumara
Hi Udara,

Can you try with the configuration file available on [1].

[1]
https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0006/distribution/kernel/carbon-home/repository/conf/axis2/tenant-axis2.xml


*Manoj Kumara*
Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94713448188

On Thu, Dec 11, 2014 at 3:15 PM, Udara Liyanage  wrote:

> Hi,
>
> Should n't this be added to the file by kernel?
>
> On Thu, Dec 11, 2014 at 3:12 PM, Udara Liyanage  wrote:
>
>> Hi,
>>
>>  was able to resolve the issue. Thanks Nirmal, Nuwan and Asanka for the
>> support.
>>
>> On Thu, Dec 11, 2014 at 10:35 AM, Udara Liyanage  wrote:
>>
>>> Hi Nirmal,
>>>
>>> Error disappeared when added to tenant-axis2.xml. However UI giving some
>>> errors
>>> HTTP method GET is not supported by this URL
>>>
>>> On Thu, Dec 11, 2014 at 10:27 AM, Nirmal Fernando 
>>> wrote:
>>>
 Since, this is tenant flow, you need to do the change in
 repository/conf/axis2/tenant-axis2.xml

 On Thu, Dec 11, 2014 at 10:23 AM, Udara Liyanage 
 wrote:

> Hi Nuwan,
>
> Did as you mentioned, still same issue
>
> On Thu, Dec 11, 2014 at 9:55 AM, Nuwan Silva  wrote:
>
>> Got the similar issue when testing Chunk5 releases.
>>
>> check if the  is added in the OutFaultFlow
>> axis2.xml. This resolved the issue.
>> HTH
>>
>> Regards,
>> NuwanS.
>>
>>
>> On Thu, Dec 11, 2014 at 9:43 AM, Udara Liyanage 
>> wrote:
>>
>>> Hi,
>>>
>>> I encountered following error while logging from a tenant. Please
>>> note that this is not visible when logging from super tenant.
>>>
>>> [2014-12-11 09:35:38,793]  INFO
>>> {org.apache.stratos.cloud.controller.deployers.CloudControllerDeployer} 
>>> -
>>>  Successfully deployed the cloud-controller XML file located at
>>> /home/udara/stratos/install/apache-stratos-default/repository/tenants/1/../../conf/cloud-controller.xml
>>> [2014-12-11 09:35:38,938]  INFO
>>> {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} -
>>>  Permission cache updated for tenant 1
>>> [2014-12-11 09:35:38,953] ERROR
>>> {org.wso2.carbon.sts.STSDeploymentListener} -  Error occur while 
>>> deploying
>>> wso2carbon-sts service for tenant 1
>>> org.apache.axis2.phaseresolver.PhaseException: Did not find the
>>> desired phase 'Transport' while deploying handler 'POXSecurityHandler'.
>>> at
>>> org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:75)
>>> at
>>> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToFlow(PhaseResolver.java:68)
>>> at
>>> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:104)
>>> at
>>> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:110)
>>> at
>>> org.apache.axis2.description.AxisOperation.onEngage(AxisOperation.java:152)
>>> at
>>> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
>>> at
>>> org.apache.axis2.description.AxisService.onEngage(AxisService.java:827)
>>> at
>>> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
>>> at
>>> org.apache.axis2.description.AxisServiceGroup.onEngage(AxisServiceGroup.java:134)
>>> at
>>> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
>>> at
>>> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:439)
>>> at
>>> org.apache.axis2.engine.AxisConfiguration.addServiceGroup(AxisConfiguration.java:380)
>>> at
>>> org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentEngine.java:602)
>>> at
>>> org.wso2.carbon.sts.STSDeploymentListener.createService(STSDeploymentListener.java:148)
>>> at
>>> org.wso2.carbon.sts.STSDeploymentListener.createdConfigurationContext(STSDeploymentListener.java:82)
>>> at
>>> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:344)
>>> at
>>> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:135)
>>> at
>>> org.wso2.carbon.core.services.util.CarbonAuthenticationUtil.onSuccessAdminLogin(CarbonAuthenticationUtil.java:131)
>>> at
>>> org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login(AuthenticationAdmin.java:118)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>> at
>>> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(R

Re: [Dev] Jars to be included for code coverage - Storage Server

2014-12-11 Thread Prabath Abeysekera
Hi Harsha,

On Thu, Dec 11, 2014 at 3:10 PM, Harsha Kumara  wrote:

> Hi Prabath,
>
> Do we needs to include following jars for the coverage in Storage Server?
> I think DSS has tests on these components. We haven't wrote specific tests
> to check these components functionality.
>
> org.wso2.carbon.ndatasource.common_
> org.wso2.carbon.ndatasource.core_
> org.wso2.carbon.ndatasource.rdbms_
>

I don't think we need to have them covered within the context of Storage
Server. Had a chat with Krishantha on the same some time back and as per
what was discussed, the expected outcome of this particular effort is to
cover product specific high level functionalities only.

Cheers,
Prabath


>
>
> Thanks,
> Harsha
>
> On Mon, Nov 10, 2014 at 9:35 AM, Prabath Abeysekera 
> wrote:
>
>> Hi Krishantha,
>>
>> Yeah, this is all that needs to be covered. We should be able to proceed
>> with deriving code coverage related stats based on the list you've shared.
>>
>> Cheers,
>> Prabath
>>
>> On Fri, Nov 7, 2014 at 3:11 PM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Hi Prabath,
>>>
>>> As per our offline discussion these are the jars going to be included
>>> for code coverage.  Let me know if any modifications required.
>>>
>>> org.wso2.carbon.cassandra.cluster_
>>> org.wso2.carbon.cassandra.cluster.mgt_
>>> org.wso2.carbon.cassandra.cluster.proxy_
>>> org.wso2.carbon.cassandra.common_
>>> org.wso2.carbon.cassandra.dataaccess_
>>> org.wso2.carbon.cassandra.explorer.mgt_
>>> org.wso2.carbon.cassandra.mgt_
>>> org.wso2.carbon.cassandra.server_
>>> org.wso2.carbon.cassandra.sharedkey_
>>> org.wso2.carbon.hdfs.dataaccess_
>>> org.wso2.carbon.hdfs.datanode_
>>> org.wso2.carbon.hdfs.mgt_
>>> org.wso2.carbon.hdfs.namenode_
>>> org.wso2.carbon.ndatasource.common_
>>> org.wso2.carbon.ndatasource.core_
>>> org.wso2.carbon.ndatasource.rdbms_
>>> org.wso2.carbon.rssmanager.common_
>>> org.wso2.carbon.rssmanager.core_
>>> org.wso2.carbon.rssmanager.data.mgt_
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>> On Wed, Nov 5, 2014 at 11:30 PM, Krishantha Samaraweera <
>>> krishan...@wso2.com> wrote:
>>>
 Hi Prabath,

 Can you list the jars should be included for code coverage generation
 for Storage Server.

 Only jar files at $CARBON_HOME/repository/components/plugin is valid
 for inclusion.

 Thanks,
 Krishantha.

 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.

>>>
>>>
>>>
>>> --
>>> Krishantha Samaraweera
>>> Senior Technical Lead - Test Automation
>>> Mobile: +94 77 7759918
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>
>>
>>
>> --
>> Prabath Abeysekara
>> Associate Technical Lead, Data TG.
>> WSO2 Inc.
>> Email: praba...@wso2.com
>> Mobile: +94774171471
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>



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


Re: [Dev] Error when logging from a tenant

2014-12-11 Thread Udara Liyanage
Hi,

Should n't this be added to the file by kernel?

On Thu, Dec 11, 2014 at 3:12 PM, Udara Liyanage  wrote:

> Hi,
>
>  was able to resolve the issue. Thanks Nirmal, Nuwan and Asanka for the
> support.
>
> On Thu, Dec 11, 2014 at 10:35 AM, Udara Liyanage  wrote:
>
>> Hi Nirmal,
>>
>> Error disappeared when added to tenant-axis2.xml. However UI giving some
>> errors
>> HTTP method GET is not supported by this URL
>>
>> On Thu, Dec 11, 2014 at 10:27 AM, Nirmal Fernando 
>> wrote:
>>
>>> Since, this is tenant flow, you need to do the change in
>>> repository/conf/axis2/tenant-axis2.xml
>>>
>>> On Thu, Dec 11, 2014 at 10:23 AM, Udara Liyanage  wrote:
>>>
 Hi Nuwan,

 Did as you mentioned, still same issue

 On Thu, Dec 11, 2014 at 9:55 AM, Nuwan Silva  wrote:

> Got the similar issue when testing Chunk5 releases.
>
> check if the  is added in the OutFaultFlow
> axis2.xml. This resolved the issue.
> HTH
>
> Regards,
> NuwanS.
>
>
> On Thu, Dec 11, 2014 at 9:43 AM, Udara Liyanage 
> wrote:
>
>> Hi,
>>
>> I encountered following error while logging from a tenant. Please
>> note that this is not visible when logging from super tenant.
>>
>> [2014-12-11 09:35:38,793]  INFO
>> {org.apache.stratos.cloud.controller.deployers.CloudControllerDeployer} -
>>  Successfully deployed the cloud-controller XML file located at
>> /home/udara/stratos/install/apache-stratos-default/repository/tenants/1/../../conf/cloud-controller.xml
>> [2014-12-11 09:35:38,938]  INFO
>> {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} -
>>  Permission cache updated for tenant 1
>> [2014-12-11 09:35:38,953] ERROR
>> {org.wso2.carbon.sts.STSDeploymentListener} -  Error occur while 
>> deploying
>> wso2carbon-sts service for tenant 1
>> org.apache.axis2.phaseresolver.PhaseException: Did not find the
>> desired phase 'Transport' while deploying handler 'POXSecurityHandler'.
>> at
>> org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:75)
>> at
>> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToFlow(PhaseResolver.java:68)
>> at
>> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:104)
>> at
>> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:110)
>> at
>> org.apache.axis2.description.AxisOperation.onEngage(AxisOperation.java:152)
>> at
>> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
>> at
>> org.apache.axis2.description.AxisService.onEngage(AxisService.java:827)
>> at
>> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
>> at
>> org.apache.axis2.description.AxisServiceGroup.onEngage(AxisServiceGroup.java:134)
>> at
>> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
>> at
>> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:439)
>> at
>> org.apache.axis2.engine.AxisConfiguration.addServiceGroup(AxisConfiguration.java:380)
>> at
>> org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentEngine.java:602)
>> at
>> org.wso2.carbon.sts.STSDeploymentListener.createService(STSDeploymentListener.java:148)
>> at
>> org.wso2.carbon.sts.STSDeploymentListener.createdConfigurationContext(STSDeploymentListener.java:82)
>> at
>> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:344)
>> at
>> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:135)
>> at
>> org.wso2.carbon.core.services.util.CarbonAuthenticationUtil.onSuccessAdminLogin(CarbonAuthenticationUtil.java:131)
>> at
>> org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login(AuthenticationAdmin.java:118)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
>> at
>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
>> at
>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>> at
>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>> at
>> org.apache.axis2.transport.local.LocalTransportReceiver.

Re: [Dev] Jars to be included for code coverage - Storage Server

2014-12-11 Thread Anjana Fernando
The ndatasource component is actually part of the Kernel, specific products
should not add them IMO for checking code coverage.

Cheers,
Anjana.

On Thu, Dec 11, 2014 at 3:10 PM, Harsha Kumara  wrote:

> Hi Prabath,
>
> Do we needs to include following jars for the coverage in Storage Server?
> I think DSS has tests on these components. We haven't wrote specific tests
> to check these components functionality.
>
> org.wso2.carbon.ndatasource.common_
> org.wso2.carbon.ndatasource.core_
> org.wso2.carbon.ndatasource.rdbms_
>
> Thanks,
> Harsha
>
> On Mon, Nov 10, 2014 at 9:35 AM, Prabath Abeysekera 
> wrote:
>
>> Hi Krishantha,
>>
>> Yeah, this is all that needs to be covered. We should be able to proceed
>> with deriving code coverage related stats based on the list you've shared.
>>
>> Cheers,
>> Prabath
>>
>> On Fri, Nov 7, 2014 at 3:11 PM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Hi Prabath,
>>>
>>> As per our offline discussion these are the jars going to be included
>>> for code coverage.  Let me know if any modifications required.
>>>
>>> org.wso2.carbon.cassandra.cluster_
>>> org.wso2.carbon.cassandra.cluster.mgt_
>>> org.wso2.carbon.cassandra.cluster.proxy_
>>> org.wso2.carbon.cassandra.common_
>>> org.wso2.carbon.cassandra.dataaccess_
>>> org.wso2.carbon.cassandra.explorer.mgt_
>>> org.wso2.carbon.cassandra.mgt_
>>> org.wso2.carbon.cassandra.server_
>>> org.wso2.carbon.cassandra.sharedkey_
>>> org.wso2.carbon.hdfs.dataaccess_
>>> org.wso2.carbon.hdfs.datanode_
>>> org.wso2.carbon.hdfs.mgt_
>>> org.wso2.carbon.hdfs.namenode_
>>> org.wso2.carbon.ndatasource.common_
>>> org.wso2.carbon.ndatasource.core_
>>> org.wso2.carbon.ndatasource.rdbms_
>>> org.wso2.carbon.rssmanager.common_
>>> org.wso2.carbon.rssmanager.core_
>>> org.wso2.carbon.rssmanager.data.mgt_
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>> On Wed, Nov 5, 2014 at 11:30 PM, Krishantha Samaraweera <
>>> krishan...@wso2.com> wrote:
>>>
 Hi Prabath,

 Can you list the jars should be included for code coverage generation
 for Storage Server.

 Only jar files at $CARBON_HOME/repository/components/plugin is valid
 for inclusion.

 Thanks,
 Krishantha.

 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.

>>>
>>>
>>>
>>> --
>>> Krishantha Samaraweera
>>> Senior Technical Lead - Test Automation
>>> Mobile: +94 77 7759918
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>
>>
>>
>> --
>> Prabath Abeysekara
>> Associate Technical Lead, Data TG.
>> WSO2 Inc.
>> Email: praba...@wso2.com
>> Mobile: +94774171471
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Anjana Fernando*
Senior Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when logging from a tenant

2014-12-11 Thread Udara Liyanage
Hi,

 was able to resolve the issue. Thanks Nirmal, Nuwan and Asanka for the
support.

On Thu, Dec 11, 2014 at 10:35 AM, Udara Liyanage  wrote:

> Hi Nirmal,
>
> Error disappeared when added to tenant-axis2.xml. However UI giving some
> errors
> HTTP method GET is not supported by this URL
>
> On Thu, Dec 11, 2014 at 10:27 AM, Nirmal Fernando  wrote:
>
>> Since, this is tenant flow, you need to do the change in
>> repository/conf/axis2/tenant-axis2.xml
>>
>> On Thu, Dec 11, 2014 at 10:23 AM, Udara Liyanage  wrote:
>>
>>> Hi Nuwan,
>>>
>>> Did as you mentioned, still same issue
>>>
>>> On Thu, Dec 11, 2014 at 9:55 AM, Nuwan Silva  wrote:
>>>
 Got the similar issue when testing Chunk5 releases.

 check if the  is added in the OutFaultFlow
 axis2.xml. This resolved the issue.
 HTH

 Regards,
 NuwanS.


 On Thu, Dec 11, 2014 at 9:43 AM, Udara Liyanage  wrote:

> Hi,
>
> I encountered following error while logging from a tenant. Please note
> that this is not visible when logging from super tenant.
>
> [2014-12-11 09:35:38,793]  INFO
> {org.apache.stratos.cloud.controller.deployers.CloudControllerDeployer} -
>  Successfully deployed the cloud-controller XML file located at
> /home/udara/stratos/install/apache-stratos-default/repository/tenants/1/../../conf/cloud-controller.xml
> [2014-12-11 09:35:38,938]  INFO
> {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} -
>  Permission cache updated for tenant 1
> [2014-12-11 09:35:38,953] ERROR
> {org.wso2.carbon.sts.STSDeploymentListener} -  Error occur while deploying
> wso2carbon-sts service for tenant 1
> org.apache.axis2.phaseresolver.PhaseException: Did not find the
> desired phase 'Transport' while deploying handler 'POXSecurityHandler'.
> at
> org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:75)
> at
> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToFlow(PhaseResolver.java:68)
> at
> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:104)
> at
> org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:110)
> at
> org.apache.axis2.description.AxisOperation.onEngage(AxisOperation.java:152)
> at
> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
> at
> org.apache.axis2.description.AxisService.onEngage(AxisService.java:827)
> at
> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
> at
> org.apache.axis2.description.AxisServiceGroup.onEngage(AxisServiceGroup.java:134)
> at
> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
> at
> org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:439)
> at
> org.apache.axis2.engine.AxisConfiguration.addServiceGroup(AxisConfiguration.java:380)
> at
> org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentEngine.java:602)
> at
> org.wso2.carbon.sts.STSDeploymentListener.createService(STSDeploymentListener.java:148)
> at
> org.wso2.carbon.sts.STSDeploymentListener.createdConfigurationContext(STSDeploymentListener.java:82)
> at
> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:344)
> at
> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:135)
> at
> org.wso2.carbon.core.services.util.CarbonAuthenticationUtil.onSuccessAdminLogin(CarbonAuthenticationUtil.java:131)
> at
> org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login(AuthenticationAdmin.java:118)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
> at
> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
> at
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
> at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
> at
> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
> at
> org.wso2.carbon.core.transports.local.CarbonLocalTransportSen

Re: [Dev] Jars to be included for code coverage - Storage Server

2014-12-11 Thread Harsha Kumara
Hi Prabath,

Do we needs to include following jars for the coverage in Storage Server? I
think DSS has tests on these components. We haven't wrote specific tests to
check these components functionality.

org.wso2.carbon.ndatasource.common_
org.wso2.carbon.ndatasource.core_
org.wso2.carbon.ndatasource.rdbms_

Thanks,
Harsha

On Mon, Nov 10, 2014 at 9:35 AM, Prabath Abeysekera 
wrote:

> Hi Krishantha,
>
> Yeah, this is all that needs to be covered. We should be able to proceed
> with deriving code coverage related stats based on the list you've shared.
>
> Cheers,
> Prabath
>
> On Fri, Nov 7, 2014 at 3:11 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Hi Prabath,
>>
>> As per our offline discussion these are the jars going to be included for
>> code coverage.  Let me know if any modifications required.
>>
>> org.wso2.carbon.cassandra.cluster_
>> org.wso2.carbon.cassandra.cluster.mgt_
>> org.wso2.carbon.cassandra.cluster.proxy_
>> org.wso2.carbon.cassandra.common_
>> org.wso2.carbon.cassandra.dataaccess_
>> org.wso2.carbon.cassandra.explorer.mgt_
>> org.wso2.carbon.cassandra.mgt_
>> org.wso2.carbon.cassandra.server_
>> org.wso2.carbon.cassandra.sharedkey_
>> org.wso2.carbon.hdfs.dataaccess_
>> org.wso2.carbon.hdfs.datanode_
>> org.wso2.carbon.hdfs.mgt_
>> org.wso2.carbon.hdfs.namenode_
>> org.wso2.carbon.ndatasource.common_
>> org.wso2.carbon.ndatasource.core_
>> org.wso2.carbon.ndatasource.rdbms_
>> org.wso2.carbon.rssmanager.common_
>> org.wso2.carbon.rssmanager.core_
>> org.wso2.carbon.rssmanager.data.mgt_
>>
>> Thanks,
>> Krishantha.
>>
>> On Wed, Nov 5, 2014 at 11:30 PM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Hi Prabath,
>>>
>>> Can you list the jars should be included for code coverage generation
>>> for Storage Server.
>>>
>>> Only jar files at $CARBON_HOME/repository/components/plugin is valid for
>>> inclusion.
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>> --
>>> Krishantha Samaraweera
>>> Senior Technical Lead - Test Automation
>>> Mobile: +94 77 7759918
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>
>>
>>
>> --
>> Krishantha Samaraweera
>> Senior Technical Lead - Test Automation
>> Mobile: +94 77 7759918
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
>
> --
> Prabath Abeysekara
> Associate Technical Lead, Data TG.
> WSO2 Inc.
> Email: praba...@wso2.com
> Mobile: +94774171471
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Harsha Kumara
Software Engineer, WSO2 Inc.
Mobile: +94775505618
Blog:harshcreationz.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Stripe ESB Connector] Getting 400 Bad Request Error

2014-12-11 Thread Keerthika Mahendralingam
Thank you Vanji, I tried as you suggested. Now I am able to get the correct
response.

On Thu, Dec 11, 2014 at 1:32 PM, Vanjikumaran Sivajothy 
wrote:

> Hi Keethika,
>
> Please use the http endpoint to resolve this issue.
>
>
>  
>* *
> *uri-template="https://api.stripe.com/v1/charges/{uri.var.chargeId}/refunds
> ">*
> **
>  
>
>
>
>
>
> On Thu, Dec 11, 2014 at 11:01 AM, Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Thank you Vanji for your quick response. I tried your suggested method.
>> But when I hardcoded the value for chageId and send the post request with
>> the payload from the rest client the empty payload was removed and correct
>> request was sent.
>> But when I try to get the chargeId from the payload removes the message
>> context also *> scope="axis2" type="BOOLEAN"/>* removes the message context also.
>> Please find the wire log:
>> [2014-12-11 11:01:03,568] DEBUG - wire >> "POST /strip HTTP/1.1[\r][\n]"
>> [2014-12-11 11:01:03,568] DEBUG - wire >> "Host: 10.100.5.169:8280[\r][\n]"
>> [2014-12-11 11:01:03,568] DEBUG - wire >> "Connection: keep-alive[\r][\n]"
>> [2014-12-11 11:01:03,568] DEBUG - wire >> "Content-Length: 44[\r][\n]"
>> [2014-12-11 11:01:03,568] DEBUG - wire >> "Cache-Control: no-cache[\r][\n]"
>> [2014-12-11 11:01:03,568] DEBUG - wire >> "Origin:
>> chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]" [2014-12-11
>> 11:01:03,568] DEBUG - wire >> "User-Agent: Mozilla/5.0 (Macintosh; Mac OS X
>> 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71
>> Safari/537.36[\r][\n]" [2014-12-11 11:01:03,568] DEBUG - wire >>
>> "Content-Type: application/json[\r][\n]" [2014-12-11 11:01:03,568] DEBUG -
>> wire >> "Accept: */*[\r][\n]" [2014-12-11 11:01:03,568] DEBUG - wire >>
>> "Accept-Encoding: gzip, deflate[\r][\n]" [2014-12-11 11:01:03,569] DEBUG -
>> wire >> "Accept-Language: en-US,en;q=0.8[\r][\n]" [2014-12-11 11:01:03,569]
>> DEBUG - wire >> "[\r][\n]" [2014-12-11 11:01:03,569] DEBUG - wire >>
>> "{[\n]" [2014-12-11 11:01:03,569] DEBUG - wire >> "
>> *"chargeId":"ch_158NuEDpl35Wu2ui6atArh0E"*[\n]" [2014-12-11
>> 11:01:03,570] DEBUG - wire >> "}" [2014-12-11 11:01:03,571] DEBUG -
>> headers http-incoming-2 >> POST /strip HTTP/1.1 [2014-12-11 11:01:03,571]
>> DEBUG - headers http-incoming-2 >> Host: 10.100.5.169:8280 [2014-12-11
>> 11:01:03,571] DEBUG - headers http-incoming-2 >> Connection: keep-alive
>> [2014-12-11 11:01:03,571] DEBUG - headers http-incoming-2 >>
>> Content-Length: 44 [2014-12-11 11:01:03,571] DEBUG - headers
>> http-incoming-2 >> Cache-Control: no-cache [2014-12-11 11:01:03,571] DEBUG
>> - headers http-incoming-2 >> Origin:
>> chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm [2014-12-11
>> 11:01:03,572] DEBUG - headers http-incoming-2 >> User-Agent: Mozilla/5.0
>> (Macintosh; ss Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko)
>> Chrome/39.0.2171.71 Safari/537.36 [2014-12-11 11:01:03,572] DEBUG - headers
>> http-incoming-2 >> Content-Type: application/json [2014-12-11 11:01:03,572]
>> DEBUG - headers http-incoming-2 >> Accept: */* [2014-12-11 11:01:03,572]
>> DEBUG - headers http-incoming-2 >> Accept-Encoding: gzip, deflate
>> [2014-12-11 11:01:03,572] DEBUG - headers http-incoming-2 >>
>> Accept-Language: en-US,en;q=0.8 [2014-12-11 11:01:03,572] DEBUG - headers
>> http-incoming-2 >> Cookie: MSG14178730176680.29427175505634384=true;
>> MSG14178733498110.13085054063584778=true;
>> MSG14178733599110.6219386089528006=true;
>> MSG14178737859670.9529352123700151=true;
>> MSG14178737969220.7098197557439472=true;
>> MSG14178742229450.11304979617306088=true;
>> MSG14178742459580.08636783896345823=true;
>> MSG14178743775100.8277019213681849=true;
>> MSG14178744009480.1176885444149115=true;
>> MSG14178744961220.12665969302078872=true;
>> MSG14178745125470.7059473583386973=true;
>> MSG14178746301280.5421815401876321=true;
>> MSG14178749920270.16922145677337863=true;
>> MSG14178750099790.9279498346279079=true;
>> MSG14178752074000.7968266996983095=true;
>> MSG14178752284520.3200580037079722=true;
>> MSG14178759605060.21670383101954604=true;
>> MSG14178759719000.4556431273477163=true;
>> MSG14178760965150.9435498284164892=true;
>> MSG14178761060100.2838820086933652=true;
>> MSG14179410733150.9565482556718199=true;
>> MSG14179410950800.04846375334425135=true;
>> MSG14179455481590.07412600774150879=true;
>> MSG14179455562460.4402089613229584=true;
>> MSG14179456372820.13647268855455874=true;
>> MSG14179456467490.9615653270227574=true;
>> MSG14179457888170.3561121989855156=true;
>> MSG14179458087970.3274270139955=true;
>> MSG14179458931480.43382225798195906=true;
>> MSG14179459297600.020534603827859765=true;
>> MSG14179459966390.6664658852131142=true;
>> MSG14179460204050.14013169399751735=true;
>> MSG14179489015150.06760873851129723=true;
>> MSG14179489099060.5499165139086787=true;
>> MSG14179491204370.12483201997664095=true;

Re: [Dev] identity server latest source code chunk

2014-12-11 Thread Hasintha Indrajee
Hi Marcin,

Seems like the latest changes are not merged in the given git repo . Can
you please try to build from [3].

[3] https://github.com/wso2-dev/product-is

On Wed, Dec 10, 2014 at 3:04 PM, Marcin Krystek 
wrote:

>  Hi Hasintha,
>
> Thank you for the quick response.
>
> I have tried both svn and git.
>
> Unfortunately svn checkout [1] returns only pom files and there is
> something wrong woth project structure:
> [ERROR]   The project org.wso2.carbon:product-releases:4.2.0-chunk15
> (/mnt/storage1/oidc/workspace/wso2/wso2carbon-platform-source/pom.xml) has
> 1 error
> [ERROR] Non-resolvable parent POM: Could not find artifact
> org.wso2.carbon:platform-parent:pom:4.2.0 in central (
> http://repo.maven.apache.org/maven2) and 'parent.relativePath' points at
> wrong local POM @ line 6, column 13 ->
> I seems, that something more is required then simple checkout of chunk-15.
>
> Previously I have tried to follow the steps described in documentation:
> https://docs.wso2.com/display/IS500/Building+from+Source which says:
> svn checkout
> https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk11/
> and this command seems to checkout whole platform source. It lasts very
> long, compilation process is even longer and the code unfortunately does
> not contain latest updates.
>
> git clone [2] works fine, however during compilation the following error
> occurs:
> [ERROR] Failed to execute goal on project org.wso2.identity.styles: Could
> not resolve dependencies for project
> org.wso2.identity:org.wso2.identity.styles:bundle:5.1.0-SNAPSHOT: The
> following artifacts could not be resolved:
> org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v5-SNAPSHOT,
> org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v11-SNAPSHOT: Could not find
> artifact org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v5-SNAPSHOT
> in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/)
> -> [Help 1]
>
> Do you have any idea how to solve this issue?
>
> Best
> Marcin
>
>
> On 10/12/14 08:08, Hasintha Indrajee wrote:
>
> Hi Marcin,
>
>  You can use chunk 15 to build WSO2 Identity Server with latest updates.
> Use the SVN location  [1] to checkout the source. At the same time we are
> maintaining git repo for the IS with latest updates. Find the git repo [2]
> with the latest updates.
>
>  [1]
> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/product-releases/chunk-15
> [2] https://github.com/wso2/product-is
>
>  Thanks,
> Hasintha.
>
>
> On Tue, Dec 9, 2014 at 8:38 PM, Marcin Krystek 
> wrote:
>
>> Hello,
>>
>> which svn chunk should I download to build WSO2 Identity Server with
>> latest updates?
>> Is this:
>> https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk13/ ?
>>
>> Is this the only code I need to build this server or should I download
>> and build something more?
>>
>> I'm interested in building server with latests bugfixes like:
>> https://wso2.org/jira/browse/IDENTITY-2800
>> and others.
>>
>> I will be grateful for direct svn links
>>
>> Thank you in advance,
>>
>> regards
>> Marcin
>>
>> ___
>> 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] [Stripe ESB Connector] Getting 400 Bad Request Error

2014-12-11 Thread Vanjikumaran Sivajothy
Hi Keethika,

Please use the http endpoint to resolve this issue.


 
   * *
*   https://api.stripe.com/v1/charges/{uri.var.chargeId}/refunds
">*
**
 





On Thu, Dec 11, 2014 at 11:01 AM, Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> Thank you Vanji for your quick response. I tried your suggested method.
> But when I hardcoded the value for chageId and send the post request with
> the payload from the rest client the empty payload was removed and correct
> request was sent.
> But when I try to get the chargeId from the payload removes the message
> context also * scope="axis2" type="BOOLEAN"/>* removes the message context also.
> Please find the wire log:
> [2014-12-11 11:01:03,568] DEBUG - wire >> "POST /strip HTTP/1.1[\r][\n]"
> [2014-12-11 11:01:03,568] DEBUG - wire >> "Host: 10.100.5.169:8280[\r][\n]"
> [2014-12-11 11:01:03,568] DEBUG - wire >> "Connection: keep-alive[\r][\n]"
> [2014-12-11 11:01:03,568] DEBUG - wire >> "Content-Length: 44[\r][\n]"
> [2014-12-11 11:01:03,568] DEBUG - wire >> "Cache-Control: no-cache[\r][\n]"
> [2014-12-11 11:01:03,568] DEBUG - wire >> "Origin:
> chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm[\r][\n]" [2014-12-11
> 11:01:03,568] DEBUG - wire >> "User-Agent: Mozilla/5.0 (Macintosh; Mac OS X
> 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71
> Safari/537.36[\r][\n]" [2014-12-11 11:01:03,568] DEBUG - wire >>
> "Content-Type: application/json[\r][\n]" [2014-12-11 11:01:03,568] DEBUG -
> wire >> "Accept: */*[\r][\n]" [2014-12-11 11:01:03,568] DEBUG - wire >>
> "Accept-Encoding: gzip, deflate[\r][\n]" [2014-12-11 11:01:03,569] DEBUG -
> wire >> "Accept-Language: en-US,en;q=0.8[\r][\n]" [2014-12-11 11:01:03,569]
> DEBUG - wire >> "[\r][\n]" [2014-12-11 11:01:03,569] DEBUG - wire >>
> "{[\n]" [2014-12-11 11:01:03,569] DEBUG - wire >> "
> *"chargeId":"ch_158NuEDpl35Wu2ui6atArh0E"*[\n]" [2014-12-11 11:01:03,570]
> DEBUG - wire >> "}" [2014-12-11 11:01:03,571] DEBUG - headers
> http-incoming-2 >> POST /strip HTTP/1.1 [2014-12-11 11:01:03,571] DEBUG -
> headers http-incoming-2 >> Host: 10.100.5.169:8280 [2014-12-11
> 11:01:03,571] DEBUG - headers http-incoming-2 >> Connection: keep-alive
> [2014-12-11 11:01:03,571] DEBUG - headers http-incoming-2 >>
> Content-Length: 44 [2014-12-11 11:01:03,571] DEBUG - headers
> http-incoming-2 >> Cache-Control: no-cache [2014-12-11 11:01:03,571] DEBUG
> - headers http-incoming-2 >> Origin:
> chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm [2014-12-11
> 11:01:03,572] DEBUG - headers http-incoming-2 >> User-Agent: Mozilla/5.0
> (Macintosh; ss Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko)
> Chrome/39.0.2171.71 Safari/537.36 [2014-12-11 11:01:03,572] DEBUG - headers
> http-incoming-2 >> Content-Type: application/json [2014-12-11 11:01:03,572]
> DEBUG - headers http-incoming-2 >> Accept: */* [2014-12-11 11:01:03,572]
> DEBUG - headers http-incoming-2 >> Accept-Encoding: gzip, deflate
> [2014-12-11 11:01:03,572] DEBUG - headers http-incoming-2 >>
> Accept-Language: en-US,en;q=0.8 [2014-12-11 11:01:03,572] DEBUG - headers
> http-incoming-2 >> Cookie: MSG14178730176680.29427175505634384=true;
> MSG14178733498110.13085054063584778=true;
> MSG14178733599110.6219386089528006=true;
> MSG14178737859670.9529352123700151=true;
> MSG14178737969220.7098197557439472=true;
> MSG14178742229450.11304979617306088=true;
> MSG14178742459580.08636783896345823=true;
> MSG14178743775100.8277019213681849=true;
> MSG14178744009480.1176885444149115=true;
> MSG14178744961220.12665969302078872=true;
> MSG14178745125470.7059473583386973=true;
> MSG14178746301280.5421815401876321=true;
> MSG14178749920270.16922145677337863=true;
> MSG14178750099790.9279498346279079=true;
> MSG14178752074000.7968266996983095=true;
> MSG14178752284520.3200580037079722=true;
> MSG14178759605060.21670383101954604=true;
> MSG14178759719000.4556431273477163=true;
> MSG14178760965150.9435498284164892=true;
> MSG14178761060100.2838820086933652=true;
> MSG14179410733150.9565482556718199=true;
> MSG14179410950800.04846375334425135=true;
> MSG14179455481590.07412600774150879=true;
> MSG14179455562460.4402089613229584=true;
> MSG14179456372820.13647268855455874=true;
> MSG14179456467490.9615653270227574=true;
> MSG14179457888170.3561121989855156=true;
> MSG14179458087970.3274270139955=true;
> MSG14179458931480.43382225798195906=true;
> MSG14179459297600.020534603827859765=true;
> MSG14179459966390.6664658852131142=true;
> MSG14179460204050.14013169399751735=true;
> MSG14179489015150.06760873851129723=true;
> MSG14179489099060.5499165139086787=true;
> MSG14179491204370.12483201997664095=true;
> MSG14179491378060.04953538185644113=true;
> MSG14179495124730.1470145124103216=true;
> MSG14179495216360.5932151724208592=true;
> MSG14180160515350.3206177291762258=true;
> MSG14180160586290.21535470793461686=true;
> MSG14180180629350.34373419260761984=true;
> MSG141801