“JBAS016069: Error injecting persistence unit into CDI managed bean.” When deploying WAR with dependency to EJB-JAR
问题 I have the following setup: EJB-JAR: Contains some entities and DAOs. Holds the persistence.xml for the EntityManager used in the DAOs. Test-WAR: Contains a servlet that injects one of the DAOs of the EJB-JAR (either using @Inject or @EJB). The Problem: I am currently deploying the applications to Wildfly 8.x When I deploy the jar with a singleton that is started after deployment, I'm able to use the DAOs as intended. I'm getting results from the DB ... But when I try to deploy the war with a