简体   繁体   English

Error in Web.xml of Eclipse Java Dynamic Web Project [when a new project was created]

[英]Error in Web.xml of Eclipse Java Dynamic Web Project [when a new project was created]

ERROR MESSAGE:错误信息:

schema_reference.4: Failed to read schema document 'platform:/plugin/org.eclipse.xsd/cache/www.w3.org/2001/
 xml.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the 
 document is not <xsd:schema>.

When I am trying to create a new Dynamic Web Project in Eclipse v.2021-09 as soon as the project is created it is showing an error in the web.xml file which I have mentioned above. When I am trying to create a new Dynamic Web Project in Eclipse v.2021-09 as soon as the project is created it is showing an error in the web.xml file which I have mentioned above. It is a completely blank project so I have not idea Why this error is shown?这是一个完全空白的项目,所以我不知道为什么会显示此错误? Please help I am stuck at this from past 3 days.请帮助我从过去 3 天开始就被困在这个问题上。

This is the image of my project in Eclipse and the error.这是我在 Eclipse 中的项目的图像和错误。 这是我在 Eclipse 中的项目的图像和错误。

Well I struggled for a while then decided to do a fresh install of Eclipse by deleting all the previous files from the previous versions of Eclipse and that includes the eclipse-workspace folder (if you are worried about your projects just move them to a new folder temporarily and then you can move them back) which had some config files which seemed to be the problem.好吧,我挣扎了一段时间,然后决定重新安装 Eclipse,方法是从以前版本的 Eclipse中删除所有以前的文件,其中包括eclipse-workspace 文件夹(如果你担心你的项目只需将它们移动到一个新文件夹暂时然后您可以将它们移回)其中有一些配置文件似乎是问题所在。 After doing a fresh install the error went away and now everything is fine.进行全新安装后,错误消失了,现在一切都很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在glassfish服务器中运行项目时出现web.xml SAXParseException错误 - web.xml SAXParseException error when running a project in glassfish server 如何在没有web.xml的情况下使用Eclipse和Tomcat为动态Web项目创建JNDI - How to create a JNDI using Eclipse and Tomcat for a Dynamic Web Project without web.xml 在Eclipse中运行动态Web项目时出错 - Error when running dynamic web project in eclipse 未将模块项目声明为war软件包,但出现错误“ web.xml丢失,并且 <failOnMissingWebXml> 在日食设置为true - Module project is not declared as war package, but get error 'web.xml is missing and <failOnMissingWebXml> is set to true' in eclipse Eclipse不会识别使用Maven创建的Java Web项目 - A Java web project created with Maven is not recognized as such by Eclipse Eclipse- Dynamic Web Module 3.0 requires Java 1.6 or newer while creating new project 错误 - Eclipse- Dynamic Web Module 3.0 requires Java 1.6 or newer error while creating new project 在Spring MVC项目的web.xml中获取错误 - Getting error in web.xml for spring mvc project 通过Java中的web.xml加载项目时如何调用属性文件? - How to call property file when project is loaded through web.xml in Java? 使用Maven和Eclipse的Java Dynamic Web项目 - Java Dynamic Web project with Maven and Eclipse Java Eclipse中动态Web项目中没有文件路径 - No file path in dynamic web project in java eclipse
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM