严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [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;严重: Error listenerStart
2009-6-27 12:51:42 org.apache.catalina.core.StandardContext start
严重: Context [/telecom] startup failed due to previous errors这是错误信息
谁知道是什么错误?是不是我少了jar包或者其他什么的?

解决方案 »

  1.   

    你用的是哪个数据源??如果你确定没有少jar包的话并且数据源是dbcp的话,可能是
    jar包冲突了((可能是)commons-beanutils和commons-collection)这两个,删除掉
    更换成spring中的带的看看
      

  2.   

    数据库连的是oracle,dbcp连接池
      

  3.   

    <bean id="propertyConfigurer"
    class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="locations">
    <list>
    <value>WEB-INF/db.properties</value>
    </list>
    </property>
    </bean>
    <bean id="dataSource"
    class="org.apache.commons.dbcp.BasicDataSource"
    destroy-method="close">
    <property name="driverClassName">
    <value>${citcop.jdbc.driverClassName}</value>
    </property>
    <property name="url">
    <value>${citcop.jdbc.url}</value>
    </property>
    <property name="username">
    <value>${citcop.jdbc.username}</value>
    </property>
    <property name="password">
    <value>${citcop.jdbc.password}</value>
    </property>
    <property name="maxActive">
    <value>${citcop.maxActive}</value>
    </property>
    <property name="maxWait">
    <value>${citcop.maxWait}</value>
    </property>
    <property name="maxIdle">
    <value>${citcop.maxIdle}</value>
    </property>
    </bean>
    <bean id="sessionFactory"
    class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
    <property name="dataSource">
    <ref bean="dataSource" />
    </property>
    <property name="hibernateProperties">
    <props>
    <prop key="hibernate.dialect">
    org.hibernate.dialect.Oracle9Dialect
    </prop>
    <prop key="hibernate.show_sql">true</prop>
    </props>
    </property>
    <property name="mappingResources">
    <list>
    <value></value>
    </list>
    </property>
    </bean>
    <!-- 事务管理器 -->
    <bean id="transactionManager"
    class="org.springframework.orm.hibernate3.HibernateTransactionManager">
    <property name="sessionFactory">
    <ref local="sessionFactory" />
    </property>
    </bean>
    <!-- 配置事务特性,配置add,delete,update开始的方法,事务传播特性为required -->
    <tx:advice id="txAdvice" transaction-manager="transactionManager">
    <tx:attributes>
    <tx:method name="add*" propagation="REQUIRED" />
    <tx:method name="delete*" propagation="REQUIRED" />
    <tx:method name="update*" propagation="REQUIRED" />
    <tx:method name="*" read-only="true" />
    </tx:attributes>
    </tx:advice>
    <!-- 配置那些类的方法进行事务管理,当前com.sy.crm.service包中的子包,
    类中所有方法需要,还需要参考tx:advice的设置 -->
    <aop:config>
    <aop:pointcut id="allManagerMethod"
    expression="execution(*
        com.telecom.operate.service.*.*(..))" />
    <aop:advisor advice-ref="txAdvice"
    pointcut-ref="allManagerMethod" />
    </aop:config>这是我的配置,有什么问题吗?