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 神的小火柴 閱讀(2260) 評論(2)  編輯  收藏

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

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          <2007年10月>
          30123456
          78910111213
          14151617181920
          21222324252627
          28293031123
          45678910

          常用鏈接

          留言簿(1)

          隨筆分類

          隨筆檔案

          文章分類

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 介休市| 常熟市| 文水县| 洛宁县| 外汇| 衢州市| 株洲市| 津南区| 马边| 紫云| 洛隆县| 宁海县| 叙永县| 磐石市| 大足县| 深泽县| 岳西县| 忻城县| 泸水县| 阿合奇县| 华安县| 许昌市| 团风县| 宜城市| 民权县| 大田县| 邵东县| 广州市| 武乡县| 社会| 丹江口市| 大丰市| 陈巴尔虎旗| 卢氏县| 扎囊县| 达尔| 玉环县| 汕头市| 察隅县| 湖州市| 天峨县|