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) 評論(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)

          隨筆分類

          隨筆檔案

          文章分類

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 富裕县| 肥城市| 济源市| 江永县| 安丘市| 台东县| 天等县| 偏关县| 罗定市| 清镇市| 德阳市| 游戏| 中阳县| 灵石县| 手机| 泊头市| 乌兰浩特市| 泾源县| 剑川县| 岑巩县| 丁青县| 广东省| 柘城县| 金门县| 疏附县| 开封县| 无极县| 广南县| 乌拉特后旗| 天祝| 辉县市| 油尖旺区| 竹溪县| 武威市| 泰兴市| 南川市| 合作市| 阿合奇县| 潞城市| 南京市| 辽宁省|