Referenced file contains errors 错误解决方法
如果你用了jdk5了之后发现 半个小时也建不好一个web 应用 或是eclipse中的web.xml有错了。。。
Referenced file contains errors (http://www.ibm.com/webservices/xsd/j2ee_web_services_client_1_1.xsd). For more information, right click on the message and select "Show Details..."
那么是由于引用的
<web-app version="2.4"
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_4.xsd">
<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://JAVA.sun.com/dtd/web-app_2_3.dtd'>
<web-app></web-app>
或
<web-app version="2.4"
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_4.xsd">
里面我把阡陌一个http去掉就好了,这算什么问题, eclipse的bug? :o
等于没说啊,我这知道是这里出了问题,出问题的原因是什么呢?地址不能访问么? 我在IE里面输入这个地址可以打开,重新validate还是出错啊。 :(
由于海底光缆断了所以网址都不能用了。。。 而国内的镜像都是以大写JAVA开头的(猜的)