【发布时间】:2013-09-21 10:58:06
【问题描述】:
我在 Eclipse 中的 JSF 项目中制作,文件 faces-config.xml 给出错误
Referenced file contains errors (jar:file:/D:/eclips/eclipse k/plugins/org.jboss.tools.jst.web_3.5.0.Final-v20130717-0309-B75.jar!/catalog/web-facesconfig_2_2.xsd).
faces-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<faces-config
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd"
version="2.2">
</faces-config>
当我删除以下行时,faces-config.xml
中的错误指示消失了http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd
告诉我如何解决这个问题?
【问题讨论】:
-
是你的jars JSF 2.2版本。 ?
-
@erencan 是的!上面在 faces-config.xml 中显示的 version="2.2"
-
我要的是 jar 版本。
-
@erencan 是的!
JSF 2.2 (Mojarra 2.2.0)\mojarra-2.2.0-FCS\lib\javax.faces.jar -
试用 JBoss Tools 的当前开发版本:download.jboss.org/jbosstools/updates/development/kepler
标签: xml jsf jsf-2 faces-config jboss-tools