title: Jboss EAP 6 to EAP 7 upgrade - jar deployement failed
body: <p>My project runs in production on JBOSS EAP 6. This XX.war is deployed in Jboss EAP6 but now we are upgrading to EAP7. I'm getting this error when i deploy war file in Jboss EAP7 local.</p>
  
  <p>project structure would be 1.XX.jar 2.YY.war</p>
  
  <p>XX.jar gets deployed first since YY.war has dependency on XX.jar but for some reason on JBOSS 7, YY.war deployment is failing and getting below error.</p>
  
  <p>"{\"WFLYCTL0080: Failed services\" => {\"jboss.deployment.unit.\"YY.war\".WeldStartService\" => \"Failed to start service Caused by: java.lang.IllegalArgumentException: WFLYWELD0037: Error injecting persistence unit into CDI managed bean. Can't find a persistence unit named '' in deployment YY.war for injection point protected javax.persistence.EntityManager wbr.investments.XX.dao.DaoRoot.emOptions\"}}"</p>