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

孤街醉人 提交于 2020-01-16 13:17:09

问题


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?


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/6058274/getting-a-weld-001408-unsatisfied-dependencies-error-when-deploying-a-class-inj

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!