You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by nino martinez wael <ni...@gmail.com> on 2017/03/23 11:05:20 UTC

DOSGI 2, switching to jackson

Hi is it possible to use jackson with dosgi?

We are using enaunciate to generate documentation and they only support
jackson.. Jettison evaluates or jaxb beans differently, making the doc
unusable...

-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: DOSGI 2, switching to jackson

Posted by nino martinez wael <ni...@gmail.com>.
Great guys.. Fast and faithful :)


thanks Nino

On Thu, Mar 23, 2017 at 4:44 PM, Christian Schneider <
chris@die-schneider.net> wrote:

> Ah .. that was it. We need to set a bus property. The newest release
> cxf-dosgi 2.1.0 allows to do this.
> I think I will create a sample for this.
>
> Christian
>
>
> On 23.03.2017 15:53, Sergey Beryozkin wrote:
>
>> Hi
>>
>> The easiest way to deal with it is uninstall the jettison bundle.
>> A bus property "skip.default.json.provider.registration" is also
>> available where the CXF JAXRS provider factory will ignore even if it is
>> available on the classpath.
>>
>> As far as JAX-RS 2.0 selection of the providers is concerned it is
>> actually Jackson itself, due to its use of the wilcard Produces and
>> Consumes values which makes it difficult for it to be selected as the top
>> candidate if other JSON providers are loaded.
>>
>> Thanks, Sergey
>> On 23/03/17 11:28, Christian Schneider wrote:
>>
>>> You should be able to define the jackson provider as an intent.
>>> See:
>>> https://github.com/apache/cxf-dosgi/tree/master/common
>>>
>>> I remember though that I discussed this with Sergey recently and there
>>> might be some problem as the newest jax-rs spec makes it more difficult
>>> to override the default provider.
>>>
>>> @Sergey Do you remember what needs to be done for the override?
>>>
>>> Once we figure this out we should create a sample that shows how to use
>>> jackson as I think many people like to use it. If no one else is
>>> stepping up I will do this.
>>>
>>> Christian
>>>
>>> On 23.03.2017 12:05, nino martinez wael wrote:
>>>
>>>> Hi is it possible to use jackson with dosgi?
>>>>
>>>> We are using enaunciate to generate documentation and they only support
>>>> jackson.. Jettison evaluates or jaxb beans differently, making the doc
>>>> unusable...
>>>>
>>>>
>>>
>>>
>>
>
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Open Source Architect
> http://www.talend.com
>
>


-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: DOSGI 2, switching to jackson

Posted by Christian Schneider <ch...@die-schneider.net>.
Ah .. that was it. We need to set a bus property. The newest release 
cxf-dosgi 2.1.0 allows to do this.
I think I will create a sample for this.

Christian

On 23.03.2017 15:53, Sergey Beryozkin wrote:
> Hi
>
> The easiest way to deal with it is uninstall the jettison bundle.
> A bus property "skip.default.json.provider.registration" is also 
> available where the CXF JAXRS provider factory will ignore even if it 
> is available on the classpath.
>
> As far as JAX-RS 2.0 selection of the providers is concerned it is 
> actually Jackson itself, due to its use of the wilcard Produces and 
> Consumes values which makes it difficult for it to be selected as the 
> top candidate if other JSON providers are loaded.
>
> Thanks, Sergey
> On 23/03/17 11:28, Christian Schneider wrote:
>> You should be able to define the jackson provider as an intent.
>> See:
>> https://github.com/apache/cxf-dosgi/tree/master/common
>>
>> I remember though that I discussed this with Sergey recently and there
>> might be some problem as the newest jax-rs spec makes it more difficult
>> to override the default provider.
>>
>> @Sergey Do you remember what needs to be done for the override?
>>
>> Once we figure this out we should create a sample that shows how to use
>> jackson as I think many people like to use it. If no one else is
>> stepping up I will do this.
>>
>> Christian
>>
>> On 23.03.2017 12:05, nino martinez wael wrote:
>>> Hi is it possible to use jackson with dosgi?
>>>
>>> We are using enaunciate to generate documentation and they only support
>>> jackson.. Jettison evaluates or jaxb beans differently, making the doc
>>> unusable...
>>>
>>
>>
>


-- 
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com


Re: DOSGI 2, switching to jackson

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi

The easiest way to deal with it is uninstall the jettison bundle.
A bus property "skip.default.json.provider.registration" is also 
available where the CXF JAXRS provider factory will ignore even if it is 
available on the classpath.

As far as JAX-RS 2.0 selection of the providers is concerned it is 
actually Jackson itself, due to its use of the wilcard Produces and 
Consumes values which makes it difficult for it to be selected as the 
top candidate if other JSON providers are loaded.

Thanks, Sergey
On 23/03/17 11:28, Christian Schneider wrote:
> You should be able to define the jackson provider as an intent.
> See:
> https://github.com/apache/cxf-dosgi/tree/master/common
>
> I remember though that I discussed this with Sergey recently and there
> might be some problem as the newest jax-rs spec makes it more difficult
> to override the default provider.
>
> @Sergey Do you remember what needs to be done for the override?
>
> Once we figure this out we should create a sample that shows how to use
> jackson as I think many people like to use it. If no one else is
> stepping up I will do this.
>
> Christian
>
> On 23.03.2017 12:05, nino martinez wael wrote:
>> Hi is it possible to use jackson with dosgi?
>>
>> We are using enaunciate to generate documentation and they only support
>> jackson.. Jettison evaluates or jaxb beans differently, making the doc
>> unusable...
>>
>
>


Re: DOSGI 2, switching to jackson

Posted by Christian Schneider <ch...@die-schneider.net>.
You should be able to define the jackson provider as an intent.
See:
https://github.com/apache/cxf-dosgi/tree/master/common

I remember though that I discussed this with Sergey recently and there 
might be some problem as the newest jax-rs spec makes it more difficult 
to override the default provider.

@Sergey Do you remember what needs to be done for the override?

Once we figure this out we should create a sample that shows how to use 
jackson as I think many people like to use it. If no one else is 
stepping up I will do this.

Christian

On 23.03.2017 12:05, nino martinez wael wrote:
> Hi is it possible to use jackson with dosgi?
>
> We are using enaunciate to generate documentation and they only support
> jackson.. Jettison evaluates or jaxb beans differently, making the doc
> unusable...
>


-- 
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com