Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.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
将Wildfly 15中的Hibernate降级为4.x_Hibernate_Jpa_Wildfly - Fatal编程技术网

将Wildfly 15中的Hibernate降级为4.x

将Wildfly 15中的Hibernate降级为4.x,hibernate,jpa,wildfly,Hibernate,Jpa,Wildfly,我想在Wildfly 15上部署一个需要Hibernate 4.x的应用程序。根据文档,这是使用部署的persistence.xml中的以下属性完成的: <property name="jboss.as.jpa.providerModule" value="org.hibernate:4.3"/> 我还尝试向jboss-deployment-structure.xml文件添加依赖项,但也没有效果: <jboss-deployment-structure xmlns="urn:

我想在Wildfly 15上部署一个需要Hibernate 4.x的应用程序。根据文档,这是使用部署的persistence.xml中的以下属性完成的:

<property name="jboss.as.jpa.providerModule" value="org.hibernate:4.3"/>
我还尝试向jboss-deployment-structure.xml文件添加依赖项,但也没有效果:

<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
<deployment>
    <dependencies>
        <module name="org.hibernate" slot="4.3"/>
    </dependencies>
</deployment>

有什么想法吗?至少当我将模块依赖项的插槽更改为明显错误时,部署失败。因此,在我的部署过程中,jboss-deployment-structure.xml似乎已被识别。

您必须排除默认的hibernate模块

<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
<deployment>
    <dependencies>
        <module name="org.hibernate" slot="4.3"/>
    </dependencies>
</deployment>