Glassfish部署异常

问题描述:

我正在Glasfish应用服务器上开发JavaEE应用程序。我正在开发,所以我不断地部署/取消部署应用程序。直到几个小时前Glassfish部署异常

一切都很好工作,当我得到这个错误,同时部署:

GRAVE: Exception while invoking class org.glassfish.persistence.jpa.JPADeployer prepare method 
GRAVE: Exception while invoking class org.glassfish.javaee.full.deployment.EarDeployer prepare method 
GRAVE: Exception while preparing the app 
GRAVE: Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [persistence/decreg-entite] in scope of the module called [declaration-reglementaire-ear#declaration-reglementaire-serviceweb-0.0.3-RELEASE.war]. Please verify your application. 
org.glassfish.deployment.common.DeploymentException: Could not resolve a persistence unit corresponding to the persistence-unit-ref-name [persistence/decreg-entite] in scope of the module called [declaration-reglementaire-ear#declaration-reglementaire-serviceweb-0.0.3-RELEASE.war]. Please verify your application. 

有没有人一个想法如何解决这个问题?

谢谢你在它出现andvace

,名为“decreg-entite”持久性单元在domain.xml文件中被提及,但JPA配置文件persistence.xml中没有定义关于持久性单元所有。