Referenced file contains errors (http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_4.xsd).

项目导入后,一个tld文件提示以下错误:

Referenced file contains errors (http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_4.xsd). For more information, right click on the message in the Problems View and select “Show Details…” auth.tld /ROOT/src/main/webapp/WEB-INF line 1 XML Problem

如图:

解决办法:

将其中的“j2ee”都改为“javaee”就可以了。

<?xml version="1.0" encoding="UTF-8" ?>

<taglib 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/javaee
        http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_4.xsd"
        version="2.4">

有文章指出必须固定为五行,我倒是没有发现此问题。

时间: 2024-10-12 16:13:20

Referenced file contains errors (http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_4.xsd).的相关文章

启动weblogic报错:string value &#39;2.4&#39; is not a valid enumeration value for web-app-versionType in namespace http://java.sun.com/xml/ns/javaee

启动报错: 原因:有人改动了web.xml的头 解决方法: 在web.xml中修改抬头为: <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&

Referenced file contains errors (http://tiles.apache.org/dtds/tiles-config_3_0.dtd)

java开发时遇到的问题,之前还是好好的,没有错误提示.可是今天一打开项目就出现这种问题.真不知道是怎么回事,在这里求助.错误如下: Referenced file contains errors (http://tiles.apache.org/dtds/tiles-config_3_0.dtd). For more information, right click on the message in the Problems View and select "Show Details...&

Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd)

问题: java项目在Eclipse中xml有小红叉 Problems:Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd). 解决: Eclipse 中选中项目点击 Progect -->clean 清理一下,删除缓存 原文地址:https://www.cnblogs.com/mophy/p/8279742.html

Referenced file contains errors (http://www.springframework.org/schema...错误

Referenced file contains errors (http://www.springframework.org/schema...错误 Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd). 关于这个错误,导致的原因可能是 一种可能是 之前用的Spring版本,和现在用的不同 对于Eclipse编译器来说,会有个缓存,这样验证的时候他会告

Referenced file contains errors (http://mybatis.org/dtd/mybatis-3-config.dtd). For more information, right click on the message in the Problems View and select &quot;Show Details...&quot;

mybatis配置文件报错Referenced file contains errors mybatis的配置文件报错 The errors below were detected when validating the file "mybatis-3-config.dtd" via the file "mybatis-config.xml".  In most cases these errors can be detected by validating &qu

Spring 配置异常解决办法之Referenced file contains errors

Spring 配置异常解决办法之Referenced file contains errors (http://www.sp Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd). For more information, right click on the message in the Problems View and select "Show

Referenced file contains errors 错误解决方法

Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd). 关于这个错误,导致的原因可能是 一种可能是 之前用的Spring版本,和现在用的不同 对于Eclipse编译器来说,会有个缓存,这样验证的时候他会告诉你版本不统一 Preferences -> General -> Network Connections -> Cache 删除里面的缓存 还

Referenced file contains errors

在Spring的配置文件下出现了Referenced file contains errors的错误, 解决办法: 1.Window--Preferences--MyEclipse--Validation下 可以去掉XML Validator 和 XSL Validator 等文件类型的验证信息(包括Manual和Build), PS:同样的,如果其他类型的文件出现这种类似的验证错误,你可以去掉对应文件类型的验证.同时为了提高项目启动和编译速度,可以适当去掉某些文件的验证. 2.这是由于缓冲造成

Referenced file contains errors (http://www.springframework.org/schema...错误--转载

Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd). 关于这个错误,导致的原因可能是 一种可能是 之前用的Spring版本,和现在用的不同 对于Eclipse编译器来说,会有个缓存,这样验证的时候他会告诉你版本不统一 Preferences -> General -> Network Connections -> Cache 删除里面的缓存 还