【问题标题】:Hibernate Call in violation of protocol exception休眠调用违反协议异常
【发布时间】:2015-04-19 20:45:15
【问题描述】:

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

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

有人有解决这个问题的方法吗?

例外:

0000003a 访客 W com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation [ com.ibm.ws.amm.scan.util.InfoVisitor@511845444 ] 用于方法 [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@1491394741 ( org.hibernate.annotations.JoinColumnOrFormula.column ) ] 名称 [ null ] 描述 [ Ljavax/persistence/JoinColumn; ] 调用违反 协议

0000003a 访客 W com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation [ com.ibm.ws.amm.scan.util.InfoVisitor@511845444 ] 用于方法 [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@1586464341 ( org.hibernate.annotations.Table.foreignKey ) ] 名称 [ null ] 描述 [ Lorg/hibernate/annotations/ForeignKey; ] 呼入 违反协议

【问题讨论】:

标签: java spring hibernate jpa websphere


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-02-14
    • 1970-01-01
    • 1970-01-01
    • 2014-08-22
    • 2011-09-20
    相关资源
    最近更新 更多