ssh整合时报错!

edgar108 2009-02-15 04:37:13
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.util.ClassUtils.getMostSpecificMethod(Ljava/lang/reflect/Method;Ljava/lang/Class;)Ljava/lang/reflect/Method;
Caused by: java.lang.NoSuchMethodError: org.springframework.util.ClassUtils.getMostSpecificMethod(Ljava/lang/reflect/Method;Ljava/lang/Class;)Ljava/lang/reflect/Method;
在我的application.xml文件里有:

<aop:config>
<aop:pointcut id="allManagerMethod"
expression="execution (*
com.edgar.crm.service.*.*(..))" />
<aop:advisor advice-ref="txAdvice"
pointcut-ref="allManagerMethod" />
</aop:config>
如果我把这段注释掉,就不报错了.我把asm2.2.3.jar删了,还是不行,往高手指点!

application.xml文件开头部分:
<?xml version="1.0" encoding="UTF-8"?>
<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">
...全文
165 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
gongyali2005 2009-02-15
  • 打赏
  • 举报
回复
Caused by: java.lang.NoSuchMethodError:

没找到方法?
linv89 2009-02-15
  • 打赏
  • 举报
回复
看一下你这个有关'dataSource'bean
edgar108 2009-02-15
  • 打赏
  • 举报
回复
自己给自己顶!
yunyouyou 2009-02-15
  • 打赏
  • 举报
回复
顶,好久没摸过spring了,,,
yunyouyou 2009-02-15
  • 打赏
  • 举报
回复
顶,好久没摸过spring了,,,

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧