1. Error description
July 13, 2014 6:34:41 pm org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadbeandefinitions Info: Loading XML Bean definitions from class path resource [Applicationcontext.xml] July 13, 2014 6:34:42 pm Org.springframework.test.cont Ext. Testcontextmanager preparetestinstance Critical: Caught exception while allowing Testexecutionlistener [or[email PROTECTED]1479784] To prepare test instance [[Email protected]]java.lang.illegalstateexception:failed to load Applicationcontextat Org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext ( cacheawarecontextloaderdelegate.java:99) at Org.springframework.test.context.TestContext.getApplicationContext ( testcontext.java:122) at Org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary ( servlettestexecutionlistener.java:108) at Org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance ( servlettestexecutionlistener.java:75) at Org.springframework.test.context.TeStcontextmanager.preparetestinstance (testcontextmanager.java:312) at Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest (springjunit4classrunner.java:209) at Org.springframework.test.context.junit4.springjunit4classrunner$1.runreflectivecall ( springjunit4classrunner.java:286) at Org.junit.internal.runners.model.ReflectiveCallable.run ( REFLECTIVECALLABLE.JAVA:15) at Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock ( springjunit4classrunner.java:288) at Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild ( springjunit4classrunner.java:229) at Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild ( springjunit4classrunner.java:86) at Org.junit.runners.parentrunner$3.run (parentrunner.java:231) at Org.junit.runners.parentrunner$1.schedule (parentrunner.java:60) at Org.junit.runners.ParentRunner.runChildren ( parentrunner.java:229) at org.junit.runners.parentrunner.access$000 (PARENTRUNNER.JAVA:50) at Org.junit.runners.ParentRunner$2.evaluate (parentrunner.java:222) at Org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate ( RUNBEFORETESTCLASSCALLBACKS.JAVA:61) at Org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate ( runaftertestclasscallbacks.java:71) at Org.junit.runners.ParentRunner.run (parentrunner.java:292) at Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run (springjunit4classrunner.java:172) at Org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run (JUNIT4TESTREFERENCE.JAVA:50) 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.BeanDefinitionStoreException:IOException parsing XML document from class path resource [Applicationcontext.xml]; Nested exception is java.io.FileNotFoundException:class path resource [Applicationcontext.xml] cannot be opened because I T does not existat org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions ( xmlbeandefinitionreader.java:343) at Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions (Xmlbeandefinitionreader.java : 303) at Org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions ( abstractbeandefinitionreader.java:180) at Org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions ( abstractbeandefinitionreader.java:216) at Org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions ( abstractbeandefinitionreader.java:187) at Org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loaDbeandefinitions (abstractbeandefinitionreader.java:251) at Org.springframework.test.context.support.AbstractGenericContextLoader.loadBeanDefinitions ( abstractgenericcontextloader.java:235) at Org.springframework.test.context.support.AbstractGenericContextLoader.loadContext ( abstractgenericcontextloader.java:118) at Org.springframework.test.context.support.AbstractGenericContextLoader.loadContext ( ABSTRACTGENERICCONTEXTLOADER.JAVA:60) at Org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading ( ABSTRACTDELEGATINGSMARTCONTEXTLOADER.JAVA:100) at Org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext ( ABSTRACTDELEGATINGSMARTCONTEXTLOADER.JAVA:250) at Org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContextInternal ( CACHEAWARECONTEXTLOADERDELEGATE.JAVA:64) at Org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext ( cacheawarecontextloaderdelegate.java:91) ... Morecaused By:java.io.FileNotFoUndexception:class path Resource [Applicationcontext.xml] cannot be opened because it does not existat Org.springframewor K.core.io.classpathresource.getinputstream (classpathresource.java:158) at Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions (Xmlbeandefinitionreader.java : 329) ... Panax Notoginseng More
2. Cause of Error
3. Solutions