users@jersey.java.net

Re: [Jersey] PROPERTY_DEFAULT_RESOURCE_COMPONENT_PROVIDER_FACTORY_CLASS

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 14 Aug 2009 08:48:53 +0200

On Aug 13, 2009, at 8:29 PM, Craig McClanahan wrote:
>> I had tried this one, having seen it in one of your email responses
>> acquired through a Google search, but it didn't seem to get
>> recognized. That might be because I used
>> PackagesResourceConfig ... I will try it with DefaultResourceConfig
>> instead.
> For the record, this was my problem ... it works with
> DefaultResourceConfig but fails with PackagesResourceConfig. That's
> fine for my use case (I want Guice to supply all my root resource
> and provider classes), but might be a problem for someone who wants
> a mixed bag.
>

That is odd. Can you share some code?

Are you doing something like the following:

  Injector i = ...
  PackagesResourceConfig prc = ...
  GuiceComponentProviderFactory gcpf = new
GuiceComponentProviderFactory(prc, i);

Paul.