警告“违反协议的电话”

时间:2014-03-04 13:54:46

标签: java hibernate websphere

我有一个在 IBM Websphere 8.5 上运行的应用程序,我正在使用hibernate 4.2.8。 我在服务器启动时收到了以下警告:

[3/4/14 15:20:10:725 CAT] 00000034 visitor       W com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation [ com.ibm.ws.amm.scan.util.InfoVisitor@15024097 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@-210189610 ( org.hibernate.annotations.JoinColumnOrFormula.formula ) ] Name [ null ] Description [ Lorg/hibernate/annotations/JoinFormula; ] Call in violation of protocol
[3/4/14 15:20:10:725 CAT] 00000034 visitor       W com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation [ com.ibm.ws.amm.scan.util.InfoVisitor@15024097 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@-482978983 ( org.hibernate.annotations.JoinColumnOrFormula.column ) ] Name [ null ] Description [ Ljavax/persistence/JoinColumn; ] Call in violation of protocol
[3/4/14 15:20:10:729 CAT] 00000034 visitor       W com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation [ com.ibm.ws.amm.scan.util.InfoVisitor@15024097 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@-1529286857 ( org.hibernate.annotations.Table.foreignKey ) ] Name [ null ] Description [ Lorg/hibernate/annotations/ForeignKey; ] Call in violation of protocol
[3/4/14 15:20:10:729 CAT] 00000034 visitor       W com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation [ com.ibm.ws.amm.scan.util.InfoVisitor@15024097 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@1310727123 ( org.hibernate.annotations.Table.sqlInsert ) ] Name [ null ] Description [ Lorg/hibernate/annotations/SQLInsert; ] Call in violation of protocol
[3/4/14 15:20:10:730 CAT] 00000034 visitor       W com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation [ com.ibm.ws.amm.scan.util.InfoVisitor@15024097 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@251574898 ( org.hibernate.annotations.Table.sqlUpdate ) ] Name [ null ] Description [ Lorg/hibernate/annotations/SQLUpdate; ] Call in violation of protocol
[3/4/14 15:20:10:730 CAT] 00000034 visitor       W com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation [ com.ibm.ws.amm.scan.util.InfoVisitor@15024097 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@-1168467436 ( org.hibernate.annotations.Table.sqlDelete ) ] Name [ null ] Description [ Lorg/hibernate/annotations/SQLDelete; ] Call in violation of protocol
[3/4/14 15:20:10:882 CAT] 00000034 visitor       W com.ibm.ws.amm.scan.util.AnnotationInfoDefaultVisitor visitAnnotation [ com.ibm.ws.amm.scan.util.InfoVisitor@-179906720 ] for method [ com.ibm.ws.amm.scan.util.info.impl.MethodInfoImpl@1056720732 ( javax.persistence.AssociationOverride.joinTable ) ] Name [ null ] Description [ Ljavax/persistence/JoinTable; ] Call in violation of protocol

] [

有谁知道造成这种情况的原因是什么?

3 个答案:

答案 0 :(得分:2)

是的,使用此属性:

...xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"

metadata-complete =“true”......

的负责人
  

的web.xml

帮助我!

答案 1 :(得分:1)

可以在服务器和应用程序级别配置元数据解析,如http://www-01.ibm.com/support/docview.wss?rs=180&uid=swg21381764

所述

答案 2 :(得分:1)

您是否从早期版本升级到Servlet规范3.0?这是我的情况,我现在看到同样的错误。