在部署带有接口注入的类时,收到"WELD-001408不满足的依赖项错误". [英] Getting a "WELD-001408 Unsatisfied dependencies error when deploying a class injected with an interface"
本文介绍了在部署带有接口注入的类时,收到"WELD-001408不满足的依赖项错误".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Arquillian在JUnit4和Jboss6上进行一些单元测试.有一个外观(SomeFacadeclass)已注入"SomeClass"(它是一个接口).当Arquillian部署用于测试上述部署的test.war时,会弹出错误. 我应该怎么做才能解决这个问题?
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?
推荐答案
我想您的bean档案中没有SomeClass
的实现
I would guess that you don't have an implementation of SomeClass
in your bean archives
这篇关于在部署带有接口注入的类时,收到"WELD-001408不满足的依赖项错误".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文