When used in a Java EE project the following exception occurs:
WELD-001408 Unsatisfied dependencies for type [Set] with qualifiers [@Default] at injection point [[parameter 1] of [constructor] @Inject com.google.common.util.concurrent.ServiceManager(Set)]
The problem is that CDI tries to inject a Set of com.google.common.util.concurrent.Service but there is nothing that provides it.
Possible Solutions:
Use a newer Guava version (at least 16, the fix was introduced there, see this commit)
Disable CDI
Implement a tiny producer
@Produces Set<Service> dummyServices() {
return new HashSet<>();
}
When used in a Java EE project the following exception occurs:
The problem is that CDI tries to inject a Set of com.google.common.util.concurrent.Service but there is nothing that provides it.
Possible Solutions:
Solution found here