Announcement Announcement Module
Collapse
No announcement yet.
CDI Integration Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • CDI Integration

    I'm trying to get CDI Integration, but the following errors occurs at deployment:

    WARNING: Error in annotation processing: java.lang.NoClassDefFoundError: org/springframework/beans/factory/BeanFactoryAware
    WARNING: Error in annotation processing: java.lang.NoClassDefFoundError: org/springframework/beans/factory/BeanFactoryAware
    SEVERE: Class [ com/mysema/query/dml/UpdateClause ] not found. Error while loading [ class org.springframework.data.jpa.repository.support.Qu eryDslRepositorySupport ]

    I have dropped spring-data-commons and spring-data-jpa JARs in my classpath. I what I'm missing?

  • #2
    The required dependencies. Prefer using a dependency management tool like Maven to automatically resolve all required dependencies.

    Comment


    • #3
      I have solved all dependencies. Now, I get the following exception:

      SEVERE: Exception while loading the app : WELD-001408 Unsatisfied dependencies for type [ProjetoRepository] with qualifiers [@Default] at injection point [[field] @Inject ProjetoCrudController.repository]
      org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [ProjetoRepository] with qualifiers [@Default] at injection point [[field] @Inject ProjetoCrudController.repository]

      My repository is:

      public interface ProjetoRepository extends JpaRepository<Projeto, Integer> {
      }

      And my consumer is:

      public class ProjetoCrudController implements Serializable {

      @Inject
      private ProjetoRepository repository;

      }

      Comment

      Working...
      X