Error on line 24 of document : Open quote is expected for attribute "{1}" associated with an eleme
2013-01-16 23:30
1551 查看
Exception in thread "main" org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2246)
at org.hibernate.cfg.Configuration.configure(Configuration.java:2158)
at org.hibernate.cfg.Configuration.configure(Configuration.java:2137)
at com.bjsxt.hibernate.StudentTest.main(StudentTest.java:14)
Caused by: org.dom4j.DocumentException: Error on line 24 of document : Open quote is expected for attribute "{1}" associated with an element type "class". Nested exception: Open quote is expected for attribute "{1}" associated with an element type "class".
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2238)
... 3 more
xml解析 属性必须用引号
class属性必须用引号。。
添上 <mapping class=“com.bjsxt.hibernate.Student”/>
转自:http://blog.csdn.net/zqqlj2004/article/details/6950174
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2246)
at org.hibernate.cfg.Configuration.configure(Configuration.java:2158)
at org.hibernate.cfg.Configuration.configure(Configuration.java:2137)
at com.bjsxt.hibernate.StudentTest.main(StudentTest.java:14)
Caused by: org.dom4j.DocumentException: Error on line 24 of document : Open quote is expected for attribute "{1}" associated with an element type "class". Nested exception: Open quote is expected for attribute "{1}" associated with an element type "class".
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2238)
... 3 more
xml解析 属性必须用引号
class属性必须用引号。。
添上 <mapping class=“com.bjsxt.hibernate.Student”/>
转自:http://blog.csdn.net/zqqlj2004/article/details/6950174
相关文章推荐
- Error on line 24 of document : Open quote is expected for attribute "{1}" associated with an eleme
- Open quote is expected for attribute "{1}" associated with an element type "type".
- Open quote is expected for attribute "name" associated with an element type "item".
- Open quote is expected for attribute "property" associated with an element type "result".错误
- 配置c3p0-config.xml报错:Open quote is expected for attribute "name" associated with an element type "pro
- Open quote is expected for attribute "{1}" associated with an element type "name".
- Open quote is expected for attribute "class" associated with an elemen的解决方案
- JavaEE_SSM_报错_Open quote is expected for attribute "property" associated with an element
- Open quote is expected for attribute "property" associated with an element type "result".
- Open quote is expected for attribute "namespace" associated with an element type "mapper".
- 【tomcat】org.xml.sax.SAXParseException: Open quote is expected for attribute "{1}" associated
- Open quote is expected for attribute "{1}" associated with an element type "type".
- The prefix "p" for attribute "p:myservice-ref" associated with an element type "bean" is not bound.
- [Fatal Error] :3:13: Open quote is expected for attribute "{1}" associated with an element type "id".
- Open quote is expected for attribute "{1}" associated with an element type "property".
- 遇到问题:Open quote is expected for attribute "{1}" associated with an element type "property".
- Open quote is expected for attribute "{1}" associated with an element type "id".
- BUG:Open quote is expected for attribute "{1}" associated with an element type "id".
- spring配置问题:org.xml.sax.SAXParseException: Open quote is expected for attribute "{1}" associated with
- jetty报错: Open quote is expected for attribute "{1}" associated with an element type "BORDER".