Error while testing a SwitchYard project with UserTransaction dependency: "WELD-001408 Unsatisfied dependencies ..."
Issue
-
There is an error that prevents the SwitchYard tests from executing which relates to the fact that in a class there is an
@Injectof theUserTransaction.org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [UserTransaction] with qualifiers [@Default] at injection point [[field] @Inject private com.redhat.samples.switchyard.GreetingServiceImpl.ut] -
The SwitchYard Bean service under test has a
UserTransactionfield injected like this:@Service(GreetingService.class) public class GreetingServiceImpl implements GreetingService { @Inject private UserTransaction ut;
Environment
- Red Hat JBoss Fuse Service Works (FSW)
- 6.0.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
