【发布时间】:2012-09-14 20:11:15
【问题描述】:
Eclipse 一直告诉我 faces-config.xml 上的 http://java.sun.com/xml/ns/javaee/web-facesconfig_2_1.xsd 有问题,还有其他人有问题吗?
<?xml version="1.0" encoding="UTF-8"?>
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
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-facesconfig_2_1.xsd"
version="2.1">
</faces-config>
错误是:
Referenced file contains errors (http://java.sun.com/xml/ns/javaee/web-facesconfig_2_1.xsd).
如果我查看详细信息,会有大量以s4s-elt-character:..... 开头的错误
我正在使用 mojarra 2.1.13。
谢谢。
编辑:显然甲骨文改变了它,这修复了它:
http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/web-facesconfig_2_1.xsd
【问题讨论】:
-
如果您在使用 JSF 2.2 时遇到类似问题,同样的修复会有所帮助:oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/…