繁体   English   中英

Glassfish部署例外

[英]Glassfish deployment exception

我正在Glasfish应用程序服务器上开发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

看起来,您的domain.xml文件中提到了名为“ decreg-entite”的持久性单元,但jpa配置文件persistence.xml并未定义持久性单元的全部内容。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM