Использование нескольких persistence unit в одном проекте.
Когда в проекте несколько персистенс юнитов, возникает такой эксепшн :
SEVERE: Exception while invoking class org.glassfish.persistence.jpa.JPADeployer prepare method
SEVERE: java.lang.RuntimeException: Could not resolve a persistence unit corresponding to the persistence-context-ref-name [com.str.testpu.facade.UserFacade/em] in the scope of the module called [StrTestPU]. Please verify your application.
SEVERE: Exception while invoking class org.glassfish.persistence.jpa.JPADeployer prepare method
SEVERE: java.lang.RuntimeException: Could not resolve a persistence unit corresponding to the persistence-context-ref-name [com.str.testpu.facade.UserFacade/em] in the scope of the module called [StrTestPU]. Please verify your application.