SSI整合报错,求大神解决
2013-09-16 11:36:25,609 INFO [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/ECAS_SSI001].log] - Initializing Spring root WebApplicationContext
2013-09-16 11:36:25,625 INFO [org.springframework.web.context.ContextLoader.initWebApplicationContext] - Root WebApplicationContext: initialization started
2013-09-16 11:36:25,703 INFO [org.springframework.web.context.support.XmlWebApplicationContext.prepareRefresh] - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@a56214: display name [Root WebApplicationContext]; startup date [Mon Sep 16 11:36:25 CST 2013]; root of context hierarchy
2013-09-16 11:36:25,859 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions] - Loading XML bean definitions from class path resource [spring.xml]
2013-09-16 11:36:25,937 INFO [org.springframework.web.context.support.XmlWebApplicationContext.obtainFreshBeanFactory] - Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@a56214]: org.springframework.beans.factory.support.DefaultListableBeanFactory@93bca2
2013-09-16 11:36:26,125 INFO [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.loadProperties] - Loading properties file from class path resource [db.properties]
2013-09-16 11:36:26,171 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons] - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@93bca2: defining beans [configBean,dataSource,sqlMapClient,transactionManager,baseTransactionProxy,tellerDAO,tellerService,tellerAction]; root of factory hierarchy
2013-09-16 11:36:26,765 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons] - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@93bca2: defining beans [configBean,dataSource,sqlMapClient,transactionManager,baseTransactionProxy,tellerDAO,tellerService,tellerAction]; root of factory hierarchy
2013-09-16 11:36:26,765 ERROR [org.springframework.web.context.ContextLoader.initWebApplicationContext] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tellerService' defined in class path resource [spring.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.isEqualsMethod(Ljava/lang/reflect/Method;)Z
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.isEqualsMethod(Ljava/lang/reflect/Method;)Z
at org.springframework.aop.support.AopUtils.isEqualsMethod(AopUtils.java:118)
at org.springframework.aop.framework.JdkDynamicAopProxy.findDefinedEqualsAndHashCodeMethods(JdkDynamicAopProxy.java:131)
at org.springframework.aop.framework.JdkDynamicAopProxy.getProxy(JdkDynamicAopProxy.java:116)
at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:110)
at org.springframework.aop.framework.AbstractSingletonProxyFactoryBean.getProxy(AbstractSingletonProxyFactoryBean.java:201)
at org.springframework.aop.framework.AbstractSingletonProxyFactoryBean.afterPropertiesSet(AbstractSingletonProxyFactoryBean.java:173)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)
... 39 more
2013-09-16 11:36:26,781 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/ECAS_SSI001].listenerStart] - 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 'tellerService' defined in class path resource [spring.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.isEqualsMethod(Ljava/lang/reflect/Method;)Z
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at SSI整合?IBAITS?STRUTS?
[解决办法]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tellerService' defined in class path resource [spring.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.isEqualsMethod(Ljava/lang/reflect/Method;)
LZ你这个地方
<bean id="tellerService" parent="baseTransactionProxy">
<property name="target">
<bean class="com.erayt.tms.service.impl.TellerServiceImpl">
<property name="tellerDAO"><ref bean="tellerDAO"/></property>
</bean>
</property>
</bean>
写得有点问题,试试按照tellerAction那个BEANID注入看看,异常LOG就是提示这tellerService地方
[解决办法]
<bean id="tellerService" parent="baseTransactionProxy">
<property name="target">
<bean class="com.erayt.tms.service.impl.TellerServiceImpl">
<property name="tellerDAO"><ref bean="tellerDAO"/></property>
</bean>
</property>
</bean>
改成
<bean id="tellerService" cladd="com.erayt.tms.service.impl.TellerServiceImpl">
<property name="tellerDAO" ref bean="tellerDAO"/></property>
</bean>
试下,不知道可以不,<bean id="tellerService" parent="baseTransactionProxy">这种写法还没用过,不知道什么意思哦,是继承baseTransactionProxy吗?