posts - 7,  comments - 4,  trackbacks - 0
          org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/config-spring.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
          Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from input stream

          替換hbm.xml文件的DTD為

          <!DOCTYPE hibernate-mapping PUBLIC
          ??? "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
          ??? "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">


          可以參考一下:
          http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd
          posted on 2007-10-14 03:10 神的小火柴 閱讀(2258) 評(píng)論(2)  編輯  收藏

          FeedBack:
          # re: parse錯(cuò)誤
          2009-01-09 21:54 | zlm
          非常感謝!
          我從中受益!  回復(fù)  更多評(píng)論
            
          # re: parse錯(cuò)誤
          2011-11-07 10:38 | date
          厲害!解決了。。。  回復(fù)  更多評(píng)論
            

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          <2009年1月>
          28293031123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          常用鏈接

          留言簿(1)

          隨筆分類

          隨筆檔案

          文章分類

          搜索

          •  

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 八宿县| 赫章县| 藁城市| 山西省| 郴州市| 安溪县| 石河子市| 芦山县| 黎城县| 恩平市| 新乡县| 红原县| 溧水县| 许昌市| 清镇市| 景宁| 襄汾县| 木兰县| 寿宁县| 蓬莱市| 化德县| 涞源县| 鄂温| 伊通| 长沙县| 卢氏县| 静宁县| 贵阳市| 兴和县| 玛多县| 铜梁县| 遂溪县| 图木舒克市| 建阳市| 彭阳县| 沁水县| 遂川县| 新丰县| 伽师县| 呼和浩特市| 韶关市|