java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:333)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'listenerContainer' defined in class path resource [conf/spring-conf/applicationContextTestNew.xml]: Cannot resolve reference to bean 'messageListener' while setting bean property 'messageListener'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageListener' defined in class path resource [conf/spring-conf/applicationContextTestNew.xml]: Cannot create inner bean 'com.cherry.mq.mes.common.CherryMessageReceiverImpl#966905' of type [com.cherry.mq.mes.common.CherryMessageReceiverImpl] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.cherry.mq.mes.common.CherryMessageReceiverImpl#966905': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'binBEMQMES01_Action': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'binBEMQMES99_BL': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'binBEMQMES99_Service': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.cherry.cm.core.IfServiceImpl] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(shareable=true, mappedName=, description=, name=, type=class java.lang.Object, authenticationType=CONTAINER)}
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
详细解决方案
Failed to load ApplicationContext
热度:539 发布时间:2016-04-21 21:05:22.0
相关解决方案
- 请问registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister
- <load-on-startup>的有关问题
- Servlet配备太神奇鸟:(load-on-startup设置为负数肿么还是加载
- applicationContext.xml怎么和JAVA代码关联
- Unable to load class for JSP,该如何处理
- struts2.3.4.1启动抛错误 Unable to load configuration
- DBCP borrowObject failed: java.sql.SQLException: Io 错误: The Network Adapter
- Server Apache Tomcat v6.0.35 at localhost failed to start
- Could not load JDBC driver class 咋回事
- Context [] startup failed due to previous errors解决方案
- jquery.load(*json) 解析不已。求帮忙
- Cannot load JDBC driver class 'com.microsoft.jdbc.sqlserver.SQLServerDriver'解决方法
- class path resource [applicationContext.xml] does not exist解决方法
- log4j:ERROR setFile(null,false) call failed.解决方法
- CAS(SSO) tomcat ssl 配置出错 PKIX path building failed,该怎么处理
- Eclipse 报错org.apache.catalina.LifecycleException: Failed to start component。该怎么解决
- 答案 jquery load()
- SonyEricsson_W800 Couldn't load zayitlib.dll library?解决思路
- \nbproject\build-impl.xml:332: Preverification failed with error code 1. 异常
- spring3 applicationContext.xml 怎么配置多个DAO
- 求教高手:Unable to load configuration.该如何处理
- Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml],该如何解决
- org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryV
- websphere5.12 Error 503: Failed to load target servlet [action],该如何处理
- 严重: Context [/ZZVC_HOMEPAGE] startup failed due to previous errors
- method failed; nested exception is org.hibernate.HibernateException:
- httpClient 错误 The server failed to respond with a valid HTTP response
- FCIAddFile(failed: code 一 [Failure opening file to be stored in cabinet]
- FCIAddFile(failed: code 1 [Failure opening file to be stored in cabinet],该怎么解决
- Failed to open XML file解决方案