Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-1140

Caused by: javax.enterprise.inject.UnsatisfiedResolutionException: Api type [xxx] is not found with the qualifiers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.2
    • 1.7.0
    • Injection and Lookup
    • None
    • Tomcat 7.0.70

    Description

      I was using Tomcat 7.0.54 with owb 1.2.7 and it was working fine.

      So i discovered a bug in tomcat version and then i updated to version 7.0.70, so the cdi stop working, and then i upgrade the owb to 1.6.2 too.

      This is my dependencies:

      cdi-api-1.2.jar
      geronimo-annotation_1.2_spec-1.0.jar
      geronimo-atinject_1.0_spec-1.0.jar
      geronimo-interceptor_1.2_spec-1.0.jar
      geronimo-jcdi_1.0_spec-1.0.jar
      openwebbeans-el22-1.6.2.jar
      openwebbeans-impl-1.6.2.jar
      openwebbeans-spi-1.6.2.jar
      openwebbeans-tomcat7-1.6.2.jar
      openwebbeans-web-1.6.2.jar

      And i am gettin this following error:

      I have 2 classes:
      @javax.enterprise.inject.Default
      public class FbirdDAOFactory extends DAOFactory

      @javax.enterprise.inject.Alternative
      public class SqlSrvDAOFactory extends DAOFactory

      and

      public abstract class ConsultaBase<DTO> implements Consulta<DTO>, SessaoUsuario {
      @javax.inject.Inject
      protected abstract void setDaoFactory(@DefaulDAO DAOFactory daofactory);
      }

      This stop working because the error below:

      Caused by: javax.enterprise.inject.UnsatisfiedResolutionException: Api type [br.com.growupge.factory.DAOFactory] is not found with the qualifiers

      So i put create a qualifier in FbirdDAOFactory e referenced the Qualifier in ConsultaBase and all children classes too. So i kept going to receive the same error

      Attachments

        Activity

          People

            struberg Mark Struberg
            fop.net Felipe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 168h
                168h
                Remaining:
                Remaining Estimate - 168h
                168h
                Logged:
                Time Spent - Not Specified
                Not Specified