J2EE Exception:WELD-001408 Unsatisfied dependencies for type [SelectModelFactory] with qualifiers [@
来源:互联网 发布:多普达t5399软件 编辑:程序博客网 时间:2024/05/20 23:08
Issue:
When you inject some resources using @Inject, you may encounter following exception after app deployed.
Exception:
Caused by: org.jboss.weld.exceptions.DeploymentException:WELD-001408 Unsatisfied dependencies for type [SelectModelFactory] with qualifiers [@Default]at injection point [[field] @Inject private net.spirent.xye.ui.pages.bird.CreateBird.selectModelFactory]
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:275)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)
at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)
at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
... 5 more
Solution:
You can replace your @inject annotation with @Produces to workaroun this issue.
- J2EE Exception:WELD-001408 Unsatisfied dependencies for type [SelectModelFactory] with qualifiers [@
- error: conflicting type qualifiers for 'xxxxx'
- JBAS014775: New missing/unsatisfied dependencies
- Jboss 7.1.final New missing/unsatisfied dependencies:
- An Exception Handling Framework for J2EE Applications
- Exception: ermission denied for this window type
- warning:discards qualifiers from pointer target type
- Type Qualifiers in C and C++
- Automation for the people: Manage dependencies with Ivy
- Deal with WinForm Exception for database applications
- Qt - 警告"warning: type qualifiers ignored on function return type"
- 警告"warning: type qualifiers ignored on function return type"
- ean with name 'indexController': Injection of autowired dependencies failed; nested exception is
- [AFN]terminating with uncaught exception of type NSException
- An Exception Handling Framework for J2EE Applications(onjava)
- The type initializer for 'TestStatic.StaticClass' threw an exception.
- type Exception reportmessage Unable to compile class for
- Spring Data JPA - “No Property Found for Type” Exception
- 企业IT规划
- 字符串的全排列和组合算法
- MapReduce :Simpliyed Data Processing on Large Clusters 总结
- 光照归一化算法——DoG滤波,自商图
- mapreduce调试查询System.out的结果
- J2EE Exception:WELD-001408 Unsatisfied dependencies for type [SelectModelFactory] with qualifiers [@
- [go]基于协程的并发ping(2)
- 巧用WINRAR和DOS命令处理压缩数据
- 将手绘地图或自制地图显示在网页上(利用百度API)
- div+css解决图片垂直居中问题
- title && tile
- 34个SEO问题解答from百度站长俱乐部Lee
- apache http client
- Grid View