Glassfish部署例外

时间:2013-05-03 13:52:34

标签: java java-ee deployment glassfish

我正在Glasfish Application Server上开发JavaEE应用程序。我正在开发,所以我不断部署/取消部署应用程序。

直到几个小时前,当我在部署时出现此错误时,一切都运行良好:

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

1 个答案:

答案 0 :(得分:1)

看来,你的domain.xml文件中提到了名为'decreg-entite'的持久性单元,但是jpa配置文件,persistence.xml没有定义所有关于持久性单元的内容。