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
閱讀(24244)
評論(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自定義認證與權限控制
<
2013年12月
>
日
一
二
三
四
五
六
24
25
26
27
28
29
30
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
31
1
2
3
4
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(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
搜索
積分與排名
積分 - 754437
排名 - 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'異常的解決辦法(24244)
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
主站蜘蛛池模板:
亚洲美女大bbbbbbbbb
|
亚洲av色香蕉一区二区三区
|
18禁美女裸体免费网站
|
亚洲日本久久一区二区va
|
免费成人在线观看
|
一区二区三区观看免费中文视频在线播放
|
四虎永久免费地址在线网站
|
全黄大全大色全免费大片
|
亚洲日韩国产精品乱-久
|
国产亚洲精品激情都市
|
在线观看H网址免费入口
|
rh男男车车的车车免费网站
|
亚洲成AV人综合在线观看
|
亚洲精品无码专区2
|
亚洲一区免费在线观看
|
无码 免费 国产在线观看91
|
久久亚洲AV成人无码软件
|
亚洲第一网站男人都懂
|
日韩中文字幕精品免费一区
|
一级一级毛片免费播放
|
亚洲人成高清在线播放
|
亚洲香蕉网久久综合影视
|
四色在线精品免费观看
|
免费人妻无码不卡中文字幕系
|
99热这里只有精品6免费
|
免费人成再在线观看网站
|
两性色午夜免费视频
|
亚洲精品无码久久久久A片苍井空 亚洲精品无码久久久久YW
|
男女交性无遮挡免费视频
|
亚洲毛片基地日韩毛片基地
|
亚洲一区精品伊人久久伊人
|
最近最新中文字幕完整版免费高清
|
99精品免费视频
|
色综合久久精品亚洲国产
|
亚洲字幕在线观看
|
亚洲爆乳无码一区二区三区
|
免费国产怡红院在线观看
|
成人免费一级毛片在线播放视频
|
毛片在线全部免费观看
|
黄色网页免费观看
|
亚洲欧洲无码AV不卡在线
|