您的位置:首页 > 大数据 > 人工智能

Failed to read schema document

2015-05-28 17:58 363 查看
转自:http://eric-yan.iteye.com/blog/1908470

问题描述:

web项目web.xml编译错误:

schema_reference.4:Failedtoreadschemadocument'http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd',because1)couldnotfindthedocument;2)thedocumentcouldnotberead;3)therootelementofthedocumentisnot<xsd:schema>.

解决方案:

多方查找,终不得解决,最后,format了一下格式,问题得以解决。

compileerrorformat:

<web-appxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"id="WebApp_ID"version="2.5">


noerrorformat:

<web-appversion="2.5"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">





                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐