1
resposta

CDI: WELD-001408: Unsatisfied dependencies for type EntityManager with qualifiers @Default

Olá pessoal,

Estou tendo essa exception em para todas as classes Dao ao iniciar a aplicação, alguma alguem pode dar uma luz?

Estou utilizando uma Servidor de Aplicação para fazer o deploy (Websphere Application Server 9.0.0.9)

[30/10/18 17:05:46:255 BRT] 000000a7 SystemErr     R     Suppressed: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type EntityManager with qualifiers @Default
      at injection point [BackedAnnotatedParameter] Parameter 1 of [BackedAnnotatedConstructor] @Inject public br.com.solucaoaquibradescoseguros.dao.impl.HistoricoDAOImpl(EntityManager)
      at br.com.solucaoaquibradescoseguros.dao.impl.HistoricoDAOImpl.<init>(HistoricoDAOImpl.java:0)

    [30/10/18 17:05:46:255 BRT] 000000a7 SystemErr     R         at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:362)
    [30/10/18 17:05:46:255 BRT] 000000a7 SystemErr     R         at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:284)
    [30/10/18 17:05:46:255 BRT] 000000a7 SystemErr     R         at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:137)
    [30/10/18 17:05:46:255 BRT] 000000a7 SystemErr     R         at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:158)
    [30/10/18 17:05:46:255 BRT] 000000a7 SystemErr     R         at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:501)
    [30/10/18 17:05:46:255 BRT] 000000a7 SystemErr     R         at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:61)
    [30/10/18 17:05:46:255 BRT] 000000a7 SystemErr     R         at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:59)
    [30/10/18 17:05:46:255 BRT] 000000a7 SystemErr     R         at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:62)
    [30/10/18 17:05:46:255 BRT] 000000a7 SystemErr     R         at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:55)
    [30/10/18 17:05:46:255 BRT] 000000a7 SystemErr     R         at java.util.concurrent.FutureTask.run(FutureTask.java:277)
    [30/10/18 17:05:46:255 BRT] 000000a7 SystemErr     R         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160)
    [30/10/18 17:05:46:255 BRT] 000000a7 SystemErr     R         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    [30/10/18 17:05:46:255 BRT] 000000a7 SystemErr     R         at java.lang.Thread.run(Thread.java:812)
1 resposta

Bom dia! Meu chute é que o EntityManager que está buscando no dao está vindo com valor nulo!