6 Replies Latest reply on Feb 9, 2011 6:35 AM by Sebastian Sachtleben

    WELD-001408

    nimo stephan Master

      I have this:




      @Named @SessionScoped
      public class MyBean implements Serializable{
      
      private static final long serialVersionUID = -...;
      
      @Inject @Named
      private UserView userView;
      
      ..
      }



      and get this error:



      WELD-001408 Unsatisfied dependencies for type [UserView] with qualifiers [@Named] at injection point [[field] @Inject @Named private com.MyBean.userView]



      The Docs says that I can do something like this:


      Example usage:



      public class Car {
           @Inject @Named("driver") Seat driverSeat;
           @Inject @Named("passenger") Seat passengerSeat;





      But it does not work. Why? I am using weld 1.1 final.