簡體   English   中英

創建 WEB 動態項目后的 faces-config.xml 錯誤

[英]faces-config.xml errors after creating a WEB Dynamic Project

我剛剛在 Eclipse 中創建了一個 Web 動態項目,但在 faces-config.xml 中出現了一些錯誤。 我找不到解決方案。 我希望有人能幫幫忙-

Multiple annotations found at this line:
- cvc-elt.1: Cannot find the declaration of element 'faces-config'.
- schema_reference.4: Failed to read schema document 'jar:file:/C:/EPOS/eclipse/plugins/org.eclipse.jst.standard.schemas_1.2.201.v201501151629.jar!/
 dtdsAndSchemas/web-facesconfig_2_2.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>.

在faces-config.xml 文件中faces-config 標簽應該是這樣的:

<faces-config version="2.2"
              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">

如果它沒有幫助,你能分享你的 faces-config.xml 嗎?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM