hibernate报错:could not parse mapping document from resource

  昨晚在自己电脑上搭建的ssh环境运行好好的,搭建成功的时候我还小兴奋了下,然后今天放到公司的电脑上去,直接给我报了个could not parse mapping document from resource,当时我那小心肝直接碎了,并且这个错误还让我改了几个小时,最后在http://blog.csdn.net/mydeman/article/details/6134820

发现了答案,*.hbm.xml中引用了错误的DTD文件路径“http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd”这个是需要联网才能运行的,公司电脑没网,所以不能解析这个配置文件,替换不联网的 http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd 就对啦

时间: 2024-08-09 09:23:11

hibernate报错:could not parse mapping document from resource的相关文章

org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/domain/book.hbm.xml 联网跑一跑

org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/domain/book.hbm.xml at org.hibernate.cfg.Configuration.addResource(Configuration.java:586) at org.hibernate.cfg.Configuration.addClass(Configuration.java:633) a

Could not parse mapping document from resource cn/spt/model/Student.hbm.xml

初始hibernate, 写第一个程序 helloworld的错误: Exception in thread "main" org.hibernate.InvalidMappingException: Could not parse mapping document from resource cn/spt/model/Student.hbm.xml at org.hibernate.cfg.Configuration.addResource(Configuration.java:61

hibernate 出现Could not parse mapping document from resource 报错

<!-- 映射文件的根节点 --> <hibernate-mapping > <!-- 对象关系映射的开始:class元素表示类和数据库中的表的映射关系. name属性指定持久化类(或者接口)的Java全限定名: table属性指定要映射的对应的数据库表名,如果省略,则以name作为表名 --> <class name="com.hibernate.customer.customer" table="customer">

Could not parse mapping document from input stream hibernate配置异常

十二月 18, 2016 4:24:29 下午 org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.B

Could not parse mapping document from file

java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccesso

记一次django的诡异报错 Could not parse the remainder: &#39;=&#39; from &#39;=&#39;

如题,一个展示日志的功能,调用该模板文件时报错,Could not parse the remainder: '=' from '='.这行模板语言在上面出现过同样的,仅仅是改了'<='右端的整数大小,而且该有的标签也不少. 百般思考无解,stackoverflow和百度都没答案.后来重新看了下开发文档,发现是Django的版本不对,开发时用的1.8.2,我部署时用的1.11.5.重新安装低版本的django后问题解决.但原因仍待查. 记一次django的诡异报错 Could not parse

hibernate报错:Column &#39;id&#39; cannot be null

报错内容: 17:21:59,843  INFO org.hibernate.tool.hbm2ddl.SchemaExport:226 - Running hbm2ddl schema export 17:21:59,859 DEBUG org.hibernate.tool.hbm2ddl.SchemaExport:242 - import file not found: /import.sql 17:21:59,859  INFO org.hibernate.tool.hbm2ddl.Sch

&gt;Hibernate 报错:this project is not a myeclipse hibernate project . assuming hibernate 3 cap

>Hibernate 报错:this project is not a myeclipse hibernate project . assuming hibernate 3 cap web 项目中 打开 hibernate.cfg.xml 文件时 提示:The project is not a myEclipse hibernate project. 并且:在 dbbrower中使用 hibernate reverse engineering 建立 表对应的bean 和 配置文件时:找不到可用的

Android studio报错 Error retrieving parent for item: No resource found that matches the given name &#39;android:TextAppearance.Material.Inverse&#39;

用Android studio创建一个工程,我选择了Phone and Tablet平台, Minimum SDK选择了API 9,也就最低支持是Android 2.3, 接下来一路Next.惊喜出现了,报了一堆 Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Inverse'... 都是说找不到某个样式,仔细看错误信息