The enterprise application is running in a JBoss 6.0.0-M4 instance.
CDI works perfect for injecting beans that are contained in the ejb module. But injecting beans from the persistence library jar results in following exception:
09:55:24,845 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=vfs:///home/woelfle/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_Server1279792549070/deploy/application.ear_WeldBootstrapBean state=Create: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Injection point has unsatisfied dependencies. Injection point: field my.test.application.UserServicesImpl.userDAO; Qualifiers: [@javax.enterprise.inject.Default()]
The class UserServicesImpl is currently implemented with following code:
If I remove the @Inject annotation and create a concrete instance of the UserDAO in the constructor of the UserServicesImpl then everything works fine. Using the @Inject annotation results in the exception above.
Any idea what I am doing wrong?