users@jersey.java.net

[Jersey] Re: Overriding DefaultOauthProvider in Jersey 1.18.3

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Thu, 18 Dec 2014 21:04:50 +0100

Declare all your resources and providers explicitly and do not rely on classpath scanning. (IOW, implement a subclass of javax.ws.rs.core.Application that returns all your provider classes from getClasses(). Alternatively, use Jersey ResourceConfig subclass.)

Cheers,
Marek

> On 18 Dec 2014, at 19:15, Bill Oberacker <bill.oberacker_at_gmail.com> wrote:
>
> I need to know how I can "ignore" or "override" DefaultOAuthProvider when deploying a Jersey 1.18.3 application. I have my own "OAuth Provider" (annotated with the @Provider annotation), but I'm getting a warning that 2 providers are attempting to be provided.
>
> Thanks.
>
> Bill Oberacker