gpt4 book ai didi

java - Hibernate调用违反协议(protocol)异常

转载 作者:搜寻专家 更新时间:2023-10-30 23:02:59 24 4
gpt4 key购买 nike

当我尝试将 Web 应用程序部署到 WebSphere 8.5 时,出现调用违反协议(protocol)异常。 Web 应用程序基于 Spring(4.1.4.RELEASE) 和 Hibernate(4.2.7.Final) 技术栈。

我已将 persistance.xml 放入 META-INF 目录。

有人解决这个问题吗?

异常(exception):

0000003a visitor W com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation [ com.ibm.ws.amm.scan.util.InfoVisitor@511845444 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@1491394741 ( org.hibernate.annotations.JoinColumnOrFormula.column ) ] Name [ null ] Description [ Ljavax/persistence/JoinColumn; ] Call in violation of protocol

0000003a visitor W com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation [ com.ibm.ws.amm.scan.util.InfoVisitor@511845444 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@1586464341 ( org.hibernate.annotations.Table.foreignKey ) ] Name [ null ] Description [ Lorg/hibernate/annotations/ForeignKey; ] Call in violation of protocol

最佳答案

请检查您的 web.xml 架构位置和元数据,创建一个与您面临问题的类似类型的 Web 应用程序,并从这个新创建的应用程序中复制 web.xml 的基本结构并将您的实际 web.xml来自旧应用程序的东西。然后放置修改后的web.xml

关于java - Hibernate调用违反协议(protocol)异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28590570/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com