运行时报错,HCANN000001: Hibernate Commons Annotations {4.0.2.Final} 等

三月 15, 2017 4:42:33 下午 org.hibernate.annotations.common.Version
INFO: HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
三月 15, 2017 4:42:34 下午 org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.1.4.Final}
三月 15, 2017 4:42:34 下午 org.hibernate.cfg.Environment
INFO: HHH000206: hibernate.properties not found
三月 15, 2017 4:42:34 下午 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
三月 15, 2017 4:42:34 下午 org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
三月 15, 2017 4:42:34 下午 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
三月 15, 2017 4:42:35 下午 org.hibernate.cfg.Configuration addResource
INFO: HHH000221: Reading mappings from resource: com/zp/domain/Employee.hbm.xml
三月 15, 2017 4:42:35 下午 org.hibernate.cfg.Configuration doConfigure
INFO: HHH000041: Configured SessionFactory: null
三月 15, 2017 4:42:36 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000402: Using Hibernate built-in connection pool (not for production use!)



解决如下:

1.选中项目,点击右键,选中Properties

运行时报错,HCANN000001: Hibernate Commons Annotations {4.0.2.Final} 等_第1张图片


2.移除Hibernate 4.1.4 Libraries包

运行时报错,HCANN000001: Hibernate Commons Annotations {4.0.2.Final} 等_第2张图片


3.重新运行主函数,恢复正常




你可能感兴趣的:(Java)