警告“违反协议的电话”
我有一个在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
] [[
有谁知道是什么原因造成的?
是的,使用此属性:
...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中
帮助我!
可以在服务器和应用程序级别配置元数据解析,如http://www-01.ibm.com/support/docview.wss?rs=180&uid=swg21381764中所述。
您是否从早期版本升级到Servlet规范3.0? 这是我的情况,我现在看到同样的错误。
- 为什么使用带有Oracle 10g方言的Hibernate使用JPA创建一个名为hibernate_sequence的序列?
- 将两个相同的表(相同的模式…)映射到Hibernate中的同一个实体
- 添加此ActionListener时出现错误
- 如何修复错误:“INFO:HHH000206:找不到hibernate.properties”?
- 没有元模型使用的JPA 2 Criteria API不区分大小写的条件
- 通过其ID来序列化JAXB对象?
- 如何在Hibernate中复制“SHOW TABLES”?
- java.lang.NoClassDefFoundError:无法初始化类org.com.hibernate.HibernateUtil
- c3p0在hwaitnate的awaitAvailable中挂起