ITeye博客

Referenced file contains errors (http://JAVA.sun.com/xml/ns/j2ee/web-app_2_5.xsd

hackpro · 2014-06-20 09:19 · xml Dtd异常 解决办法 · 互联网 · Markdown

Referenced file contains errors (http://JAVA.sun.com/xml/ns/j2ee/web-app_2_5.xsd). For more information, right click on the message in the Problems View and select "Show Details..."

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.5"
	xmlns="http://JAVA.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://JAVA.sun.com/xml/ns/j2ee http://JAVA.sun.com/xml/ns/j2ee/web-app_2_5.xsd" metadata-complete="true">
</web-app>

jdk从1.5换到1.6就出现了 将url中的j2ee换成javaee就OK了,或者从别的正常的web.xml拷贝一分头过来 j2ee=>javaee

<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" metadata-complete="true">	
	

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。