Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/303.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Glassfish部署异常_Java_Jakarta Ee_Deployment_Glassfish - Fatal编程技术网

Java Glassfish部署异常

Java Glassfish部署异常,java,jakarta-ee,deployment,glassfish,Java,Jakarta Ee,Deployment,Glassfish,我正在Glasfish应用服务器上开发一个JavaEE应用程序。我在开发,所以我在不断地部署/取消部署应用程序 直到几个小时前,当我在部署时出现以下错误时,一切都很正常: GRAVE: Exception while invoking class org.glassfish.persistence.jpa.JPADeployer prepare method GRAVE: Exception while invoking class org.glassfish.javaee.full.de

我正在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并没有定义持久性单元的所有内容

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