【问题标题】:error while downloading web-app_4_0.xsd in dynamic web app eclipse在动态 Web 应用程序 Eclipse 中下载 web-app_4_0.xsd 时出错
【发布时间】:2021-06-11 10:13:00
【问题描述】:

当我尝试在 Eclipse 中制作 maven 动态 Web 项目时发生此错误

将“http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd”下载到 C:\Users\akalanka.lemminx\cache\http\xmlns.jcp.org\xml 时出错\ns\javaee\web-app_4_0.xsd.

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://xmlns.jcp.org/xml/ns/javaee"
    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
    id="WebApp_ID" version="4.0">

【问题讨论】:

标签: java eclipse maven


【解决方案1】:

我的 Eclipse 中的每个 XML 文件都有同样的问题。就我而言,这是因为我使用了企业代理和“旧”版本的 Eclipse(2019)。这在我的所有项目文件夹中都出现了很多“红十字错误”,但这并不能避免它起作用。我认为您可以通过在较新版本中配置“网络连接”来修复它。

【讨论】:

    猜你喜欢
    • 2015-01-15
    • 1970-01-01
    • 1970-01-01
    • 2011-11-17
    • 1970-01-01
    • 2010-12-07
    • 2012-11-05
    • 2011-06-15
    • 2011-04-12
    相关资源
    最近更新 更多