部署新接管的项目时出现问题



当我试图将我的战争部署到tomcat时,我收到了以下错误,如果能提供任何帮助,我将不胜感激。我已经提供了错误/stacktrace和它似乎引用的源代码。如果能提供任何帮助来修复源代码,我们将不胜感激。

如果你需要更多的细节,请询问,因为SO认为这是垃圾邮件,所以我不得不删除更有用的细节。

我真正需要帮助的是找出下面代码的问题,以理解tomcat拒绝它的原因,但我完全不知道,因为我几天前才接手代码。

我相信有人比我在StackOverflow上更能理解这一点。所以希望你们能帮助我。很抱歉收到垃圾邮件,因为SO认为我的帖子是垃圾邮件,因为日志和代码太大了。

022-09-07 15:47:17,779 WARN [RMI TCP Connection(3)-127.0.0.1] [AbstractApplicationContext.java:487] Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'aggregatorGateWayManagerImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.SmsGateWayManager com.textintegration.service.AggregatorGateWayManagerImpl.m_clickatelGateWayManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smsGateWayManagerImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.dao.UserDAOV2 com.textintegration.service.SmsGateWayManagerImpl.m_userDAOV2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDAOV2': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.InfusionSoftService com.textintegration.dao.UserDAOV2.m_infusionSoftService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'infusionSoftServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.StatisticService com.textintegration.service.InfusionSoftServiceImpl.m_statisticService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'statisticServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.MessageBuilderService com.textintegration.service.StatisticServiceImpl.m_messageBuilderService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageBuilderServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.MobilePageService com.textintegration.service.MessageBuilderServiceImpl.mobilePageService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mobilePageServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.UserOauthService com.textintegration.service.MobilePageServiceImpl.userOauthService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userOauthServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.UserOauthService com.textintegration.service.impl.UserOauthServiceImpl.userOauthService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.textintegration.service.UserOauthService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403) [spring-web-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) [spring-web-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106) [spring-web-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4763) [catalina.jar:8.5.82]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5232) [catalina.jar:8.5.82]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:8.5.82]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753) [catalina.jar:8.5.82]
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:727) [catalina.jar:8.5.82]
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695) [catalina.jar:8.5.82]
at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1775) [catalina.jar:8.5.82]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_221]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_221]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_221]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_221]
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:291) [tomcat-coyote.jar:8.5.82]
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) [na:1.8.0_221]
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) [na:1.8.0_221]
at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:483) [catalina.jar:8.5.82]
at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:431) [catalina.jar:8.5.82]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_221]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_221]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_221]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_221]
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:291) [tomcat-coyote.jar:8.5.82]
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) [na:1.8.0_221]
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) [na:1.8.0_221]
at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468) [na:1.8.0_221]
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468) [na:1.8.0_221]
at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76) [na:1.8.0_221]
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309) [na:1.8.0_221]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_221]
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1408) [na:1.8.0_221]
at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829) [na:1.8.0_221]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_221]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_221]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_221]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_221]
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357) [na:1.8.0_221]
at sun.rmi.transport.Transport$1.run(Transport.java:200) [na:1.8.0_221]
at sun.rmi.transport.Transport$1.run(Transport.java:197) [na:1.8.0_221]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_221]
at sun.rmi.transport.Transport.serviceCall(Transport.java:196) [na:1.8.0_221]
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573) [na:1.8.0_221]
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834) [na:1.8.0_221]
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688) [na:1.8.0_221]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_221]
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687) [na:1.8.0_221]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_221]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_221]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_221]
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.SmsGateWayManager com.textintegration.service.AggregatorGateWayManagerImpl.m_clickatelGateWayManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smsGateWayManagerImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.dao.UserDAOV2 com.textintegration.service.SmsGateWayManagerImpl.m_userDAOV2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDAOV2': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.InfusionSoftService com.textintegration.dao.UserDAOV2.m_infusionSoftService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'infusionSoftServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.StatisticService com.textintegration.service.InfusionSoftServiceImpl.m_statisticService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'statisticServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.MessageBuilderService com.textintegration.service.StatisticServiceImpl.m_messageBuilderService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageBuilderServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.MobilePageService com.textintegration.service.MessageBuilderServiceImpl.mobilePageService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mobilePageServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.UserOauthService com.textintegration.service.MobilePageServiceImpl.userOauthService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userOauthServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.UserOauthService com.textintegration.service.impl.UserOauthServiceImpl.userOauthService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.textintegration.service.UserOauthService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
... 60 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'smsGateWayManagerImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.dao.UserDAOV2 com.textintegration.service.SmsGateWayManagerImpl.m_userDAOV2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDAOV2': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.InfusionSoftService com.textintegration.dao.UserDAOV2.m_infusionSoftService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'infusionSoftServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.StatisticService com.textintegration.service.InfusionSoftServiceImpl.m_statisticService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'statisticServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.MessageBuilderService com.textintegration.service.StatisticServiceImpl.m_messageBuilderService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageBuilderServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.MobilePageService com.textintegration.service.MessageBuilderServiceImpl.mobilePageService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mobilePageServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.UserOauthService com.textintegration.service.MobilePageServiceImpl.userOauthService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userOauthServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.UserOauthService com.textintegration.service.impl.UserOauthServiceImpl.userOauthService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.textintegration.service.UserOauthService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
Wed Sep 07 15:47:17 CEST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Wed Sep 07 15:47:17 CEST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
... 62 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.dao.UserDAOV2 com.textintegration.service.SmsGateWayManagerImpl.m_userDAOV2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDAOV2': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.InfusionSoftService com.textintegration.dao.UserDAOV2.m_infusionSoftService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'infusionSoftServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.StatisticService com.textintegration.service.InfusionSoftServiceImpl.m_statisticService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'statisticServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.MessageBuilderService com.textintegration.service.StatisticServiceImpl.m_messageBuilderService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageBuilderServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.MobilePageService com.textintegration.service.MessageBuilderServiceImpl.mobilePageService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mobilePageServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.UserOauthService com.textintegration.service.MobilePageServiceImpl.userOauthService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userOauthServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.UserOauthService com.textintegration.service.impl.UserOauthServiceImpl.userOauthService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.textintegration.service.UserOauthService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
... 73 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDAOV2': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.InfusionSoftService com.textintegration.dao.UserDAOV2.m_infusionSoftService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'infusionSoftServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.StatisticService com.textintegration.service.InfusionSoftServiceImpl.m_statisticService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'statisticServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.MessageBuilderService com.textintegration.service.StatisticServiceImpl.m_messageBuilderService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageBuilderServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.MobilePageService com.textintegration.service.MessageBuilderServiceImpl.mobilePageService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mobilePageServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.UserOauthService com.textintegration.service.MobilePageServiceImpl.userOauthService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userOauthServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.textintegration.service.UserOauthService com.textintegration.service.impl.UserOauthServiceImpl.userOauthService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.textintegration.service.UserOauthService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

以上只是我遇到的错误之一(第一个),所以我预计我需要比这更多的帖子才能在tomcat manager上接受代码。

我最近接管了这个代码库,所以我不知道它可能有任何问题。我最近把它从一个渐变为maven的项目。以下是给出错误的文件:

任何帮助都将不胜感激,因为我根本不知道代码,我正在尽我所能尽快部署WAR,这样我就可以开始查看和调试网站了。

在自动配置过程中丢失了几个bean。所以,请阅读下面的错误(从下到上)并注册所需的bean。

org.springframework.beans.factory.BeanCreationException:错误正在创建名为"aggregatorGateWayManagerImpl"的bean:注入自动连接的依赖项失败;嵌套异常为org.springframework.beans.factory.BeanCreationException:无法autowire字段:private com.textintegration.service.SmsGateWayManagercom.textintegration.service.AggregatorGateWayManagerImpl.m.clickatelGateWayManager;嵌套异常为org.springframework.beans.factory.BeanCreationException:错误正在创建名为"smsGateWayManagerImpl"的bean:注入自动连接的依赖项失败;嵌套异常为org.springframework.beans.factory.BeanCreationException:无法autowire字段:private com.textintegration.dao.UserDAOV2com.textintegration.service.SmsGateWayManagerImpl.m.userDAOV2;嵌套的异常为org.springframework.beans.factory.BeanCreationException:创建名为"userDAOV2"的bean时出错:注入autowired依赖关系失败;嵌套异常为org.springframework.beans.factory.BeanCreationException:无法autowire字段:专用com.textintegration.service.InfusionSoftServicecom.textintegration.dao.UserDAOV2.m_infusionSoftService;嵌套的异常为org.springframework.beans.factory.BeanCreationException:创建名为"infusionSoftServiceImpl"的bean时出错:注入自动连接的依赖项失败;嵌套异常为org.springframework.beans.factory.BeanCreationException:无法autowire字段:private com.textintegration.service.StatisticServicecom.textintegration.service.InfusionSoftServiceImpl.m_statisticService;嵌套异常为org.springframework.beans.factory.BeanCreationException:错误正在创建名为"statisticServiceImpl"的bean:注入autowired依赖关系失败;嵌套异常为org.springframework.beans.factory.BeanCreationException:无法autowire字段:专用com.textintegration.service.MessageBuilderServicecom.textintegration.service.StatisticServiceImpl.m.messageBuilderService;嵌套异常为org.springframework.beans.factory.BeanCreationException:错误正在创建名为"messageBuilderServiceImpl"的bean:注入自动连接的依赖项失败;嵌套异常为org.springframework.beans.factory.BeanCreationException:无法autowire字段:private com.textintegration.service.MobilePageServicecom.textintegration.service.MessageBuilderServiceImpl.mobilePageService;嵌套异常为org.springframework.beans.factory.BeanCreationException:错误正在创建名为"mobilePageServiceImpl"的bean:注入自动连接的依赖项失败;嵌套异常为org.springframework.beans.factory.BeanCreationException:无法autowire字段:private com.textintegration.service.UserOauthServicecom.textintegration.service.MobilePageServiceImpl.userOauthService;嵌套异常为org.springframework.beans.factory.BeanCreationException:错误正在创建名为"userOauthServiceImpl"的bean:注入autowired依赖关系失败;嵌套异常为org.springframework.beans.factory.BeanCreationException:无法autowire字段:private com.textintegration.service.UserOauthServicecom.textintegration.service.impl.UserOauthServiceImpl.userOauthService;嵌套异常为org.springframework.beans.factory.NoSuchBeanDefinitionException:否符合条件的类型为[com.textintegration.service.UserOauthService]的bean为依赖项找到:应至少有1个符合此依赖项的autowire候选者。依赖项注释:{@org.springframework.beans.factory.annotation.Autowired(required=true)}

最新更新