javaee / jersey

This is no longer the active Jersey repository. Please see the README.md
http://jersey.github.io
Other
2.86k stars 2.35k forks source link

Ambiguous dependencies for type OAuth1Provider #3485

Open glassfishrobot opened 7 years ago

glassfishrobot commented 7 years ago

When I implement my own OAuth1Provider CDI complains with

org.jboss.weld.exceptions.DeploymentException: WELD-001409: Ambiguous dependencies for type OAuth1Provider with qualifiers @Default
  at injection point [UnbackedAnnotatedField] @Inject private org.glassfish.jersey.server.oauth1.internal.AccessTokenResource.provider
  at org.glassfish.jersey.server.oauth1.internal.AccessTokenResource.provider(AccessTokenResource.java:0)
  Possible dependencies:
  - Managed Bean [class org.glassfish.jersey.server.oauth1.DefaultOAuth1Provider] with qualifiers [@Any @Default],
  - Managed Bean [class ....OAuth1Provider_] with qualifiers [@Any @Default]

OAuth1Provider_ class is my own.

Affected Versions

[2.25]

glassfishrobot commented 7 years ago

Reported by jinahya

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JERSEY-3213