[ERROR] 2015-05-28 17:46:22,670 org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException : Error creating bean with name 'lookupManager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException : Could not autowire field: private com.ccbtrust.mgr.service.CodeValueService com.ccbtrust.mgr.web.LookupManager.codeValueService; nested exception is org.springframework.beans.factory.BeanCreationException : Error creating bean with name 'CodeValueService' defined in file [D:\Dev\apache-tomcat-6.0.26\webapps\ccbtmanager\WEB-INF\classes\com\ccbtrust\mgr\service\impl\CodeValueServiceImpl.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException : Could not instantiate bean class [com.ccbtrust.mgr.service.impl.CodeValueServiceImpl]: Constructor threw exception; nested exception is java.lang.RuntimeException : Error occurred. Cause: com.ibatis.common.xml.NodeletException : Error parsing XML. Cause: java.lang.RuntimeException : Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException : Error parsing XML. Cause: org.xml.sax.SAXParseException : XML document structures must start and end within the same entity.
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:288)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1116)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at
.........
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:1411)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.endEntity(XMLDocumentFragmentScannerImpl.java:902)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.endEntity(XMLDocumentScannerImpl.java:605)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.endEntity(XMLEntityManager.java:1393)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1763)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanData(XMLEntityScanner.java:1242)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanComment(XMLScanner.java:756)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanComment(XMLDocumentFragmentScannerImpl.java:1036)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:946)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
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:107)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
at com.ibatis.common.xml.NodeletParser.createDocument(NodeletParser.java:157)
at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:50 )
... 83 more
2015-5-28 17:46:22 org.apache.catalina.core.ApplicationContext log
信息: Set web app root system property: 'webapp.root' = [D:\Dev\apache-tomcat-6.0.26\webapps\ccbtmanager\]
2015-5-28 17:46:22 org.apache.catalina.core.ApplicationContext log
信息: Initializing log4j from [D:\Dev\apache-tomcat-6.0.26\webapps\ccbtmanager\WEB-INF\classes\log4j.properties]
2015-5-28 17:46:22 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2015-5-28 17:46:22 org.apache.catalina.core.StandardContext start
严重: Context [/ccbtmanager] startup failed due to previous errors
2015-5-28 17:46:22 org.apache.catalina.core.ApplicationContext log
信息: Shutting down log4j
2015-5-28 17:46:22 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: A web application registered the JBDC driver [oracle.jdbc.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2015-5-28 17:46:22 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: A web application registered the JBDC driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2015-5-28 17:46:22 org.apache.catalina.loader.WebappClassLoader clearReferencesStopTimerThread
严重: A web application appears to have started a TimerThread named [net.sf.ehcache.CacheManager@a7758e] via the java.util.Timer API but has failed to stop it. To prevent a memory leak, the timer (and hence the associated thread) has been forcibly cancelled.
2015-5-28 17:46:22 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: A web application appears to have started a thread named [CCBTMANAGER.data] but has failed to stop it. This is very likely to create a memory leak.
2015-5-28 17:46:22 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: A web application appears to have started a thread named [Thread-2] but has failed to stop it. This is very likely to create a memory leak.
解决办法:
Ibatis的XML注释要用:<!-- 注释 --> 不能用 <!--注释-->,要加空格
有些帖子说这种加空格的注释对汉字的注释有字数不同的限制,我感觉还是都用加空格的好,这样便于管理