簡體   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