2013-05-03 208 views
0

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

回答

0

,名爲「decreg-entite」持久性單元在domain.xml文件中被提及,但JPA配置文件persistence.xml中沒有定義關於持久性單元所有。