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

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


          網站導航:
           
          <2011年11月>
          303112345
          6789101112
          13141516171819
          20212223242526
          27282930123
          45678910

          常用鏈接

          留言簿(1)

          隨筆分類

          隨筆檔案

          文章分類

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 济南市| 长汀县| 嘉峪关市| 长沙市| 宜昌市| 佛学| 上思县| 屏南县| 龙山县| 台南市| 涟水县| 合肥市| 庆元县| 苏尼特右旗| 阿拉尔市| 泰安市| 菏泽市| 吉安县| 固镇县| 盐山县| 观塘区| 镇沅| 自贡市| 汉寿县| 集贤县| 吐鲁番市| 青神县| 桦甸市| 阳泉市| 晴隆县| 洛阳市| 合川市| 宁国市| 温宿县| 广宁县| 砚山县| 大洼县| 烟台市| 澄江县| 洛南县| 阜新|