users@jersey.java.net

[Jersey] Re: Enabling POJO JSON mapping without web.xml

From: James Shaw <js102_at_zepler.net>
Date: Wed, 15 Aug 2012 21:52:34 +0100

That's what I tried. I've raised JERSEY-1373 with a testcase that
reproduces the problem.

On 15 August 2012 09:23, Pavel Bucek <pavel.bucek_at_oracle.com> wrote:
> Hello James,
>
> you can annotate ResourceConfig descendant with @ApplicationPath as well
> (ResouceConfig extends Application), so somehing like
>
> @ApplicationPath("myApplicationPath")
> public class MyApplication extends PackagesResourceConfig {
> public MyApplication() {
> super("org.mycompany.rest.resources");
>
> getProperties().put("...", "...");
> }
> }
>
> should work.
>
> Regards,
> Pavel
>
>
> On 8/11/12 12:08 PM, James Shaw wrote:
>>
>> I'm trying to enable POJO JSON mapping with Jersey 1.13 using an
>> Application class annotated with @ApplicationPath("/")
>>
>> As far as I can tell, the feature isn't being picked up by
>> JacksonProviderProxy: setFeaturesAndProperties() is receiving an
>> instance of DeferredResourceConfig which has no features set.
>>
>> Am I doing something wrong or could this be a bug? I'll try and
>> reduce this to a test case if it's necessary.
>>
>>
>