org.xml.sax.SAXParseException: The markup in the document following the root element must be well-fo
2012-04-24 14:56
706 查看
部署项目报错:org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
此句的一看就是xml文件的错,文档中标记的地方格式不合法,通不过dtd的验证,所以要符合规范,在xml文件的开头加上
此句的一看就是xml文件的错,文档中标记的地方格式不合法,通不过dtd的验证,所以要符合规范,在xml文件的开头加上
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> </web-app>这样就符合规范了。
相关文章推荐
- Caused by: org.xml.sax.SAXParseException; systemId: file:/home/hadoop/hive-0.12.0/conf/hive-site.xml; lineNumber: 5; columnNumber: 2; The markup in the document following the root element must be well
- org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-fo
- The markup in the document following the root element must be well-formed. Quartz.xml .......
- The markup in the document following the root element must be well-formed
- 解决The markup in the document following the root element must be well-formed.
- The markup in the document following the root element must be well-formed.
- org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null".
- WebService org.xml.sax.SAXParseException: Document root element "beans",must match DOCTYPE root "nul
- spring配置文件报错:the markup in the document preceding the root element must be well-formed
- JSF简单实例及无法正常访问的解决方法(404和The markup in the document preceding the root element must be well-formed. )
- 编写xml文件时,The markup in the document preceding the root element must be well-formed.等bug
- The markup in the document preceding the root element must be well-formed
- the markup in the document preceding the root element must be well-formed
- org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null".
- maven exclusions【jar包依赖注意】和 org.xml.sax.SAXParseException: Document root element "beans", must match
- org.xml.sax.SAXParseException: Document root element "struts-config", must match
- Caused by: org.xml.sax.SAXParseException: The content of elements must consist of well-formed charac
- xml解析org.xml.sax.SAXParseException: The element type "comment" must
- org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException: The content of elements must consi
- Error parsing XML. org.xml.sax.SAXParseException: Element type "sqlMapConfig" must be declared出错解决方法