java.lang.IllegalStateException:Failed to load ApplicationContext
At Org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext ( CACHEAWARECONTEXTLOADERDELEGATE.JAVA:99)
At Org.springframework.test.context.DefaultTestContext.getApplicationContext (defaulttestcontext.java:101)
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:331)
At Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest (springjunit4classrunner.java:213)
At Org.springframework.test.context.junit4.springjunit4classrunner$1.runreflectivecall ( springjunit4classrunner.java:290)
At Org.junit.internal.runners.model.ReflectiveCallable.run (reflectivecallable.java:15)
At Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock (springjunit4classrunner.java:292 )
At Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild (springjunit4classrunner.java:233)
At Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild (springjunit4classrunner.java:87)
At Org.junit.runners.parentrunner$3.run (parentrunner.java:193)
At Org.junit.runners.parentrunner$1.schedule (parentrunner.java:52)
At Org.junit.runners.ParentRunner.runChildren (parentrunner.java:191)
At org.junit.runners.parentrunner.access$000 (parentrunner.java:42)
At Org.junit.runners.parentrunner$2.evaluate (parentrunner.java:184)
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:236)
At Org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run (springjunit4classrunner.java:176)
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.BeanCreationException:Error creating bean with Name ' sqlsessionfactory ' Defined in class path resource [Application-dao-config.xml]: Invocation of Init method failed; Nested exception is org.springframework.core.NestedIOException:Failed to parse mapping resource: ' File [e:\ Zmxyworkspace\web2svn\one.2.0\monitor-role\target\classes\mapper\oracle\role\monitormachinestaff-mapper.xml] '; Nested exception is org.apache.ibatis.builder.BuilderException:Error creating document instance. Cause:org.xml.sax.SAXParseException:Open quote is expected for attribute ' {1} ' associated with an element type ' ID '.
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean ( abstractautowirecapablebeanfactory.java:1553)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:539)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:475)
At Org.springframework.beans.factory.support.abstractbeanfactory$1.getobject (abstractbeanfactory.java:304)
At Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:228)
At Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:300)
At Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:195)
At Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:684)
At Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( abstractapplicationcontext.java:760)
At Org.springframework.context.support.AbstractApplicationContext.refresh (abstractapplicationcontext.java:482)
At Org.springframework.test.context.support.AbstractGenericContextLoader.loadContext ( ABSTRACTGENERICCONTEXTLOADER.JAVA:125)
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)
... More
caused by:org.springframework.core.NestedIOException:Failed to parse mapping resource: ' File [E:\zmxyworkspace\ Web2svn\one.2.0\monitor-role\target\classes\mapper\oracle\role\monitormachinestaff-mapper.xml] '; Nested exception is org.apache.ibatis.builder.BuilderException:Error creating document instance. Cause:org.xml.sax.SAXParseException:Open quote is expected for attribute ' {1} ' associated with an element type ' ID '.
At Org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory (sqlsessionfactorybean.java:466)
At Org.mybatis.spring.SqlSessionFactoryBean.afterPropertiesSet (sqlsessionfactorybean.java:340)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods ( abstractautowirecapablebeanfactory.java:1612)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean ( abstractautowirecapablebeanfactory.java:1549)
... More
caused by:org.apache.ibatis.builder.BuilderException:Error creating document instance. Cause:org.xml.sax.SAXParseException:Open quote is expected for attribute ' {1} ' associated with an element type ' ID '.
At Org.apache.ibatis.parsing.XPathParser.createDocument (xpathparser.java:253)
At Org.apache.ibatis.parsing.xpathparser.<init> (xpathparser.java:122)
At Org.apache.ibatis.builder.xml.xmlmapperbuilder.<init> (xmlmapperbuilder.java:74)
At Org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory (sqlsessionfactorybean.java:462)
... More
caused By:org.xml.sax.SAXParseException:Open quote is expected for attribute ' {1} ' associated with an element type "id".
At Com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException (Errorhandlerwrapper.java : 195)
At Com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError (errorhandlerwrapper.java:174)
At Com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError (xmlerrorreporter.java:388)
At Com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError (xmlscanner.java:1427)
At Com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue (xmlscanner.java:820)
At Com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute ( xmldocumentfragmentscannerimpl.java:1547)
At Com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement ( xmldocumentfragmentscannerimpl.java:1320)
At Com.sun.org.apache.xerces.internal.impl.xmldocumentfragmentscannerimpl$fragmentcontentdriver.next ( xmldocumentfragmentscannerimpl.java:2756)
At Com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next (xmldocumentscannerimpl.java:647)
At Com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument ( xmldocumentfragmentscannerimpl.java:511)
At Com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (xml11configuration.java:808)
At Com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (xml11configuration.java:737)
At Com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (xmlparser.java:119)
At Com.sun.org.apache.xerces.internal.parsers.DOMParser.parse (domparser.java:232)
At Com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse (documentbuilderimpl.java:284)
At Org.apache.ibatis.parsing.XPathParser.createDocument (xpathparser.java:251)
... More
<!--bulk Delete push records by ID--
<delete id=deletecommunicationprotocolbyids parametertype= "List" >
DELETE from Tcommunicationprotocol WHERE tpId in
<foreach collection= "list" item= "TpId" open= "(" separator= ","
Close= ")" >#{tpId}</foreach>
</delete>
No quotes!
Failed to load ApplicationContext