实现批处理-配置文件问题(焦急)

问题描述

配置文件问题(焦急)

现在报错信息:
2016-03-30 12:19:51.968 INFO 4796 --- [ main] o.s.b.f.xml.XmlBeanDefinitionReader : Loading XML bean definitions from class path resource [front.xml]
2016-03-30 12:19:52.031 WARN 4796 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 5 in XML document from class path resource [front.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 106; 涓庡厓绱犵被鍨? "beans" 鐩稿叧鑱旂殑灞炴?? "xsi:schemaLocation" 鐨勫墠缂? "xsi" 鏈?粦瀹氥??
2016-03-30 12:19:52.031 INFO 4796 --- [ main] .b.l.ClasspathLoggingApplicationListener : Application failed to start with classpath: [file:/E:/workspace/yycrm/yycrm-collection-web/target/classes/, file:/G:/maven_jar/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar, file:/G:/maven_jar/org/codehaus/jettison/jettison/1.2/jettison-1.2.jar, file:/G:/maven_jar/org/springframework/boot/spring-boot-starter-web/1.3.0.RELEASE/spring-boot-starter-web-1.3.0.RELEASE.jar, file:/G:/maven_jar/io/netty/netty/3.7.0.Final/netty-3.7.0.Final.jar, file:/G:/maven_jar/com/fasterxml/jackson/core/jackson-core/2.6.3/jackson-core-2.6.3.jar, file:/G:/maven_jar/org/mybatis/mybatis/3.3.0/mybatis-3.3.0.jar, file:/G:/maven_jar/log4j/log4j/1.2.17/log4j-1.2.17.jar, file:/G:/maven_jar/org/springframework/spring-tx/4.2.3.RELEASE/spring-tx-4.2.3.RELEASE.jar, file:/G:/maven_jar/aopalliance/aopalliance/1.0/aopalliance-1.0.jar, file:/G:/maven_jar/org/springframework/spring-webmvc/4.2.3.RELEASE/spring-webmvc-4.2.3.RELEASE.jar, file:/G:/maven_jar/com/github/jsqlparser/jsqlparser/0.9.1/jsqlparser-0.9.1.jar, file:/G:/maven_jar/org/slf4j/log4j-over-slf4j/1.7.13/log4j-over-slf4j-1.7.13.jar, file:/G:/maven_jar/org/apache/poi/poi-ooxml-schemas/3.12/poi-ooxml-schemas-3.12.jar, file:/G:/maven_jar/org/eclipse/jdt/core/compiler/ecj/4.4.2/ecj-4.4.2.jar, file:/G:/maven_jar/com/fasterxml/aalto-xml/0.9.11/aalto-xml-0.9.11.jar, file:/G:/maven_jar/org/springframework/spring-context-support/4.2.3.RELEASE/spring-context-support-4.2.3.RELEASE.jar, file:/G:/maven_jar/javax/servlet/jstl/1.2/jstl-1.2.jar, file:/G:/maven_jar/org/springframework/boot/spring-boot-starter-logging/1.3.0.RELEASE/spring-boot-starter-logging-1.3.0.RELEASE.jar, file:/G:/maven_jar/ch/qos/logback/logback-classic/1.1.3/logback-classic-1.1.3.jar, file:/G:/maven_jar/com/fasterxml/classmate/1.1.0/classmate-1.1.0.jar, file:/G:/maven_jar/xmlpull/xmlpull/1.1.3.1/xmlpull-1.1.3.1.jar, file:/G:/maven_jar/org/springframework/boot/spring-boot-starter-redis/1.3.0.RELEASE/spring-boot-starter-redis-1.3.0.RELEASE.jar, file:/G:/maven_jar/org/springframework/batch/spring-batch-infrastructure/3.0.5.RELEASE/spring-batch-infrastructure-3.0.5.RELEASE.jar, file:/G:/maven_jar/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar, file:/G:/maven_jar/com/thoughtworks/xstream/xstream/1.4.7/xstream-1.4.7.jar, file:/G:/maven_jar/javax/batch/javax.batch-api/1.0/javax.batch-api-1.0.jar, file:/G:/maven_jar/org/slf4j/slf4j-api/1.7.13/slf4j-api-1.7.13.jar, file:/G:/maven_jar/org/springframework/spring-core/4.2.3.RELEASE/spring-core-4.2.3.RELEASE.jar, file:/G:/maven_jar/org/springframework/boot/spring-boot-starter-tomcat/1.3.0.RELEASE/spring-boot-starter-tomcat-1.3.0.RELEASE.jar, file:/G:/maven_jar/org/hibernate/hibernate-validator/5.2.2.Final/hibernate-validator-5.2.2.Final.jar, file:/G:/maven_jar/com/ibm/jbatch/com.ibm.jbatch-tck-spi/1.0/com.ibm.jbatch-tck-spi-1.0.jar, file:/G:/maven_jar/org/springframework/boot/spring-boot-starter-jdbc/1.3.0.RELEASE/spring-boot-starter-jdbc-1.3.0.RELEASE.jar, file:/G:/maven_jar/org/springframework/boot/spring-boot-starter-aop/1.3.0.RELEASE/spring-boot-starter-aop-1.3.0.RELEASE.jar, file:/G:/maven_jar/org/slf4j/jul-to-slf4j/1.7.13/jul-to-slf4j-1.7.13.jar, file:/G:/maven_jar/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar, file:/G:/maven_jar/org/springframework/boot/spring-boot-starter/1.3.0.RELEASE/spring-boot-starter-1.3.0.RELEASE.jar, file:/G:/maven_jar/org/apache/httpcomponents/httpclient/4.5.1/httpclient-4.5.1.jar, file:/G:/maven_jar/org/springframework/spring-beans/4.2.3.RELEASE/spring-beans-4.2.3.RELEASE.jar, file:/G:/maven_jar/org/apache/commons/commons-pool2/2.4.2/commons-pool2-2.4.2.jar, file:/G:/maven_jar/org/springframework/spring-web/4.2.3.RELEASE/spring-web-4.2.3.RELEASE.jar, file:/G:/maven_jar/org/apache/poi/poi-ooxml/3.12/poi-ooxml-3.12.jar, file:/G:/maven_jar/org/mybatis/mybatis-spring/1.2.3/mybatis-spring-1.2.3.jar, file:/G:/maven_jar/org/yaml/snakeyaml/1.16/snakeyaml-1.16.jar, file:/G:/maven_jar/org/springframework/spring-expression/4.2.3.RELEASE/spring-expression-4.2.3.RELEASE.jar, file:/G:/maven_jar/org/codehaus/woodstox/stax2-api/4.0.0/stax2-api-4.0.0.jar, file:/G:/maven_jar/com/101tec/zkclient/0.7/zkclient-0.7.jar, file:/G:/maven_jar/jline/jline/0.9.94/jline-0.9.94.jar, file:/G:/maven_jar/org/aspectj/aspectjweaver/1.8.7/aspectjweaver-1.8.7.jar, file:/G:/maven_jar/com/fasterxml/jackson/dataformat/jackson-dataformat-xml/2.6.3/jackson-dataformat-xml-2.6.3.jar, file:/G:/maven_jar/mysql/mysql-connector-java/5.1.37/mysql-connector-java-5.1.37.jar, file:/G:/maven_jar/org/springframework/batch/spring-batch-core/3.0.3.RELEASE/spring-batch-core-3.0.3.RELEASE.jar, file:/G:/maven_jar/ch/qos/logback/logback-core/1.1.3/logback-core-1.1.3.jar, file:/G:/maven_jar/org/springframework/boot/spring-boot-autoconfigure/1.3.0.RELEASE/spring-boot-autoconfigure-1.3.0.RELEASE.jar, file:/G:/maven_jar/redis/clients/jedis/2.7.3/jedis-2.7.3.jar, file:/G:/maven_jar/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar, file:/G:/maven_jar/org/springframework/spring-jdbc/4.2.3.RELEASE/spring-jdbc-4.2.3.RELEASE.jar, file:/G:/maven_jar/com/hp/crm/yycrm-common-core/1.1.0/yycrm-common-core-1.1.0.jar, file:/G:/maven_jar/org/apache/zookeeper/zookeeper/3.4.6/zookeeper-3.4.6.jar, file:/G:/maven_jar/org/springframework/session/spring-session/1.0.2.RELEASE/spring-session-1.0.2.RELEASE.jar, file:/G:/maven_jar/org/springframework/spring-aop/4.2.3.RELEASE/spring-aop-4.2.3.RELEASE.jar, file:/G:/maven_jar/commons-codec/commons-codec/1.10/commons-codec-1.10.jar, file:/G:/maven_jar/org/javassist/javassist/3.18.1-GA/javassist-3.18.1-GA.jar, file:/G:/maven_jar/org/apache/tomcat/embed/tomcat-embed-el/8.0.28/tomcat-embed-el-8.0.28.jar, file:/G:/maven_jar/org/apache/xmlbeans/xmlbeans/2.6.0/xmlbeans-2.6.0.jar, file:/G:/maven_jar/org/springframework/boot/spring-boot/1.3.0.RELEASE/spring-boot-1.3.0.RELEASE.jar, file:/G:/maven_jar/org/apache/tomcat/embed/tomcat-embed-logging-juli/8.0.28/tomcat-embed-logging-juli-8.0.28.jar, file:/G:/maven_jar/com/zaxxer/HikariCP/2.4.2/HikariCP-2.4.2.jar, file:/G:/maven_jar/org/apache/tomcat/embed/tomcat-embed-core/8.0.28/tomcat-embed-core-8.0.28.jar, file:/G:/maven_jar/org/springframework/data/spring-data-redis/1.6.1.RELEASE/spring-data-redis-1.6.1.RELEASE.jar, file:/G:/maven_jar/com/warrenstrange/googleauth/0.5.0/googleauth-0.5.0.jar, file:/G:/maven_jar/com/github/pagehelper/pagehelper/4.0.3/pagehelper-4.0.3.jar, file:/G:/maven_jar/org/slf4j/jcl-over-slf4j/1.7.13/jcl-over-slf4j-1.7.13.jar, file:/G:/maven_jar/junit/junit/4.12/junit-4.12.jar, file:/G:/maven_jar/org/springframework/spring-context/4.2.3.RELEASE/spring-context-4.2.3.RELEASE.jar, file:/G:/maven_jar/org/apache/tomcat/embed/tomcat-embed-websocket/8.0.28/tomcat-embed-websocket-8.0.28.jar, file:/G:/maven_jar/com/fasterxml/jackson/core/jackson-annotations/2.6.3/jackson-annotations-2.6.3.jar, file:/G:/maven_jar/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.6.3/jackson-module-jaxb-annotations-2.6.3.jar, file:/G:/maven_jar/org/springframework/retry/spring-retry/1.1.2.RELEASE/spring-retry-1.1.2.RELEASE.jar, file:/G:/maven_jar/com/alibaba/dubbo/2.4.10/dubbo-2.4.10.jar, file:/G:/maven_jar/org/springframework/boot/spring-boot-starter-validation/1.3.0.RELEASE/spring-boot-starter-validation-1.3.0.RELEASE.jar, file:/G:/maven_jar/com/fasterxml/jackson/core/jackson-databind/2.6.3/jackson-databind-2.6.3.jar, file:/G:/maven_jar/org/apache/tomcat/embed/tomcat-embed-jasper/8.0.28/tomcat-embed-jasper-8.0.28.jar, file:/G:/maven_jar/org/jboss/logging/jboss-logging/3.3.0.Final/jboss-logging-3.3.0.Final.jar, file:/G:/maven_jar/org/apache/httpcomponents/httpcore/4.4.4/httpcore-4.4.4.jar, file:/G:/maven_jar/stax/stax-api/1.0.1/stax-api-1.0.1.jar]
2016-03-30 12:19:52.046 ERROR 4796 --- [ main] o.s.boot.SpringApplication : Application startup failed

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 5 in XML document from class path resource [front.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 106; 涓庡厓绱犵被鍨? "beans" 鐩稿叧鑱旂殑灞炴?? "xsi:schemaLocation" 鐨勫墠缂? "xsi" 鏈?粦瀹氥??

解决方案

配置文件如下:

解决方案二:

解决方案三:

说的很明显了,application的第5行出现了错误。

解决方案四:

什么情况,为啥我看到的是乱码

解决方案五:

目前本人考虑到部门配置文件较多,所以想写个配置文件检测程序.目前大致的思路如下三部分;1,?读取配置文件的内容(*.ini).?查找配置文件,代码如下void CDataBaseDlg::OnSelectConfigParth() {?// TODO: Add your control notification handler code here?// TODO: Add your......
答案就在这里:C++中关于配置文件的问题

解决方案六:

明显找不到问题啊,哥

解决方案七:

配置内容如下:

解决方案八:

解决方案九:

报错信息是乱码啊哥哥

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 5 in XML document from class path resource [front.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 106; 涓庡厓绱犵被鍨? "beans" 鐩稿叧鑱旂殑灞炴?? "xsi:schemaLocation" 鐨勫墠缂? "xsi" 鏈?粦瀹氥??

解决方案十:

Line 5 in XML document from class path resource [front.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 106; 涓庡厓绱犵被鍨? "beans" 鐩稿叧鑱旂殑灞炴?? "xsi:schemaLocation" 鐨勫墠缂? "xsi" 鏈?粦瀹氥??

乱码

时间: 2024-10-29 16:32:18

实现批处理-配置文件问题(焦急)的相关文章

服务器文件同步管理

原文 http://www.cnblogs.com/yanxiaodi/archive/2011/03/21/2296462.html 前几天有台服务器电源坏了,还好数据没有丢.因此必须做好服务器文件内容的备份.服务器主要是用来提供网站服务,带着一个数据库,数据库可以用分发和订阅来解决,网页文件开发电脑也有备份,因此重点在上传的文件部分.   手动上传复制备份的方法显然不可行,需要做到自动将上传的文件同步到另一台服务器上.   找到了一个免费开源的文件同步工具:  FreeFileSync,官方

文件同步工具

转载:http://www.cnblogs.com/yanxiaodi/archive/2011/03/21/2296462.html   服务器文件同步管理 前几天有台服务器电源坏了,还好数据没有丢.因此必须做好服务器文件内容的备份.服务器主要是用来提供网站服务,带着一个数据库,数据库可以用分发和订阅来解决,网页文件开发电脑也有备份,因此重点在上传的文件部分. 手动上传复制备份的方法显然不可行,需要做到自动将上传的文件同步到另一台服务器上. 找到了一个免费开源的文件同步工具: FreeFile

详细讲解PHP 中的批处理

如果 Web 应用程序中的一个特性需要超过 1 秒或 2 秒才能完成,那么应该怎么办?需要某种离线处理解决方案.学习几种对 PHP 应用程序中长时间运行的作业进行离线服务的方法.大型的连锁店有一个大问题.每天,在每家商店会发生数千次交易.公司执行官希望对这些数据进行挖掘.哪些产品卖得好?哪些不好?有机产品在哪里卖得好?冰淇淋的销售情况怎么样? 为了捕捉这些数据,组织必须将所有事务性数据装载进一个数据模型,以便更适合生成公司所需的报告类型.但是,这很花费时间,而且随着连锁规模的增长,处理一天的数据

AX ERP:一个真正的自动批处理

AX real batch job- AX ERP 真正的批处理 在AX3标准功能中,自动化任务是利用Batch来进行自动化处理任务,标准功能的局限是无法真正做到无人值守.比如服务器重启,必须手动去开一个Client,然后手动去执行Batch Job. 如何可以真正做到自动化,就需要利用到AX的本身机制和windows的服务机制,也就是说需要2方面的设置. AX的配置启动 主要利用AX的客户端配置工具,使用startup来自动处理Batch任务 a) 利用 AX configuration ut

WebSphere Application Server中现代化的基于Java的批处理(一)

介绍 Modern Batch 和计算密集型的编程模型 简介 批处理程序是任何企业 IT 领域的一个传统且不可或缺的组件.目前的批处理发展趋势是将内部的 Java 技能应用于在线程序和批处理程序上,以确保: 最大限度地提高实现的重用. 更轻松的开发和维护,因为使用了相同的工具集. 企业标准和服务质量实施上的一致性. IBM 开发的解决方案提供了一种具有凝聚力的批处理程序管理模式.IBM WebSphere Application Server 的 Modern Batch 功能(可用于 WebS

创建一个简单的 Compute Grid 并行批处理应用程序

简介 批处理是业务系统的一个重要方面,它用在帐单系统或报告生成,以及一天 结束时的结算系统等领域中.随着业务系统在全球被夜以继日的使用,批处理窗口变得越来 越窄,这使高效的批处理系统成为一种切实的需求.WebSphere Extended Deployment Compute Grid(下文简称 Compute Grid)是一个完整的.开箱即用的批处理平台,提供了一 个高效.可靠.可扩展.高度可用和安全的批执行环境. 本文基于 WebSphere Compute Grid V8.我们使用 Rat

DOS 批处理

From: http://www.jb51.net/article/97204.htm From: http://www.92to.com/bangong/2016/04-08/2998914.html 批处理经典入门教程         批处理的本质,是一堆DOS命令按一定顺序排列而形成的集合.          批处理,也称为批处理脚本,英文译为BATCH,批处理文件后缀BAT就取的前三个字母.它的构成没有固定格式,只要遵守以下这条就ok了:每一行可视为一个命令,每个命令里可以含多条子命令,

Enterprise Library深入解析与灵活应用(5):创建一个简易版的批处理执行器,认识Enterprise Library典型的配置方式和对象创建方式

最近负责一个框架性项目的升级,主要是从.NET Framework 3.0建议到.NET .NET Framework 3.5,开发工具也从VS2005迁移到VS2008.但是最让我头疼的是,原来Team Foundation Server 2005不能正常工作,公司暂时还没有购买VSTS 2008的打算.基于TFS 2005的Team Build功能不能使用了,导致原本通过Team Build实现的功能需要手工来做,涉及到的包括:Source Code的编译.文档的生成.VS项目类型的模板的创

SqlMapConfig.xml全局配置文件解析

一:SqlMapConfig.xml配置文件的内容和配置顺序如下 properties(属性) settings(全局配置参数) typeAiases(类型别名) typeHandlers(类型处理器) objectFactory(对象工厂) plugins(插件) environments(环境集合属性对象)mappers(映射器) environment(环境子属性对象) transactionManager(事物管理) datesource(数据源 mappers(映射器) 二:prope