Moon Moon
Moon Moon

Reputation: 51

Getting a "WELD-001408 Unsatisfied dependencies error when deploying a class injected with an interface"

I'm doing some unit tests using Arquillian on JUnit4 and Jboss6. There is a facade(SomeFacadeclass) that has the "SomeClass"(which is an interface) injected to it. When Arquillian deploys the test.war for testing the above deployment error pops up. What should i do to solve this?

Upvotes: 0

Views: 3545

Answers (2)

Moon Moon
Moon Moon

Reputation: 51

Everything was solved. I added the implementation class to the @Deployment archive and some other bunch of dependent classes things work fine now.

Upvotes: 1

Bozho
Bozho

Reputation: 597362

I would guess that you don't have an implementation of SomeClass in your bean archives

Upvotes: 2

Related Questions