我的Myeclipse是10.0的。已经自动全集成自动化了struts2,报下面的错!

温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
孤独是一个人的代价
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
阅读(11240)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
loftPermalink:'',
id:'fks_',
blogTitle:'Myeclipse8.6 整合Struts2和Spring支持报错:org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [applicationContext.xml]; nested exception is java.lang.NoSuchMethodError..(转)',
blogAbstract:' 整合Struts2,Spring3.0,Hibernate3.3时无意发现一个异常,现记录下来,以备日后快速查看。 由于是直接用myeclipse8.6添加了对各框架的支持,在添加struts2的时候,无意中把spring2.5的一些jar包也加到工程了,之后又添加了spring3.0的支持。于是在单元测试的时候出现了下面的异常: & org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Failed to import bean definitions from relative location
[applicationContext.xml]Offending resource: class path resource
[applicationContext_bean.xml];',
blogTag:'',
blogUrl:'blog/static/',
isPublished:1,
istop:false,
modifyTime:6,
publishTime:4,
permalink:'blog/static/',
commentCount:0,
mainCommentCount:0,
recommendCount:1,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:false,
hostIntro:'孤独是一个人的代价',
hmcon:'1',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
严重:&Exception&starting&filter&struts2 java.lang.ClassNotFoundException:&org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter。。。。。。。在网上查了好久终于找到了解决办法:将如下jar包拷贝到/WEB-INF/lib中,然后选中右击,选择build path-&add to build path重启tomcat即可解决!&
阅读(8417)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
在LOFTER的更多文章
loftPermalink:'',
id:'fks_',
blogTitle:'严重: Exception starting filter struts2
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter的解决办法',
blogAbstract:'今天在配置了一个struts2项目后启动Tomcat时报了如下的错误,我的struts2环境是MyEclipse自动配好的。严重:&Exception&starting&filter&struts2 java.lang.ClassNotFoundException:&org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter。。。。。。。在网上查了好久终于找到了解决办法:将如下jar包拷贝到/WEB-INF/lib中,然后选中右击,选择build path-&add to build path重启tomcat即可解决!',
blogTag:'struts2,java.lang.classnotfo,org.apache.struts2.d,tomcat,ssh',
blogUrl:'blog/static/',
isPublished:1,
istop:false,
modifyTime:7,
publishTime:2,
permalink:'blog/static/',
commentCount:1,
mainCommentCount:1,
recommendCount:0,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:false,
hostIntro:'',
hmcon:'1',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}struts2集成tiles。myeclipse10_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
struts2集成tiles。myeclipse10
&&struts2集成tiles。myeclipse10
阅读已结束,下载文档到电脑
想免费下载更多文档?
定制HR最喜欢的简历
下载文档到电脑,方便使用
还剩2页未读,继续阅读
定制HR最喜欢的简历
你可能喜欢您的访问出错了(404错误)
很抱歉,您要访问的页面不存在。
1、请检查您输入的地址是否正确。
2、感谢您使用本站,通过
进行查找。
3、使用搜索框直接进行搜索最近几天培训的过程中,经常有同学手一抖,默默的修改了本来配置部署好的项目名,导致项目报错&&
遇到这种事情,我一般会做的处理就是重新新建项目,然后把包和各种文件ctrl+c ctrl+v,遇到项目小还好,要是稍微一个不注意,就会出现更多的错误。
所以,经过孙大爷提到一个解决方法,以我的一个myeclipse+tomcat所做的struts2+hibernate整合的项目举例:
1.由于项目用的MyEclipse自带的MyTomcat,所以通过如图1-1的方式找到myeclipse自带的tomcat的webapps文件夹,如图1-2所示,删掉自己改名项目的文件夹。
2.找到项目根目录,找到.mymetadata文件,如图2-1所示
打开该文件,由于在MyEclipse中修改项目名,自动修改的是name属性,这里对应的context-root是我们要修改的(这里我的项目没有改名,如果是改过名的项目,name属性和context-root的值是不一样的),使两者对应即可。
&?xml version="1.0" encoding="UTF-8"?&
&project-module
type="WEB"
name="MixStruts2Hibernate"
id="myeclipse.7"
context-root="/MixStruts2Hibernate"
j2ee-spec="6.0"
archive="MixStruts2Hibernate.war"&
&attributes&
&attribute name="webrootdir" value="WebRoot" /&
&/attributes&
&/project-module&
3.打开MyEclipse,重新部署运行。就OK了。
希望对大家能有帮助。
阅读(...) 评论()
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "/h.js%3Fcd88dadfddfce97dc5bea19' type='text/javascript'%3E%3C/script%3E"));

我要回帖

更多关于 工业自动化系统集成商 的文章

 

随机推荐