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
          厲害!解決了。。。  回復  更多評論
            

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


          網站導航:
           
          <2009年1月>
          28293031123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          常用鏈接

          留言簿(1)

          隨筆分類

          隨筆檔案

          文章分類

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 岳普湖县| 新邵县| 黎平县| 新建县| 南江县| 卓资县| 丰镇市| 丰宁| 云安县| 新野县| 静安区| 宝坻区| 邻水| 曲麻莱县| 开化县| 榆中县| 嘉义县| 周宁县| 兴山县| 增城市| 若羌县| 安国市| 桦南县| 商水县| 沂水县| 崇义县| 虎林市| 昌黎县| 廊坊市| 南华县| 武鸣县| 通河县| 班玛县| 三明市| 石柱| 老河口市| 邢台县| 大田县| 白银市| 内黄县| 屯门区|