Spring Security+Hibernate+struts tomcat启动时报错

org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'org... org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChains'
: Cannot resolve reference to bean 'org.springframework.security.web.DefaultSecurityFilterChain#7' while setting bean property 'sourceList' with key [7]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.DefaultSecurityFilterChain#7': Cannot resolve reference to bean 'org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0' while setting constructor argument with key [11]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0': Cannot resolve reference to bean 'org.springframework.security.access.vote.AffirmativeBased#0' while setting bean property 'accessDecisionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.access.vote.AffirmativeBased#0': Cannot create inner bean '(inner bean)' of type [org.springframework.security.web.access.expression.WebExpressionVoter] while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#18': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.security.web.access.expression.WebExpressionVoter]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/expression/BeanResolver
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
展开
 我来答
魔盒水晶
2013-02-19 · TA获得超过371个赞
知道小有建树答主
回答量:957
采纳率:0%
帮助的人:381万
展开全部
你这个问题是缺少jar包.自己下载一个和你的spring版本对应的org.springframework.expression-3.1.2.RELEASE.jar包.这个是我自己用的.版本不一定适合.expression包,自己找找吧.
泽泽ar
2013-02-18 · TA获得超过343个赞
知道小有建树答主
回答量:363
采纳率:100%
帮助的人:101万
展开全部
可能是你applicationContext.xml里面beans里面哪儿写错了。
更多追问追答
追问
检查了好几遍了,找不到问题的原因
追答
你接个图看看
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式