eclipse-ee4j / jersey

Eclipse Jersey Project - Read our Wiki:
https://github.com/eclipse-ee4j/jersey/wiki
Other
692 stars 355 forks source link

Ambiguous dependencies for type OAuth1Provider #3485

Open jerseyrobot opened 7 years ago

jerseyrobot 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]

jerseyrobot commented 6 years ago
jerseyrobot commented 7 years ago

@glassfishrobot Commented Reported by jinahya

jerseyrobot commented 7 years ago

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