Robin's Programming World
I Love Programming As My Life!
BlogJava
首頁
新隨筆
聯系
聚合
管理
隨筆-193 評論-715 文章-1 trackbacks-0
WebSphere6.1中使用Spring報cvc-elt.1: Cannot find the declaration of element 'beans'異常的解決辦法
本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)
編輯
收藏
所屬分類:
Java
、
Webshere
評論:
#
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
謝謝 幫了我一個忙
回復
更多評論
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關文章:
Ubuntu環境下Apache2與Tomcat集成
Spring 3 MVC and JSON example
Android Media Player 深入觀察
[轉]編寫高效的Android代碼
Android程序完全退出的三種方法
使用ANT批量編譯Flex應用和模塊(Use ANT to batch compiling application and modules of Flex)
Investigate getDeclaredMethod of Java Reflection
Eclipse空心J圖標的含義
Memcached Study Notes
BlazeDS自定義認證與權限控制
<
2008年11月
>
日
一
二
三
四
五
六
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
6
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(49)
給我留言
查看公開留言
查看私人留言
隨筆分類
(215)
.Net(1)
DB(8)
Flex & Flash(11)
Java(72)
OS(25)
RUP(1)
weblogic(3)
Webshere(16)
其它(50)
心情(2)
翻譯(1)
讀書(9)
轉載(16)
隨筆檔案
(181)
2014年8月 (1)
2014年4月 (1)
2014年2月 (2)
2014年1月 (1)
2012年11月 (1)
2012年9月 (2)
2012年7月 (1)
2012年6月 (3)
2012年1月 (2)
2011年12月 (4)
2011年10月 (1)
2011年8月 (3)
2011年7月 (2)
2011年4月 (1)
2010年11月 (2)
2010年10月 (1)
2010年9月 (2)
2010年8月 (5)
2010年7月 (1)
2010年5月 (2)
2010年4月 (7)
2010年3月 (7)
2009年12月 (6)
2009年10月 (1)
2009年9月 (1)
2009年8月 (2)
2009年6月 (3)
2009年5月 (2)
2009年4月 (2)
2009年2月 (3)
2009年1月 (4)
2008年11月 (1)
2008年10月 (2)
2008年9月 (9)
2008年8月 (4)
2008年7月 (5)
2008年5月 (2)
2008年4月 (1)
2008年3月 (3)
2008年2月 (1)
2008年1月 (7)
2007年12月 (6)
2007年11月 (6)
2007年10月 (3)
2007年9月 (1)
2007年8月 (6)
2007年7月 (4)
2007年6月 (2)
2007年5月 (3)
2007年3月 (1)
2007年2月 (1)
2007年1月 (3)
2006年12月 (7)
2006年10月 (1)
2006年8月 (3)
2006年7月 (1)
2006年6月 (5)
2006年4月 (6)
2006年3月 (2)
2006年2月 (3)
2006年1月 (1)
2005年11月 (5)
相冊
文章相關圖片
收藏夾
other
Friend Links
Tiger的Blog,專注于過程改進,項目管理,質量管理三個方向。
zrfunds
搜索
積分與排名
積分 - 754419
排名 - 60
最新評論
1.?re: XFire完整入門教程
樓主,請問你做過xfire使用spring的jdbc模板訪問數據庫的例子嗎,急求啊?xfire和spring的結合在不訪問數據庫時(就像你這個例子一樣)已經跑通了,但是需要使用jdbc時老出問題。謝謝
--fqjabc
2.?re: 一次JQuery性能優化實戰
不需要構建DOM
--bns
3.?re: Spring Security 3.x 完整入門教程
@過客
尊重人是最起碼的
--bns
4.?re: Flex中帶有三種狀態CheckBox的Tree的實現
帶有3種狀態CheckBox的樹形組件剛好用到
收了
--bns
5.?re: Spring Security 3.x 完整入門教程
AntUrlPathMatcher這個類所在jar包是哪個啊,是spring-security-core-tiger這個嗎?
--iechenyb
閱讀排行榜
1.?XFire完整入門教程(90497)
2.?Spring Security 3.x 完整入門教程(59173)
3.?使用XFire開發Web Service客戶端完整入門教程(52348)
4.?WebSphere6.1中使用Spring報cvc-elt.1: Cannot find the declaration of element 'beans'異常的解決辦法(24243)
5.?用MKVMerge GUI合并MKV文件(16686)
評論排行榜
1.?XFire完整入門教程(130)
2.?Spring Security 3.x 完整入門教程(67)
3.?使用XFire開發Web Service客戶端完整入門教程(33)
4.?VBA編程心得(24)
5.?JDK1.5API完整中文版CHM格式文檔發放(可下載)(22)
Powered by:
博客園
模板提供:
滬江博客
Copyright ©2025 Robin's Programming World
主站蜘蛛池模板:
亚洲国产成人精品女人久久久
|
亚洲国产成人精品无码区在线秒播
|
69av免费观看
|
亚洲成av人无码亚洲成av人
|
亚洲国产精品无码久久久久久曰
|
少妇性饥渴无码A区免费
|
亚洲第一页在线视频
|
国产精品免费电影
|
在线观看免费无码专区
|
亚洲av片不卡无码久久
|
亚洲精品无码成人片在线观看
|
亚洲人成图片小说网站
|
手机看黄av免费网址
|
四虎影视永久在线精品免费
|
亚洲今日精彩视频
|
又粗又硬又黄又爽的免费视频
|
国产麻豆成人传媒免费观看
|
在线亚洲午夜片AV大片
|
久久久久亚洲精品天堂久久久久久
|
毛片免费全部播放无码
|
免费无码婬片aaa直播表情
|
亚洲黄色在线观看视频
|
亚洲国产成人VA在线观看
|
最近新韩国日本免费观看
|
一级成人毛片免费观看
|
亚洲中文字幕无码一去台湾
|
狠狠色伊人亚洲综合成人
|
国产成人aaa在线视频免费观看
|
91精品手机国产免费
|
国产日韩在线视频免费播放
|
亚洲精品9999久久久久无码
|
亚洲精品国产手机
|
亚洲欭美日韩颜射在线二
|
全部免费国产潢色一级
|
无码免费午夜福利片在线
|
午夜无码A级毛片免费视频
|
在线播放国产不卡免费视频
|
亚洲国产综合精品中文第一
|
亚洲视频在线观看地址
|
亚洲中文字幕伊人久久无码
|
老司机永久免费网站在线观看
|