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

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

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


          網(wǎng)站導(dǎo)航:
           
          <2011年11月>
          303112345
          6789101112
          13141516171819
          20212223242526
          27282930123
          45678910

          常用鏈接

          留言簿(1)

          隨筆分類

          隨筆檔案

          文章分類

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 北辰区| 安国市| 称多县| 宝坻区| 阆中市| 都安| 鲁甸县| 瓮安县| 军事| 北京市| 南宫市| 陈巴尔虎旗| 轮台县| 平湖市| 伊春市| 浠水县| 沂水县| 安岳县| 常山县| 松溪县| 和硕县| 武汉市| 永吉县| 祁门县| 彭山县| 晋中市| 云南省| 宜兰市| 崇州市| 黎川县| 志丹县| 新野县| 阿瓦提县| 大洼县| 津市市| 南宁市| 龙山县| 罗江县| 湖南省| 连州市| 古蔺县|