MyBatis 配置文件头部换行异常
INFO - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3da671: defining beans [dataSource,sqlSessionFactory,userDetailsManager,transactionManager,org.springframework.security.authentication.event.LoggerListener#0,passwordEncoder,two,three,com.tension.framework.common.ApplicationContextAwareService#0,txAdvice,org.springframework.beans.factory.config.CustomEditorConfigurer#0,fileData,uploadFileDao,uploadFileService,wfCommentServiceImpl,wfAfterwardsCommentDao,wfAfterwardsCommentServiceImpl,wfSaveOpinionServiceImpl,wfWorkCommentDao,wfWorkCommentServiceImpl,wfPluginInstanceConfigManagerDao,wfPluginInstanceConfigManager,wfPluginConfigManagerDao,wfPluginConfigManager,taskPlanDao,taskPlanServiceImpl,taskInfoDao,taskInfoServiceImpl,warnInfoDao,warnInfoServiceImpl,emailUtil,org.springframework.scheduling.annotation.internalAsyncAnnotationProcessor,org.springframework.scheduling.annotation.internalScheduledAnnotationProcessor,taskJob,wFSystemJoinFlowDao,otherdao,wfSystemJoinFlowImpl,otherService,sysOutservice,otherJoinSysAction,wfDataDicDao,wfDataDicGroupDao,wfDataDicImpl,wfDataDicGroupImpl,outService,pluginService,emailPluginDao,emailPluginServiceImpl,nodesCacheDao,nodesCacheService,staticNodesCacheService,announcementDao,announcementManage,emDao,emService,advancedDDao,advancedDService,emDetailDao,emDetailService,runtimeAssessDao,runtimeAssessService,overtimeFormDao,overtimeFormService,riCatalogDao,riCatalogService,riReportDao,riReportService,riDataDao,riDataService,riReportColumnDao,riReportColumnService,riReportControlDao,riReportControlService,wfOpinionDao,wfOpinionManage,smsRecvTaskJob,smsSendTaskJob,smsRecvDaoImpl,SMSRecvImpl,smsSendDaoImpl,smsSendImpl,smsEntrustServiceImpl,clientUpdateDao,clientUpdateimpl,applyFormDao,applyFormService,ztdFormDao,ZTDFormService,userManagerDao,userManager,global,userInRoleManagerDao,userInRoleManager,passWordManagerDao,passWordManager,roleInSiteNodeDao,roleInSiteNode,roleManagerDao,roleManager,departmentInRoleDao,departmentInRoleManager,leaderDepartmentManagerDao,leaderDepartmentManager,departmentManagerDao,departmentManager,employeeManagerDao,employeeManager,departmentInBankDao,departmentInBankManager,siteNodeManagerDao,siteNodeManager,areaDao,areaManager,hospitalreportDao,hospitalreportManager,settlementreportinfoDao,settlementreportinfoManager,reportcancelDao,reportcancelManager,settlementInfoDao,settlementInfoManager,sporadicReportDao,sporadicReportManager,hospitalReportPoolDao,hospitalReportPoolManager,hospitalreportinfoDao,hospitalreportinfoManager,hospitalreportWebService,sporadicReportInfoDao,sporadicReportInfoManager,settlementreportDao,settlementreportManager,org.springframework.aop.config.internalAutoProxyCreator,settlementReportManagerMethods,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,insuredtypeDao,insuredtypeManager,updatePersonTypeJob,historymoneycountDao,historymoneycountManager,historyMoneyDao,historyMoneyManager,difficultyPersonBakDao,difficultyPersonBakManager,reliefidentityDao,reliefidentityManager,materialInfoDao,materialInfoManager,credentialsDao,credentialsManager,extendInfoDao,extendInfoManager,reliefstatusDao,reliefstatusManager,difficultypersonDao,personService,personVo,bankDao,bankManager,censusRelateDao,censusRelateManager,censusRelateManagerMethods,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#1,reliefTypeDao,reliefTypeManager,personTypeDao,personTypeManager,hospitalDao,hospitalManager,reportConfigDao,reportConfigManager,medicalexpensestypeDao,medicalexpensestypeManager,reliefruleDao,reliefruleManager,diseasereliefrDao,diseasereliefrManager,insuredTypeDao,insuredTypeService,relieftreatmentDao,relieftreatmentManager,diseaseDao,diseaseManager,diseaseManagerMethods,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#2,reliefstandardDao,reliefstandardManager,reliefnormDao,reliefnormManager,personIDSubsidizeDao,personIDSubsidizeService,attachmentDao,attachmentManager,standingBookDao,standingBookManager,insuredListInfoBDao,insuredListInfoBManager,insuredListInfoADao,insuredListInfoAManager,insuredListADao,insuredListAManager,requestPayInfoDao,requestPayInfoManager,personIdTypeDao,personIdTypeManager,insuredNoPayIdDao,insuredNoPayIdManager,requestPayDao,requestPayManager,standingBookInfoDao,standingBookInfoManager,insuredApplyDao,insuredApplyManager,insuredListBDao,insuredListBManager,reinsuredDao,reinsuredManager,reInsuredLeadDao,reInsuredLeadManager,hAppInfoManager,rInsuredCheckManager,sBookInfoManager,dpersonManager,iTypeManager,iListInfoAManager,iApplyManager,sInsuredOutService,haltInsappInfoDao,haltInsappInfoManager,haltInsuredApplyDao,haltInsuredApplyManager,haltInsuredApplyManagerMethods,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#3,generalApplyInfoDao,generalApplyInfoManager,reportinfoDao,reportinfoManager,applyDetailsInfoDao,applyDetailsInfoManager,reportCollectInfoDao,reportCollectInfoManager,applyDao,applyManager,generalApplyDao,generalApplyManager,generalApplyManagerMethods,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#4,reportDao,reportManager,reportManagerMethods,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#5,modifyLogDao,modifyLogManager,reportApplyForGatherDao,reportApplyForGatherManager,findAndUpdateReportApplyManager,pettyCashManager,abstractRepBusinessHandle,abstractAppRepBusinessHandle,appRepBusinessHandle,finalAppRepBusinessHandle,temporaryQxRepBusinessHandle,temporaryZxRepBusinessHandle,weightBigRepBusinessHandle,reportinfoManagerBusinessHandle,applyForGatherManagerMethods,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#6,busConfigDao,busConfigManager,waitHandlingDao,waitHandlingManager,gzmasdmIndexDao,gzmasdmIndexManager,auditOpinionDao,auditOpinionService,wfFormDao,wfFormService,replaceContext,userDelegateWfJobImpl,wfApprovalWfJobInfoImpl,showToolBarImpl,controlOperateInstanceImpl,instanceServiceImpl,noConfigurationTbImpl,operateActivityWfJobImpl,baseInstanceInfo,engineContext,warnCelebrity,abstractSerial,empRule,seqRule,resolveRuleImpl,selectPeopleRule,outBoundRule,lineRule,circulationRule,invokeClass,coordinateRule,invokeForm,wfBaseDao,wfBaseServiceImpl,wfActivityDao,wfActivityServiceImpl,wfInstanceDao,wfInstanceServiceImpl,wfLineDao,wfLineServiceImpl,toolbarDao,toolbarServiceImpl,wfVersionDao,wfVersionServiceImpl,wfActhiStoryDao,wfActhiStoryServiceImpl,problemInfoDao,problemInfoServiceImpl,wfCountersignDao,wfCountersignServiceImpl,flowengineMethods,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#7,systemLogDao,systemLogService,commonOperateLogService,outSystemLogService,archivalLoggingServiceDao,archivalLoggingServiceImpl,taskJobService,fpDao,fpManager,cataLogDao,cataLogService,cataLogOutService,sporadicFMDao,sporadicFMService,wfTrackingDao,wfTrackingService,getInstanceDao,getInstance,fundedDao,fundedService,fundedDetailsDao,fundedDetailsService,fundedFormDao,fundedFormService,settlementDao,settlementService,evectionFormDao,evectionFormService,baseConfigManagerDao,baseConfigManager,lineConfigManagerDao,lineConfigManager,selectSendUserConfigManagerDao,selectSendUserConfigManager,selectionRulesConfigManagerDao,selectionRulesConfigManager,toolBarConfigManagerDao,toolBarConfigManager,diffuseConfigManagerDao,diffuseConfigManager,wfConfigHelperOutservice,linkFormConfigManagerDao,linkFormConfigManager,wfOtherConfigDao,wfOtherConfigService,leaveFormDao,leaveFormService,wfFormConfigManagerDao,wfFormConfigManager,wfIntelligentFormManagerDao,wfIntelligentFormManager,wfFormCatalogManagerDao,wfFormCatalogManager,contractDao,contractService,messageDao,messageService,accountDao,accountService,msgSchedulerJobDetail,msgCronTrigger,msgSchedulerFactory,entrustPersonDao,entrustPersonService,dedicatedDao,decicatedService,netWorkHardDiskDao,netWorkHardDiskServiceImpl,netWorkHardDiskShareDao,nwHardDiskDirShareServiceImpl,organizationUser,authorizedDao,authorizedService,permissionsDao,permissionsService,flowAttentionDao,flowAttentionService,formDao,formManager,favoriteFlowDao,favoriteFlowService,workOffDao,workOffService,workDateDao,workDateServiceImpl,workTimeDao,workTimeServiceImpl,wFAuthForUserDao,wFAuthForUserService,wFAuthForDepartmentDao,wFAuthForDepartmentService,wFAuthorityDao,wFAuthorityService,wFAuthForCommentDao,wFAuthForCommentService,wFAuthForRoleDao,wFAuthForRoleService,smsTemplateDao,smsTemplateServiceImpl,smsSendDao,smsSendServiceImpl,smsReceiveDao,smsReceiveServiceImpl,engineSMSimpl,receiveJobs,flowManageDao,flowMangeService,afterJobRemarkDao,afterJobRemarkService,flowReminderDao,flowReminderService,flowfindDao,flowfindService,flowHandleEfficiencyDao,flowHandleEfficiencyService,flowHandleEfficiencyGraphService,trackingManagerCommon,flowControlDao,flowControlService,waitreadDao,waitreadService,trackingmanagerDao,trackingmanagerService,flowInstanceStaticDao,flowInstanceStaticsService,flowInstanceStaticsGraphService,flowInstanceStaticsCommon,highgradFlowInstanceStaticDao,highgradeFlowInstanceStaticsService,highgradFlowInstanceStaticCommon,flowInstanceExcelExport,wfUserInBaseDao,wfUserInBaseService,flowTrackingOutService,attachment,wfAfterwardsCommentVo,taskPlan,taskTime,taskInfo,warnInfo,warnContext,mailWarnContext,smsWarnContext,otherJoinSys,wFSystemJoinFlow,wfDataDic,wfDataDicGroup,emailPlugin,overtimeForm,clientUpdate,applyForm,ztdForm,userInRole,employee,siteNode,user,departmentInRole,area,leaderDepartment,roleInNode,settlementInfo,settlementreport,voStlmRpt,poStlmRpt,sporadicReportInfo,voSprtInfo,poSprtInfo,sporadicReport,voSprt,poSprt,hospitalreportinfo,reportcancel,hospitalreport,voHr,voHrinfo,settlementreportinfo,difficultyperson,Reliefrule,personIDSubsidize,reliefType,Reliefstandard,censusRelate,voCensusRelate,poCensusRelate,diseasereliefr,Insuredtype,Hospital,reportConfig,Medicalexpensestype,personType,Disease,attachment_,reinsured,reInsuredLead,haltInsappInfo,haltInsuredApply,generalApplyInfo,reportinfo,applyDetailsInfo,reportCollectInfo,voReportCollectInfo,poReportCollectInfo,apply,generalApply,report,modifyLog,busConfig,waitHandlingVo,wfBase,wfBaseVo,wfInstanceVo,wfActivityVo,wfVersionVo,wfVersion,wfLineVo,wfActToolbar,storyInfo,operateLog,loginLog,FormPosting,workFlowTracking,funded,fundedDetails,fundedForm,settlement,evectionForm,leaveForm,entrustPerson,netWorkHardDisk,netWorkHardDiskShare,nwhdsVo,nwhdsaVo,fileInfo,testForm,smsTemplate,smsSend,smsReceive,xfire.customEditorConfigurer,xfire.serviceRegistry,xfire.transportManager,xfire,xfire.typeMappingRegistry,xfire.aegisBindingProvider,xfire.serviceFactory,xfire.servletController,xfire.messageServiceFactory,xfire.messageBindingProvider,webFlowengineService,workFlowOutService,wFOtherJoinSysWebService,cataLogWebService,wfBaseWebService,dataDicWebService,wfActivityWebService,wfFormWebService,waitreadWebService,wfLineWebService,flowengineWebService,WebFlowengineService,WorkFlowOutService,FlowengineWebService,WFOtherJoinSysWebService,CataLogWebService,WfBaseWebService,DataDicWebService,WfActivityWebService,WfFormWebService,WaitreadWebService,WfLineWebService,SettlementOutService,OutSettleService]; root of factory hierarchy
2013-8-24 15:07:01 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:85)
at org.apache.ibatis.builder.xml.XMLConfigBuilder.parse(XMLConfigBuilder.java:69)
at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:250)
at org.mybatis.spring.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:221)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
... 27 more
Caused by: org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:238)
at org.apache.ibatis.parsing.XPathParser.<init>(XPathParser.java:107)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.<init>(XMLMapperBuilder.java:59)
at org.apache.ibatis.builder.xml.XMLConfigBuilder.mapperElement(XMLConfigBuilder.java:254)
at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:83)
... 32 more
Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.scanPIData(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanPIData(Unknown Source)
at org.apache.xerces.impl.XMLScanner.scanPI(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:236)
... 36 more
ERROR - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:85)
at org.apache.ibatis.builder.xml.XMLConfigBuilder.parse(XMLConfigBuilder.java:69)
at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:250)
at org.mybatis.spring.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:221)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
... 27 more
Caused by: org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:238)
at org.apache.ibatis.parsing.XPathParser.<init>(XPathParser.java:107)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.<init>(XMLMapperBuilder.java:59)
at org.apache.ibatis.builder.xml.XMLConfigBuilder.mapperElement(XMLConfigBuilder.java:254)
at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:83)
... 32 more
Caused by: org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.scanPIData(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanPIData(Unknown Source)
at org.apache.xerces.impl.XMLScanner.scanPI(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.apache.ibatis.parsing.XPathParser.createDocument(XPathParser.java:236)
... 36 more
2013-8-24 15:07:01 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2013-8-24 15:07:01 org.apache.catalina.core.StandardContext start
严重: Context [] startup failed due to previous errors
2013-8-24 15:07:01 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2013-8-24 15:07:01 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1f24a78]) and a value of type [org.apache.ibatis.executor.ErrorContext] (value [
### The error may exist in config/gzmasdm/sporadic/report/mybatis-report.xml
### The error occurred while processing mapper_resultMap[modifyLogMap]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
2013-8-24 15:07:02 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor manager.xml
2013-8-24 15:07:02 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ROOT.myeclipse.bak
2013-8-24 15:07:02 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8082
2013-8-24 15:07:02 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8090
2013-8-24 15:07:02 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/20 config=null
2013-8-24 15:07:02 org.apache.catalina.startup.Catalina start
信息: Server startup in 10497 ms
如:
解决方法:去掉换行就Ok了》。
MyBatis 配置文件头部换行异常的更多相关文章
- MyBatis配置文件之概述
MyBatis配置文件所有元素 <?xml version="1.0" encoding="UTF-8"?> <configuration&g ...
- MyBatis參数格式化异常解决方式:MyBatisSystemException:
MyBatis參数格式化异常解决方式:MyBatisSystemException: 问题:今天使用MyBatis开发查询功能时,前台传入查询条件明明是String类型,到后台就报错,提示格式化数值错 ...
- MyBatis配置文件(一)――properties属性
MyBatis配置文件中有很多配置项,这些配置项分别代表什么,有什么作用,需要理一下了.先通过下面这个例子来看都有哪些配置项 <?xml version="1.0" enco ...
- Mybatis配置文件无故报错、无自动完成提示的解决方法,及自动生成主要配置项
1.引子 Mybatis配置文件显示红叉有错误,而实际检查又没有错误,这是因为开发环境不能识别这种类型的xml文件.要解决这个问题,就要让IDE开发环境能够“认识”这个文件类型,我们要让IDE环境将这 ...
- MyBatis学习(四)、MyBatis配置文件
四.MyBatis主配置文件 在定义sqlSessionFactory时需要指定MyBatis主配置文件: <bean id="sqlSessionFactory" clas ...
- MyBatis配置文件解析
MyBatis配置文件解析(概要) 1.configuration:根元素 1.1 properties:定义配置外在化 1.2 settings:一些全局性的配置 1.3 typeAliases:为 ...
- MyBatis学习 之 四、MyBatis配置文件
目录(?)[-] 四MyBatis主配置文件 properties属性 settings设置 typeAliases类型别名 typeHandlers类型句柄 ObjectFactory对象工厂 pl ...
- 【转】MyBatis学习总结(三)——优化MyBatis配置文件中的配置
[转]MyBatis学习总结(三)——优化MyBatis配置文件中的配置 一.连接数据库的配置单独放在一个properties文件中 之前,我们是直接将数据库的连接配置信息写在了MyBatis的con ...
- MyBatis的学习总结三:优化MyBatis配置文件中的配置
一.优化Mybatis配置文件conf.xml中数据库的信息 1.添加properties的配置文件,存放数据库的信息:mysql.properties具体代码: driver=com.mysql.j ...
随机推荐
- STM32 ADC 测电压
1. STM32F103 ADC 本例使用STM32F103芯片的PA1引脚测试模拟输入的电压值. 查看文档<STM32F103X.pdf>第31页,引脚定义图: 得知PA1使用ADC1的 ...
- find / -type f -name "*fetion*" |xargs rm -rf {}\
find / -type f -name "*fetion*" |xargs rm -rf {}\
- 采购信息记录修改[BDC]
*&---------------------------------------------------------------------* *& *&---------- ...
- Web自动化测试学习方向(Selenium)
目前越来越多的人想学自动化测试,认为自动化测试好牛逼.经常在测试交流群里看见有HR发招聘广告说:招初级(功能测试),招中级(性能测试),招高级(自动化测试)...... 我不去讨论他们这个初中高级的说 ...
- My97DatePickerBeta 日历插件
<!doctype html><html lang="en"><head> <meta charset="UTF-8" ...
- VS2003"无法启动调试 没有正确安装调试器"的解决办法
VS2003"无法启动调试 没有正确安装调试器"的解决方法 在用VS2003做项目的时候,经常调试程序,但是有时候回出现如下问题“无法启动调试,没有正确安装调试器,请运行安装程序或 ...
- WCF传输大数据的设置
在从客户端向WCF服务端传送较大数据(>65535B)的时候,发现程序直接从Reference的BeginInvoke跳到EndInvoke,没有进入服务端的Service实际逻辑中,怀疑是由于 ...
- IT技术学习指导之Linux系统入门的4个阶段(纯干货带图)
IT技术学习指导之Linux系统入门的4个阶段(纯干货带图) 全世界60%的人都在使用Linux.几乎没有人没有受到Linux系统的"恩惠",我们享受的大量服务(包括网页服务.聊天 ...
- Adapter 代码中启动报错
安装好Adapter之后,在designer中可以启动Adapter,但在代码中启动却总是报错,“could not create RVMQSession"或者是“native implem ...
- 异步函数封装请确保异步性(Javascript需要养成的良好习惯)
背景假设: 你有许多的配置信息存放在服务器上,因为配置太多,不希望每次都把所有的配置信息都写到前端,希望能需要用的时候再获取就好了. 因为Javascript单线程运行,你不希望堵塞ui渲染于是你专门 ...