<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆-193  評論-715  文章-1  trackbacks-0
    本Blog所有內容不得隨意轉載,版權屬于作者所有。如需轉載請與作者聯系( fastzch@163.com )。
    未經許可的轉載,本人保留一切法律權益。
    一直以來,發現有某些人完全不尊重我的勞動成果,隨意轉載,提醒一下那些人小心哪天惹上官司。


    今天在WebSphere Application Server 6.1中部署使用Spring 2.5開發的應用時,遇到了不少網友遇到的問題,即Spring啟動時會報如下錯誤:
    cvc-elt.1: Cannot find the declaration of element 'beans'

    在網上搜了一下,發現有很多人提供了解決的辦法,但我一一試過,最終都不行。
    解決方案列表如下:
    1、[分享]Spring啟動異常: cvc-elt.1: Cannot find the declaration of element 'beans'
    2、spring從sun jdk到IBMjdk

    這兩篇文章中都提供了各自的解決方法,但為何在我的應用中就是不行了?
    其實不是不行,而是需要根據Spring的版本不同,進行不同的處理,剛好我用的是Spring2.5,所以解決起來需要另一種方法,即配置文件XML的頭部的聲明應該為:
    <?xml?version="1.0"?encoding="UTF-8"?>

    <!--
    ??-?Application?context?definition?for?JPetStore's?business?layer.
    ??-?Contains?bean?references?to?the?transaction?manager?and?to?the?DAOs?in
    ??-?dataAccessContext-local/jta.xml?(see?web.xml's?"contextConfigLocation").
    ??
    -->
    <beans?xmlns="http://www.springframework.org/schema/beans"
    ?????????xmlns:xsi
    ="http://www.w3.org/2001/XMLSchema-instance"
    ?????????xmlns:aop
    ="http://www.springframework.org/schema/aop"
    ?????????xmlns:tx
    ="http://www.springframework.org/schema/tx"
    ?????????xsi:schemaLocation
    ="http://www.springframework.org/schema/beans?http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
    ???????????http://www.springframework.org/schema/aop?http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
    ???????????http://www.springframework.org/schema/tx?http://www.springframework.org/schema/tx/spring-tx-2.0.xsd"
    >

    這段聲明,是來自Spring2.5包中自帶的Sample目錄中的一些例子的代碼中,當我把我的XML的頭部改成這樣以后,果然可以順利啟動。
    posted on 2008-11-19 00:27 Robin's Programming World 閱讀(24243) 評論(6)  編輯  收藏 所屬分類: JavaWebshere

    評論:
    # re: WebSphere6.1中使用Spring報cvc-elt.1: Cannot find the declaration of element 'beans'異常的解決辦法 2008-11-19 09:30 | 低調
    本回復不得隨意轉載,版權屬于回復者所有。如需轉載請與回復者聯系( congdepeng@163.com )。
    未經許可的轉載回復,本人保留一切法律權益。
    一直以來,發現有某些人完全不尊重我的回復成果,隨意轉載回復,提醒一下那些人小心哪天惹上官司。
      回復  更多評論
      
    # re: WebSphere6.1中使用Spring報cvc-elt.1: Cannot find the declaration of element 'beans'異常的解決辦法 2008-11-20 18:09 | 隔葉黃鶯
    說只是這么說,真要到什么程度作者才會動起這種真格來呢?我的許多文章還不被很多人無情的竊走了,不提原作者倒也不很意外,關建還打上他自己的名字。  回復  更多評論
      
    # re: WebSphere6.1中使用Spring報cvc-elt.1: Cannot find the declaration of element 'beans'異常的解決辦法 2009-04-18 13:58 | 主演的
    師大發師大發是  回復  更多評論
      
    # re: WebSphere6.1中使用Spring報cvc-elt.1: Cannot find the declaration of element 'beans'異常的解決辦法 2009-12-14 14:11 | 8888888
    @隔葉黃鶯
    關你鳥事  回復  更多評論
      
    # 我就轉了,看你能把我怎么樣 2009-12-14 14:13 | 廗kyffvknlhj;lijkljn
    我就轉了,看你能把我怎么樣  回復  更多評論
      
    # re: WebSphere6.1中使用Spring報cvc-elt.1: Cannot find the declaration of element 'beans'異常的解決辦法[未登錄] 2013-12-17 11:05 | eric
    謝謝 幫了我一個忙  回復  更多評論
      
    主站蜘蛛池模板: 亚洲视频一区在线观看| 久久99亚洲网美利坚合众国| 亚洲乱码国产乱码精华| 日韩国产免费一区二区三区| 精品亚洲成a人片在线观看少妇| 国产精品免费看久久久| 亚洲av一综合av一区| 久久久免费精品re6| 亚洲制服丝袜精品久久| 午夜国产精品免费观看| 亚洲午夜无码久久| 日本一线a视频免费观看| 日韩免费在线中文字幕| 亚洲精品乱码久久久久久自慰| a级毛片在线视频免费观看| 内射少妇36P亚洲区| 永久免费av无码网站韩国毛片| 亚洲人成色4444在线观看| 国产一区二区免费在线| 精品多毛少妇人妻AV免费久久| 久久久久亚洲AV成人无码| 国产va免费精品观看精品| 国产成人亚洲午夜电影| 国产亚洲精AA在线观看SEE| 91香蕉国产线在线观看免费 | 国产午夜精品久久久久免费视| 亚洲成AV人片在WWW色猫咪| 国产成人yy免费视频| 亚洲色无码专区一区| 亚洲一本大道无码av天堂| 最近免费中文字幕mv在线电影| 亚洲午夜无码久久久久小说 | 久久久久无码精品亚洲日韩| 中文字幕无码视频手机免费看| 真人无码作爱免费视频| 亚洲精品福利视频| 四虎影视精品永久免费| 5555在线播放免费播放| 免费无遮挡无遮羞在线看| 久久久无码精品亚洲日韩京东传媒| 国产成人3p视频免费观看|