在动态 Web 应用程序 Eclipse 中下载 web-app_4_0.xsd 时出错
error while downloading web-app_4_0.xsd in dynamic web app eclipse
当我尝试在eclipse 中创建maven 动态web 项目时出现此错误
Error while downloading 'http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd' to 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">
我的 Eclipse 中的每个 XML 文件都有同样的问题。就我而言,这是因为我使用了企业代理和“旧”版本的 Eclipse (2019)。这在我所有的项目文件夹中都出现了很多“红十字错误”,但这并不能避免它的工作。我认为您可以通过在较新版本中配置“网络连接”来修复它。
当我尝试在eclipse 中创建maven 动态web 项目时出现此错误
Error while downloading 'http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd' to 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">
我的 Eclipse 中的每个 XML 文件都有同样的问题。就我而言,这是因为我使用了企业代理和“旧”版本的 Eclipse (2019)。这在我所有的项目文件夹中都出现了很多“红十字错误”,但这并不能避免它的工作。我认为您可以通过在较新版本中配置“网络连接”来修复它。