7 Replies Latest reply on Oct 4, 2012 6:29 AM by Thomas Stark

    CDI: Injecting in war from different war throws WELD Exception (unresolved dependencies)

    Franz Goerke Newbie

      Hi,

      I am trying to inject a stateless Bean to a Managedbean, everything works perfectly if both beans are in the same war. Now, I have divided my project into several wars. Now I am getting a Unsatisfied Dependencies Exception:

       

       

      Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [ServiceLogin] with qualifiers [@Default] at injection point [[field] @Inject private org.atmosfair.view.login.LoginBean.serviceLogin]
      

       

      I have already tried to put a dependency in the manifest.mf, but this doesn't work. What am I doing wrong? Or is it just impossible, what I can hardly imagine.

       

      thx for your help