`

[转]解决hibernate:referenced file contains errors http hibernate.sourceforge.net hi

阅读更多
项目中实体类的映射文件XXXX.hbm.xml莫名的报错,
提示的是:hibernate:referenced file contains errors http hibernate.sourceforge.net hibernate-mapping-3.0.dtd

但也不影响项目运行所以也就没太在意,今天有空把这个刺眼红X给解决了~~~

报错的内容是:referenced file contains errors http hibernate.sourceforge.net hibernate-mapping-3.0.dtd,有的人建议修改里面的约束,但是我这是从svn挡下来的项目,不能因为个人提交这种更新,
最后的处理方式是:打开Eclipse-->Window-->Preferences-->Web and XML-->XML Catalog 在右边点击Add XML Catalog Entry ,location就是你的hibernate-configuration-3.0.dtd和hibernate-mapping-3.0.dtd两个dtd在本地的位置,这两个文件你可以从hibernate的源码包里面找到,Key Type选择URI,这是两个dtd,所以你需要add两个,KEY就是与其对应的http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd 、http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd ,这都做好了,刷新项目,你会发现错误没有了。

如果刷新发现还有错误提示,那就打开报错的hbm.xml   在里面敲几个空格然后保存,你会发现错误提示没了
分享到:
评论

相关推荐

    dubbo.

    dubbo.

    dubbo找不到dubbo.xsd报错

    - schema_reference.4: Failed to read schema document 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root ...

    Visual.Basic.2010.&.NET4.高级编程(第6版)全部实例代码

    The source code for the examples that appear in Professional Visual Basic 2010 are organized by chapter, with all the files... Each sample may have one or more solutions which are referenced by the text.

    org.eclipse.paho.mqttv5.client-1.2.5.jar解决SSL认证连接SNIHostName类不存在的问题

    MQTTv5版的客户端库,原地址:... 本资源合入了解决低于android7.0报错Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.net.ssl.SNIHostName"的问题。

    开源项目RoundedImageView

    开源项目的地址:https://github.com/vinc3m1/RoundedImageView 实现圆形/圆角/椭圆的iamgeView。相关博文:http://www.cnblogs.com/tianzhijiexian/p/3856391.html

    Windows7下TA-Lib包的安装

    http://http//prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-msvc.zip【本教程有提供,可以不用下载】 MSVC是微软windows版的talib 解压到C:\ta-lib 这时候,我们继续执行pip install TA-Lib,很可能你就安装...

    使用Hibernate3.6在console下连接Mysql5进行CRUD操作

    hibernate 3.6 在java console下运行的说明 安装 1. 把yqr_net.sql导入到mysql数据库中。你会发现yqr_net数据库中有person这个表。 2. 打开eclipse,选file->import导入这个项目。 3. 修改hibernate.cfg.xml里面的...

    stm32f4标准库C++与C混合开发工程

    用C++对stm32的标准库进行开发,包括完整的重定向printf,解决.axf: Error: L6915E: Library reports error: __use_no_semihosting was requested, but _sys_open was referenced以及Error: L6200E:symbol__stdout ...

    ijk播放器是b站开源的超级好用的视频播放器喔

    ijkplayer是b站开源的超级好用的视频播放器喔,相信大家都早有耳闻。ijkplayer Android和ios都可用,还支持多种视频的硬解码。人生苦短,不如快点试一试。

    反编译软件reflector软件,超好用

    You can then open Visual Studio, and use the .NET Reflector menu to select referenced assemblies you would like to debug into. These assemblies are then decompiled to C# or VB. You can then step into ...

    C# to Java 代码转换工具

    Evaluates all referenced assemblies and .NET projects in order to resolve external references more completely.(能彻底解决外部引用的dll类库) 3. Converts C# ref parameters using Java generics 4. Superb...

    sqlite3:not found 解决方法

    支持android4.2-4.4,其他未知 博文链接:https://gundumw100.iteye.com/blog/2262622

    .NET程序反编译神器Reflector 7.6.0.233 VSPro Edition

    Decompile any referenced assemblyDecompile any referenced assembly Browse decompiled assemblies .NET Reflector VSPro adds the Reflector Object Browser into Visual Studio. Use the simple tree view...

    Windows.PowerShell.Pocket.ReferenceD.Lee.Holmes.文字版

    Windows.PowerShell.Pocket.ReferenceD.Lee.Holmes.文字版

    jQwidgets 3.6.0

    styles/images: contains images referenced in the stylesheet files Files for individual widgets. Include depending on project needs: jqx-all.js: All plug-ins and widgets jqxdata.js: Data Source plug-...

    [Linker Error] Unresolved external 问题的解决方法

    BCB里遇到过的问题 [Linker Error] Unresolved external 'mysql_init' referenced from C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR.LXSERVER\桌面\TESTINSERTMYSQL\UNIT1.OBJ 的解决方案

    Digitally-Controlled-Bridgeless-PFC.rar_PFC数字控制_dsp PFC_数字pfc_数字

    数字控制的无桥功率因数校正(BL-PFC)控制源代码,基于TI x28系列dsp。

    hibernate的slf4j-nop包

    hibernate的错误SLF4J: ...的解决方法是:下载slf4j-nop.jar、slf4f-simple.jar、slf4j-log4j12.jar、slf4j-jdk14.jar或logback-classic.jar中某一个而且只能是某一个,添加到项目的Referenced Libraries中就可以了。

    hibernate3.3

    HIBERNATE - 符合Java习惯的关系数据库持久化 Hibernate参考文档 3.3.0.GA 版权 © 2004 Red Hat Middleware, LLC. Legal Notice 1801 Varsity Drive Raleigh, NC27606-2072USA Phone: +1 919 754 3700 Phone: ...

    android-a programmer's guide

    Referenced Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Global site tag (gtag.js) - Google Analytics