org.jboss.weld.exceptions.DeploymentException:WELD-001408类型不满意的依赖项

时间:2013-01-22 23:55:24

标签: java jboss jboss7.x

我有LoginCrudService依赖

   @Inject
    public LoginCrudService(@Nonnull @LoginService final EntityManager entityManager) {
        super(entityManager);
    }

其中@LoginService正确指向正确的界面

@Qualifier
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.TYPE})
public @interface LoginService {
}

当我在JBoss AS 7.1上部署时,我看到了

org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [EntityManager] with qualifiers [@LoginService] at injection point [[parameter 1] of [constructor] @Inject public com.myorg.bb.persistence.LoginCrudService(EntityManager)]
    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)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
Exception 0 :

这个错误意味着什么?我该如何解决?

1 个答案:

答案 0 :(得分:0)

我怀疑您的应用程序缺少库。

应该通过检查位于 JBOSS_HOME /standalone/log/server.log

的JBoss服务器日志来发现异常。