Re: Questions about cxfrs

2014-02-07 Thread Sergey Beryozkin
For those who may be interested, see the attached files to https://issues.apache.org/jira/browse/CAMEL-7147 (blueprint.xml, jaxrs-beans.xml), the route works nicely with CXF 2.7.7 with minor modifications, which won't be needed with the newer CXF versions Sergey On 22/01/14 22:13, David wrote:

Re: Questions about cxfrs

2014-01-23 Thread David
Thanks for the suggestion, I'll look into it as a temporary workaround. On Thu, Jan 23, 2014 at 5:17 AM, Sergey Beryozkin wrote: > Hi, > > I haven't had a chance to look into it yet, will do asap > What about this alternative (assuming you'd like to do it the JAX-RS way): > Create a CXF jaxrs:se

Re: Questions about cxfrs

2014-01-23 Thread Sergey Beryozkin
Hi, I haven't had a chance to look into it yet, will do asap What about this alternative (assuming you'd like to do it the JAX-RS way): Create a CXF jaxrs:server entry endpoint with the address like "camel://myservice", and link to it from Camel Servlet. This endpoint service implementation wil

Re: Questions about cxfrs

2014-01-22 Thread David
I tried using org.apache.cxf.jaxrs.provider.json.JSONProvider as the JSON provider instead of JacksonJsonProvider, and that results in an exception being thrown, telling me that no message body reader was found for my class. I'm using the same test case that's attached to the JIRA, just with a diff

Re: Questions about cxfrs

2014-01-22 Thread David
See https://issues.apache.org/jira/browse/CAMEL-7147 On Wed, Jan 22, 2014 at 10:58 AM, Sergey Beryozkin wrote: > Hi, > > On 22/01/14 14:20, David wrote: > >> I can create a test project. How would I get it to you, email to the list >> as attachment? Or would it be better to open a JIRA, maybe? >

Re: Questions about cxfrs

2014-01-22 Thread Sergey Beryozkin
Hi, On 22/01/14 14:20, David wrote: I can create a test project. How would I get it to you, email to the list as attachment? Or would it be better to open a JIRA, maybe? Can you please open a JIRA and attach a test project there Many thanks Sergey On Wed, Jan 22, 2014 at 5:19 AM, Sergey Bery

Re: Questions about cxfrs

2014-01-22 Thread David
I can create a test project. How would I get it to you, email to the list as attachment? Or would it be better to open a JIRA, maybe? On Wed, Jan 22, 2014 at 5:19 AM, Sergey Beryozkin wrote: > The stack trace suggests that JacksonJsonProvider did have a thread local > context representing JAX-R

Re: Questions about cxfrs

2014-01-22 Thread Sergey Beryozkin
Hi, sure, I only referenced Jettison as a possible alternative. I think Jackson is picked up, Jettison only works, as you mentioned, with JAXB sending the write events to it, and as I understand you've no XMLRootElement/etc added to the data beans Sergey On 21/01/14 21:14, David wrote: Comment

Re: Questions about cxfrs

2014-01-22 Thread Sergey Beryozkin
The stack trace suggests that JacksonJsonProvider did have a thread local context representing JAX-RS Providers injected into it at the registration time but at the invocation time no thread-local entry has been added to it and hence NPE. I have a lot of tests in CXF where client-side providers

Re: Questions about cxfrs

2014-01-21 Thread David
On Tue, Jan 21, 2014 at 8:16 PM, Willem Jiang wrote: > > On January 22, 2014 at 5:14:40 AM, David (wakarima...@gmail.com) wrote: > > > When my route attempts to invoke Service2, the URI is set to: > > http://localhost:8080/service2/service2path/service1/service1path, > > where > > service1/service

Re: Questions about cxfrs

2014-01-21 Thread Willem Jiang
On January 22, 2014 at 5:14:40 AM, David (wakarima...@gmail.com) wrote: > > When my route attempts to invoke Service2, the URI is set to: > http://localhost:8080/service2/service2path/service1/service1path, > where > service1/service1path is configured in my.Service1. I'm also > not sure why

Re: Questions about cxfrs

2014-01-21 Thread David
Comments in-line. On Tue, Jan 21, 2014 at 12:34 PM, Sergey Beryozkin wrote: > Hi > Please see comments below, > > On 21/01/14 17:01, David wrote: > >> I think this is more of a Camel question than a CXF question, but let me >> know if that's not the case (would it have been bad form to cross-pos

Re: Questions about cxfrs

2014-01-21 Thread Sergey Beryozkin
Hi Please see comments below, On 21/01/14 17:01, David wrote: I think this is more of a Camel question than a CXF question, but let me know if that's not the case (would it have been bad form to cross-post this to cxf-user?). I have questions regarding use of Jackson with CXF, as well as how to

Questions about cxfrs

2014-01-21 Thread David
I think this is more of a Camel question than a CXF question, but let me know if that's not the case (would it have been bad form to cross-post this to cxf-user?). I have questions regarding use of Jackson with CXF, as well as how to get CXFRS not to wrap the root value of a JSON payload. I am tr