1 Reply Latest reply on May 7, 2015 1:26 AM by valsaraj viswanathan

    WELD-001408: Unsatisfied dependencies for type AsyncBean with qualifiers @Default   at injection point [BackedAnnotatedField] @Inject

    valsaraj viswanathan Master

      Hi,

       

      I am getting WELD-001408: Unsatisfied dependencies for type AsyncBean with qualifiers @Default  at injection point [BackedAnnotatedField] @Inject when I deploy ear file. EAR contanin ejb,jar and web.war files. This occurred after I added an asynchronous bean to test that feature.

       

      Here is the sample code I used to check asynchronous feature:

      @Asynchronous // This makes all business methods in the class async

      public class AsyncBean{

       

          @Asynchronous //To make only this method async

          public void doAsyncStuff(){

          }

       

      }


      This EJB is callled from servlet after injecting it:


        @Inject

        private AsyncBean asyncBean;

       

      What may be wrong?

       

      Thanks!