Hibernate 项目启动加载很慢,不联网时启动不了,还报异常Caused by: org.dom4j.DocumentException: www.hibernate.org Nested exc
来源:互联网 发布:阿里云邮箱 彻底删除 编辑:程序博客网 时间:2024/05/22 02:06
异常信息如下:
看到我那个映射文件没有PProduct.hbm.xml,里面的头部结构是这样的:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"
改成:
<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
就搞定了,而且项目还跑得很快,没有那么慢了,一开始我还以为是hibernate要扫描表的原因或者数据源初始化等其他原因,等我把所有表映射文件都改成上面的头结构就没出息这种问题了。
阅读全文
0 0
- Hibernate 项目启动加载很慢,不联网时启动不了,还报异常Caused by: org.dom4j.DocumentException: www.hibernate.org Nested exc
- org.dom4j.DocumentException: www.hibernate.org Nested exception: www.hiberna
- appfuse异常 org.hibernate.MappingException: org.dom4j.DocumentException: hibernate.sourceforge.net Nested exception: hibernate.sou
- Caused by: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection t
- 启动ssh项目出错java.lang.NoClassDefFoundError: org/dom4j/DocumentException
- Caused by: java.lang.ClassNotFoundException: org.dom4j.DocumentException
- hibernate的org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection
- Caused by: org.dom4j.DocumentException: Error on line 1 of document : 前言中不允许有内容。 Nested exception:
- Caused by: org.hibernate.PropertyNotFoundException:
- org.dom4j.DocumentException: null Nested exception: null
- org.dom4j.DocumentException: null Nested exception: null
- org.dom4j.DocumentException: null Nested exception: null
- main 启动 spring hiberante项目报org.hibernate.LazyInitializationException 异常
- org.dom4j.DocumentException: www.apple.com Nested exception: www.apple.com
- org.dom4j.DocumentException: Software caused connection abort: recv failed Nested exception:
- org.dom4j.DocumentException: Software caused connection abort: recv failed Nested exception: .
- hibernate 的 org.dom4j.DocumentException: Connection timed out 问题
- Dom4j中异常处理:org.dom4j.DocumentException
- go 遇到的坑
- day_13_管道、共享内存、消息队列
- 期末作业8.3
- Hashing
- 博客搬家到博客园了
- Hibernate 项目启动加载很慢,不联网时启动不了,还报异常Caused by: org.dom4j.DocumentException: www.hibernate.org Nested exc
- swoole 增加 展示 修改
- Ubuntu: Linux下查看本机显示器分辨率(xrandr)
- Python 类的多继承问题 [未解]
- 使用Chrome调试JavaScript的断点设置和调试技巧
- int *ptr=(int *)(&a+1)问题的探讨
- tcpdump
- Ignoring bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanC
- 浅谈c++继承、多态及继承与多态的区别