Paul Sandoz wrote:
> 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);
>
Yes, that's the pattern I was following, plus adding it to the
singletons set of the ResourceConfig instance.
Eventually this actually did work. I must have had some other
combination of stuff wrong when it was failing.
> Paul.
>
Craig
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>