gpt4 book ai didi

Eclipse 功能 NotFoundException

转载 作者:行者123 更新时间:2023-12-02 07:04:22 27 4
gpt4 key购买 nike

我已经用maven构建了我的项目所有构建成功并且 eclipse 属性生成也成功

但是当我在 Eclipse 4 中打开项目时,出现此错误

An internal error occurred during: "Loading descriptor for SALYExplorer.".
org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature 'taglib' not found. (platform:/resource/SALYExplorer/src/main/webapp/WEB-INF/web.xml, 313, 10)

在那个位置我有一些属性

虽然项目运行顺利并且一切都很好,但当在导航 Pane 中浏览项目时,Eclipse 总是抛出此错误框(相当烦人)。

该位置的代码

<taglib>
<taglib-uri>xx.tld</taglib-uri>
<taglib-location>/WEB-INF/tld/xx.tld</taglib-location>
</taglib>

和 xx 定义在它的文件中

<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_2.dtd">
<taglib>

<tlib-version>1.0</tlib-version>
<jsp-version>1.2</jsp-version>
.........
</taglib>

最佳答案

问题根本不在于 taglib,而只是 Eclipse 的错误描述。

这是项目facet与web.xml dtd..它们的版本必须匹配!

如果 web.xml 说:

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

但是该项目有一个

 "Dynamic Web Module 2.5"

那么就会发生这个错误..将facet更改为2.3或将web.xml更改为2.5...换句话说:它们必须匹配..

关于Eclipse 功能 NotFoundException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11824632/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com