DocumentException

时间:2013-04-29 05:24:41

标签: hibernate

我是hibernate4的初学者当我使用myeclipse使用hibernate4创建投影时发生错误。完成配置并在插入数据到mysql期间。它告诉我这样一个错误:

Caused by: org.dom4j.DocumentException: http://www.jboss.org/dtd/hibernate/hibernate-mapping-3.0.dtd%20 Nested exception: http://www.jboss.org/dtd/hibernate/hibernate-mapping-3.0.dtd%20
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:78)
... 13 more

但是当我使用hibernate 3时没有错误。我不知道为什么会这样 我需要帮助。

1 个答案:

答案 0 :(得分:0)

http://www.jboss.org/dtd/hibernate/hibernate-mapping-3.0.dtd%20

最后似乎有一些空格,请将其删除。

"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd" <-- no whitespace at end.