0 Replies Latest reply on Oct 11, 2012 12:10 PM by bfluri

    Errai 2.0.0 to 2.0.2: ambiguous injection type exception

    bfluri

      Hello

      We tried to do an update from Errai 2.0.0 to 2.0.2. During the GWT compile phase multiple errors about injection types being ambiguous are logged like the following one:

      [ERROR] org.jboss.errai.ioc.rebind.ioc.exception.InjectionFailure: ambiguous injection type (multiple injectors resolved): com.google.web.bindery.event.shared.EventBus @Any :
      [ERROR] matching> org.jboss.errai.ioc.rebind.ioc.injector.TypeInjector:com.google.web.bindery.event.shared.testing.RecordingEventBus @Any
      [ERROR] matching> org.jboss.errai.ioc.rebind.ioc.injector.TypeInjector:com.google.web.bindery.event.shared.testing.CountingEventBus @Any
      [ERROR] matching> org.jboss.errai.ioc.rebind.ioc.injector.TypeInjector:com.google.web.bindery.event.shared.SimpleEventBus @Any
      [ERROR] matching> org.jboss.errai.ioc.rebind.ioc.injector.TypeInjector:com.google.gwt.event.shared.SimpleEventBus @Any
      [ERROR] matching> org.jboss.errai.ioc.rebind.ioc.injector.TypeInjector:com.google.gwt.event.shared.testing.CountingEventBus @Any
      [ERROR] Note: configure an alternative to take precedence or remove all but one matching bean.
      

      All permutations are done and the deployed app seems to work fine. Nevertheless we would like to fix this or at least know what the

      implications of the errors are.

       

      I guess it's important to know that we use Errai in conjunction with GWT-P and let Gin do all the injection on client side.

       

      Thanks for any hint!