Glassfish 部署异常

问题描述 投票:0回答:1

我正在 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.

有人知道如何解决这个问题吗?

java jakarta-ee deployment glassfish
1个回答
1
投票

看来,您的domain.xml 文件中提到了名为“decreg-entite”的持久性单元,但jpa 配置文件persistence.xml 并未定义有关持久性单元的所有信息。

© www.soinside.com 2019 - 2024. All rights reserved.