【BUG记录】Content is not allowed in prolog错误
来源:互联网 发布:最好的中文编程语言 编辑:程序博客网 时间:2024/05/18 20:11
今天出现了Content is not allowed in prolog.错误,本以为是tomcat的lib错误。重新下了个新的tomcat,依旧如此。后来才发现是XML文件写的格式错误。
Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML document from URL [file:/E:/wjxServer/apache-tomcat-6.0.37/lib/] is invalid; nested exception is org.xml.sax.SAXParseException: Content is not allowed in prolog.
在web.xml中 classpath*: 后面多了个空格。
<context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath*: mvc/emvc.xml</param-value> </context-param>改为:
<context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath*:mvc/emvc.xml</param-value> </context-param>
问题解决。
0 8
- 【BUG记录】Content is not allowed in prolog错误
- Content is not allowed in prolog.错误
- Content is not allowed in prolog错误解决
- Content is not allowed in prolog
- Content is not allowed in prolog.解决方法
- DOM4j:Content is not allowed in prolog
- Content is not allowed in prolog.
- Content is not allowed in prolog.解决
- Content is not allowed in prolog
- SAXParseException: Content is not allowed in prolog
- Error:Content is not allowed in prolog.
- Content is not allowed in prolog. Nested exception: Content is not allowed in prolog
- UltraEdit 导致 dom4j 出现 content is not allowed in prolog错误
- 用dom或者sax解析xml运行出现错误Content is not allowed in prolog.
- sax解析xml运行出现错误org.xml.sax.SAXParseException: Content is not allowed in prolog.
- sax解析xml运行出现错误org.xml.sax.SAXParseException: Content is not allowed in prolog
- sax错误:org.xml.sax.SAXParseException: Content is not allowed in prolog解决
- sax错误:org.xml.sax.SAXParseException: Content is not allowed in prolog 终极解决
- IOS 短信 电话 打开网址
- 浅谈移动app开发软件
- 第三次实现Logistic Regression(c++)_测试
- 【VC++游戏开发】用C++来架构一个适合windows游戏编程的框架——取名为BCF
- 有盈盈泪光的感动
- 【BUG记录】Content is not allowed in prolog错误
- 关于当EditText软键盘打开时,界面整体往上移动
- C++内存分配秘籍—new,malloc,GlobalAlloc详解
- 黑马程序员-----IO之数据流
- PostgreSQL 升级详细步骤
- BMP文件格式初步学习
- 四种策略防止用户将表单重复提交
- gcc源代码分析,expand_expr_stmt()函数
- vmware下安装centos x86_64出现“kernel requires an x86_64 cpu, but only detected ”