Robin's Programming World
I Love Programming As My Life!
BlogJava
首頁
新隨筆
聯(lián)系
聚合
管理
隨筆-193 評(píng)論-715 文章-1 trackbacks-0
WebSphere6.1中使用Spring報(bào)cvc-elt.1: Cannot find the declaration of element 'beans'異常的解決辦法
本Blog所有內(nèi)容不得隨意轉(zhuǎn)載,版權(quán)屬于作者所有。如需轉(zhuǎn)載請(qǐng)與作者聯(lián)系(
fastzch@163.com
)。
未經(jīng)許可的轉(zhuǎn)載,本人保留一切法律權(quán)益。
一直以來,發(fā)現(xiàn)有某些人完全不尊重我的勞動(dòng)成果,隨意轉(zhuǎn)載,提醒一下那些人小心哪天惹上官司。
今天在WebSphere Application Server 6.1中部署使用Spring 2.5開發(fā)的應(yīng)用時(shí),遇到了不少網(wǎng)友遇到的問題,即Spring啟動(dòng)時(shí)會(huì)報(bào)如下錯(cuò)誤:
cvc-elt.1: Cannot find the declaration of element 'beans'
在網(wǎng)上搜了一下,發(fā)現(xiàn)有很多人提供了解決的辦法,但我一一試過,最終都不行。
解決方案列表如下:
1、[分享]Spring啟動(dòng)異常: cvc-elt.1: Cannot find the declaration of element 'beans'
2、spring從sun jdk到IBMjdk
這兩篇文章中都提供了各自的解決方法,但為何在我的應(yīng)用中就是不行了?
其實(shí)不是不行,而是需要根據(jù)Spring的版本不同,進(jìn)行不同的處理,剛好我用的是Spring2.5,所以解決起來需要另一種方法,即配置文件XML的頭部的聲明應(yīng)該為:
<?
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目錄中的一些例子的代碼中,當(dāng)我把我的XML的頭部改成這樣以后,果然可以順利啟動(dòng)。
posted on 2008-11-19 00:27
Robin's Programming World
閱讀(24244)
評(píng)論(6)
編輯
收藏
所屬分類:
Java
、
Webshere
評(píng)論:
#
re: WebSphere6.1中使用Spring報(bào)cvc-elt.1: Cannot find the declaration of element 'beans'異常的解決辦法 2008-11-19 09:30 |
低調(diào)
本回復(fù)不得隨意轉(zhuǎn)載,版權(quán)屬于回復(fù)者所有。如需轉(zhuǎn)載請(qǐng)與回復(fù)者聯(lián)系( congdepeng@163.com )。
未經(jīng)許可的轉(zhuǎn)載回復(fù),本人保留一切法律權(quán)益。
一直以來,發(fā)現(xiàn)有某些人完全不尊重我的回復(fù)成果,隨意轉(zhuǎn)載回復(fù),提醒一下那些人小心哪天惹上官司。
回復(fù)
更多評(píng)論
#
re: WebSphere6.1中使用Spring報(bào)cvc-elt.1: Cannot find the declaration of element 'beans'異常的解決辦法 2008-11-20 18:09 |
隔葉黃鶯
說只是這么說,真要到什么程度作者才會(huì)動(dòng)起這種真格來呢?我的許多文章還不被很多人無情的竊走了,不提原作者倒也不很意外,關(guān)建還打上他自己的名字。
回復(fù)
更多評(píng)論
#
re: WebSphere6.1中使用Spring報(bào)cvc-elt.1: Cannot find the declaration of element 'beans'異常的解決辦法 2009-04-18 13:58 |
主演的
師大發(fā)師大發(fā)是
回復(fù)
更多評(píng)論
#
re: WebSphere6.1中使用Spring報(bào)cvc-elt.1: Cannot find the declaration of element 'beans'異常的解決辦法 2009-12-14 14:11 |
8888888
@隔葉黃鶯
關(guān)你鳥事
回復(fù)
更多評(píng)論
#
我就轉(zhuǎn)了,看你能把我怎么樣 2009-12-14 14:13 |
廗kyffvknlhj;lijkljn
我就轉(zhuǎn)了,看你能把我怎么樣
回復(fù)
更多評(píng)論
#
re: WebSphere6.1中使用Spring報(bào)cvc-elt.1: Cannot find the declaration of element 'beans'異常的解決辦法[未登錄]
2013-12-17 11:05 |
eric
謝謝 幫了我一個(gè)忙
回復(fù)
更多評(píng)論
新用戶注冊(cè)
刷新評(píng)論列表
只有注冊(cè)用戶
登錄
后才能發(fā)表評(píng)論。
網(wǎng)站導(dǎo)航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關(guān)文章:
Ubuntu環(huán)境下Apache2與Tomcat集成
Spring 3 MVC and JSON example
Android Media Player 深入觀察
[轉(zhuǎn)]編寫高效的Android代碼
Android程序完全退出的三種方法
使用ANT批量編譯Flex應(yīng)用和模塊(Use ANT to batch compiling application and modules of Flex)
Investigate getDeclaredMethod of Java Reflection
Eclipse空心J圖標(biāo)的含義
Memcached Study Notes
BlazeDS自定義認(rèn)證與權(quán)限控制
<
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
常用鏈接
我的隨筆
我的評(píng)論
我的參與
最新評(píng)論
留言簿
(49)
給我留言
查看公開留言
查看私人留言
隨筆分類
(215)
.Net(1)
DB(8)
Flex & Flash(11)
Java(72)
OS(25)
RUP(1)
weblogic(3)
Webshere(16)
其它(50)
心情(2)
翻譯(1)
讀書(9)
轉(zhuǎn)載(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)
相冊(cè)
文章相關(guān)圖片
收藏夾
other
Friend Links
Tiger的Blog,專注于過程改進(jìn),項(xiàng)目管理,質(zhì)量管理三個(gè)方向。
zrfunds
搜索
積分與排名
積分 - 754514
排名 - 60
最新評(píng)論
1.?re: XFire完整入門教程
樓主,請(qǐng)問你做過xfire使用spring的jdbc模板訪問數(shù)據(jù)庫的例子嗎,急求啊?xfire和spring的結(jié)合在不訪問數(shù)據(jù)庫時(shí)(就像你這個(gè)例子一樣)已經(jīng)跑通了,但是需要使用jdbc時(shí)老出問題。謝謝
--fqjabc
2.?re: 一次JQuery性能優(yōu)化實(shí)戰(zhàn)
不需要構(gòu)建DOM
--bns
3.?re: Spring Security 3.x 完整入門教程
@過客
尊重人是最起碼的
--bns
4.?re: Flex中帶有三種狀態(tài)CheckBox的Tree的實(shí)現(xiàn)
帶有3種狀態(tài)CheckBox的樹形組件剛好用到
收了
--bns
5.?re: Spring Security 3.x 完整入門教程
AntUrlPathMatcher這個(gè)類所在jar包是哪個(gè)啊,是spring-security-core-tiger這個(gè)嗎?
--iechenyb
閱讀排行榜
1.?XFire完整入門教程(90498)
2.?Spring Security 3.x 完整入門教程(59173)
3.?使用XFire開發(fā)Web Service客戶端完整入門教程(52348)
4.?WebSphere6.1中使用Spring報(bào)cvc-elt.1: Cannot find the declaration of element 'beans'異常的解決辦法(24244)
5.?用MKVMerge GUI合并MKV文件(16686)
評(píng)論排行榜
1.?XFire完整入門教程(130)
2.?Spring Security 3.x 完整入門教程(67)
3.?使用XFire開發(fā)Web Service客戶端完整入門教程(33)
4.?VBA編程心得(24)
5.?JDK1.5API完整中文版CHM格式文檔發(fā)放(可下載)(22)
Powered by:
博客園
模板提供:
滬江博客
Copyright ©2025 Robin's Programming World
主站蜘蛛池模板:
亚洲中文无码a∨在线观看
|
亚洲制服中文字幕第一区
|
亚洲日韩国产AV无码无码精品
|
日韩人妻一区二区三区免费
|
国产日产亚洲系列
|
在线观看免费黄网站
|
久久九九亚洲精品
|
免费A级毛片av无码
|
亚洲精品456在线播放
|
无码人妻精品一二三区免费
|
亚洲偷自拍另类图片二区
|
在线观看免费亚洲
|
日韩在线视频免费
|
亚洲国产婷婷六月丁香
|
2022久久国产精品免费热麻豆
|
亚洲的天堂av无码
|
免费激情视频网站
|
日韩一区二区三区免费播放
|
亚洲最大AV网站在线观看
|
久久久久久一品道精品免费看
|
久久亚洲精品中文字幕
|
大地资源二在线观看免费高清
|
亚洲aⅴ无码专区在线观看
|
亚洲不卡无码av中文字幕
|
a毛片视频免费观看影院
|
亚洲无砖砖区免费
|
国产成人免费a在线视频app
|
国产精品玖玖美女张开腿让男人桶爽免费看
|
久久综合九九亚洲一区
|
国产免费不卡v片在线观看
|
亚洲AV无码一区二区三区网址
|
在线亚洲人成电影网站色www
|
91香蕉在线观看免费高清
|
亚洲欧洲国产综合AV无码久久
|
亚洲国产综合精品中文字幕
|
A级毛片高清免费视频在线播放
|
亚洲一区二区三区深夜天堂
|
亚洲精品无码成人片在线观看
|
国产99久久久国产精免费
|
亚洲欧洲精品视频在线观看
|
国产猛烈高潮尖叫视频免费
|