首页 > 技术文章 > Refer to Hibernate 3.6 Migration Guide

hupolinglong 2017-09-15 10:23 原文

一、tomcat 运行过程中提示:


2011-12-31 15:26:39,778 WARN [org.hibernate.util.DTDEntityResolver] - recognized obsolete hibernate namespacehttp://hibernate.sourceforge.net/. Use namespacehttp://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!

 

解决办法:

1、检查所有***.hbm.xml文件,看看是不是有
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"
更换为
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"


2、检查hibernate.cfg.xml文件,将
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
更换为

"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"

 

二、

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

 

问题是缺少两个jar包, log4j-1.2.17.jar和slf4j-log4j12-1.7.6.jar,在我的资源里可以下载!

也可能朋友们有更好的解决方式,请写出来,大家学习一下!

推荐阅读