You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Matt Parker <pa...@gmail.com> on 2014/09/03 23:06:06 UTC
jaxrs.providers delimiter change in 3.x
Hi,
I wanted to mention that the default delimiter appears to have changed in
3.x for the jaxrs.providers init-param. I upgraded from 2.x to 3.0.1, and
needed to add a comma as the delimiter between providers, otherwise I would
get an exception and the servlet wouldn't start. It appears that one may
specify class.parameter.split.char to their liking, but this does not cover
the default case.
TIA,
-Matt
Re: jaxrs.providers delimiter change in 3.x
Posted by Sergey Beryozkin <sb...@gmail.com>.
You are right this should've been reflected in the documentation, I've
just checked the change was made in July 2012, 3.0.x was not even in the
plans at a time when the trunk with that update was released.
Let me update the documentation a bit,
Cheers, Sergey
On 03/09/14 22:36, Matt Parker wrote:
> Thanks for the explanation. I should also have said that it would be nice
> to see it added to the migration guide :) Would have saved me a bit of
> troubleshooting, maybe it will help someone else save some time.
>
>
> On Wed, Sep 3, 2014 at 3:27 PM, Sergey Beryozkin <sb...@gmail.com>
> wrote:
>
>> Hi
>>
>> On 03/09/14 22:06, Matt Parker wrote:
>>
>>> Hi,
>>>
>>> I wanted to mention that the default delimiter appears to have changed in
>>> 3.x for the jaxrs.providers init-param. I upgraded from 2.x to 3.0.1, and
>>> needed to add a comma as the delimiter between providers, otherwise I
>>> would
>>> get an exception and the servlet wouldn't start. It appears that one may
>>> specify class.parameter.split.char to their liking, but this does not
>>> cover
>>> the default case.
>>>
>>> As far as I recall the ' ' delimiter was causing issues in cases where
>> individual providers had some of the properties injected, example, one can
>> say:
>>
>> MyProviderA(a=b a=2),MyProviderB(a=b a=2)
>>
>> I don't recall right now why I could not have
>> MyProviderA(a=b,a=2) MyProviderB(a=b,a=2)
>>
>> may be because some of the properties can be list properties...
>> There has to be a record in archives of why the decision was made to use a
>> ',' by default
>>
>> Cheers, Sergey
>>
>>> TIA,
>>>
>>> -Matt
>>>
>>>
>>
>
Re: jaxrs.providers delimiter change in 3.x
Posted by Matt Parker <pa...@gmail.com>.
Thanks for the explanation. I should also have said that it would be nice
to see it added to the migration guide :) Would have saved me a bit of
troubleshooting, maybe it will help someone else save some time.
On Wed, Sep 3, 2014 at 3:27 PM, Sergey Beryozkin <sb...@gmail.com>
wrote:
> Hi
>
> On 03/09/14 22:06, Matt Parker wrote:
>
>> Hi,
>>
>> I wanted to mention that the default delimiter appears to have changed in
>> 3.x for the jaxrs.providers init-param. I upgraded from 2.x to 3.0.1, and
>> needed to add a comma as the delimiter between providers, otherwise I
>> would
>> get an exception and the servlet wouldn't start. It appears that one may
>> specify class.parameter.split.char to their liking, but this does not
>> cover
>> the default case.
>>
>> As far as I recall the ' ' delimiter was causing issues in cases where
> individual providers had some of the properties injected, example, one can
> say:
>
> MyProviderA(a=b a=2),MyProviderB(a=b a=2)
>
> I don't recall right now why I could not have
> MyProviderA(a=b,a=2) MyProviderB(a=b,a=2)
>
> may be because some of the properties can be list properties...
> There has to be a record in archives of why the decision was made to use a
> ',' by default
>
> Cheers, Sergey
>
>> TIA,
>>
>> -Matt
>>
>>
>
Re: jaxrs.providers delimiter change in 3.x
Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi
On 03/09/14 22:06, Matt Parker wrote:
> Hi,
>
> I wanted to mention that the default delimiter appears to have changed in
> 3.x for the jaxrs.providers init-param. I upgraded from 2.x to 3.0.1, and
> needed to add a comma as the delimiter between providers, otherwise I would
> get an exception and the servlet wouldn't start. It appears that one may
> specify class.parameter.split.char to their liking, but this does not cover
> the default case.
>
As far as I recall the ' ' delimiter was causing issues in cases where
individual providers had some of the properties injected, example, one
can say:
MyProviderA(a=b a=2),MyProviderB(a=b a=2)
I don't recall right now why I could not have
MyProviderA(a=b,a=2) MyProviderB(a=b,a=2)
may be because some of the properties can be list properties...
There has to be a record in archives of why the decision was made to use
a ',' by default
Cheers, Sergey
> TIA,
>
> -Matt
>