项目中实体类的映射文件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 是一款高性能、轻量级的开源Java RPC框架,由阿里巴巴公司开发并维护,它主要解决了企业服务治理的问题,提供了服务注册、服务发现、负载均衡、调用链跟踪等核心功能。在分布式系统中,Dubbo扮演着关键角色,...
- 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 ...
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.
MQTTv5版的客户端库,原地址:... 本资源合入了解决低于android7.0报错Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.net.ssl.SNIHostName"的问题。
开源项目的地址:https://github.com/vinc3m1/RoundedImageView 实现圆形/圆角/椭圆的iamgeView。相关博文:http://www.cnblogs.com/tianzhijiexian/p/3856391.html
http://http//prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-msvc.zip【本教程有提供,可以不用下载】 MSVC是微软windows版的talib 解压到C:\ta-lib 这时候,我们继续执行pip install TA-Lib,很可能你就安装...
hibernate 3.6 在java console下运行的说明 安装 1. 把yqr_net.sql导入到mysql数据库中。你会发现yqr_net数据库中有person这个表。 2. 打开eclipse,选file->import导入这个项目。 3. 修改hibernate.cfg.xml里面的...
用C++对stm32的标准库进行开发,包括完整的重定向printf,解决.axf: Error: L6915E: Library reports error: __use_no_semihosting was requested, but _sys_open was referenced以及Error: L6200E:symbol__stdout ...
##### 总结4:解决“Unable to find interceptor class referenced by ref-name myInterceptorStack” **问题描述**:在Struts2配置文件中引用拦截器栈时出现找不到类的错误。 **解决方案**: 1. **检查配置文件**:...
File outputFile = new File(storageDir, fileName); try { FileOutputStream out = new FileOutputStream(outputFile); bitmap.compress(Bitmap.CompressFormat.PNG, 100, out); out.close(); Toast.makeText...
无论是需要实现基本的视频播放,还是复杂的直播流控制,ijkplayer都能提供相应的解决方案。它的源代码开放,开发者可以深入研究其内部实现,进行定制化开发,满足特定需求。 在直播流方面,ijkplayer支持RTMP、HLS...
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 ...
Caused by: Error inflating class com.google.android.material.bottomnavigation.BottomNavigationView Android5.0~6.0之间的兼容性问题 BottomNavigationView inflating错误问题 最近刚好跑一个demo,在Android ...
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...
在开始之前,你需要从Hibernate的官方网站或者SourceForge下载源码包。选择适合的版本,例如这里推荐的是3.0 final版本。下载后,解压缩文件,你会看到包含eg(示例)、doc(文档)、lib(库文件)、src(源代码)、...
基于研旭F28335历程将代码烧写入FLASH的步骤,之前使用研旭历程直接烧写FLASH出现了一些错误,如下unresolved symbol _RamfuncsLoadStart, first referenced in XX unresolved symbol _RamfuncsLoadEnd, first ...
Based on the provided information from the book "C# 3.0 With the .NET Framework 3.5 Unleashed," we can extract several key points and concepts that are essential for understanding the fundamentals of ...
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...
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-...
hibernate的错误SLF4J: ...的解决方法是:下载slf4j-nop.jar、slf4f-simple.jar、slf4j-log4j12.jar、slf4j-jdk14.jar或logback-classic.jar中某一个而且只能是某一个,添加到项目的Referenced Libraries中就可以了。